Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CafeDishResponse ¶
type CafeDishResponse struct { // description Description string `json:"description,omitempty"` // id // Required: true ID *string `json:"id"` // image url // Required: true ImageURL *string `json:"image_url"` // name // Required: true Name *string `json:"name"` // price // Required: true Price *int64 `json:"price"` }
CafeDishResponse cafe dish response swagger:model CafeDishResponse
func (*CafeDishResponse) MarshalBinary ¶
func (m *CafeDishResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CafeDishResponse) UnmarshalBinary ¶
func (m *CafeDishResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CafeResponse ¶
type CafeResponse struct { // city id // Required: true CityID *string `json:"city_id"` // cuisine Cuisine string `json:"cuisine,omitempty"` // id // Required: true ID *string `json:"id"` // minimum price MinimumPrice int64 `json:"minimum_price,omitempty"` // name // Required: true Name *string `json:"name"` // positions // Required: true Positions []*CafeDishResponse `json:"positions"` }
CafeResponse cafe response swagger:model CafeResponse
func (*CafeResponse) MarshalBinary ¶
func (m *CafeResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CafeResponse) UnmarshalBinary ¶
func (m *CafeResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type CouponResponse ¶
type CouponResponse struct { // discount Discount float32 `json:"discount,omitempty"` // valid // Required: true Valid *bool `json:"valid"` }
CouponResponse coupon response swagger:model CouponResponse
func (*CouponResponse) MarshalBinary ¶
func (m *CouponResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*CouponResponse) UnmarshalBinary ¶
func (m *CouponResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderCreateResponse ¶
type OrderCreateResponse struct { // coupon Coupon string `json:"coupon,omitempty"` // id // Required: true ID *string `json:"id"` // payment id // Required: true PaymentID *string `json:"payment_id"` // positions // Required: true Positions []*OrderItem `json:"positions"` // status // Required: true Status *string `json:"status"` }
OrderCreateResponse order create response swagger:model OrderCreateResponse
func (*OrderCreateResponse) MarshalBinary ¶
func (m *OrderCreateResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderCreateResponse) UnmarshalBinary ¶
func (m *OrderCreateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderItem ¶
type OrderItem struct { // amount // Required: true Amount *int64 `json:"amount"` // id // Required: true ID *string `json:"id"` // total price TotalPrice int64 `json:"total_price,omitempty"` }
OrderItem order item swagger:model OrderItem
func (*OrderItem) MarshalBinary ¶
MarshalBinary interface implementation
func (*OrderItem) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OrderRequest ¶
type OrderRequest struct { // order // Required: true Order *OrderRequestOrder `json:"order"` // user id // Required: true UserID *string `json:"user_id"` }
OrderRequest order request swagger:model OrderRequest
func (*OrderRequest) MarshalBinary ¶
func (m *OrderRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderRequest) UnmarshalBinary ¶
func (m *OrderRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderRequestOrder ¶
type OrderRequestOrder struct { // cafe id // Required: true CafeID *string `json:"cafe_id"` // coupon Coupon string `json:"coupon,omitempty"` // positions // Required: true Positions []*OrderItem `json:"positions"` }
OrderRequestOrder order request order swagger:model OrderRequestOrder
func (*OrderRequestOrder) MarshalBinary ¶
func (m *OrderRequestOrder) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderRequestOrder) UnmarshalBinary ¶
func (m *OrderRequestOrder) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type OrderResponse ¶
type OrderResponse struct { // coupon Coupon string `json:"coupon,omitempty"` // id // Required: true ID *string `json:"id"` // positions // Required: true Positions []*OrderItem `json:"positions"` // status // Required: true Status *string `json:"status"` }
OrderResponse order response swagger:model OrderResponse
func (*OrderResponse) MarshalBinary ¶
func (m *OrderResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*OrderResponse) UnmarshalBinary ¶
func (m *OrderResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PaymentRequest ¶
type PaymentRequest struct { // payment id // Required: true PaymentID *string `json:"payment_id"` // user id // Required: true UserID *string `json:"user_id"` }
PaymentRequest payment request swagger:model PaymentRequest
func (*PaymentRequest) MarshalBinary ¶
func (m *PaymentRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PaymentRequest) UnmarshalBinary ¶
func (m *PaymentRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PaymentResponse ¶
type PaymentResponse struct { // status // Required: true Status *string `json:"status"` }
PaymentResponse payment response swagger:model PaymentResponse
func (*PaymentResponse) MarshalBinary ¶
func (m *PaymentResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PaymentResponse) UnmarshalBinary ¶
func (m *PaymentResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RouteResponse ¶
type RouteResponse struct { // stops // Required: true Stops []*RouteResponseStopsItems0 `json:"stops"` // train name TrainName string `json:"train_name,omitempty"` // train number // Required: true TrainNumber *string `json:"train_number"` }
RouteResponse route response swagger:model RouteResponse
func (*RouteResponse) MarshalBinary ¶
func (m *RouteResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RouteResponse) UnmarshalBinary ¶
func (m *RouteResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RouteResponseStopsItems0 ¶
type RouteResponseStopsItems0 struct { // cafes // Required: true Cafes []*CafeResponse `json:"cafes"` // city id // Required: true CityID *string `json:"city_id"` // date time // Required: true // Format: date-time DateTime *strfmt.DateTime `json:"date_time"` // duration // Required: true Duration *int64 `json:"duration"` // name // Required: true Name *string `json:"name"` }
RouteResponseStopsItems0 route response stops items0 swagger:model RouteResponseStopsItems0
func (*RouteResponseStopsItems0) MarshalBinary ¶
func (m *RouteResponseStopsItems0) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RouteResponseStopsItems0) UnmarshalBinary ¶
func (m *RouteResponseStopsItems0) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StatusResponse ¶
type StatusResponse struct { // message Message string `json:"message,omitempty"` }
StatusResponse status response swagger:model StatusResponse
func (*StatusResponse) MarshalBinary ¶
func (m *StatusResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StatusResponse) UnmarshalBinary ¶
func (m *StatusResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation