onpoint #15

Merged
sinhluu merged 3 commits from onpoint into master 2023-12-19 03:43:57 +00:00
2 changed files with 10 additions and 7 deletions

View File

@ -12,6 +12,8 @@ import (
// CreateOrderRequest ...
type CreateOrderRequest struct {
StoreCode string `json:"store_code"`
DeliveryPlatform string `json:"delivery_platform"`
OrderCode string `json:"order_code"`
OrderDate time.Time `json:"order_date"`
PickupLocationCode string `json:"pickup_location_code"`
@ -25,13 +27,13 @@ type CreateOrderRequest struct {
// OrderItem ...
type OrderItem struct {
SellingPrice int `json:"selling_price"`
Quantity int `json:"quantity"`
Uom string `json:"uom"`
Amount int `json:"amount"`
Name string `json:"name"`
PartnerSku string `json:"sku"`
DiscountPrice int `json:"discount_price"`
SellingPrice int `json:"selling_price"`
Quantity int `json:"quantity"`
Uom string `json:"uom"`
Amount int `json:"amount"`
Name string `json:"name"`
PartnerSku string `json:"sku"`
DiscountedPrice int `json:"discounted_price"`
}
// UpdateOrderDeliveryRequest ...

View File

@ -3,6 +3,7 @@ package onpoint
const (
OrderStatusNew = "new"
OrderStatusPendingWarehouse = "pending_warehouse"
OrderStatusWhPending = "wh_pending"
OrderStatusWhProcessing = "wh_processing"
OrderStatusWhCompleted = "wh_completed"
OrderStatusDlPending = "dl_pending"