Merge pull request 'onpoint' (#15) from onpoint into master
Reviewed-on: #15
This commit is contained in:
commit
d549cc5103
|
@ -12,6 +12,8 @@ import (
|
||||||
|
|
||||||
// CreateOrderRequest ...
|
// CreateOrderRequest ...
|
||||||
type CreateOrderRequest struct {
|
type CreateOrderRequest struct {
|
||||||
|
StoreCode string `json:"store_code"`
|
||||||
|
DeliveryPlatform string `json:"delivery_platform"`
|
||||||
OrderCode string `json:"order_code"`
|
OrderCode string `json:"order_code"`
|
||||||
OrderDate time.Time `json:"order_date"`
|
OrderDate time.Time `json:"order_date"`
|
||||||
PickupLocationCode string `json:"pickup_location_code"`
|
PickupLocationCode string `json:"pickup_location_code"`
|
||||||
|
@ -25,13 +27,13 @@ type CreateOrderRequest struct {
|
||||||
|
|
||||||
// OrderItem ...
|
// OrderItem ...
|
||||||
type OrderItem struct {
|
type OrderItem struct {
|
||||||
SellingPrice int `json:"selling_price"`
|
SellingPrice int `json:"selling_price"`
|
||||||
Quantity int `json:"quantity"`
|
Quantity int `json:"quantity"`
|
||||||
Uom string `json:"uom"`
|
Uom string `json:"uom"`
|
||||||
Amount int `json:"amount"`
|
Amount int `json:"amount"`
|
||||||
Name string `json:"name"`
|
Name string `json:"name"`
|
||||||
PartnerSku string `json:"sku"`
|
PartnerSku string `json:"sku"`
|
||||||
DiscountPrice int `json:"discount_price"`
|
DiscountedPrice int `json:"discounted_price"`
|
||||||
}
|
}
|
||||||
|
|
||||||
// UpdateOrderDeliveryRequest ...
|
// UpdateOrderDeliveryRequest ...
|
||||||
|
|
|
@ -3,6 +3,7 @@ package onpoint
|
||||||
const (
|
const (
|
||||||
OrderStatusNew = "new"
|
OrderStatusNew = "new"
|
||||||
OrderStatusPendingWarehouse = "pending_warehouse"
|
OrderStatusPendingWarehouse = "pending_warehouse"
|
||||||
|
OrderStatusWhPending = "wh_pending"
|
||||||
OrderStatusWhProcessing = "wh_processing"
|
OrderStatusWhProcessing = "wh_processing"
|
||||||
OrderStatusWhCompleted = "wh_completed"
|
OrderStatusWhCompleted = "wh_completed"
|
||||||
OrderStatusDlPending = "dl_pending"
|
OrderStatusDlPending = "dl_pending"
|
||||||
|
|
Loading…
Reference in New Issue