Skip to content

Commit

Permalink
Bump version to 76.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pakrym-stripe committed Oct 16, 2023
1 parent 76e0667 commit 79c03b6
Show file tree
Hide file tree
Showing 232 changed files with 622 additions and 615 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Changelog

## 76.0.0 - 2023-10-16
* This release changes the pinned API version to `2023-10-16`. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2023-10-16) and carefully review the API changes before upgrading `stripe-go`.
* [#1753](https://github.com/stripe/stripe-go/pull/1753) Update generated code
* Add support for `LegalGuardian` on `AccountPersonsRelationshipParams` and `TokenPersonRelationshipParams`
* Add support for new values `invalid_address_highway_contract_box`, `invalid_address_private_mailbox`, `invalid_business_profile_name_denylisted`, `invalid_business_profile_name`, `invalid_company_name_denylisted`, `invalid_dob_age_over_maximum`, `invalid_product_description_length`, `invalid_product_description_url_match`, `invalid_statement_descriptor_business_mismatch`, `invalid_statement_descriptor_denylisted`, `invalid_statement_descriptor_length`, `invalid_statement_descriptor_prefix_denylisted`, `invalid_statement_descriptor_prefix_mismatch`, `invalid_tax_id_format`, `invalid_tax_id`, `invalid_url_denylisted`, `invalid_url_format`, `invalid_url_length`, `invalid_url_web_presence_detected`, `invalid_url_website_business_information_mismatch`, `invalid_url_website_empty`, `invalid_url_website_inaccessible_geoblocked`, `invalid_url_website_inaccessible_password_protected`, `invalid_url_website_inaccessible`, `invalid_url_website_incomplete_cancellation_policy`, `invalid_url_website_incomplete_customer_service_details`, `invalid_url_website_incomplete_legal_restrictions`, `invalid_url_website_incomplete_refund_policy`, `invalid_url_website_incomplete_return_policy`, `invalid_url_website_incomplete_terms_and_conditions`, `invalid_url_website_incomplete_under_construction`, `invalid_url_website_incomplete`, and `invalid_url_website_other` on enums `AccountFutureRequirementsErrorsCode`, `AccountRequirementsErrorsCode`, `BankAccountFutureRequirementsErrorsCode`, and `BankAccountRequirementsErrorsCode`
* Add support for `AdditionalTOSAcceptances` on `TokenPersonParams`

## 75.11.0 - 2023-10-16
* [#1751](https://github.com/stripe/stripe-go/pull/1751) Update generated code
* Add support for new values `issuing_token.created` and `issuing_token.updated` on enum `EventType`
Expand Down
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/v75)
[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v76)
[![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/v75"
"github.com/stripe/stripe-go/v75/customer"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75
go get -u github.com/stripe/stripe-go/v76
```

## 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/v75"
"github.com/stripe/stripe-go/v75/client"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/client"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/$resource$"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/$resource$"
)

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

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

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

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

config := &stripe.BackendConfig{
Expand Down Expand Up @@ -477,7 +477,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/v75 Backend
mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v76 Backend
```
2. Use the `Backend` mock to initialize and call methods on the client.
```go
Expand All @@ -488,8 +488,8 @@ import (

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

func UseMockedStripeClient(t *testing.T) {
Expand Down Expand Up @@ -526,7 +526,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/v75@v73.3.0-beta.1
go get -u github.com/stripe/stripe-go/v76@v73.3.0-beta.1
```

> **Note**
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
75.11.0
76.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/v75/form"
"github.com/stripe/stripe-go/v76/form"
)

// The business type.
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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75/form"
"github.com/stripe/stripe-go/v76/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/v75"
stripe "github.com/stripe/stripe-go/v76"
)

// 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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75"
stripe "github.com/stripe/stripe-go/v76"
)

// 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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
stripe "github.com/stripe/stripe-go/v76"
)

// 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/v75/testing"
_ "github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75/form"
"github.com/stripe/stripe-go/v76/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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/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/v75/form"
"github.com/stripe/stripe-go/v76/form"
)

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

stripe "github.com/stripe/stripe-go/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/form"
)

// Client is used to invoke /billing_portal/configurations APIs.
Expand Down
4 changes: 2 additions & 2 deletions billingportal/configuration/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/testing"
)

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

stripe "github.com/stripe/stripe-go/v75"
stripe "github.com/stripe/stripe-go/v76"
)

// Client is used to invoke /billing_portal/sessions APIs.
Expand Down
4 changes: 2 additions & 2 deletions billingportal/session/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/testing"
)

func TestBillingPortalSessionNew(t *testing.T) {
Expand Down
4 changes: 2 additions & 2 deletions capability/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/v75"
"github.com/stripe/stripe-go/v75/form"
stripe "github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/form"
)

// Client is used to invoke /accounts/{account}/capabilities APIs.
Expand Down
4 changes: 2 additions & 2 deletions capability/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/v75"
_ "github.com/stripe/stripe-go/v75/testing"
stripe "github.com/stripe/stripe-go/v76"
_ "github.com/stripe/stripe-go/v76/testing"
)

func TestCapabilityGet(t *testing.T) {
Expand Down
Loading

0 comments on commit 79c03b6

Please sign in to comment.