From 8788f7e89b70a9ef397801ae4a1de0e3a6d51c54 Mon Sep 17 00:00:00 2001 From: Sinh Date: Tue, 9 Apr 2024 12:08:19 +0700 Subject: [PATCH] feat(onpoint): update webhook payload --- partnerapi/onpoint/model_request.go | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/partnerapi/onpoint/model_request.go b/partnerapi/onpoint/model_request.go index ac700af..7f5f11c 100644 --- a/partnerapi/onpoint/model_request.go +++ b/partnerapi/onpoint/model_request.go @@ -64,13 +64,10 @@ type ListInventoriesReq struct { // WebhookDataUpdateInventory ... type WebhookDataUpdateInventory struct { - Sku string `json:"sku"` - PartnerSku string `json:"partner_sku"` - WarehouseCode string `json:"warehouse_code"` - AvailableQuantity int `json:"available_quantity"` - CommittedQuantity int `json:"committed_quantity"` - TotalQuantity int `json:"total_quantity"` - UpdatedAt string `json:"updated_at"` + Sku string `json:"sku"` + AvailableQuantity int `json:"available_quantity"` + PickupLocationCode string `json:"pickup_location_code"` + UpdatedAt time.Time `json:"updated_at"` } // WebhookDataUpdateOrderStatus ...