From 71e2f0b84278e783c76e297a8fcd2e516217b1a8 Mon Sep 17 00:00:00 2001 From: Sinh Date: Thu, 9 Nov 2023 09:58:57 +0700 Subject: [PATCH 1/3] update onpoint status --- partnerapi/onpoint/status.go | 1 + 1 file changed, 1 insertion(+) diff --git a/partnerapi/onpoint/status.go b/partnerapi/onpoint/status.go index 96cc880..542f1d9 100644 --- a/partnerapi/onpoint/status.go +++ b/partnerapi/onpoint/status.go @@ -3,6 +3,7 @@ package onpoint const ( OrderStatusNew = "new" OrderStatusPendingWarehouse = "pending_warehouse" + OrderStatusWhPending = "wh_pending" OrderStatusWhProcessing = "wh_processing" OrderStatusWhCompleted = "wh_completed" OrderStatusDlPending = "dl_pending" From a9b7f39b09553ae7dd535f9523b453d4dd58924a Mon Sep 17 00:00:00 2001 From: Sinh Date: Fri, 1 Dec 2023 14:39:56 +0700 Subject: [PATCH 2/3] update onpoint --- partnerapi/onpoint/model_request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/partnerapi/onpoint/model_request.go b/partnerapi/onpoint/model_request.go index 708f349..bb6e8c1 100644 --- a/partnerapi/onpoint/model_request.go +++ b/partnerapi/onpoint/model_request.go @@ -12,6 +12,8 @@ import ( // CreateOrderRequest ... type CreateOrderRequest struct { + StoreCode string `json:"store_code"` + DeliveryPlatform string `json:"delivery_platform"` OrderCode string `json:"order_code"` OrderDate time.Time `json:"order_date"` PickupLocationCode string `json:"pickup_location_code"` From 1c6be73d040001e555c3d486e5e164c4eafcf3fd Mon Sep 17 00:00:00 2001 From: Sinh Date: Fri, 8 Dec 2023 09:10:20 +0700 Subject: [PATCH 3/3] fix(onpoint): update order item model --- partnerapi/onpoint/model_request.go | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/partnerapi/onpoint/model_request.go b/partnerapi/onpoint/model_request.go index bb6e8c1..aca58b3 100644 --- a/partnerapi/onpoint/model_request.go +++ b/partnerapi/onpoint/model_request.go @@ -27,13 +27,13 @@ type CreateOrderRequest struct { // OrderItem ... type OrderItem struct { - SellingPrice int `json:"selling_price"` - Quantity int `json:"quantity"` - Uom string `json:"uom"` - Amount int `json:"amount"` - Name string `json:"name"` - PartnerSku string `json:"sku"` - DiscountPrice int `json:"discount_price"` + SellingPrice int `json:"selling_price"` + Quantity int `json:"quantity"` + Uom string `json:"uom"` + Amount int `json:"amount"` + Name string `json:"name"` + PartnerSku string `json:"sku"` + DiscountedPrice int `json:"discounted_price"` } // UpdateOrderDeliveryRequest ...