Skip to content

Commit

Permalink
Merge pull request #1499 from stripe/latest-codegen-beta
Browse files Browse the repository at this point in the history
Update generated code for beta
  • Loading branch information
stripe-openapi[bot] authored Dec 12, 2024
2 parents 0473767 + aa58664 commit dfa3166
Show file tree
Hide file tree
Showing 27 changed files with 86 additions and 34 deletions.
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v1383
v1405
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-11-20.acacia"
CURRENT = "2024-12-18.acacia"
end
end
6 changes: 5 additions & 1 deletion lib/stripe/resources/billing/credit_balance_transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,11 @@ class Monetary < Stripe::StripeObject
end
attr_reader :monetary, :type
end
attr_reader :amount, :type

class CreditsApplicationInvoiceVoided < Stripe::StripeObject
attr_reader :invoice, :invoice_line_item
end
attr_reader :amount, :credits_application_invoice_voided, :type
end

class Debit < Stripe::StripeObject
Expand Down
4 changes: 4 additions & 0 deletions lib/stripe/resources/card.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ 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 @@ -82,6 +84,8 @@ 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
2 changes: 1 addition & 1 deletion lib/stripe/resources/charge.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,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, :overcapture, :partial_authorization, :three_d_secure, :wallet
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
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, :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, :regulated_status, :three_d_secure_usage, :wallet
end

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

class VisaCompliance < Stripe::StripeObject
attr_reader :fee_acknowledged
end
attr_reader :visa_compelling_evidence_3, :visa_compliance
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 @@ -44,7 +48,11 @@ class EnhancedEligibility < Stripe::StripeObject
class VisaCompellingEvidence3 < Stripe::StripeObject
attr_reader :required_actions, :status
end
attr_reader :visa_compelling_evidence_3

class VisaCompliance < Stripe::StripeObject
attr_reader :status
end
attr_reader :visa_compelling_evidence_3, :visa_compliance
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/issuing/authorization.rb
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class Fuel < Stripe::StripeObject
end

class MerchantData < Stripe::StripeObject
attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url
attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :tax_id, :terminal_id, :url
end

class NetworkData < Stripe::StripeObject
Expand Down
2 changes: 1 addition & 1 deletion lib/stripe/resources/issuing/transaction.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ class AmountDetails < Stripe::StripeObject
end

class MerchantData < Stripe::StripeObject
attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :terminal_id, :url
attr_reader :category, :category_code, :city, :country, :name, :network_id, :postal_code, :state, :tax_id, :terminal_id, :url
end

class NetworkData < 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, :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, :regulated_status, :three_d_secure_usage, :wallet
end

class CardPresent < Stripe::StripeObject
Expand Down
6 changes: 0 additions & 6 deletions lib/stripe/resources/payment_record.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ class AmountGuaranteed < Stripe::StripeObject
attr_reader :currency, :value
end

class AmountRefunded < Stripe::StripeObject
attr_reader :currency, :value
end

