Skip to content

Releases: stripe/stripe-go

v81.1.0-beta.1

29 Oct 23:07
Compare
Choose a tag to compare
v81.1.0-beta.1 Pre-release
Pre-release
  • #1945 Update generated code for beta
    • Add support for TriggerAction method on resource PaymentIntent
    • Add support for IDBankTransferPaymentsBca and IDBankTransferPayments on AccountCapabilitiesParams and AccountCapabilities
    • Add support for BankBcaOnboarding on AccountSettingsParams and AccountSettings
    • Add support for SendMoney on AccountSessionComponentsRecipientsFeaturesParams
    • Remove support for value payout_statement_descriptor_profanity from enums InvoiceLastFinalizationErrorCode, PaymentIntentLastPaymentErrorCode, SetupAttemptSetupErrorCode, SetupIntentLastSetupErrorCode, and StripeErrorCode
    • Add support for IDBankTransfer on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, InvoicePaymentSettingsPaymentMethodOptionsParams, InvoicePaymentSettingsPaymentMethodOptions, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodConfigurationParams, PaymentMethodConfiguration, PaymentMethodParams, PaymentMethod, RefundDestinationDetails, SetupAttemptPaymentMethodDetails, SetupIntentConfirmPaymentMethodDataParams, SetupIntentPaymentMethodDataParams, SubscriptionPaymentSettingsPaymentMethodOptionsParams, and SubscriptionPaymentSettingsPaymentMethodOptions
    • Add support for Gopay, Qris, and Shopeepay on PaymentMethodConfigurationParams and PaymentMethodConfiguration
  • #1941 Do not allow setting API Version directly
    • stripe.APIVersion is no longer settable. If you were using this to set the beta headers, use the helper method stripe.AddBetaVersion() instead.

See the changelog for more details.

v81.0.0

29 Oct 21:27
Compare
Choose a tag to compare

Historically, when upgrading webhooks to a new API version, you also had to upgrade your SDK version. Your webhook's API version needed to match the API version pinned by the SDK you were using to ensure successful deserialization of events. With the 2024-09-30.acacia release, Stripe follows a new API release process. As a result, you can safely upgrade your webhook endpoints to any API version within a biannual release (like acacia) without upgrading the SDK.

