github stripe/stripe-go v84.2.0-beta.1

pre-release16 hours ago

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

  • #2209 Add EventNotificationHandler
  • #2222 Update generated code for beta
    • Add support for new resources ReserveHold, ReservePlan, and ReserveRelease
    • Add support for Get and List methods on resources ReserveHold and ReserveRelease
    • Add support for Get method on resource ReservePlan
    • Change type of V2FinancialAddressGeneratedMicrodeposits.Amounts from amount to an object
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.Amount, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.Amount, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.Amount, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.Amount, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.Amount from longInteger to emptyable(longInteger)
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.AmountType, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.AmountType, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.AmountType, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.AmountType, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.AmountType from enum('fixed'|'maximum') to emptyable(enum('fixed'|'maximum'))
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.EndDate, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.EndDate, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.EndDate, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.EndDate, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.EndDate from string to emptyable(string)
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.PaymentSchedule, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.PaymentSchedule, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.PaymentSchedule, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.PaymentSchedule, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.PaymentSchedule from enum to emptyable(enum)
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.PaymentsPerPeriod, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.PaymentsPerPeriod, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.PaymentsPerPeriod, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.PaymentsPerPeriod, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.PaymentsPerPeriod from longInteger to emptyable(longInteger)
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.Purpose, PaymentIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.Purpose, PaymentIntentPaymentMethodOptionsPaytoMandateOptionsParams.Purpose, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.Purpose, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.Purpose from enum to emptyable(enum)
    • Change type of CheckoutSessionPaymentMethodOptionsPaytoMandateOptionsParams.StartDate, SetupIntentConfirmPaymentMethodOptionsPaytoMandateOptionsParams.StartDate, and SetupIntentPaymentMethodOptionsPaytoMandateOptionsParams.StartDate from string to emptyable(string)
    • Add support for AsyncWorkflows on PaymentIntent
    • Add support for Payto on QuotePreviewInvoicePaymentSettingsPaymentMethodOptions
    • Add support for new value payto on enum QuotePreviewInvoicePaymentSettings.PaymentMethodTypes
    • Remove support for Requested on V2CoreAccountConfigurationCustomerCapabilitiesAutomaticIndirectTax, V2CoreAccountConfigurationMerchantCapabilitiesAchDebitPayments, V2CoreAccountConfigurationMerchantCapabilitiesAcssDebitPayments, V2CoreAccountConfigurationMerchantCapabilitiesAffirmPayments, V2CoreAccountConfigurationMerchantCapabilitiesAfterpayClearpayPayments, V2CoreAccountConfigurationMerchantCapabilitiesAlmaPayments, V2CoreAccountConfigurationMerchantCapabilitiesAmazonPayPayments, V2CoreAccountConfigurationMerchantCapabilitiesAuBecsDebitPayments, V2CoreAccountConfigurationMerchantCapabilitiesBacsDebitPayments, V2CoreAccountConfigurationMerchantCapabilitiesBancontactPayments, V2CoreAccountConfigurationMerchantCapabilitiesBlikPayments, V2CoreAccountConfigurationMerchantCapabilitiesBoletoPayments, V2CoreAccountConfigurationMerchantCapabilitiesCardPayments, V2CoreAccountConfigurationMerchantCapabilitiesCartesBancairesPayments, V2CoreAccountConfigurationMerchantCapabilitiesCashappPayments, V2CoreAccountConfigurationMerchantCapabilitiesEpsPayments, V2CoreAccountConfigurationMerchantCapabilitiesFpxPayments, V2CoreAccountConfigurationMerchantCapabilitiesGbBankTransferPayments, V2CoreAccountConfigurationMerchantCapabilitiesGrabpayPayments, V2CoreAccountConfigurationMerchantCapabilitiesIdealPayments, V2CoreAccountConfigurationMerchantCapabilitiesJcbPayments, V2CoreAccountConfigurationMerchantCapabilitiesJpBankTransferPayments, V2CoreAccountConfigurationMerchantCapabilitiesKakaoPayPayments, V2CoreAccountConfigurationMerchantCapabilitiesKlarnaPayments, V2CoreAccountConfigurationMerchantCapabilitiesKonbiniPayments, V2CoreAccountConfigurationMerchantCapabilitiesKrCardPayments, V2CoreAccountConfigurationMerchantCapabilitiesLinkPayments, V2CoreAccountConfigurationMerchantCapabilitiesMobilepayPayments, V2CoreAccountConfigurationMerchantCapabilitiesMultibancoPayments, V2CoreAccountConfigurationMerchantCapabilitiesMxBankTransferPayments, V2CoreAccountConfigurationMerchantCapabilitiesNaverPayPayments, V2CoreAccountConfigurationMerchantCapabilitiesOxxoPayments, V2CoreAccountConfigurationMerchantCapabilitiesP24Payments, V2CoreAccountConfigurationMerchantCapabilitiesPayByBankPayments, V2CoreAccountConfigurationMerchantCapabilitiesPaycoPayments, V2CoreAccountConfigurationMerchantCapabilitiesPaynowPayments, V2CoreAccountConfigurationMerchantCapabilitiesPromptpayPayments, V2CoreAccountConfigurationMerchantCapabilitiesRevolutPayPayments, V2CoreAccountConfigurationMerchantCapabilitiesSamsungPayPayments, V2CoreAccountConfigurationMerchantCapabilitiesSepaBankTransferPayments, V2CoreAccountConfigurationMerchantCapabilitiesSepaDebitPayments, V2CoreAccountConfigurationMerchantCapabilitiesStripeBalancePayouts, V2CoreAccountConfigurationMerchantCapabilitiesSwishPayments, V2CoreAccountConfigurationMerchantCapabilitiesTwintPayments, V2CoreAccountConfigurationMerchantCapabilitiesUsBankTransferPayments, V2CoreAccountConfigurationMerchantCapabilitiesZipPayments, V2CoreAccountConfigurationRecipientCapabilitiesBankAccountsLocal, V2CoreAccountConfigurationRecipientCapabilitiesBankAccountsWire, V2CoreAccountConfigurationRecipientCapabilitiesCards, V2CoreAccountConfigurationRecipientCapabilitiesStripeBalancePayouts, V2CoreAccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfers, V2CoreAccountConfigurationStorerCapabilitiesFinancialAddressesBankAccounts, V2CoreAccountConfigurationStorerCapabilitiesHoldsCurrenciesEur, V2CoreAccountConfigurationStorerCapabilitiesHoldsCurrenciesGbp, V2CoreAccountConfigurationStorerCapabilitiesHoldsCurrenciesUsd, V2CoreAccountConfigurationStorerCapabilitiesInboundTransfersBankAccounts, V2CoreAccountConfigurationStorerCapabilitiesOutboundPaymentsBankAccounts, V2CoreAccountConfigurationStorerCapabilitiesOutboundPaymentsCards, V2CoreAccountConfigurationStorerCapabilitiesOutboundPaymentsFinancialAccounts, V2CoreAccountConfigurationStorerCapabilitiesOutboundTransfersBankAccounts, and V2CoreAccountConfigurationStorerCapabilitiesOutboundTransfersFinancialAccounts
    • Add support for new values al_bank_account, am_bank_account, bn_bank_account, bw_bank_account, dz_bank_account, gy_bank_account, jm_bank_account, jo_bank_account, kw_bank_account, lk_bank_account, ma_bank_account, om_bank_account, and tz_bank_account on enum V2CoreAccountConfigurationRecipientDefaultOutboundDestination.Type
    • Change type of V2CoreAccountIdentityBusinessDetailsAnnualRevenue.Amount, V2CoreAccountIdentityBusinessDetailsAnnualRevenueParams.Amount, V2CoreAccountIdentityBusinessDetailsMonthlyEstimatedRevenue.Amount, V2CoreAccountIdentityBusinessDetailsMonthlyEstimatedRevenueParams.Amount, V2CoreAccountTokenIdentityBusinessDetailsAnnualRevenueParams.Amount, V2CoreAccountTokenIdentityBusinessDetailsMonthlyEstimatedRevenueParams.Amount, V2FinancialAddressCreditSimulationCreditParams.Amount, V2MoneyManagementAdjustment.Amount, V2MoneyManagementInboundTransfer.Amount, V2MoneyManagementInboundTransferParams.Amount, V2MoneyManagementOutboundPayment.Amount, V2MoneyManagementOutboundPaymentParams.Amount, V2MoneyManagementOutboundPaymentQuote.Amount, V2MoneyManagementOutboundPaymentQuoteEstimatedFee.Amount, V2MoneyManagementOutboundPaymentQuoteParams.Amount, V2MoneyManagementOutboundTransfer.Amount, V2MoneyManagementOutboundTransferParams.Amount, V2MoneyManagementReceivedCredit.Amount, V2MoneyManagementReceivedDebit.Amount, and V2MoneyManagementTransaction.Amount from amount to an object
    • Add support for new values at_stn, at_vat, be_vat, bg_vat, ca_gst_hst, cy_he, cy_vat, cz_vat, de_stn, dk_vat, ee_vat, es_vat, fi_vat, fr_rna, gr_afm, gr_vat, hr_mbs, hr_oib, hr_vat, hu_tin, hu_vat, ie_trn, ie_vat, lt_vat, lu_nif, lu_vat, lv_vat, mt_tin, mt_vat, my_itn, nl_rsin, nl_vat, nz_ird, pl_nip, pl_vat, ro_orc, ro_vat, se_vat, si_tin, si_vat, sk_dic, and sk_vat on enum V2CoreAccountIdentityBusinessDetailsIdNumber.Type
    • Remove support for value hk_mbs from enum V2CoreAccountIdentityBusinessDetailsIdNumber.Type
    • Add support for new values ar_cuil, at_stn, be_nrn, bg_ucn, bn_nric, ca_sin, ch_oasi, cl_rut, cn_pp, co_nuip, cr_ci, cy_tic, cz_rc, dk_cpr, do_cie, ec_ci, ee_ik, es_nif, fi_hetu, fr_nir, gb_nino, gr_afm, hr_oib, hu_ad, id_nik, ie_ppsn, is_kt, it_cf, jp_inc, ke_pin, li_peid, lt_ak, lu_nif, lv_pk, ng_nin, no_nin, nz_ird, pl_pesel, pt_nif, ro_cnp, se_pin, sk_dic, tr_tin, uy_dni, and za_id on enums V2CoreAccountIdentityIndividualIdNumber.Type and V2CoreAccountPersonIdNumber.Type
    • Add support for FinancialConnectionsAccount on V2CoreVaultUsBankAccount and V2MoneyManagementPayoutMethodBankAccount
    • Change type of V2MoneyManagementFinancialAccountBalance.Available, V2MoneyManagementTransactionBalanceImpact.Available, and V2MoneyManagementTransactionEntryBalanceImpact.Available from amount to an object
    • Change type of V2MoneyManagementFinancialAccountBalance.InboundPending, V2MoneyManagementTransactionBalanceImpact.InboundPending, and V2MoneyManagementTransactionEntryBalanceImpact.InboundPending from amount to an object
    • Change type of V2MoneyManagementFinancialAccountBalance.OutboundPending, V2MoneyManagementTransactionBalanceImpact.OutboundPending, and V2MoneyManagementTransactionEntryBalanceImpact.OutboundPending from amount to an object
    • Change type of V2MoneyManagementInboundTransferFrom.Debited, V2MoneyManagementOutboundPaymentFrom.Debited, V2MoneyManagementOutboundPaymentQuoteFrom.Debited, and V2MoneyManagementOutboundTransferFrom.Debited from amount to an object
    • Change type of V2MoneyManagementInboundTransferTo.Credited, V2MoneyManagementOutboundPaymentQuoteTo.Credited, V2MoneyManagementOutboundPaymentTo.Credited, and V2MoneyManagementOutboundTransferTo.Credited from amount to an object
    • Add support for Transfer on V2MoneyManagementReceivedCreditBalanceTransfer
    • Add support for new value transfer on enum V2MoneyManagementReceivedCreditBalanceTransfer.Type
    • Add support for event notification V2MoneyManagementPayoutMethodCreatedEvent with related object V2MoneyManagementPayoutMethod
    • Add support for error type ControlledByAlternateResourceError
    • Remove support for error type RateLimitError
    • Add support for error code account_token_required_for_v2_account on QuotePreviewInvoiceLastFinalizationError

See the changelog for more details.

Don't miss a new stripe-go release

NewReleases is sending notifications on new releases.