Skip to content

Commit

Permalink
upgrade deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lelle.daniele committed Mar 30, 2024
1 parent 94c4672 commit d130f4d
Show file tree
Hide file tree
Showing 23 changed files with 124 additions and 150 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apprestintentcancel_test
Expand All @@ -18,8 +19,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"

"github.com/gorilla/mux"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/paymentintent"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/paymentintent"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apprestintentcapture_test
Expand All @@ -18,8 +19,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"

"github.com/gorilla/mux"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/paymentintent"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/paymentintent"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apprestintentconfirm_test
Expand All @@ -18,8 +19,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"

"github.com/gorilla/mux"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/paymentintent"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/paymentintent"
)

const (
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apprestintentcreate_test
Expand All @@ -13,7 +14,7 @@ import (
"strings"
"testing"

"github.com/stripe/stripe-go/customer"
"github.com/stripe/stripe-go/v76/customer"

appconfig "github.com/lelledaniele/upaygo/config"
apprestintentcreate "github.com/lelledaniele/upaygo/controller/rest/intent/create"
Expand Down
5 changes: 3 additions & 2 deletions controller/rest/intent/get/restintentget_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apprestintentget_test
Expand All @@ -18,8 +19,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"

"github.com/gorilla/mux"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/paymentintent"
"github.com/stripe/stripe-go/v76"
"github.com/stripe/stripe-go/v76/paymentintent"
)

const (
Expand Down
4 changes: 2 additions & 2 deletions customer/customerstripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,12 @@ import (

apperror "github.com/lelledaniele/upaygo/error"

"github.com/stripe/stripe-go/customer"
"github.com/stripe/stripe-go/v76/customer"

appconfig "github.com/lelledaniele/upaygo/config"
appcurrency "github.com/lelledaniele/upaygo/currency"

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

func NewStripe(email string, ac appcurrency.Currency) (Customer, error) {
Expand Down
3 changes: 2 additions & 1 deletion customer/customerstripe_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package appcustomer_test
Expand All @@ -8,7 +9,7 @@ import (
"os"
"testing"

"github.com/stripe/stripe-go/customer"
"github.com/stripe/stripe-go/v76/customer"

appcurrency "github.com/lelledaniele/upaygo/currency"

Expand Down
2 changes: 1 addition & 1 deletion error/stripe.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package apperror
import (
"encoding/json"

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

// Stripe returns a built-in error
Expand Down
27 changes: 19 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
module github.com/lelledaniele/upaygo

go 1.13
go 1.21

require (
github.com/go-chi/chi v4.0.2+incompatible // indirect
github.com/gorilla/mux v1.8.0
github.com/stripe/stripe-go v62.10.0+incompatible
github.com/swaggo/http-swagger v0.0.0-20190614090009-c2865af9083e
github.com/swaggo/swag v1.6.7 // indirect
golang.org/x/text v0.3.4 // indirect
golang.org/x/tools v0.0.0-20190908135931-fef9eaa9e42b // indirect
github.com/gorilla/mux v1.8.1
github.com/stripe/stripe-go/v76 v76.23.0
github.com/swaggo/http-swagger/v2 v2.0.2
)

require (
github.com/KyleBanks/depth v1.2.1 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/jsonreference v0.20.0 // indirect
github.com/go-openapi/spec v0.20.6 // indirect
github.com/go-openapi/swag v0.19.15 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/swaggo/files/v2 v2.0.0 // indirect
github.com/swaggo/swag v1.8.1 // indirect
golang.org/x/sys v0.5.0 // indirect
golang.org/x/tools v0.1.12 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
163 changes: 57 additions & 106 deletions go.sum

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
apprestintentcreate "github.com/lelledaniele/upaygo/controller/rest/intent/create"
apprestintentget "github.com/lelledaniele/upaygo/controller/rest/intent/get"

httpSwagger "github.com/swaggo/http-swagger"
httpSwagger "github.com/swaggo/http-swagger/v2"

"github.com/gorilla/mux"
)
Expand Down
4 changes: 2 additions & 2 deletions payment/intent/cancel/intentcancel.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
apperror "github.com/lelledaniele/upaygo/error"
apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"

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

// Cancel gets the intent id from c Stripe account and cancel it
Expand Down
5 changes: 3 additions & 2 deletions payment/intent/cancel/intentcancel_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apppaymentintentcancel_test
Expand All @@ -12,8 +13,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"
apppaymentintentcancel "github.com/lelledaniele/upaygo/payment/intent/cancel"

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

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions payment/intent/capture/intentcapture.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
apperror "github.com/lelledaniele/upaygo/error"
apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"

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

// Capture gets the intent id from c Stripe account and capture it
Expand Down
5 changes: 3 additions & 2 deletions payment/intent/capture/intentcapture_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apppaymentintentcapture_test
Expand All @@ -12,8 +13,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"
apppaymentintentcapture "github.com/lelledaniele/upaygo/payment/intent/capture"

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

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions payment/intent/confirm/intentconfirm.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
apperror "github.com/lelledaniele/upaygo/error"
apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"

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

// Confirm gets the intent id from c Stripe account and confirm it
Expand Down
5 changes: 3 additions & 2 deletions payment/intent/confirm/intentconfirm_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apppaymentintentconfirm_test
Expand All @@ -12,8 +13,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"
apppaymentintentconfirm "github.com/lelledaniele/upaygo/payment/intent/confirm"

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

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions payment/intent/create/intentcreate.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ import (
apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"
apppaymentsource "github.com/lelledaniele/upaygo/payment/source"

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

// Create creates an intent in Stripe and returns it as an instance of Intent
Expand Down
5 changes: 3 additions & 2 deletions payment/intent/create/intentcreate_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apppaymentintentcreate_test
Expand All @@ -15,8 +16,8 @@ import (
apppaymentintentcreate "github.com/lelledaniele/upaygo/payment/intent/create"
apppaymentsource "github.com/lelledaniele/upaygo/payment/source"

"github.com/stripe/stripe-go/customer"
"github.com/stripe/stripe-go/paymentintent"
"github.com/stripe/stripe-go/v76/customer"
"github.com/stripe/stripe-go/v76/paymentintent"
)

func TestMain(m *testing.M) {
Expand Down
4 changes: 2 additions & 2 deletions payment/intent/get/intentget.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
apperror "github.com/lelledaniele/upaygo/error"
apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"

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

// Get gets the gf intent from c Stripe account and returns it as an instance of i
Expand Down
5 changes: 3 additions & 2 deletions payment/intent/get/intentget_integration_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build stripe
// +build stripe

package apppaymentintentget_test
Expand All @@ -12,8 +13,8 @@ import (
appcurrency "github.com/lelledaniele/upaygo/currency"
apppaymentintentget "github.com/lelledaniele/upaygo/payment/intent/get"

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

func TestMain(m *testing.M) {
Expand Down
2 changes: 1 addition & 1 deletion payment/intent/stripeconv.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (
appcustomer "github.com/lelledaniele/upaygo/customer"
apppaymentsource "github.com/lelledaniele/upaygo/payment/source"

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

func FromStripeToAppIntent(intent stripe.PaymentIntent) Intent {
Expand Down
3 changes: 2 additions & 1 deletion payment/intent/stripeconv_test.go
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
//go:build unit
// +build unit

package apppaymentintent_test
Expand All @@ -7,7 +8,7 @@ import (

apppaymentintent "github.com/lelledaniele/upaygo/payment/intent"

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

func TestFromStripeToAppIntent(t *testing.T) {
Expand Down

0 comments on commit d130f4d

Please sign in to comment.