From 6293e62cb42ab82857756b9d1a101483b0d221c2 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Mon, 24 Oct 2022 10:41:18 +0700 Subject: [PATCH 1/2] [Update] Response warehouse --- model/warehouse_response.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/model/warehouse_response.go b/model/warehouse_response.go index 07969dc..b608c37 100644 --- a/model/warehouse_response.go +++ b/model/warehouse_response.go @@ -26,6 +26,13 @@ type WarehouseConfiguration struct { Delivery WarehouseDelivery `json:"delivery"` Other WarehouseOther `json:"other"` Food WarehouseFood `json:"food"` + AutoConfirmOrder WareOrderConfirm `json:"autoConfirmOrder"` +} + +// WareOrderConfirm ... +type WareOrderConfirm struct { + IsEnable bool `json:"isEnable"` + ConfirmDelayInSeconds int64 `json:"confirmDelayInSeconds"` } // WarehouseFood ... From 6065636a5998e3e3aaea3428d8cbdc52fc3f4259 Mon Sep 17 00:00:00 2001 From: trunglt251292 Date: Mon, 24 Oct 2022 10:43:29 +0700 Subject: [PATCH 2/2] [Update] Response warehouse --- model/warehouse_response.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/model/warehouse_response.go b/model/warehouse_response.go index b608c37..c667290 100644 --- a/model/warehouse_response.go +++ b/model/warehouse_response.go @@ -18,19 +18,19 @@ type OutboundRequestResponse struct { // WarehouseConfiguration ... type WarehouseConfiguration struct { - Warehouse string `json:"warehouse"` - DoesSupportSellyExpress bool `json:"doesSupportSellyExpress"` - Supplier WarehouseSupplier `json:"supplier"` - Order WarehouseOrder `json:"order"` - Partner WarehousePartner `json:"partner"` - Delivery WarehouseDelivery `json:"delivery"` - Other WarehouseOther `json:"other"` - Food WarehouseFood `json:"food"` - AutoConfirmOrder WareOrderConfirm `json:"autoConfirmOrder"` + Warehouse string `json:"warehouse"` + DoesSupportSellyExpress bool `json:"doesSupportSellyExpress"` + Supplier WarehouseSupplier `json:"supplier"` + Order WarehouseOrder `json:"order"` + Partner WarehousePartner `json:"partner"` + Delivery WarehouseDelivery `json:"delivery"` + Other WarehouseOther `json:"other"` + Food WarehouseFood `json:"food"` + AutoConfirmOrder WarehouseOrderConfirm `json:"autoConfirmOrder"` } -// WareOrderConfirm ... -type WareOrderConfirm struct { +// WarehouseOrderConfirm ... +type WarehouseOrderConfirm struct { IsEnable bool `json:"isEnable"` ConfirmDelayInSeconds int64 `json:"confirmDelayInSeconds"` }