From dfdccfa86ad794cb79b0db6f7242b7fcf24961bf Mon Sep 17 00:00:00 2001 From: Sinh Date: Tue, 18 Jun 2024 11:11:24 +0700 Subject: [PATCH 1/2] add partner product code --- model/warehouse_request.go | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/model/warehouse_request.go b/model/warehouse_request.go index ce61c2b..f1aec8d 100644 --- a/model/warehouse_request.go +++ b/model/warehouse_request.go @@ -37,11 +37,12 @@ type InsuranceOpts struct { // OutboundRequestItem ... type OutboundRequestItem struct { - SupplierSKU string `json:"supplierSKU"` - Quantity int64 `json:"quantity"` - UnitCode string `json:"unitCode"` - Price float64 `json:"price"` - Name string `json:"name"` + SupplierSKU string `json:"supplierSKU"` + Quantity int64 `json:"quantity"` + UnitCode string `json:"unitCode"` + Price float64 `json:"price"` + Name string `json:"name"` + PartnerProductCode string `json:"partnerProductCode"` } // CustomerInfo ... From 2b0d33efc2d64c7408739b5bd78674b4386dc9ae Mon Sep 17 00:00:00 2001 From: Sinh Date: Tue, 18 Jun 2024 15:14:57 +0700 Subject: [PATCH 2/2] update nats subject --- subject/warehouse.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/subject/warehouse.go b/subject/warehouse.go index 517a8a1..77e18cd 100644 --- a/subject/warehouse.go +++ b/subject/warehouse.go @@ -19,6 +19,7 @@ var Warehouse = struct { WebhookTNC string WebhookGlobalCare string WebhookOnPoint string + WebhookViettelFFM string FindOne string FindByCondition string Distinct string @@ -46,6 +47,7 @@ var Warehouse = struct { WebhookTNC: getWarehouseValue("webhook_tnc"), WebhookGlobalCare: getWarehouseValue("webhook_global_care"), WebhookOnPoint: getWarehouseValue("webhook_on_point"), + WebhookViettelFFM: getWarehouseValue("webhook_viettel_ffm"), FindOne: getWarehouseValue("find_one"), FindByCondition: getWarehouseValue("find_all_by_condition"), Distinct: getWarehouseValue("distinct"),