-
#1830 Update logic for Stripe::addBetaVersion
- Stripe::addBetaVersion will use the highest version number used for a beta feature instead of throwing an
Exceptionon a conflict as it had done previously.
- Stripe::addBetaVersion will use the highest version number used for a beta feature instead of throwing an
-
#1814, #1840 Update generated code for beta
This release changes the pinned API version to
2025-03-31.previewBreaking Changes
- Remove support for values
repeatingandvariablefrom enumCoupon.duration - Remove support for
amount_overpaidonInvoicePayment - Remove support for values
out_of_band_paymentandpayment_recordfrom enumInvoicePayment.payment.type - Remove support for
interchange_fees,net_total,network_fees, andtransaction_volumeonIssuing.Settlement - Remove support for
application_fee_amount,discount,paid_out_of_band,paid,payment_intent,quote,subscription_details,subscription_proration_date,tax,total_tax_amounts, andtransfer_dataonQuotePreviewInvoice - Change type of
PaymentAttemptRecord.payment_method_details.typeandPaymentRecord.payment_method_details.typefromliteral('custom')tostring - Change type of
PaymentAttemptRecord.payment_recordfromstringtonullable(string) - Change type of
PaymentRecord.latest_payment_attempt_recordfromstringtonullable(string)
Additions
- Add support for new value
repeatingon enumCoupon.duration - Add support for new resources
BalanceSettings - Add support for
retrieveandupdatemethods on resourceBalanceSettings - Add support for
all,create,delete,retrieve, andupdatemethods on a newExternalAccountServiceclass to access cards and bank accounts made available in the new pathv1/external_accounts. Access this viaStripeClient.externalAccounts - Add support for new values
stripe_balance_payment_debit_reversalandstripe_balance_payment_debiton enumBalanceTransaction.type - Add support for
customer_accountonBilling.CreditBalanceSummary,Billing.CreditGrant,BillingPortal.Session,CashBalance,Checkout.Session,CreditNote,CustomerBalanceTransaction,CustomerCashBalanceTransaction,CustomerSession,Customer,Discount,InvoiceItem,Invoice,PaymentIntent,PaymentMethod,PromotionCode,QuotePreviewInvoice,QuotePreviewSubscriptionSchedule,Quote,SetupAttempt,SetupIntent,SubscriptionSchedule,Subscription, andTaxId - Add support for
tax_calculation_referenceonCreditNoteLineItem,InvoiceLineItem, andLineItem - Add support for
contextonEvent - Add support for
related_customer_accountonIdentity.VerificationSession - Add support for
network_dataonIssuing.DisputeSettlementDetail - Add support for
interchange_fees_amount,net_total_amount,network_fees_amount,other_fees_amount,other_fees_count, andtransaction_amountonIssuing.Settlement - Add support for
reported_byonPaymentAttemptRecord - Add support for
stripe_balanceonPaymentMethod - Add support for
payout_methodonPayout - Add support for
confirmation_secret,parent, andtotal_taxesonQuotePreviewInvoice - Add support for new values
forwarding_api_retryable_upstream_error,setup_intent_mobile_wallet_unsupported,v2_account_disconnection_unsupported, andv2_account_missing_configurationon enumQuotePreviewInvoice.last_finalization_error.code - Add support for new values
klarna,nz_bank_account, andstripe_balanceon enumQuotePreviewInvoice.payment_settings.payment_method_types
New APIs for Money CardManagement
- Add support for new resources
V2.FinancialAddressCreditSimulation,V2.FinancialAddressGeneratedMicrodeposits,V2.MoneyManagement.Adjustment,V2.MoneyManagement.FinancialAccount,V2.MoneyManagement.FinancialAddress,V2.MoneyManagement.InboundTransfer,V2.MoneyManagement.OutboundPaymentQuote,V2.MoneyManagement.OutboundPayment,V2.MoneyManagement.OutboundSetupIntent,V2.MoneyManagement.OutboundTransfer,V2.MoneyManagement.PayoutMethod,V2.MoneyManagement.PayoutMethodsBankAccountSpec,V2.MoneyManagement.ReceivedCredit,V2.MoneyManagement.ReceivedDebit,V2.MoneyManagement.TransactionEntry, andV2.MoneyManagement.Transaction - Add support for
createmethod on resourceV2.MoneyManagement.OutboundPaymentQuote - Add support for
allandretrievemethods on resourcesV2.MoneyManagement.Adjustment,V2.MoneyManagement.FinancialAccount,V2.MoneyManagement.ReceivedCredit,V2.MoneyManagement.ReceivedDebit,V2.MoneyManagement.TransactionEntry, andV2.MoneyManagement.Transaction - Add support for
all,create, andretrievemethods on resourcesV2.MoneyManagement.FinancialAddressandV2.MoneyManagement.InboundTransfer - Add support for
all,cancel,create, andretrievemethods on resourcesV2.MoneyManagement.OutboundPaymentandV2.MoneyManagement.OutboundTransfer - Add support for
all,archive,retrieve, andunarchivemethods on resourceV2.MoneyManagement.PayoutMethod - Add support for
all,cancel,create,retrieve, andupdatemethods on resourceV2.MoneyManagement.OutboundSetupIntent - Add support for
retrievemethod on resourceV2.MoneyManagement.PayoutMethodsBankAccountSpec - Add support for new values
account_number,fedwire_routing_number, androuting_numberon enuminvalid_payment_method.invalid_param - Add support for new thin event
V2MoneyManagementFinancialAccountCreatedEventwith related objectV2.MoneyManagement.FinancialAccount - Add support for new thin events
V2MoneyManagementFinancialAddressActivatedEventandV2MoneyManagementFinancialAddressFailedEventwith related objectV2.MoneyManagement.FinancialAddress - Add support for new thin events
V2MoneyManagementInboundTransferAvailableEvent,V2MoneyManagementInboundTransferBankDebitFailedEvent,V2MoneyManagementInboundTransferBankDebitProcessingEvent,V2MoneyManagementInboundTransferBankDebitQueuedEvent,V2MoneyManagementInboundTransferBankDebitReturnedEvent, andV2MoneyManagementInboundTransferBankDebitSucceededEventwith related objectV2.MoneyManagement.InboundTransfer - Add support for new thin events
V2MoneyManagementOutboundPaymentCanceledEvent,V2MoneyManagementOutboundPaymentCreatedEvent,V2MoneyManagementOutboundPaymentFailedEvent,V2MoneyManagementOutboundPaymentPostedEvent, andV2MoneyManagementOutboundPaymentReturnedEventwith related objectV2.MoneyManagement.OutboundPayment - Add support for new thin events
V2MoneyManagementOutboundTransferCanceledEvent,V2MoneyManagementOutboundTransferCreatedEvent,V2MoneyManagementOutboundTransferFailedEvent,V2MoneyManagementOutboundTransferPostedEvent, andV2MoneyManagementOutboundTransferReturnedEventwith related objectV2.MoneyManagement.OutboundTransfer - Add support for new thin events
V2MoneyManagementReceivedCreditAvailableEvent,V2MoneyManagementReceivedCreditFailedEvent,V2MoneyManagementReceivedCreditReturnedEvent, andV2MoneyManagementReceivedCreditSucceededEventwith related objectV2.MoneyManagement.ReceivedCredit - Add support for new thin events
V2MoneyManagementReceivedDebitCanceledEvent,V2MoneyManagementReceivedDebitFailedEvent,V2MoneyManagementReceivedDebitPendingEvent,V2MoneyManagementReceivedDebitSucceededEvent, andV2MoneyManagementReceivedDebitUpdatedEventwith related objectV2.MoneyManagement.ReceivedDebit - Add support for new error types
AlreadyCanceledException,BlockedByStripeException,ControlledByDashboardException,FeatureNotEnabledException,FinancialAccountNotOpenException,InsufficientFundsException,InvalidPayoutMethodException,NotCancelableException, andRecipientNotNotifiableException
New APIs for Accounts v2 in private preview
See SaaS platform payments with subscription billing using Accounts v2
- Add support for new resources
V2.Core.AccountLink,V2.Core.Account,V2.Core.Person,V2.Core.Vault.GbBankAccount,V2.Core.Vault.UsBankAccount - Add support for
all,close,create,retrieve, andupdatemethods on resourceV2.Core.Account - Add support for
createmethod on resourceV2.Core.AccountLink - Add support for
acknowledge_confirmation_of_payee,archive,create,initiate_confirmation_of_payee, andretrievemethods on resourceV2.Core.Vault.GbBankAccount - Add support for
archive,create,retrieve, andupdatemethods on resourceV2.Core.Vault.UsBankAccount - Add support for new thin events
V2CoreAccountIncludingConfigurationCustomerCapabilityStatusUpdatedEvent,V2CoreAccountIncludingConfigurationCustomerUpdatedEvent,V2CoreAccountIncludingConfigurationMerchantCapabilityStatusUpdatedEvent,V2CoreAccountIncludingConfigurationMerchantUpdatedEvent,V2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent,V2CoreAccountIncludingConfigurationRecipientUpdatedEvent,V2CoreAccountIncludingIdentityUpdatedEvent, andV2CoreAccountIncludingRequirementsUpdatedEvent - Add support for new thin event
V2CoreAccountLinkCompletedEventwith related objectV2.Core.AccountLink - Add support for new thin events
V2CoreAccountPersonCreatedEvent,V2CoreAccountPersonDeletedEvent, andV2CoreAccountPersonUpdatedEventwith related objectV2.Core.Person
Changes
- Change type of
InvoicePayment.is_defaultfromnullable(boolean)toboolean - Change type of
PaymentAttemptRecord.payment_method_details.customandPaymentRecord.payment_method_details.customfromnullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails)toPaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails
- Remove support for values