From 1fb8e0b1fa9489a5a3b985157195908910290194 Mon Sep 17 00:00:00 2001 From: Leaf Date: Sun, 19 Apr 2020 07:37:18 +0100 Subject: [PATCH] Add order status consts (#140) Fixes #136 --- types.go | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/types.go b/types.go index ea810e6..1e05ef4 100644 --- a/types.go +++ b/types.go @@ -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