Skip to content

Commit fd211fd

Browse files
authored
Merge pull request #192 from EasyPost/go-v5-docs
feat: v5 Go examples
2 parents cc1eab1 + 8caaaf4 commit fd211fd

235 files changed

Lines changed: 2457 additions & 145 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

go.mod

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,5 @@ require (
66
github.com/EasyPost/easypost-go/v2 v2.20.0
77
github.com/EasyPost/easypost-go/v3 v3.2.0
88
github.com/EasyPost/easypost-go/v4 v4.6.0
9+
github.com/EasyPost/easypost-go/v5 v5.0.0
910
)

go.sum

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,18 @@ github.com/EasyPost/easypost-go/v3 v3.2.0 h1:dNWmPG1AkpgYFJxhw/zGzCz1JOVXPpNIi8+
44
github.com/EasyPost/easypost-go/v3 v3.2.0/go.mod h1:WDD0qkjwxedVKFXCcdJBz22rtRHpuxjGazgSVcTfdIw=
55
github.com/EasyPost/easypost-go/v4 v4.6.0 h1:wxMK4wkGEG5vW/4Vdy3rwE9iqww1eQ1xS6oYWUZbhrc=
66
github.com/EasyPost/easypost-go/v4 v4.6.0/go.mod h1:WGoS4tmjHquhooMNmY6RirP+KWeYV/akcf/Jg9Q6fsk=
7+
github.com/EasyPost/easypost-go/v5 v5.0.0 h1:w6Jp4wBD0Desgk4a1kbJpbEMexBYMz9VWPPrFeTdsak=
8+
github.com/EasyPost/easypost-go/v5 v5.0.0/go.mod h1:wUxStg92sBzWO3m2yoFAN7CbZTr25zQeFog48itvfnw=
79
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
810
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
911
github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ=
1012
github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM=
1113
github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE=
1214
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
1315
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
14-
github.com/google/uuid v1.3.0 h1:t6JiXgmwXMjEs8VusXIJk2BXHsn+wx8BZdTaoZ5fu7I=
1516
github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
17+
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
18+
github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
1619
github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8=
1720
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
1821
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=

official/docs/csharp/current/billing/create-stripe-bank-account.cs renamed to official/docs/csharp/current/billing/create-stripe-bank-account-secret.cs

File renamed without changes.

official/docs/csharp/current/billing/create-stripe-credit-card.cs renamed to official/docs/csharp/current/billing/create-stripe-credit-card-secret.cs

File renamed without changes.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
curl -X POST "https://api.easypost.com/v2/bank_accounts" \
2+
-u "$REFERRAL_USER_API_KEY:" \
3+
-H "Content-Type: application/json" \
4+
-d '{
5+
"financial_connections_id": "fca_...",
6+
"mandate_data": {
7+
"ip_address": "127.0.0.1",
8+
"user_agent": "Mozilla/5.0",
9+
"accepted_at": 1722510730,
10+
},
11+
"priority": "primary"
12+
}'
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
curl -X POST "https://api.easypost.com/v2/credit_cards" \
2+
-u "$REFERRAL_USER_API_KEY:" \
3+
-H "Content-Type: application/json" \
4+
-d '{
5+
"credit_card": {
6+
"payment_method_id": "pm_...",
7+
"priority": "primary"
8+
}
9+
}'

official/docs/curl/current/billing/create-bank-account.sh

Lines changed: 0 additions & 12 deletions
This file was deleted.

official/docs/curl/current/billing/create-financial-connections-sessions.sh renamed to official/docs/curl/current/billing/create-stripe-bank-account-secret.sh

File renamed without changes.

official/docs/curl/current/billing/create-setup-intents.sh renamed to official/docs/curl/current/billing/create-stripe-credit-card-secret.sh

File renamed without changes.

official/docs/golang/current/addresses/create-and-verify.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package example
33
import (
44
"fmt"
55

6-
"github.com/EasyPost/easypost-go/v4"
6+
"github.com/EasyPost/easypost-go/v5"
77
)
88

99
func createAndVerify() {

0 commit comments

Comments
 (0)