models

package
v0.0.0-...-7a013b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 28, 2019 License: MIT Imports: 5 Imported by: 0

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

func (*CafeDishResponse) Validate

func (m *CafeDishResponse) Validate(formats strfmt.Registry) error

Validate validates this cafe dish response

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

func (*CafeResponse) Validate

func (m *CafeResponse) Validate(formats strfmt.Registry) error

Validate validates this cafe response

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

func (*CouponResponse) Validate

func (m *CouponResponse) Validate(formats strfmt.Registry) error

Validate validates this coupon response

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

func (*OrderCreateResponse) Validate

func (m *OrderCreateResponse) Validate(formats strfmt.Registry) error

Validate validates this order create response

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

func (m *OrderItem) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*OrderItem) UnmarshalBinary

func (m *OrderItem) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*OrderItem) Validate

func (m *OrderItem) Validate(formats strfmt.Registry) error

Validate validates this order item

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

func (*OrderRequest) Validate

func (m *OrderRequest) Validate(formats strfmt.Registry) error

Validate validates this order request

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

func (*OrderRequestOrder) Validate

func (m *OrderRequestOrder) Validate(formats strfmt.Registry) error

Validate validates this order request order

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

func (*OrderResponse) Validate

func (m *OrderResponse) Validate(formats strfmt.Registry) error

Validate validates this order response

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

func (*PaymentRequest) Validate

func (m *PaymentRequest) Validate(formats strfmt.Registry) error

Validate validates this payment request

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

func (*PaymentResponse) Validate

func (m *PaymentResponse) Validate(formats strfmt.Registry) error

Validate validates this payment response

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

func (*RouteResponse) Validate

func (m *RouteResponse) Validate(formats strfmt.Registry) error

Validate validates this route response

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

func (*RouteResponseStopsItems0) Validate

func (m *RouteResponseStopsItems0) Validate(formats strfmt.Registry) error

Validate validates this route response stops items0

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

func (*StatusResponse) Validate

func (m *StatusResponse) Validate(formats strfmt.Registry) error

Validate validates this status response

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL