From 15059f9b075a9e2a1246f9ff673e4dfc2dbdd209 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 19:45:05 +0000 Subject: [PATCH 01/12] Update generated code for v1388 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/payment_record.rb | 6 ------ rbi/stripe/resources/payment_record.rbi | 9 --------- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 4263345a2..0378aa2f4 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1383 \ No newline at end of file +v1388 \ No newline at end of file diff --git a/lib/stripe/resources/payment_record.rb b/lib/stripe/resources/payment_record.rb index d06e56715..6c7ec4d26 100644 --- a/lib/stripe/resources/payment_record.rb +++ b/lib/stripe/resources/payment_record.rb @@ -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 @@ -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 diff --git a/rbi/stripe/resources/payment_record.rbi b/rbi/stripe/resources/payment_record.rbi index 6c34020ac..9e74116a5 100644 --- a/rbi/stripe/resources/payment_record.rbi +++ b/rbi/stripe/resources/payment_record.rbi @@ -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 @@ -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 From 3e2a9a3e4413aec2b3c4f5a1549774d444bce346 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 21:37:18 +0000 Subject: [PATCH 02/12] Update generated code for v1388 --- rbi/stripe/resources/capital/financing_summary.rbi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rbi/stripe/resources/capital/financing_summary.rbi b/rbi/stripe/resources/capital/financing_summary.rbi index 82b34f0c4..7b35f442e 100644 --- a/rbi/stripe/resources/capital/financing_summary.rbi +++ b/rbi/stripe/resources/capital/financing_summary.rbi @@ -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 @@ -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 @@ -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 From c1846fa90f6dc79c8428095e7dd0529bdcefce22 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:04:07 +0000 Subject: [PATCH 03/12] Update generated code for v1389 --- OPENAPI_VERSION | 2 +- .../resources/billing/credit_balance_transaction.rb | 6 +++++- .../resources/billing/credit_balance_transaction.rbi | 8 ++++++++ 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 0378aa2f4..cd5e5a331 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1388 \ No newline at end of file +v1389 \ No newline at end of file diff --git a/lib/stripe/resources/billing/credit_balance_transaction.rb b/lib/stripe/resources/billing/credit_balance_transaction.rb index 4070db5c1..ba740b821 100644 --- a/lib/stripe/resources/billing/credit_balance_transaction.rb +++ b/lib/stripe/resources/billing/credit_balance_transaction.rb @@ -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 diff --git a/rbi/stripe/resources/billing/credit_balance_transaction.rbi b/rbi/stripe/resources/billing/credit_balance_transaction.rbi index efe2fe15b..294c521f0 100644 --- a/rbi/stripe/resources/billing/credit_balance_transaction.rbi +++ b/rbi/stripe/resources/billing/credit_balance_transaction.rbi @@ -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 From bff038c78714480d34a299fef763706641c181af Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 6 Dec 2024 22:38:51 +0000 Subject: [PATCH 04/12] Update generated code for v1390 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/charge.rb | 6 +----- lib/stripe/resources/issuing/authorization.rb | 2 +- lib/stripe/resources/issuing/transaction.rb | 2 +- lib/stripe/resources/payment_intent.rb | 2 +- rbi/stripe/resources/charge.rbi | 8 -------- rbi/stripe/resources/issuing/authorization.rbi | 2 ++ rbi/stripe/resources/issuing/transaction.rbi | 2 ++ rbi/stripe/resources/payment_intent.rbi | 2 -- 9 files changed, 9 insertions(+), 19 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index cd5e5a331..53cd01555 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1389 \ No newline at end of file +v1390 \ No newline at end of file diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index ef7d2e43e..3b8f4337b 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -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 @@ -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, :overcapture, :partial_authorization, :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 diff --git a/lib/stripe/resources/issuing/authorization.rb b/lib/stripe/resources/issuing/authorization.rb index cc78edd17..7d3d01242 100644 --- a/lib/stripe/resources/issuing/authorization.rb +++ b/lib/stripe/resources/issuing/authorization.rb @@ -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 diff --git a/lib/stripe/resources/issuing/transaction.rb b/lib/stripe/resources/issuing/transaction.rb index 8ff91af19..f59cbefc8 100644 --- a/lib/stripe/resources/issuing/transaction.rb +++ b/lib/stripe/resources/issuing/transaction.rb @@ -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 diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 8c158afc7..63a53e8d4 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -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 diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 88afe84f4..622b0e403 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -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 @@ -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)) } @@ -442,8 +436,6 @@ module Stripe attr_reader :network_token sig { returns(Overcapture) } attr_reader :overcapture - sig { returns(PartialAuthorization) } - attr_reader :partial_authorization sig { returns(T.nilable(ThreeDSecure)) } attr_reader :three_d_secure sig { returns(T.nilable(Wallet)) } diff --git a/rbi/stripe/resources/issuing/authorization.rbi b/rbi/stripe/resources/issuing/authorization.rbi index 5748c28e2..1681e6010 100644 --- a/rbi/stripe/resources/issuing/authorization.rbi +++ b/rbi/stripe/resources/issuing/authorization.rbi @@ -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 diff --git a/rbi/stripe/resources/issuing/transaction.rbi b/rbi/stripe/resources/issuing/transaction.rbi index d11aa8e17..d9c50977a 100644 --- a/rbi/stripe/resources/issuing/transaction.rbi +++ b/rbi/stripe/resources/issuing/transaction.rbi @@ -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 diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 194deb171..554edffdb 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -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) } From 4b790c6f660cd7339bb7f6d24a0d0e6bffd9abe4 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Sat, 7 Dec 2024 00:35:38 +0000 Subject: [PATCH 05/12] Update generated code for v1392 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/tax_id.rb | 2 +- rbi/stripe/resources/tax_id.rbi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 53cd01555..3819fbfcf 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1390 \ No newline at end of file +v1392 \ No newline at end of file diff --git a/lib/stripe/resources/tax_id.rb b/lib/stripe/resources/tax_id.rb index 20f1c29cc..9c03f2481 100644 --- a/lib/stripe/resources/tax_id.rb +++ b/lib/stripe/resources/tax_id.rb @@ -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 diff --git a/rbi/stripe/resources/tax_id.rbi b/rbi/stripe/resources/tax_id.rbi index 9844a442f..3176744be 100644 --- a/rbi/stripe/resources/tax_id.rbi +++ b/rbi/stripe/resources/tax_id.rbi @@ -48,7 +48,7 @@ module Stripe # The account or customer the tax ID belongs to. attr_reader :owner sig { returns(String) } - # 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 sig { returns(String) } # Value of the tax ID. From a6fb7c989defc63aff51bfe382bda433ceee399c Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 16:48:58 +0000 Subject: [PATCH 06/12] Update generated code for v1394 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/card.rb | 2 ++ lib/stripe/resources/charge.rb | 2 +- lib/stripe/resources/confirmation_token.rb | 2 +- lib/stripe/resources/payment_method.rb | 2 +- rbi/stripe/resources/card.rbi | 3 +++ rbi/stripe/resources/charge.rbi | 2 ++ rbi/stripe/resources/confirmation_token.rbi | 2 ++ rbi/stripe/resources/payment_method.rbi | 2 ++ 9 files changed, 15 insertions(+), 4 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 3819fbfcf..acf4c7638 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1392 \ No newline at end of file +v1394 \ No newline at end of file diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 4904e6874..64dc5f04a 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -82,6 +82,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. diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 3b8f4337b..0291d20b5 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -173,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, :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 + 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, :regulated_status, :three_d_secure, :wallet end class CardPresent < Stripe::StripeObject diff --git a/lib/stripe/resources/confirmation_token.rb b/lib/stripe/resources/confirmation_token.rb index 6166c21e1..3d8401feb 100644 --- a/lib/stripe/resources/confirmation_token.rb +++ b/lib/stripe/resources/confirmation_token.rb @@ -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 diff --git a/lib/stripe/resources/payment_method.rb b/lib/stripe/resources/payment_method.rb index 0cf025150..4f47f1a86 100644 --- a/lib/stripe/resources/payment_method.rb +++ b/lib/stripe/resources/payment_method.rb @@ -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 diff --git a/rbi/stripe/resources/card.rbi b/rbi/stripe/resources/card.rbi index 6ff38acad..6719336a7 100644 --- a/rbi/stripe/resources/card.rbi +++ b/rbi/stripe/resources/card.rbi @@ -106,6 +106,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)) } diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 622b0e403..6617e8bd8 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -436,6 +436,8 @@ module Stripe attr_reader :network_token sig { returns(Overcapture) } attr_reader :overcapture + sig { returns(T.nilable(String)) } + attr_reader :regulated_status sig { returns(T.nilable(ThreeDSecure)) } attr_reader :three_d_secure sig { returns(T.nilable(Wallet)) } diff --git a/rbi/stripe/resources/confirmation_token.rbi b/rbi/stripe/resources/confirmation_token.rbi index 19356d838..5ec7cd00f 100644 --- a/rbi/stripe/resources/confirmation_token.rbi +++ b/rbi/stripe/resources/confirmation_token.rbi @@ -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)) } diff --git a/rbi/stripe/resources/payment_method.rbi b/rbi/stripe/resources/payment_method.rbi index b98e52cb2..ca2e437d2 100644 --- a/rbi/stripe/resources/payment_method.rbi +++ b/rbi/stripe/resources/payment_method.rbi @@ -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)) } From ee1b40e2a47d4e43d4fe86deb3f1333e20110999 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 21:09:44 +0000 Subject: [PATCH 07/12] Update generated code for v1395 --- OPENAPI_VERSION | 2 +- lib/stripe/api_version.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index acf4c7638..c9e0a8482 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1394 \ No newline at end of file +v1395 \ No newline at end of file diff --git a/lib/stripe/api_version.rb b/lib/stripe/api_version.rb index cb1d8b67d..9fc77642b 100644 --- a/lib/stripe/api_version.rb +++ b/lib/stripe/api_version.rb @@ -3,6 +3,6 @@ module Stripe module ApiVersion - CURRENT = "2024-11-20.acacia" + CURRENT = "2024-12-18.acacia" end end From d8d9367c9748bde81a34d1fa144c4cac569062c9 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:23:40 +0000 Subject: [PATCH 08/12] Update generated code for v1397 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/terminal/reader.rb | 8 ++++---- rbi/stripe/resources/terminal/reader.rbi | 8 ++++++++ 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index c9e0a8482..42258ffb3 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1395 \ No newline at end of file +v1397 \ No newline at end of file diff --git a/lib/stripe/resources/terminal/reader.rb b/lib/stripe/resources/terminal/reader.rb index c57b5f984..fc6d5e0e4 100644 --- a/lib/stripe/resources/terminal/reader.rb +++ b/lib/stripe/resources/terminal/reader.rb @@ -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 @@ -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 @@ -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 diff --git a/rbi/stripe/resources/terminal/reader.rbi b/rbi/stripe/resources/terminal/reader.rbi index d6d31698e..a9159a2fc 100644 --- a/rbi/stripe/resources/terminal/reader.rbi +++ b/rbi/stripe/resources/terminal/reader.rbi @@ -104,6 +104,8 @@ module Stripe sig { returns(Tipping) } attr_reader :tipping end + sig { returns(String) } + attr_reader :account sig { returns(CollectConfig) } attr_reader :collect_config sig { returns(T.any(String, Stripe::PaymentIntent)) } @@ -114,6 +116,8 @@ module Stripe attr_reader :stripe_account end class ConfirmPaymentIntent < Stripe::StripeObject + sig { returns(String) } + attr_reader :account sig { returns(T.any(String, Stripe::PaymentIntent)) } attr_reader :payment_intent sig { returns(String) } @@ -132,6 +136,8 @@ module Stripe sig { returns(Tipping) } attr_reader :tipping end + sig { returns(String) } + attr_reader :account sig { returns(T.any(String, Stripe::PaymentIntent)) } attr_reader :payment_intent sig { returns(ProcessConfig) } @@ -156,6 +162,8 @@ module Stripe sig { returns(T::Boolean) } attr_reader :enable_customer_cancellation end + sig { returns(String) } + attr_reader :account sig { returns(Integer) } attr_reader :amount sig { returns(T.any(String, Stripe::Charge)) } From d7089798995762bd573e77717f5290df2da0ee77 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 9 Dec 2024 22:47:51 +0000 Subject: [PATCH 09/12] Update generated code for v1398 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/dispute.rb | 12 ++++++++++-- rbi/stripe/resources/dispute.rbi | 12 ++++++++++++ 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 42258ffb3..030963bfb 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1397 \ No newline at end of file +v1398 \ No newline at end of file diff --git a/lib/stripe/resources/dispute.rb b/lib/stripe/resources/dispute.rb index ad46a11ba..2bfc63802 100644 --- a/lib/stripe/resources/dispute.rb +++ b/lib/stripe/resources/dispute.rb @@ -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 @@ -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 diff --git a/rbi/stripe/resources/dispute.rbi b/rbi/stripe/resources/dispute.rbi index ea7e2266b..ad7c74254 100644 --- a/rbi/stripe/resources/dispute.rbi +++ b/rbi/stripe/resources/dispute.rbi @@ -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 @@ -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 From 03f7e8b4244fceacce2be6e33a62cba15985a8a5 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 01:14:13 +0000 Subject: [PATCH 10/12] Update generated code for v1400 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/charge.rb | 6 +++++- lib/stripe/resources/payment_intent.rb | 2 +- rbi/stripe/resources/charge.rbi | 8 ++++++++ rbi/stripe/resources/payment_intent.rbi | 2 ++ 5 files changed, 17 insertions(+), 3 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 030963bfb..801f5f8b6 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1398 \ No newline at end of file +v1400 \ No newline at end of file diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 0291d20b5..0496f0039 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -138,6 +138,10 @@ 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 @@ -173,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, :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, :regulated_status, :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, :overcapture, :partial_authorization, :regulated_status, :three_d_secure, :wallet end class CardPresent < Stripe::StripeObject diff --git a/lib/stripe/resources/payment_intent.rb b/lib/stripe/resources/payment_intent.rb index 63a53e8d4..8c158afc7 100644 --- a/lib/stripe/resources/payment_intent.rb +++ b/lib/stripe/resources/payment_intent.rb @@ -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_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_partial_authorization, :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 diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 6617e8bd8..32bc245ff 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -269,6 +269,10 @@ 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 @@ -390,6 +394,8 @@ 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)) } @@ -436,6 +442,8 @@ module Stripe attr_reader :network_token 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)) } diff --git a/rbi/stripe/resources/payment_intent.rbi b/rbi/stripe/resources/payment_intent.rbi index 554edffdb..194deb171 100644 --- a/rbi/stripe/resources/payment_intent.rbi +++ b/rbi/stripe/resources/payment_intent.rbi @@ -945,6 +945,8 @@ 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) } From 4ca1162115e67d71410c5ecb6f2a2b6a62b169a7 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Tue, 10 Dec 2024 13:57:34 +0000 Subject: [PATCH 11/12] Update generated code for v1401 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/charge.rb | 2 +- rbi/stripe/resources/charge.rbi | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 801f5f8b6..786255474 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1400 \ No newline at end of file +v1401 \ No newline at end of file diff --git a/lib/stripe/resources/charge.rb b/lib/stripe/resources/charge.rb index 0496f0039..f1b512489 100644 --- a/lib/stripe/resources/charge.rb +++ b/lib/stripe/resources/charge.rb @@ -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, :regulated_status, :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 diff --git a/rbi/stripe/resources/charge.rbi b/rbi/stripe/resources/charge.rbi index 32bc245ff..968f8501c 100644 --- a/rbi/stripe/resources/charge.rbi +++ b/rbi/stripe/resources/charge.rbi @@ -440,6 +440,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) } From aa58664f71f45831f5df2861e65e633b6b545579 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Thu, 12 Dec 2024 18:43:17 +0000 Subject: [PATCH 12/12] Update generated code for v1405 --- OPENAPI_VERSION | 2 +- lib/stripe/resources/card.rb | 2 ++ lib/stripe/resources/source.rb | 2 ++ rbi/stripe/resources/card.rbi | 3 +++ rbi/stripe/resources/source.rbi | 3 +++ 5 files changed, 11 insertions(+), 1 deletion(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 786255474..a7ed76c94 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1401 \ No newline at end of file +v1405 \ No newline at end of file diff --git a/lib/stripe/resources/card.rb b/lib/stripe/resources/card.rb index 64dc5f04a..12e5ad8bb 100644 --- a/lib/stripe/resources/card.rb +++ b/lib/stripe/resources/card.rb @@ -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`. diff --git a/lib/stripe/resources/source.rb b/lib/stripe/resources/source.rb index d6e752320..c52fb9fe1 100644 --- a/lib/stripe/resources/source.rb +++ b/lib/stripe/resources/source.rb @@ -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 diff --git a/rbi/stripe/resources/card.rbi b/rbi/stripe/resources/card.rbi index 6719336a7..0650e8fcb 100644 --- a/rbi/stripe/resources/card.rbi +++ b/rbi/stripe/resources/card.rbi @@ -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 diff --git a/rbi/stripe/resources/source.rbi b/rbi/stripe/resources/source.rbi index 9116e3446..23d1da172 100644 --- a/rbi/stripe/resources/source.rbi +++ b/rbi/stripe/resources/source.rbi @@ -560,6 +560,9 @@ 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