This commit is contained in:
Aliaksandr Pliutau 2016-12-22 12:16:22 +07:00
parent 750f7b432e
commit c2f5ade85d
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/bin/bash #!/bin/bash
go fmt ./... gofmt -s -w ./..
golint ./... golint ./...
go vet ./... go vet ./...
go test -v -race ./... go test -v -race ./...

View File

@ -20,7 +20,7 @@ func Example() {
Intent: "sale", Intent: "sale",
Payer: &paypalsdk.Payer{ Payer: &paypalsdk.Payer{
PaymentMethod: "credit_card", PaymentMethod: "credit_card",
FundingInstruments: []paypalsdk.FundingInstrument{paypalsdk.FundingInstrument{ FundingInstruments: []paypalsdk.FundingInstrument{{
CreditCard: &paypalsdk.CreditCard{ CreditCard: &paypalsdk.CreditCard{
Number: "4111111111111111", Number: "4111111111111111",
Type: "visa", Type: "visa",
@ -32,7 +32,7 @@ func Example() {
}, },
}}, }},
}, },
Transactions: []paypalsdk.Transaction{paypalsdk.Transaction{ Transactions: []paypalsdk.Transaction{{
Amount: &paypalsdk.Amount{ Amount: &paypalsdk.Amount{
Currency: "USD", Currency: "USD",
Total: "7.00", Total: "7.00",

View File

@ -11,7 +11,7 @@ func TestCreateSinglePayout(t *testing.T) {
EmailSubject: "Subject will be displayed on PayPal", EmailSubject: "Subject will be displayed on PayPal",
}, },
Items: []PayoutItem{ Items: []PayoutItem{
PayoutItem{ {
RecipientType: "EMAIL", RecipientType: "EMAIL",
Receiver: "single-email-payout@mail.com", Receiver: "single-email-payout@mail.com",
Amount: &AmountPayout{ Amount: &AmountPayout{