From 9165ed6c876f34354c5a425a73f70eb4c027bff9 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:19:02 -0600 Subject: [PATCH 1/4] chore: cleanup billing examples --- .../current/billing/create-ep-credit-card.cs | 20 ------------------- .../billing/retrieve-stripe-public-key.cs} | 5 +++-- .../current/billing/create-ep-credit-card.sh | 9 --------- official/docs/curl/current/billing/fund.sh | 11 +++++++++- ...token.sh => retrieve-stripe-public-key.sh} | 0 .../current/billing/create-ep-credit-card.go | 20 ------------------- .../billing/retrieve-stripe-public-key.go | 15 ++++++++++++++ .../billing/create-ep-credit-card.java | 15 -------------- .../billing/retrieve-stripe-public-key.java} | 11 +++++----- .../current/billing/create-ep-credit-card.js | 15 -------------- .../billing/retrieve-stripe-public-key.js} | 4 +++- .../current/billing/create-ep-credit-card.php | 13 ------------ .../billing/retrieve-stripe-public-key.php | 7 +++++++ .../current/billing/create-ep-credit-card.py | 13 ------------ .../billing/retrieve-stripe-public-key.py | 7 +++++++ .../billing-create-ep-credit-card.json | 9 --------- .../current/billing/create-ep-credit-card.rb | 13 ------------ .../billing/retrieve-stripe-public-key.rb | 7 +++++++ .../curl/create-ep-credit-card.sh | 9 --------- .../curl/create-referral-token.sh | 2 -- .../curl/create-referral-user.sh | 10 ---------- .../curl/fund-wallet.sh | 15 -------------- .../curl/update-referral-user-email.sh | 8 -------- .../golang/fund-wallet.go | 11 ---------- .../php/fund-wallet.php | 5 ----- .../python/fund-wallet.py | 8 -------- .../ruby/fund-wallet.rb | 5 ----- 27 files changed, 58 insertions(+), 209 deletions(-) delete mode 100644 official/docs/csharp/current/billing/create-ep-credit-card.cs rename official/{guides/partner-white-label-guide/csharp/fund-wallet.cs => docs/csharp/current/billing/retrieve-stripe-public-key.cs} (62%) delete mode 100644 official/docs/curl/current/billing/create-ep-credit-card.sh rename official/docs/curl/current/billing/{create-referral-token.sh => retrieve-stripe-public-key.sh} (100%) delete mode 100644 official/docs/golang/current/billing/create-ep-credit-card.go create mode 100644 official/docs/golang/current/billing/retrieve-stripe-public-key.go delete mode 100644 official/docs/java/current/billing/create-ep-credit-card.java rename official/{guides/partner-white-label-guide/java/fund-wallet.java => docs/java/current/billing/retrieve-stripe-public-key.java} (57%) delete mode 100644 official/docs/node/current/billing/create-ep-credit-card.js rename official/{guides/partner-white-label-guide/node/fund-wallet.js => docs/node/current/billing/retrieve-stripe-public-key.js} (53%) delete mode 100644 official/docs/php/current/billing/create-ep-credit-card.php create mode 100644 official/docs/php/current/billing/retrieve-stripe-public-key.php delete mode 100644 official/docs/python/current/billing/create-ep-credit-card.py create mode 100644 official/docs/python/current/billing/retrieve-stripe-public-key.py delete mode 100644 official/docs/responses/billing/billing-create-ep-credit-card.json delete mode 100644 official/docs/ruby/current/billing/create-ep-credit-card.rb create mode 100644 official/docs/ruby/current/billing/retrieve-stripe-public-key.rb delete mode 100644 official/guides/partner-white-label-guide/curl/create-ep-credit-card.sh delete mode 100644 official/guides/partner-white-label-guide/curl/create-referral-token.sh delete mode 100644 official/guides/partner-white-label-guide/curl/create-referral-user.sh delete mode 100644 official/guides/partner-white-label-guide/curl/fund-wallet.sh delete mode 100644 official/guides/partner-white-label-guide/curl/update-referral-user-email.sh delete mode 100644 official/guides/partner-white-label-guide/golang/fund-wallet.go delete mode 100644 official/guides/partner-white-label-guide/php/fund-wallet.php delete mode 100644 official/guides/partner-white-label-guide/python/fund-wallet.py delete mode 100644 official/guides/partner-white-label-guide/ruby/fund-wallet.rb diff --git a/official/docs/csharp/current/billing/create-ep-credit-card.cs b/official/docs/csharp/current/billing/create-ep-credit-card.cs deleted file mode 100644 index 73a02968..00000000 --- a/official/docs/csharp/current/billing/create-ep-credit-card.cs +++ /dev/null @@ -1,20 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Threading.Tasks; -using EasyPost; -using Newtonsoft.Json; - -namespace EasyPostExamples -{ - public class Examples - { - public static async Task Main() - { - var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); - - EasyPost.Models.API.PaymentMethod paymentMethod = await client.ReferralCustomer.AddCreditCardToUser("REFERRAL_USER_API_KEY", "0123456789101234", "01", "2025", "111", PaymentMethod.Priority.Primary); - - Console.WriteLine(JsonConvert.SerializeObject(paymentMethod, Formatting.Indented)); - } - } -} diff --git a/official/guides/partner-white-label-guide/csharp/fund-wallet.cs b/official/docs/csharp/current/billing/retrieve-stripe-public-key.cs similarity index 62% rename from official/guides/partner-white-label-guide/csharp/fund-wallet.cs rename to official/docs/csharp/current/billing/retrieve-stripe-public-key.cs index 1dea3e3f..25d4e121 100644 --- a/official/guides/partner-white-label-guide/csharp/fund-wallet.cs +++ b/official/docs/csharp/current/billing/retrieve-stripe-public-key.cs @@ -1,5 +1,4 @@ using System; -using System.Collections.Generic; using System.Threading.Tasks; using EasyPost; using Newtonsoft.Json; @@ -12,7 +11,9 @@ public static async Task Main() { var client = new EasyPost.Client(new EasyPost.ClientConfiguration("EASYPOST_API_KEY")); - await client.Billing.FundWallet("20.00", PaymentMethod.Priority.Primary); + var response = await client.Beta.ReferralCustomer.RetrieveEasypostStripeApiKey(); + + Console.WriteLine(JsonConvert.SerializeObject(response, Formatting.Indented)); } } } diff --git a/official/docs/curl/current/billing/create-ep-credit-card.sh b/official/docs/curl/current/billing/create-ep-credit-card.sh deleted file mode 100644 index becd99de..00000000 --- a/official/docs/curl/current/billing/create-ep-credit-card.sh +++ /dev/null @@ -1,9 +0,0 @@ -curl -X POST https://api.easypost.com/v2/credit_cards \ - -u "$REFERRAL_USER_API_KEY": \ - -H "Content-Type: application/json" \ - -d '{ - "credit_card": { - "payment_method_id": "pm_...", - "priority": "primary" - } - }' diff --git a/official/docs/curl/current/billing/fund.sh b/official/docs/curl/current/billing/fund.sh index 6243a10d..d096ac15 100644 --- a/official/docs/curl/current/billing/fund.sh +++ b/official/docs/curl/current/billing/fund.sh @@ -1,5 +1,14 @@ +# Fund wallet by using credit card payment method curl -X POST https://api.easypost.com/v2/credit_cards/card_.../charges \ - -u "EASYPOST_API_KEY": \ + -u "$EASYPOST_API_KEY": \ + -H 'Content-Type: application/json' \ + -d '{ + "amount": "2000" + }' + +# Fund wallet by using bank account payment method +curl -X POST https://api.easypost.com/v2/bank_accounts/bank_.../charges \ + -u "$EASYPOST_API_KEY": \ -H 'Content-Type: application/json' \ -d '{ "amount": "2000" diff --git a/official/docs/curl/current/billing/create-referral-token.sh b/official/docs/curl/current/billing/retrieve-stripe-public-key.sh similarity index 100% rename from official/docs/curl/current/billing/create-referral-token.sh rename to official/docs/curl/current/billing/retrieve-stripe-public-key.sh diff --git a/official/docs/golang/current/billing/create-ep-credit-card.go b/official/docs/golang/current/billing/create-ep-credit-card.go deleted file mode 100644 index 1d12c7e6..00000000 --- a/official/docs/golang/current/billing/create-ep-credit-card.go +++ /dev/null @@ -1,20 +0,0 @@ -package example - -import ( - "fmt" - - "github.com/EasyPost/easypost-go/v5" -) - -func createEpCreditCard() { - client := easypost.New("EASYPOST_API_KEY") - - creditCard, _ := client.AddReferralCustomerCreditCard("REFERRAL_USER_API_KEY", &easypost.CreditCardOptions{ - Number: "0123456789101234", - ExpMonth: "01", - ExpYear: "2025", - Cvc: "111", - }, easypost.PrimaryPaymentMethodPriority) - - fmt.Println(creditCard) -} diff --git a/official/docs/golang/current/billing/retrieve-stripe-public-key.go b/official/docs/golang/current/billing/retrieve-stripe-public-key.go new file mode 100644 index 00000000..e5c484a9 --- /dev/null +++ b/official/docs/golang/current/billing/retrieve-stripe-public-key.go @@ -0,0 +1,15 @@ +package example + +import ( + "fmt" + + "github.com/EasyPost/easypost-go/v5" +) + +func retrieveStripePublicKey() { + client := easypost.New("EASYPOST_API_KEY") + + response, _ := client.RetrieveEasypostStripeApiKey() + + fmt.Println(response) +} diff --git a/official/docs/java/current/billing/create-ep-credit-card.java b/official/docs/java/current/billing/create-ep-credit-card.java deleted file mode 100644 index 01bca41a..00000000 --- a/official/docs/java/current/billing/create-ep-credit-card.java +++ /dev/null @@ -1,15 +0,0 @@ -package referral; - -import com.easypost.exception.EasyPostException; -import com.easypost.service.EasyPostClient; - -public class Create { - public static void main(String[] args) throws EasyPostException { - EasyPostClient client = new EasyPostClient("EASYPOST_API_KEY"); - - PaymentMethodObject creditCard = client.referralCustomer.addCreditCardToUser("REFERRAL_USER_API_KEY", - "0123456789101234", 01, 2025, "111", PaymentMethod.Priority.PRIMARY); - - System.out.println(referralUser); - } -} diff --git a/official/guides/partner-white-label-guide/java/fund-wallet.java b/official/docs/java/current/billing/retrieve-stripe-public-key.java similarity index 57% rename from official/guides/partner-white-label-guide/java/fund-wallet.java rename to official/docs/java/current/billing/retrieve-stripe-public-key.java index 0910500c..04e3dcfd 100644 --- a/official/guides/partner-white-label-guide/java/fund-wallet.java +++ b/official/docs/java/current/billing/retrieve-stripe-public-key.java @@ -1,13 +1,14 @@ -package referral; +package billing; -import com.easypost.service.EasyPostClient; -import com.easypost.model.PaymentMethod; import com.easypost.exception.EasyPostException; +import com.easypost.service.EasyPostClient; -public class RetrieveReferralUsers { +public class RetrieveStripePublicKey { public static void main(String[] args) throws EasyPostException { EasyPostClient client = new EasyPostClient("EASYPOST_API_KEY"); - client.billing.fundWallet("2000", PaymentMethod.Priority.PRIMARY); + Object response = client.betaReferralCustomer.retrieveEasypostStripeApiKey(); + + System.out.println(response); } } diff --git a/official/docs/node/current/billing/create-ep-credit-card.js b/official/docs/node/current/billing/create-ep-credit-card.js deleted file mode 100644 index 842c0389..00000000 --- a/official/docs/node/current/billing/create-ep-credit-card.js +++ /dev/null @@ -1,15 +0,0 @@ -const EasyPostClient = require('@easypost/api'); - -const client = new EasyPostClient('EASYPOST_API_KEY'); - -(async () => { - const creditCard = await client.Referral.addCreditCard( - 'REFERRAL_USER_API_KEY', - '0123456789101234', - '01', - '2025', - '111', - ); - - console.log(creditCard); -})(); diff --git a/official/guides/partner-white-label-guide/node/fund-wallet.js b/official/docs/node/current/billing/retrieve-stripe-public-key.js similarity index 53% rename from official/guides/partner-white-label-guide/node/fund-wallet.js rename to official/docs/node/current/billing/retrieve-stripe-public-key.js index 43572523..0730dd36 100644 --- a/official/guides/partner-white-label-guide/node/fund-wallet.js +++ b/official/docs/node/current/billing/retrieve-stripe-public-key.js @@ -3,5 +3,7 @@ const EasyPostClient = require('@easypost/api'); const client = new EasyPostClient('EASYPOST_API_KEY'); (async () => { - client.Billing.fundWallet('2000', 'primary'); + const response = await client.BetaReferralCustomer.retrieveEasyPostStripeApiKey(); + + console.log(response); })(); diff --git a/official/docs/php/current/billing/create-ep-credit-card.php b/official/docs/php/current/billing/create-ep-credit-card.php deleted file mode 100644 index 623ae40e..00000000 --- a/official/docs/php/current/billing/create-ep-credit-card.php +++ /dev/null @@ -1,13 +0,0 @@ -referralCustomer->addCreditCard( - 'REFERRAL_USER_API_KEY', - '0123456789101234', - '01', - '2025', - '111' -); - -echo $creditCard; diff --git a/official/docs/php/current/billing/retrieve-stripe-public-key.php b/official/docs/php/current/billing/retrieve-stripe-public-key.php new file mode 100644 index 00000000..4d5b6e70 --- /dev/null +++ b/official/docs/php/current/billing/retrieve-stripe-public-key.php @@ -0,0 +1,7 @@ +betaReferralCustomer->retrieveEasypostStripeApiKey(); + +echo $response; diff --git a/official/docs/python/current/billing/create-ep-credit-card.py b/official/docs/python/current/billing/create-ep-credit-card.py deleted file mode 100644 index 1d1a3924..00000000 --- a/official/docs/python/current/billing/create-ep-credit-card.py +++ /dev/null @@ -1,13 +0,0 @@ -import easypost - -client = easypost.EasyPostClient("EASYPOST_API_KEY") - -credit_card = client.referral_customer.add_credit_card( - referral_api_key="REFERRAL_USER_API_KEY", - number="0123456789101234", - expiration_month="01", - expiration_year="2025", - cvc="111", -) - -print(credit_card) diff --git a/official/docs/python/current/billing/retrieve-stripe-public-key.py b/official/docs/python/current/billing/retrieve-stripe-public-key.py new file mode 100644 index 00000000..235ce384 --- /dev/null +++ b/official/docs/python/current/billing/retrieve-stripe-public-key.py @@ -0,0 +1,7 @@ +import easypost + +client = easypost.EasyPostClient("EASYPOST_API_KEY") + +response = client.beta_referral_customer.retrieve_easypost_stripe_api_key() + +print(response) diff --git a/official/docs/responses/billing/billing-create-ep-credit-card.json b/official/docs/responses/billing/billing-create-ep-credit-card.json deleted file mode 100644 index 574b8bbd..00000000 --- a/official/docs/responses/billing/billing-create-ep-credit-card.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "id": "card_...", - "object": "CreditCard", - "name": null, - "last4": "1234", - "exp_month": 1, - "exp_year": 2025, - "brand": "Visa" -} diff --git a/official/docs/ruby/current/billing/create-ep-credit-card.rb b/official/docs/ruby/current/billing/create-ep-credit-card.rb deleted file mode 100644 index d500a945..00000000 --- a/official/docs/ruby/current/billing/create-ep-credit-card.rb +++ /dev/null @@ -1,13 +0,0 @@ -require 'easypost' - -client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY') - -credit_card = client.referral_customer.add_credit_card( - 'REFERRAL_USER_API_KEY', - '0123456789101234', - '01', - '2025', - '111', -) - -puts credit_card diff --git a/official/docs/ruby/current/billing/retrieve-stripe-public-key.rb b/official/docs/ruby/current/billing/retrieve-stripe-public-key.rb new file mode 100644 index 00000000..935065b5 --- /dev/null +++ b/official/docs/ruby/current/billing/retrieve-stripe-public-key.rb @@ -0,0 +1,7 @@ +require 'easypost' + +client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY') + +response = client.beta_referral_customer.retrieve_easypost_stripe_api_key + +puts response diff --git a/official/guides/partner-white-label-guide/curl/create-ep-credit-card.sh b/official/guides/partner-white-label-guide/curl/create-ep-credit-card.sh deleted file mode 100644 index f5460476..00000000 --- a/official/guides/partner-white-label-guide/curl/create-ep-credit-card.sh +++ /dev/null @@ -1,9 +0,0 @@ -curl -X POST "https://api.easypost.com/v2/credit_cards" \ - -u ":" \ - -H "Content-Type: application/json" \ - -d '{ - "credit_card": { - "stripe_object_id": "tok_...", - "priority": "primary" - } -}' diff --git a/official/guides/partner-white-label-guide/curl/create-referral-token.sh b/official/guides/partner-white-label-guide/curl/create-referral-token.sh deleted file mode 100644 index 9ed377c5..00000000 --- a/official/guides/partner-white-label-guide/curl/create-referral-token.sh +++ /dev/null @@ -1,2 +0,0 @@ -curl -X GET https://api.easypost.com/v2/partners/stripe_public_key \ - -u "$PARTNER_API_KEY:" diff --git a/official/guides/partner-white-label-guide/curl/create-referral-user.sh b/official/guides/partner-white-label-guide/curl/create-referral-user.sh deleted file mode 100644 index 4a4b3072..00000000 --- a/official/guides/partner-white-label-guide/curl/create-referral-user.sh +++ /dev/null @@ -1,10 +0,0 @@ -curl -X POST "https://api.easypost.com/v2/referral_customers" \ - -u ":" \ - -H "Content-Type: application/json" \ - -d '{ - "user": { - "name": "Firstname Lastname", - "email": "email@example.com", - "phone_number": "8888888888" - } -}' diff --git a/official/guides/partner-white-label-guide/curl/fund-wallet.sh b/official/guides/partner-white-label-guide/curl/fund-wallet.sh deleted file mode 100644 index 91e86b02..00000000 --- a/official/guides/partner-white-label-guide/curl/fund-wallet.sh +++ /dev/null @@ -1,15 +0,0 @@ -# Fund wallet by using credit card payment method -curl -X POST https://api.easypost.com/v2/credit_cards/card_.../charges \ - -u "$EASYPOST_API_KEY": \ - -H 'Content-Type: application/json' \ - -d '{ - "amount": "2000" -}' - -# Fund wallet by using bank account payment method -curl -X POST https://api.easypost.com/v2/bank_accounts/bank_.../charges \ - -u "$EASYPOST_API_KEY": \ - -H 'Content-Type: application/json' \ - -d '{ - "amount": "2000" -}' diff --git a/official/guides/partner-white-label-guide/curl/update-referral-user-email.sh b/official/guides/partner-white-label-guide/curl/update-referral-user-email.sh deleted file mode 100644 index e900eede..00000000 --- a/official/guides/partner-white-label-guide/curl/update-referral-user-email.sh +++ /dev/null @@ -1,8 +0,0 @@ -curl -X PUT "https://api.easypost.com/v2/referral_customers" \ - -u ":" \ - -H "Content-Type: application/json" \ - -d '{ - "user": { - "email": "email@example.com" - } -}' diff --git a/official/guides/partner-white-label-guide/golang/fund-wallet.go b/official/guides/partner-white-label-guide/golang/fund-wallet.go deleted file mode 100644 index 51038d9a..00000000 --- a/official/guides/partner-white-label-guide/golang/fund-wallet.go +++ /dev/null @@ -1,11 +0,0 @@ -package example - -import ( - "github.com/EasyPost/easypost-go/v4" -) - -func fundWallet() { - client := easypost.New("EASYPOST_API_KEY") - - _ = client.FundWallet("2000", easypost.PrimaryPaymentMethodPriority) -} diff --git a/official/guides/partner-white-label-guide/php/fund-wallet.php b/official/guides/partner-white-label-guide/php/fund-wallet.php deleted file mode 100644 index 575e3a80..00000000 --- a/official/guides/partner-white-label-guide/php/fund-wallet.php +++ /dev/null @@ -1,5 +0,0 @@ -billing->fundWallet(2000, 'primary'); diff --git a/official/guides/partner-white-label-guide/python/fund-wallet.py b/official/guides/partner-white-label-guide/python/fund-wallet.py deleted file mode 100644 index b00e1b82..00000000 --- a/official/guides/partner-white-label-guide/python/fund-wallet.py +++ /dev/null @@ -1,8 +0,0 @@ -import easypost - -client = easypost.EasyPostClient("EASYPOST_API_KEY") - -client.billing.fund_wallet( - amount="2000", - primary_or_secondary="primary", -) diff --git a/official/guides/partner-white-label-guide/ruby/fund-wallet.rb b/official/guides/partner-white-label-guide/ruby/fund-wallet.rb deleted file mode 100644 index b6afc7d6..00000000 --- a/official/guides/partner-white-label-guide/ruby/fund-wallet.rb +++ /dev/null @@ -1,5 +0,0 @@ -require 'easypost' - -client = EasyPost::Client.new(api_key: 'EASYPOST_API_KEY') - -client.billing.fund_wallet('2000', 'primary') From 5c068d87943e7319e701e40967b6308688bfeb5c Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:30:32 -0600 Subject: [PATCH 2/4] chore: rename response for stripe public key --- ...eferral-token.json => billing-retrieve-stripe-public-key.json} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename official/docs/responses/billing/{billing-create-referral-token.json => billing-retrieve-stripe-public-key.json} (100%) diff --git a/official/docs/responses/billing/billing-create-referral-token.json b/official/docs/responses/billing/billing-retrieve-stripe-public-key.json similarity index 100% rename from official/docs/responses/billing/billing-create-referral-token.json rename to official/docs/responses/billing/billing-retrieve-stripe-public-key.json From 95fc49d4604a782a08025042c0f0f08ee89f0ede Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 24 Sep 2026 12:34:11 -0600 Subject: [PATCH 3/4] chore: ignore go issue for now --- style_guides/golang/.golangci.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/style_guides/golang/.golangci.yml b/style_guides/golang/.golangci.yml index 729e862e..36eedb7b 100644 --- a/style_guides/golang/.golangci.yml +++ b/style_guides/golang/.golangci.yml @@ -4,6 +4,12 @@ issues: - "github.com/EasyPost/easypost-go" - "undeclared name: `easypost`" - "expected 'package'" + # TODO: Remove this rule once next Go release goes out + exclude-rules: + - path: official/docs/golang/current/billing/retrieve-stripe-public-key.go + linters: + - typecheck + text: "RetrieveEasypostStripeApiKey undefined" linters-settings: From a7b6aabfdabdaaf305b544057172dab8e1e536b0 Mon Sep 17 00:00:00 2001 From: Justintime50 <39606064+Justintime50@users.noreply.github.com> Date: Thu, 24 Sep 2026 13:38:22 -0600 Subject: [PATCH 4/4] fix: go lib pin --- go.mod | 2 +- go.sum | 11 +++++++++-- style_guides/golang/.golangci.yml | 7 ------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/go.mod b/go.mod index f50c2c9d..6d387bd5 100644 --- a/go.mod +++ b/go.mod @@ -6,5 +6,5 @@ require ( github.com/EasyPost/easypost-go/v2 v2.20.0 github.com/EasyPost/easypost-go/v3 v3.2.0 github.com/EasyPost/easypost-go/v4 v4.6.0 - github.com/EasyPost/easypost-go/v5 v5.2.0 + github.com/EasyPost/easypost-go/v5 v5.10.0 ) diff --git a/go.sum b/go.sum index a9c171a7..2a8e13c4 100644 --- a/go.sum +++ b/go.sum @@ -4,10 +4,12 @@ github.com/EasyPost/easypost-go/v3 v3.2.0 h1:dNWmPG1AkpgYFJxhw/zGzCz1JOVXPpNIi8+ github.com/EasyPost/easypost-go/v3 v3.2.0/go.mod h1:WDD0qkjwxedVKFXCcdJBz22rtRHpuxjGazgSVcTfdIw= github.com/EasyPost/easypost-go/v4 v4.6.0 h1:wxMK4wkGEG5vW/4Vdy3rwE9iqww1eQ1xS6oYWUZbhrc= github.com/EasyPost/easypost-go/v4 v4.6.0/go.mod h1:WGoS4tmjHquhooMNmY6RirP+KWeYV/akcf/Jg9Q6fsk= -github.com/EasyPost/easypost-go/v5 v5.2.0 h1:UKv0AWKugaue3QGW1RvTBg6/V1Gy/QGCXVC458bcQYU= -github.com/EasyPost/easypost-go/v5 v5.2.0/go.mod h1:wUxStg92sBzWO3m2yoFAN7CbZTr25zQeFog48itvfnw= +github.com/EasyPost/easypost-go/v5 v5.10.0 h1:yKAJpNfrrQ3Tu3WQ/PkUuhN3SpbJs7mD6t+ELwsiE+A= +github.com/EasyPost/easypost-go/v5 v5.10.0/go.mod h1:wUxStg92sBzWO3m2yoFAN7CbZTr25zQeFog48itvfnw= 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/dnaeon/go-vcr v1.2.0 h1:zHCHvJYTMh1N7xnV7zf1m1GPBF9Ad0Jk/whtQ1663qI= github.com/dnaeon/go-vcr v1.2.0/go.mod h1:R4UdLID7HZT3taECzJs4YgbbH6PIGXB6W/sc5OLb6RQ= github.com/google/go-cmp v0.5.2 h1:X2ev0eStA3AbceY54o37/0PQ/UWqKEiiO2dKL5OPaFM= github.com/google/go-cmp v0.5.2/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= @@ -17,6 +19,7 @@ github.com/google/uuid v1.3.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+ github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0= github.com/google/uuid v1.6.0/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo= github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= +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/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= @@ -24,6 +27,7 @@ github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpE github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= github.com/stretchr/testify v1.7.2/go.mod h1:R6va5+xMeoiuVRoj+gSkQ7d3FALtqAAGI1FQKckRals= github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= +github.com/stretchr/testify v1.8.2 h1:+h33VjcLVPDHtOdpUCuF+7gSuG3yGIftsP1YvFihtJ8= github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4= github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= @@ -60,7 +64,10 @@ golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405 h1:yhCVgyC4o1eVCa2tZl7eS0r+SDo693bJlVdllGtEeKM= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v2 v2.2.8 h1:obN1ZagJSUGI0Ek/LBmuj4SNLPfIny3KsKFopxRdj10= gopkg.in/yaml.v2 v2.2.8/go.mod h1:hI93XBmqTisBFMUTm0b8Fm+jr3Dg1NNxqwp+5A1VGuI= gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= diff --git a/style_guides/golang/.golangci.yml b/style_guides/golang/.golangci.yml index 36eedb7b..5fc0734a 100644 --- a/style_guides/golang/.golangci.yml +++ b/style_guides/golang/.golangci.yml @@ -4,13 +4,6 @@ issues: - "github.com/EasyPost/easypost-go" - "undeclared name: `easypost`" - "expected 'package'" - # TODO: Remove this rule once next Go release goes out - exclude-rules: - - path: official/docs/golang/current/billing/retrieve-stripe-public-key.go - linters: - - typecheck - text: "RetrieveEasypostStripeApiKey undefined" - linters-settings: staticcheck: