CARVIEW |
Navigation Menu
-
Notifications
You must be signed in to change notification settings - Fork 483
Releases: stripe/stripe-go
v82.4.0-beta.2
Compare
- #2084 Pull in V2 FinancialAccount changes for June release
- Add support for
Close
andNew
methods on resourceV2MoneyManagementFinancialAccount
- Add support for new value
storer
on enumV2CoreAccount.AppliedConfigurations
- Add support for
Storer
onV2CoreAccountConfigurationParams
andV2CoreAccountConfiguration
- Add support for new values
financial_addresses.bank_accounts
,holds_currencies.gbp
,inbound_transfers.financial_accounts
,outbound_payments.bank_accounts
,outbound_payments.cards
,outbound_payments.financial_accounts
,outbound_transfers.bank_accounts
, andoutbound_transfers.financial_accounts
on enumV2CoreAccountRequirementsEntriesImpactRestrictsCapabilities.Capability
- Add support for new value
storer
on enumV2CoreAccountRequirementsEntriesImpactRestrictsCapabilities.Configuration
- Add support for
StatusDetails
onV2MoneyManagementFinancialAccount
- Add support for
Status
onV2MoneyManagementFinancialAccountListParams
- Add support for thin events
V2CoreAccountIncludingConfigurationStorerCapabilityStatusUpdatedEvent
andV2CoreAccountIncludingConfigurationStorerUpdatedEvent
with related objectV2CoreAccount
- Add support for error types
AlreadyExistsError
andNonZeroBalanceError
- Add support for
Assets 2
v82.4.0-beta.1
Compare
- #2069 Update generated code for beta
- Change type of
CheckoutSessionSubscriptionDataParams.BillingMode
,InvoiceCreatePreviewScheduleDetailsParams.BillingMode
,InvoiceCreatePreviewSubscriptionDetailsParams.BillingMode
,QuoteSubscriptionData.BillingMode
,QuoteSubscriptionDataParams.BillingMode
,SubscriptionParams.BillingMode
, andSubscriptionScheduleParams.BillingMode
fromenum('classic'|'flexible')
tobilling_mode
- Add support for
SubmissionMethod
onDisputeEvidenceDetails
- Add support for
OnDemand
andSubscriptions
onOrderPaymentSettingsPaymentMethodOptionsKlarnaParams
- Change type of
OrderPaymentSettingsPaymentMethodOptionsKlarna.SetupFutureUsage
andOrderPaymentSettingsPaymentMethodOptionsKlarnaParams.SetupFutureUsage
fromliteral('none')
toenum('none'|'off_session'|'on_session')
- Add support for
Crypto
onPaymentAttemptRecordPaymentMethodDetails
andPaymentRecordPaymentMethodDetails
- Add support for new value
buut
on enumsPaymentAttemptRecordPaymentMethodDetailsIdeal.Bank
andPaymentRecordPaymentMethodDetailsIdeal.Bank
- Add support for new value
BUUTNL2A
on enumsPaymentAttemptRecordPaymentMethodDetailsIdeal.BIC
andPaymentRecordPaymentMethodDetailsIdeal.BIC
- Change type of
PaymentIntentConfirmPaymentMethodOptionsGopayParams.SetupFutureUsage
,PaymentIntentPaymentMethodOptionsGopay.SetupFutureUsage
, andPaymentIntentPaymentMethodOptionsGopayParams.SetupFutureUsage
fromliteral('none')
toenum('none'|'off_session')
- Add support for new value
crypto
on enumQuotePreviewInvoicePaymentSettings.PaymentMethodTypes
- Change type of
QuotePreviewSubscriptionSchedule.BillingMode
,Subscription.BillingMode
, andSubscriptionSchedule.BillingMode
fromenum('classic'|'flexible')
toSubscriptionsResourceBillingMode
- Change type of
SubscriptionMigrateParams.BillingMode
fromliteral('flexible')
tobilling_mode_migrate
- Remove support for
BillingModeDetails
onSubscription
- Add support for new value
xx
on enumsV2CoreAccountConfigurationCustomerAutomaticIndirectTaxLocation.Country
,V2CoreAccountConfigurationCustomerShippingAddress.Country
,V2CoreAccountConfigurationMerchantSupportAddress.Country
,V2CoreAccountIdentity.Country
,V2CoreAccountIdentityBusinessDetailsAddress.Country
,V2CoreAccountIdentityBusinessDetailsScriptAddressesKana.Country
,V2CoreAccountIdentityBusinessDetailsScriptAddressesKanji.Country
,V2CoreAccountIdentityIndividualAdditionalAddresses.Country
,V2CoreAccountIdentityIndividualAddress.Country
,V2CoreAccountIdentityIndividualScriptAddressesKana.Country
,V2CoreAccountIdentityIndividualScriptAddressesKanji.Country
,V2CorePersonAdditionalAddresses.Country
,V2CorePersonAddress.Country
,V2CorePersonScriptAddressesKana.Country
,V2CorePersonScriptAddressesKanji.Country
, andV2MoneyManagementFinancialAccount.Country
- Add support for new value
unsupported_entity_type
on enumsV2CoreAccountConfigurationCustomerCapabilitiesAutomaticIndirectTaxStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAchDebitPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAcssDebitPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAffirmPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAfterpayClearpayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAlmaPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAmazonPayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesAuBecsDebitPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesBacsDebitPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesBancontactPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesBlikPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesBoletoPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesCardPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesCartesBancairesPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesCashappPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesEpsPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesFpxPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesGbBankTransferPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesGrabpayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesIdealPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesJcbPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesJpBankTransferPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesKakaoPayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesKlarnaPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesKonbiniPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesKrCardPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesLinkPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesMobilepayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesMultibancoPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesMxBankTransferPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesNaverPayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesOxxoPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesP24PaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesPayByBankPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesPaycoPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesPaynowPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesPromptpayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesRevolutPayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesSamsungPayPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesSepaBankTransferPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesSepaDebitPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesStripeBalancePayoutsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesSwishPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesTwintPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesUsBankTransferPaymentsStatusDetail.Code
,V2CoreAccountConfigurationMerchantCapabilitiesZipPaymentsStatusDetail.Code
,V2CoreAccountConfigurationRecipientCapabilitiesBankAccountsLocalStatusDetail.Code
,V2CoreAccountConfigurationRecipientCapabilitiesBankAccountsWireStatusDetail.Code
,V2CoreAccountConfigurationRecipientCapabilitiesCardsStatusDetail.Code
,V2CoreAccountConfigurationRecipientCapabilitiesStripeBalancePayoutsStatusDetail.Code
, andV2CoreAccountConfigurationRecipientCapabilitiesStripeBalanceStripeTransfersStatusDetail.Code
- Add support for
ProofOfAddress
onV2CoreAccountIdentityBusinessDetailsDocumentsParams
andV2CoreAccountIdentityBusinessDetailsDocuments
- Add support for new value
xx
on enumsV2CoreAccountIdentityIndividual.Nationalities
andV2CorePerson.Nationalities
- Add support for
Metadata
onV2MoneyManagementFinancialAccount
- Remove support for
Description
onV2MoneyManagementFinancialAccount
- Add support for new value
pending
on enumV2MoneyManagementFinancialAccount.Status
- Remove support for
Attempts
onV2PaymentsOffSessionPayment
- Add support for
FromAccount
,OutboundPayment
, andOutboundTransfer
onV2MoneyManagementReceivedCreditBalanceTransfer
- Change type of
V2MoneyManagementReceivedCreditBalanceTransfer.Type
fromliteral('payout_v1')
toenum('outbound_payment'|'outbound_transfer'|'payout_v1')
- Add support for error codes
recipient_feature_not_active
,storer_capability_missing
, andstorer_capability_not_active
onFeatureNotEnabledError
- Remove support for error code
outbound_payment_recipient_feature_not_active
onFeatureNotEnabledError
- Add support for error code
insufficient_funds
onInsufficientFundsError
- Remove support for error codes
outbound_payment_insufficient_funds
andoutbound_transfer_insufficient_funds
onInsufficientFundsError
- Add support for error codes
recipient_amount_limit_exceeded
andrecipient_count_limit_exceeded
onQuotaExceededError
- Remove support for error codes
outbound_payment_recipient_amount_limit_exceeded
andoutbound_payment_recipient_count_limit_exceeded
onQuotaExceededError
- Add support for error code
recipient_email_does_not_exist
onRecipientNotNotifiableError
- Remove support for error code
outbound_payment_recipient_email_does_not_exist
onRecipientNotNotifiableError
- Change type of
Assets 2
v82.3.0
Compare
- #2078 Update generated code
- Add support for
Migrate
method on resourceSubscription
- Add support for
CollectPaymentMethod
andConfirmPaymentIntent
methods on resourceTerminalReader
- Add support for
CryptoPayments
onAccountCapabilitiesParams
andAccountCapabilities
- Add support for
ProofOfAddress
onAccountDocumentsParams
- Add support for
MonthlyPayoutDays
andWeeklyPayoutDays
onAccountSettingsPayoutsScheduleParams
andAccountSettingsPayoutsSchedule
- Add support for
Crypto
onChargePaymentMethodDetails
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodParams
,PaymentMethod
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
Subscriptions
onCheckoutSessionPaymentMethodOptionsKlarnaParams
,PaymentIntentConfirmPaymentMethodOptionsKlarnaParams
, andPaymentIntentPaymentMethodOptionsKlarnaParams
- Add support for
BillingMode
onCheckoutSessionSubscriptionDataParams
,InvoiceCreatePreviewScheduleDetailsParams
,InvoiceCreatePreviewSubscriptionDetailsParams
,QuoteSubscriptionDataParams
,QuoteSubscriptionData
,SubscriptionParams
,SubscriptionScheduleParams
,SubscriptionSchedule
, andSubscription
- Change type of
ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlan.Type
,ConfirmationTokenPaymentMethodOptionsCardInstallmentsPlanParams.Type
,InvoicePaymentSettingsPaymentMethodOptionsCardInstallmentsPlanParams.Type
,PaymentIntentConfirmPaymentMethodOptionsCardInstallmentsPlanParams.Type
,PaymentIntentPaymentMethodOptionsCardInstallmentsPlan.Type
, andPaymentIntentPaymentMethodOptionsCardInstallmentsPlanParams.Type
fromliteral('fixed_count')
toenum('bonus'|'fixed_count'|'revolving')
- Add support for new value
buut
on enumConfirmationTokenPaymentMethodPreviewIdeal.Bank
- Add support for new value
BUUTNL2A
on enumConfirmationTokenPaymentMethodPreviewIdeal.BIC
- Add support for new value
crypto
on enumsConfirmationTokenPaymentMethodPreview.Type
andPaymentMethod.Type
- Change type of
Dispute.EnhancedEligibilityTypes
fromliteral('visa_compelling_evidence_3')
toenum('visa_compelling_evidence_3'|'visa_compliance')
- Add support for new value
compliance
on enumDisputePaymentMethodDetailsCard.CaseType
- Add support for new value
terminal.reader.action_updated
on enumEvent.Type
- Add support for
RelatedPerson
onIdentityVerificationSessionParams
andIdentityVerificationSession
- Add support for
Matching
onIdentityVerificationSessionOptions
- Add support for new value
crypto
on enumsInvoicePaymentSettings.PaymentMethodTypes
andSubscriptionPaymentSettings.PaymentMethodTypes
- Add support for
Klarna
onMandatePaymentMethodDetails
,SetupIntentConfirmPaymentMethodOptionsParams
,SetupIntentPaymentMethodOptionsParams
, andSetupIntentPaymentMethodOptions
- Add support for
OnDemand
onPaymentIntentConfirmPaymentMethodOptionsKlarnaParams
andPaymentIntentPaymentMethodOptionsKlarnaParams
- Change type of
PaymentIntentConfirmPaymentMethodOptionsKlarnaParams.SetupFutureUsage
,PaymentIntentPaymentMethodOptionsKlarna.SetupFutureUsage
, andPaymentIntentPaymentMethodOptionsKlarnaParams.SetupFutureUsage
fromliteral('none')
toenum('none'|'off_session'|'on_session')
- Add support for
Ua
onTaxRegistrationCountryOptionsParams
andTaxRegistrationCountryOptions
- Change type of
TerminalLocationParams.DisplayName
fromstring
toemptyable(string)
- Add support for
CollectPaymentMethod
andConfirmPaymentIntent
onTerminalReaderAction
- Add support for new values
collect_payment_method
andconfirm_payment_intent
on enumTerminalReaderAction.Type
- Add support for
Status
onTreasuryFinancialAccountListParams
- Add support for snapshot event
EventTypeTerminalReaderActionUpdated
with resourceTerminalReader
- Add support for
- #2082 Add form information to amount
- #2076 Switch to use generated API versions and add major/monthly version constants
- Export constants for the major and monthly API versions
- e.g.
2025-05-28.basil
has major versionbasil
and monthly version2025-05-28
- e.g.
- Export constants for the major and monthly API versions
Assets 2
v82.3.0-beta.2
Compare
- #2081 Pull in OffSessionPayment changes for the May release
Assets 2
v82.2.1
v82.3.0-beta.1
Compare
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
Assets 2
v82.2.0
Compare
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
Assets 2
v82.2.0-beta.2
Compare
- #2059 Update generated code for beta
Release specs are identical.
Assets 2
v82.2.0-beta.1
Compare
-
#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.
Assets 2
v82.1.0
Compare
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