* Order should include purchase_units
* PayerWithNameAndPhone needs Address for Order
* add SellerProtection to CaptureAmount
* add RecipientType(s)
* add RecipientType(s)
* BatchHeader.BatchStatus values
* Adds SellerReceivableBreakdown and CustomID fields to the Resource type
* Adds EventCheckoutOrderApproved constant and Intent, PurchaseUnits, Payer fields to Resource type
* Update billing plan
* Update billing plan
* Update billing plan
* Kickstart product creation
* Added product api
* Added list product api and refactored some similar structs
* Reverted endpoint for old billing plans
* Added subscription plans create get update list
* Added subscription plans activate/deactivate/update pricing scheme
* Added integration tests for subscription plans
* go fmt
* Add subscriptions API
* Removed AWS library added by mistake
* reverted billing plans url
* resolved MR discussions
* Fixed but in listing subscription plans, and some constants
* Fixed wrong type for subscription plan description
* Fixed updating issue
Co-authored-by: rami <admin@okitoo.net>
* 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>
* 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
* Adding a capture auth idempotent function
* refactoring
* better name
Co-Authored-By: Roopak Venkatakrishnan <roopak.v@gmail.com>
* what's in a name
Co-authored-by: Roopak Venkatakrishnan <roopak.v@gmail.com>
* Add types to support Partner Referral API
Add in the type structs to allow a POST call to v2/customer/partner-referrals
It sends a ReferralRequest, and returns a response of type Resource with only Links populated
https://developer.paypal.com/docs/api/partner-referrals/v2/
* Pointer for optional field
* Update types.go
Co-Authored-By: Roopak Venkatakrishnan <roopak.v@gmail.com>
* Add Webhook data types
Add the Event data types for payment capture and merchant onboarding events, which are sent for PayPal Commerce Platform integrations.
* remove unnecessary empty line
* name change and points for omitempty objects
* Update types.go
Co-Authored-By: Roopak Venkatakrishnan <roopak.v@gmail.com>