63 lines
2.1 KiB
Go
63 lines
2.1 KiB
Go
package shiip
|
|
|
|
// Product ...
|
|
type Product struct {
|
|
PartnerSKU string `json:"partnerSKU"`
|
|
UnitCode string `json:"unitCode"`
|
|
ConditionTypeCode string `json:"conditionTypeCode"`
|
|
Quantity int64 `json:"quantity"`
|
|
}
|
|
|
|
// Address ...
|
|
type Address struct {
|
|
AddressNo string `json:"addressNo"`
|
|
ProvinceCode string `json:"provinceCode,omitempty"`
|
|
DistrictCode string `json:"districtCode,omitempty"`
|
|
WardCode string `json:"wardCode,omitempty"`
|
|
}
|
|
|
|
// OutboundRequestPayload ...
|
|
type OutboundRequestPayload struct {
|
|
WarehouseCode string `json:"warehouseCode"`
|
|
ShippingServiceCode string `json:"shippingServiceCode"`
|
|
PartnerORCode string `json:"partnerORCode"`
|
|
PartnerRefId string `json:"partnerRefId"`
|
|
RefCode string `json:"refCode"`
|
|
CodAmount float64 `json:"codAmount"`
|
|
PriorityType int `json:"priorityType"`
|
|
CustomerName string `json:"customerName"`
|
|
CustomerPhoneNumber string `json:"customerPhoneNumber"`
|
|
Type int `json:"type"`
|
|
ShippingType int `json:"shippingType"`
|
|
VehicleNumber string `json:"vehicleNumber"`
|
|
ContainerNumber string `json:"containerNumber"`
|
|
PackType int `json:"packType"`
|
|
PackingNote string `json:"packingNote"`
|
|
CustomLabel bool `json:"customLabel"`
|
|
BizType int `json:"bizType"`
|
|
Note string `json:"note"`
|
|
ShippingAddress Address `json:"shippingAddress"`
|
|
Products []Product `json:"products"`
|
|
PartnerCreationTime string `json:"partnerCreationTime"`
|
|
TPLCode string `json:"tplCode"`
|
|
TrackingCode string `json:"trackingCode"`
|
|
}
|
|
|
|
// UpdateORLogisticInfoPayload ...
|
|
type UpdateORLogisticInfoPayload struct {
|
|
OrID int `json:"orId"`
|
|
TrackingCode string `json:"trackingCode"`
|
|
ShippingLabels []Label `json:"shippingLabels"`
|
|
TPLCode string `json:"tplCode"`
|
|
}
|
|
|
|
type Label struct {
|
|
Caption string `json:"caption"`
|
|
URI string `json:"uri"`
|
|
}
|
|
|
|
type AuthPayload struct {
|
|
ClientID string `json:"clientId"`
|
|
ClientSecret string `json:"clientSecret"`
|
|
}
|