Update generated code for v1978 and 2025-09-30.preview

This commit is contained in:
Stripe OpenAPI 2025-09-17 15:35:53 +00:00
parent 450158f6ae
commit accd264edd
6 changed files with 153 additions and 9 deletions

View File

@ -1 +1 @@
v1977
v1978

View File

@ -263,6 +263,8 @@ module Stripe
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
attr_accessor :balance
# The customer's business name. This may be up to *150 characters*.
attr_accessor :business_name
# Balance information and default balance settings for this customer.
attr_accessor :cash_balance
# If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
@ -277,6 +279,8 @@ module Stripe
attr_accessor :email
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The customer's full name. This may be up to *150 characters*.
attr_accessor :individual_name
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
attr_accessor :invoice_prefix
# Default invoice settings for this customer.
@ -305,11 +309,13 @@ module Stripe
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -325,11 +331,13 @@ module Stripe
)
@address = address
@balance = balance
@business_name = business_name
@cash_balance = cash_balance
@default_source = default_source
@description = description
@email = email
@expand = expand
@individual_name = individual_name
@invoice_prefix = invoice_prefix
@invoice_settings = invoice_settings
@metadata = metadata
@ -567,6 +575,8 @@ module Stripe
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
attr_accessor :balance
# The customer's business name. This may be up to *150 characters*.
attr_accessor :business_name
# Balance information and default balance settings for this customer.
attr_accessor :cash_balance
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
@ -575,6 +585,8 @@ module Stripe
attr_accessor :email
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The customer's full name. This may be up to *150 characters*.
attr_accessor :individual_name
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
attr_accessor :invoice_prefix
# Default invoice settings for this customer.
@ -609,10 +621,12 @@ module Stripe
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -631,10 +645,12 @@ module Stripe
)
@address = address
@balance = balance
@business_name = business_name
@cash_balance = cash_balance
@description = description
@email = email
@expand = expand
@individual_name = individual_name
@invoice_prefix = invoice_prefix
@invoice_settings = invoice_settings
@metadata = metadata
@ -783,6 +799,8 @@ module Stripe
attr_reader :address
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
attr_reader :balance
# The customer's business name.
attr_reader :business_name
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
attr_reader :cash_balance
# Time at which the object was created. Measured in seconds since the Unix epoch.
@ -809,6 +827,8 @@ module Stripe
attr_reader :email
# Unique identifier for the object.
attr_reader :id
# The customer's individual name.
attr_reader :individual_name
# The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
attr_reader :invoice_credit_balance
# The prefix for the customer used to generate unique invoice numbers.

View File

@ -183,6 +183,8 @@ module Stripe
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
attr_accessor :balance
# The customer's business name. This may be up to *150 characters*.
attr_accessor :business_name
# Balance information and default balance settings for this customer.
attr_accessor :cash_balance
# If you are using payment methods created via the PaymentMethods API, see the [invoice_settings.default_payment_method](https://stripe.com/docs/api/customers/update#update_customer-invoice_settings-default_payment_method) parameter.
@ -197,6 +199,8 @@ module Stripe
attr_accessor :email
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The customer's full name. This may be up to *150 characters*.
attr_accessor :individual_name
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
attr_accessor :invoice_prefix
# Default invoice settings for this customer.
@ -225,11 +229,13 @@ module Stripe
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -245,11 +251,13 @@ module Stripe
)
@address = address
@balance = balance
@business_name = business_name
@cash_balance = cash_balance
@default_source = default_source
@description = description
@email = email
@expand = expand
@individual_name = individual_name
@invoice_prefix = invoice_prefix
@invoice_settings = invoice_settings
@metadata = metadata
@ -487,6 +495,8 @@ module Stripe
attr_accessor :address
# An integer amount in cents (or local equivalent) that represents the customer's current balance, which affect the customer's future invoices. A negative amount represents a credit that decreases the amount due on an invoice; a positive amount increases the amount due on an invoice.
attr_accessor :balance
# The customer's business name. This may be up to *150 characters*.
attr_accessor :business_name
# Balance information and default balance settings for this customer.
attr_accessor :cash_balance
# An arbitrary string that you can attach to a customer object. It is displayed alongside the customer in the dashboard.
@ -495,6 +505,8 @@ module Stripe
attr_accessor :email
# Specifies which fields in the response should be expanded.
attr_accessor :expand
# The customer's full name. This may be up to *150 characters*.
attr_accessor :individual_name
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
attr_accessor :invoice_prefix
# Default invoice settings for this customer.
@ -529,10 +541,12 @@ module Stripe
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -551,10 +565,12 @@ module Stripe
)
@address = address
@balance = balance
@business_name = business_name
@cash_balance = cash_balance
@description = description
@email = email
@expand = expand
@individual_name = individual_name
@invoice_prefix = invoice_prefix
@invoice_settings = invoice_settings
@metadata = metadata

View File

@ -32737,6 +32737,9 @@ module Stripe
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
sig { returns(T.nilable(Integer)) }
def balance; end
# The customer's business name.
sig { returns(T.nilable(String)) }
def business_name; end
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
sig { returns(T.nilable(Stripe::CashBalance)) }
def cash_balance; end
@ -32775,6 +32778,9 @@ module Stripe
# Unique identifier for the object.
sig { returns(String) }
def id; end
# The customer's individual name.
sig { returns(T.nilable(String)) }
def individual_name; end
# The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
sig { returns(T.nilable(T::Hash[String, Integer])) }
def invoice_credit_balance; end
@ -33060,6 +33066,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::Customer::UpdateParams::CashBalance)) }
def cash_balance; end
@ -33091,6 +33102,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -33164,16 +33180,18 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -33510,6 +33528,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::Customer::CreateParams::CashBalance)) }
def cash_balance; end
@ -33532,6 +33555,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -33622,15 +33650,17 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -172097,6 +172127,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance)) }
def cash_balance; end
@ -172128,6 +172163,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -172201,16 +172241,18 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -172547,6 +172589,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::CashBalance)) }
def cash_balance; end
@ -172569,6 +172616,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -172659,15 +172711,17 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,

