Skip to content

Commit

Permalink
fix: switch body and queryString parameters inside the create method (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Highjhacker authored and faustbrian committed Jan 3, 2019
1 parent 9784179 commit 3f94b23
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/transactions.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ func (s *TransactionsService) List(ctx context.Context, query *Pagination) (*Tra
// Create a new transaction.
func (s *TransactionsService) Create(ctx context.Context, body *CreateTransactionRequest) (*CreateTransaction, *http.Response, error) {
var responseStruct *CreateTransaction
resp, err := s.client.SendRequest(ctx, "POST", "transactions", body, nil, &responseStruct)
resp, err := s.client.SendRequest(ctx, "POST", "transactions", nil, body, &responseStruct)

if err != nil {
return nil, resp, err
Expand Down

0 comments on commit 3f94b23

Please sign in to comment.