Releases: stripe/stripe-go
v82.3.0-beta.1
This release changes the pinned API version to 2025-05-28.preview
.
-
#2060 Update generated code for beta
Breaking changes
- Remove support for deprecated previews
- Remove support for resources
BillingMeterErrorReport
,GiftCardsCard
,GiftCardsTransaction
, andPrivacyRedactionJobRootObjects
- Remove support for
Get
,List
,New
,Update
, andValidate
methods on resourceGiftCardsCard
- Remove support for
Cancel
,Confirm
,Get
,List
,New
, andUpdate
methods on resourceGiftCardsTransaction
- Remove support for
Provisioning
onProductParams
andProduct
- Remove support for snapshot event
EventTypeBillingMeterErrorReportTriggered
with resourceBillingMeterErrorReport
- Remove support for error codes
gift_card_balance_insufficient
,gift_card_code_exists
, andgift_card_inactive
onError
andQuotePreviewInvoiceLastFinalizationError
- Remove support for resources
- Remove support for
Credits
onOrderParams
andOrder
- Remove support for
AmountRemaining
onOrder
- Remove support for
AmountCredit
onOrderTotalDetails
- Remove support for
AsyncWorkflows
onPaymentIntentCaptureParams
,PaymentIntentConfirmParams
,PaymentIntentDecrementAuthorizationParams
,PaymentIntentIncrementAuthorizationParams
,PaymentIntentParams
, andPaymentIntent
- Remove support for values
credits_attributed_to_debits
andlegacy_prorations
from enumsQuotePreviewSubscriptionSchedule.BillingMode
,QuoteSubscriptionData.BillingMode
,Subscription.BillingMode
, andSubscriptionSchedule.BillingMode
- Remove support for
StatusDetails
andStatus
onTaxAssociation
- Change type of
InvoiceCreatePreviewSubscriptionDetailsParams.CancelAt
andSubscriptionParams.CancelAt
fromDateTime
toDateTime | enum('max_period_end'|'min_period_end')
- Change type of
CheckoutSessionLineItemParams.Quantity
fromemptyable(longInteger)
tolongInteger
- Change type of
PrivacyRedactionJob.Objects
from$Privacy.RedactionJobRootObjects
toRedactionResourceRootObjects
- Change type of
PrivacyRedactionJob.Status
fromstring
toenum
- Change type of
PrivacyRedactionJob.ValidationBehavior
fromstring
toenum('error'|'fix')
- Change type of
PrivacyRedactionJobValidationError.Code
fromstring
toenum
- Change type of
PrivacyRedactionJobValidationError.ErroringObject
frommap(string: string)
toRedactionResourceErroringObject
Other changes
- Add support for
Migrate
method on resourceSubscription
- Add support for
Distance
,PickupLocationName
,ReturnLocationName
, andVehicleIdentificationNumber
onChargeCapturePaymentDetailsCarRentalParams
,ChargePaymentDetailsCarRentalParams
,PaymentIntentCapturePaymentDetailsCarRentalParams
,PaymentIntentConfirmPaymentDetailsCarRentalParams
,PaymentIntentPaymentDetailsCarRentalParams
, andPaymentIntentPaymentDetailsCarRental
- Add support for
DriverIdentificationNumber
andDriverTaxNumber
onChargeCapturePaymentDetailsCarRentalDriverParams
,ChargePaymentDetailsCarRentalDriverParams
,PaymentIntentCapturePaymentDetailsCarRentalDriverParams
,PaymentIntentConfirmPaymentDetailsCarRentalDriverParams
,PaymentIntentPaymentDetailsCarRentalDriverParams
, andPaymentIntentPaymentDetailsCarRentalDriver
- Add support for
Institution
onFinancialConnectionsAccount
- Add support for
Countries
onFinancialConnectionsInstitution
- Add support for
Location
andReader
onPaymentAttemptRecordPaymentMethodDetailsAffirm
,PaymentAttemptRecordPaymentMethodDetailsWechatPay
,PaymentRecordPaymentMethodDetailsAffirm
, andPaymentRecordPaymentMethodDetailsWechatPay
- Add support for
Hooks
onPaymentIntentCaptureParams
,PaymentIntentConfirmParams
,PaymentIntentDecrementAuthorizationParams
,PaymentIntentIncrementAuthorizationParams
,PaymentIntentParams
, andPaymentIntent
- Add support for
CardPresent
onPaymentIntentAmountDetailsLineItemPaymentMethodOptions
- Change type of
PaymentRecordReportPaymentAttemptCanceledParams.Metadata
,PaymentRecordReportPaymentAttemptFailedParams.Metadata
,PaymentRecordReportPaymentAttemptGuaranteedParams.Metadata
,PaymentRecordReportPaymentAttemptParams.Metadata
, andPaymentRecordReportPaymentParams.Metadata
frommap(string: string)
toemptyable(map(string: string))
- Add support for
Livemode
onPrivacyRedactionJob
- Add support for new values
classic
andflexible
on enumsQuotePreviewSubscriptionSchedule.BillingMode
,QuoteSubscriptionData.BillingMode
,Subscription.BillingMode
, andSubscriptionSchedule.BillingMode
- Add support for
BillingThresholds
onQuotePreviewSubscriptionScheduleDefaultSettings
,QuotePreviewSubscriptionSchedulePhaseItem
, andQuotePreviewSubscriptionSchedulePhase
- Add support for
BillingModeDetails
onSubscription
- Add support for
TaxTransactionAttempts
onTaxAssociation
- Add support for
ConfirmConfig
onTerminalReaderActionConfirmPaymentIntent
andTerminalReaderConfirmPaymentIntentParams
- Add support for error code
forwarding_api_upstream_error
onQuotePreviewInvoiceLastFinalizationError
- Remove support for deprecated previews
v82.2.0
This release changes the pinned API version to 2025-05-28.basil
.
- #2063 Update generated code
- Add support for
AttachPayment
method on resourceInvoice
- Add support for
CollectInputs
method on resourceTerminalReader
- Add support for
SucceedInputCollection
andTimeoutInputCollection
test helper methods on resourceTerminalReader
- Add support for
PixPayments
onAccountCapabilitiesParams
andAccountCapabilities
- Add support for
DisputesList
andPaymentDisputes
onAccountSessionComponentsParams
andAccountSessionComponents
- Add support for
RefundAndDisputePrefunding
onBalance
- Add support for
BalanceType
onBalanceTransaction
- Add support for
Location
andReader
onChargePaymentMethodDetailsAffirm
andChargePaymentMethodDetailsWechatPay
- Add support for
PaymentMethodRemove
onCheckoutSessionSavedPaymentMethodOptionsParams
- Add support for
SetupFutureUsage
onCheckoutSessionPaymentMethodOptionsNaverPay
- Add support for
PostPaymentAmount
andPrePaymentAmount
onCreditNote
- Add support for new value
mixed
on enumCreditNote.Type
- Add support for new value
invoice_payment.paid
on enumEvent.Type
- Add support for
Sex
,UnparsedPlaceOfBirth
, andUnparsedSex
onIdentityVerificationReportDocument
andIdentityVerificationSessionVerifiedOutputs
- Add support for
BillingThresholds
onInvoiceCreatePreviewScheduleDetailsPhaseItemParams
,InvoiceCreatePreviewScheduleDetailsPhaseParams
,InvoiceCreatePreviewSubscriptionDetailsItemParams
,SubscriptionItemParams
,SubscriptionItem
,SubscriptionParams
,SubscriptionScheduleDefaultSettingsParams
,SubscriptionScheduleDefaultSettings
,SubscriptionSchedulePhaseItemParams
,SubscriptionSchedulePhaseItem
,SubscriptionSchedulePhaseParams
,SubscriptionSchedulePhase
, andSubscription
- Add support for
Satispay
onPaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptionsParams
, andPaymentIntentPaymentMethodOptions
- Add support for
CaptureMethod
onPaymentIntentPaymentMethodOptionsBillie
- Add support for
KakaoPay
,KrCard
,NaverPay
,Payco
, andSamsungPay
onPaymentMethodConfigurationParams
andPaymentMethodConfiguration
- Add support for
NetworkDeclineCode
onRefundDestinationDetailsPaypal
- Add support for
Metadata
onTaxCalculationLineItemParams
andTaxCalculationLineItem
- Add support for
ReturnURL
onTerminalReaderActionProcessPaymentIntentProcessConfig
andTerminalReaderProcessPaymentIntentProcessConfigParams
- Add support for
CollectInputs
onTerminalReaderAction
- Add support for new value
collect_inputs
on enumTerminalReaderAction.Type
- Add support for new value
simulated_stripe_s700
on enumTerminalReader.DeviceType
- Add support for snapshot event
EventTypeInvoicePaymentPaid
with resourceInvoicePayment
- Add support for error code
forwarding_api_upstream_error
onError
,InvoiceLastFinalizationError
,PaymentIntentLastPaymentError
,SetupAttemptSetupError
,SetupIntentLastSetupError
, andStripeError
- Add support for
- #2062 Adds CONTRIBUTING.md
v82.2.0-beta.2
- #2059 Update generated code for beta
Release specs are identical.
v82.2.0-beta.1
-
#2034 Update generated code for beta
This release changes the pinned API version to2025-04-30.preview
.- Add support for
BillingMode
onCheckoutSessionSubscriptionDataParams
,InvoiceCreatePreviewScheduleDetailsParams
,InvoiceCreatePreviewSubscriptionDetailsParams
,QuotePreviewSubscriptionSchedule
,QuoteSubscriptionDataParams
,QuoteSubscriptionData
,SubscriptionParams
,SubscriptionScheduleParams
,SubscriptionSchedule
, andSubscription
- Add support for new values
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsCheckoutSessionCollectedInformationTaxIds.Type
,OrderTaxDetailsTaxId.Type
, andQuotePreviewInvoiceCustomerTaxIds.Type
- Add support for
AccountNumber
onConfirmationTokenPaymentMethodPreviewAcssDebit
andPaymentMethodAcssDebit
- Add support for new value
balance_settings.updated
on enumEvent.Type
- Add support for
-
#2054 Unexport GetBaseEvent and V2ErrorCode
⚠️ UnexportedGetBaseEvent
-->getBaseEvent
. This function should not be called. Instead, type-cast theV2Event
to a concrete Event struct.⚠️ Removed theV2ErrorCode
type. Error codes should not be handled programmatically for V2 errors.
v82.1.0
This release changes the pinned API version to 2025-04-30.basil
.
🎉 Introducing new Stripe Client
Starting with v82.1, the new stripe.Client
type is replacing client.API
to provide a more ergonomic, consistent, and less error-prone experience. You create the former using stripe.NewClient(stripeKey)
. It’s almost a drop-in replacement, except for the differences listed below.
- Service method names now align with Stripe API docs. The
stripe.Client
usesCreate
,Retrieve
,Update
, andDelete
(instead ofNew
,Get
,Update
, andDel
). - The first argument of each service method is a
context.Context
. - Parameter objects are now method-specific. For example,
CustomerCreateParams
andCustomerDeleteParams
instead of simplyCustomerParams
. This allows us to put the right fields in the right methods at compile time. - Services are all version-namespaced for symmetry. E.g.
stripeClient.V1Accounts
andstripeClient.V2Accounts
. List
methods return aniter.Seq2
, so they can be ranged over without explicit calls toNext
,Current
, andErr
.
🎉 Native support in Go for V2 APIs
params := &stripe.V2CoreEventListParams{ObjectID: stripe.String("mtr_123")}
for event, err := range sc.V2CoreEvents.List(context.TODO(), params) {
// handle err
// process event object
}
- All V2 APIs are now supported natively through the
stripe.Client
More details can be found at https://github.com/stripe/stripe-go/wiki/Migration-guide-for-Stripe-Client
- #2029 Update generated code
- Add support for
MinorityOwnedBusinessDesignation
onAccountBusinessProfileParams
andAccountBusinessProfile
- Add support for
RegistrationDate
onAccountCompanyParams
,AccountCompany
, andTokenAccountCompanyParams
- Add support for
USCfpbData
onAccountParams
,PersonParams
,Person
, andTokenPersonParams
- Add support for new value
tax_id_prohibited
on enumsInvoiceLastFinalizationError.Code
,PaymentIntentLastPaymentError.Code
,SetupAttemptSetupError.Code
,SetupIntentLastSetupError.Code
, andStripeError.Code
- Add support for new value
verification_legal_entity_structure_mismatch
on enumsBankAccountFutureRequirementsErrors.Code
andBankAccountRequirementsErrors.Code
- Add support for
TaxID
onChargeBillingDetails
,ConfirmationTokenPaymentMethodDataBillingDetailsParams
,ConfirmationTokenPaymentMethodPreviewBillingDetails
,PaymentIntentConfirmPaymentMethodDataBillingDetailsParams
,PaymentIntentPaymentMethodDataBillingDetailsParams
,PaymentMethodBillingDetailsParams
,PaymentMethodBillingDetails
,SetupIntentConfirmPaymentMethodDataBillingDetailsParams
,SetupIntentPaymentMethodDataBillingDetailsParams
,TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams
, andTreasuryOutboundPaymentDestinationPaymentMethodDataBillingDetailsParams
- Add support for
WalletOptions
onCheckoutSessionParams
andCheckoutSession
- Add support for
Provider
onCheckoutSessionAutomaticTax
,InvoiceAutomaticTax
, andQuoteAutomaticTax
- Add support for new values
aw_tin
,az_tin
,bd_bin
,bf_ifu
,bj_ifu
,cm_niu
,cv_nif
,et_tin
,kg_tin
, andla_tin
on enumsCheckoutSessionCustomerDetailsTaxIds.Type
,TaxCalculationCustomerDetailsTaxId.Type
,TaxId.Type
, andTaxTransactionCustomerDetailsTaxId.Type
- Add support for
PaymentMethodOptions
onConfirmationTokenParams
andTestHelpersConfirmationTokenParams
- Add support for
Installments
onConfirmationTokenPaymentMethodOptionsCard
- Add support for
Context
onEvent
- Add support for new value
affirm
on enumsInvoicePaymentSettings.PaymentMethodTypes
andSubscriptionPaymentSettings.PaymentMethodTypes
- Add support for
Billie
onPaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptionsParams
, andPaymentIntentPaymentMethodOptions
- Add support for
Pix
onPaymentMethodConfigurationParams
andPaymentMethodConfiguration
- Add support for
Klarna
onPaymentMethodDomain
- Add support for
PendingReason
onRefund
- Add support for
Aw
,Az
,Bd
,Bf
,Bj
,Cm
,Cv
,ET
,In
,Kg
,La
, andPh
onTaxRegistrationCountryOptionsParams
andTaxRegistrationCountryOptions
- Add support for
- #2022 Improved handling for enums in params
- You can now pass
string
enums intostripe.String
. For example,stripe.String(stripe.CurrencyUSD)
instead ofstripe.String(string(stripe.CurrencyUSD))
- You can now pass
- #1916 perf: do not computing signature when timestamp is not valid
- #1860 fix: typo in error
- #2018 Backport beta fixes
v82.1.0-beta.3
- #2023 Update generated code for beta
- Add support for new resources
FxQuote
andPaymentIntentAmountDetailsLineItem
- Add support for new services
fxquote.Client
(accessed byclient.API.FxQuotes
) andpaymentintentamountdetailslineitem.Client
(accessed byclient.API.PaymentIntentAmountDetailsLineItems
) - Remove support for service
invoicepayment.Client
(accessed byclient.API.InvoicePayments
) - Add support for
Get
,List
, andNew
methods on resourceFxQuote
- Remove support for
AttachPaymentIntent
method on resourceInvoice
- Remove support for
Get
andList
methods on resourceInvoicePayment
- Add support for
List
method on resourcePaymentIntentAmountDetailsLineItem
- Add support for
List
method on servicepaymentintentamountdetailslineitem.Client
- Add support for
Get
,List
, andNew
methods on servicefxquote.Client
- Remove support for
Get
andList
methods on serviceinvoicepayment.Client
- Remove support for
AttachPaymentIntent
method on serviceinvoice.Client
- Add support for
RegistrationDate
onAccountCompanyParams
,AccountCompany
, andTokenAccountCompanyParams
- Add support for
USCfpbData
onAccountParams
,PersonParams
,Person
, andTokenPersonParams
- Add support for
CustomerReference
andOrderReference
onChargeCapturePaymentDetailsParams
,ChargePaymentDetailsParams
,PaymentIntentCapturePaymentDetailsParams
,PaymentIntentConfirmPaymentDetailsParams
,PaymentIntentPaymentDetailsParams
, andPaymentIntentPaymentDetails
- Add support for
TaxID
onChargeBillingDetails
,ConfirmationTokenPaymentMethodDataBillingDetailsParams
,ConfirmationTokenPaymentMethodPreviewBillingDetails
,PaymentIntentConfirmPaymentMethodDataBillingDetailsParams
,PaymentIntentPaymentMethodDataBillingDetailsParams
,PaymentMethodBillingDetailsParams
,PaymentMethodBillingDetails
,SetupIntentConfirmPaymentMethodDataBillingDetailsParams
,SetupIntentPaymentMethodDataBillingDetailsParams
,TestHelpersConfirmationTokenPaymentMethodDataBillingDetailsParams
, andTreasuryOutboundPaymentDestinationPaymentMethodDataBillingDetailsParams
- Add support for
PriceData
onCheckoutSessionLineItemParams
- Add support for
Script
onCouponParams
andCoupon
- Add support for
Type
onCoupon
- Add support for new value
fx_quote.expired
on enumEvent.Type
- Add support for new value
affirm
on enumsInvoicePaymentSettings.PaymentMethodTypes
,QuotePreviewInvoicePaymentSettings.PaymentMethodTypes
, andSubscriptionPaymentSettings.PaymentMethodTypes
- Add support for
FxQuote
onPaymentIntentConfirmParams
,PaymentIntentParams
,PaymentIntent
,TransferParams
, andTransfer
- Add support for
DiscountAmount
,LineItems
,Shipping
, andTax
onPaymentIntentAmountDetails
- Add support for
Pix
onPaymentMethodConfigurationParams
andPaymentMethodConfiguration
- Add support for
PendingReason
onRefund
- Add support for
Aw
,Az
,Bd
,Bj
,ET
,Kg
,La
, andPh
onTaxRegistrationCountryOptionsParams
andTaxRegistrationCountryOptions
- Add support for snapshot event
EventTypeFxQuoteExpired
with resourceFxQuote
- Add support for new resources
- #2033 Mbroshi/merge go beta
v82.1.0-beta.2
-
#2019 Update generated code for beta
Breaking changes
- Change type of
V2MoneyManagementReceivedDebit.StatusTransitions
froman object
tonullable(an object)
- Remove support for values
bank_accounts.local_uk
,bank_accounts.wire_uk
,cards_uk
, andcrypto_wallets_v2
from enumEventsV2CoreAccountIncludingConfigurationRecipientCapabilityStatusUpdatedEvent.UpdatedCapability
Additions
- Add support for new resources
Privacy.RedactionJobRootObjects
,Privacy.RedactionJobValidationError
, andPrivacy.RedactionJob
- Add support for
Cancel
,Get
,List
,New
,Run
,Update
, andValidate
methods on resourceRedactionJob
- Add support for
Get
andList
methods on resourceRedactionJobValidationError
- Add support for
MinorityOwnedBusinessDesignation
onAccountBusinessProfileParams
andAccountBusinessProfile
- Add support for
ExportTaxTransactions
andPaymentDisputes
onAccountSessionComponentsParams
- Add support for new value
tax_id_prohibited
on enumsInvoiceLastFinalizationError.Code
,PaymentIntentLastPaymentError.Code
,QuotePreviewInvoiceLastFinalizationError.Code
,SetupAttemptSetupError.Code
,SetupIntentLastSetupError.Code
, andStripeError.Code
- Add support for new value
verification_legal_entity_structure_mismatch
on enumsBankAccountFutureRequirementsErrors.Code
andBankAccountRequirementsErrors.Code
- Add support for new value
fixed_term_loan
on enumCapitalFinancingOffer.Type
- Add support for
WalletOptions
onCheckoutSessionParams
andCheckoutSession
- Add support for new values
privacy.redaction_job.canceled
,privacy.redaction_job.created
,privacy.redaction_job.ready
,privacy.redaction_job.succeeded
, andprivacy.redaction_job.validation_error
on enumEvent.Type
- Add support for
Klarna
onPaymentMethodDomain
- Add support for
In
onTaxRegistrationCountryOptionsParams
andTaxRegistrationCountryOptions
- Change type of
-
#2014 Handle top-level External Account service
- Add support for top-level External Account CRUDL calls by adding separate
GetCard
/GetBankAccount
,NewCard
/NewBankAccount
, etc. calls.
- Add support for top-level External Account CRUDL calls by adding separate
v82.1.0-beta.1
-
#2009 Update generated code for beta
This release changes the pinned API version to
2025-03-31.preview
Breaking Changes
- Remove support for
AmountOverpaid
onInvoicePayment
- Remove support for values
out_of_band_payment
andpayment_record
from enumInvoicePaymentPayment.Type
- Remove support for
RateCardSubscriptionDetails
onInvoiceItemParent
- Remove support for
ApplicationFeeAmount
,PaidOutOfBand
, andPaid
onQuotePreviewInvoice
- Remove support for
BillingThresholds
onQuotePreviewSubscriptionScheduleDefaultSettings
,QuotePreviewSubscriptionSchedulePhasesItems
, andQuotePreviewSubscriptionSchedulePhases
- Remove support for
Value
onTerminalReaderActionCollectInputsInputsSelectionChoices
,TerminalReaderActionCollectInputsInputsSelection
, andTerminalReaderCollectInputsInputsSelectionChoicesParams
- Change type of
InvoiceCreatePreviewSubscriptionDetailsParams.CancelAt
andSubscriptionParams.CancelAt
fromDateTime | literal('min_period_end')
toDateTime
- Change type of
PaymentAttemptRecord.payment_method_details.type
andPaymentRecord.payment_method_details.type
fromliteral('custom')
tostring
- Change type of
PaymentAttemptRecord.payment_record
fromstring
tonullable(string)
- Change type of
PaymentRecord.latest_payment_attempt_record
fromstring
tonullable(string)
Additions
- Add support for new resources
BalanceSettings
andTlExternalAccount
- Add support for
Get
andUpdate
methods on resourceBalanceSettings
- Add support for
Del
,Get
,List
,New
, andUpdate
methods on resourceTlExternalAccount
- Add support for
StripeBalancePayments
onAccountCapabilitiesParams
andAccountCapabilities
- Add support for
CustomerAccount
onBillingCreditBalanceSummaryParams
,BillingCreditBalanceSummary
,BillingCreditBalanceTransactionListParams
,BillingCreditGrantListParams
,BillingCreditGrantParams
,BillingCreditGrant
,BillingPortalSessionParams
,BillingPortalSession
,CashBalance
,CheckoutSessionListParams
,CheckoutSessionParams
,CheckoutSession
,ConfirmationTokenPaymentMethodPreview
,CreditNoteListParams
,CreditNote
,CustomerBalanceTransaction
,CustomerCashBalanceTransaction
,CustomerSessionParams
,CustomerSession
,Customer
,Discount
,FinancialConnectionsAccountAccountHolder
,FinancialConnectionsAccountListAccountHolderParams
,FinancialConnectionsSessionAccountHolderParams
,FinancialConnectionsSessionAccountHolder
,InvoiceCreatePreviewParams
,InvoiceItemListParams
,InvoiceItemParams
,InvoiceItem
,InvoiceListParams
,InvoiceParams
,Invoice
,PaymentIntentListParams
,PaymentIntentParams
,PaymentIntent
,PaymentMethodAttachParams
,PaymentMethod
,PromotionCodeListParams
,PromotionCodeParams
,PromotionCode
,QuoteListParams
,QuoteParams
,QuotePreviewInvoice
,QuotePreviewSubscriptionSchedule
,Quote
,SetupAttempt
,SetupIntentListParams
,SetupIntentParams
,SetupIntent
,SubscriptionListParams
,SubscriptionParams
,SubscriptionScheduleListParams
,SubscriptionScheduleParams
,SubscriptionSchedule
,Subscription
,TaxIdOwner
, andTaxId
- Add support for
StripeBalance
onChargePaymentMethodDetails
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,PaymentAttemptRecordPaymentMethodDetails
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodParams
,PaymentMethod
,PaymentRecordPaymentMethodDetails
,SetupAttemptPaymentMethodDetails
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
UpdateLineItems
onCheckoutSessionPermissionsParams
andCheckoutSessionPermissions
- Add support for
Provider
onCheckoutSessionAutomaticTax
,InvoiceAutomaticTax
,QuoteAutomaticTax
, andQuotePreviewInvoiceAutomaticTax
- Add support for
PaymentMethodOptions
onConfirmationTokenParams
- Add support for
Installments
onConfirmationTokenPaymentMethodOptionsCard
- Add support for
DurationInMonths
onCouponParams
- Add support for new value
repeating
on enumCoupon.Duration
- Add support for
TaxCalculationReference
onCreditNoteLineItem
,InvoiceLineItem
, andLineItem
- Add support for
Context
onEvent
- Add support for
RelatedCustomerAccount
onIdentityVerificationSessionListParams
,IdentityVerificationSessionParams
, andIdentityVerificationSession
- Add support for
CancelAtPeriodEnd
onInvoiceCreatePreviewSubscriptionDetailsParams
,SubscriptionParams
, andSubscription
- Add support for
NzBankAccount
onPaymentAttemptRecordPaymentMethodDetails
andPaymentRecordPaymentMethodDetails
- Add support for
Billie
onPaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptionsParams
, andPaymentIntentPaymentMethodOptions
- Add support for
PayoutMethod
onPayoutParams
andPayout
- Add support for
ConfirmationSecret
andParent
onQuotePreviewInvoice
- Add support for new values
forwarding_api_retryable_upstream_error
,v2_account_disconnection_unsupported
, andv2_account_missing_configuration
on enumQuotePreviewInvoiceLastFinalizationError.Code
- Add support for new values
nz_bank_account
andstripe_balance
on enumQuotePreviewInvoicePaymentSettings.PaymentMethodTypes
- Add support for
ID
andText
onTerminalReaderActionCollectInputsInputsSelectionChoices
,TerminalReaderActionCollectInputsInputsSelection
, andTerminalReaderCollectInputsInputsSelectionChoicesParams
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
New
method on resourceV2.MoneyManagement.OutboundPaymentQuote
- Add support for
Get
andList
methods on resourcesV2.MoneyManagement.Adjustment
,V2.MoneyManagement.FinancialAccount
,V2.MoneyManagement.ReceivedCredit
,V2.MoneyManagement.ReceivedDebit
,V2.MoneyManagement.TransactionEntry
, andV2.MoneyManagement.Transaction
- Add support for
Get
,List
, andNew
methods on resourcesV2.MoneyManagement.FinancialAddress
andV2.MoneyManagement.InboundTransfer
- Add support for
Cancel
,Get
,List
, andNew
methods on resourcesV2.MoneyManagement.OutboundPayment
andV2.MoneyManagement.OutboundTransfer
- Add support for
Archive
,Get
,List
, andUnarchive
methods on resourceV2.MoneyManagement.PayoutMethod
- Add support for
Cancel
,Get
,List
,New
, andUpdate
methods on resourceV2.MoneyManagement.OutboundSetupIntent
- Add support for
Get
method on resourceV2.MoneyManagement.PayoutMethodsBankAccountSpec
- Add support for new values
account_number
,fedwire_routing_number
, androuting_number
on enumInvalidPaymentMethod.InvalidParam
- Add support for new thin event
V2MoneyManagementFinancialAccountCreatedEvent
with related objectV2.MoneyManagement.FinancialAccount
- Add support for new thin events
V2MoneyManagementFinancialAddressActivatedEvent
andV2MoneyManagementFinancialAddressFailedEvent
with related objectV2.MoneyManagement.FinancialAddress
- Add support for new thin events
V2MoneyManagementInboundTransferAvailableEvent
,V2MoneyManagementInboundTransferBankDebitFailedEvent
,V2MoneyManagementInboundTransferBankDebitProcessingEvent
,V2MoneyManagementInboundTransferBankDebitQueuedEvent
,V2MoneyManagementInboundTransferBankDebitReturnedEvent
, andV2MoneyManagementInboundTransferBankDebitSucceededEvent
with related objectV2.MoneyManagement.InboundTransfer
- Add support for new thin events
V2MoneyManagementOutboundPaymentCanceledEvent
,V2MoneyManagementOutboundPaymentCreatedEvent
,V2MoneyManagementOutboundPaymentFailedEvent
,V2MoneyManagementOutboundPaymentPostedEvent
, andV2MoneyManagementOutboundPaymentReturnedEvent
with related objectV2.MoneyManagement.OutboundPayment
- Add support for new thin events
V2MoneyManagementOutboundTransferCanceledEvent
,V2MoneyManagementOutboundTransferCreatedEvent
,V2MoneyManagementOutboundTransferFailedEvent
,V2MoneyManagementOutboundTransferPostedEvent
, andV2MoneyManagementOutboundTransferReturnedEvent
with related objectV2.MoneyManagement.OutboundTransfer
- Add support for new thin events
V2MoneyManagementReceivedCreditAvailableEvent
,V2MoneyManagementReceivedCreditFailedEvent
,V2MoneyManagementReceivedCreditReturnedEvent
, andV2MoneyManagementReceivedCreditSucceededEvent
with related objectV2.MoneyManagement.ReceivedCredit
- Add support for new thin events
V2MoneyManagementReceivedDebitCanceledEvent
,V2MoneyManagementReceivedDebitFailedEvent
,V2MoneyManagementReceivedDebitPendingEvent
,V2MoneyManagementReceivedDebitSucceededEvent
, andV2MoneyManagementReceivedDebitUpdatedEvent
with related objectV2.MoneyManagement.ReceivedDebit
- Add support for new error types
AlreadyCanceledError
,BlockedByStripeError
,ControlledByDashboardError
,FeatureNotEnabledError
,FinancialAccountNotOpenError
,InsufficientFundsError
,InvalidPayoutMethodError
,NotCancelableError
, andRecipientNotNotifiableError
...
v82.0.0
-
#1992 Support for APIs in the new API version 2025-03-31.basil
This release changes the pinned API version to
2025-03-31.basil
.⚠️ Breaking changes due to changes in the Stripe APIPlease review details for the breaking changes and alternatives in the Stripe API changelog before upgrading.
- Remove support for resources
UsageRecordSummary
andUsageRecord
- Remove support for
New
method on resourceUsageRecord
- Remove support for
List
method on resourceUsageRecordSummary
- Remove support for
UpcomingLines
andUpcoming
methods on resourceInvoice
- Remove support for
UsageRecordSummaries
method on resourceSubscriptionItem
- Remove support for
Invoice
onCharge
andPaymentIntent
- Remove support for
ShippingDetails
onCheckoutSession
- Remove support for
Carrier
,Phone
, andTrackingNumber
onCheckoutSessionCollectedInformationShippingDetails
- Remove support for
Refund
onCreditNoteParams
,CreditNotePreviewLinesParams
,CreditNotePreviewParams
, andCreditNote
- Remove support for
TaxAmounts
onCreditNoteLineItem
,CreditNote
, andInvoiceLineItem
- Remove support for
AmountExcludingTax
andUnitAmountExcludingTax
onCreditNoteLineItem
andInvoiceLineItem
- Remove support for
Coupon
onCustomerParams
,InvoiceCreatePreviewParams
,InvoiceCreatePreviewScheduleDetailsPhasesParams
,SubscriptionParams
,SubscriptionSchedulePhasesParams
, andSubscriptionSchedulePhases
- Remove support for
PromotionCode
onCustomerParams
andSubscriptionParams
- Remove support for
Price
onInvoiceAddLinesLinesParams
,InvoiceItemParams
,InvoiceItem
,InvoiceLineItemParams
,InvoiceLineItem
, andInvoiceUpdateLinesLinesParams
- Remove support for
BillingThresholds
onInvoiceCreatePreviewScheduleDetailsPhasesItemsParams
,InvoiceCreatePreviewScheduleDetailsPhasesParams
,InvoiceCreatePreviewSubscriptionDetailsItemsParams
,SubscriptionItemParams
,SubscriptionItem
,SubscriptionItemsParams
,SubscriptionParams
,SubscriptionScheduleDefaultSettingsParams
,SubscriptionScheduleDefaultSettings
,SubscriptionSchedulePhasesItemsParams
,SubscriptionSchedulePhasesItems
,SubscriptionSchedulePhasesParams
,SubscriptionSchedulePhases
, andSubscription
- Remove support for
ApplicationFeeAmount
,Charge
,PaidOutOfBand
,Paid
,PaymentIntent
,Quote
,Subscription
,SubscriptionDetails
,SubscriptionProrationDate
,Tax
,TotalTaxAmounts
, andTransferData
onInvoice
- Remove support for
Discount
onInvoice
andSubscription
- Remove support for
InvoiceItem
,ProrationDetails
,Proration
,TaxRates
, andType
onInvoiceLineItem
- Remove support for
Plan
andSubscriptionItem
onInvoiceItem
andInvoiceLineItem
- Remove support for
UnitAmount
onInvoiceItemParams
andInvoiceItem
- Remove support for
Subscription
andUnitAmountDecimal
onInvoiceItem
- Remove support for
NaverPay
onPaymentMethodParams
- Remove support for
AggregateUsage
onPlanParams
,Plan
,PriceRecurringParams
, andPriceRecurring
- Remove support for
CurrentPeriodEnd
andCurrentPeriodStart
onSubscription
⚠️ Other Breaking changes in the SDK- #1999 Upgrade to go 1.18
- Go version 1.18 or later is now required to address security vulnerabilities in Go <= 1.17. In particular, HTTP/2 is enabled now by default for all users (it was disabled for Go <= 1.14).
- #1998 Breaking changes to support V2
- Renamed the
stripe.Amount
type in thestripe.Balance
object tostripe.BalanceAmount
- Changed the signature of the
CallRaw
method in thestripe.Backend
interface to accept a[]byte
instead of*form.Values
in its fourth argument. Call sites can safely replace a*form.Values
argumentv
with[]byte(v.Encode())
(Encode
isnil
-safe).
- Renamed the
Additions to Stripe API
- Add support for new resource
InvoicePayment
- Add support for
Get
andList
methods on resourceInvoicePayment
- Add support for
BilliePayments
,NzBankAccountBECSDebitPayments
, andSatispayPayments
onAccountCapabilitiesParams
andAccountCapabilities
- Add support for
HostedPaymentMethodSave
onAccountSettingsInvoicesParams
andAccountSettingsInvoices
- Add support for
Invoices
onAccountSettingsParams
- Add support for new values
forwarding_api_retryable_upstream_error
andsetup_intent_mobile_wallet_unsupported
on enumsInvoiceLastFinalizationError.Code
,PaymentIntentLastPaymentError.Code
,SetupAttemptSetupError.Code
,SetupIntentLastSetupError.Code
, andStripeError.Code
- Add support for new values
stripe_balance_payment_debit_reversal
andstripe_balance_payment_debit
on enumBalanceTransaction.Type
- Add support for new values
information_missing
,invalid_signator
,verification_failed_authorizer_authority
, andverification_rejected_ownership_exemption_reason
on enumsBankAccountFutureRequirementsErrors.Code
andBankAccountRequirementsErrors.Code
- Add support for new value
last
on enumBillingMeterDefaultAggregation.Formula
- Add support for
PresentmentDetails
onCharge
,CheckoutSession
,PaymentIntent
, andRefund
- Add support for
Billie
andSatispay
onChargePaymentMethodDetails
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentPaymentMethodDataParams
,PaymentMethodConfigurationParams
,PaymentMethodConfiguration
,PaymentMethodParams
,PaymentMethod
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
NzBankAccount
onChargePaymentMethodDetails
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,MandatePaymentMethodDetails
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodConfigurationParams
,PaymentMethodConfiguration
,PaymentMethodParams
,PaymentMethod
,SetupAttemptPaymentMethodDetails
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
OptionalItems
onCheckoutSessionParams
,CheckoutSession
,PaymentLinkParams
, andPaymentLink
- Add support for
Permissions
onCheckoutSessionParams
andCheckoutSession
- Add support for
ShippingOptions
onCheckoutSessionParams
- Add support for new value
custom
on enumCheckoutSession.UIMode
- Add support for
BuyerID
onConfirmationTokenPaymentMethodPreviewNaverPay
andPaymentMethodNaverPay
- Add support for new values
billie
,nz_bank_account
, andsatispay
on enumsConfirmationTokenPaymentMethodPreview.Type
andPaymentMethod.Type
- Add support for
Refunds
onCreditNoteParams
,CreditNotePreviewLinesParams
,CreditNotePreviewParams
, andCreditNote
- Add support for
TotalTaxes
onCreditNote
andInvoice
- Add support for
Taxes
onCreditNoteLineItem
andInvoiceLineItem
- Add support for
TaxabilityReason
onInvoiceAddLinesLinesTaxAmountsParams
,InvoiceLineItemTaxAmountsParams
, andInvoiceUpdateLinesLinesTaxAmountsParams
- Add support for
JurisdictionLevel
onInvoiceAddLinesLinesTaxAmountsTaxRateDataParams
,InvoiceLineItemTaxAmountsTaxRateDataParams
, andInvoiceUpdateLinesLinesTaxAmountsTaxRateDataParams
- Add support for
AmountOverpaid
,ConfirmationSecret
, andPayments
onInvoice
- Add support for
Parent
onInvoiceItem
,InvoiceLineItem
, andInvoice
- Add support for new values
klarna
andnz_bank_account
on enumsInvoicePaymentSettings.PaymentMethodTypes
andSubscriptionPaymentSettings.PaymentMethodTypes
- Add support for
CheckoutSession
onCustomerBalanceTransaction
- Add support for new values
checkout_session_subscription_payment_canceled
andcheckout_session_subscription_payment
on enumCustomerBalanceTransaction.Type
- Add support for new value
invoice.overpaid
on enumEvent.Type
- Add support for
Pricing
onInvoiceAddLinesLinesParams
,InvoiceItemParams
,InvoiceItem
,InvoiceLineItemParams
,InvoiceLineItem
, andInvoiceUpdateLinesLinesParams
- Add support for
Wifi
onTerminalConfigurationParams
andTerminalConfiguration
- Add support for
NzBankTransfer
onRefundDestinationDetails
- Add support for new value
canceled
on enumReview.ClosedReason
- Add support for
CurrentPeriodEnd
andCurrentPeriodStart
onSubscriptionItem
- Add support for
NaverPay
onMandatePaymentMethodDetails
andSetupAttemptPaymentMethodDetails
- Add support for
SetupFutureUsage
onPaymentIntentConfirmPaymentMethodOptionsNaverPayParams
,PaymentIntentPaymentMethodOptionsNaverPayParams
, andPaymentIntentPaymentMethodOptionsNaverPay
- Add support for new value
expired
on enumPaymentIntent.CancellationReason
- Add support for
DefaultValue
onPaymentLinkCustomFieldsDropdownParams
,PaymentLinkCustomFieldsDropdown
,PaymentLinkCustomFieldsNumericParams
,PaymentLinkCustomFieldsNumeric
,PaymentLinkCustomFieldsTextParams
, andPaymentLinkCustomFieldsText
- Add support for new values
billie
andsatispay
on enumPaymentLink.PaymentMethodTypes
- Remove support for resources
v81.5.0-beta.1
-
#1997 Beta SDK updates between Open API versions 1473 and 1505
- Add support for
SucceedInputCollection
andTimeoutInputCollection
test helper methods on resourceTerminal.Reader
- Add support for
TargetDate
onOrderPaymentSettingsPaymentMethodOptionsAcssDebitParams
,OrderPaymentSettingsPaymentMethodOptionsAcssDebit
,OrderPaymentSettingsPaymentMethodOptionsSepaDebitParams
, andOrderPaymentSettingsPaymentMethodOptionsSepaDebit
- Add support for
-
#1995 Revert "Merge pull request #1987 from stripe/latest-codegen-beta"
-
#1987 Update generated code for beta
- Add support for
SucceedInputCollection
andTimeoutInputCollection
test helper methods on resourceTerminal.Reader
- Add support for new value
setup_intent_mobile_wallet_unsupported
on enumsInvoiceLastFinalizationErrorCode
,PaymentIntentLastPaymentErrorCode
,SetupAttemptSetupErrorCode
,SetupIntentLastSetupErrorCode
, andStripeErrorCode
- Remove support for
Carrier
,Phone
, andTrackingNumber
onCheckoutSessionCollectedInformationShippingDetails
- Add support for
InterchangeFeesAmount
,NetTotalAmount
,NetworkFeesAmount
,OtherFeesAmount
,OtherFeesCount
, andTransactionAmount
onIssuingSettlement
- Remove support for
InterchangeFees
,NetTotal
,NetworkFees
, andTransactionVolume
onIssuingSettlement
- Add support for
TargetDate
onOrderPaymentSettingsPaymentMethodOptionsAcssDebitParams
,OrderPaymentSettingsPaymentMethodOptionsAcssDebit
,OrderPaymentSettingsPaymentMethodOptionsSepaDebitParams
, andOrderPaymentSettingsPaymentMethodOptionsSepaDebit
- Add support for
ACHCreditTransfer
,ACHDebit
,ACSSDebit
,AUBECSDebit
,Affirm
,AfterpayClearpay
,Alipay
,Alma
,AmazonPay
,BACSDebit
,BLIK
,Bancontact
,Boleto
,CardPresent
,Card
,CashApp
,CustomerBalance
,EPS
,FPX
,Giropay
,Gopay
,Grabpay
,IDBankTransfer
,IDEAL
,InteracPresent
,KakaoPay
,Klarna
,Konbini
,KrCard
,Link
,MbWay
,Mobilepay
,Multibanco
,NaverPay
,OXXO
,P24
,PayByBank
,PayNow
,Payco
,Paypal
,Payto
,Pix
,PromptPay
,Qris
,Rechnung
,RevolutPay
,SEPACreditTransfer
,SEPADebit
,SamsungPay
,Shopeepay
,Sofort
,StripeAccount
,Swish
,TWINT
,USBankAccount
,WeChatPay
,WeChat
, andZip
onPaymentAttemptRecordPaymentMethodDetails
andPaymentRecordPaymentMethodDetails
- Change type of
PaymentAttemptRecordPaymentMethodDetailsCustom
andPaymentRecordPaymentMethodDetailsCustom
fromnullable(PaymentsPrimitivesPaymentRecordsResourcePaymentMethodDetailsResourceCustomDetails)
toPaymentsPrimitivesPaymentRecordsResourcePaymentMethodCustomDetails
- Change type of
PaymentAttemptRecordPaymentMethodDetailsType
andPaymentRecordPaymentMethodDetailsType
fromliteral('custom')
tostring
- Add support for
Wifi
onTerminalConfigurationParams
andTerminalConfiguration
- Add support for