Skip to content

Commit

Permalink
Bump version to 81.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-stripe committed Oct 29, 2024
1 parent 659b267 commit 1899414
Show file tree
Hide file tree
Showing 262 changed files with 742 additions and 711 deletions.
31 changes: 31 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,36 @@
# Changelog

## 81.0.0 - 2024-10-29
* [#1931](https://github.com/stripe/stripe-go/pull/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`

## 80.2.1 - 2024-10-29
* [#1940](https://github.com/stripe/stripe-go/pull/1940) Update webhook API version validation
- Update webhook event processing to accept events from any API version within the supported major release
Expand Down
42 changes: 21 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Go Stripe

[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v80)
[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v81)
[![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 @@ -23,8 +23,8 @@ Then, reference stripe-go in a Go program with `import`:

```go
import (
"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/customer"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/customer"
)
```

Expand All @@ -34,7 +34,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/v80
go get -u github.com/stripe/stripe-go/v81
```

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

import (
"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/client"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/client"
)

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

"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/client"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/client"
)

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

```go
import (
"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/$resource$"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/$resource$"
)

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

```go
import (
"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/client"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/client"
)

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

```go
import (
"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/client"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/client"
)

config := &stripe.BackendConfig{
Expand Down Expand Up @@ -483,7 +483,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/v80 Backend
mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v81 Backend
```

2. Use the `Backend` mock to initialize and call methods on the client.
Expand All @@ -496,8 +496,8 @@ import (

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

func UseMockedStripeClient(t *testing.T) {
Expand Down Expand Up @@ -534,7 +534,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/v80@beta
go get -u github.com/stripe/stripe-go/v81@beta
```

> **Note**
Expand Down Expand Up @@ -566,9 +566,9 @@ import (
"encoding/json"
"fmt"

"github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
"github.com/stripe/stripe-go/v80/rawrequest"
"github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
"github.com/stripe/stripe-go/v81/rawrequest"
)

func make_raw_request() error {
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
80.2.1
81.0.0
2 changes: 1 addition & 1 deletion account.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

import (
"encoding/json"
"github.com/stripe/stripe-go/v80/form"
"github.com/stripe/stripe-go/v81/form"
)

// The business type. After you create an [Account Link](https://stripe.com/api/account_links) or [Account Session](https://stripe.com/api/account_sessions), this property is only returned for accounts where [controller.requirement_collection](https://stripe.com/api/accounts/object#account_object-controller-requirement_collection) is `application`, which includes Custom accounts.
Expand Down
4 changes: 2 additions & 2 deletions account/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package account
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /accounts APIs.
Expand Down
4 changes: 2 additions & 2 deletions account/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestAccountDel(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion account_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
"github.com/stripe/stripe-go/v80/form"
"github.com/stripe/stripe-go/v81/form"
)

func TestAccountExternalAccountParams_AppendTo(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion accountlink/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package accountlink
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
stripe "github.com/stripe/stripe-go/v81"
)

// Client is used to invoke /account_links APIs.
Expand Down
4 changes: 2 additions & 2 deletions accountlink/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestAccountLinkNew(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion accountsession/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package accountsession
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
stripe "github.com/stripe/stripe-go/v81"
)

// Client is used to invoke /account_sessions APIs.
Expand Down
4 changes: 2 additions & 2 deletions applepaydomain/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package applepaydomain
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /apple_pay/domains APIs.
Expand Down
4 changes: 2 additions & 2 deletions applepaydomain/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestApplePayDomainDel(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions applicationfee/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package applicationfee
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /application_fees APIs.
Expand Down
4 changes: 2 additions & 2 deletions applicationfee/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestApplicationFeeGet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions apps/secret/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package secret
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /apps/secrets APIs.
Expand Down
2 changes: 1 addition & 1 deletion balance/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package balance
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
stripe "github.com/stripe/stripe-go/v81"
)

// Client is used to invoke /balance APIs.
Expand Down
2 changes: 1 addition & 1 deletion balance/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
_ "github.com/stripe/stripe-go/v80/testing"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestBalanceGet(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions balancetransaction/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package balancetransaction
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /balance_transactions APIs.
Expand Down
4 changes: 2 additions & 2 deletions balancetransaction/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestBalanceTransactionGet(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bankaccount.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package stripe

import (
"encoding/json"
"github.com/stripe/stripe-go/v80/form"
"github.com/stripe/stripe-go/v81/form"
"strconv"
)

Expand Down
4 changes: 2 additions & 2 deletions bankaccount/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import (
"fmt"
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke bankaccount related APIs.
Expand Down
4 changes: 2 additions & 2 deletions bankaccount/client_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
stripe "github.com/stripe/stripe-go/v80"
_ "github.com/stripe/stripe-go/v80/testing"
stripe "github.com/stripe/stripe-go/v81"
_ "github.com/stripe/stripe-go/v81/testing"
)

func TestBankAccountDel_ByAccount(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion bankaccount_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"testing"

assert "github.com/stretchr/testify/require"
"github.com/stripe/stripe-go/v80/form"
"github.com/stripe/stripe-go/v81/form"
)

func TestBankAccount_UnmarshalJSON(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions billing/alert/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package alert
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /billing/alerts APIs.
Expand Down
2 changes: 1 addition & 1 deletion billing/creditbalancesummary/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ package creditbalancesummary
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
stripe "github.com/stripe/stripe-go/v81"
)

// Client is used to invoke /billing/credit_balance_summary APIs.
Expand Down
4 changes: 2 additions & 2 deletions billing/creditbalancetransaction/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ package creditbalancetransaction
import (
"net/http"

stripe "github.com/stripe/stripe-go/v80"
"github.com/stripe/stripe-go/v80/form"
stripe "github.com/stripe/stripe-go/v81"
"github.com/stripe/stripe-go/v81/form"
)

// Client is used to invoke /billing/credit_balance_transactions APIs.
Expand Down
Loading

0 comments on commit 1899414

Please sign in to comment.