Documentation
¶
Index ¶
- type AnswerPreCheckoutQueryBadRequest
- type AnswerPreCheckoutQueryEnhanceYourCalm
- type AnswerPreCheckoutQueryForbidden
- type AnswerPreCheckoutQueryInternalServerError
- type AnswerPreCheckoutQueryNotFound
- type AnswerPreCheckoutQueryOK
- type AnswerPreCheckoutQueryParams
- func NewAnswerPreCheckoutQueryParams() *AnswerPreCheckoutQueryParams
- func NewAnswerPreCheckoutQueryParamsWithContext(ctx context.Context) *AnswerPreCheckoutQueryParams
- func NewAnswerPreCheckoutQueryParamsWithHTTPClient(client *http.Client) *AnswerPreCheckoutQueryParams
- func NewAnswerPreCheckoutQueryParamsWithTimeout(timeout time.Duration) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) SetContext(ctx context.Context)
- func (o *AnswerPreCheckoutQueryParams) SetErrorMessage(errorMessage *string)
- func (o *AnswerPreCheckoutQueryParams) SetHTTPClient(client *http.Client)
- func (o *AnswerPreCheckoutQueryParams) SetOk(ok bool)
- func (o *AnswerPreCheckoutQueryParams) SetPreCheckoutQueryID(preCheckoutQueryID string)
- func (o *AnswerPreCheckoutQueryParams) SetTimeout(timeout time.Duration)
- func (o *AnswerPreCheckoutQueryParams) SetToken(token *string)
- func (o *AnswerPreCheckoutQueryParams) WithContext(ctx context.Context) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithErrorMessage(errorMessage *string) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithHTTPClient(client *http.Client) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithOk(ok bool) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithPreCheckoutQueryID(preCheckoutQueryID string) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithTimeout(timeout time.Duration) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WithToken(token *string) *AnswerPreCheckoutQueryParams
- func (o *AnswerPreCheckoutQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AnswerPreCheckoutQueryReader
- type AnswerPreCheckoutQueryUnauthorized
- type AnswerShippingQueryBadRequest
- type AnswerShippingQueryEnhanceYourCalm
- type AnswerShippingQueryForbidden
- type AnswerShippingQueryInternalServerError
- type AnswerShippingQueryNotFound
- type AnswerShippingQueryOK
- type AnswerShippingQueryParams
- func NewAnswerShippingQueryParams() *AnswerShippingQueryParams
- func NewAnswerShippingQueryParamsWithContext(ctx context.Context) *AnswerShippingQueryParams
- func NewAnswerShippingQueryParamsWithHTTPClient(client *http.Client) *AnswerShippingQueryParams
- func NewAnswerShippingQueryParamsWithTimeout(timeout time.Duration) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) SetBody(body *models.AnswerShippingQueryBody)
- func (o *AnswerShippingQueryParams) SetContext(ctx context.Context)
- func (o *AnswerShippingQueryParams) SetHTTPClient(client *http.Client)
- func (o *AnswerShippingQueryParams) SetTimeout(timeout time.Duration)
- func (o *AnswerShippingQueryParams) SetToken(token *string)
- func (o *AnswerShippingQueryParams) WithBody(body *models.AnswerShippingQueryBody) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) WithContext(ctx context.Context) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) WithHTTPClient(client *http.Client) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) WithTimeout(timeout time.Duration) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) WithToken(token *string) *AnswerShippingQueryParams
- func (o *AnswerShippingQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AnswerShippingQueryReader
- type AnswerShippingQueryUnauthorized
- type Client
- func (a *Client) AnswerPreCheckoutQuery(params *AnswerPreCheckoutQueryParams) (*AnswerPreCheckoutQueryOK, error)
- func (a *Client) AnswerShippingQuery(params *AnswerShippingQueryParams) (*AnswerShippingQueryOK, error)
- func (a *Client) SendInvoice(params *SendInvoiceParams) (*SendInvoiceOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type SendInvoiceBadRequest
- type SendInvoiceEnhanceYourCalm
- type SendInvoiceForbidden
- type SendInvoiceInternalServerError
- type SendInvoiceNotFound
- type SendInvoiceOK
- type SendInvoiceParams
- func (o *SendInvoiceParams) SetBody(body *models.SendInvoiceBody)
- func (o *SendInvoiceParams) SetContext(ctx context.Context)
- func (o *SendInvoiceParams) SetHTTPClient(client *http.Client)
- func (o *SendInvoiceParams) SetTimeout(timeout time.Duration)
- func (o *SendInvoiceParams) SetToken(token *string)
- func (o *SendInvoiceParams) WithBody(body *models.SendInvoiceBody) *SendInvoiceParams
- func (o *SendInvoiceParams) WithContext(ctx context.Context) *SendInvoiceParams
- func (o *SendInvoiceParams) WithHTTPClient(client *http.Client) *SendInvoiceParams
- func (o *SendInvoiceParams) WithTimeout(timeout time.Duration) *SendInvoiceParams
- func (o *SendInvoiceParams) WithToken(token *string) *SendInvoiceParams
- func (o *SendInvoiceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendInvoiceReader
- type SendInvoiceUnauthorized
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnswerPreCheckoutQueryBadRequest ¶
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 ¶
func (o *AnswerPreCheckoutQueryBadRequest) Error() string
type AnswerPreCheckoutQueryEnhanceYourCalm ¶
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 ¶
func (o *AnswerPreCheckoutQueryEnhanceYourCalm) Error() string
type AnswerPreCheckoutQueryForbidden ¶
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 ¶
func (o *AnswerPreCheckoutQueryForbidden) Error() string
type AnswerPreCheckoutQueryInternalServerError ¶
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 ¶
func (o *AnswerPreCheckoutQueryInternalServerError) Error() string
type AnswerPreCheckoutQueryNotFound ¶
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 ¶
func (o *AnswerPreCheckoutQueryNotFound) Error() string
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 ¶
func (o *AnswerPreCheckoutQueryParams) WithContext(ctx context.Context) *AnswerPreCheckoutQueryParams
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 ¶
func (o *AnswerPreCheckoutQueryParams) WithHTTPClient(client *http.Client) *AnswerPreCheckoutQueryParams
WithHTTPClient adds the HTTPClient to the answer pre checkout query params
func (*AnswerPreCheckoutQueryParams) WithOk ¶
func (o *AnswerPreCheckoutQueryParams) WithOk(ok bool) *AnswerPreCheckoutQueryParams
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 ¶
func (o *AnswerPreCheckoutQueryParams) WithTimeout(timeout time.Duration) *AnswerPreCheckoutQueryParams
WithTimeout adds the timeout to the answer pre checkout query params
func (*AnswerPreCheckoutQueryParams) WithToken ¶
func (o *AnswerPreCheckoutQueryParams) WithToken(token *string) *AnswerPreCheckoutQueryParams
WithToken adds the token to the answer pre checkout query params
func (*AnswerPreCheckoutQueryParams) WriteToRequest ¶
func (o *AnswerPreCheckoutQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *AnswerPreCheckoutQueryUnauthorized) Error() string
type AnswerShippingQueryBadRequest ¶
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 ¶
func (o *AnswerShippingQueryBadRequest) Error() string
type AnswerShippingQueryEnhanceYourCalm ¶
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 ¶
func (o *AnswerShippingQueryEnhanceYourCalm) Error() string
type AnswerShippingQueryForbidden ¶
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 ¶
func (o *AnswerShippingQueryForbidden) Error() string
type AnswerShippingQueryInternalServerError ¶
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 ¶
func (o *AnswerShippingQueryInternalServerError) Error() string
type AnswerShippingQueryNotFound ¶
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 ¶
func (o *AnswerShippingQueryNotFound) Error() string
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 ¶
func (o *AnswerShippingQueryParams) SetBody(body *models.AnswerShippingQueryBody)
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 ¶
func (o *AnswerShippingQueryParams) WithBody(body *models.AnswerShippingQueryBody) *AnswerShippingQueryParams
WithBody adds the body to the answer shipping query params
func (*AnswerShippingQueryParams) WithContext ¶
func (o *AnswerShippingQueryParams) WithContext(ctx context.Context) *AnswerShippingQueryParams
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 ¶
func (o *AnswerShippingQueryParams) WithTimeout(timeout time.Duration) *AnswerShippingQueryParams
WithTimeout adds the timeout to the answer shipping query params
func (*AnswerShippingQueryParams) WithToken ¶
func (o *AnswerShippingQueryParams) WithToken(token *string) *AnswerShippingQueryParams
WithToken adds the token to the answer shipping query params
func (*AnswerShippingQueryParams) WriteToRequest ¶
func (o *AnswerShippingQueryParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 {
}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 ¶
func (o *AnswerShippingQueryUnauthorized) Error() string
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 ¶
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 ¶
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 ¶
func (o *SendInvoiceEnhanceYourCalm) Error() string
type SendInvoiceForbidden ¶
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 ¶
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 ¶
func (o *SendInvoiceInternalServerError) Error() string
type SendInvoiceNotFound ¶
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 ¶
func (o *SendInvoiceParams) WithBody(body *models.SendInvoiceBody) *SendInvoiceParams
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 {
}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