Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CustomerDetail ¶
CustomerDetail defines type of customer detail
type Item ¶
type Item struct { ID string `json:"id"` ShopID int64 `json:"shop_id"` SKU string `json:"sku"` Name string `json:"name"` Uom string `json:"uom"` Qty int64 `json:"qty"` BasePrice float64 `json:"base_price"` }
Item means the items from order
type ItemDetail ¶
ItemDetail defines type of items detail
type Order ¶
type Order struct { ID int32 `json:"id"` TrxID string `json:"trx_id"` PaymentTrxID string `json:"payment_trx_id"` Items []Item `json:"items"` Billing Billing `json:"billing"` Status Status `json:"status"` }
Order is represent object for creating new order
func (*Order) GenerateID ¶
func (o *Order) GenerateID()
func (*Order) ItemsToJSON ¶
func (*Order) SetPaymentTrxID ¶
type Payment ¶
type Payment struct { TransactionDetail TransactionDetail CustomerDetail CustomerDetail ItemDetails []ItemDetail }
Payment defines a type of payment service The service should to know what customer order and Locking items before payment
type TransactionDetail ¶
TransactionDetail defines type of transaction detail such as transaction id as a key
Click to show internal directories.
Click to hide internal directories.