Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
# Changelog

## 19.1.0 - 2026-04-23
This release changes the pinned API version to 2026-04-22.dahlia.

* [#1842](https://github.com/stripe/stripe-ruby/pull/1842) Update generated code
* Add support for `balance_report` and `payout_reconciliation_report` on `AccountSession::Component` and `AccountSessionCreateParams::Component`
* Add support for `app_distribution` and `sunbit_payments` on `Account::Capability`, `AccountCreateParams::Capability`, and `AccountUpdateParams::Capability`
* Add support for `sunbit` on `Charge::PaymentMethodDetail`, `ConfirmationToken::PaymentMethodPreview`, `ConfirmationTokenCreateParams::PaymentMethodDatum`, `PaymentAttemptRecord::PaymentMethodDetail`, `PaymentIntentConfirmParams::PaymentMethodDatum`, `PaymentIntentCreateParams::PaymentMethodDatum`, `PaymentIntentUpdateParams::PaymentMethodDatum`, `PaymentMethodConfigurationCreateParams`, `PaymentMethodConfigurationUpdateParams`, `PaymentMethodConfiguration`, `PaymentMethodCreateParams`, `PaymentMethod`, `PaymentRecord::PaymentMethodDetail`, `SetupIntentConfirmParams::PaymentMethodDatum`, `SetupIntentCreateParams::PaymentMethodDatum`, and `SetupIntentUpdateParams::PaymentMethodDatum`
* Add support for `location` and `reader` on `Charge::PaymentMethodDetail::Klarna`, `PaymentAttemptRecord::PaymentMethodDetail::Klarna`, and `PaymentRecord::PaymentMethodDetail::Klarna`
* Add support for `mandate` on `Charge::PaymentMethodDetail::Pix`, `PaymentAttemptRecord::PaymentMethodDetail::Pix`, and `PaymentRecord::PaymentMethodDetail::Pix`
* Add support for `managed_payments` on `Checkout::SessionCreateParams`, `Checkout::Session`, `PaymentIntent`, `PaymentLinkCreateParams`, `PaymentLink`, `SetupIntent`, and `Subscription`
* Add support for `mandate_options` on `Checkout::Session::PaymentMethodOption::Pix`, `Checkout::SessionCreateParams::PaymentMethodOption::Pix`, `PaymentIntent::PaymentMethodOption::Pix`, `PaymentIntentConfirmParams::PaymentMethodOption::Pix`, `PaymentIntentCreateParams::PaymentMethodOption::Pix`, and `PaymentIntentUpdateParams::PaymentMethodOption::Pix`
* Change type of `Checkout::SessionCreateParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntentConfirmParams::PaymentMethodOption::Pix.setup_future_usage`, `PaymentIntentCreateParams::PaymentMethodOption::Pix.setup_future_usage`, and `PaymentIntentUpdateParams::PaymentMethodOption::Pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
* ⚠️ Change type of `Checkout::Session::PaymentMethodOption::Pix.setup_future_usage` and `PaymentIntent::PaymentMethodOption::Pix.setup_future_usage` from `literal('none')` to `enum('none'|'off_session')`
* Add support for `pix` on `Invoice::PaymentSetting::PaymentMethodOption`, `InvoiceCreateParams::PaymentSetting::PaymentMethodOption`, `InvoiceUpdateParams::PaymentSetting::PaymentMethodOption`, `Mandate::PaymentMethodDetail`, `SetupAttempt::PaymentMethodDetail`, `SetupIntent::PaymentMethodOption`, `SetupIntentConfirmParams::PaymentMethodOption`, `SetupIntentCreateParams::PaymentMethodOption`, `SetupIntentUpdateParams::PaymentMethodOption`, `Subscription::PaymentSetting::PaymentMethodOption`, `SubscriptionCreateParams::PaymentSetting::PaymentMethodOption`, and `SubscriptionUpdateParams::PaymentSetting::PaymentMethodOption`
* Add support for `upi` on `Invoice::PaymentSetting::PaymentMethodOption`, `InvoiceCreateParams::PaymentSetting::PaymentMethodOption`, `InvoiceUpdateParams::PaymentSetting::PaymentMethodOption`, `Subscription::PaymentSetting::PaymentMethodOption`, `SubscriptionCreateParams::PaymentSetting::PaymentMethodOption`, and `SubscriptionUpdateParams::PaymentSetting::PaymentMethodOption`
* Add support for `card_presence` on `Issuing::Authorization`
* Add support for `allowed_card_presences` and `blocked_card_presences` on `Issuing::Card::SpendingControl`, `Issuing::CardCreateParams::SpendingControl`, `Issuing::CardUpdateParams::SpendingControl`, `Issuing::Cardholder::SpendingControl`, `Issuing::CardholderCreateParams::SpendingControl`, and `Issuing::CardholderUpdateParams::SpendingControl`
* Add support for `amount` and `currency` on `Mandate::MultiUse`
* Add support for `amount_to_confirm` on `PaymentIntentConfirmParams`
* Add support for `klarna_display_qr_code` on `PaymentIntent::NextAction`
* Add support for `moto` on `SetupAttempt::PaymentMethodDetail::Card`
* Add support for `pix_display_qr_code` on `SetupIntent::NextAction`
* [#1846](https://github.com/stripe/stripe-ruby/pull/1846) Fix 2D array parameter encoding
- Fixes an issue encoding two-dimensional array request params where the SDK incorrectly flattens the array.
* [#1841](https://github.com/stripe/stripe-ruby/pull/1841) Replace other require cgi with require cgi/escape

## 19.0.0 - 2026-03-25

This release changes the pinned API version to `2026-03-25.dahlia` and contains breaking changes (prefixed with ⚠️ below). There's also a [detailed migration guide](https://github.com/stripe/stripe-ruby/wiki/Migration-guide-for-v19) to simplify your upgrade process.
Expand Down
2 changes: 1 addition & 1 deletion CODEGEN_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
97ed8f33ac148105eefc5ec2543b66a32367bc1f
9aa5ee4ed2b929f65b7fbf7c341f938682888500
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v2206
v2252
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19.0.0
19.1.0
2 changes: 1 addition & 1 deletion lib/stripe/api_version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

module Stripe
module ApiVersion
CURRENT = "2026-03-25.dahlia"
CURRENT = "2026-04-22.dahlia"
CURRENT_MAJOR = "dahlia"
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def self.field_remappings
@field_remappings = {}
end
end
# This contains information about why meter error happens.
attr_reader :reason
# Extra field included in the event's `data` when fetched from /v2/events.
attr_reader :developer_message_summary
# The start of the window that is encapsulated by this summary.
attr_reader :validation_start
# This contains information about why meter error happens.
attr_reader :reason
# The end of the window that is encapsulated by this summary.
attr_reader :validation_end
# The start of the window that is encapsulated by this summary.
attr_reader :validation_start

def self.inner_class_types
@inner_class_types = { reason: Reason }
Expand Down
8 changes: 4 additions & 4 deletions lib/stripe/events/v1_billing_meter_no_meter_found_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ def self.field_remappings
@field_remappings = {}
end
end
# This contains information about why meter error happens.
attr_reader :reason
# Extra field included in the event's `data` when fetched from /v2/events.
attr_reader :developer_message_summary
# The start of the window that is encapsulated by this summary.
attr_reader :validation_start
# This contains information about why meter error happens.
attr_reader :reason
# The end of the window that is encapsulated by this summary.
attr_reader :validation_end
# The start of the window that is encapsulated by this summary.
attr_reader :validation_start

def self.inner_class_types
@inner_class_types = { reason: Reason }
Expand Down
4 changes: 2 additions & 2 deletions lib/stripe/events/v2_core_account_link_returned_event.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@ def self.lookup_type
end

class V2CoreAccountLinkReturnedEventData < ::Stripe::StripeObject
# Open Enum. The use case type of the account link that has been completed.
attr_reader :use_case
# The ID of the v2 account.
attr_reader :account_id
# Configurations on the Account that was onboarded via the account link.
attr_reader :configurations
# Open Enum. The use case type of the account link that has been completed.
attr_reader :use_case

def self.inner_class_types
@inner_class_types = {}
Expand Down
46 changes: 36 additions & 10 deletions lib/stripe/params/account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ def initialize(requested: nil)
end
end

class AppDistribution < ::Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class AuBecsDebitPayments < ::Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
Expand Down Expand Up @@ -619,6 +628,15 @@ def initialize(requested: nil)
end
end

class SunbitPayments < ::Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested

def initialize(requested: nil)
@requested = requested
end
end

class SwishPayments < ::Stripe::RequestParams
# Passing true requests the capability for the account, if it is not already requested. A requested capability may not immediately become active. Any requirements to activate the capability are returned in the `requirements` arrays.
attr_accessor :requested
Expand Down Expand Up @@ -718,6 +736,8 @@ def initialize(requested: nil)
attr_accessor :alma_payments
# The amazon_pay_payments capability.
attr_accessor :amazon_pay_payments
# The app_distribution capability.
attr_accessor :app_distribution
# The au_becs_debit_payments capability.
attr_accessor :au_becs_debit_payments
# The bacs_debit_payments capability.
Expand Down Expand Up @@ -812,6 +832,8 @@ def initialize(requested: nil)
attr_accessor :sepa_debit_payments
# The sofort_payments capability.
attr_accessor :sofort_payments
# The sunbit_payments capability.
attr_accessor :sunbit_payments
# The swish_payments capability.
attr_accessor :swish_payments
# The tax_reporting_us_1099_k capability.
Expand Down Expand Up @@ -839,6 +861,7 @@ def initialize(
afterpay_clearpay_payments: nil,
alma_payments: nil,
amazon_pay_payments: nil,
app_distribution: nil,
au_becs_debit_payments: nil,
bacs_debit_payments: nil,
bancontact_payments: nil,
Expand Down Expand Up @@ -886,6 +909,7 @@ def initialize(
sepa_bank_transfer_payments: nil,
sepa_debit_payments: nil,
sofort_payments: nil,
sunbit_payments: nil,
swish_payments: nil,
tax_reporting_us_1099_k: nil,
tax_reporting_us_1099_misc: nil,
Expand All @@ -902,6 +926,7 @@ def initialize(
@afterpay_clearpay_payments = afterpay_clearpay_payments
@alma_payments = alma_payments
@amazon_pay_payments = amazon_pay_payments
@app_distribution = app_distribution
@au_becs_debit_payments = au_becs_debit_payments
@bacs_debit_payments = bacs_debit_payments
@bancontact_payments = bancontact_payments
Expand Down Expand Up @@ -949,6 +974,7 @@ def initialize(
@sepa_bank_transfer_payments = sepa_bank_transfer_payments
@sepa_debit_payments = sepa_debit_payments
@sofort_payments = sofort_payments
@sunbit_payments = sunbit_payments
@swish_payments = swish_payments
@tax_reporting_us_1099_k = tax_reporting_us_1099_k
@tax_reporting_us_1099_misc = tax_reporting_us_1099_misc
Expand Down Expand Up @@ -981,18 +1007,18 @@ class Card < ::Stripe::RequestParams
attr_accessor :currency
# Attribute for param field cvc
attr_accessor :cvc
# Attribute for param field default_for_currency
attr_accessor :default_for_currency
# Attribute for param field exp_month
attr_accessor :exp_month
# Attribute for param field exp_year
attr_accessor :exp_year
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
attr_accessor :metadata
# Attribute for param field name
attr_accessor :name
# Attribute for param field number
attr_accessor :number
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
attr_accessor :metadata
# Attribute for param field default_for_currency
attr_accessor :default_for_currency

def initialize(
object: nil,
Expand All @@ -1004,12 +1030,12 @@ def initialize(
address_zip: nil,
currency: nil,
cvc: nil,
default_for_currency: nil,
exp_month: nil,
exp_year: nil,
name: nil,
number: nil,
metadata: nil,
default_for_currency: nil
name: nil,
number: nil
)
@object = object
@address_city = address_city
Expand All @@ -1020,12 +1046,12 @@ def initialize(
@address_zip = address_zip
@currency = currency
@cvc = cvc
@default_for_currency = default_for_currency
@exp_month = exp_month
@exp_year = exp_year
@metadata = metadata
@name = name
@number = number
@metadata = metadata
@default_for_currency = default_for_currency
end
end

Expand Down Expand Up @@ -2104,7 +2130,7 @@ def initialize(date: nil, ip: nil, service_agreement: nil, user_agent: nil)
attr_accessor :settings
# Details on the account's acceptance of the [Stripe Services Agreement](/connect/updating-accounts#tos-acceptance). This property can only be updated for accounts where [controller.requirement_collection](/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts. This property defaults to a `full` service agreement when empty.
attr_accessor :tos_acceptance
# The type of Stripe account to create. May be one of `custom`, `express` or `standard`.
# The `type` parameter is deprecated. Use [`controller`](/api/accounts/create#create_account-controller) instead to configure dashboard access, fee payer, loss liability, and requirement collection.
attr_accessor :type

def initialize(
Expand Down
10 changes: 5 additions & 5 deletions lib/stripe/params/account_external_account_create_params.rb
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ class Card < ::Stripe::RequestParams
attr_accessor :exp_month
# Attribute for param field exp_year
attr_accessor :exp_year
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
attr_accessor :metadata
# Attribute for param field name
attr_accessor :name
# Attribute for param field number
attr_accessor :number
# Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format.
attr_accessor :metadata

def initialize(
object: nil,
Expand All @@ -80,9 +80,9 @@ def initialize(
cvc: nil,
exp_month: nil,
exp_year: nil,
metadata: nil,
name: nil,
number: nil,
metadata: nil
number: nil
)
@object = object
@address_city = address_city
Expand All @@ -95,9 +95,9 @@ def initialize(
@cvc = cvc
@exp_month = exp_month
@exp_year = exp_year
@metadata = metadata
@name = name
@number = number
@metadata = metadata
end
end

Expand Down
Loading
Loading