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 ... diff --git a/model/warehouse_response.go b/model/warehouse_response.go index 676cea3..a6e9b7e 100644 --- a/model/warehouse_response.go +++ b/model/warehouse_response.go @@ -61,12 +61,14 @@ type WarehouseSupplier struct { // WarehouseOrder ... type WarehouseOrder struct { - MinimumValue float64 `json:"minimumValue"` - PaymentMethod WarehousePaymentMethod `json:"paymentMethod"` - IsLimitNumberOfPurchases bool `json:"isLimitNumberOfPurchases"` - LimitNumberOfPurchases int64 `json:"limitNumberOfPurchases"` - NotifyOnNewOrder WarehouseConfigNotifyOnNewOrder `json:"notifyOnNewOrder"` - LabelSize string `json:"labelSize"` + MinimumValue float64 `json:"minimumValue"` + PaymentMethod WarehousePaymentMethod `json:"paymentMethod"` + IsLimitNumberOfPurchases bool `json:"isLimitNumberOfPurchases"` + LimitNumberOfPurchases int64 `json:"limitNumberOfPurchases"` + NotifyOnNewOrder WarehouseConfigNotifyOnNewOrder `json:"notifyOnNewOrder"` + LabelSize string `json:"labelSize"` + MaximumOrderValue float64 `json:"maximumOrderValue"` + MaximumNumberPerBuyerEachMonth int64 `json:"maximumNumberPerBuyerEachMonth"` } // WarehouseConfigNotifyOnNewOrder ... @@ -155,6 +157,7 @@ type WarehouseNatsResponse struct { ReasonPendingInactive string `json:"reasonPendingInactive"` IsPendingInactive bool `json:"isPendingInactive"` IsFromInternational bool `json:"isFromInternational"` + StoreCode string `json:"storeCode"` } // WarehouseInfo ... 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"),