From 2774ff2e05614e0f4c7c376bbb512be9c52cda4e Mon Sep 17 00:00:00 2001 From: Brandur Date: Wed, 16 Jan 2019 13:40:06 -0800 Subject: [PATCH] Revert Go module support Reverts: https://github.com/stripe/stripe-go/pull/712 (And an earlier PR that added a `go.mod` file in the first place.) Unfortunately, there are still some fairly bad incompatibilities between Go modules and Dep for users still on the latter. For now, we're going to revert Go module support because there doesn't seem to be any easy way (i.e., anything that's not maintaining a fork) of doing a good job of both. Projects can still use the Go module system, but will have to pull this package in as a pre-module incompatible one. We are hoping to eventually see basic module awareness merged into Dep: https://github.com/golang/dep/pull/1963 If/when that gets done, we'll revert this revert after a small grace period, and hopefully be back to a place where both packaging systems are well supported. I'll also modify the README to clarify the current situation in another follow up PR. --- account.go | 2 +- account/client.go | 4 +- account/client_test.go | 4 +- account_test.go | 2 +- accountlink/client.go | 2 +- accountlink/client_test.go | 4 +- applepaydomain/client.go | 4 +- applepaydomain/client_test.go | 4 +- balance/client.go | 4 +- balance/client_test.go | 4 +- bankaccount.go | 2 +- bankaccount/client.go | 4 +- bankaccount/client_test.go | 4 +- bankaccount_test.go | 2 +- bitcoinreceiver/client.go | 4 +- bitcoinreceiver/client_test.go | 4 +- bitcointransaction/client.go | 4 +- bitcointransaction/client_test.go | 4 +- card.go | 2 +- card/client.go | 4 +- card/client_test.go | 4 +- card_test.go | 2 +- charge/client.go | 4 +- charge/client_test.go | 4 +- charge_test.go | 2 +- client/api.go | 116 ++++++++++++------------ countryspec/client.go | 4 +- countryspec/client_test.go | 4 +- coupon/client.go | 4 +- coupon/client_test.go | 4 +- customer/client.go | 4 +- customer/client_test.go | 4 +- discount/client.go | 2 +- discount/client_test.go | 2 +- dispute/client.go | 4 +- dispute/client_test.go | 4 +- ephemeralkey/client.go | 2 +- ephemeralkey/client_test.go | 4 +- event/client.go | 4 +- event/client_test.go | 4 +- example_test.go | 10 +- exchangerate/client.go | 4 +- exchangerate/client_test.go | 4 +- fee/client.go | 4 +- fee/client_test.go | 4 +- feerefund/client.go | 4 +- feerefund/client_test.go | 4 +- file/client.go | 4 +- file/client_test.go | 4 +- filelink/client.go | 4 +- filelink/client_test.go | 4 +- go.mod | 8 -- go.sum | 12 --- invoice/client.go | 4 +- invoice/client_test.go | 4 +- invoiceitem/client.go | 4 +- invoiceitem/client_test.go | 4 +- issuerfraudrecord/client.go | 4 +- issuerfraudrecord/client_test.go | 4 +- issuing/authorization/client.go | 4 +- issuing/authorization/client_test.go | 4 +- issuing/card/client.go | 4 +- issuing/card/client_test.go | 4 +- issuing/cardholder/client.go | 4 +- issuing/cardholder/client_test.go | 4 +- issuing/dispute/client.go | 4 +- issuing/dispute/client_test.go | 4 +- issuing/transaction/client.go | 4 +- issuing/transaction/client_test.go | 4 +- iter.go | 2 +- iter_test.go | 2 +- loginlink/client.go | 2 +- loginlink/client_test.go | 4 +- order/client.go | 4 +- order/client_test.go | 4 +- order_test.go | 2 +- orderreturn/client.go | 4 +- orderreturn/client_test.go | 4 +- params.go | 2 +- params_test.go | 6 +- paymentintent/client.go | 4 +- paymentintent/client_test.go | 4 +- paymentsource.go | 2 +- paymentsource/client.go | 4 +- paymentsource/client_test.go | 4 +- paymentsource_test.go | 2 +- payout/client.go | 4 +- payout/client_test.go | 4 +- person/client.go | 4 +- person/client_test.go | 4 +- plan.go | 2 +- plan/client.go | 4 +- plan/client_test.go | 4 +- plan_test.go | 2 +- product/client.go | 4 +- product/client_test.go | 4 +- radar/valuelist/client.go | 4 +- radar/valuelist/client_test.go | 4 +- radar/valuelistitem/client.go | 4 +- radar/valuelistitem/client_test.go | 4 +- recipient.go | 2 +- recipient/client.go | 4 +- recipient/client_test.go | 4 +- recipient_test.go | 2 +- refund/client.go | 4 +- refund/client_test.go | 4 +- reporting/reportrun/client.go | 4 +- reporting/reportrun/client_test.go | 4 +- reporting/reporttype/client.go | 4 +- reporting/reporttype/client_test.go | 4 +- reversal/client.go | 4 +- reversal/client_test.go | 4 +- review/client.go | 4 +- review/client_test.go | 4 +- sigma/scheduledqueryrun/client.go | 4 +- sigma/scheduledqueryrun/client_test.go | 4 +- sku/client.go | 4 +- sku/client_test.go | 4 +- source.go | 2 +- source/client.go | 2 +- source/client_test.go | 4 +- source_test.go | 2 +- sourcetransaction/client.go | 4 +- sourcetransaction/client_test.go | 4 +- stripe.go | 2 +- stripe_test.go | 4 +- sub.go | 2 +- sub/client.go | 4 +- sub/client_test.go | 4 +- sub_test.go | 2 +- subitem/client.go | 4 +- subitem/client_test.go | 4 +- terminal/connectiontoken/client.go | 2 +- terminal/connectiontoken/client_test.go | 4 +- terminal/location/client.go | 4 +- terminal/location/client_test.go | 4 +- terminal/reader/client.go | 4 +- terminal/reader/client_test.go | 4 +- testing/testing.go | 4 +- threedsecure/client.go | 2 +- threedsecure/client_test.go | 4 +- token/client.go | 2 +- token/client_test.go | 4 +- topup/client.go | 4 +- topup/client_test.go | 4 +- transfer/client.go | 4 +- transfer/client_test.go | 4 +- usagerecord/client.go | 2 +- usagerecord/client_test.go | 4 +- usagerecord_test.go | 2 +- usagerecordsummary/client.go | 4 +- usagerecordsummary/client_test.go | 4 +- webhook/client.go | 2 +- webhook/client_handler_test.go | 2 +- webhookendpoint/client.go | 4 +- webhookendpoint/client_test.go | 4 +- 156 files changed, 333 insertions(+), 353 deletions(-) delete mode 100644 go.mod delete mode 100644 go.sum diff --git a/account.go b/account.go index 85a30d80c7..e7519b21d0 100644 --- a/account.go +++ b/account.go @@ -3,7 +3,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // AccountType is the type of an account. diff --git a/account/client.go b/account/client.go index a40ff541a8..1d23cbbc71 100644 --- a/account/client.go +++ b/account/client.go @@ -6,8 +6,8 @@ package account import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke APIs related to accounts. diff --git a/account/client_test.go b/account/client_test.go index 0344256353..bf890a64cc 100644 --- a/account/client_test.go +++ b/account/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestAccountDel(t *testing.T) { diff --git a/account_test.go b/account_test.go index 0be8961700..5326a746ca 100644 --- a/account_test.go +++ b/account_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestAccountExternalAccountParams_AppendTo(t *testing.T) { diff --git a/accountlink/client.go b/accountlink/client.go index 0cf0bce3b7..dbf15a1c80 100644 --- a/accountlink/client.go +++ b/accountlink/client.go @@ -6,7 +6,7 @@ package accountlink import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke APIs related to account links. diff --git a/accountlink/client_test.go b/accountlink/client_test.go index 3b37a6d6fa..3028e59c24 100644 --- a/accountlink/client_test.go +++ b/accountlink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestAccountLinkNew(t *testing.T) { diff --git a/applepaydomain/client.go b/applepaydomain/client.go index 77527270b6..48c7bb6fec 100644 --- a/applepaydomain/client.go +++ b/applepaydomain/client.go @@ -4,8 +4,8 @@ package applepaydomain import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /apple_pay/domains and Apple Pay domain-related APIs. diff --git a/applepaydomain/client_test.go b/applepaydomain/client_test.go index 13a52f28ff..5da0937643 100644 --- a/applepaydomain/client_test.go +++ b/applepaydomain/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestApplePayDomainDel(t *testing.T) { diff --git a/balance/client.go b/balance/client.go index 7d013efffd..4d67314e3c 100644 --- a/balance/client.go +++ b/balance/client.go @@ -4,8 +4,8 @@ package balance import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /balance and transaction-related APIs. diff --git a/balance/client_test.go b/balance/client_test.go index 1edfae07d1..939a9df880 100644 --- a/balance/client_test.go +++ b/balance/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestBalanceGet(t *testing.T) { diff --git a/bankaccount.go b/bankaccount.go index 6a2451bb2e..5d966ef933 100644 --- a/bankaccount.go +++ b/bankaccount.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strconv" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // BankAccountStatus is the list of allowed values for the bank account's status. diff --git a/bankaccount/client.go b/bankaccount/client.go index ef5316a176..cbbff09301 100644 --- a/bankaccount/client.go +++ b/bankaccount/client.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /bank_accounts APIs. diff --git a/bankaccount/client_test.go b/bankaccount/client_test.go index 55a6c452a3..29680382f7 100644 --- a/bankaccount/client_test.go +++ b/bankaccount/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestBankAccountDel_ByAccount(t *testing.T) { diff --git a/bankaccount_test.go b/bankaccount_test.go index f10bcdbdef..c273d6d338 100644 --- a/bankaccount_test.go +++ b/bankaccount_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestBankAccount_UnmarshalJSON(t *testing.T) { diff --git a/bitcoinreceiver/client.go b/bitcoinreceiver/client.go index c059ff9fb9..1dbf274a3b 100644 --- a/bitcoinreceiver/client.go +++ b/bitcoinreceiver/client.go @@ -7,8 +7,8 @@ package bitcoinreceiver import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /bitcoin/receivers APIs. diff --git a/bitcoinreceiver/client_test.go b/bitcoinreceiver/client_test.go index 59ff8b85b4..e5f932d5e5 100644 --- a/bitcoinreceiver/client_test.go +++ b/bitcoinreceiver/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestBitcoinReceiverGet(t *testing.T) { diff --git a/bitcointransaction/client.go b/bitcointransaction/client.go index a9e225db5e..7950dbb7e2 100644 --- a/bitcointransaction/client.go +++ b/bitcointransaction/client.go @@ -4,8 +4,8 @@ package bitcointransaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /bitcoin/receivers/:receiver_id/transactions APIs. diff --git a/bitcointransaction/client_test.go b/bitcointransaction/client_test.go index 05fdbbbde5..4256d60184 100644 --- a/bitcointransaction/client_test.go +++ b/bitcointransaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestBitcoinTransactionList(t *testing.T) { diff --git a/card.go b/card.go index 7929d8f6cf..053f50b712 100644 --- a/card.go +++ b/card.go @@ -4,7 +4,7 @@ import ( "encoding/json" "strconv" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // CardAvailablePayoutMethod is a set of available payout methods for the card. diff --git a/card/client.go b/card/client.go index 3dbc629b07..2fe4cb12c7 100644 --- a/card/client.go +++ b/card/client.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /cards APIs. diff --git a/card/client_test.go b/card/client_test.go index 945880347c..13ea00a71b 100644 --- a/card/client_test.go +++ b/card/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestCardDel(t *testing.T) { diff --git a/card_test.go b/card_test.go index c5c4c3fe7c..dc896b94fa 100644 --- a/card_test.go +++ b/card_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestCardListParams_AppendTo(t *testing.T) { diff --git a/charge/client.go b/charge/client.go index 1019873280..a5f17ae979 100644 --- a/charge/client.go +++ b/charge/client.go @@ -6,8 +6,8 @@ package charge import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke APIs related to charges. diff --git a/charge/client_test.go b/charge/client_test.go index 75b4a715e4..603ffface3 100644 --- a/charge/client_test.go +++ b/charge/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestChargeCapture(t *testing.T) { diff --git a/charge_test.go b/charge_test.go index d37767e920..a3a56bb7e7 100644 --- a/charge_test.go +++ b/charge_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestCharge_UnmarshalJSON(t *testing.T) { diff --git a/client/api.go b/client/api.go index 5c8bdccac8..18c8fb939a 100644 --- a/client/api.go +++ b/client/api.go @@ -2,64 +2,64 @@ package client import ( - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/account" - "github.com/stripe/stripe-go/v55/applepaydomain" - "github.com/stripe/stripe-go/v55/balance" - "github.com/stripe/stripe-go/v55/bankaccount" - "github.com/stripe/stripe-go/v55/bitcoinreceiver" - "github.com/stripe/stripe-go/v55/bitcointransaction" - "github.com/stripe/stripe-go/v55/card" - "github.com/stripe/stripe-go/v55/charge" - "github.com/stripe/stripe-go/v55/countryspec" - "github.com/stripe/stripe-go/v55/coupon" - "github.com/stripe/stripe-go/v55/customer" - "github.com/stripe/stripe-go/v55/discount" - "github.com/stripe/stripe-go/v55/dispute" - "github.com/stripe/stripe-go/v55/ephemeralkey" - "github.com/stripe/stripe-go/v55/event" - "github.com/stripe/stripe-go/v55/exchangerate" - "github.com/stripe/stripe-go/v55/fee" - "github.com/stripe/stripe-go/v55/feerefund" - "github.com/stripe/stripe-go/v55/file" - "github.com/stripe/stripe-go/v55/filelink" - "github.com/stripe/stripe-go/v55/invoice" - "github.com/stripe/stripe-go/v55/invoiceitem" - "github.com/stripe/stripe-go/v55/issuerfraudrecord" - "github.com/stripe/stripe-go/v55/issuing/authorization" - issuingcard "github.com/stripe/stripe-go/v55/issuing/card" - "github.com/stripe/stripe-go/v55/issuing/cardholder" - issuingdispute "github.com/stripe/stripe-go/v55/issuing/dispute" - "github.com/stripe/stripe-go/v55/issuing/transaction" - "github.com/stripe/stripe-go/v55/loginlink" - "github.com/stripe/stripe-go/v55/order" - "github.com/stripe/stripe-go/v55/orderreturn" - "github.com/stripe/stripe-go/v55/paymentintent" - "github.com/stripe/stripe-go/v55/paymentsource" - "github.com/stripe/stripe-go/v55/payout" - "github.com/stripe/stripe-go/v55/plan" - "github.com/stripe/stripe-go/v55/product" - "github.com/stripe/stripe-go/v55/radar/valuelist" - "github.com/stripe/stripe-go/v55/radar/valuelistitem" - "github.com/stripe/stripe-go/v55/recipient" - "github.com/stripe/stripe-go/v55/refund" - "github.com/stripe/stripe-go/v55/reporting/reportrun" - "github.com/stripe/stripe-go/v55/reporting/reporttype" - "github.com/stripe/stripe-go/v55/reversal" - "github.com/stripe/stripe-go/v55/sigma/scheduledqueryrun" - "github.com/stripe/stripe-go/v55/sku" - "github.com/stripe/stripe-go/v55/source" - "github.com/stripe/stripe-go/v55/sourcetransaction" - "github.com/stripe/stripe-go/v55/sub" - "github.com/stripe/stripe-go/v55/subitem" - terminalconnectiontoken "github.com/stripe/stripe-go/v55/terminal/connectiontoken" - terminallocation "github.com/stripe/stripe-go/v55/terminal/location" - terminalreader "github.com/stripe/stripe-go/v55/terminal/reader" - "github.com/stripe/stripe-go/v55/token" - "github.com/stripe/stripe-go/v55/topup" - "github.com/stripe/stripe-go/v55/transfer" - "github.com/stripe/stripe-go/v55/usagerecord" - "github.com/stripe/stripe-go/v55/webhookendpoint" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/account" + "github.com/stripe/stripe-go/applepaydomain" + "github.com/stripe/stripe-go/balance" + "github.com/stripe/stripe-go/bankaccount" + "github.com/stripe/stripe-go/bitcoinreceiver" + "github.com/stripe/stripe-go/bitcointransaction" + "github.com/stripe/stripe-go/card" + "github.com/stripe/stripe-go/charge" + "github.com/stripe/stripe-go/countryspec" + "github.com/stripe/stripe-go/coupon" + "github.com/stripe/stripe-go/customer" + "github.com/stripe/stripe-go/discount" + "github.com/stripe/stripe-go/dispute" + "github.com/stripe/stripe-go/ephemeralkey" + "github.com/stripe/stripe-go/event" + "github.com/stripe/stripe-go/exchangerate" + "github.com/stripe/stripe-go/fee" + "github.com/stripe/stripe-go/feerefund" + "github.com/stripe/stripe-go/file" + "github.com/stripe/stripe-go/filelink" + "github.com/stripe/stripe-go/invoice" + "github.com/stripe/stripe-go/invoiceitem" + "github.com/stripe/stripe-go/issuerfraudrecord" + "github.com/stripe/stripe-go/issuing/authorization" + issuingcard "github.com/stripe/stripe-go/issuing/card" + "github.com/stripe/stripe-go/issuing/cardholder" + issuingdispute "github.com/stripe/stripe-go/issuing/dispute" + "github.com/stripe/stripe-go/issuing/transaction" + "github.com/stripe/stripe-go/loginlink" + "github.com/stripe/stripe-go/order" + "github.com/stripe/stripe-go/orderreturn" + "github.com/stripe/stripe-go/paymentintent" + "github.com/stripe/stripe-go/paymentsource" + "github.com/stripe/stripe-go/payout" + "github.com/stripe/stripe-go/plan" + "github.com/stripe/stripe-go/product" + "github.com/stripe/stripe-go/radar/valuelist" + "github.com/stripe/stripe-go/radar/valuelistitem" + "github.com/stripe/stripe-go/recipient" + "github.com/stripe/stripe-go/refund" + "github.com/stripe/stripe-go/reporting/reportrun" + "github.com/stripe/stripe-go/reporting/reporttype" + "github.com/stripe/stripe-go/reversal" + "github.com/stripe/stripe-go/sigma/scheduledqueryrun" + "github.com/stripe/stripe-go/sku" + "github.com/stripe/stripe-go/source" + "github.com/stripe/stripe-go/sourcetransaction" + "github.com/stripe/stripe-go/sub" + "github.com/stripe/stripe-go/subitem" + terminalconnectiontoken "github.com/stripe/stripe-go/terminal/connectiontoken" + terminallocation "github.com/stripe/stripe-go/terminal/location" + terminalreader "github.com/stripe/stripe-go/terminal/reader" + "github.com/stripe/stripe-go/token" + "github.com/stripe/stripe-go/topup" + "github.com/stripe/stripe-go/transfer" + "github.com/stripe/stripe-go/usagerecord" + "github.com/stripe/stripe-go/webhookendpoint" ) // API is the Stripe client. It contains all the different resources available. diff --git a/countryspec/client.go b/countryspec/client.go index b4d954aae5..3c80fe8407 100644 --- a/countryspec/client.go +++ b/countryspec/client.go @@ -4,8 +4,8 @@ package countryspec import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /country_specs and countryspec-related APIs. diff --git a/countryspec/client_test.go b/countryspec/client_test.go index d7dc8756a8..feefa7cd44 100644 --- a/countryspec/client_test.go +++ b/countryspec/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestCountrySpecGet(t *testing.T) { diff --git a/coupon/client.go b/coupon/client.go index 5eb6e4f8cf..da17e9eeb1 100644 --- a/coupon/client.go +++ b/coupon/client.go @@ -4,8 +4,8 @@ package coupon import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /coupons APIs. diff --git a/coupon/client_test.go b/coupon/client_test.go index 1ac38eebc1..898c44d7ff 100644 --- a/coupon/client_test.go +++ b/coupon/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestCouponDel(t *testing.T) { diff --git a/customer/client.go b/customer/client.go index 67b4b28346..d7cacd5107 100644 --- a/customer/client.go +++ b/customer/client.go @@ -4,8 +4,8 @@ package customer import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /customers APIs. diff --git a/customer/client_test.go b/customer/client_test.go index 4830333df7..78d3dd5101 100644 --- a/customer/client_test.go +++ b/customer/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestCustomerDel(t *testing.T) { diff --git a/discount/client.go b/discount/client.go index f5305cc9e9..c001277cd8 100644 --- a/discount/client.go +++ b/discount/client.go @@ -4,7 +4,7 @@ package discount import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke discount-related APIs. diff --git a/discount/client_test.go b/discount/client_test.go index eef4a69111..06638943f8 100644 --- a/discount/client_test.go +++ b/discount/client_test.go @@ -4,7 +4,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - _ "github.com/stripe/stripe-go/v55/testing" + _ "github.com/stripe/stripe-go/testing" ) func TestDiscountDel(t *testing.T) { diff --git a/dispute/client.go b/dispute/client.go index d0290d74cd..d577b7e5c1 100644 --- a/dispute/client.go +++ b/dispute/client.go @@ -3,8 +3,8 @@ package dispute import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke dispute-related APIs. diff --git a/dispute/client_test.go b/dispute/client_test.go index 009ddd47c5..9975053fe8 100644 --- a/dispute/client_test.go +++ b/dispute/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestDisputeClose(t *testing.T) { diff --git a/ephemeralkey/client.go b/ephemeralkey/client.go index aa3ac6dba6..c727c7c957 100644 --- a/ephemeralkey/client.go +++ b/ephemeralkey/client.go @@ -5,7 +5,7 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /ephemeral_keys APIs. diff --git a/ephemeralkey/client_test.go b/ephemeralkey/client_test.go index 2ce95e42ae..f9f0aa22bd 100644 --- a/ephemeralkey/client_test.go +++ b/ephemeralkey/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestEphemeralKeyDel(t *testing.T) { diff --git a/event/client.go b/event/client.go index 973e9a37aa..69209bcde8 100644 --- a/event/client.go +++ b/event/client.go @@ -4,8 +4,8 @@ package event import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /events APIs. diff --git a/event/client_test.go b/event/client_test.go index e99ef92d32..f6ab6e1fdf 100644 --- a/event/client_test.go +++ b/event/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestEventGet(t *testing.T) { diff --git a/example_test.go b/example_test.go index c972531d2f..641a57f020 100644 --- a/example_test.go +++ b/example_test.go @@ -3,11 +3,11 @@ package stripe_test import ( "log" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/charge" - "github.com/stripe/stripe-go/v55/customer" - "github.com/stripe/stripe-go/v55/invoice" - "github.com/stripe/stripe-go/v55/plan" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/charge" + "github.com/stripe/stripe-go/customer" + "github.com/stripe/stripe-go/invoice" + "github.com/stripe/stripe-go/plan" ) func ExampleCharge_new() { diff --git a/exchangerate/client.go b/exchangerate/client.go index 11265ae9f0..8930c12505 100644 --- a/exchangerate/client.go +++ b/exchangerate/client.go @@ -4,8 +4,8 @@ package exchangerate import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /exchange_rates and exchangerates-related APIs. diff --git a/exchangerate/client_test.go b/exchangerate/client_test.go index 07ee0d98cf..fbdc707c08 100644 --- a/exchangerate/client_test.go +++ b/exchangerate/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestExchangeRateGet(t *testing.T) { diff --git a/fee/client.go b/fee/client.go index 2dbff4f93b..0d47d5d188 100644 --- a/fee/client.go +++ b/fee/client.go @@ -4,8 +4,8 @@ package fee import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke application_fees APIs. diff --git a/fee/client_test.go b/fee/client_test.go index 4084d01478..7e32b35717 100644 --- a/fee/client_test.go +++ b/fee/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestApplicationFeeGet(t *testing.T) { diff --git a/feerefund/client.go b/feerefund/client.go index 54c0f8c045..f9a422768c 100644 --- a/feerefund/client.go +++ b/feerefund/client.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /application_fees/refunds APIs. diff --git a/feerefund/client_test.go b/feerefund/client_test.go index 56baa06e23..0c5b96c2a8 100644 --- a/feerefund/client_test.go +++ b/feerefund/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestFeeRefundGet(t *testing.T) { diff --git a/file/client.go b/file/client.go index de3df2275b..11f23d7417 100644 --- a/file/client.go +++ b/file/client.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke file APIs. diff --git a/file/client_test.go b/file/client_test.go index b73abfcb58..70c1dd5d49 100644 --- a/file/client_test.go +++ b/file/client_test.go @@ -16,8 +16,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) const ( diff --git a/filelink/client.go b/filelink/client.go index d9cba24092..d130a681b2 100644 --- a/filelink/client.go +++ b/filelink/client.go @@ -6,8 +6,8 @@ package filelink import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke APIs related to file links. diff --git a/filelink/client_test.go b/filelink/client_test.go index 0740c094c4..1da5504dec 100644 --- a/filelink/client_test.go +++ b/filelink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestFileLinkGet(t *testing.T) { diff --git a/go.mod b/go.mod deleted file mode 100644 index 24675e1c56..0000000000 --- a/go.mod +++ /dev/null @@ -1,8 +0,0 @@ -module github.com/stripe/stripe-go/v55 - -require ( - github.com/davecgh/go-spew v1.1.1 // indirect - github.com/stretchr/testify v1.3.0 - golang.org/x/net v0.0.0-20190110200230-915654e7eabc - golang.org/x/text v0.3.0 // indirect -) diff --git a/go.sum b/go.sum deleted file mode 100644 index 8fd2dbf190..0000000000 --- a/go.sum +++ /dev/null @@ -1,12 +0,0 @@ -github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= -github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= -github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= -github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= -github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= -github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q= -github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI= -golang.org/x/net v0.0.0-20190110200230-915654e7eabc h1:Yx9JGxI1SBhVLFjpAkWMaO1TF+xyqtHLjZpvQboJGiM= -golang.org/x/net v0.0.0-20190110200230-915654e7eabc/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= -golang.org/x/text v0.3.0 h1:g61tztE5qeGQ89tm6NTjjM9VPIm088od1l6aSorWRWg= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= diff --git a/invoice/client.go b/invoice/client.go index ac18baf933..a8d30e322e 100644 --- a/invoice/client.go +++ b/invoice/client.go @@ -4,8 +4,8 @@ package invoice import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is the client used to invoke /invoices APIs. diff --git a/invoice/client_test.go b/invoice/client_test.go index 8821f15756..ab3b4e6cec 100644 --- a/invoice/client_test.go +++ b/invoice/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestInvoiceGet(t *testing.T) { diff --git a/invoiceitem/client.go b/invoiceitem/client.go index 41cbba4d5e..410fe3c31c 100644 --- a/invoiceitem/client.go +++ b/invoiceitem/client.go @@ -4,8 +4,8 @@ package invoiceitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /invoiceitems APIs. diff --git a/invoiceitem/client_test.go b/invoiceitem/client_test.go index d5ffcf6b4d..04c37627e6 100644 --- a/invoiceitem/client_test.go +++ b/invoiceitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestInvoiceItemDel(t *testing.T) { diff --git a/issuerfraudrecord/client.go b/issuerfraudrecord/client.go index 8a5b25445f..fef537ea4c 100644 --- a/issuerfraudrecord/client.go +++ b/issuerfraudrecord/client.go @@ -3,8 +3,8 @@ package issuerfraudrecord import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to interact with the /issuer_fraud_records API. diff --git a/issuerfraudrecord/client_test.go b/issuerfraudrecord/client_test.go index 40ef3f3d02..3afe0446ae 100644 --- a/issuerfraudrecord/client_test.go +++ b/issuerfraudrecord/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuerFraudRecordGet(t *testing.T) { diff --git a/issuing/authorization/client.go b/issuing/authorization/client.go index 0ed0faccef..d25d39d996 100644 --- a/issuing/authorization/client.go +++ b/issuing/authorization/client.go @@ -6,8 +6,8 @@ package authorization import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /issuing/authorizations APIs. diff --git a/issuing/authorization/client_test.go b/issuing/authorization/client_test.go index 3c83f77e2a..48dd45e797 100644 --- a/issuing/authorization/client_test.go +++ b/issuing/authorization/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuingAuthorizationApprove(t *testing.T) { diff --git a/issuing/card/client.go b/issuing/card/client.go index c811c3c9ed..443ae05327 100644 --- a/issuing/card/client.go +++ b/issuing/card/client.go @@ -6,8 +6,8 @@ package card import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /issuing/cards APIs. diff --git a/issuing/card/client_test.go b/issuing/card/client_test.go index 2def92ac46..9b2e9f7537 100644 --- a/issuing/card/client_test.go +++ b/issuing/card/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuingCardDetails(t *testing.T) { diff --git a/issuing/cardholder/client.go b/issuing/cardholder/client.go index c3cb4cd4b6..f0eb849209 100644 --- a/issuing/cardholder/client.go +++ b/issuing/cardholder/client.go @@ -6,8 +6,8 @@ package cardholder import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /issuing/cardholders APIs. diff --git a/issuing/cardholder/client_test.go b/issuing/cardholder/client_test.go index ed26fdc3a2..2ed2dbcc3e 100644 --- a/issuing/cardholder/client_test.go +++ b/issuing/cardholder/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuingCardholderGet(t *testing.T) { diff --git a/issuing/dispute/client.go b/issuing/dispute/client.go index cae567c3b8..14d24bbee0 100644 --- a/issuing/dispute/client.go +++ b/issuing/dispute/client.go @@ -6,8 +6,8 @@ package dispute import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /issuing/disputes APIs. diff --git a/issuing/dispute/client_test.go b/issuing/dispute/client_test.go index 4e1da0bf82..e1b42916be 100644 --- a/issuing/dispute/client_test.go +++ b/issuing/dispute/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuingDisputeGet(t *testing.T) { diff --git a/issuing/transaction/client.go b/issuing/transaction/client.go index 261439070f..85590a9f88 100644 --- a/issuing/transaction/client.go +++ b/issuing/transaction/client.go @@ -6,8 +6,8 @@ package transaction import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /issuing/transactions APIs. diff --git a/issuing/transaction/client_test.go b/issuing/transaction/client_test.go index e852233c9d..f96a82843d 100644 --- a/issuing/transaction/client_test.go +++ b/issuing/transaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestIssuingTransactionGet(t *testing.T) { diff --git a/iter.go b/iter.go index 79e976a422..c11b621f25 100644 --- a/iter.go +++ b/iter.go @@ -3,7 +3,7 @@ package stripe import ( "reflect" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // diff --git a/iter_test.go b/iter_test.go index 3642aaab7a..c09873e165 100644 --- a/iter_test.go +++ b/iter_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestIterEmpty(t *testing.T) { diff --git a/loginlink/client.go b/loginlink/client.go index 62312465ed..fa602a1357 100644 --- a/loginlink/client.go +++ b/loginlink/client.go @@ -5,7 +5,7 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /login_links APIs. diff --git a/loginlink/client_test.go b/loginlink/client_test.go index b624fb8d3d..cd059757d7 100644 --- a/loginlink/client_test.go +++ b/loginlink/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestLoginLinkNew(t *testing.T) { diff --git a/order/client.go b/order/client.go index c0cd6e105d..12d8224173 100644 --- a/order/client.go +++ b/order/client.go @@ -3,8 +3,8 @@ package order import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /orders APIs. diff --git a/order/client_test.go b/order/client_test.go index a0a07228e3..78e4567114 100644 --- a/order/client_test.go +++ b/order/client_test.go @@ -8,8 +8,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestOrderGet(t *testing.T) { diff --git a/order_test.go b/order_test.go index f3964749d6..7b39064ba7 100644 --- a/order_test.go +++ b/order_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestOrder_UnmarshalJSON(t *testing.T) { diff --git a/orderreturn/client.go b/orderreturn/client.go index 253c9ca8bc..b6c13f852a 100644 --- a/orderreturn/client.go +++ b/orderreturn/client.go @@ -3,8 +3,8 @@ package orderreturn import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /orders APIs. diff --git a/orderreturn/client_test.go b/orderreturn/client_test.go index d7b4909807..7ef8151f32 100644 --- a/orderreturn/client_test.go +++ b/orderreturn/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestOrderReturnList(t *testing.T) { diff --git a/params.go b/params.go index 7367fced17..dd782ece74 100644 --- a/params.go +++ b/params.go @@ -9,7 +9,7 @@ import ( "net/url" "time" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // diff --git a/params_test.go b/params_test.go index 1ae0455c2f..717d2dfbd3 100644 --- a/params_test.go +++ b/params_test.go @@ -5,9 +5,9 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" - . "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" + . "github.com/stripe/stripe-go/testing" ) func TestRangeQueryParamsAppendTo(t *testing.T) { diff --git a/paymentintent/client.go b/paymentintent/client.go index 440eb0ae65..f428f2ef7f 100644 --- a/paymentintent/client.go +++ b/paymentintent/client.go @@ -6,8 +6,8 @@ package paymentintent import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke APIs related to payment intents. diff --git a/paymentintent/client_test.go b/paymentintent/client_test.go index 71ce304241..069b9bd432 100644 --- a/paymentintent/client_test.go +++ b/paymentintent/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestPaymentIntentCancel(t *testing.T) { diff --git a/paymentsource.go b/paymentsource.go index 6a9c19a920..4f592948b1 100644 --- a/paymentsource.go +++ b/paymentsource.go @@ -4,7 +4,7 @@ import ( "encoding/json" "fmt" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // PaymentSourceType consts represent valid payment sources. diff --git a/paymentsource/client.go b/paymentsource/client.go index 1015d9d1df..55d710045c 100644 --- a/paymentsource/client.go +++ b/paymentsource/client.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /sources APIs. diff --git a/paymentsource/client_test.go b/paymentsource/client_test.go index c050660264..d63fe15f5a 100644 --- a/paymentsource/client_test.go +++ b/paymentsource/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSourceGet(t *testing.T) { diff --git a/paymentsource_test.go b/paymentsource_test.go index 96741ca311..7928ca53d1 100644 --- a/paymentsource_test.go +++ b/paymentsource_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestSourceParams_AppendTo(t *testing.T) { diff --git a/payout/client.go b/payout/client.go index f022b29ba7..bebfa580eb 100644 --- a/payout/client.go +++ b/payout/client.go @@ -4,8 +4,8 @@ package payout import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /payouts APIs. diff --git a/payout/client_test.go b/payout/client_test.go index 7da5d1c078..ed4554a3e8 100644 --- a/payout/client_test.go +++ b/payout/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestPayoutCancel(t *testing.T) { diff --git a/person/client.go b/person/client.go index 842d45ce7b..49617286a5 100644 --- a/person/client.go +++ b/person/client.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /accounts/persons APIs. diff --git a/person/client_test.go b/person/client_test.go index 9f6eccf75b..0f3932377e 100644 --- a/person/client_test.go +++ b/person/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestPersonDel(t *testing.T) { diff --git a/plan.go b/plan.go index d2a8f3ca7d..fc0df7da40 100644 --- a/plan.go +++ b/plan.go @@ -3,7 +3,7 @@ package stripe import ( "strconv" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // PlanInterval is the list of allowed values for a plan's interval. diff --git a/plan/client.go b/plan/client.go index 34e9ac15c8..4df0c60104 100644 --- a/plan/client.go +++ b/plan/client.go @@ -4,8 +4,8 @@ package plan import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /plans APIs. diff --git a/plan/client_test.go b/plan/client_test.go index c1dc0c10c0..f9cf510347 100644 --- a/plan/client_test.go +++ b/plan/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestPlanDel(t *testing.T) { diff --git a/plan_test.go b/plan_test.go index 578ef9b498..ccb90873aa 100644 --- a/plan_test.go +++ b/plan_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestPlanListParams_AppendTo(t *testing.T) { diff --git a/product/client.go b/product/client.go index cfb001185e..9c0dfd5c67 100644 --- a/product/client.go +++ b/product/client.go @@ -3,8 +3,8 @@ package product import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /products APIs. diff --git a/product/client_test.go b/product/client_test.go index b3c77daa57..74cc641a72 100644 --- a/product/client_test.go +++ b/product/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestProductDel(t *testing.T) { diff --git a/radar/valuelist/client.go b/radar/valuelist/client.go index 5a5b1d8221..f2d3f40eb0 100644 --- a/radar/valuelist/client.go +++ b/radar/valuelist/client.go @@ -6,8 +6,8 @@ package valuelist import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /radar/value_lists APIs. diff --git a/radar/valuelist/client_test.go b/radar/valuelist/client_test.go index 864d7abc6b..de4116db70 100644 --- a/radar/valuelist/client_test.go +++ b/radar/valuelist/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestRadarValueListDel(t *testing.T) { diff --git a/radar/valuelistitem/client.go b/radar/valuelistitem/client.go index 18039ce132..66408f6c7b 100644 --- a/radar/valuelistitem/client.go +++ b/radar/valuelistitem/client.go @@ -6,8 +6,8 @@ package valuelistitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /radar/value_list_items APIs. diff --git a/radar/valuelistitem/client_test.go b/radar/valuelistitem/client_test.go index 11149ebd06..f3c4e567d9 100644 --- a/radar/valuelistitem/client_test.go +++ b/radar/valuelistitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestRadarValueListItemDel(t *testing.T) { diff --git a/recipient.go b/recipient.go index 4990772c0d..7b1676a194 100644 --- a/recipient.go +++ b/recipient.go @@ -3,7 +3,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // RecipientType is the list of allowed values for the recipient's type. diff --git a/recipient/client.go b/recipient/client.go index ceafb8a6d9..35ba3080fd 100644 --- a/recipient/client.go +++ b/recipient/client.go @@ -4,8 +4,8 @@ package recipient import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /recipients APIs. diff --git a/recipient/client_test.go b/recipient/client_test.go index 5c45a4e479..92b683eb6a 100644 --- a/recipient/client_test.go +++ b/recipient/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestRecipientDel(t *testing.T) { diff --git a/recipient_test.go b/recipient_test.go index 138d1aac9c..e9184ca01c 100644 --- a/recipient_test.go +++ b/recipient_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestRecipientParams_AppendTo(t *testing.T) { diff --git a/refund/client.go b/refund/client.go index b9698ce866..1d0084422f 100644 --- a/refund/client.go +++ b/refund/client.go @@ -4,8 +4,8 @@ package refund import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /refunds APIs. diff --git a/refund/client_test.go b/refund/client_test.go index d2c37463b3..8a5f5c88a6 100644 --- a/refund/client_test.go +++ b/refund/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestRefundGet(t *testing.T) { diff --git a/reporting/reportrun/client.go b/reporting/reportrun/client.go index c32cbedba6..c4150823e5 100644 --- a/reporting/reportrun/client.go +++ b/reporting/reportrun/client.go @@ -6,8 +6,8 @@ package reportrun import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /reporting/report_runs APIs. diff --git a/reporting/reportrun/client_test.go b/reporting/reportrun/client_test.go index a6ac41ec4e..9815327176 100644 --- a/reporting/reportrun/client_test.go +++ b/reporting/reportrun/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestReportRunGet(t *testing.T) { diff --git a/reporting/reporttype/client.go b/reporting/reporttype/client.go index dcf8f885c3..05946a8d40 100644 --- a/reporting/reporttype/client.go +++ b/reporting/reporttype/client.go @@ -6,8 +6,8 @@ package reporttype import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /reporting/report_types APIs. diff --git a/reporting/reporttype/client_test.go b/reporting/reporttype/client_test.go index 75c36b3638..42784a1aac 100644 --- a/reporting/reporttype/client_test.go +++ b/reporting/reporttype/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestReportTestGet(t *testing.T) { diff --git a/reversal/client.go b/reversal/client.go index 7af7ac1fa2..be5ab28bfd 100644 --- a/reversal/client.go +++ b/reversal/client.go @@ -5,8 +5,8 @@ import ( "fmt" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /transfers/reversals APIs. diff --git a/reversal/client_test.go b/reversal/client_test.go index 088ad1d328..3fa10badc8 100644 --- a/reversal/client_test.go +++ b/reversal/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestReversalGet(t *testing.T) { diff --git a/review/client.go b/review/client.go index c9c85f6528..fb42feb2a5 100644 --- a/review/client.go +++ b/review/client.go @@ -4,8 +4,8 @@ package review import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /reviews APIs. diff --git a/review/client_test.go b/review/client_test.go index 90ddecc147..2f4e2c0a92 100644 --- a/review/client_test.go +++ b/review/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestReviewApprove(t *testing.T) { diff --git a/sigma/scheduledqueryrun/client.go b/sigma/scheduledqueryrun/client.go index ce001403ae..06e8eaac97 100644 --- a/sigma/scheduledqueryrun/client.go +++ b/sigma/scheduledqueryrun/client.go @@ -6,8 +6,8 @@ package scheduledqueryrun import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /sigma/scheduled_query_runs APIs. diff --git a/sigma/scheduledqueryrun/client_test.go b/sigma/scheduledqueryrun/client_test.go index 45a60fc8b1..9d87b781a6 100644 --- a/sigma/scheduledqueryrun/client_test.go +++ b/sigma/scheduledqueryrun/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSigmaScheduledQueryRunGet(t *testing.T) { diff --git a/sku/client.go b/sku/client.go index 00088bd468..961914aa5a 100644 --- a/sku/client.go +++ b/sku/client.go @@ -3,8 +3,8 @@ package sku import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /skus APIs. diff --git a/sku/client_test.go b/sku/client_test.go index e890270417..ec7aaecc18 100644 --- a/sku/client_test.go +++ b/sku/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSKUDel(t *testing.T) { diff --git a/source.go b/source.go index 98e9c25f50..5451b9ce6e 100644 --- a/source.go +++ b/source.go @@ -3,7 +3,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // SourceCodeVerificationFlowStatus represents the possible statuses of a code verification flow. diff --git a/source/client.go b/source/client.go index b462e631ef..ea043b773c 100644 --- a/source/client.go +++ b/source/client.go @@ -4,7 +4,7 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /sources APIs. diff --git a/source/client_test.go b/source/client_test.go index 7dc5fabcae..188079e197 100644 --- a/source/client_test.go +++ b/source/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSourceGet(t *testing.T) { diff --git a/source_test.go b/source_test.go index afe95c422c..1302767001 100644 --- a/source_test.go +++ b/source_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestSourceObjectParams_AppendTo(t *testing.T) { diff --git a/sourcetransaction/client.go b/sourcetransaction/client.go index 424a7e0cc9..989cdce484 100644 --- a/sourcetransaction/client.go +++ b/sourcetransaction/client.go @@ -5,8 +5,8 @@ import ( "errors" "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /sources/:source_id/transactions APIs. diff --git a/sourcetransaction/client_test.go b/sourcetransaction/client_test.go index 618ff93c32..b0ad674c04 100644 --- a/sourcetransaction/client_test.go +++ b/sourcetransaction/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSourceTransactionList(t *testing.T) { diff --git a/stripe.go b/stripe.go index ffef78fd1a..392922e150 100644 --- a/stripe.go +++ b/stripe.go @@ -20,7 +20,7 @@ import ( "sync" "time" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // diff --git a/stripe_test.go b/stripe_test.go index 148407079d..26af9972fd 100644 --- a/stripe_test.go +++ b/stripe_test.go @@ -14,8 +14,8 @@ import ( "time" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55" - . "github.com/stripe/stripe-go/v55/testing" + "github.com/stripe/stripe-go" + . "github.com/stripe/stripe-go/testing" ) func TestBearerAuth(t *testing.T) { diff --git a/sub.go b/sub.go index 96fc11aa09..cbad026f4f 100644 --- a/sub.go +++ b/sub.go @@ -3,7 +3,7 @@ package stripe import ( "encoding/json" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) // SubscriptionStatus is the list of allowed values for the subscription's status. diff --git a/sub/client.go b/sub/client.go index 118f002f97..a27dd74606 100644 --- a/sub/client.go +++ b/sub/client.go @@ -4,8 +4,8 @@ package sub import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /subscriptions APIs. diff --git a/sub/client_test.go b/sub/client_test.go index ef5c30138b..f647bc480d 100644 --- a/sub/client_test.go +++ b/sub/client_test.go @@ -5,8 +5,8 @@ import ( "time" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSubscriptionCancel(t *testing.T) { diff --git a/sub_test.go b/sub_test.go index 7851e8148a..5d70db29c5 100644 --- a/sub_test.go +++ b/sub_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestSubscriptionParams_AppendTo(t *testing.T) { diff --git a/subitem/client.go b/subitem/client.go index 3de0e3ad48..ac4f3c3cb6 100644 --- a/subitem/client.go +++ b/subitem/client.go @@ -4,8 +4,8 @@ package subitem import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /subscriptions APIs. diff --git a/subitem/client_test.go b/subitem/client_test.go index a21cad9ae3..558328c6a0 100644 --- a/subitem/client_test.go +++ b/subitem/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestSubscriptionItemDel(t *testing.T) { diff --git a/terminal/connectiontoken/client.go b/terminal/connectiontoken/client.go index 75ba0ae850..d4862212fc 100644 --- a/terminal/connectiontoken/client.go +++ b/terminal/connectiontoken/client.go @@ -4,7 +4,7 @@ package connectiontoken import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /terminal/connection_tokens APIs. diff --git a/terminal/connectiontoken/client_test.go b/terminal/connectiontoken/client_test.go index de2fc5ab9b..06fe7b3460 100644 --- a/terminal/connectiontoken/client_test.go +++ b/terminal/connectiontoken/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTerminalConnectionTokenNew(t *testing.T) { diff --git a/terminal/location/client.go b/terminal/location/client.go index 6f45167910..3d51c4d121 100644 --- a/terminal/location/client.go +++ b/terminal/location/client.go @@ -4,8 +4,8 @@ package location import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invokte /terminal/locations APIs diff --git a/terminal/location/client_test.go b/terminal/location/client_test.go index 386c6ffad8..8140ef0d0d 100644 --- a/terminal/location/client_test.go +++ b/terminal/location/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTerminalLocationGet(t *testing.T) { diff --git a/terminal/reader/client.go b/terminal/reader/client.go index baa3cde992..b8c17db38c 100644 --- a/terminal/reader/client.go +++ b/terminal/reader/client.go @@ -4,8 +4,8 @@ package reader import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /terminal/readers APIs. diff --git a/terminal/reader/client_test.go b/terminal/reader/client_test.go index 6d5e7e4fd9..137ee80bf1 100644 --- a/terminal/reader/client_test.go +++ b/terminal/reader/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTerminalReaderGet(t *testing.T) { diff --git a/testing/testing.go b/testing/testing.go index 3b150458cd..0755d9bac0 100644 --- a/testing/testing.go +++ b/testing/testing.go @@ -8,8 +8,8 @@ import ( "strconv" "strings" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" "golang.org/x/net/http2" ) diff --git a/threedsecure/client.go b/threedsecure/client.go index c86ace6ffc..16a5769696 100644 --- a/threedsecure/client.go +++ b/threedsecure/client.go @@ -7,7 +7,7 @@ package threedsecure import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /3d_secure APIs. diff --git a/threedsecure/client_test.go b/threedsecure/client_test.go index 012d4c2396..4af2e2a79c 100644 --- a/threedsecure/client_test.go +++ b/threedsecure/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestThreeDSecureGet(t *testing.T) { diff --git a/token/client.go b/token/client.go index afedfbd076..9382373b2c 100644 --- a/token/client.go +++ b/token/client.go @@ -4,7 +4,7 @@ package token import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke /tokens APIs. diff --git a/token/client_test.go b/token/client_test.go index 0eb7b4c9d1..41428ab65c 100644 --- a/token/client_test.go +++ b/token/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTokenGet(t *testing.T) { diff --git a/topup/client.go b/topup/client.go index 259c8711fb..f71a420ede 100644 --- a/topup/client.go +++ b/topup/client.go @@ -3,8 +3,8 @@ package topup import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /topups APIs. diff --git a/topup/client_test.go b/topup/client_test.go index cc9f2de708..7ed4949dd1 100644 --- a/topup/client_test.go +++ b/topup/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTopupCancel(t *testing.T) { diff --git a/transfer/client.go b/transfer/client.go index 744818b259..e9ae0303e0 100644 --- a/transfer/client.go +++ b/transfer/client.go @@ -4,8 +4,8 @@ package transfer import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /transfers APIs. diff --git a/transfer/client_test.go b/transfer/client_test.go index 1e3f4816a8..59d0357f82 100644 --- a/transfer/client_test.go +++ b/transfer/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestTransferGet(t *testing.T) { diff --git a/usagerecord/client.go b/usagerecord/client.go index a4ceac435e..f06208bad3 100644 --- a/usagerecord/client.go +++ b/usagerecord/client.go @@ -4,7 +4,7 @@ package usagerecord import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" + stripe "github.com/stripe/stripe-go" ) // Client is used to invoke APIs related to usage records. diff --git a/usagerecord/client_test.go b/usagerecord/client_test.go index d84f5384fb..9ed13fc9a1 100644 --- a/usagerecord/client_test.go +++ b/usagerecord/client_test.go @@ -5,8 +5,8 @@ import ( "time" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestUsageRecordNew(t *testing.T) { diff --git a/usagerecord_test.go b/usagerecord_test.go index d1d1753860..728a5c4b84 100644 --- a/usagerecord_test.go +++ b/usagerecord_test.go @@ -5,7 +5,7 @@ import ( "testing" assert "github.com/stretchr/testify/require" - "github.com/stripe/stripe-go/v55/form" + "github.com/stripe/stripe-go/form" ) func TestUsageRecordParams_AppendTo(t *testing.T) { diff --git a/usagerecordsummary/client.go b/usagerecordsummary/client.go index 6a676ec60e..d10198645a 100644 --- a/usagerecordsummary/client.go +++ b/usagerecordsummary/client.go @@ -4,8 +4,8 @@ package usagerecordsummary import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke APIs related to usage record summaries. diff --git a/usagerecordsummary/client_test.go b/usagerecordsummary/client_test.go index 9f8066ee8e..7686730d5f 100644 --- a/usagerecordsummary/client_test.go +++ b/usagerecordsummary/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestUsageRecordSummaryList(t *testing.T) { diff --git a/webhook/client.go b/webhook/client.go index d478173560..51b414f8ac 100644 --- a/webhook/client.go +++ b/webhook/client.go @@ -11,7 +11,7 @@ import ( "strings" "time" - "github.com/stripe/stripe-go/v55" + "github.com/stripe/stripe-go" ) // diff --git a/webhook/client_handler_test.go b/webhook/client_handler_test.go index 431c72c2ae..4c5fa398df 100644 --- a/webhook/client_handler_test.go +++ b/webhook/client_handler_test.go @@ -6,7 +6,7 @@ import ( "log" "net/http" - "github.com/stripe/stripe-go/v55/webhook" + "github.com/stripe/stripe-go/webhook" ) func Example() { diff --git a/webhookendpoint/client.go b/webhookendpoint/client.go index 5daca968b2..a808dc9478 100644 --- a/webhookendpoint/client.go +++ b/webhookendpoint/client.go @@ -4,8 +4,8 @@ package webhookendpoint import ( "net/http" - stripe "github.com/stripe/stripe-go/v55" - "github.com/stripe/stripe-go/v55/form" + stripe "github.com/stripe/stripe-go" + "github.com/stripe/stripe-go/form" ) // Client is used to invoke /webhook_endpoints APIs. diff --git a/webhookendpoint/client_test.go b/webhookendpoint/client_test.go index 0fef50b946..184b9e9ec6 100644 --- a/webhookendpoint/client_test.go +++ b/webhookendpoint/client_test.go @@ -4,8 +4,8 @@ import ( "testing" assert "github.com/stretchr/testify/require" - stripe "github.com/stripe/stripe-go/v55" - _ "github.com/stripe/stripe-go/v55/testing" + stripe "github.com/stripe/stripe-go" + _ "github.com/stripe/stripe-go/testing" ) func TestWebhookEndpointDel(t *testing.T) {