google_orders

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckoutAsyncOK

type CheckoutAsyncOK struct {
}

CheckoutAsyncOK handles this case with default header values.

Success

func NewCheckoutAsyncOK

func NewCheckoutAsyncOK() *CheckoutAsyncOK

NewCheckoutAsyncOK creates a CheckoutAsyncOK with default headers values

func (*CheckoutAsyncOK) Error

func (o *CheckoutAsyncOK) Error() string

type CheckoutAsyncParams

type CheckoutAsyncParams struct {

	/*Order*/
	Order *models.GoogleOrder

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

CheckoutAsyncParams contains all the parameters to send to the API endpoint for the checkout async operation typically these are written to a http.Request

func NewCheckoutAsyncParams

func NewCheckoutAsyncParams() *CheckoutAsyncParams

NewCheckoutAsyncParams creates a new CheckoutAsyncParams object with the default values initialized.

func NewCheckoutAsyncParamsWithContext

func NewCheckoutAsyncParamsWithContext(ctx context.Context) *CheckoutAsyncParams

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

func NewCheckoutAsyncParamsWithHTTPClient

func NewCheckoutAsyncParamsWithHTTPClient(client *http.Client) *CheckoutAsyncParams

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

func NewCheckoutAsyncParamsWithTimeout

func NewCheckoutAsyncParamsWithTimeout(timeout time.Duration) *CheckoutAsyncParams

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

func (*CheckoutAsyncParams) SetContext

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

SetContext adds the context to the checkout async params

func (*CheckoutAsyncParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the checkout async params

func (*CheckoutAsyncParams) SetOrder

func (o *CheckoutAsyncParams) SetOrder(order *models.GoogleOrder)

SetOrder adds the order to the checkout async params

func (*CheckoutAsyncParams) SetTimeout

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

SetTimeout adds the timeout to the checkout async params

func (*CheckoutAsyncParams) WithContext

WithContext adds the context to the checkout async params

func (*CheckoutAsyncParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the checkout async params

func (*CheckoutAsyncParams) WithOrder

WithOrder adds the order to the checkout async params

func (*CheckoutAsyncParams) WithTimeout

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

WithTimeout adds the timeout to the checkout async params

func (*CheckoutAsyncParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CheckoutAsyncReader

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

CheckoutAsyncReader is a Reader for the CheckoutAsync structure.

func (*CheckoutAsyncReader) ReadResponse

func (o *CheckoutAsyncReader) 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 google orders API

func (*Client) CheckoutAsync

func (a *Client) CheckoutAsync(params *CheckoutAsyncParams, authInfo runtime.ClientAuthInfoWriter) (*CheckoutAsyncOK, error)

CheckoutAsync checkout async API

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	CheckoutAsync(params *CheckoutAsyncParams, authInfo runtime.ClientAuthInfoWriter) (*CheckoutAsyncOK, 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 google orders API client.

Jump to

Keyboard shortcuts

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