3pl/partnerapi/onpoint/model_response.go

37 lines
1.2 KiB
Go
Raw Normal View History

2022-09-16 10:43:13 +00:00
package onpoint
// CreateOrderResponse ...
type CreateOrderResponse struct {
2022-10-04 08:45:29 +00:00
OrderCode string `json:"order_code"`
OnpointOrderCode string `json:"onpoint_order_code"`
OrderDate string `json:"order_date"`
2022-09-16 10:43:13 +00:00
Note string `json:"note"`
SubtotalPrice int `json:"subtotal_price"`
TotalDiscounts int `json:"total_discounts"`
TotalPrice int `json:"total_price"`
PaymentMethod string `json:"payment_method"`
DeliveryPlatform string `json:"delivery_platform"`
Status string `json:"status"`
2022-10-04 08:45:29 +00:00
UpdatedAt string `json:"updated_at"`
2022-09-16 10:43:13 +00:00
Items []OrderItem `json:"items"`
}
// UpdateOrderDeliveryResponse ...
type UpdateOrderDeliveryResponse struct {
DeliveryPlatform string `json:"delivery_platform"`
DeliveryTrackingNumber string `json:"delivery_tracking_number"`
ShippingLabel string `json:"shipping_label"`
}
// CancelOrderResponse ...
type CancelOrderResponse struct {
OrderNo string `json:"order_no"`
Status string `json:"status"`
}
// ChannelResponse ...
type ChannelResponse struct {
Code string `json:"code"`
Name string `json:"name"`
}