terminal

package
v0.0.0-...-dc3cc4a Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2021 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 CancelTerminalCheckoutOK

type CancelTerminalCheckoutOK struct {
	Payload *models.CancelTerminalCheckoutResponse
}
CancelTerminalCheckoutOK describes a response with status code 200, with default header values.

Success

func NewCancelTerminalCheckoutOK

func NewCancelTerminalCheckoutOK() *CancelTerminalCheckoutOK

NewCancelTerminalCheckoutOK creates a CancelTerminalCheckoutOK with default headers values

func (*CancelTerminalCheckoutOK) Error

func (o *CancelTerminalCheckoutOK) Error() string

func (*CancelTerminalCheckoutOK) GetPayload

type CancelTerminalCheckoutParams

type CancelTerminalCheckoutParams struct {

	/* CheckoutID.

	   Unique ID for the desired `TerminalCheckout`
	*/
	CheckoutID string

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

CancelTerminalCheckoutParams contains all the parameters to send to the API endpoint

for the cancel terminal checkout operation.

Typically these are written to a http.Request.

func NewCancelTerminalCheckoutParams

func NewCancelTerminalCheckoutParams() *CancelTerminalCheckoutParams

NewCancelTerminalCheckoutParams creates a new CancelTerminalCheckoutParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCancelTerminalCheckoutParamsWithContext

func NewCancelTerminalCheckoutParamsWithContext(ctx context.Context) *CancelTerminalCheckoutParams

NewCancelTerminalCheckoutParamsWithContext creates a new CancelTerminalCheckoutParams object with the ability to set a context for a request.

func NewCancelTerminalCheckoutParamsWithHTTPClient

func NewCancelTerminalCheckoutParamsWithHTTPClient(client *http.Client) *CancelTerminalCheckoutParams

NewCancelTerminalCheckoutParamsWithHTTPClient creates a new CancelTerminalCheckoutParams object with the ability to set a custom HTTPClient for a request.

func NewCancelTerminalCheckoutParamsWithTimeout

func NewCancelTerminalCheckoutParamsWithTimeout(timeout time.Duration) *CancelTerminalCheckoutParams

NewCancelTerminalCheckoutParamsWithTimeout creates a new CancelTerminalCheckoutParams object with the ability to set a timeout on a request.

func (*CancelTerminalCheckoutParams) SetCheckoutID

func (o *CancelTerminalCheckoutParams) SetCheckoutID(checkoutID string)

SetCheckoutID adds the checkoutId to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) SetContext

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

SetContext adds the context to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) SetDefaults

func (o *CancelTerminalCheckoutParams) SetDefaults()

SetDefaults hydrates default values in the cancel terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*CancelTerminalCheckoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) SetTimeout

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

SetTimeout adds the timeout to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) WithCheckoutID

func (o *CancelTerminalCheckoutParams) WithCheckoutID(checkoutID string) *CancelTerminalCheckoutParams

WithCheckoutID adds the checkoutID to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) WithContext

WithContext adds the context to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) WithDefaults

WithDefaults hydrates default values in the cancel terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*CancelTerminalCheckoutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) WithTimeout

WithTimeout adds the timeout to the cancel terminal checkout params

