Skip to content

Commit

Permalink
Update generated code for v1409
Browse files Browse the repository at this point in the history
  • Loading branch information
stripe-openapi[bot] committed Dec 13, 2024
1 parent 6bd6bae commit fa703ec
Show file tree
Hide file tree
Showing 20 changed files with 14 additions and 79 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1408
v1409
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

module Stripe
module ApiVersion
CURRENT = "2024-12-18.acacia"
CURRENT = "2024-11-20.acacia"
end
end
4 changes: 0 additions & 4 deletions lib/stripe/resources/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,6 @@ class Networks < Stripe::StripeObject
attr_reader :address_zip
# If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
attr_reader :address_zip_check
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
attr_reader :allow_redisplay
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
attr_reader :available_payout_methods
# Card brand. Can be `American Express`, `Diners Club`, `Discover`, `Eftpos Australia`, `Girocard`, `JCB`, `MasterCard`, `UnionPay`, `Visa`, or `Unknown`.
Expand Down Expand Up @@ -84,8 +82,6 @@ class Networks < Stripe::StripeObject
attr_reader :networks
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
# Status of a card based on the card issuer.
attr_reader :regulated_status
# For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
attr_reader :status
# If the card number is tokenized, this is the method that was used. Can be `android_pay` (includes Google Pay), `apple_pay`, `masterpass`, `visa_checkout`, or null.
Expand Down
6 changes: 1 addition & 5 deletions lib/stripe/resources/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,10 +138,6 @@ class Overcapture < Stripe::StripeObject
attr_reader :maximum_amount_capturable, :status
end

class PartialAuthorization < Stripe::StripeObject
attr_reader :status
end

class ThreeDSecure < Stripe::StripeObject
attr_reader :authentication_flow, :electronic_commerce_indicator, :exemption_indicator, :exemption_indicator_applied, :result, :result_reason, :transaction_id, :version
end
Expand Down Expand Up @@ -177,7 +173,7 @@ class ShippingAddress < Stripe::StripeObject
end
attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
end
attr_reader :amount_authorized, :amount_requested, :authorization_code, :brand, :capture_before, :checks, :country, :decremental_authorization, :description, :exp_month, :exp_year, :extended_authorization, :fingerprint, :funding, :iin, :incremental_authorization, :installments, :issuer, :last4, :mandate, :moto, :multicapture, :network, :network_token, :network_transaction_id, :overcapture, :partial_authorization, :regulated_status, :three_d_secure, :wallet
attr_reader :amount_authorized, :authorization_code, :brand, :capture_before, :checks, :country, :decremental_authorization, :description, :exp_month, :exp_year, :extended_authorization, :fingerprint, :funding, :iin, :incremental_authorization, :installments, :issuer, :last4, :mandate, :moto, :multicapture, :network, :network_token, :overcapture, :three_d_secure, :wallet
end

class CardPresent < Stripe::StripeObject
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/confirmation_token.rb
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ class ShippingAddress < Stripe::StripeObject
end
attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
end
attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :regulated_status, :three_d_secure_usage, :wallet
attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet
end

class CardPresent < Stripe::StripeObject
Expand Down
12 changes: 2 additions & 10 deletions lib/stripe/resources/dispute.rb
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,7 @@ class ShippingAddress < Stripe::StripeObject
end
attr_reader :disputed_transaction, :prior_undisputed_transactions
end

class VisaCompliance < Stripe::StripeObject
attr_reader :fee_acknowledged
end
attr_reader :visa_compelling_evidence_3, :visa_compliance
attr_reader :visa_compelling_evidence_3
end
attr_reader :access_activity_log, :billing_address, :cancellation_policy, :cancellation_policy_disclosure, :cancellation_rebuttal, :customer_communication, :customer_email_address, :customer_name, :customer_purchase_ip, :customer_signature, :duplicate_charge_documentation, :duplicate_charge_explanation, :duplicate_charge_id, :enhanced_evidence, :product_description, :receipt, :refund_policy, :refund_policy_disclosure, :refund_refusal_explanation, :service_date, :service_documentation, :shipping_address, :shipping_carrier, :shipping_date, :shipping_documentation, :shipping_tracking_number, :uncategorized_file, :uncategorized_text
end
Expand All @@ -48,11 +44,7 @@ class EnhancedEligibility < Stripe::StripeObject
class VisaCompellingEvidence3 < Stripe::StripeObject
attr_reader :required_actions, :status
end