View File

@ -121,6 +121,9 @@ module Stripe
# The current balance, if any, that's stored on the customer in their default currency. If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that's added to their next invoice. The balance only considers amounts that Stripe hasn't successfully applied to any invoice. It doesn't reflect unpaid invoices. This balance is only taken into account after invoices finalize. For multi-currency balances, see [invoice_credit_balance](https://stripe.com/docs/api/customers/object#customer_object-invoice_credit_balance).
sig { returns(T.nilable(Integer)) }
def balance; end
# The customer's business name.
sig { returns(T.nilable(String)) }
def business_name; end
# The current funds being held by Stripe on behalf of the customer. You can apply these funds towards payment intents when the source is "cash_balance". The `settings[reconciliation_mode]` field describes if these funds apply to these payment intents manually or automatically.
sig { returns(T.nilable(Stripe::CashBalance)) }
def cash_balance; end
@ -159,6 +162,9 @@ module Stripe
# Unique identifier for the object.
sig { returns(String) }
def id; end
# The customer's individual name.
sig { returns(T.nilable(String)) }
def individual_name; end
# The current multi-currency balances, if any, that's stored on the customer. If positive in a currency, the customer has a credit to apply to their next invoice denominated in that currency. If negative, the customer has an amount owed that's added to their next invoice denominated in that currency. These balances don't apply to unpaid invoices. They solely track amounts that Stripe hasn't successfully applied to any invoice. Stripe only applies a balance in a specific currency to an invoice after that invoice (which is in the same currency) finalizes.
sig { returns(T.nilable(T::Hash[String, Integer])) }
def invoice_credit_balance; end
@ -444,6 +450,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::Customer::UpdateParams::CashBalance)) }
def cash_balance; end
@ -475,6 +486,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -548,16 +564,18 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::Customer::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -894,6 +912,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::Customer::CreateParams::CashBalance)) }
def cash_balance; end
@ -916,6 +939,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -1006,15 +1034,17 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::Customer::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::Customer::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::Customer::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::Customer::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::Customer::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,

View File

@ -251,6 +251,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance)) }
def cash_balance; end
@ -282,6 +287,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -355,16 +365,18 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::CustomerService::UpdateParams::CashBalance), default_source: T.nilable(String), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::UpdateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::UpdateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::UpdateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
default_source: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,
@ -701,6 +713,11 @@ module Stripe
def balance; end
sig { params(_balance: T.nilable(Integer)).returns(T.nilable(Integer)) }
def balance=(_balance); end
# The customer's business name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def business_name; end
sig { params(_business_name: T.nilable(String)).returns(T.nilable(String)) }
def business_name=(_business_name); end
# Balance information and default balance settings for this customer.
sig { returns(T.nilable(::Stripe::CustomerService::CreateParams::CashBalance)) }
def cash_balance; end
@ -723,6 +740,11 @@ module Stripe
def expand; end
sig { params(_expand: T.nilable(T::Array[String])).returns(T.nilable(T::Array[String])) }
def expand=(_expand); end
# The customer's full name. This may be up to *150 characters*.
sig { returns(T.nilable(String)) }
def individual_name; end
sig { params(_individual_name: T.nilable(String)).returns(T.nilable(String)) }
def individual_name=(_individual_name); end
# The prefix for the customer used to generate unique invoice numbers. Must be 312 uppercase letters or numbers.
sig { returns(T.nilable(String)) }
def invoice_prefix; end
@ -813,15 +835,17 @@ module Stripe
sig { params(_validate: T.nilable(T::Boolean)).returns(T.nilable(T::Boolean)) }
def validate=(_validate); end
sig {
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address)), balance: T.nilable(Integer), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
params(address: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Address)), balance: T.nilable(Integer), business_name: T.nilable(String), cash_balance: T.nilable(::Stripe::CustomerService::CreateParams::CashBalance), description: T.nilable(String), email: T.nilable(String), expand: T.nilable(T::Array[String]), individual_name: T.nilable(String), invoice_prefix: T.nilable(String), invoice_settings: T.nilable(::Stripe::CustomerService::CreateParams::InvoiceSettings), metadata: T.nilable(T.any(String, T::Hash[String, String])), name: T.nilable(String), next_invoice_sequence: T.nilable(Integer), payment_method: T.nilable(String), phone: T.nilable(String), preferred_locales: T.nilable(T::Array[String]), shipping: T.nilable(T.any(String, ::Stripe::CustomerService::CreateParams::Shipping)), source: T.nilable(String), tax: T.nilable(::Stripe::CustomerService::CreateParams::Tax), tax_exempt: T.nilable(T.any(String, String)), tax_id_data: T.nilable(T::Array[::Stripe::CustomerService::CreateParams::TaxIdDatum]), test_clock: T.nilable(String), validate: T.nilable(T::Boolean)).void
}
def initialize(
address: nil,
balance: nil,
business_name: nil,
cash_balance: nil,
description: nil,
email: nil,
expand: nil,
individual_name: nil,
invoice_prefix: nil,
invoice_settings: nil,
metadata: nil,