Commit Graph

149 Commits

Author SHA1 Message Date
Alex Pliutau
5052fd4286 Fix #271 2024-07-10 10:57:51 +02:00
Alex Pliutau
bfdf8e6e97 #263 2024-06-03 10:09:31 +02:00
Alex Pliutau
6ebb0352bc Remove deprecated endpoints 2024-06-03 09:53:55 +02:00
Seyed Hossein Hosseini Motlagh
cd3344edd1
Adds the ToDuration function to the paypalExpirationTime type. This function allows easy conversion of the internal value to a time.Duration type, which is crucial when using paypalExpirationTime values with Redis expiration times. (#265) 2024-05-27 12:36:56 +02:00
ihipop
ebf596676e
bring back landing_page option since commit #d355a65df01285c6aa4003099f8bfcb1a48ab517 (#251) 2022-11-18 15:34:38 +01:00
Akshay Prabhakant
4c16ffad0a
#177 feature/Invoice: init, added Invoice related structs, implemented met… (#249)
* feature/Invoice: init, added Invoice related structs, implemented methods:GenerateInvoiceNumber,GetInvoiceDetails(by ID)

* feature/Invoice: added implemented endpoints to README along with Usage

Co-authored-by: Akshay Prabhakant <akshayprabhakant@Akshays-MacBook-Pro.local>
2022-10-28 09:20:28 +02:00
Akshay Prabhakant
1bb626d559
Feature/private mutex (#248)
* feat/mutexPrivate:init; trying whether changes get pushed

* feat/privatedMutex: privated the mutex as a field in Client struct, added tests for this private mutex field

* feature/privateMutex: commented the composition of sync.Mutex

* feature/privateMutex: resolved issues with user credentials

Co-authored-by: Akshay Prabhakant <akshayprabhakant@Akshays-MacBook-Pro.local>
2022-10-20 09:11:49 +02:00
Christopher Lorke
efc9bbdee0
Update types.go (#244)
Add missing field
2022-07-22 10:47:53 +02:00
Naoki Ikeguchi
b7d3cfd093
feat: Add missing fields into ErrorResponseDetail (#242)
* feat: Add missing fields into ErrorResponseDetail

* test: Add the example response as an unit test
2022-07-11 22:13:11 -07:00
Konnor Klashinsky
d94b350a31
add sale_id field to Refund struct (#238) 2022-06-18 22:04:53 +02:00
Konnor Klashinsky
48f8ee15ce
add payer_id field to Subscriber struct (#239) 2022-06-18 22:04:38 +02:00
maxzhao-bolt
c9ae5c4190
Adding PaymentMethod support into ApplicationContext (#237) 2022-03-17 11:33:06 -07:00
Florian Kinder
d381642422
Added PayPal-Mock-Response for capture (#232) 2022-03-05 08:16:25 +01:00
Edwin Mead
50acd8fce1 Add status field to CaptureAmount 2021-10-04 15:01:28 +01:00
Rens Tillmann
e6a47fe5e7
Added missing items on PurchaseUnit struct
When you call `GetOrder()` paypal also returns the items for `purchase_unit` ref: https://developer.paypal.com/docs/api/orders/v2/#definition-purchase_unit
The `PurchaseUnit` struct was missing this parameter.
2021-09-17 00:56:14 +02:00
kenbolt
d5cba40cd6
Adding partner referral response (#217)
* Adding links to refund response

* Adding partner referral response
2021-07-27 15:56:29 -07:00
Cameron Jarnot
c2074af736
Update payment source type for optional fields (#216)
* updated payment source fields

* revert

* update payment source type
2021-07-27 11:59:36 -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
kenbolt
8e5d5220ab
Adding links to refund response (#213) 2021-07-26 16:13:23 -07: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
Thomas Frössman
d2210adf9c
Convert depracation comments to godoc and deprecate Resource struct. (#207)
* Fix deprecation comment formatting for godoc.

* Deprecate Resource struct
2021-07-20 08:37:23 +02:00
Gerasimovich Igor
7f2eec9b56
Added missing BillingAgreementId key in webhook (#205)
* Added missing BillingAgreementId key in webhook

Webhook resource contains `billing_agreement_id`. Exists in type: `PAYMENT.SALE.COMPLETED` when a subscription is paid.

* review fix
2021-07-14 09:08:11 +02: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
bbd66c6089 remove invalid event structs 2021-04-29 22:11:13 +02:00
Alex Pliutau
41099f6b6e fix typo in PaymentInstruction 2021-04-10 18:17:20 +02:00
Alex Pliutau
d90cb75e47 #163: payment_instruction on the purchase_unit_request 2021-04-10 18:13:45 +02:00
Alex Pliutau
62598e5880 #188: GetCapturedPaymentDetails 2021-04-10 18:09:05 +02:00
Alex Pliutau
52acc61786 #192: refactor Event type 2021-04-10 17:56:52 +02:00
Yuusuke
a3c2eaa0d4 add capture detail interface 2021-02-07 00:56:29 +09:00
Thomas Frössman
e83fd911e0 add GetWebhookEventTypes 2021-01-03 21:20:12 +01:00
Thomas Frössman
cc8b3cee69 add context support 2021-01-03 10:49:14 +01:00
jrapoport
476102bb76
Order should include payments & purchase_units (#179)
* Order should include purchase_units

* PayerWithNameAndPhone needs Address for Order

* add SellerProtection to CaptureAmount

* add RecipientType(s)

* add RecipientType(s)

* BatchHeader.BatchStatus values
2020-11-17 10:59:42 +01:00
Jason Hord
13112c66e5
Adds SellerReceivableBreakdown and CustomID fields to the Resource type (#180)
* Adds SellerReceivableBreakdown and CustomID fields to the Resource type

* Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type
2020-11-17 10:59:19 +01:00
Jason Hord
5508bfebaf
Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type (#181) 2020-11-17 10:59:02 +01:00
yunuseskisan
d1e5575c35
Add support for SellerReceivableBreakdown (#178)
* Add support for SellerReceivableBreakdown

https://developer.paypal.com/docs/api/orders/v2/#orders_capture

* Update types.go

* Update types.go
2020-10-23 09:52:58 +02:00
John Landis
289b2669ef
Order payer information (#169)
* simplest change

* re-using existing type

Co-authored-by: John Landis <jlandis@bcorporation.net>
2020-09-16 15:30:17 -07:00
Moo
761c20a4ed
change SharedListResponse TotalItems, TotalPages from string to int; Error: json: cannot unmarshal number into Go struct field ListSubscriptionPlansResponse.total_items of type string (#166)
Co-authored-by: Moo <mri@robin-data.io>
2020-08-25 09:20:11 -07:00
Onezino Moreira
18b47a0652
add recipient_wallet payout field (#165) 2020-08-13 16:20:35 -07:00
Rami
d355a65df0
Subscriptions, Subscription plans and Products API (#151) 2020-05-30 22:14:19 -07:00
Roopak Venkatakrishnan
b3eb2c69dd
Revert "Some updates to refund endpoint (#121)" (#147)
This reverts commit efe72c1ed4.
2020-05-04 13:17:53 -07:00
Eric Lee
efe72c1ed4
Some updates to refund endpoint (#121)
* s/authorization/authorizations in url path

* Update authorization object to the paypal v2 version

* duplicate field

* rename some fields

* Update types for refund endpoint

* actually, don't do a breaking change

* .

* pointer

Co-authored-by: Alex Pliutau <a.pliutau@gmail.com>
2020-05-02 17:09:58 +02:00
Alex Pliutau
fc9dcf749b Fix v2 endpoints, migrate to v1 2020-05-02 17:00:45 +02:00
Jakub Horák
4f66415fcd
Add transaction search /v1/reporting/transactions (#145) 2020-05-02 16:43:30 +02:00
Bülent Rahim Kazancı
21b349dbdc
Add functions of create, get, update, delete and list webhooks (#146)
* Add webhook creation function

* Add webhook list function

* Add webhook delete function

* Add webhook get function

* Add webhook update function

* Update documentation related to webhooks

* Fix addressed issues on code review
2020-05-02 16:42:37 +02:00
Jakub Horák
497963d8a5
Fix typo (#144) 2020-04-24 12:05:22 +02:00
Leaf
1fb8e0b1fa
Add order status consts (#140)
Fixes #136
2020-04-18 23:37:18 -07:00
kenbolt
2091d46d04
Refund from capture endpoint function (#141)
* Capture refund API call

* .
2020-04-08 09:51:17 -07:00
Alessandro Sechi
6f0fe4d870
Added GetSubscriptionDetails method (#135)
* Issue #133

Added GetSubscriptionDetails method

* Issue #133
2020-03-27 12:05:56 +01:00
Sergio Segrera
8686a619a4
Add capture response address field (#137) 2020-03-27 12:05:43 +01:00