From 48236b489f05d6da62c3a8facade1663c82b7660 Mon Sep 17 00:00:00 2001 From: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Date: Fri, 19 Sep 2025 00:35:02 +0000 Subject: [PATCH] Update generated code for v1999 and 2025-09-30.preview --- OPENAPI_VERSION | 2 +- lib/stripe/resources/balance_settings.rb | 2 + lib/stripe/resources/checkout/session.rb | 24 +++- lib/stripe/resources/invoice.rb | 24 +++- lib/stripe/resources/invoice_line_item.rb | 12 +- lib/stripe/resources/payment_link.rb | 12 +- .../services/checkout/session_service.rb | 24 +++- .../services/invoice_line_item_service.rb | 12 +- lib/stripe/services/invoice_service.rb | 24 +++- lib/stripe/services/payment_link_service.rb | 12 +- rbi/stripe.rbi | 123 ++++++++++++++---- rbi/stripe/resources/balance_settings.rbi | 3 + rbi/stripe/resources/checkout/session.rbi | 20 ++- rbi/stripe/resources/invoice.rbi | 20 ++- rbi/stripe/resources/invoice_line_item.rbi | 10 +- rbi/stripe/resources/payment_link.rbi | 10 +- .../services/checkout/session_service.rbi | 20 ++- .../services/invoice_line_item_service.rbi | 10 +- rbi/stripe/services/invoice_service.rbi | 20 ++- rbi/stripe/services/payment_link_service.rbi | 10 +- 20 files changed, 333 insertions(+), 61 deletions(-) diff --git a/OPENAPI_VERSION b/OPENAPI_VERSION index 610d875a..f1fbe534 100644 --- a/OPENAPI_VERSION +++ b/OPENAPI_VERSION @@ -1 +1 @@ -v1995 \ No newline at end of file +v1999 \ No newline at end of file diff --git a/lib/stripe/resources/balance_settings.rb b/lib/stripe/resources/balance_settings.rb index 1c693e6c..8d8b46d9 100644 --- a/lib/stripe/resources/balance_settings.rb +++ b/lib/stripe/resources/balance_settings.rb @@ -38,6 +38,8 @@ module Stripe class SettlementTiming < Stripe::StripeObject # The number of days charge funds are held before becoming available. attr_reader :delay_days + # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. + attr_reader :delay_days_override end # A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`. attr_reader :debit_negative_balances diff --git a/lib/stripe/resources/checkout/session.rb b/lib/stripe/resources/checkout/session.rb index a3211532..4e1854ce 100644 --- a/lib/stripe/resources/checkout/session.rb +++ b/lib/stripe/resources/checkout/session.rb @@ -1748,13 +1748,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end @@ -3974,13 +3984,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end diff --git a/lib/stripe/resources/invoice.rb b/lib/stripe/resources/invoice.rb index a8c9931f..e57935eb 100644 --- a/lib/stripe/resources/invoice.rb +++ b/lib/stripe/resources/invoice.rb @@ -2050,13 +2050,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -2454,13 +2464,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/resources/invoice_line_item.rb b/lib/stripe/resources/invoice_line_item.rb index 4d65b0a1..851d1271 100644 --- a/lib/stripe/resources/invoice_line_item.rb +++ b/lib/stripe/resources/invoice_line_item.rb @@ -208,13 +208,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/resources/payment_link.rb b/lib/stripe/resources/payment_link.rb index 5ee6efe7..5adaf9ee 100644 --- a/lib/stripe/resources/payment_link.rb +++ b/lib/stripe/resources/payment_link.rb @@ -670,13 +670,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end diff --git a/lib/stripe/services/checkout/session_service.rb b/lib/stripe/services/checkout/session_service.rb index bc8e4068..f9f268c1 100644 --- a/lib/stripe/services/checkout/session_service.rb +++ b/lib/stripe/services/checkout/session_service.rb @@ -572,13 +572,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end @@ -2807,13 +2817,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end diff --git a/lib/stripe/services/invoice_line_item_service.rb b/lib/stripe/services/invoice_line_item_service.rb index 6bd44164..c2904c12 100644 --- a/lib/stripe/services/invoice_line_item_service.rb +++ b/lib/stripe/services/invoice_line_item_service.rb @@ -89,13 +89,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/services/invoice_service.rb b/lib/stripe/services/invoice_service.rb index 1118d888..512d5063 100644 --- a/lib/stripe/services/invoice_service.rb +++ b/lib/stripe/services/invoice_service.rb @@ -1548,13 +1548,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -1952,13 +1962,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/lib/stripe/services/payment_link_service.rb b/lib/stripe/services/payment_link_service.rb index a8c2e11e..7d51cf43 100644 --- a/lib/stripe/services/payment_link_service.rb +++ b/lib/stripe/services/payment_link_service.rb @@ -382,13 +382,23 @@ module Stripe attr_accessor :name # A [tax code](https://stripe.com/docs/tax/tax-categories) ID. attr_accessor :tax_code + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + attr_accessor :unit_label - def initialize(description: nil, images: nil, metadata: nil, name: nil, tax_code: nil) + def initialize( + description: nil, + images: nil, + metadata: nil, + name: nil, + tax_code: nil, + unit_label: nil + ) @description = description @images = images @metadata = metadata @name = name @tax_code = tax_code + @unit_label = unit_label end end diff --git a/rbi/stripe.rbi b/rbi/stripe.rbi index 28d0932a..574eddbc 100644 --- a/rbi/stripe.rbi +++ b/rbi/stripe.rbi @@ -13568,6 +13568,9 @@ module Stripe # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end + # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. + sig { returns(T.nilable(Integer)) } + def delay_days_override; end end # A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`. sig { returns(T.nilable(T::Boolean)) } @@ -24305,15 +24308,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -27643,15 +27652,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -43185,15 +43200,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -43797,15 +43818,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -47474,15 +47501,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -85638,15 +85671,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -167239,15 +167278,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -170622,15 +170667,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -180369,15 +180420,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -180981,15 +181038,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -184403,15 +184466,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -214303,15 +214372,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams diff --git a/rbi/stripe/resources/balance_settings.rbi b/rbi/stripe/resources/balance_settings.rbi index f2dfc8fe..0f25270d 100644 --- a/rbi/stripe/resources/balance_settings.rbi +++ b/rbi/stripe/resources/balance_settings.rbi @@ -39,6 +39,9 @@ module Stripe # The number of days charge funds are held before becoming available. sig { returns(Integer) } def delay_days; end + # The number of days charge funds are held before becoming available. If present, overrides the default, or minimum available, for the account. + sig { returns(T.nilable(Integer)) } + def delay_days_override; end end # A Boolean indicating if Stripe should try to reclaim negative balances from an attached bank account. See [Understanding Connect account balances](/connect/account-balances) for details. The default value is `false` when [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts, otherwise `true`. sig { returns(T.nilable(T::Boolean)) } diff --git a/rbi/stripe/resources/checkout/session.rbi b/rbi/stripe/resources/checkout/session.rbi index 459ef8ff..a1baa396 100644 --- a/rbi/stripe/resources/checkout/session.rbi +++ b/rbi/stripe/resources/checkout/session.rbi @@ -2478,15 +2478,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -5816,15 +5822,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams diff --git a/rbi/stripe/resources/invoice.rbi b/rbi/stripe/resources/invoice.rbi index ca35e41e..e0687fcd 100644 --- a/rbi/stripe/resources/invoice.rbi +++ b/rbi/stripe/resources/invoice.rbi @@ -3346,15 +3346,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -3958,15 +3964,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/rbi/stripe/resources/invoice_line_item.rbi b/rbi/stripe/resources/invoice_line_item.rbi index 594a20f1..c3281fe9 100644 --- a/rbi/stripe/resources/invoice_line_item.rbi +++ b/rbi/stripe/resources/invoice_line_item.rbi @@ -342,15 +342,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/rbi/stripe/resources/payment_link.rbi b/rbi/stripe/resources/payment_link.rbi index 655c8e8a..8a128104 100644 --- a/rbi/stripe/resources/payment_link.rbi +++ b/rbi/stripe/resources/payment_link.rbi @@ -1029,15 +1029,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams diff --git a/rbi/stripe/services/checkout/session_service.rbi b/rbi/stripe/services/checkout/session_service.rbi index cead7412..23233ff9 100644 --- a/rbi/stripe/services/checkout/session_service.rbi +++ b/rbi/stripe/services/checkout/session_service.rbi @@ -859,15 +859,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams @@ -4242,15 +4248,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams diff --git a/rbi/stripe/services/invoice_line_item_service.rbi b/rbi/stripe/services/invoice_line_item_service.rbi index ca8e58bd..0aa3b622 100644 --- a/rbi/stripe/services/invoice_line_item_service.rbi +++ b/rbi/stripe/services/invoice_line_item_service.rbi @@ -143,15 +143,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/rbi/stripe/services/invoice_service.rbi b/rbi/stripe/services/invoice_service.rbi index 53987d61..ebb74f04 100644 --- a/rbi/stripe/services/invoice_service.rbi +++ b/rbi/stripe/services/invoice_service.rbi @@ -2488,15 +2488,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). @@ -3100,15 +3106,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end # Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies). diff --git a/rbi/stripe/services/payment_link_service.rbi b/rbi/stripe/services/payment_link_service.rbi index 48e0bbc8..fd7213c9 100644 --- a/rbi/stripe/services/payment_link_service.rbi +++ b/rbi/stripe/services/payment_link_service.rbi @@ -584,15 +584,21 @@ module Stripe def tax_code; end sig { params(_tax_code: T.nilable(String)).returns(T.nilable(String)) } def tax_code=(_tax_code); end + # A label that represents units of this product. When set, this will be included in customers' receipts, invoices, Checkout, and the customer portal. + sig { returns(T.nilable(String)) } + def unit_label; end + sig { params(_unit_label: T.nilable(String)).returns(T.nilable(String)) } + def unit_label=(_unit_label); end sig { - params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String)).void + params(description: T.nilable(String), images: T.nilable(T::Array[String]), metadata: T.nilable(T::Hash[String, String]), name: String, tax_code: T.nilable(String), unit_label: T.nilable(String)).void } def initialize( description: nil, images: nil, metadata: nil, name: nil, - tax_code: nil + tax_code: nil, + unit_label: nil ); end end class Recurring < Stripe::RequestParams