github stripe/stripe-ruby v18.2.0-beta.1

pre-release11 hours ago

This release changes the pinned API version to 2025-12-15.preview.

  • #1724 Add EventNotificationHandler
  • #1735 Update generated code for beta
    • Add support for new resources Reserve::Hold, Reserve::Plan, and Reserve::Release
    • Add support for list and retrieve methods on resources Reserve::Hold and Reserve::Release
    • Add support for retrieve method on resource Reserve::Plan
    • Change Billing::CreditBalanceSummary.customer_account, Billing::CreditGrant.customer_account, BillingPortal::Session.customer_account, CashBalance.customer_account, Checkout::Session.customer_account, ConfirmationToken::PaymentMethodPreview.customer_account, CreditNote.customer_account, CustomerBalanceTransaction.customer_account, CustomerCashBalanceTransaction.customer_account, CustomerSession.customer_account, Discount.customer_account, Invoice.customer_account, InvoiceItem.customer_account, PaymentIntent.customer_account, PaymentMethod.customer_account, PromotionCode.customer_account, Quote.customer_account, QuotePreviewInvoice.customer_account, QuotePreviewSubscriptionSchedule.customer_account, SetupAttempt.customer_account, Subscription.customer_account, SubscriptionSchedule.customer_account, TaxId.customer_account, and TaxId::Owner.customer_account to be required
    • Change type of V2::FinancialAddressGeneratedMicrodeposits.amounts from amount to an object
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.amount, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.amount, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.amount, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.amount, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.amount, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.amount, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.amount from longInteger to emptyable(longInteger)
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.amount_type, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.amount_type, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.amount_type, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.amount_type, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.amount_type, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.amount_type, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.amount_type from enum('fixed'|'maximum') to emptyable(enum('fixed'|'maximum'))
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.end_date, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.end_date, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.end_date, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.end_date, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.end_date, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.end_date, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.end_date from string to emptyable(string)
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.payment_schedule, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.payment_schedule from enum to emptyable(enum)
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.payments_per_period, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.payments_per_period from longInteger to emptyable(longInteger)
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.purpose, PaymentIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.purpose, PaymentIntentCreateParams::PaymentMethodOption::Payto::MandateOption.purpose, PaymentIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.purpose, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.purpose, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.purpose, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.purpose from enum to emptyable(enum)
    • Change type of Checkout::SessionCreateParams::PaymentMethodOption::Payto::MandateOption.start_date, SetupIntentConfirmParams::PaymentMethodOption::Payto::MandateOption.start_date, SetupIntentCreateParams::PaymentMethodOption::Payto::MandateOption.start_date, and SetupIntentUpdateParams::PaymentMethodOption::Payto::MandateOption.start_date from string to emptyable(string)
    • Change Identity::VerificationSession.related_customer_account to be required
    • Add support for async_workflows on PaymentIntent
    • Add support for payto on QuotePreviewInvoice::PaymentSetting::PaymentMethodOption
    • Remove support for requested on V2::Core::Account::Configuration::Customer::Capability::AutomaticIndirectTax, V2::Core::Account::Configuration::Merchant::Capability::AchDebitPayment, V2::Core::Account::Configuration::Merchant::Capability::AcssDebitPayment, V2::Core::Account::Configuration::Merchant::Capability::AffirmPayment, V2::Core::Account::Configuration::Merchant::Capability::AfterpayClearpayPayment, V2::Core::Account::Configuration::Merchant::Capability::AlmaPayment, V2::Core::Account::Configuration::Merchant::Capability::AmazonPayPayment, V2::Core::Account::Configuration::Merchant::Capability::AuBecsDebitPayment, V2::Core::Account::Configuration::Merchant::Capability::BacsDebitPayment, V2::Core::Account::Configuration::Merchant::Capability::BancontactPayment, V2::Core::Account::Configuration::Merchant::Capability::BlikPayment, V2::Core::Account::Configuration::Merchant::Capability::BoletoPayment, V2::Core::Account::Configuration::Merchant::Capability::CardPayment, V2::Core::Account::Configuration::Merchant::Capability::CartesBancairesPayment, V2::Core::Account::Configuration::Merchant::Capability::CashappPayment, V2::Core::Account::Configuration::Merchant::Capability::EpsPayment, V2::Core::Account::Configuration::Merchant::Capability::FpxPayment, V2::Core::Account::Configuration::Merchant::Capability::GbBankTransferPayment, V2::Core::Account::Configuration::Merchant::Capability::GrabpayPayment, V2::Core::Account::Configuration::Merchant::Capability::IdealPayment, V2::Core::Account::Configuration::Merchant::Capability::JcbPayment, V2::Core::Account::Configuration::Merchant::Capability::JpBankTransferPayment, V2::Core::Account::Configuration::Merchant::Capability::KakaoPayPayment, V2::Core::Account::Configuration::Merchant::Capability::KlarnaPayment, V2::Core::Account::Configuration::Merchant::Capability::KonbiniPayment, V2::Core::Account::Configuration::Merchant::Capability::KrCardPayment, V2::Core::Account::Configuration::Merchant::Capability::LinkPayment, V2::Core::Account::Configuration::Merchant::Capability::MobilepayPayment, V2::Core::Account::Configuration::Merchant::Capability::MultibancoPayment, V2::Core::Account::Configuration::Merchant::Capability::MxBankTransferPayment, V2::Core::Account::Configuration::Merchant::Capability::NaverPayPayment, V2::Core::Account::Configuration::Merchant::Capability::OxxoPayment, V2::Core::Account::Configuration::Merchant::Capability::P24Payment, V2::Core::Account::Configuration::Merchant::Capability::PayByBankPayment, V2::Core::Account::Configuration::Merchant::Capability::PaycoPayment, V2::Core::Account::Configuration::Merchant::Capability::PaynowPayment, V2::Core::Account::Configuration::Merchant::Capability::PromptpayPayment, V2::Core::Account::Configuration::Merchant::Capability::RevolutPayPayment, V2::Core::Account::Configuration::Merchant::Capability::SamsungPayPayment, V2::Core::Account::Configuration::Merchant::Capability::SepaBankTransferPayment, V2::Core::Account::Configuration::Merchant::Capability::SepaDebitPayment, V2::Core::Account::Configuration::Merchant::Capability::StripeBalance::Payout, V2::Core::Account::Configuration::Merchant::Capability::SwishPayment, V2::Core::Account::Configuration::Merchant::Capability::TwintPayment, V2::Core::Account::Configuration::Merchant::Capability::UsBankTransferPayment, V2::Core::Account::Configuration::Merchant::Capability::ZipPayment, V2::Core::Account::Configuration::Recipient::Capability::BankAccount::Local, V2::Core::Account::Configuration::Recipient::Capability::BankAccount::Wire, V2::Core::Account::Configuration::Recipient::Capability::Card, V2::Core::Account::Configuration::Recipient::Capability::StripeBalance::Payout, V2::Core::Account::Configuration::Recipient::Capability::StripeBalance::StripeTransfer, V2::Core::Account::Configuration::Storer::Capability::FinancialAddress::BankAccount, V2::Core::Account::Configuration::Storer::Capability::HoldsCurrency::Eur, V2::Core::Account::Configuration::Storer::Capability::HoldsCurrency::Gbp, V2::Core::Account::Configuration::Storer::Capability::HoldsCurrency::Usd, V2::Core::Account::Configuration::Storer::Capability::InboundTransfer::BankAccount, V2::Core::Account::Configuration::Storer::Capability::OutboundPayment::BankAccount, V2::Core::Account::Configuration::Storer::Capability::OutboundPayment::Card, V2::Core::Account::Configuration::Storer::Capability::OutboundPayment::FinancialAccount, V2::Core::Account::Configuration::Storer::Capability::OutboundTransfer::BankAccount, and V2::Core::Account::Configuration::Storer::Capability::OutboundTransfer::FinancialAccount
    • Change type of V2::Core::Account::Identity::BusinessDetail::AnnualRevenue.amount, V2::Core::Account::Identity::BusinessDetail::MonthlyEstimatedRevenue.amount, V2::Core::AccountCreateParams::Identity::BusinessDetail::AnnualRevenue.amount, V2::Core::AccountCreateParams::Identity::BusinessDetail::MonthlyEstimatedRevenue.amount, V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::AnnualRevenue.amount, V2::Core::AccountTokenCreateParams::Identity::BusinessDetail::MonthlyEstimatedRevenue.amount, V2::Core::AccountUpdateParams::Identity::BusinessDetail::AnnualRevenue.amount, V2::Core::AccountUpdateParams::Identity::BusinessDetail::MonthlyEstimatedRevenue.amount, V2::FinancialAddressCreditSimulationCreditParams.amount, V2::MoneyManagement::Adjustment.amount, V2::MoneyManagement::InboundTransfer.amount, V2::MoneyManagement::InboundTransferCreateParams.amount, V2::MoneyManagement::OutboundPayment.amount, V2::MoneyManagement::OutboundPaymentCreateParams.amount, V2::MoneyManagement::OutboundPaymentQuote.amount, V2::MoneyManagement::OutboundPaymentQuote::EstimatedFee.amount, V2::MoneyManagement::OutboundPaymentQuoteCreateParams.amount, V2::MoneyManagement::OutboundTransfer.amount, V2::MoneyManagement::OutboundTransferCreateParams.amount, V2::MoneyManagement::ReceivedCredit.amount, V2::MoneyManagement::ReceivedDebit.amount, and V2::MoneyManagement::Transaction.amount from amount to an object
    • Change V2::Core::Account::Default.responsibilities to be required
    • Change V2::Core::Account::Default::Responsibility.fees_collector to be optional
    • Change V2::Core::Account::Default::Responsibility.losses_collector to be optional
    • Add support for financial_connections_account on V2::Core::Vault::UsBankAccount and V2::MoneyManagement::PayoutMethod::BankAccount
    • Change type of V2::MoneyManagement::FinancialAccount::Balance.available, V2::MoneyManagement::Transaction::BalanceImpact.available, and V2::MoneyManagement::TransactionEntry::BalanceImpact.available from amount to an object
    • Change type of V2::MoneyManagement::FinancialAccount::Balance.inbound_pending, V2::MoneyManagement::Transaction::BalanceImpact.inbound_pending, and V2::MoneyManagement::TransactionEntry::BalanceImpact.inbound_pending from amount to an object
    • Change type of V2::MoneyManagement::FinancialAccount::Balance.outbound_pending, V2::MoneyManagement::Transaction::BalanceImpact.outbound_pending, and V2::MoneyManagement::TransactionEntry::BalanceImpact.outbound_pending from amount to an object
    • Change type of V2::MoneyManagement::InboundTransfer::From.debited, V2::MoneyManagement::OutboundPayment::From.debited, V2::MoneyManagement::OutboundPaymentQuote::From.debited, and V2::MoneyManagement::OutboundTransfer::From.debited from amount to an object
    • Change type of V2::MoneyManagement::InboundTransfer::To.credited, V2::MoneyManagement::OutboundPayment::To.credited, V2::MoneyManagement::OutboundPaymentQuote::To.credited, and V2::MoneyManagement::OutboundTransfer::To.credited from amount to an object
    • Add support for transfer on V2::MoneyManagement::ReceivedCredit::BalanceTransfer
    • Change V2::Core::AccountTokenCreateParams.identity to be optional
    • Add support for event notification V2MoneyManagementPayoutMethodCreatedEvent with related object V2::MoneyManagement::PayoutMethod
    • Add support for error type ControlledByAlternateResourceError
    • Remove support for error type RateLimitError

See the changelog for more details.

Don't miss a new stripe-ruby release

NewReleases is sending notifications on new releases.