Skip to content

Commit

Permalink
Bump version to 79.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ramya-stripe committed Jun 24, 2024
1 parent f00c957 commit 6278741
Show file tree
Hide file tree
Showing 253 changed files with 704 additions and 685 deletions.
19 changes: 19 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,24 @@
# Changelog

## 79.0.0 - 2024-06-24
* [#1878](https://github.com/stripe/stripe-go/pull/1878) Update generated code

This release changes the pinned API version to 2024-06-20. Please read the [API Upgrade Guide](https://stripe.com/docs/upgrades#2024-06-20) and carefully review the API changes before upgrading.

### ⚠️ Breaking changes

* Remove the unused resource `PlatformTaxFee`
* Rename `VolumeDecimal` to `QuantityDecimal` on `IssuingTransactionPurchaseDetailsFuel`, `TestHelpersIssuingAuthorizationCapturePurchaseDetailsFuelParams`, `TestHelpersIssuingTransactionCreateForceCapturePurchaseDetailsFuelParams`, and `TestHelpersIssuingTransactionCreateUnlinkedRefundPurchaseDetailsFuelParams`

## Additions

* Add support for `FinalizeAmount` test helper method on resource `Issuing.Authorization`
* Add support for new value `ch_uid` on enums `CheckoutSessionCustomerDetailsTaxIdsType`, `InvoiceCustomerTaxIdsType`, `TaxCalculationCustomerDetailsTaxIdsType`, `TaxIdType`, and `TaxTransactionCustomerDetailsTaxIdsType`
* Add support for `Fleet` on `IssuingAuthorizationParams`, `IssuingAuthorization`, `IssuingTransactionPurchaseDetails`, `TestHelpersIssuingAuthorizationCapturePurchaseDetailsParams`, `TestHelpersIssuingTransactionCreateForceCapturePurchaseDetailsParams`, and `TestHelpersIssuingTransactionCreateUnlinkedRefundPurchaseDetailsParams`
* Add support for `Fuel` on `IssuingAuthorizationParams` and `IssuingAuthorization`
* Add support for `IndustryProductCode` and `QuantityDecimal` on `IssuingTransactionPurchaseDetailsFuel`, `TestHelpersIssuingAuthorizationCapturePurchaseDetailsFuelParams`, `TestHelpersIssuingTransactionCreateForceCapturePurchaseDetailsFuelParams`, and `TestHelpersIssuingTransactionCreateUnlinkedRefundPurchaseDetailsFuelParams`
* Add support for new values `card_canceled`, `card_expired`, `cardholder_blocked`, `insecure_authorization_method`, and `pin_blocked` on enum `IssuingAuthorizationRequestHistoryReason`

## 78.12.0 - 2024-06-17
* [#1876](https://github.com/stripe/stripe-go/pull/1876) Update generated code
* Add support for `TaxIDCollection` on `PaymentLinkParams`
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/v78)
[![Go Reference](https://pkg.go.dev/badge/github.com/stripe/stripe-go)](https://pkg.go.dev/github.com/stripe/stripe-go/v79)
[![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/v78"
"github.com/stripe/stripe-go/v78/customer"
"github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/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/v78
go get -u github.com/stripe/stripe-go/v79
```

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

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

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

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

```go
import (
"github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/client"
"github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/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/v78 Backend
mockgen -destination=mocks/backend.go -package=mocks github.com/stripe/stripe-go/v79 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/v78"
"github.com/stripe/stripe-go/v78/account"
"github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/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/v78@v77.1.0-beta.1
go get -u github.com/stripe/stripe-go/v79@v77.1.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 @@
78.12.0
79.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/v78/form"
"github.com/stripe/stripe-go/v79/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/v78"
"github.com/stripe/stripe-go/v78/form"
stripe "github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/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/v78"
_ "github.com/stripe/stripe-go/v78/testing"
stripe "github.com/stripe/stripe-go/v79"
_ "github.com/stripe/stripe-go/v79/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/v78/form"
"github.com/stripe/stripe-go/v79/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/v78"
stripe "github.com/stripe/stripe-go/v79"
)

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

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

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

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

stripe "github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/form"
stripe "github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/form"
)

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

stripe "github.com/stripe/stripe-go/v78"
stripe "github.com/stripe/stripe-go/v79"
)

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

stripe "github.com/stripe/stripe-go/v78"
stripe "github.com/stripe/stripe-go/v79"
)

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

stripe "github.com/stripe/stripe-go/v78"
"github.com/stripe/stripe-go/v78/form"
stripe "github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/form"
)

// Client is used to invoke /billing/meters/{id}/event_summaries APIs.
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/v78"
"github.com/stripe/stripe-go/v78/form"
stripe "github.com/stripe/stripe-go/v79"
"github.com/stripe/stripe-go/v79/form"
)

// Client is used to invoke /billing_portal/configurations APIs.
Expand Down
Loading

0 comments on commit 6278741

Please sign in to comment.