Discover Packages
github.com/ikwemogena/order-management/gateway
models
package
Version:
v0.0.0-...-859a59f
Opens a new window with list of versions in this module.
Published: Oct 16, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type Order struct {
ID string `json:"id,omitempty"`
UserId string `json:"user_id,omitempty"`
Products []OrderItem `json:"products,omitempty"`
TotalAmount float64 `json:"total_amount,omitempty"`
ShippingAddress string `json:"shipping_address,omitempty"`
PaymentMethod string `json:"payment_method,omitempty"`
Status string `json:"status,omitempty"`
}
type OrderItem struct {
ID string `json:"id,omitempty"`
OrderID string `json:"order_id,omitempty"`
ProductId string `json:"product_id,omitempty"`
Quantity int32 `json:"quantity,omitempty"`
UnitPrice float64 `json:"unit_price,omitempty"`
TotalAmount float64 `json:"total_amount,omitempty"`
}
type Payment struct {
Provider string `json:"provider,omitempty"`
Email string `json:"email,omitempty"`
Amount int32 `json:"amount,omitempty"`
Currency string `json:"currency,omitempty"`
Reference string `json:"reference,omitempty"`
}
type Stock struct {
ID int `json:"id,omitempty"`
ItemName string `json:"name,omitempty"`
Description string `json:"description,omitempty"`
Quantity int `json:"quantity,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.