However, a bug in the 80.x.y SDK releases meant that webhook version upgrades from the SDK's pinned 2024-09-30.acacia version to the new 2024-10-28.acacia version would fail. Therefore, we are shipping SDK support for 2024-10-28.acacia as a major version to enforce the idea that an SDK upgrade is also required. Future API versions in the acacia line will be released as minor versions.

  • #1931 This release changes the pinned API version to 2024-10-28.acacia.
    • Add support for new resource V2.EventDestinations
    • Add support for New, Retrieve, Update, List, Delete, Disable, Enable and Ping methods on resource V2.EventDestinations
    • Add support for SubmitCard test helper method on resource Issuing.Card
    • Add support for Groups on AccountParams and Account
    • Add support for AlmaPayments, KakaoPayPayments, KrCardPayments, NaverPayPayments, PaycoPayments, and SamsungPayPayments on AccountCapabilitiesParams and AccountCapabilities
    • Add support for DisableStripeUserAuthentication on AccountSessionComponentsAccountManagementFeaturesParams, AccountSessionComponentsAccountManagementFeatures, AccountSessionComponentsAccountOnboardingFeaturesParams, AccountSessionComponentsAccountOnboardingFeatures, AccountSessionComponentsBalancesFeaturesParams, AccountSessionComponentsBalancesFeatures, AccountSessionComponentsNotificationBannerFeaturesParams, AccountSessionComponentsNotificationBannerFeatures, AccountSessionComponentsPayoutsFeaturesParams, and AccountSessionComponentsPayoutsFeatures
    • Add support for ScheduleAtPeriodEnd on BillingPortalConfigurationFeaturesSubscriptionUpdateParams and BillingPortalConfigurationFeaturesSubscriptionUpdate
    • Add support for Alma on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodConfigurationParams, PaymentMethodConfiguration, PaymentMethodParams, PaymentMethod, RefundDestinationDetails, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for KakaoPay and KrCard on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsParams, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, MandatePaymentMethodDetails, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupAttemptPaymentMethodDetails, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for NaverPay on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsParams, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for Payco and SamsungPay on ChargePaymentMethodDetails, CheckoutSessionPaymentMethodOptionsParams, CheckoutSessionPaymentMethodOptions, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat on enums CheckoutSessionCustomerDetailsTaxIdsType, InvoiceCustomerTaxIdsType, TaxCalculationCustomerDetailsTaxIdsType, TaxIdType, and TaxTransactionCustomerDetailsTaxIdsType
    • Add support for new values alma, kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums ConfirmationTokenPaymentMethodPreviewType and PaymentMethodType
    • Add support for EnhancedEvidence on DisputeEvidenceParams and DisputeEvidence
    • Add support for EnhancedEligibilityTypes on Dispute
    • Add support for EnhancedEligibility on DisputeEvidenceDetails
    • Add support for new values issuing_transaction.purchase_details_receipt_updated and refund.failed on enum EventType
    • Add support for Metadata on ForwardingRequestParams and ForwardingRequest
    • Add support for AutomaticallyFinalizesAt on InvoiceParams
    • Add support for new values jp_credit_transfer, kakao_pay, kr_card, naver_pay, and payco on enums InvoicePaymentSettingsPaymentMethodTypes and SubscriptionPaymentSettingsPaymentMethodTypes
    • Add support for new value alma on enum PaymentLinkPaymentMethodTypes
    • Add support for AmazonPay on PaymentMethodDomain
    • Change type of RefundNextActionDisplayDetails from nullable(RefundNextActionDisplayDetails) to RefundNextActionDisplayDetails
    • Add support for new value retail_delivery_fee on enums TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType, TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType, TaxCalculationTaxBreakdownTaxRateDetailsTaxType, TaxRateTaxType, and TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType
    • Add support for FlatAmount and RateType on TaxCalculationTaxBreakdownTaxRateDetails and TaxRate
    • Add support for By, Cr, Ec, Ma, Md, RU, Rs, Tz, and Uz on TaxRegistrationCountryOptionsParams and TaxRegistrationCountryOptions
    • Add support for new value state_retail_delivery_fee on enum TaxRegistrationCountryOptionsUsType
    • Add support for Pln on TerminalConfigurationTippingParams and TerminalConfigurationTipping

See the changelog for more details.

v80.2.1

29 Oct 16:39
Compare
Choose a tag to compare
  • #1940 Update webhook API version validation
    • Update webhook event processing to accept events from any API version within the supported major release

See the changelog for more details.

v80.3.0-beta.1

18 Oct 19:03
Compare
Choose a tag to compare
v80.3.0-beta.1 Pre-release
Pre-release
  • #1934 Update generated code for beta
    • Add support for AlmaPayments, GopayPayments, KakaoPayPayments, KrCardPayments, NaverPayPayments, PaycoPayments, QrisPayments, SamsungPayPayments, ShopeepayPayments, TreasuryEvolve, TreasuryFifthThird, and TreasuryGoldmanSachs on AccountCapabilitiesParams and AccountCapabilities
    • Add support for ScheduleAtPeriodEnd on BillingPortalConfigurationFeaturesSubscriptionUpdateParams and BillingPortalConfigurationFeaturesSubscriptionUpdate
    • Add support for Alma on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodConfigurationParams, PaymentMethodConfiguration, PaymentMethodParams, PaymentMethod, RefundDestinationDetails, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for Gopay, Qris, and Shopeepay on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for new values alma, gopay, qris, and shopeepay on enums ConfirmationTokenPaymentMethodPreviewType and PaymentMethodType
    • Add support for Metadata on ForwardingRequestParams
    • Add support for new values jp_credit_transfer, kakao_pay, kr_card, naver_pay, and payco on enums InvoicePaymentSettingsPaymentMethodTypes and SubscriptionPaymentSettingsPaymentMethodTypes
    • Remove support for value expired from enum IssuingAuthorizationStatus
    • Add support for new values alma, gopay, qris, and shopeepay on enum PaymentLinkPaymentMethodTypes
    • Add support for AmazonPay on PaymentMethodDomain
    • Add support for ExternalReference on TaxFormListPayeeParams and TaxFormPayee
    • Change type of TaxFormListPayeeTypeParams and TaxFormPayeeType from literal('account') to enum('account'|'external_reference')
    • Add support for AuSerr, CaMrdp, EUDac7, GBMrdp, and NzMrdp on TaxForm
    • Add support for new values au_serr, ca_mrdp, eu_dac7, gb_mrdp, and nz_mrdp on enum TaxFormType
    • Add support for Pln on TerminalConfigurationTippingParams and TerminalConfigurationTipping
    • Add support for Bank on TreasuryFinancialAccountFeaturesFinancialAddressesAbaParams, TreasuryFinancialAccountFeaturesFinancialAddressesAba, and TreasuryFinancialAccountUpdateFeaturesFinancialAddressesAbaParams

