payments

package
v3.3.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2017 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnswerPreCheckoutQueryBadRequest

type AnswerPreCheckoutQueryBadRequest struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryBadRequest handles this case with default header values.

Bad Request

func NewAnswerPreCheckoutQueryBadRequest

func NewAnswerPreCheckoutQueryBadRequest() *AnswerPreCheckoutQueryBadRequest

NewAnswerPreCheckoutQueryBadRequest creates a AnswerPreCheckoutQueryBadRequest with default headers values

func (*AnswerPreCheckoutQueryBadRequest) Error

type AnswerPreCheckoutQueryEnhanceYourCalm

type AnswerPreCheckoutQueryEnhanceYourCalm struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryEnhanceYourCalm handles this case with default header values.

Flood

func NewAnswerPreCheckoutQueryEnhanceYourCalm

func NewAnswerPreCheckoutQueryEnhanceYourCalm() *AnswerPreCheckoutQueryEnhanceYourCalm

NewAnswerPreCheckoutQueryEnhanceYourCalm creates a AnswerPreCheckoutQueryEnhanceYourCalm with default headers values

func (*AnswerPreCheckoutQueryEnhanceYourCalm) Error

type AnswerPreCheckoutQueryForbidden

type AnswerPreCheckoutQueryForbidden struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryForbidden handles this case with default header values.

Forbidden

func NewAnswerPreCheckoutQueryForbidden

func NewAnswerPreCheckoutQueryForbidden() *AnswerPreCheckoutQueryForbidden

NewAnswerPreCheckoutQueryForbidden creates a AnswerPreCheckoutQueryForbidden with default headers values

func (*AnswerPreCheckoutQueryForbidden) Error

type AnswerPreCheckoutQueryInternalServerError

type AnswerPreCheckoutQueryInternalServerError struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryInternalServerError handles this case with default header values.

Internal

func NewAnswerPreCheckoutQueryInternalServerError

func NewAnswerPreCheckoutQueryInternalServerError() *AnswerPreCheckoutQueryInternalServerError

NewAnswerPreCheckoutQueryInternalServerError creates a AnswerPreCheckoutQueryInternalServerError with default headers values

func (*AnswerPreCheckoutQueryInternalServerError) Error

type AnswerPreCheckoutQueryNotFound

type AnswerPreCheckoutQueryNotFound struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryNotFound handles this case with default header values.

Not Found

func NewAnswerPreCheckoutQueryNotFound

func NewAnswerPreCheckoutQueryNotFound() *AnswerPreCheckoutQueryNotFound

NewAnswerPreCheckoutQueryNotFound creates a AnswerPreCheckoutQueryNotFound with default headers values

func (*AnswerPreCheckoutQueryNotFound) Error

type AnswerPreCheckoutQueryOK

type AnswerPreCheckoutQueryOK struct {
	Payload *models.ResponseBool
}

AnswerPreCheckoutQueryOK handles this case with default header values.

AnswerPreCheckoutQueryOK answer pre checkout query o k

func NewAnswerPreCheckoutQueryOK

func NewAnswerPreCheckoutQueryOK() *AnswerPreCheckoutQueryOK

NewAnswerPreCheckoutQueryOK creates a AnswerPreCheckoutQueryOK with default headers values

func (*AnswerPreCheckoutQueryOK) Error

func (o *AnswerPreCheckoutQueryOK) Error() string

type AnswerPreCheckoutQueryParams

type AnswerPreCheckoutQueryParams struct {

	/*ErrorMessage*/
	ErrorMessage *string
	/*Ok*/
	Ok bool
	/*PreCheckoutQueryID*/
	PreCheckoutQueryID string
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

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

AnswerPreCheckoutQueryParams contains all the parameters to send to the API endpoint for the answer pre checkout query operation typically these are written to a http.Request

func NewAnswerPreCheckoutQueryParams

func NewAnswerPreCheckoutQueryParams() *AnswerPreCheckoutQueryParams

NewAnswerPreCheckoutQueryParams creates a new AnswerPreCheckoutQueryParams object with the default values initialized.

func NewAnswerPreCheckoutQueryParamsWithContext

func NewAnswerPreCheckoutQueryParamsWithContext(ctx context.Context) *AnswerPreCheckoutQueryParams

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

func NewAnswerPreCheckoutQueryParamsWithHTTPClient

func NewAnswerPreCheckoutQueryParamsWithHTTPClient(client *http.Client) *AnswerPreCheckoutQueryParams

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

func NewAnswerPreCheckoutQueryParamsWithTimeout

func NewAnswerPreCheckoutQueryParamsWithTimeout(timeout time.Duration) *AnswerPreCheckoutQueryParams

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

func (*AnswerPreCheckoutQueryParams) SetContext

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

SetContext adds the context to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetErrorMessage

func (o *AnswerPreCheckoutQueryParams) SetErrorMessage(errorMessage *string)

SetErrorMessage adds the errorMessage to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetOk

func (o *AnswerPreCheckoutQueryParams) SetOk(ok bool)

SetOk adds the ok to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetPreCheckoutQueryID

func (o *AnswerPreCheckoutQueryParams) SetPreCheckoutQueryID(preCheckoutQueryID string)

SetPreCheckoutQueryID adds the preCheckoutQueryId to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetTimeout

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

SetTimeout adds the timeout to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) SetToken

