onpoint #15
			
				
			
		
		
		
	| 
						 | 
				
			
			@ -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"`
 | 
			
		||||
| 
						 | 
				
			
			@ -31,7 +33,7 @@ type OrderItem struct {
 | 
			
		|||
	Amount          int    `json:"amount"`
 | 
			
		||||
	Name            string `json:"name"`
 | 
			
		||||
	PartnerSku      string `json:"sku"`
 | 
			
		||||
	DiscountPrice int    `json:"discount_price"`
 | 
			
		||||
	DiscountedPrice int    `json:"discounted_price"`
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
// UpdateOrderDeliveryRequest ...
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,6 +3,7 @@ package onpoint
 | 
			
		|||
const (
 | 
			
		||||
	OrderStatusNew              = "new"
 | 
			
		||||
	OrderStatusPendingWarehouse = "pending_warehouse"
 | 
			
		||||
	OrderStatusWhPending        = "wh_pending"
 | 
			
		||||
	OrderStatusWhProcessing     = "wh_processing"
 | 
			
		||||
	OrderStatusWhCompleted      = "wh_completed"
 | 
			
		||||
	OrderStatusDlPending        = "dl_pending"
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue