2022-08-18 10:47:47 +00:00
|
|
|
package model
|
|
|
|
|
|
|
|
// OutboundRequestPayload ...
|
|
|
|
type OutboundRequestPayload struct {
|
2022-08-22 04:02:37 +00:00
|
|
|
OrderID string `json:"orderId"`
|
2022-08-18 10:47:47 +00:00
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// OutboundRequestItem ...
|
|
|
|
type OutboundRequestItem struct {
|
|
|
|
SupplierSKU string `json:"supplierSKU"`
|
|
|
|
Quantity int64 `json:"quantity"`
|
|
|
|
UnitCode string `json:"unitCode"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// CustomerInfo ...
|
|
|
|
type CustomerInfo struct {
|
|
|
|
Name string `json:"name"`
|
|
|
|
PhoneNumber string `json:"phoneNumber"`
|
|
|
|
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"`
|
|
|
|
}
|
|
|
|
|
|
|
|
// CancelOutboundRequest ...
|
|
|
|
type CancelOutboundRequest struct {
|
|
|
|
ORCode string `json:"orCode"`
|
2022-08-18 10:59:09 +00:00
|
|
|
Note string `json:"note"`
|
2022-08-18 10:47:47 +00:00
|
|
|
}
|