Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update generated code for beta #1843

Merged
merged 26 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
5e299d2
Update generated code (#1838)
stripe-openapi[bot] Apr 4, 2024
070ad1c
Bump version to 76.24.0
ramya-stripe Apr 4, 2024
7f7fbdd
Merge upstream and update generated code for v932
stripe-openapi[bot] Apr 4, 2024
9441bca
Update generated code for v934
stripe-openapi[bot] Apr 5, 2024
d0c2a41
Update generated code for v935
stripe-openapi[bot] Apr 5, 2024
fda42fd
Update generated code for v936
stripe-openapi[bot] Apr 8, 2024
954ce75
Update generated code for v938
stripe-openapi[bot] Apr 9, 2024
1edd368
Update generated code for v939
stripe-openapi[bot] Apr 9, 2024
86ddd02
Update generated code (#1844)
stripe-openapi[bot] Apr 9, 2024
b8660f4
Bump version to 76.25.0
ramya-stripe Apr 9, 2024
a906baa
Merge upstream and update generated code for v940
stripe-openapi[bot] Apr 9, 2024
0182158
Update generated code for v941
stripe-openapi[bot] Apr 10, 2024
11d44b3
Sdk release/next major (#1841)
ramya-stripe Apr 10, 2024
9bbcf95
Bump version to 78.0.0
ramya-stripe Apr 10, 2024
72225b6
Merge upstream and update generated code for v941
stripe-openapi[bot] Apr 10, 2024
139d6c2
Update generated code for v942
stripe-openapi[bot] Apr 11, 2024
49df051
Update generated code for v943
stripe-openapi[bot] Apr 11, 2024
f7ed657
Update generated code for v944
stripe-openapi[bot] Apr 11, 2024
bda89ea
Update generated code for v945
stripe-openapi[bot] Apr 11, 2024
ea6d9ba
Update generated code for v946
stripe-openapi[bot] Apr 11, 2024
2984fcd
Update generated code for v947
stripe-openapi[bot] Apr 11, 2024
d475e5c
Update generated code for v949
stripe-openapi[bot] Apr 11, 2024
49f5db8
Update generated code for v950
stripe-openapi[bot] Apr 11, 2024
9cf3d79
Update generated code (#1846)
stripe-openapi[bot] Apr 11, 2024
f1c428c
Bump version to 78.1.0
ramya-stripe Apr 11, 2024
04ab8f1
Merge upstream and update generated code for v951
stripe-openapi[bot] Apr 11, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
93 changes: 90 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,98 @@
# Changelog

## 78.1.0 - 2024-04-11
* [#1846](https://github.com/stripe/stripe-go/pull/1846) Update generated code
* Add support for `AccountManagement` and `NotificationBanner` on `AccountSessionComponentsParams` and `AccountSessionComponents`
* Add support for `ExternalAccountCollection` on `AccountSessionComponentsAccountOnboardingFeaturesParams` and `AccountSessionComponentsAccountOnboardingFeatures`
* Add support for new values `billing_policy_remote_function_response_invalid`, `billing_policy_remote_function_timeout`, `billing_policy_remote_function_unexpected_status_code`, and `billing_policy_remote_function_unreachable` on enums `InvoiceLastFinalizationErrorCode`, `PaymentIntentLastPaymentErrorCode`, `SetupAttemptSetupErrorCode`, `SetupIntentLastSetupErrorCode`, and `StripeErrorCode`
* Change type of `BillingMeterEventAdjustmentCancel` from `BillingMeterResourceBillingMeterEventAdjustmentCancel` to `nullable(BillingMeterResourceBillingMeterEventAdjustmentCancel)`
* Add support for `AmazonPay` on `ChargePaymentMethodDetails`, `CheckoutSessionPaymentMethodOptionsParams`, `CheckoutSessionPaymentMethodOptions`, `ConfirmationTokenPaymentMethodDataParams`, `ConfirmationTokenPaymentMethodPreview`, `PaymentIntentConfirmPaymentMethodDataParams`, `PaymentIntentConfirmPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodDataParams`, `PaymentIntentPaymentMethodOptionsParams`, `PaymentIntentPaymentMethodOptions`, `PaymentMethodConfigurationParams`, `PaymentMethodConfiguration`, `PaymentMethodParams`, `PaymentMethod`, `RefundDestinationDetails`, `SetupIntentConfirmPaymentMethodDataParams`, `SetupIntentConfirmPaymentMethodOptionsParams`, `SetupIntentPaymentMethodDataParams`, `SetupIntentPaymentMethodOptionsParams`, and `SetupIntentPaymentMethodOptions`
* Add support for new values `bh_vat`, `kz_bin`, `ng_tin`, and `om_vat` on enums `CheckoutSessionCustomerDetailsTaxIdsType`, `InvoiceCustomerTaxIdsType`, `TaxCalculationCustomerDetailsTaxIdsType`, `TaxIdType`, and `TaxTransactionCustomerDetailsTaxIdsType`
* Add support for new value `ownership` on enums `CheckoutSessionPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `PaymentIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, `SetupIntentPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`, and `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPrefetch`
* Add support for new value `amazon_pay` on enums `ConfirmationTokenPaymentMethodPreviewType` and `PaymentMethodType`
* Add support for `NextRefreshAvailableAt` on `FinancialConnectionsAccountOwnershipRefresh`
* Add support for new value `ownership` on enums `InvoicePaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions` and `SubscriptionPaymentSettingsPaymentMethodOptionsUsBankAccountFinancialConnectionsPermissions`

## 78.0.0 - 2024-04-10
* [#1841](https://github.com/stripe/stripe-go/pull/1841)

* This release changes the pinned API version to `2024-04-10`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-04-10) 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 with `status >= 500`, not just non-POST methods.
* Change the type on the status of TerminalReader object from string to enum with values of `TerminalReaderStatusOffline` and `TerminalReaderStatusOnline`
* Rename `Features` to `MarketingFeatures` on `ProductCreateOptions`, `ProductUpdateOptions`, and `Product`.

#### ⚠️ Removal of enum values, properties and events that are no longer part of the publicly documented Stripe API
* Remove `SubscriptionPause` from `BillingPortalConfigurationFeatures ` and `BillingPortalConfigurationFeaturesParams ` as the feature to pause subscription on the portal has been deprecated.
* Remove deprecated values for the `BalanceTransactionType` enum by removing the below constants
* `BalanceTransactionTypeObligationInbound`
* `BalanceTransactionTypeObligationPayout`
* `BalanceTransactionTypeObligationPayoutFailure`
* `BalanceTransactionTypeObligationReversalOutbound`
* Remove deprecated value for the `ClimateSupplierRemovalPathway` enum by removing the constant `ClimateSupplierRemovalPathwayVarious`
* Remove deprecated events types
* `EventTypeInvoiceItemUpdated`
* `EventTypeOrderCreated`
* `EventTypeRecipientCreated`
* `EventTypeRecipientDeleted`
* `EventTypeRecipientUpdated`
* `EventTypeSKUCreated`
* `EventTypeSKUDeleted`
* Remove the field `RequestIncrementalAuthorization` on the `PaymentIntentPaymentMethodOptionsCardPresentParams` struct - this was shipped by mistake
* Remove support for `id_bank_transfer`, `multibanco, netbanking`, `pay_by_bank`, and `upi` on `PaymentMethodConfiguration`. TODO - List the affected types and constants
* Remove deprecated value for the `SetupIntentPaymentMethodOptionsCardRequestThreeDSecure` enum by removing the constant `SetupIntentPaymentMethodOptionsCardRequestThreeDSecureChallengeOnly`
* Remove deprecated value for the `TaxRateTaxType` enum by removing the constant `TaxRateTaxTypeServiceTax`
* Remove `PaymentIntentPaymentMethodData*Params` in favor of reusing existing `PaymentMethodData*Params` for all the payment method types.
* Remove `PaymentIntentPaymentMethodDataBLIKParams` in favor of `PaymentMethodDataBLIKParams`
* Remove `PaymentIntentPaymentMethodDataCashAppParams` in favor of `PaymentMethodDataCashAppParams`
* Remove `PaymentIntentPaymentMethodDataCustomerBalanceParams` in favor of `PaymentMethodDataCustomerBalanceParams`
* Remove `PaymentIntentPaymentMethodDataKonbiniParams` in favor of `PaymentMethodDataKonbiniParams`
* Remove `PaymentIntentPaymentMethodDataLinkParams` in favor of `PaymentMethodDataLinkParams`
* Remove `PaymentIntentPaymentMethodDataPayNowParams` in favor of `PaymentMethodDataPayNowParams`
* Remove `PaymentIntentPaymentMethodDataPaypalParams` in favor of `PaymentMethodDataPaypalParams`
* Remove `PaymentIntentPaymentMethodDataPixParams` in favor of `PaymentMethodDataPixParams`
* Remove `PaymentIntentPaymentMethodDataPromptPayParams` in favor of `PaymentMethodDataPromptPayParams`
* Remove `PaymentIntentPaymentMethodDataRevolutPayParams` in favor of `PaymentMethodDataRevolutPayParams`
* Remove `PaymentIntentPaymentMethodDataUSBankAccounParams` in favor of `PaymentMethodDataUSBankAccounParams`
* Remove `PaymentIntentPaymentMethodDataZipParams` in favor of `PaymentMethodDataZipParams`
* Remove the legacy field `InvoiceRenderingOptionsParams` in `Invoice`, `InvoiceParams`. Use `InvoiceRenderingParams` instead.

## 76.25.0 - 2024-04-09
* [#1844](https://github.com/stripe/stripe-go/pull/1844) Update generated code
* Add support for new resources `Entitlements.ActiveEntitlement` and `Entitlements.Feature`
* Add support for `Get` and `List` methods on resource `ActiveEntitlement`
* Add support for `Get`, `List`, `New`, and `Update` methods on resource `Feature`
* Add support for `Controller` on `AccountParams`
* Add support for `Fees`, `Losses`, `RequirementCollection`, and `StripeDashboard` on `AccountController`
* Add support for new value `none` on enum `AccountType`
* Add support for `EventName` on `BillingMeterEventAdjustmentParams` and `BillingMeterEventAdjustment`
* Add support for `Cancel` and `Type` on `BillingMeterEventAdjustment`

## 76.25.0-beta.1 - 2024-04-04
* [#1839](https://github.com/stripe/stripe-go/pull/1839) Update generated code for beta
* Add support for `Update` method on resource `Entitlements.Feature`
* Add support for `RiskControls` on `AccountParams` and `Account`
* Add support for `PromotionCode` on `InvoiceAddLinesLinesDiscountsParams`, `InvoiceUpdateLinesLinesDiscountsParams`, `QuoteLineItemsDiscountsParams`, `QuoteLinesActionsAddDiscountParams`, and `QuotePhasesLineItemsDiscountsParams`

## 76.24.0 - 2024-04-04
* [#1838](https://github.com/stripe/stripe-go/pull/1838) Update generated code
* Change type of `CheckoutSessionPaymentMethodOptionsSwishReferenceParams` from `emptyable(string)` to `string`
* Add support for `SubscriptionItem` on `Discount`
* Add support for `Email` and `Phone` on `IdentityVerificationReport`, `IdentityVerificationSessionOptionsParams`, `IdentityVerificationSessionOptions`, and `IdentityVerificationSessionVerifiedOutputs`
* Add support for `VerificationFlow` on `IdentityVerificationReport`, `IdentityVerificationSessionParams`, and `IdentityVerificationSession`
* Add support for new value `verification_flow` on enums `IdentityVerificationReportType` and `IdentityVerificationSessionType`
* Add support for `ProvidedDetails` on `IdentityVerificationSessionParams` and `IdentityVerificationSession`
* Add support for new values `email_unverified_other`, `email_verification_declined`, `phone_unverified_other`, and `phone_verification_declined` on enum `IdentityVerificationSessionLastErrorCode`
* Add support for `PromotionCode` on `InvoiceDiscountsParams`, `InvoiceItemDiscountsParams`, and `QuoteDiscountsParams`
* Add support for `Discounts` on `InvoiceUpcomingLinesSubscriptionItemsParams`, `InvoiceUpcomingSubscriptionItemsParams`, `QuoteLineItemsParams`, `SubscriptionAddInvoiceItemsParams`, `SubscriptionItemParams`, `SubscriptionItem`, `SubscriptionItemsParams`, `SubscriptionParams`, `SubscriptionSchedulePhasesAddInvoiceItemsParams`, `SubscriptionSchedulePhasesAddInvoiceItems`, `SubscriptionSchedulePhasesItemsParams`, `SubscriptionSchedulePhasesItems`, `SubscriptionSchedulePhasesParams`, `SubscriptionSchedulePhases`, and `Subscription`
* Add support for `AllowedMerchantCountries` and `BlockedMerchantCountries` on `IssuingCardSpendingControlsParams`, `IssuingCardSpendingControls`, `IssuingCardholderSpendingControlsParams`, and `IssuingCardholderSpendingControls`
* Add support for `Zip` on `PaymentMethodConfigurationParams` and `PaymentMethodConfiguration`
* Add support for `Offline` on `SetupAttemptPaymentMethodDetailsCardPresent`
* Add support for `CardPresent` on `SetupIntentConfirmPaymentMethodOptionsParams`, `SetupIntentPaymentMethodOptionsParams`, and `SetupIntentPaymentMethodOptions`
* Add support for new value `mobile_phone_reader` on enum `TerminalReaderDeviceType`

## 76.24.0-beta.1 - 2024-03-28
* [#1831](https://github.com/stripe/stripe-go/pull/1831) Update generated code for beta
* Add support for `FinancialAccountTransactions`, `FinancialAccount`, `IssuingCard`, and `IssuingCardsList` on `AccountSessionComponentsParams`
Expand Down Expand Up @@ -79,9 +166,9 @@

## 76.20.0 - 2024-03-07
* [#1823](https://github.com/stripe/stripe-go/pull/1823) Update generated code
* Add support for `Documents` on `AccountSessionComponentsParams` and `AccountSessionComponents`
* Add support for `RequestThreeDSecure` on `CheckoutSessionPaymentMethodOptionsCardParams` and `CheckoutSessionPaymentMethodOptionsCard`
* Add support for `Created` on `CreditNoteListParams`
* Add support for `Documents` on `AccountSessionComponentsParams` and `AccountSessionComponents`
* Add support for `RequestThreeDSecure` on `CheckoutSessionPaymentMethodOptionsCardParams` and `CheckoutSessionPaymentMethodOptionsCard`
* Add support for `Created` on `CreditNoteListParams`
* Add support for `SEPADebit` on `InvoicePaymentSettingsPaymentMethodOptionsParams` and `InvoicePaymentSettingsPaymentMethodOptions`

## 76.20.0-beta.1 - 2024-02-29
Expand Down
2 changes: 1 addition & 1 deletion OPENAPI_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v932
v951
36 changes: 18 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Go Stripe
[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v76)
[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v78)
[![Build Status](https://github.com/stripe/stripe-go/actions/workflows/ci.yml/badge.svg?branch=master)](https://github.com/stripe/stripe-go/actions/workflows/ci.yml?query=branch%3Amaster)
[![Coverage Status](https://coveralls.io/repos/github/stripe/stripe-go/badge.svg?branch=master)](https://coveralls.io/github/stripe/stripe-go?branch=master)

Expand All @@ -22,8 +22,8 @@ Then, reference stripe-go in a Go program with `import`:

``` go
import (
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/customer"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/customer"
)
```

Expand All @@ -33,7 +33,7 @@ toolchain will resolve and fetch the stripe-go module automatically.
Alternatively, you can also explicitly `go get` the package into a project:

```bash
go get -u github.com/stripe/stripe-go/v76
go get -u github.com/stripe/stripe-go/v78
```

## Documentation
Expand Down Expand Up @@ -122,8 +122,8 @@ To use a key, pass it to `API`'s `Init` function:
```go

import (
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/client"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/client"
)

stripe := &client.API{}
Expand All @@ -144,8 +144,8 @@ import (
"google.golang.org/appengine"
"google.golang.org/appengine/urlfetch"

"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/client"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/client"
)

func handler(w http.ResponseWriter, r *http.Request) {
Expand Down Expand Up @@ -179,8 +179,8 @@ client.

```go
import (
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/$resource$"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/$resource$"
)

// Setup
Expand Down Expand Up @@ -220,8 +220,8 @@ individual key.

```go
import (
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/client"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/client"
)

// Setup
Expand Down Expand Up @@ -292,8 +292,8 @@ with `MaxNetworkRetries`:

```go
import (
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/client"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/client"
)

config := &stripe.BackendConfig{
Expand Down Expand Up @@ -478,7 +478,7 @@ To mock a Stripe client for a unit tests using [GoMock](https://github.com/golan

1. Generate a `Backend` type mock.
```
mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v76 Backend
mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v78 Backend
```
2. Use the `Backend` mock to initialize and call methods on the client.
```go
Expand All @@ -489,8 +489,8 @@ import (

"github.com/golang/mock/gomock"
"github.com/stretchr/testify/assert"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/account"
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/account"
)

func UseMockedStripeClient(t *testing.T) {
Expand Down Expand Up @@ -527,7 +527,7 @@ We would love for you to try these and share feedback with us before these featu
To install a beta version of stripe-go use the commit notation of the `go get` command to point to a beta tag:

```
go get -u github.com/stripe/stripe-go/[email protected].0-beta.1
go get -u github.com/stripe/stripe-go/[email protected].0-beta.1
```

> **Note**
Expand Down
Loading
Loading