Add order status consts (#140)

Fixes #136
This commit is contained in:
Leaf 2020-04-19 07:37:18 +01:00 committed by GitHub
parent 2091d46d04
commit 1fb8e0b1fa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -62,6 +62,17 @@ const (
OrderIntentAuthorize string = "AUTHORIZE"
)
// Possible value for `status` in GetOrder
//
// https://developer.paypal.com/docs/api/orders/v2/#orders-get-response
const (
OrderStatusCreated string = "CREATED"
OrderStatusSaved string = "SAVED"
OrderStatusApproved string = "APPROVED"
OrderStatusVoided string = "VOIDED"
OrderStatusCompleted string = "COMPLETED"
)
// Possible values for `category` in Item
//
// https://developer.paypal.com/docs/api/orders/v2/#definition-item