func (o *AnswerPreCheckoutQueryParams) SetToken(token *string)

SetToken adds the token to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithContext

WithContext adds the context to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithErrorMessage

func (o *AnswerPreCheckoutQueryParams) WithErrorMessage(errorMessage *string) *AnswerPreCheckoutQueryParams

WithErrorMessage adds the errorMessage to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithOk

WithOk adds the ok to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithPreCheckoutQueryID

func (o *AnswerPreCheckoutQueryParams) WithPreCheckoutQueryID(preCheckoutQueryID string) *AnswerPreCheckoutQueryParams

WithPreCheckoutQueryID adds the preCheckoutQueryID to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithTimeout

WithTimeout adds the timeout to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WithToken

WithToken adds the token to the answer pre checkout query params

func (*AnswerPreCheckoutQueryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AnswerPreCheckoutQueryReader

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

AnswerPreCheckoutQueryReader is a Reader for the AnswerPreCheckoutQuery structure.

func (*AnswerPreCheckoutQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AnswerPreCheckoutQueryUnauthorized

type AnswerPreCheckoutQueryUnauthorized struct {
	Payload *models.Error
}

AnswerPreCheckoutQueryUnauthorized handles this case with default header values.

Unauthorized

func NewAnswerPreCheckoutQueryUnauthorized

func NewAnswerPreCheckoutQueryUnauthorized() *AnswerPreCheckoutQueryUnauthorized

NewAnswerPreCheckoutQueryUnauthorized creates a AnswerPreCheckoutQueryUnauthorized with default headers values

func (*AnswerPreCheckoutQueryUnauthorized) Error

type AnswerShippingQueryBadRequest

type AnswerShippingQueryBadRequest struct {
	Payload *models.Error
}

AnswerShippingQueryBadRequest handles this case with default header values.

Bad Request

func NewAnswerShippingQueryBadRequest

func NewAnswerShippingQueryBadRequest() *AnswerShippingQueryBadRequest

NewAnswerShippingQueryBadRequest creates a AnswerShippingQueryBadRequest with default headers values

func (*AnswerShippingQueryBadRequest) Error

type AnswerShippingQueryEnhanceYourCalm

type AnswerShippingQueryEnhanceYourCalm struct {
	Payload *models.Error
}

AnswerShippingQueryEnhanceYourCalm handles this case with default header values.

Flood

func NewAnswerShippingQueryEnhanceYourCalm

func NewAnswerShippingQueryEnhanceYourCalm() *AnswerShippingQueryEnhanceYourCalm

NewAnswerShippingQueryEnhanceYourCalm creates a AnswerShippingQueryEnhanceYourCalm with default headers values

func (*AnswerShippingQueryEnhanceYourCalm) Error

type AnswerShippingQueryForbidden

type AnswerShippingQueryForbidden struct {
	Payload *models.Error
}

AnswerShippingQueryForbidden handles this case with default header values.

Forbidden

func NewAnswerShippingQueryForbidden

func NewAnswerShippingQueryForbidden() *AnswerShippingQueryForbidden

NewAnswerShippingQueryForbidden creates a AnswerShippingQueryForbidden with default headers values

func (*AnswerShippingQueryForbidden) Error

type AnswerShippingQueryInternalServerError

type AnswerShippingQueryInternalServerError struct {
	Payload *models.Error
}

AnswerShippingQueryInternalServerError handles this case with default header values.

Internal

func NewAnswerShippingQueryInternalServerError

func NewAnswerShippingQueryInternalServerError() *AnswerShippingQueryInternalServerError

NewAnswerShippingQueryInternalServerError creates a AnswerShippingQueryInternalServerError with default headers values

func (*AnswerShippingQueryInternalServerError) Error

type AnswerShippingQueryNotFound

type AnswerShippingQueryNotFound struct {
	Payload *models.Error
}

AnswerShippingQueryNotFound handles this case with default header values.

Not Found

func NewAnswerShippingQueryNotFound

func NewAnswerShippingQueryNotFound() *AnswerShippingQueryNotFound

NewAnswerShippingQueryNotFound creates a AnswerShippingQueryNotFound with default headers values

func (*AnswerShippingQueryNotFound) Error

type AnswerShippingQueryOK

type AnswerShippingQueryOK struct {
	Payload *models.ResponseMessage
}

AnswerShippingQueryOK handles this case with default header values.

AnswerShippingQueryOK answer shipping query o k

func NewAnswerShippingQueryOK

func NewAnswerShippingQueryOK() *AnswerShippingQueryOK

NewAnswerShippingQueryOK creates a AnswerShippingQueryOK with default headers values

func (*AnswerShippingQueryOK) Error

func (o *AnswerShippingQueryOK) Error() string

type AnswerShippingQueryParams

type AnswerShippingQueryParams struct {

	/*Body*/
	Body *models.AnswerShippingQueryBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

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

AnswerShippingQueryParams contains all the parameters to send to the API endpoint for the answer shipping query operation typically these are written to a http.Request

func NewAnswerShippingQueryParams

func NewAnswerShippingQueryParams() *AnswerShippingQueryParams

NewAnswerShippingQueryParams creates a new AnswerShippingQueryParams object with the default values initialized.

func NewAnswerShippingQueryParamsWithContext

func NewAnswerShippingQueryParamsWithContext(ctx context.Context) *AnswerShippingQueryParams

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

func NewAnswerShippingQueryParamsWithHTTPClient

func NewAnswerShippingQueryParamsWithHTTPClient(client *http.Client) *AnswerShippingQueryParams

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

func NewAnswerShippingQueryParamsWithTimeout

func NewAnswerShippingQueryParamsWithTimeout(timeout time.Duration) *AnswerShippingQueryParams

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

func (*AnswerShippingQueryParams) SetBody

SetBody adds the body to the answer shipping query params

func (*AnswerShippingQueryParams) SetContext

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

SetContext adds the context to the answer shipping query params

func (*AnswerShippingQueryParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the answer shipping query params

func (*AnswerShippingQueryParams) SetTimeout

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

SetTimeout adds the timeout to the answer shipping query params

func (*AnswerShippingQueryParams) SetToken

func (o *AnswerShippingQueryParams) SetToken(token *string)

SetToken adds the token to the answer shipping query params

func (*AnswerShippingQueryParams) WithBody

WithBody adds the body to the answer shipping query params

func (*AnswerShippingQueryParams) WithContext

WithContext adds the context to the answer shipping query params

func (*AnswerShippingQueryParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the answer shipping query params

func (*AnswerShippingQueryParams) WithTimeout

WithTimeout adds the timeout to the answer shipping query params

func (*AnswerShippingQueryParams) WithToken

WithToken adds the token to the answer shipping query params

func (*AnswerShippingQueryParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AnswerShippingQueryReader

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

AnswerShippingQueryReader is a Reader for the AnswerShippingQuery structure.

func (*AnswerShippingQueryReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AnswerShippingQueryUnauthorized

type AnswerShippingQueryUnauthorized struct {
	Payload *models.Error
}

AnswerShippingQueryUnauthorized handles this case with default header values.

Unauthorized

func NewAnswerShippingQueryUnauthorized

func NewAnswerShippingQueryUnauthorized() *AnswerShippingQueryUnauthorized

NewAnswerShippingQueryUnauthorized creates a AnswerShippingQueryUnauthorized with default headers values

func (*AnswerShippingQueryUnauthorized) Error

type Client

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

Client for payments API

func New

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

New creates a new payments API client.

func (*Client) AnswerPreCheckoutQuery

func (a *Client) AnswerPreCheckoutQuery(params *AnswerPreCheckoutQueryParams) (*AnswerPreCheckoutQueryOK, error)

AnswerPreCheckoutQuery answer pre checkout query API

func (*Client) AnswerShippingQuery

func (a *Client) AnswerShippingQuery(params *AnswerShippingQueryParams) (*AnswerShippingQueryOK, error)

AnswerShippingQuery answer shipping query API

func (*Client) SendInvoice

func (a *Client) SendInvoice(params *SendInvoiceParams) (*SendInvoiceOK, error)

SendInvoice send invoice API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type SendInvoiceBadRequest

type SendInvoiceBadRequest struct {
	Payload *models.Error
}

SendInvoiceBadRequest handles this case with default header values.

Bad Request

func NewSendInvoiceBadRequest

func NewSendInvoiceBadRequest() *SendInvoiceBadRequest

NewSendInvoiceBadRequest creates a SendInvoiceBadRequest with default headers values

func (*SendInvoiceBadRequest) Error

func (o *SendInvoiceBadRequest) Error() string

type SendInvoiceEnhanceYourCalm

type SendInvoiceEnhanceYourCalm struct {
	Payload *models.Error
}

SendInvoiceEnhanceYourCalm handles this case with default header values.

Flood

func NewSendInvoiceEnhanceYourCalm

func NewSendInvoiceEnhanceYourCalm() *SendInvoiceEnhanceYourCalm

NewSendInvoiceEnhanceYourCalm creates a SendInvoiceEnhanceYourCalm with default headers values

func (*SendInvoiceEnhanceYourCalm) Error

type SendInvoiceForbidden

type SendInvoiceForbidden struct {
	Payload *models.Error
}

SendInvoiceForbidden handles this case with default header values.

Forbidden

func NewSendInvoiceForbidden

func NewSendInvoiceForbidden() *SendInvoiceForbidden

NewSendInvoiceForbidden creates a SendInvoiceForbidden with default headers values

func (*SendInvoiceForbidden) Error

func (o *SendInvoiceForbidden) Error() string

type SendInvoiceInternalServerError

type SendInvoiceInternalServerError struct {
	Payload *models.Error
}

SendInvoiceInternalServerError handles this case with default header values.

Internal

func NewSendInvoiceInternalServerError

func NewSendInvoiceInternalServerError() *SendInvoiceInternalServerError

NewSendInvoiceInternalServerError creates a SendInvoiceInternalServerError with default headers values

func (*SendInvoiceInternalServerError) Error

type SendInvoiceNotFound

type SendInvoiceNotFound struct {
	Payload *models.Error
}

SendInvoiceNotFound handles this case with default header values.

Not Found

func NewSendInvoiceNotFound

func NewSendInvoiceNotFound() *SendInvoiceNotFound

NewSendInvoiceNotFound creates a SendInvoiceNotFound with default headers values

func (*SendInvoiceNotFound) Error

func (o *SendInvoiceNotFound) Error() string

type SendInvoiceOK

type SendInvoiceOK struct {
	Payload *models.ResponseMessage
}

SendInvoiceOK handles this case with default header values.

SendInvoiceOK send invoice o k

func NewSendInvoiceOK

func NewSendInvoiceOK() *SendInvoiceOK

NewSendInvoiceOK creates a SendInvoiceOK with default headers values

func (*SendInvoiceOK) Error

func (o *SendInvoiceOK) Error() string

type SendInvoiceParams

type SendInvoiceParams struct {

	/*Body*/
	Body *models.SendInvoiceBody
	/*Token
	  bot's token to authorize the request

	*/
	Token *string

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

SendInvoiceParams contains all the parameters to send to the API endpoint for the send invoice operation typically these are written to a http.Request

func NewSendInvoiceParams

func NewSendInvoiceParams() *SendInvoiceParams

NewSendInvoiceParams creates a new SendInvoiceParams object with the default values initialized.

func NewSendInvoiceParamsWithContext

func NewSendInvoiceParamsWithContext(ctx context.Context) *SendInvoiceParams

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

func NewSendInvoiceParamsWithHTTPClient

func NewSendInvoiceParamsWithHTTPClient(client *http.Client) *SendInvoiceParams

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

func NewSendInvoiceParamsWithTimeout

func NewSendInvoiceParamsWithTimeout(timeout time.Duration) *SendInvoiceParams

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

func (*SendInvoiceParams) SetBody

func (o *SendInvoiceParams) SetBody(body *models.SendInvoiceBody)

SetBody adds the body to the send invoice params

func (*SendInvoiceParams) SetContext

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

SetContext adds the context to the send invoice params

func (*SendInvoiceParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the send invoice params

func (*SendInvoiceParams) SetTimeout

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

SetTimeout adds the timeout to the send invoice params

func (*SendInvoiceParams) SetToken

func (o *SendInvoiceParams) SetToken(token *string)

SetToken adds the token to the send invoice params

func (*SendInvoiceParams) WithBody

WithBody adds the body to the send invoice params

func (*SendInvoiceParams) WithContext

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

WithContext adds the context to the send invoice params

func (*SendInvoiceParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the send invoice params

func (*SendInvoiceParams) WithTimeout

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

WithTimeout adds the timeout to the send invoice params

func (*SendInvoiceParams) WithToken

func (o *SendInvoiceParams) WithToken(token *string) *SendInvoiceParams

WithToken adds the token to the send invoice params

func (*SendInvoiceParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type SendInvoiceReader

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

SendInvoiceReader is a Reader for the SendInvoice structure.

func (*SendInvoiceReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SendInvoiceUnauthorized

type SendInvoiceUnauthorized struct {
	Payload *models.Error
}

SendInvoiceUnauthorized handles this case with default header values.

Unauthorized

func NewSendInvoiceUnauthorized

func NewSendInvoiceUnauthorized() *SendInvoiceUnauthorized

NewSendInvoiceUnauthorized creates a SendInvoiceUnauthorized with default headers values

func (*SendInvoiceUnauthorized) Error

func (o *SendInvoiceUnauthorized) Error() string

Jump to

Keyboard shortcuts

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