From 6c90c710d824de414863e45f5163a24f77923c02 Mon Sep 17 00:00:00 2001 From: "stripe-openapi[bot]" <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Mon, 28 Apr 2025 15:02:27 -0700 Subject: [PATCH] Update generated code (#1597) * Update generated code for v1719 * Update generated code for v1719 --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> --- lib/stripe/resources/account.rb | 4 ++-- lib/stripe/resources/treasury/outbound_payment.rb | 5 +---- lib/stripe/services/account_external_account_service.rb | 2 +- lib/stripe/services/account_service.rb | 4 ++-- lib/stripe/services/treasury/outbound_payment_service.rb | 5 +---- rbi/stripe/resources/account.rbi | 4 ++-- rbi/stripe/resources/treasury/outbound_payment.rbi | 7 ++----- rbi/stripe/services/account_external_account_service.rbi | 2 +- rbi/stripe/services/account_service.rbi | 4 ++-- rbi/stripe/services/treasury/outbound_payment_service.rbi | 7 ++----- 10 files changed, 16 insertions(+), 28 deletions(-) diff --git a/lib/stripe/resources/account.rb b/lib/stripe/resources/account.rb index e3dd7aff..970f1ab7 100644 --- a/lib/stripe/resources/account.rb +++ b/lib/stripe/resources/account.rb @@ -607,7 +607,7 @@ module Stripe attr_accessor :country # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. attr_accessor :routing_number def initialize( @@ -2606,7 +2606,7 @@ module Stripe attr_accessor :country # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. attr_accessor :routing_number def initialize( diff --git a/lib/stripe/resources/treasury/outbound_payment.rb b/lib/stripe/resources/treasury/outbound_payment.rb index 9d4c6316..f482d9d9 100644 --- a/lib/stripe/resources/treasury/outbound_payment.rb +++ b/lib/stripe/resources/treasury/outbound_payment.rb @@ -220,15 +220,12 @@ module Stripe attr_accessor :name # Billing phone number (including extension). attr_accessor :phone - # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. - attr_accessor :tax_id - def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) + def initialize(address: nil, email: nil, name: nil, phone: nil) @address = address @email = email @name = name @phone = phone - @tax_id = tax_id end end diff --git a/lib/stripe/services/account_external_account_service.rb b/lib/stripe/services/account_external_account_service.rb index 7f104c4c..03a94d35 100644 --- a/lib/stripe/services/account_external_account_service.rb +++ b/lib/stripe/services/account_external_account_service.rb @@ -137,7 +137,7 @@ module Stripe attr_accessor :country # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. attr_accessor :routing_number def initialize( diff --git a/lib/stripe/services/account_service.rb b/lib/stripe/services/account_service.rb index 278b3455..d07c29e3 100644 --- a/lib/stripe/services/account_service.rb +++ b/lib/stripe/services/account_service.rb @@ -39,7 +39,7 @@ module Stripe attr_accessor :country # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. attr_accessor :routing_number def initialize( @@ -2047,7 +2047,7 @@ module Stripe attr_accessor :country # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. attr_accessor :routing_number def initialize( diff --git a/lib/stripe/services/treasury/outbound_payment_service.rb b/lib/stripe/services/treasury/outbound_payment_service.rb index 646145ec..c79f13ef 100644 --- a/lib/stripe/services/treasury/outbound_payment_service.rb +++ b/lib/stripe/services/treasury/outbound_payment_service.rb @@ -101,15 +101,12 @@ module Stripe attr_accessor :name # Billing phone number (including extension). attr_accessor :phone - # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. - attr_accessor :tax_id - def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil) + def initialize(address: nil, email: nil, name: nil, phone: nil) @address = address @email = email @name = name @phone = phone - @tax_id = tax_id end end diff --git a/rbi/stripe/resources/account.rbi b/rbi/stripe/resources/account.rbi index 58684706..5ab7dfd7 100644 --- a/rbi/stripe/resources/account.rbi +++ b/rbi/stripe/resources/account.rbi @@ -863,7 +863,7 @@ module Stripe # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) sig { returns(T.nilable(String)) } attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. sig { returns(T.nilable(String)) } attr_accessor :routing_number sig { @@ -2811,7 +2811,7 @@ module Stripe # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) sig { returns(T.nilable(String)) } attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. sig { returns(T.nilable(String)) } attr_accessor :routing_number sig { diff --git a/rbi/stripe/resources/treasury/outbound_payment.rbi b/rbi/stripe/resources/treasury/outbound_payment.rbi index 9219197e..8504da5c 100644 --- a/rbi/stripe/resources/treasury/outbound_payment.rbi +++ b/rbi/stripe/resources/treasury/outbound_payment.rbi @@ -319,13 +319,10 @@ module Stripe # Billing phone number (including extension). sig { returns(T.nilable(T.nilable(String))) } attr_accessor :phone - # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. - sig { returns(T.nilable(String)) } - attr_accessor :tax_id sig { - params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void + params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPayment::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void } - def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end + def initialize(address: nil, email: nil, name: nil, phone: nil); end end class UsBankAccount < Stripe::RequestParams # Account holder type: individual or company. diff --git a/rbi/stripe/services/account_external_account_service.rbi b/rbi/stripe/services/account_external_account_service.rbi index 2212e180..d35b54f0 100644 --- a/rbi/stripe/services/account_external_account_service.rbi +++ b/rbi/stripe/services/account_external_account_service.rbi @@ -150,7 +150,7 @@ module Stripe # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) sig { returns(T.nilable(String)) } attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. sig { returns(T.nilable(String)) } attr_accessor :routing_number sig { diff --git a/rbi/stripe/services/account_service.rbi b/rbi/stripe/services/account_service.rbi index 9596aaf0..b890b1cf 100644 --- a/rbi/stripe/services/account_service.rbi +++ b/rbi/stripe/services/account_service.rbi @@ -38,7 +38,7 @@ module Stripe # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) sig { returns(T.nilable(String)) } attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. sig { returns(T.nilable(String)) } attr_accessor :routing_number sig { @@ -2083,7 +2083,7 @@ module Stripe # The currency the bank account is in. This must be a country/currency pairing that [Stripe supports.](docs/payouts) sig { returns(T.nilable(String)) } attr_accessor :currency - # The routing number, sort code, or other country-appropriateinstitution number for the bank account. For US bank accounts, this is required and should bethe ACH routing number, not the wire routing number. If you are providing an IBAN for`account_number`, this field is not required. + # The routing number, sort code, or other country-appropriate institution number for the bank account. For US bank accounts, this is required and should be the ACH routing number, not the wire routing number. If you are providing an IBAN for `account_number`, this field is not required. sig { returns(T.nilable(String)) } attr_accessor :routing_number sig { diff --git a/rbi/stripe/services/treasury/outbound_payment_service.rbi b/rbi/stripe/services/treasury/outbound_payment_service.rbi index e22ac6b1..08c4d629 100644 --- a/rbi/stripe/services/treasury/outbound_payment_service.rbi +++ b/rbi/stripe/services/treasury/outbound_payment_service.rbi @@ -112,13 +112,10 @@ module Stripe # Billing phone number (including extension). sig { returns(T.nilable(T.nilable(String))) } attr_accessor :phone - # Taxpayer identification number. Used only for transactions between LATAM buyers and non-LATAM sellers. - sig { returns(T.nilable(String)) } - attr_accessor :tax_id sig { - params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String)), tax_id: T.nilable(String)).void + params(address: T.nilable(T.nilable(T.any(String, ::Stripe::Treasury::OutboundPaymentService::CreateParams::DestinationPaymentMethodData::BillingDetails::Address))), email: T.nilable(T.nilable(String)), name: T.nilable(T.nilable(String)), phone: T.nilable(T.nilable(String))).void } - def initialize(address: nil, email: nil, name: nil, phone: nil, tax_id: nil); end + def initialize(address: nil, email: nil, name: nil, phone: nil); end end class UsBankAccount < Stripe::RequestParams # Account holder type: individual or company.