Skip to content

Commit 26494fd

Browse files
stripe-openapi[bot]ramya-stripembroshi-stripexavdid-stripe
authored
Update generated code for private-preview (#2106)
* Update generated code (#2088) * Update generated code for v1865 and 2025-07-30.basil * Update generated code for v1868 and 2025-07-30.basil * Update generated code for v1868 and 2025-07-30.basil --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> * Bump version to 82.4.0 * Use Go 1.24 in CI (#2097) * Bug fixes for `V1BankAccounts` and `V1Cards` services (#2098) * Add tests * Add hand-written fixes * Fixed services * Add missing parameters to Card and BankAccount services (#2102) * Add tests * Add generated code * Bump version to 82.4.1 * add missing expand param in `get /v1/accounts/{account}/external_accounts` (#2107) * add missing expand param in v1/external_accounts * Revert accidential change * Update generated code (#2101) * Update generated code for v1882 and 2025-07-30.basil * Update generated code for v1928 and 2025-08-27.basil * Update generated code for v1930 and 2025-08-27.basil * Update generated code for v1931 and 2025-08-27.basil * Update generated code for v1932 and 2025-08-27.basil * Update generated code for v1932 and 2025-08-27.basil --------- Co-authored-by: Stripe OpenAPI <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]> * Add section on private preview SDKs in readme (#2108) * Bump version to 82.5.0 * Trigger CI after workflow update --------- Co-authored-by: stripe-openapi[bot] <105521251+stripe-openapi[bot]@users.noreply.github.com> Co-authored-by: Ramya Rao <[email protected]> Co-authored-by: Michael Broshi <[email protected]> Co-authored-by: Michael Broshi <[email protected]> Co-authored-by: David Brownman <[email protected]> Co-authored-by: Ramya Rao <[email protected]>
1 parent b30577d commit 26494fd

File tree

148 files changed

+7413
-5139
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

148 files changed

+7413
-5139
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Set up Go
4646
uses: actions/setup-go@v5
4747
with:
48-
go-version: '1.23'
48+
go-version: '1.24'
4949
check-latest: true
5050
- name: Install govulncheck
5151
run: go install golang.org/x/vuln/cmd/govulncheck@latest
@@ -57,6 +57,7 @@ jobs:
5757
strategy:
5858
matrix:
5959
go:
60+
- "1.24"
6061
- "1.23"
6162
- "1.22"
6263
- "1.21"

API_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-07-30.preview
1+
2025-08-27.basil

CHANGELOG.md

Lines changed: 49 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,30 @@
11
# Changelog
22

3+
## 82.5.0 - 2025-08-27
4+
* [#2108](https://github.com/stripe/stripe-go/pull/2108) Add section on private preview SDKs in readme
5+
* [#2101](https://github.com/stripe/stripe-go/pull/2101) Update generated code. This release changes the pinned API version to `2025-08-27.basil`.
6+
* Add support for `BalanceReport`, `PayoutDetails`, and `PayoutReconciliationReport` on `AccountSessionComponentsParams` and `AccountSessionComponents`
7+
* Add support for `Name` on `BillingPortalConfigurationParams` and `BillingPortalConfiguration`
8+
* Add support for `Installments` on `ChargePaymentMethodDetailsAlma`
9+
* Add support for `TransactionID` on `ChargePaymentMethodDetailsAlma`, `ChargePaymentMethodDetailsAmazonPay`, `ChargePaymentMethodDetailsBillie`, `ChargePaymentMethodDetailsKakaoPay`, `ChargePaymentMethodDetailsKrCard`, `ChargePaymentMethodDetailsNaverPay`, `ChargePaymentMethodDetailsPayco`, `ChargePaymentMethodDetailsRevolutPay`, `ChargePaymentMethodDetailsSamsungPay`, and `ChargePaymentMethodDetailsSatispay`
10+
* Add support for `Location` and `Reader` on `ChargePaymentMethodDetailsPaynow`
11+
* Add support for `AmountIncludesIof` on `CheckoutSessionPaymentMethodOptionsPixParams`, `CheckoutSessionPaymentMethodOptionsPix`, `PaymentIntentConfirmPaymentMethodOptionsPixParams`, `PaymentIntentPaymentMethodOptionsPixParams`, and `PaymentIntentPaymentMethodOptionsPix`
12+
* Add support for new values `block` and `resolution` on enum `DisputePaymentMethodDetailsCard.CaseType`
13+
* Add support for new value `terminal_android_apk` on enum `File.Purpose`
14+
* Add support for `Metadata` and `Period` on `InvoiceCreatePreviewScheduleDetailsPhaseAddInvoiceItemParams`, `SubscriptionAddInvoiceItemParams`, `SubscriptionSchedulePhaseAddInvoiceItemParams`, and `SubscriptionSchedulePhaseAddInvoiceItem`
15+
* Add support for `ExpMonth` and `ExpYear` on `IssuingCardParams`
16+
* Add support for `ExcludedPaymentMethodTypes` on `PaymentIntentParams` and `PaymentIntent`
17+
* Add support for `PayoutMethod` on `PayoutParams` and `Payout`
18+
* Add support for `Mxn` on `TerminalConfigurationTippingParams` and `TerminalConfigurationTipping`
19+
* Add support for `Card` on `TestHelpersTerminalReaderPresentPaymentMethodParams`
20+
* Add support for error codes `customer_session_expired` and `india_recurring_payment_mandate_canceled` on `Error`, `InvoiceLastFinalizationError`, `PaymentIntentLastPaymentError`, `SetupAttemptSetupError`, `SetupIntentLastSetupError`, and `StripeError`
21+
* [#2107](https://github.com/stripe/stripe-go/pull/2107) Add support for `Expand` on `BankAccountListParams` and `CardListParams`
22+
323
## 82.5.0-beta.2 - 2025-08-08
424
* [#2103](https://github.com/stripe/stripe-go/pull/2103) Bring back invoice payments APIs that were missing in the public preview SDKs
525
* Add support for new resource `InvoicePayment`
626
* Add support for `Get` and `List` methods on resource `InvoicePayment`
7-
27+
828
## 82.5.0-beta.1 - 2025-07-30
929
This release changes the pinned API version to `2025-07-30.preview`.
1030

@@ -33,6 +53,31 @@ This release changes the pinned API version to `2025-07-30.preview`.
3353
* Remove support for thin event `V2CoreAccountLinkCompletedEvent`
3454
* Remove support for thin event `V2OffSessionPaymentRequiresCaptureEvent` with related object `V2PaymentsOffSessionPayment`
3555

56+
## 82.4.1 - 2025-08-11
57+
* [#2102](https://github.com/stripe/stripe-go/pull/2102) Add missing parameters to Card and BankAccount services
58+
* Fixes bugs in `V1Cards` and `V1BankAccounts` services: ensures the new `stripe.Client` pattern supports all parameters previously available in `client.API` for those two services.
59+
* [#2098](https://github.com/stripe/stripe-go/pull/2098) Bug fixes for `V1BankAccounts` and `V1Cards` services
60+
* Fixes bugs in `Create` and `List` methods in `V1BankAccounts` and `V1Cards` services in the `stripe.Client` pattern, which were previously returning errors on any valid inputs.
61+
62+
## 82.4.0 - 2025-07-30
63+
This release changes the pinned API version to `2025-07-30.basil`.
64+
65+
* [#2088](https://github.com/stripe/stripe-go/pull/2088) Update generated code
66+
* Add support for `InstantPayoutsPromotion` on `AccountSessionComponentsParams` and `AccountSessionComponents`
67+
* Add support for `AdjustableQuantity` on `BillingPortalConfigurationFeaturesSubscriptionUpdateProductsParams` and `BillingPortalConfigurationFeaturesSubscriptionUpdateProducts`
68+
* Remove support for value `disabled` from enum `Capability.Status`
69+
* Add support for `TransactionID` on `ChargePaymentMethodDetailsCashapp`
70+
* Add support for `OriginContext` on `CheckoutSessionParams` and `CheckoutSession`
71+
* Add support for `Template` on `CheckoutSessionInvoiceCreationInvoiceDataRenderingOptionsParams`, `CheckoutSessionInvoiceCreationInvoiceDataRenderingOptions`, `PaymentLinkInvoiceCreationInvoiceDataRenderingOptionsParams`, and `PaymentLinkInvoiceCreationInvoiceDataRenderingOptions`
72+
* Add support for `SetupFutureUsage` on `CheckoutSessionPaymentMethodOptionsPixParams` and `CheckoutSessionPaymentMethodOptionsPix`
73+
* Add support for `Duration` on `InvoiceCreatePreviewScheduleDetailsPhaseParams` and `SubscriptionSchedulePhaseParams`
74+
* Change type of `InvoiceCreatePreviewSubscriptionDetailsParams.CancelAt` and `SubscriptionParams.CancelAt` from `DateTime` to `DateTime | enum('max_period_end'|'min_period_end')`
75+
* Add support for `PriceData` on `PaymentLinkLineItemParams`
76+
* Add support for `Standard` on `TaxRegistrationCountryOptionsAeParams`, `TaxRegistrationCountryOptionsAe`, `TaxRegistrationCountryOptionsAlParams`, `TaxRegistrationCountryOptionsAoParams`, `TaxRegistrationCountryOptionsAuParams`, `TaxRegistrationCountryOptionsAu`, `TaxRegistrationCountryOptionsAwParams`, `TaxRegistrationCountryOptionsBaParams`, `TaxRegistrationCountryOptionsBbParams`, `TaxRegistrationCountryOptionsBdParams`, `TaxRegistrationCountryOptionsBfParams`, `TaxRegistrationCountryOptionsBhParams`, `TaxRegistrationCountryOptionsBsParams`, `TaxRegistrationCountryOptionsCdParams`, `TaxRegistrationCountryOptionsChParams`, `TaxRegistrationCountryOptionsCh`, `TaxRegistrationCountryOptionsEtParams`, `TaxRegistrationCountryOptionsGbParams`, `TaxRegistrationCountryOptionsGb`, `TaxRegistrationCountryOptionsGnParams`, `TaxRegistrationCountryOptionsIsParams`, `TaxRegistrationCountryOptionsJpParams`, `TaxRegistrationCountryOptionsJp`, `TaxRegistrationCountryOptionsMeParams`, `TaxRegistrationCountryOptionsMkParams`, `TaxRegistrationCountryOptionsMrParams`, `TaxRegistrationCountryOptionsNoParams`, `TaxRegistrationCountryOptionsNo`, `TaxRegistrationCountryOptionsNzParams`, `TaxRegistrationCountryOptionsNz`, `TaxRegistrationCountryOptionsOmParams`, `TaxRegistrationCountryOptionsRsParams`, `TaxRegistrationCountryOptionsSgParams`, `TaxRegistrationCountryOptionsSg`, `TaxRegistrationCountryOptionsSrParams`, `TaxRegistrationCountryOptionsUyParams`, `TaxRegistrationCountryOptionsZaParams`, and `TaxRegistrationCountryOptionsZwParams`
77+
* Add support for new value `inbound_goods` on enums `TaxRegistrationCountryOptionsAtStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsBeStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsBgStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsCyStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsCzStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsDeStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsDkStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsEeStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsEsStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsFiStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsFrStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsGrStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsHrStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsHuStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsIeStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsItStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsLtStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsLuStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsLvStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsMtStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsNlStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsPlStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsPtStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsRoStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsSeStandard.PlaceOfSupplyScheme`, `TaxRegistrationCountryOptionsSiStandard.PlaceOfSupplyScheme`, and `TaxRegistrationCountryOptionsSkStandard.PlaceOfSupplyScheme`
78+
* Add support for `Aed`, `Bgn`, `Huf`, and `Ron` on `TerminalConfigurationTippingParams` and `TerminalConfigurationTipping`
79+
* [#2086](https://github.com/stripe/stripe-go/pull/2086) update changelog example to feature APIs that are not part of a preview
80+
3681
## 82.4.0-beta.2 - 2025-07-09
3782
* [#2084](https://github.com/stripe/stripe-go/pull/2084) Pull in V2 FinancialAccount changes for June release
3883
* Add support for `Close` and `New` methods on resource `V2MoneyManagementFinancialAccount`
@@ -81,6 +126,8 @@ This release changes the pinned API version to `2025-06-30.preview`.
81126
* Remove support for error code `outbound_payment_recipient_email_does_not_exist` on `RecipientNotNotifiableError`
82127

83128
## 82.3.0 - 2025-07-01
129+
This release changes the pinned API version to `2025-06-30.basil`.
130+
84131
* [#2078](https://github.com/stripe/stripe-go/pull/2078) Update generated code
85132
* Add support for `Migrate` method on resource `Subscription`
86133
* Add support for `CollectPaymentMethod` and `ConfirmPaymentIntent` methods on resource `TerminalReader`
@@ -109,7 +156,7 @@ This release changes the pinned API version to `2025-06-30.preview`.
109156
* Add support for new values `collect_payment_method` and `confirm_payment_intent` on enum `TerminalReaderAction.Type`
110157
* Add support for `Status` on `TreasuryFinancialAccountListParams`
111158
* Add support for snapshot event `EventTypeTerminalReaderActionUpdated` with resource `TerminalReader`
112-
* [#2082](https://github.com/stripe/stripe-go/pull/2082) Add form information to amount
159+
* [#2082](https://github.com/stripe/stripe-go/pull/2082) Add form information to amount. Fixes a bug on v2 endpoints that uses the amount type
113160
* [#2076](https://github.com/stripe/stripe-go/pull/2076) Switch to use generated API versions and add major/monthly version constants
114161
* Export constants for the major and monthly API versions
115162
* e.g. `2025-05-28.basil` has major version `basil` and monthly version `2025-05-28`

OPENAPI_VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
807a16a9736d4ffa95356bf7651c2eeca326ae6f
1+
f4b80890ea17e89a543a77a389f29ca9be6fe615

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -490,7 +490,7 @@ func UseMockedStripeClient(t *testing.T) {
490490
Stripe has features in the [public preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-beta.X` suffix like `82.2.0-beta.2`.
491491
We would love for you to try these as we incrementally release new features and improve them based on your feedback.
492492

493-
To install, choose the version that includes support for the preview feature you are interested in by reviewing the [releases page](https://github.com/stripe/stripe-go/releases/) and use it in your `go.mod` file:
493+
To install, pick the latest version with the `beta` suffix by reviewing the [releases page](https://github.com/stripe/stripe-go/releases/) and use it in your `go.mod` file:
494494

495495
```
496496
require (
@@ -508,6 +508,9 @@ Some preview features require a name and version to be set in the `Stripe-Versio
508508
```go
509509
stripe.AddBetaVersion("feature_beta", "v3")
510510
```
511+
### Private Preview SDKs
512+
513+
Stripe has features in the [private preview phase](https://docs.stripe.com/release-phases) that can be accessed via versions of this package that have the `-alpha.X` suffix like `82.2.0-alpha.2`. These are invite-only features. Once invited, you can install the private preview SDKs by following the same instructions as for the [public preview SDKs](https://github.com/stripe/stripe-go?tab=readme-ov-file#public-preview-sdks) above and replacing the term `beta` with `alpha`.
511514

512515
### Custom Request
513516

account.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4193,13 +4193,13 @@ type AccountCompanyRegistrationDate struct {
41934193
Year int64 `json:"year"`
41944194
}
41954195
type AccountCompanyVerificationDocument struct {
4196-
// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
4196+
// The back of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
41974197
Back *File `json:"back"`
41984198
// A user-displayable string describing the verification state of this document.
41994199
Details string `json:"details"`
42004200
// One of `document_corrupt`, `document_expired`, `document_failed_copy`, `document_failed_greyscale`, `document_failed_other`, `document_failed_test_mode`, `document_fraudulent`, `document_incomplete`, `document_invalid`, `document_manipulated`, `document_not_readable`, `document_not_uploaded`, `document_type_not_supported`, or `document_too_large`. A machine-readable code specifying the verification state for this document.
42014201
DetailsCode AccountCompanyVerificationDocumentDetailsCode `json:"details_code"`
4202-
// The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`.
4202+
// The front of a document returned by a [file upload](https://stripe.com/docs/api#create_file) with a `purpose` value of `additional_verification`. Note that `additional_verification` files are [not downloadable](https://docs.stripe.com/file-upload#uploading-a-file).
42034203
Front *File `json:"front"`
42044204
}
42054205

0 commit comments

Comments
 (0)