package model // OutboundRequestPayload ... type OutboundRequestPayload struct { OrderID string `json:"orderId"` OrderCode string `json:"orderCode"` TrackingCode string `json:"trackingCode"` WarehouseID string `json:"warehouseId"` SupplierID string `json:"supplierId"` Note string `json:"note"` CODAmount float64 `json:"codAmount"` TPLCode string `json:"tplCode"` Customer CustomerInfo `json:"customer"` Items []OutboundRequestItem `json:"items"` Insurance *InsuranceOpts `json:"insurance"` PaymentMethod string `json:"paymentMethod"` } // InsuranceOpts ... type InsuranceOpts struct { InsuranceType string `json:"insuranceType"` VehicleTypeID string `json:"vehicleTypeId"` VehicleTypeName string `json:"vehicleTypeName"` InsuranceTypeID string `json:"insuranceTypeId"` YearsOfInsurance int `json:"yearsOfInsurance"` License string `json:"license"` Chassis string `json:"chassis"` Engine string `json:"engine"` BeginDate string `json:"beginDate"` // For car insurance NumberOfSeatsCarOccupantAccidentInsurance int `json:"numberOfSeatsCarOccupantAccidentInsurance"` NumberOfSeats int `json:"numberOfSeats"` NumberOfSeatsOrTonnageId string `json:"numberOfSeatsOrTonnageId"` NumberOfSeatsOrTonnageName string `json:"numberOfSeatsOrTonnageName"` } // OutboundRequestItem ... type OutboundRequestItem struct { SupplierSKU string `json:"supplierSKU"` Quantity int64 `json:"quantity"` UnitCode string `json:"unitCode"` Price float64 `json:"price"` Name string `json:"name"` } // CustomerInfo ... type CustomerInfo struct { Name string `json:"name"` PhoneNumber string `json:"phoneNumber"` Email string `json:"email"` Address AddressDetail `json:"address"` } // AddressDetail ... type AddressDetail struct { Address string `json:"address"` FullAddress string `json:"fullAddress"` ProvinceCode int `json:"provinceCode"` DistrictCode int `json:"districtCode"` WardCode int `json:"wardCode"` } // UpdateOutboundRequestLogisticInfoPayload ... type UpdateOutboundRequestLogisticInfoPayload struct { ShippingLabel string `json:"shippingLabel"` TrackingCode string `json:"trackingCode"` ORCode string `json:"orCode"` TPLCode string `json:"tplCode"` OrderID string `json:"orderId"` } // CancelOutboundRequest ... type CancelOutboundRequest struct { ORCode string `json:"orCode"` OrderID string `json:"orderId"` Note string `json:"note"` } // SyncORStatusRequest ... type SyncORStatusRequest struct { ORCode string `json:"orCode"` OrderCode string `json:"orderCode"` OrderID string `json:"orderId"` } // UpdateSupplierIsClosedRequest ... type UpdateSupplierIsClosedRequest struct { Suppliers []SupplierIsClosed `json:"suppliers"` } // SupplierIsClosed ... type SupplierIsClosed struct { Supplier string `json:"supplier"` IsClosed bool `json:"isClosed"` } // GetWarehousesRequest ... type GetWarehousesRequest struct { Keyword string `json:"keyword"` Status string `json:"status"` Supplier string `json:"supplier"` BusinessType string `json:"businessType"` Page int64 `json:"page"` Limit int64 `json:"limit"` } // WarehouseORUpdateDeliveryStatus ... type WarehouseORUpdateDeliveryStatus struct { ORCode string `json:"orCode"` OrderCode string `json:"orderCode"` OrderID string `json:"orderId"` DeliveryStatus string `json:"deliveryStatus"` } // SupplierHolidayCreatePayload ... type SupplierHolidayCreatePayload struct { Supplier string `json:"supplier"` Title string `json:"title"` From string `json:"from"` To string `json:"to"` Warehouses []string `json:"warehouses"` IsApplyAll bool `json:"isApplyAll"` Source string `json:"source"` } // SupplierHolidayUpdatePayload ... type SupplierHolidayUpdatePayload struct { Supplier string `json:"supplier"` Title string `json:"title"` From string `json:"from"` To string `json:"to"` Warehouses []string `json:"warehouses"` IsApplyAll bool `json:"isApplyAll"` Source string `json:"source"` } // GetSupplierHolidayRequest ... type GetSupplierHolidayRequest struct { Conditions interface{} `json:"conditions"` }