package
Version:
v0.0.0-...-41be704
Opens a new window with list of versions in this module.
Published: Oct 24, 2024
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Order struct {
ID string `json:"id"`
CustomerID string `json:"customer_id"`
Status OrderStatus `json:"status"`
OrderItems []*OrderItem `json:"order_items"`
CreatedAtMillis int64 `json:"created_at_millis"`
UpdatedAtMillis int64 `json:"updated_at_millis"`
}
type OrderItem struct {
ProductCode string `json:"product_code"`
Quantity int32 `json:"quantity"`
}
type ProductPrice struct {
ProductCode string `json:"product_code"`
UnitPriceCents int32 `json:"unit_price_cents"`
}
type ProductStock struct {
ProductCode string `json:"product_code"`
AvailableQuantity int32 `json:"available_quantity"`
IsAvailable bool `json:"is_available"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.