Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CartItem ¶
type CartItem struct {
// id
// Read Only: true
ID int64 `json:"id,omitempty"`
// product
// Read Only: true
Product *Product `json:"product,omitempty"`
// product id
// Required: true
ProductID *int64 `json:"product_id"`
}
CartItem cart item
swagger:model CartItem
func (*CartItem) MarshalBinary ¶
MarshalBinary interface implementation
func (*CartItem) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Category ¶
type Category struct {
// id
// Read Only: true
ID int64 `json:"id,omitempty"`
// name
// Required: true
// Min Length: 1
Name *string `json:"name"`
}
Category category
swagger:model Category
func (*Category) MarshalBinary ¶
MarshalBinary interface implementation
func (*Category) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Error ¶
type Error struct {
// code
Code int64 `json:"code,omitempty"`
// message
// Required: true
Message *string `json:"message"`
}
Error error
swagger:model Error
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ExtendedOrder ¶
type ExtendedOrder struct {
Order
// cart items
CartItems CartItems `json:"cart_items,omitempty"`
// payment account number
PaymentAccountNumber string `json:"payment_account_number,omitempty"`
// payment amount
PaymentAmount int64 `json:"payment_amount,omitempty"`
// payment method
PaymentMethod string `json:"payment_method,omitempty"`
}
ExtendedOrder extended order
swagger:model ExtendedOrder
func (*ExtendedOrder) MarshalBinary ¶
func (m *ExtendedOrder) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (ExtendedOrder) MarshalJSON ¶
func (m ExtendedOrder) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object to a JSON structure
func (*ExtendedOrder) UnmarshalBinary ¶
func (m *ExtendedOrder) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*ExtendedOrder) UnmarshalJSON ¶
func (m *ExtendedOrder) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object from a JSON structure
type Order ¶
type Order struct {
// cart items
CartItems CartItems `json:"cart_items,omitempty"`
// customer address
// Required: true
// Min Length: 1
CustomerAddress *string `json:"customer_address"`
// customer email
// Required: true
// Min Length: 1
// Format: email
CustomerEmail *strfmt.Email `json:"customer_email"`
// customer name
// Required: true
// Min Length: 1
CustomerName *string `json:"customer_name"`
// id
// Read Only: true
// Format: uuid
ID strfmt.UUID `json:"id,omitempty"`
// payment account number
PaymentAccountNumber string `json:"payment_account_number,omitempty"`
// payment amount
PaymentAmount int64 `json:"payment_amount,omitempty"`
// payment method
PaymentMethod string `json:"payment_method,omitempty"`
}
Order order
swagger:model Order
func (*Order) MarshalBinary ¶
MarshalBinary interface implementation
func (*Order) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Product ¶
type Product struct {
// category id
// Required: true
CategoryID *int64 `json:"category_id"`
// description
// Required: true
// Min Length: 1
Description *string `json:"description"`
// id
// Read Only: true
ID int64 `json:"id,omitempty"`
// name
// Required: true
// Min Length: 1
Name *string `json:"name"`
// photo
Photo string `json:"photo,omitempty"`
// price
// Required: true
Price *int64 `json:"price"`
}
Product product
swagger:model Product
func (*Product) MarshalBinary ¶
MarshalBinary interface implementation
func (*Product) UnmarshalBinary ¶
UnmarshalBinary interface implementation