See the changelog for more details.

v80.2.0

09 Oct 21:56
Compare
Choose a tag to compare
  • #1929, #1933 Remove rawrequests Post, Get, and Delete in favor of rawrequests.Client
    • The individual rawrequests functions for Post, Get, and Delete methods are removed in favor of the client model which allows local configuration of backend and api key, which enables more flexible calls to new/preview/unsupported APIs.

See the changelog for more details.

v80.2.0-beta.2

08 Oct 19:26
Compare
Choose a tag to compare
v80.2.0-beta.2 Pre-release
Pre-release
  • #1932 Update generated code for beta
    • Add support for SubmitCard test helper method on resource Issuing.Card
    • Add support for Groups on AccountParams and Account
    • Add support for DisableStripeUserAuthentication on AccountSessionComponentsAccountManagementFeaturesParams, AccountSessionComponentsAccountManagementFeatures, AccountSessionComponentsAccountOnboardingFeaturesParams, AccountSessionComponentsAccountOnboardingFeatures, AccountSessionComponentsBalancesFeaturesParams, AccountSessionComponentsBalancesFeatures, AccountSessionComponentsFinancialAccountFeaturesParams, AccountSessionComponentsNotificationBannerFeaturesParams, AccountSessionComponentsNotificationBannerFeatures, AccountSessionComponentsPayoutsFeaturesParams, and AccountSessionComponentsPayoutsFeatures
    • Add support for CardSpendDisputeManagement and SpendControlManagement on AccountSessionComponentsIssuingCardsListFeaturesParams
    • Add support for new value payout_statement_descriptor_profanity on enums InvoiceLastFinalizationErrorCode, PaymentIntentLastPaymentErrorCode, SetupAttemptSetupErrorCode, SetupIntentLastSetupErrorCode, and StripeErrorCode
    • Add support for KakaoPay and KrCard on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, MandatePaymentMethodDetails, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupAttemptPaymentMethodDetails, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for NaverPay on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for Payco and SamsungPay on ChargePaymentMethodDetails, ConfirmationTokenPaymentMethodDataParams, ConfirmationTokenPaymentMethodPreview, PaymentIntentConfirmPaymentMethodDataParams, PaymentIntentConfirmPaymentMethodOptionsParams, PaymentIntentPaymentMethodDataParams, PaymentIntentPaymentMethodOptionsParams, PaymentIntentPaymentMethodOptions, PaymentMethodParams, PaymentMethod, SetupIntentConfirmPaymentMethodDataParams, and SetupIntentPaymentMethodDataParams
    • Add support for new values by_tin, ma_vat, md_vat, tz_vat, uz_tin, and uz_vat on enums CheckoutSessionCollectedInformationTaxIdsType, CheckoutSessionCustomerDetailsTaxIdsType, InvoiceCustomerTaxIdsType, OrderTaxDetailsTaxIdsType, TaxCalculationCustomerDetailsTaxIdsType, TaxIdType, and TaxTransactionCustomerDetailsTaxIdsType
    • Add support for new values kakao_pay, kr_card, naver_pay, payco, and samsung_pay on enums ConfirmationTokenPaymentMethodPreviewType and PaymentMethodType
    • Add support for new value refund.failed on enum EventType
    • Add support for Metadata on ForwardingRequest
    • Add support for new value expired on enum IssuingAuthorizationStatus
    • Add support for LineItems on OrderPaymentSettingsPaymentMethodOptionsPaypalParams, OrderPaymentSettingsPaymentMethodOptionsPaypal, PaymentIntentConfirmPaymentMethodOptionsPaypalParams, PaymentIntentPaymentMethodOptionsPaypalParams, and PaymentIntentPaymentMethodOptionsPaypal
    • Add support for new value retail_delivery_fee on enums TaxCalculationLineItemTaxBreakdownTaxRateDetailsTaxType, TaxCalculationShippingCostTaxBreakdownTaxRateDetailsTaxType, TaxCalculationTaxBreakdownTaxRateDetailsTaxType, TaxRateTaxType, and TaxTransactionShippingCostTaxBreakdownTaxRateDetailsTaxType
    • Add support for FlatAmount and RateType on TaxCalculationTaxBreakdownTaxRateDetails and TaxRate
    • Add support for By, Cr, Ec, Ma, Md, RU, Rs, Tz, and Uz on TaxRegistrationCountryOptionsParams and TaxRegistrationCountryOptions
    • Add support for new value state_retail_delivery_fee on enum TaxRegistrationCountryOptionsUsType

