Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
11 changes: 9 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -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=
Expand All @@ -17,13 +19,15 @@ 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=
github.com/stretchr/objx v0.5.0/go.mod h1:Yh+to48EsGEfYuaHDzXPcE3xhTkx73EhmCGUpEOglKo=
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=
Expand Down Expand Up @@ -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=
20 changes: 0 additions & 20 deletions official/docs/csharp/current/billing/create-ep-credit-card.cs

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using EasyPost;
using Newtonsoft.Json;
Expand All @@ -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));
}
}
}
9 changes: 0 additions & 9 deletions official/docs/curl/current/billing/create-ep-credit-card.sh

This file was deleted.

11 changes: 10 additions & 1 deletion official/docs/curl/current/billing/fund.sh
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
20 changes: 0 additions & 20 deletions official/docs/golang/current/billing/create-ep-credit-card.go

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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)
}
15 changes: 0 additions & 15 deletions official/docs/java/current/billing/create-ep-credit-card.java

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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);
}
}
15 changes: 0 additions & 15 deletions official/docs/node/current/billing/create-ep-credit-card.js

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -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);
})();
13 changes: 0 additions & 13 deletions official/docs/php/current/billing/create-ep-credit-card.php

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
<?php

$client = new \EasyPost\EasyPostClient('EASYPOST_API_KEY');

$response = $client->betaReferralCustomer->retrieveEasypostStripeApiKey();

echo $response;
13 changes: 0 additions & 13 deletions official/docs/python/current/billing/create-ep-credit-card.py

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import easypost

client = easypost.EasyPostClient("EASYPOST_API_KEY")

response = client.beta_referral_customer.retrieve_easypost_stripe_api_key()

print(response)

This file was deleted.

13 changes: 0 additions & 13 deletions official/docs/ruby/current/billing/create-ep-credit-card.rb

This file was deleted.

Original file line number Diff line number Diff line change
@@ -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

This file was deleted.

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions official/guides/partner-white-label-guide/curl/fund-wallet.sh

This file was deleted.

This file was deleted.

11 changes: 0 additions & 11 deletions official/guides/partner-white-label-guide/golang/fund-wallet.go

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion style_guides/golang/.golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ issues:
- "undeclared name: `easypost`"
- "expected 'package'"


linters-settings:
staticcheck:
checks:
Expand Down
Loading