class VisaCompliance < Stripe::StripeObject
attr_reader :status
end
attr_reader :visa_compelling_evidence_3, :visa_compliance
attr_reader :visa_compelling_evidence_3
end
attr_reader :due_by, :enhanced_eligibility, :has_evidence, :past_due, :submission_count
end
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/payment_intent.rb
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ class Address < Stripe::StripeObject
end
attr_reader :address, :phone
end
attr_reader :capture_method, :installments, :mandate_options, :network, :request_decremental_authorization, :request_extended_authorization, :request_incremental_authorization, :request_multicapture, :request_overcapture, :request_partial_authorization, :request_three_d_secure, :require_cvc_recollection, :setup_future_usage, :statement_descriptor_suffix_kana, :statement_descriptor_suffix_kanji, :statement_details
attr_reader :capture_method, :installments, :mandate_options, :network, :request_decremental_authorization, :request_extended_authorization, :request_incremental_authorization, :request_multicapture, :request_overcapture, :request_three_d_secure, :require_cvc_recollection, :setup_future_usage, :statement_descriptor_suffix_kana, :statement_descriptor_suffix_kanji, :statement_details
end

class CardPresent < Stripe::StripeObject
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/payment_method.rb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class ShippingAddress < Stripe::StripeObject
end
attr_reader :amex_express_checkout, :apple_pay, :dynamic_last4, :google_pay, :link, :masterpass, :samsung_pay, :type, :visa_checkout
end
attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :regulated_status, :three_d_secure_usage, :wallet
attr_reader :brand, :checks, :country, :description, :display_brand, :exp_month, :exp_year, :fingerprint, :funding, :generated_from, :iin, :issuer, :last4, :networks, :three_d_secure_usage, :wallet
end

class CardPresent < Stripe::StripeObject
Expand Down
2 changes: 0 additions & 2 deletions lib/stripe/resources/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,6 @@ class Wechat < Stripe::StripeObject
attr_reader :acss_debit
# Attribute for field alipay
attr_reader :alipay
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
attr_reader :allow_redisplay
# A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources.
attr_reader :amount
# Attribute for field au_becs_debit
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/tax_id.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Verification < Stripe::StripeObject
attr_reader :object
# The account or customer the tax ID belongs to.
attr_reader :owner
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `al_tin`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown`
# Type of the tax ID, one of `ad_nrt`, `ae_trn`, `am_tin`, `ao_tin`, `ar_cuit`, `au_abn`, `au_arn`, `ba_tin`, `bb_tin`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `bs_tin`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `cd_nif`, `ch_uid`, `ch_vat`, `cl_tin`, `cn_tin`, `co_nit`, `cr_tin`, `de_stn`, `do_rcn`, `ec_ruc`, `eg_tin`, `es_cif`, `eu_oss_vat`, `eu_vat`, `gb_vat`, `ge_vat`, `gn_nif`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kh_tin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `me_pib`, `mk_vat`, `mr_nif`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `np_pan`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sn_ninea`, `sr_fin`, `sv_nit`, `th_vat`, `tj_tin`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `ug_tin`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, `za_vat`, `zm_tin`, or `zw_tin`. Note that some legacy tax IDs have type `unknown`
attr_reader :type
# Value of the tax ID.
attr_reader :value
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/resources/terminal/reader.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,11 @@ class Tipping < Stripe::StripeObject
end
attr_reader :enable_customer_cancellation, :skip_tipping, :tipping
end
attr_reader :account, :collect_config, :payment_intent, :payment_method, :stripe_account
attr_reader :collect_config, :payment_intent, :payment_method, :stripe_account
end

class ConfirmPaymentIntent < Stripe::StripeObject
attr_reader :account, :payment_intent, :stripe_account
attr_reader :payment_intent, :stripe_account
end

class ProcessPaymentIntent < Stripe::StripeObject
Expand All @@ -80,7 +80,7 @@ class Tipping < Stripe::StripeObject
end
attr_reader :enable_customer_cancellation, :skip_tipping, :tipping
end
attr_reader :account, :payment_intent, :process_config, :stripe_account
attr_reader :payment_intent, :process_config, :stripe_account
end

class ProcessSetupIntent < Stripe::StripeObject
Expand All @@ -94,7 +94,7 @@ class RefundPayment < Stripe::StripeObject
class RefundPaymentConfig < Stripe::StripeObject
attr_reader :enable_customer_cancellation
end
attr_reader :account, :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account
attr_reader :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account
end