See the changelog for more details.

v80.2.0-beta.1

03 Oct 23:21
Compare
Choose a tag to compare
v80.2.0-beta.1 Pre-release
Pre-release
  • #1930 Updates beta branch with changes in master
    • Add support for ReportingChart on AccountSessionComponentsParams
    • Remove support for FromSchedule on QuoteSubscriptionData
    • Add support for AllowRedisplay on TerminalReaderCollectPaymentMethodCollectConfigParams
    • Moved raw request functionality from preview package to rawrequest package, and removed preview

See the changelog for more details.

v80.1.0

03 Oct 22:48
Compare
Choose a tag to compare
  • #1928 Update generated code
    • Remove the support for resource Margin that was accidentally made public in the last release

See the changelog for more details.

v80.0.0

01 Oct 18:35
Compare
Choose a tag to compare
  • #1926 Support for APIs in the new API version 2024-09-30.acacia

    This release changes the pinned API version to 2024-09-30.acacia. Please read the API Upgrade Guide and carefully review the API changes before upgrading.

    ⚠️ Breaking changes

    • Rename usage_threshold_config to usage_threshold on BillingAlertParams and BillingAlert
    • Remove support for filter on BillingAlertParams and BillingAlert. Use the filters on the usage_threshold instead
    • Remove support for CustomerConsentCollected on TerminalReaderProcessSetupIntentParams

    Additions

    • Add support for CustomUnitAmount on ProductDefaultPriceDataParams
    • Add support for AllowRedisplay on TerminalReaderProcessPaymentIntentProcessConfigParams and TerminalReaderProcessSetupIntentParams
    • Add support for new value international_transaction on enum TreasuryReceivedCreditFailureCode
    • Add method RawRequest() that takes a HTTP method type, url and relevant parameters to make requests to the Stripe API that are not yet supported in the SDK.

See the changelog for more details.

v79.13.0-beta.1

18 Sep 21:52
Compare
Choose a tag to compare
v79.13.0-beta.1 Pre-release
Pre-release
  • #1920 Update generated code for beta
    • Remove support for resource QuotePhase
    • Remove support for Get and ListLineItems methods on resource QuotePhase
    • Add support for SendMoney and TransferBalance on AccountSessionComponentsFinancialAccountFeaturesParams
    • Add support for new value rechnung on enum PaymentLinkPaymentMethodTypes

See the changelog for more details.