Releases: stripe/stripe-go
Releases · stripe/stripe-go
v78.5.0-beta.1
- #1850 Update generated code for beta
- Add support for
PaymentMethodSettings
onAccountSessionComponentsParams
- Add support for
CancelSubscriptionSchedule
onQuoteLine
andQuoteLinesParams
- Add support for
v78.4.0
- #1852 Update generated code
- Add support for
SetupFutureUsage
onCheckoutSessionPaymentMethodOptionsAmazonPay
,CheckoutSessionPaymentMethodOptionsRevolutPay
,PaymentIntentPaymentMethodOptionsAmazonPay
, andPaymentIntentPaymentMethodOptionsRevolutPay
- Change type of
EntitlementsActiveEntitlementFeature
fromstring
to*EntitlementsFeature
- Remove support for inadvertently released identity verification features
Email
andPhone
onIdentityVerificationSessionOptionsParams
- Add support for new values
amazon_pay
andrevolut_pay
on enumsInvoicePaymentSettingsPaymentMethodTypes
andSubscriptionPaymentSettingsPaymentMethodTypes
- Add support for
AmazonPay
andRevolutPay
onMandatePaymentMethodDetails
andSetupAttemptPaymentMethodDetails
- Add support for
EndingBefore
,Limit
, andStartingAfter
onPaymentMethodConfigurationListParams
- Add support for
Mobilepay
onPaymentMethodConfigurationParams
andPaymentMethodConfiguration
- Add support for
v78.4.0-beta.1
- #1848 Update generated code for beta
- Add support for
CapitalOverview
,TaxRegistrations
, andTaxSettings
onAccountSessionComponentsParams
- Add support for
ExternalAccountCollection
onAccountSessionComponentsFinancialAccountFeaturesParams
- Add support for
SubscriptionTrialFromPlan
onInvoiceUpcomingLinesParams
andInvoiceUpcomingParams
- Add support for
v78.3.0
- #1849 Update generated code
- Add support for
CreatePreview
method on resourceInvoice
- Add support for
PaymentMethodData
onCheckoutSessionParams
- Add support for
SavedPaymentMethodOptions
onCheckoutSessionParams
andCheckoutSession
- Add support for
Mobilepay
onCheckoutSessionPaymentMethodOptionsParams
andCheckoutSessionPaymentMethodOptions
- Add support for
AllowRedisplay
onConfirmationTokenPaymentMethodDataParams
,CustomerListPaymentMethodsParams
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentPaymentMethodDataParams
,PaymentMethodParams
,SetupIntentConfirmPaymentMethodDataParams
, andSetupIntentPaymentMethodDataParams
- Add support for
ScheduleDetails
andSubscriptionDetails
onInvoiceUpcomingLinesParams
andInvoiceUpcomingParams
- Add support for
v78.2.0
- #1847 Update generated code
- Add support for new resource
Entitlements.ActiveEntitlementSummary
- Add support for
Balances
andPayoutsList
onAccountSessionComponentsParams
andAccountSessionComponents
- Add support for new value
entitlements.active_entitlement_summary.updated
on enumEventType
- Remove support for
Config
onForwardingRequestParams
andForwardingRequest
. This field is no longer used by the Forwarding Request API. - Add support for
CaptureMethod
onPaymentIntentConfirmPaymentMethodOptionsRevolutPayParams
,PaymentIntentPaymentMethodOptionsRevolutPayParams
, andPaymentIntentPaymentMethodOptionsRevolutPay
- Add support for
Swish
onPaymentMethodConfigurationParams
andPaymentMethodConfiguration
- Add support for new resource
v78.2.0-beta.1
- #1843 Update generated code for beta
- Add support for
Get
method on resourcesEntitlements.ActiveEntitlement
andEntitlements.Feature
- Add support for
Fees
,Losses
,RequirementCollection
, andStripeDashboard
onAccountControllerParams
- Add support for new values
bh_vat
,kz_bin
,ng_tin
, andom_vat
on enumOrderTaxDetailsTaxIdsType
- Add support for
HostedVoucherURL
onPaymentIntentNextActionMultibancoDisplayDetails
- Add support for
Toggles
onTerminalReaderActionCollectInputsInputs
andTerminalReaderCollectInputsInputsParams
- Add support for
Email
,Numeric
,Phone
, andText
onTerminalReaderActionCollectInputsInputs
- Add support for
v78.1.0
- #1846 Update generated code
- Add support for
AccountManagement
andNotificationBanner
onAccountSessionComponentsParams
andAccountSessionComponents
- Add support for
ExternalAccountCollection
onAccountSessionComponentsAccountOnboardingFeaturesParams
andAccountSessionComponentsAccountOnboardingFeatures
- Add support for new values
billing_policy_remote_function_response_invalid
,billing_policy_remote_function_timeout
,billing_policy_remote_function_unexpected_status_code
, andbilling_policy_remote_function_unreachable
on enumsInvoiceLastFinalizationErrorCode
,PaymentIntentLastPaymentErrorCode
,SetupAttemptSetupErrorCode
,SetupIntentLastSetupErrorCode
, andStripeErrorCode
- Change type of
BillingMeterEventAdjustmentCancel
fromBillingMeterResourceBillingMeterEventAdjustmentCancel
tonullable(BillingMeterResourceBillingMeterEventAdjustmentCancel)
- Add support for
AmazonPay
onChargePaymentMethodDetails
,CheckoutSessionPaymentMethodOptionsParams
,CheckoutSessionPaymentMethodOptions
,ConfirmationTokenPaymentMethodDataParams
,ConfirmationTokenPaymentMethodPreview
,PaymentIntentConfirmPaymentMethodDataParams
,PaymentIntentConfirmPaymentMethodOptionsParams
,PaymentIntentPaymentMethodDataParams
,PaymentIntentPaymentMethodOptionsParams
,PaymentIntentPaymentMethodOptions
,PaymentMethodConfigurationParams
,PaymentMethodConfiguration
,PaymentMethodParams
,PaymentMethod
,RefundDestinationDetails
,SetupIntentConfirmPaymentMethodDataParams
,SetupIntentConfirmPaymentMethodOptionsParams
,SetupIntentPaymentMethodDataParams
,SetupIntentPaymentMethodOptionsParams
, andSetupIntentPaymentMethodOptions
- Add support for new values
bh_vat
,kz_bin
,ng_tin
, andom_vat
on enumsCheckoutSessionCustomerDetailsTaxIdsType
,InvoiceCustomerTaxIdsType
,TaxCalculationCustomerDetailsTaxIdsType
,TaxIdType
, andTaxTransactionCustomerDetailsTaxIdsType
- Add support for new value
ownership
on enumsCheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch
,InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch
,PaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch
,SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch
, andSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch
- Add support for new value
amazon_pay
on enumsConfirmationTokenPaymentMethodPreviewType
andPaymentMethodType
- Add support for
NextRefreshAvailableAt
onFinancialConnectionsAccountOwnershipRefresh
- Add support for new value
ownership
on enumsInvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions
andSubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions
- Add support for
v78.0.0
-
- This release changes the pinned API version to
2024-04-10
. Please read the API Upgrade Guide and carefully review the API changes before upgrading.
⚠️ Breaking changes- When no
x-stripe-should-retry
header is set in the response, the library now retries all requests withstatus >= 500
, not just non-POST methods. - Change the type on the status of TerminalReader object from string to enum with values of
TerminalReaderStatusOffline
andTerminalReaderStatusOnline
- Rename
Features
toMarketingFeatures
onProductCreateOptions
,ProductUpdateOptions
, andProduct
.
⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API- Remove
SubscriptionPause
fromBillingPortalConfigurationFeatures
andBillingPortalConfigurationFeaturesParams
as the feature to pause subscription on the portal has been deprecated. - Remove deprecated values for the
BalanceTransactionType
enum by removing the below constantsBalanceTransactionTypeObligationInbound
BalanceTransactionTypeObligationPayout
BalanceTransactionTypeObligationPayoutFailure
BalanceTransactionTypeObligationReversalOutbound
- Remove deprecated value for the
ClimateSupplierRemovalPathway
enum by removing the constantClimateSupplierRemovalPathwayVarious
- Remove deprecated events types
EventTypeInvoiceItemUpdated
EventTypeOrderCreated
EventTypeRecipientCreated
EventTypeRecipientDeleted
EventTypeRecipientUpdated
EventTypeSKUCreated
EventTypeSKUDeleted
- Remove the field
RequestIncrementalAuthorization
on thePaymentIntentPaymentMethodOptionsCardPresentParams
struct - this was shipped by mistake - Remove support for
id_bank_transfer
,multibanco, netbanking
,pay_by_bank
, andupi
onPaymentMethodConfiguration
. TODO - List the affected types and constants - Remove deprecated value for the
SetupIntentPaymentMethodOptionsCardRequestThreeDSecure
enum by removing the constantSetupIntentPaymentMethodOptionsCardRequestThreeDSecureChallengeOnly
- Remove deprecated value for the
TaxRateTaxType
enum by removing the constantTaxRateTaxTypeServiceTax
- Remove
PaymentIntentPaymentMethodData*Params
in favor of reusing existingPaymentMethodData*Params
for all the payment method types.- Remove
PaymentIntentPaymentMethodDataBLIKParams
in favor ofPaymentMethodDataBLIKParams
- Remove
PaymentIntentPaymentMethodDataCashAppParams
in favor ofPaymentMethodDataCashAppParams
- Remove
PaymentIntentPaymentMethodDataCustomerBalanceParams
in favor ofPaymentMethodDataCustomerBalanceParams
- Remove
PaymentIntentPaymentMethodDataKonbiniParams
in favor ofPaymentMethodDataKonbiniParams
- Remove
PaymentIntentPaymentMethodDataLinkParams
in favor ofPaymentMethodDataLinkParams
- Remove
PaymentIntentPaymentMethodDataPayNowParams
in favor ofPaymentMethodDataPayNowParams
- Remove
PaymentIntentPaymentMethodDataPaypalParams
in favor ofPaymentMethodDataPaypalParams
- Remove
PaymentIntentPaymentMethodDataPixParams
in favor ofPaymentMethodDataPixParams
- Remove
PaymentIntentPaymentMethodDataPromptPayParams
in favor ofPaymentMethodDataPromptPayParams
- Remove
PaymentIntentPaymentMethodDataRevolutPayParams
in favor ofPaymentMethodDataRevolutPayParams
- Remove
PaymentIntentPaymentMethodDataUSBankAccounParams
in favor ofPaymentMethodDataUSBankAccounParams
- Remove
PaymentIntentPaymentMethodDataZipParams
in favor ofPaymentMethodDataZipParams
- Remove
- Remove the legacy field
InvoiceRenderingOptionsParams
inInvoice
,InvoiceParams
. UseInvoiceRenderingParams
instead.
- This release changes the pinned API version to
v76.25.0
- #1844 Update generated code
- Add support for new resources
Entitlements.ActiveEntitlement
andEntitlements.Feature
- Add support for
Get
andList
methods on resourceActiveEntitlement
- Add support for
Get
,List
,New
, andUpdate
methods on resourceFeature
- Add support for
Controller
onAccountParams
- Add support for
Fees
,Losses
,RequirementCollection
, andStripeDashboard
onAccountController
- Add support for new value
none
on enumAccountType
- Add support for
EventName
onBillingMeterEventAdjustmentParams
andBillingMeterEventAdjustment
- Add support for
Cancel
andType
onBillingMeterEventAdjustment
- Add support for new resources
v76.25.0-beta.1
- #1839 Update generated code for beta
- Add support for
Update
method on resourceEntitlements.Feature
- Add support for
RiskControls
onAccountParams
andAccount
- Add support for
PromotionCode
onInvoiceAddLinesLinesDiscountsParams
,InvoiceUpdateLinesLinesDiscountsParams
,QuoteLineItemsDiscountsParams
,QuoteLinesActionsAddDiscountParams
, andQuotePhasesLineItemsDiscountsParams
- Add support for