order_api

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeOrderOK

type ChangeOrderOK struct {
	Payload *models.ProtoOrderID
}

ChangeOrderOK handles this case with default header values.

A successful response.

func NewChangeOrderOK

func NewChangeOrderOK() *ChangeOrderOK

NewChangeOrderOK creates a ChangeOrderOK with default headers values

func (*ChangeOrderOK) Error

func (o *ChangeOrderOK) Error() string

func (*ChangeOrderOK) GetPayload

func (o *ChangeOrderOK) GetPayload() *models.ProtoOrderID

type ChangeOrderParams

type ChangeOrderParams struct {

	/*Body*/
	Body *models.ProtoChangeOrderParam

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

ChangeOrderParams contains all the parameters to send to the API endpoint for the change order operation typically these are written to a http.Request

func NewChangeOrderParams

func NewChangeOrderParams() *ChangeOrderParams

NewChangeOrderParams creates a new ChangeOrderParams object with the default values initialized.

func NewChangeOrderParamsWithContext

func NewChangeOrderParamsWithContext(ctx context.Context) *ChangeOrderParams

NewChangeOrderParamsWithContext creates a new ChangeOrderParams object with the default values initialized, and the ability to set a context for a request

func NewChangeOrderParamsWithHTTPClient

func NewChangeOrderParamsWithHTTPClient(client *http.Client) *ChangeOrderParams

NewChangeOrderParamsWithHTTPClient creates a new ChangeOrderParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewChangeOrderParamsWithTimeout

func NewChangeOrderParamsWithTimeout(timeout time.Duration) *ChangeOrderParams

NewChangeOrderParamsWithTimeout creates a new ChangeOrderParams object with the default values initialized, and the ability to set a timeout on a request

func (*ChangeOrderParams) SetBody

SetBody adds the body to the change order params

func (*ChangeOrderParams) SetContext

func (o *ChangeOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the change order params

func (*ChangeOrderParams) SetHTTPClient

func (o *ChangeOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the change order params

func (*ChangeOrderParams) SetTimeout

func (o *ChangeOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the change order params

func (*ChangeOrderParams) WithBody

WithBody adds the body to the change order params

func (*ChangeOrderParams) WithContext

func (o *ChangeOrderParams) WithContext(ctx context.Context) *ChangeOrderParams

WithContext adds the context to the change order params

func (*ChangeOrderParams) WithHTTPClient

func (o *ChangeOrderParams) WithHTTPClient(client *http.Client) *ChangeOrderParams

WithHTTPClient adds the HTTPClient to the change order params

func (*ChangeOrderParams) WithTimeout

func (o *ChangeOrderParams) WithTimeout(timeout time.Duration) *ChangeOrderParams

WithTimeout adds the timeout to the change order params

func (*ChangeOrderParams) WriteToRequest

func (o *ChangeOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ChangeOrderReader

type ChangeOrderReader struct {
	// contains filtered or unexported fields
}

ChangeOrderReader is a Reader for the ChangeOrder structure.

func (*ChangeOrderReader) ReadResponse

func (o *ChangeOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for order api API

func (*Client) ChangeOrder

func (a *Client) ChangeOrder(params *ChangeOrderParams) (*ChangeOrderOK, error)

ChangeOrder change order API

func (*Client) CreateOrder

func (a *Client) CreateOrder(params *CreateOrderParams) (*CreateOrderOK, error)

CreateOrder create order API

func (*Client) GetOrderInfo

func (a *Client) GetOrderInfo(params *GetOrderInfoParams) (*GetOrderInfoOK, error)

GetOrderInfo get order info API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) TerminateOrder

func (a *Client) TerminateOrder(params *TerminateOrderParams) (*TerminateOrderOK, error)

TerminateOrder terminate order API

type ClientService

type ClientService interface {
	ChangeOrder(params *ChangeOrderParams) (*ChangeOrderOK, error)

	CreateOrder(params *CreateOrderParams) (*CreateOrderOK, error)

	GetOrderInfo(params *GetOrderInfoParams) (*GetOrderInfoOK, error)

	TerminateOrder(params *TerminateOrderParams) (*TerminateOrderOK, error)

	SetTransport(transport runtime.ClientTransport)
}

ClientService is the interface for Client methods

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService

New creates a new order api API client.

type CreateOrderOK

type CreateOrderOK struct {
	Payload *models.ProtoOrderID
}

CreateOrderOK handles this case with default header values.

A successful response.

func NewCreateOrderOK

func NewCreateOrderOK() *CreateOrderOK

NewCreateOrderOK creates a CreateOrderOK with default headers values

func (*CreateOrderOK) Error

func (o *CreateOrderOK) Error() string

func (*CreateOrderOK) GetPayload

func (o *CreateOrderOK) GetPayload() *models.ProtoOrderID

type CreateOrderParams

type CreateOrderParams struct {

	/*Body*/
	Body *models.ProtoCreateOrderParam

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

CreateOrderParams contains all the parameters to send to the API endpoint for the create order operation typically these are written to a http.Request

func NewCreateOrderParams

func NewCreateOrderParams() *CreateOrderParams

NewCreateOrderParams creates a new CreateOrderParams object with the default values initialized.

func NewCreateOrderParamsWithContext

func NewCreateOrderParamsWithContext(ctx context.Context) *CreateOrderParams

NewCreateOrderParamsWithContext creates a new CreateOrderParams object with the default values initialized, and the ability to set a context for a request

func NewCreateOrderParamsWithHTTPClient

func NewCreateOrderParamsWithHTTPClient(client *http.Client) *CreateOrderParams

NewCreateOrderParamsWithHTTPClient creates a new CreateOrderParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewCreateOrderParamsWithTimeout

func NewCreateOrderParamsWithTimeout(timeout time.Duration) *CreateOrderParams

NewCreateOrderParamsWithTimeout creates a new CreateOrderParams object with the default values initialized, and the ability to set a timeout on a request

func (*CreateOrderParams) SetBody

SetBody adds the body to the create order params

func (*CreateOrderParams) SetContext

func (o *CreateOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the create order params

func (*CreateOrderParams) SetHTTPClient

func (o *CreateOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the create order params

func (*CreateOrderParams) SetTimeout

func (o *CreateOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the create order params

func (*CreateOrderParams) WithBody

WithBody adds the body to the create order params

func (*CreateOrderParams) WithContext

func (o *CreateOrderParams) WithContext(ctx context.Context) *CreateOrderParams

WithContext adds the context to the create order params

func (*CreateOrderParams) WithHTTPClient

func (o *CreateOrderParams) WithHTTPClient(client *http.Client) *CreateOrderParams

WithHTTPClient adds the HTTPClient to the create order params

func (*CreateOrderParams) WithTimeout

func (o *CreateOrderParams) WithTimeout(timeout time.Duration) *CreateOrderParams

WithTimeout adds the timeout to the create order params

func (*CreateOrderParams) WriteToRequest

func (o *CreateOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type CreateOrderReader

type CreateOrderReader struct {
	// contains filtered or unexported fields
}

CreateOrderReader is a Reader for the CreateOrder structure.

func (*CreateOrderReader) ReadResponse

func (o *CreateOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetOrderInfoOK

type GetOrderInfoOK struct {
	Payload *models.ProtoOrderInfo
}

GetOrderInfoOK handles this case with default header values.

A successful response.

func NewGetOrderInfoOK

func NewGetOrderInfoOK() *GetOrderInfoOK

NewGetOrderInfoOK creates a GetOrderInfoOK with default headers values

func (*GetOrderInfoOK) Error

func (o *GetOrderInfoOK) Error() string

func (*GetOrderInfoOK) GetPayload

func (o *GetOrderInfoOK) GetPayload() *models.ProtoOrderInfo

type GetOrderInfoParams

type GetOrderInfoParams struct {

	/*InternalID*/
	InternalID *string
	/*OrderID*/
	OrderID *string
	/*SellerAddress*/
	SellerAddress *string
	/*SellerName*/
	SellerName *string

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetOrderInfoParams contains all the parameters to send to the API endpoint for the get order info operation typically these are written to a http.Request

func NewGetOrderInfoParams

func NewGetOrderInfoParams() *GetOrderInfoParams

NewGetOrderInfoParams creates a new GetOrderInfoParams object with the default values initialized.

func NewGetOrderInfoParamsWithContext

func NewGetOrderInfoParamsWithContext(ctx context.Context) *GetOrderInfoParams

NewGetOrderInfoParamsWithContext creates a new GetOrderInfoParams object with the default values initialized, and the ability to set a context for a request

func NewGetOrderInfoParamsWithHTTPClient

func NewGetOrderInfoParamsWithHTTPClient(client *http.Client) *GetOrderInfoParams

NewGetOrderInfoParamsWithHTTPClient creates a new GetOrderInfoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetOrderInfoParamsWithTimeout

func NewGetOrderInfoParamsWithTimeout(timeout time.Duration) *GetOrderInfoParams

NewGetOrderInfoParamsWithTimeout creates a new GetOrderInfoParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetOrderInfoParams) SetContext

func (o *GetOrderInfoParams) SetContext(ctx context.Context)

SetContext adds the context to the get order info params

func (*GetOrderInfoParams) SetHTTPClient

func (o *GetOrderInfoParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get order info params

func (*GetOrderInfoParams) SetInternalID

func (o *GetOrderInfoParams) SetInternalID(internalID *string)

SetInternalID adds the internalId to the get order info params

func (*GetOrderInfoParams) SetOrderID

func (o *GetOrderInfoParams) SetOrderID(orderID *string)

SetOrderID adds the orderId to the get order info params

func (*GetOrderInfoParams) SetSellerAddress

func (o *GetOrderInfoParams) SetSellerAddress(sellerAddress *string)

SetSellerAddress adds the sellerAddress to the get order info params

func (*GetOrderInfoParams) SetSellerName

func (o *GetOrderInfoParams) SetSellerName(sellerName *string)

SetSellerName adds the sellerName to the get order info params

func (*GetOrderInfoParams) SetTimeout

func (o *GetOrderInfoParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get order info params

func (*GetOrderInfoParams) WithContext

WithContext adds the context to the get order info params

func (*GetOrderInfoParams) WithHTTPClient

func (o *GetOrderInfoParams) WithHTTPClient(client *http.Client) *GetOrderInfoParams

WithHTTPClient adds the HTTPClient to the get order info params

func (*GetOrderInfoParams) WithInternalID

func (o *GetOrderInfoParams) WithInternalID(internalID *string) *GetOrderInfoParams

WithInternalID adds the internalID to the get order info params

func (*GetOrderInfoParams) WithOrderID

func (o *GetOrderInfoParams) WithOrderID(orderID *string) *GetOrderInfoParams

WithOrderID adds the orderID to the get order info params

func (*GetOrderInfoParams) WithSellerAddress

func (o *GetOrderInfoParams) WithSellerAddress(sellerAddress *string) *GetOrderInfoParams

WithSellerAddress adds the sellerAddress to the get order info params

func (*GetOrderInfoParams) WithSellerName

func (o *GetOrderInfoParams) WithSellerName(sellerName *string) *GetOrderInfoParams

WithSellerName adds the sellerName to the get order info params

func (*GetOrderInfoParams) WithTimeout

func (o *GetOrderInfoParams) WithTimeout(timeout time.Duration) *GetOrderInfoParams

WithTimeout adds the timeout to the get order info params

func (*GetOrderInfoParams) WriteToRequest

func (o *GetOrderInfoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetOrderInfoReader

type GetOrderInfoReader struct {
	// contains filtered or unexported fields
}

GetOrderInfoReader is a Reader for the GetOrderInfo structure.

func (*GetOrderInfoReader) ReadResponse

func (o *GetOrderInfoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type TerminateOrderOK

type TerminateOrderOK struct {
	Payload *models.ProtoOrderID
}

TerminateOrderOK handles this case with default header values.

A successful response.

func NewTerminateOrderOK

func NewTerminateOrderOK() *TerminateOrderOK

NewTerminateOrderOK creates a TerminateOrderOK with default headers values

func (*TerminateOrderOK) Error

func (o *TerminateOrderOK) Error() string

func (*TerminateOrderOK) GetPayload

func (o *TerminateOrderOK) GetPayload() *models.ProtoOrderID

type TerminateOrderParams

type TerminateOrderParams struct {

	/*Body*/
	Body *models.ProtoTerminateOrderParam

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

TerminateOrderParams contains all the parameters to send to the API endpoint for the terminate order operation typically these are written to a http.Request

func NewTerminateOrderParams

func NewTerminateOrderParams() *TerminateOrderParams

NewTerminateOrderParams creates a new TerminateOrderParams object with the default values initialized.

func NewTerminateOrderParamsWithContext

func NewTerminateOrderParamsWithContext(ctx context.Context) *TerminateOrderParams

NewTerminateOrderParamsWithContext creates a new TerminateOrderParams object with the default values initialized, and the ability to set a context for a request

func NewTerminateOrderParamsWithHTTPClient

func NewTerminateOrderParamsWithHTTPClient(client *http.Client) *TerminateOrderParams

NewTerminateOrderParamsWithHTTPClient creates a new TerminateOrderParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewTerminateOrderParamsWithTimeout

func NewTerminateOrderParamsWithTimeout(timeout time.Duration) *TerminateOrderParams

NewTerminateOrderParamsWithTimeout creates a new TerminateOrderParams object with the default values initialized, and the ability to set a timeout on a request

func (*TerminateOrderParams) SetBody

SetBody adds the body to the terminate order params

func (*TerminateOrderParams) SetContext

func (o *TerminateOrderParams) SetContext(ctx context.Context)

SetContext adds the context to the terminate order params

func (*TerminateOrderParams) SetHTTPClient

func (o *TerminateOrderParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the terminate order params

func (*TerminateOrderParams) SetTimeout

func (o *TerminateOrderParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the terminate order params

func (*TerminateOrderParams) WithBody

WithBody adds the body to the terminate order params

func (*TerminateOrderParams) WithContext

WithContext adds the context to the terminate order params

func (*TerminateOrderParams) WithHTTPClient

func (o *TerminateOrderParams) WithHTTPClient(client *http.Client) *TerminateOrderParams

WithHTTPClient adds the HTTPClient to the terminate order params

func (*TerminateOrderParams) WithTimeout

func (o *TerminateOrderParams) WithTimeout(timeout time.Duration) *TerminateOrderParams

WithTimeout adds the timeout to the terminate order params

func (*TerminateOrderParams) WriteToRequest

func (o *TerminateOrderParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type TerminateOrderReader

type TerminateOrderReader struct {
	// contains filtered or unexported fields
}

TerminateOrderReader is a Reader for the TerminateOrder structure.

func (*TerminateOrderReader) ReadResponse

func (o *TerminateOrderReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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