func (*CancelTerminalCheckoutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CancelTerminalCheckoutReader

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

CancelTerminalCheckoutReader is a Reader for the CancelTerminalCheckout structure.

func (*CancelTerminalCheckoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CancelTerminalRefundOK

type CancelTerminalRefundOK struct {
	Payload *models.CancelTerminalRefundResponse
}
CancelTerminalRefundOK describes a response with status code 200, with default header values.

Success

func NewCancelTerminalRefundOK

func NewCancelTerminalRefundOK() *CancelTerminalRefundOK

NewCancelTerminalRefundOK creates a CancelTerminalRefundOK with default headers values

func (*CancelTerminalRefundOK) Error

func (o *CancelTerminalRefundOK) Error() string

func (*CancelTerminalRefundOK) GetPayload

type CancelTerminalRefundParams

type CancelTerminalRefundParams struct {

	/* TerminalRefundID.

	   Unique ID for the desired `TerminalRefund`
	*/
	TerminalRefundID string

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

CancelTerminalRefundParams contains all the parameters to send to the API endpoint

for the cancel terminal refund operation.

Typically these are written to a http.Request.

func NewCancelTerminalRefundParams

func NewCancelTerminalRefundParams() *CancelTerminalRefundParams

NewCancelTerminalRefundParams creates a new CancelTerminalRefundParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCancelTerminalRefundParamsWithContext

func NewCancelTerminalRefundParamsWithContext(ctx context.Context) *CancelTerminalRefundParams

NewCancelTerminalRefundParamsWithContext creates a new CancelTerminalRefundParams object with the ability to set a context for a request.

func NewCancelTerminalRefundParamsWithHTTPClient

func NewCancelTerminalRefundParamsWithHTTPClient(client *http.Client) *CancelTerminalRefundParams

NewCancelTerminalRefundParamsWithHTTPClient creates a new CancelTerminalRefundParams object with the ability to set a custom HTTPClient for a request.

func NewCancelTerminalRefundParamsWithTimeout

func NewCancelTerminalRefundParamsWithTimeout(timeout time.Duration) *CancelTerminalRefundParams

NewCancelTerminalRefundParamsWithTimeout creates a new CancelTerminalRefundParams object with the ability to set a timeout on a request.

func (*CancelTerminalRefundParams) SetContext

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

SetContext adds the context to the cancel terminal refund params

func (*CancelTerminalRefundParams) SetDefaults

func (o *CancelTerminalRefundParams) SetDefaults()

SetDefaults hydrates default values in the cancel terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*CancelTerminalRefundParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the cancel terminal refund params

func (*CancelTerminalRefundParams) SetTerminalRefundID

func (o *CancelTerminalRefundParams) SetTerminalRefundID(terminalRefundID string)

SetTerminalRefundID adds the terminalRefundId to the cancel terminal refund params

func (*CancelTerminalRefundParams) SetTimeout

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

SetTimeout adds the timeout to the cancel terminal refund params

func (*CancelTerminalRefundParams) WithContext

WithContext adds the context to the cancel terminal refund params

func (*CancelTerminalRefundParams) WithDefaults

WithDefaults hydrates default values in the cancel terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*CancelTerminalRefundParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the cancel terminal refund params

func (*CancelTerminalRefundParams) WithTerminalRefundID

func (o *CancelTerminalRefundParams) WithTerminalRefundID(terminalRefundID string) *CancelTerminalRefundParams

WithTerminalRefundID adds the terminalRefundID to the cancel terminal refund params

func (*CancelTerminalRefundParams) WithTimeout

WithTimeout adds the timeout to the cancel terminal refund params

func (*CancelTerminalRefundParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CancelTerminalRefundReader

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

CancelTerminalRefundReader is a Reader for the CancelTerminalRefund structure.

func (*CancelTerminalRefundReader) ReadResponse

func (o *CancelTerminalRefundReader) 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 terminal API

func (*Client) CancelTerminalCheckout

func (a *Client) CancelTerminalCheckout(params *CancelTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelTerminalCheckoutOK, error)

CancelTerminalCheckout cancels terminal checkout

Cancels a Terminal checkout request if the status of the request permits it.

func (*Client) CancelTerminalRefund

func (a *Client) CancelTerminalRefund(params *CancelTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelTerminalRefundOK, error)

CancelTerminalRefund cancels terminal refund

Cancels an Interac terminal refund request by refund request ID if the status of the request permits it.

func (*Client) CreateTerminalCheckout

func (a *Client) CreateTerminalCheckout(params *CreateTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminalCheckoutOK, error)

CreateTerminalCheckout creates terminal checkout

Creates a new Terminal checkout request and sends it to the specified device to take a payment for the requested amount.

func (*Client) CreateTerminalRefund

func (a *Client) CreateTerminalRefund(params *CreateTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminalRefundOK, error)

CreateTerminalRefund creates terminal refund

Creates a request to refund an Interac payment completed on a Square Terminal.

func (*Client) GetTerminalCheckout

func (a *Client) GetTerminalCheckout(params *GetTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTerminalCheckoutOK, error)

GetTerminalCheckout gets terminal checkout

Retrieves a Terminal checkout request by checkout_id.

func (*Client) GetTerminalRefund

func (a *Client) GetTerminalRefund(params *GetTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTerminalRefundOK, error)

GetTerminalRefund gets terminal refund

Retrieves an Interac terminal refund object by ID.

func (*Client) SearchTerminalCheckouts

func (a *Client) SearchTerminalCheckouts(params *SearchTerminalCheckoutsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTerminalCheckoutsOK, error)

SearchTerminalCheckouts searches terminal checkouts

Retrieves a filtered list of Terminal checkout requests created by the account making the request.

func (*Client) SearchTerminalRefunds

func (a *Client) SearchTerminalRefunds(params *SearchTerminalRefundsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTerminalRefundsOK, error)

SearchTerminalRefunds searches terminal refunds

Retrieves a filtered list of Terminal Interac refund requests created by the seller making the request.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CancelTerminalCheckout(params *CancelTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelTerminalCheckoutOK, error)

	CancelTerminalRefund(params *CancelTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CancelTerminalRefundOK, error)

	CreateTerminalCheckout(params *CreateTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminalCheckoutOK, error)

	CreateTerminalRefund(params *CreateTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTerminalRefundOK, error)

	GetTerminalCheckout(params *GetTerminalCheckoutParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTerminalCheckoutOK, error)

	GetTerminalRefund(params *GetTerminalRefundParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTerminalRefundOK, error)

	SearchTerminalCheckouts(params *SearchTerminalCheckoutsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTerminalCheckoutsOK, error)

	SearchTerminalRefunds(params *SearchTerminalRefundsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SearchTerminalRefundsOK, 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 terminal API client.

type CreateTerminalCheckoutOK

type CreateTerminalCheckoutOK struct {
	Payload *models.CreateTerminalCheckoutResponse
}
CreateTerminalCheckoutOK describes a response with status code 200, with default header values.

Success

func NewCreateTerminalCheckoutOK

func NewCreateTerminalCheckoutOK() *CreateTerminalCheckoutOK

NewCreateTerminalCheckoutOK creates a CreateTerminalCheckoutOK with default headers values

func (*CreateTerminalCheckoutOK) Error

func (o *CreateTerminalCheckoutOK) Error() string

func (*CreateTerminalCheckoutOK) GetPayload

type CreateTerminalCheckoutParams

type CreateTerminalCheckoutParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CreateTerminalCheckoutRequest

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

CreateTerminalCheckoutParams contains all the parameters to send to the API endpoint

for the create terminal checkout operation.

Typically these are written to a http.Request.

func NewCreateTerminalCheckoutParams

func NewCreateTerminalCheckoutParams() *CreateTerminalCheckoutParams

NewCreateTerminalCheckoutParams creates a new CreateTerminalCheckoutParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateTerminalCheckoutParamsWithContext

func NewCreateTerminalCheckoutParamsWithContext(ctx context.Context) *CreateTerminalCheckoutParams

NewCreateTerminalCheckoutParamsWithContext creates a new CreateTerminalCheckoutParams object with the ability to set a context for a request.

func NewCreateTerminalCheckoutParamsWithHTTPClient

func NewCreateTerminalCheckoutParamsWithHTTPClient(client *http.Client) *CreateTerminalCheckoutParams

NewCreateTerminalCheckoutParamsWithHTTPClient creates a new CreateTerminalCheckoutParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTerminalCheckoutParamsWithTimeout

func NewCreateTerminalCheckoutParamsWithTimeout(timeout time.Duration) *CreateTerminalCheckoutParams

NewCreateTerminalCheckoutParamsWithTimeout creates a new CreateTerminalCheckoutParams object with the ability to set a timeout on a request.

func (*CreateTerminalCheckoutParams) SetBody

SetBody adds the body to the create terminal checkout params

func (*CreateTerminalCheckoutParams) SetContext

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

SetContext adds the context to the create terminal checkout params

func (*CreateTerminalCheckoutParams) SetDefaults

func (o *CreateTerminalCheckoutParams) SetDefaults()

SetDefaults hydrates default values in the create terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTerminalCheckoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create terminal checkout params

func (*CreateTerminalCheckoutParams) SetTimeout

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

SetTimeout adds the timeout to the create terminal checkout params

func (*CreateTerminalCheckoutParams) WithBody

WithBody adds the body to the create terminal checkout params

func (*CreateTerminalCheckoutParams) WithContext

WithContext adds the context to the create terminal checkout params

func (*CreateTerminalCheckoutParams) WithDefaults

WithDefaults hydrates default values in the create terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTerminalCheckoutParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create terminal checkout params

func (*CreateTerminalCheckoutParams) WithTimeout

WithTimeout adds the timeout to the create terminal checkout params

func (*CreateTerminalCheckoutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTerminalCheckoutReader

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

CreateTerminalCheckoutReader is a Reader for the CreateTerminalCheckout structure.

func (*CreateTerminalCheckoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTerminalRefundOK

type CreateTerminalRefundOK struct {
	Payload *models.CreateTerminalRefundResponse
}
CreateTerminalRefundOK describes a response with status code 200, with default header values.

Success

func NewCreateTerminalRefundOK

func NewCreateTerminalRefundOK() *CreateTerminalRefundOK

NewCreateTerminalRefundOK creates a CreateTerminalRefundOK with default headers values

func (*CreateTerminalRefundOK) Error

func (o *CreateTerminalRefundOK) Error() string

func (*CreateTerminalRefundOK) GetPayload

type CreateTerminalRefundParams

type CreateTerminalRefundParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.CreateTerminalRefundRequest

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

CreateTerminalRefundParams contains all the parameters to send to the API endpoint

for the create terminal refund operation.

Typically these are written to a http.Request.

func NewCreateTerminalRefundParams

func NewCreateTerminalRefundParams() *CreateTerminalRefundParams

NewCreateTerminalRefundParams creates a new CreateTerminalRefundParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewCreateTerminalRefundParamsWithContext

func NewCreateTerminalRefundParamsWithContext(ctx context.Context) *CreateTerminalRefundParams

NewCreateTerminalRefundParamsWithContext creates a new CreateTerminalRefundParams object with the ability to set a context for a request.

func NewCreateTerminalRefundParamsWithHTTPClient

func NewCreateTerminalRefundParamsWithHTTPClient(client *http.Client) *CreateTerminalRefundParams

NewCreateTerminalRefundParamsWithHTTPClient creates a new CreateTerminalRefundParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTerminalRefundParamsWithTimeout

func NewCreateTerminalRefundParamsWithTimeout(timeout time.Duration) *CreateTerminalRefundParams

NewCreateTerminalRefundParamsWithTimeout creates a new CreateTerminalRefundParams object with the ability to set a timeout on a request.

func (*CreateTerminalRefundParams) SetBody

SetBody adds the body to the create terminal refund params

func (*CreateTerminalRefundParams) SetContext

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

SetContext adds the context to the create terminal refund params

func (*CreateTerminalRefundParams) SetDefaults

func (o *CreateTerminalRefundParams) SetDefaults()

SetDefaults hydrates default values in the create terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTerminalRefundParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create terminal refund params

func (*CreateTerminalRefundParams) SetTimeout

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

SetTimeout adds the timeout to the create terminal refund params

func (*CreateTerminalRefundParams) WithBody

WithBody adds the body to the create terminal refund params

func (*CreateTerminalRefundParams) WithContext

WithContext adds the context to the create terminal refund params

func (*CreateTerminalRefundParams) WithDefaults

WithDefaults hydrates default values in the create terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*CreateTerminalRefundParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create terminal refund params

func (*CreateTerminalRefundParams) WithTimeout

WithTimeout adds the timeout to the create terminal refund params

func (*CreateTerminalRefundParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTerminalRefundReader

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

CreateTerminalRefundReader is a Reader for the CreateTerminalRefund structure.

func (*CreateTerminalRefundReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTerminalCheckoutOK

type GetTerminalCheckoutOK struct {
	Payload *models.GetTerminalCheckoutResponse
}
GetTerminalCheckoutOK describes a response with status code 200, with default header values.

Success

func NewGetTerminalCheckoutOK

func NewGetTerminalCheckoutOK() *GetTerminalCheckoutOK

NewGetTerminalCheckoutOK creates a GetTerminalCheckoutOK with default headers values

func (*GetTerminalCheckoutOK) Error

func (o *GetTerminalCheckoutOK) Error() string

func (*GetTerminalCheckoutOK) GetPayload

type GetTerminalCheckoutParams

type GetTerminalCheckoutParams struct {

	/* CheckoutID.

	   Unique ID for the desired `TerminalCheckout`
	*/
	CheckoutID string

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

GetTerminalCheckoutParams contains all the parameters to send to the API endpoint

for the get terminal checkout operation.

Typically these are written to a http.Request.

func NewGetTerminalCheckoutParams

func NewGetTerminalCheckoutParams() *GetTerminalCheckoutParams

NewGetTerminalCheckoutParams creates a new GetTerminalCheckoutParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetTerminalCheckoutParamsWithContext

func NewGetTerminalCheckoutParamsWithContext(ctx context.Context) *GetTerminalCheckoutParams

NewGetTerminalCheckoutParamsWithContext creates a new GetTerminalCheckoutParams object with the ability to set a context for a request.

func NewGetTerminalCheckoutParamsWithHTTPClient

func NewGetTerminalCheckoutParamsWithHTTPClient(client *http.Client) *GetTerminalCheckoutParams

NewGetTerminalCheckoutParamsWithHTTPClient creates a new GetTerminalCheckoutParams object with the ability to set a custom HTTPClient for a request.

func NewGetTerminalCheckoutParamsWithTimeout

func NewGetTerminalCheckoutParamsWithTimeout(timeout time.Duration) *GetTerminalCheckoutParams

NewGetTerminalCheckoutParamsWithTimeout creates a new GetTerminalCheckoutParams object with the ability to set a timeout on a request.

func (*GetTerminalCheckoutParams) SetCheckoutID

func (o *GetTerminalCheckoutParams) SetCheckoutID(checkoutID string)

SetCheckoutID adds the checkoutId to the get terminal checkout params

func (*GetTerminalCheckoutParams) SetContext

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

SetContext adds the context to the get terminal checkout params

func (*GetTerminalCheckoutParams) SetDefaults

func (o *GetTerminalCheckoutParams) SetDefaults()

SetDefaults hydrates default values in the get terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*GetTerminalCheckoutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get terminal checkout params

func (*GetTerminalCheckoutParams) SetTimeout

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

SetTimeout adds the timeout to the get terminal checkout params

func (*GetTerminalCheckoutParams) WithCheckoutID

func (o *GetTerminalCheckoutParams) WithCheckoutID(checkoutID string) *GetTerminalCheckoutParams

WithCheckoutID adds the checkoutID to the get terminal checkout params

func (*GetTerminalCheckoutParams) WithContext

WithContext adds the context to the get terminal checkout params

func (*GetTerminalCheckoutParams) WithDefaults

WithDefaults hydrates default values in the get terminal checkout params (not the query body).

All values with no default are reset to their zero value.

func (*GetTerminalCheckoutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get terminal checkout params

func (*GetTerminalCheckoutParams) WithTimeout

WithTimeout adds the timeout to the get terminal checkout params

func (*GetTerminalCheckoutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTerminalCheckoutReader

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

GetTerminalCheckoutReader is a Reader for the GetTerminalCheckout structure.

func (*GetTerminalCheckoutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTerminalRefundOK

type GetTerminalRefundOK struct {
	Payload *models.GetTerminalRefundResponse
}
GetTerminalRefundOK describes a response with status code 200, with default header values.

Success

func NewGetTerminalRefundOK

func NewGetTerminalRefundOK() *GetTerminalRefundOK

NewGetTerminalRefundOK creates a GetTerminalRefundOK with default headers values

func (*GetTerminalRefundOK) Error

func (o *GetTerminalRefundOK) Error() string

func (*GetTerminalRefundOK) GetPayload

type GetTerminalRefundParams

type GetTerminalRefundParams struct {

	/* TerminalRefundID.

	   Unique ID for the desired `TerminalRefund`
	*/
	TerminalRefundID string

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

GetTerminalRefundParams contains all the parameters to send to the API endpoint

for the get terminal refund operation.

Typically these are written to a http.Request.

func NewGetTerminalRefundParams

func NewGetTerminalRefundParams() *GetTerminalRefundParams

NewGetTerminalRefundParams creates a new GetTerminalRefundParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewGetTerminalRefundParamsWithContext

func NewGetTerminalRefundParamsWithContext(ctx context.Context) *GetTerminalRefundParams

NewGetTerminalRefundParamsWithContext creates a new GetTerminalRefundParams object with the ability to set a context for a request.

func NewGetTerminalRefundParamsWithHTTPClient

func NewGetTerminalRefundParamsWithHTTPClient(client *http.Client) *GetTerminalRefundParams

NewGetTerminalRefundParamsWithHTTPClient creates a new GetTerminalRefundParams object with the ability to set a custom HTTPClient for a request.

func NewGetTerminalRefundParamsWithTimeout

func NewGetTerminalRefundParamsWithTimeout(timeout time.Duration) *GetTerminalRefundParams

NewGetTerminalRefundParamsWithTimeout creates a new GetTerminalRefundParams object with the ability to set a timeout on a request.

func (*GetTerminalRefundParams) SetContext

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

SetContext adds the context to the get terminal refund params

func (*GetTerminalRefundParams) SetDefaults

func (o *GetTerminalRefundParams) SetDefaults()

SetDefaults hydrates default values in the get terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*GetTerminalRefundParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get terminal refund params

func (*GetTerminalRefundParams) SetTerminalRefundID

func (o *GetTerminalRefundParams) SetTerminalRefundID(terminalRefundID string)

SetTerminalRefundID adds the terminalRefundId to the get terminal refund params

func (*GetTerminalRefundParams) SetTimeout

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

SetTimeout adds the timeout to the get terminal refund params

func (*GetTerminalRefundParams) WithContext

WithContext adds the context to the get terminal refund params

func (*GetTerminalRefundParams) WithDefaults

WithDefaults hydrates default values in the get terminal refund params (not the query body).

All values with no default are reset to their zero value.

func (*GetTerminalRefundParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get terminal refund params

func (*GetTerminalRefundParams) WithTerminalRefundID

func (o *GetTerminalRefundParams) WithTerminalRefundID(terminalRefundID string) *GetTerminalRefundParams

WithTerminalRefundID adds the terminalRefundID to the get terminal refund params

func (*GetTerminalRefundParams) WithTimeout

WithTimeout adds the timeout to the get terminal refund params

func (*GetTerminalRefundParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTerminalRefundReader

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

GetTerminalRefundReader is a Reader for the GetTerminalRefund structure.

func (*GetTerminalRefundReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchTerminalCheckoutsOK

type SearchTerminalCheckoutsOK struct {
	Payload *models.SearchTerminalCheckoutsResponse
}
SearchTerminalCheckoutsOK describes a response with status code 200, with default header values.

Success

func NewSearchTerminalCheckoutsOK

func NewSearchTerminalCheckoutsOK() *SearchTerminalCheckoutsOK

NewSearchTerminalCheckoutsOK creates a SearchTerminalCheckoutsOK with default headers values

func (*SearchTerminalCheckoutsOK) Error

func (o *SearchTerminalCheckoutsOK) Error() string

func (*SearchTerminalCheckoutsOK) GetPayload

type SearchTerminalCheckoutsParams

type SearchTerminalCheckoutsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchTerminalCheckoutsRequest

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

SearchTerminalCheckoutsParams contains all the parameters to send to the API endpoint

for the search terminal checkouts operation.

Typically these are written to a http.Request.

func NewSearchTerminalCheckoutsParams

func NewSearchTerminalCheckoutsParams() *SearchTerminalCheckoutsParams

NewSearchTerminalCheckoutsParams creates a new SearchTerminalCheckoutsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchTerminalCheckoutsParamsWithContext

func NewSearchTerminalCheckoutsParamsWithContext(ctx context.Context) *SearchTerminalCheckoutsParams

NewSearchTerminalCheckoutsParamsWithContext creates a new SearchTerminalCheckoutsParams object with the ability to set a context for a request.

func NewSearchTerminalCheckoutsParamsWithHTTPClient

func NewSearchTerminalCheckoutsParamsWithHTTPClient(client *http.Client) *SearchTerminalCheckoutsParams

NewSearchTerminalCheckoutsParamsWithHTTPClient creates a new SearchTerminalCheckoutsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchTerminalCheckoutsParamsWithTimeout

func NewSearchTerminalCheckoutsParamsWithTimeout(timeout time.Duration) *SearchTerminalCheckoutsParams

NewSearchTerminalCheckoutsParamsWithTimeout creates a new SearchTerminalCheckoutsParams object with the ability to set a timeout on a request.

func (*SearchTerminalCheckoutsParams) SetBody

SetBody adds the body to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) SetContext

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

SetContext adds the context to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) SetDefaults

func (o *SearchTerminalCheckoutsParams) SetDefaults()

SetDefaults hydrates default values in the search terminal checkouts params (not the query body).

All values with no default are reset to their zero value.

func (*SearchTerminalCheckoutsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) SetTimeout

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

SetTimeout adds the timeout to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) WithBody

WithBody adds the body to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) WithContext

WithContext adds the context to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) WithDefaults

WithDefaults hydrates default values in the search terminal checkouts params (not the query body).

All values with no default are reset to their zero value.

func (*SearchTerminalCheckoutsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) WithTimeout

WithTimeout adds the timeout to the search terminal checkouts params

func (*SearchTerminalCheckoutsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchTerminalCheckoutsReader

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

SearchTerminalCheckoutsReader is a Reader for the SearchTerminalCheckouts structure.

func (*SearchTerminalCheckoutsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SearchTerminalRefundsOK

type SearchTerminalRefundsOK struct {
	Payload *models.SearchTerminalRefundsResponse
}
SearchTerminalRefundsOK describes a response with status code 200, with default header values.

Success

func NewSearchTerminalRefundsOK

func NewSearchTerminalRefundsOK() *SearchTerminalRefundsOK

NewSearchTerminalRefundsOK creates a SearchTerminalRefundsOK with default headers values

func (*SearchTerminalRefundsOK) Error

func (o *SearchTerminalRefundsOK) Error() string

func (*SearchTerminalRefundsOK) GetPayload

type SearchTerminalRefundsParams

type SearchTerminalRefundsParams struct {

	/* Body.

	     An object containing the fields to POST for the request.

	See the corresponding object definition for field details.
	*/
	Body *models.SearchTerminalRefundsRequest

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

SearchTerminalRefundsParams contains all the parameters to send to the API endpoint

for the search terminal refunds operation.

Typically these are written to a http.Request.

func NewSearchTerminalRefundsParams

func NewSearchTerminalRefundsParams() *SearchTerminalRefundsParams

NewSearchTerminalRefundsParams creates a new SearchTerminalRefundsParams object, with the default timeout for this client.

Default values are not hydrated, since defaults are normally applied by the API server side.

To enforce default values in parameter, use SetDefaults or WithDefaults.

func NewSearchTerminalRefundsParamsWithContext

func NewSearchTerminalRefundsParamsWithContext(ctx context.Context) *SearchTerminalRefundsParams

NewSearchTerminalRefundsParamsWithContext creates a new SearchTerminalRefundsParams object with the ability to set a context for a request.

func NewSearchTerminalRefundsParamsWithHTTPClient

func NewSearchTerminalRefundsParamsWithHTTPClient(client *http.Client) *SearchTerminalRefundsParams

NewSearchTerminalRefundsParamsWithHTTPClient creates a new SearchTerminalRefundsParams object with the ability to set a custom HTTPClient for a request.

func NewSearchTerminalRefundsParamsWithTimeout

func NewSearchTerminalRefundsParamsWithTimeout(timeout time.Duration) *SearchTerminalRefundsParams

NewSearchTerminalRefundsParamsWithTimeout creates a new SearchTerminalRefundsParams object with the ability to set a timeout on a request.

func (*SearchTerminalRefundsParams) SetBody

SetBody adds the body to the search terminal refunds params

func (*SearchTerminalRefundsParams) SetContext

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

SetContext adds the context to the search terminal refunds params

func (*SearchTerminalRefundsParams) SetDefaults

func (o *SearchTerminalRefundsParams) SetDefaults()

SetDefaults hydrates default values in the search terminal refunds params (not the query body).

All values with no default are reset to their zero value.

func (*SearchTerminalRefundsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the search terminal refunds params

func (*SearchTerminalRefundsParams) SetTimeout

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

SetTimeout adds the timeout to the search terminal refunds params

func (*SearchTerminalRefundsParams) WithBody

WithBody adds the body to the search terminal refunds params

func (*SearchTerminalRefundsParams) WithContext

WithContext adds the context to the search terminal refunds params

func (*SearchTerminalRefundsParams) WithDefaults

WithDefaults hydrates default values in the search terminal refunds params (not the query body).

All values with no default are reset to their zero value.

func (*SearchTerminalRefundsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the search terminal refunds params

func (*SearchTerminalRefundsParams) WithTimeout

WithTimeout adds the timeout to the search terminal refunds params

func (*SearchTerminalRefundsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SearchTerminalRefundsReader

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

SearchTerminalRefundsReader is a Reader for the SearchTerminalRefunds structure.

func (*SearchTerminalRefundsReader) ReadResponse

func (o *SearchTerminalRefundsReader) 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