Commit Graph

17 Commits

Author SHA1 Message Date
rohanr-bolt
06067823c6
Add cancel billing agreement function (#222) 2021-08-19 10:29:00 -07:00
Dario Nevistić
297b4fa2c6
Updating Order with missing fields (#215)
* Update Order struct with API /v2 response fields according to the documentation https://developer.paypal.com/docs/api/orders/v2/\#orders_get

* Add order completed unmarshal response  unit test
2021-07-27 16:37:20 +02:00
Cameron Jarnot
2d088532de
Re-adding billing agreements endpoint (#212)
* adding billing_agreements.go file

* added new types

* added tests

* added notice of deprecation
2021-07-21 07:53:38 +02:00
Cameron Jarnot
f195993596
deletions made (#209) 2021-07-20 08:37:55 +02:00
Cameron Jarnot
392c0e9d69
Add create billing agreement from token (#204)
* Add create billing agreement from token
2021-07-13 10:14:56 -07:00
Cameron Jarnot
a3977a8e74
Adding functions for requesting billing agreement token (#203)
* created billing agreements file

* CreateBillingAgreementToken created with new types

* updated formatting

* error to return nil

* removed new line

* added test
2021-07-12 11:25:19 +02:00
Thomas Frössman
cc8b3cee69 add context support 2021-01-03 10:49:14 +01:00
Eric Lee
16c52d39ba Update item struct to match paypal model (#129)
* Update item struct to match paypal model

* test
2019-11-20 22:12:36 -08:00
Alex Pliutau
e70e544c1a Update package name 2019-08-21 15:50:20 +02:00
Roopak Venkatakrishnan
fd873cc35b Create Order API Call 2019-06-26 21:16:21 -07:00
Alex Pliutau
f17191367d Fix UTs 2018-12-16 13:24:11 +01:00
Alex Pliutau
e7b24a69f2 #66: fix item.quantity type 2018-10-11 15:59:54 +07:00
Rodney Smith
3ca3bc9a11 Add additional returned fields to ExecutePayment; Add PatchPayment() capability, and unit tests 2018-01-13 23:37:24 -07:00
Sam Choukri
f1166b8b90 Added methods: GetPayout, GetPayoutItem, and CancelPayoutItem 2017-11-07 15:58:58 -08:00
Sam Choukri
3beae33bc0 Fix json parsing of the details field in API error responses with a new ErrorResponseDetail type.
The `details` field in the json response from API errors is an array of json objects (not a single object).
Also, the value for the "link" object is not a string but rather another nested array of json objects.
The parsing of the `details` json field is now correctly unmarshalled into a new `ErrorResponseDetail` type
instead of the previously broken `map[string]string` type.
2017-10-26 10:15:12 -07:00
Aliaksandr Pliutau
541052cf48 #23: fixed 2017-03-02 11:19:08 +07:00
Aliaksandr Pliutau
dd920d5151 #23: unit_test.go, integration_test.go 2017-03-02 10:43:23 +07:00