class AmountRequested < Stripe::StripeObject
attr_reader :currency, :value
end
Expand Down Expand Up @@ -63,8 +59,6 @@ class Address < Stripe::StripeObject
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_guaranteed
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_refunded
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_requested
# Time at which the object was created. Measured in seconds since the Unix epoch.
attr_reader :created
Expand Down
2 changes: 2 additions & 0 deletions lib/stripe/resources/source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,8 @@ 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`, `ar_cuit`, `au_abn`, `au_arn`, `bg_uic`, `bh_vat`, `bo_tin`, `br_cnpj`, `br_cpf`, `by_tin`, `ca_bn`, `ca_gst_hst`, `ca_pst_bc`, `ca_pst_mb`, `ca_pst_sk`, `ca_qst`, `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`, `hk_br`, `hr_oib`, `hu_tin`, `id_npwp`, `il_vat`, `in_gst`, `is_vat`, `jp_cn`, `jp_rn`, `jp_trn`, `ke_pin`, `kr_brn`, `kz_bin`, `li_uid`, `li_vat`, `ma_vat`, `md_vat`, `mx_rfc`, `my_frp`, `my_itn`, `my_sst`, `ng_tin`, `no_vat`, `no_voec`, `nz_gst`, `om_vat`, `pe_ruc`, `ph_tin`, `ro_tin`, `rs_pib`, `ru_inn`, `ru_kpp`, `sa_vat`, `sg_gst`, `sg_uen`, `si_tin`, `sv_nit`, `th_vat`, `tr_tin`, `tw_vat`, `tz_vat`, `ua_vat`, `us_ein`, `uy_ruc`, `uz_tin`, `uz_vat`, `ve_rif`, `vn_tin`, or `za_vat`. 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 :collect_config, :payment_intent, :payment_method, :stripe_account
attr_reader :account, :collect_config, :payment_intent, :payment_method, :stripe_account
end

class ConfirmPaymentIntent < Stripe::StripeObject
attr_reader :payment_intent, :stripe_account
attr_reader :account, :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 :payment_intent, :process_config, :stripe_account
attr_reader :account, :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 :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account
attr_reader :account, :amount, :charge, :metadata, :payment_intent, :reason, :refund, :refund_application_fee, :refund_payment_config, :reverse_transfer, :stripe_account
end

class SetReaderDisplay < Stripe::StripeObject
Expand Down
8 changes: 8 additions & 0 deletions rbi/stripe/resources/billing/credit_balance_transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,16 @@ module Stripe
sig { returns(String) }
attr_reader :type
end
class CreditsApplicationInvoiceVoided < Stripe::StripeObject
sig { returns(T.any(String, Stripe::Invoice)) }
attr_reader :invoice
sig { returns(String) }
attr_reader :invoice_line_item
end
sig { returns(Amount) }
attr_reader :amount
sig { returns(T.nilable(CreditsApplicationInvoiceVoided)) }
attr_reader :credits_application_invoice_voided
sig { returns(String) }
attr_reader :type
end
Expand Down
6 changes: 3 additions & 3 deletions rbi/stripe/resources/capital/financing_summary.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Stripe
class FinancingSummary < SingletonAPIResource
class Details < Stripe::StripeObject
class CurrentRepaymentInterval < Stripe::StripeObject
sig { returns(Integer) }
sig { returns(Float) }
attr_reader :due_at
sig { returns(T.nilable(Integer)) }
attr_reader :paid_amount
Expand All @@ -18,7 +18,7 @@ module Stripe
end
sig { returns(Integer) }
attr_reader :advance_amount
sig { returns(T.nilable(Integer)) }
sig { returns(T.nilable(Float)) }
attr_reader :advance_paid_out_at
sig { returns(String) }
attr_reader :currency
Expand All @@ -30,7 +30,7 @@ module Stripe
attr_reader :paid_amount
sig { returns(Integer) }
attr_reader :remaining_amount
sig { returns(T.nilable(Integer)) }
sig { returns(T.nilable(Float)) }
attr_reader :repayments_begin_at
sig { returns(Float) }
attr_reader :withhold_rate
Expand Down
6 changes: 6 additions & 0 deletions rbi/stripe/resources/card.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ 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 @@ -106,6 +109,9 @@ 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
4 changes: 4 additions & 0 deletions rbi/stripe/resources/charge.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -440,10 +440,14 @@ 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: 2 additions & 0 deletions rbi/stripe/resources/confirmation_token.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -343,6 +343,8 @@ 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: 12 additions & 0 deletions rbi/stripe/resources/dispute.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,14 @@ 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 @@ -149,8 +155,14 @@ 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: 2 additions & 0 deletions rbi/stripe/resources/issuing/authorization.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_reader :state
sig { returns(T.nilable(String)) }
attr_reader :tax_id
sig { returns(T.nilable(String)) }
attr_reader :terminal_id
sig { returns(T.nilable(String)) }
attr_reader :url
Expand Down
2 changes: 2 additions & 0 deletions rbi/stripe/resources/issuing/transaction.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ module Stripe
sig { returns(T.nilable(String)) }
attr_reader :state
sig { returns(T.nilable(String)) }
attr_reader :tax_id
sig { returns(T.nilable(String)) }
attr_reader :terminal_id
sig { returns(T.nilable(String)) }
attr_reader :url
Expand Down
2 changes: 2 additions & 0 deletions rbi/stripe/resources/payment_method.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -316,6 +316,8 @@ 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
9 changes: 0 additions & 9 deletions rbi/stripe/resources/payment_record.rbi
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,6 @@ module Stripe
sig { returns(Integer) }
attr_reader :value
end
class AmountRefunded < Stripe::StripeObject
sig { returns(String) }
attr_reader :currency
sig { returns(Integer) }
attr_reader :value
end
class AmountRequested < Stripe::StripeObject
sig { returns(String) }
attr_reader :currency
Expand Down Expand Up @@ -119,9 +113,6 @@ module Stripe
sig { returns(AmountGuaranteed) }
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_guaranteed
sig { returns(AmountRefunded) }
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_refunded
sig { returns(AmountRequested) }
# A representation of an amount of money, consisting of an amount and a currency.
attr_reader :amount_requested
Expand Down
Loading

0 comments on commit dfa3166

Please sign in to comment.