class SetReaderDisplay < Stripe::StripeObject
Expand Down
6 changes: 0 additions & 6 deletions rbi/stripe/resources/card.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,6 @@ module Stripe
sig { returns(T.nilable(String)) }
# If `address_zip` was provided, results of the check: `pass`, `fail`, `unavailable`, or `unchecked`.
attr_reader :address_zip_check
sig { returns(T.nilable(String)) }
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
attr_reader :allow_redisplay
sig { returns(T.nilable(T::Array[String])) }
# A set of available payout methods for this card. Only values from this set should be passed as the `method` when creating a payout.
attr_reader :available_payout_methods
Expand Down Expand Up @@ -109,9 +106,6 @@ module Stripe
# String representing the object's type. Objects of the same type share the same value.
attr_reader :object
sig { returns(T.nilable(String)) }
# Status of a card based on the card issuer.
attr_reader :regulated_status
sig { returns(T.nilable(String)) }
# For external accounts that are cards, possible values are `new` and `errored`. If a payout fails, the status is set to `errored` and [scheduled payouts](https://stripe.com/docs/payouts#payout-schedule) are stopped until account details are updated.
attr_reader :status
sig { returns(T.nilable(String)) }
Expand Down
12 changes: 0 additions & 12 deletions rbi/stripe/resources/charge.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -269,10 +269,6 @@ module Stripe
sig { returns(String) }
attr_reader :status
end
class PartialAuthorization < Stripe::StripeObject
sig { returns(String) }
attr_reader :status
end
class ThreeDSecure < Stripe::StripeObject
sig { returns(T.nilable(String)) }
attr_reader :authentication_flow
Expand Down Expand Up @@ -394,8 +390,6 @@ module Stripe
end
sig { returns(T.nilable(Integer)) }
attr_reader :amount_authorized
sig { returns(T.nilable(Integer)) }
attr_reader :amount_requested
sig { returns(T.nilable(String)) }
attr_reader :authorization_code
sig { returns(T.nilable(String)) }
Expand Down Expand Up @@ -440,14 +434,8 @@ module Stripe
attr_reader :network
sig { returns(T.nilable(NetworkToken)) }
attr_reader :network_token
sig { returns(T.nilable(String)) }
attr_reader :network_transaction_id
sig { returns(Overcapture) }
attr_reader :overcapture
sig { returns(PartialAuthorization) }
attr_reader :partial_authorization
sig { returns(T.nilable(String)) }
attr_reader :regulated_status
sig { returns(T.nilable(ThreeDSecure)) }
attr_reader :three_d_secure
sig { returns(T.nilable(Wallet)) }
Expand Down
2 changes: 0 additions & 2 deletions rbi/stripe/resources/confirmation_token.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -343,8 +343,6 @@ module Stripe
attr_reader :last4
sig { returns(T.nilable(Networks)) }
attr_reader :networks
sig { returns(T.nilable(String)) }
attr_reader :regulated_status
sig { returns(T.nilable(ThreeDSecureUsage)) }
attr_reader :three_d_secure_usage
sig { returns(T.nilable(Wallet)) }
Expand Down
12 changes: 0 additions & 12 deletions rbi/stripe/resources/dispute.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,8 @@ module Stripe
sig { returns(T::Array[PriorUndisputedTransaction]) }
attr_reader :prior_undisputed_transactions
end
class VisaCompliance < Stripe::StripeObject
sig { returns(T::Boolean) }
attr_reader :fee_acknowledged
end
sig { returns(VisaCompellingEvidence3) }
attr_reader :visa_compelling_evidence_3
sig { returns(VisaCompliance) }
attr_reader :visa_compliance
end
sig { returns(T.nilable(String)) }
attr_reader :access_activity_log
Expand Down Expand Up @@ -155,14 +149,8 @@ module Stripe
sig { returns(String) }
attr_reader :status
end
class VisaCompliance < Stripe::StripeObject
sig { returns(String) }
attr_reader :status
end
sig { returns(VisaCompellingEvidence3) }
attr_reader :visa_compelling_evidence_3
sig { returns(VisaCompliance) }
attr_reader :visa_compliance
end
sig { returns(T.nilable(Integer)) }
attr_reader :due_by
Expand Down
2 changes: 0 additions & 2 deletions rbi/stripe/resources/payment_intent.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -945,8 +945,6 @@ module Stripe
attr_reader :request_multicapture
sig { returns(String) }
attr_reader :request_overcapture
sig { returns(String) }
attr_reader :request_partial_authorization
sig { returns(T.nilable(String)) }
attr_reader :request_three_d_secure
sig { returns(T::Boolean) }
Expand Down
2 changes: 0 additions & 2 deletions rbi/stripe/resources/payment_method.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -316,8 +316,6 @@ module Stripe
attr_reader :last4
sig { returns(T.nilable(Networks)) }
attr_reader :networks
sig { returns(T.nilable(String)) }
attr_reader :regulated_status
sig { returns(T.nilable(ThreeDSecureUsage)) }
attr_reader :three_d_secure_usage
sig { returns(T.nilable(Wallet)) }
Expand Down
3 changes: 0 additions & 3 deletions rbi/stripe/resources/source.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -560,9 +560,6 @@ module Stripe
sig { returns(Alipay) }
# Attribute for field alipay
attr_reader :alipay
sig { returns(T.nilable(String)) }
# This field indicates whether this payment method can be shown again to its customer in a checkout flow. Stripe products such as Checkout and Elements use this field to determine whether a payment method can be shown as a saved payment method in a checkout flow. The field defaults to “unspecified”.
attr_reader :allow_redisplay
sig { returns(T.nilable(Integer)) }
# A positive integer in the smallest currency unit (that is, 100 cents for $1.00, or 1 for ¥1, Japanese Yen being a zero-decimal currency) representing the total amount associated with the source. This is the amount for which the source will be chargeable once ready. Required for `single_use` sources.
attr_reader :amount
Expand Down
Loading

0 comments on commit fa703ec

Please sign in to comment.