* 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
* created billing agreements file
* CreateBillingAgreementToken created with new types
* updated formatting
* error to return nil
* removed new line
* added test
* 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>