delivery_address

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for delivery address API

func (*Client) DeliveryAddressGet

func (a *Client) DeliveryAddressGet(params *DeliveryAddressGetParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressGetOK, error)

DeliveryAddressGet gets address by ID

func (*Client) DeliveryAddressPut

func (a *Client) DeliveryAddressPut(params *DeliveryAddressPutParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressPutOK, error)

DeliveryAddressPut updates address

func (*Client) DeliveryAddressSearch

func (a *Client) DeliveryAddressSearch(params *DeliveryAddressSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressSearchOK, error)

DeliveryAddressSearch finds addresses corresponding with sent data

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	DeliveryAddressGet(params *DeliveryAddressGetParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressGetOK, error)

	DeliveryAddressPut(params *DeliveryAddressPutParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressPutOK, error)

	DeliveryAddressSearch(params *DeliveryAddressSearchParams, authInfo runtime.ClientAuthInfoWriter) (*DeliveryAddressSearchOK, 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 delivery address API client.

type DeliveryAddressGetOK

type DeliveryAddressGetOK struct {
	Payload *models.ResponseWrapperDeliveryAddress
}

DeliveryAddressGetOK handles this case with default header values.

successful operation

func NewDeliveryAddressGetOK

func NewDeliveryAddressGetOK() *DeliveryAddressGetOK

NewDeliveryAddressGetOK creates a DeliveryAddressGetOK with default headers values

func (*DeliveryAddressGetOK) Error

func (o *DeliveryAddressGetOK) Error() string

func (*DeliveryAddressGetOK) GetPayload

type DeliveryAddressGetParams

type DeliveryAddressGetParams struct {

	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*ID
	  Element ID

	*/
	ID int32

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

DeliveryAddressGetParams contains all the parameters to send to the API endpoint for the delivery address get operation typically these are written to a http.Request

func NewDeliveryAddressGetParams

func NewDeliveryAddressGetParams() *DeliveryAddressGetParams

NewDeliveryAddressGetParams creates a new DeliveryAddressGetParams object with the default values initialized.

func NewDeliveryAddressGetParamsWithContext

func NewDeliveryAddressGetParamsWithContext(ctx context.Context) *DeliveryAddressGetParams

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

func NewDeliveryAddressGetParamsWithHTTPClient

func NewDeliveryAddressGetParamsWithHTTPClient(client *http.Client) *DeliveryAddressGetParams

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

func NewDeliveryAddressGetParamsWithTimeout

func NewDeliveryAddressGetParamsWithTimeout(timeout time.Duration) *DeliveryAddressGetParams

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

func (*DeliveryAddressGetParams) SetContext

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

SetContext adds the context to the delivery address get params

func (*DeliveryAddressGetParams) SetFields

func (o *DeliveryAddressGetParams) SetFields(fields *string)

SetFields adds the fields to the delivery address get params

func (*DeliveryAddressGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delivery address get params

func (*DeliveryAddressGetParams) SetID

func (o *DeliveryAddressGetParams) SetID(id int32)

SetID adds the id to the delivery address get params

func (*DeliveryAddressGetParams) SetTimeout

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

SetTimeout adds the timeout to the delivery address get params

func (*DeliveryAddressGetParams) WithContext

WithContext adds the context to the delivery address get params

func (*DeliveryAddressGetParams) WithFields

WithFields adds the fields to the delivery address get params

func (*DeliveryAddressGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delivery address get params

func (*DeliveryAddressGetParams) WithID

WithID adds the id to the delivery address get params

func (*DeliveryAddressGetParams) WithTimeout

WithTimeout adds the timeout to the delivery address get params

func (*DeliveryAddressGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeliveryAddressGetReader

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

DeliveryAddressGetReader is a Reader for the DeliveryAddressGet structure.

func (*DeliveryAddressGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeliveryAddressPutOK

type DeliveryAddressPutOK struct {
	Payload *models.ResponseWrapperDeliveryAddress
}

DeliveryAddressPutOK handles this case with default header values.

successful operation

func NewDeliveryAddressPutOK

func NewDeliveryAddressPutOK() *DeliveryAddressPutOK

NewDeliveryAddressPutOK creates a DeliveryAddressPutOK with default headers values

func (*DeliveryAddressPutOK) Error

func (o *DeliveryAddressPutOK) Error() string

func (*DeliveryAddressPutOK) GetPayload

type DeliveryAddressPutParams

type DeliveryAddressPutParams struct {

	/*Body
	  Partial object describing what should be updated

	*/
	Body *models.DeliveryAddress
	/*ID
	  Element ID

	*/
	ID int32

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

DeliveryAddressPutParams contains all the parameters to send to the API endpoint for the delivery address put operation typically these are written to a http.Request

func NewDeliveryAddressPutParams

func NewDeliveryAddressPutParams() *DeliveryAddressPutParams

NewDeliveryAddressPutParams creates a new DeliveryAddressPutParams object with the default values initialized.

func NewDeliveryAddressPutParamsWithContext

func NewDeliveryAddressPutParamsWithContext(ctx context.Context) *DeliveryAddressPutParams

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

func NewDeliveryAddressPutParamsWithHTTPClient

func NewDeliveryAddressPutParamsWithHTTPClient(client *http.Client) *DeliveryAddressPutParams

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

func NewDeliveryAddressPutParamsWithTimeout

func NewDeliveryAddressPutParamsWithTimeout(timeout time.Duration) *DeliveryAddressPutParams

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

func (*DeliveryAddressPutParams) SetBody

SetBody adds the body to the delivery address put params

func (*DeliveryAddressPutParams) SetContext

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

SetContext adds the context to the delivery address put params

func (*DeliveryAddressPutParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delivery address put params

func (*DeliveryAddressPutParams) SetID

func (o *DeliveryAddressPutParams) SetID(id int32)

SetID adds the id to the delivery address put params

func (*DeliveryAddressPutParams) SetTimeout

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

SetTimeout adds the timeout to the delivery address put params

func (*DeliveryAddressPutParams) WithBody

WithBody adds the body to the delivery address put params

func (*DeliveryAddressPutParams) WithContext

WithContext adds the context to the delivery address put params

func (*DeliveryAddressPutParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delivery address put params

func (*DeliveryAddressPutParams) WithID

WithID adds the id to the delivery address put params

func (*DeliveryAddressPutParams) WithTimeout

WithTimeout adds the timeout to the delivery address put params

func (*DeliveryAddressPutParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeliveryAddressPutReader

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

DeliveryAddressPutReader is a Reader for the DeliveryAddressPut structure.

func (*DeliveryAddressPutReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeliveryAddressSearchOK

type DeliveryAddressSearchOK struct {
	Payload *models.ListResponseDeliveryAddress
}

DeliveryAddressSearchOK handles this case with default header values.

successful operation

func NewDeliveryAddressSearchOK

func NewDeliveryAddressSearchOK() *DeliveryAddressSearchOK

NewDeliveryAddressSearchOK creates a DeliveryAddressSearchOK with default headers values

func (*DeliveryAddressSearchOK) Error

func (o *DeliveryAddressSearchOK) Error() string

func (*DeliveryAddressSearchOK) GetPayload

type DeliveryAddressSearchParams

type DeliveryAddressSearchParams struct {

	/*AddressLine1
	  List of IDs

	*/
	AddressLine1 *string
	/*AddressLine2
	  List of IDs

	*/
	AddressLine2 *string
	/*City
	  List of IDs

	*/
	City *string
	/*Count
	  Number of elements to return

	*/
	Count *int64
	/*Fields
	  Fields filter pattern

	*/
	Fields *string
	/*From
	  From index

	*/
	From *int64
	/*ID
	  List of IDs

	*/
	ID *string
	/*Name
	  List of IDs

	*/
	Name *string
	/*PostalCode
	  List of IDs

	*/
	PostalCode *string
	/*Sorting
	  Sorting pattern

	*/
	Sorting *string

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

DeliveryAddressSearchParams contains all the parameters to send to the API endpoint for the delivery address search operation typically these are written to a http.Request

func NewDeliveryAddressSearchParams

func NewDeliveryAddressSearchParams() *DeliveryAddressSearchParams

NewDeliveryAddressSearchParams creates a new DeliveryAddressSearchParams object with the default values initialized.

func NewDeliveryAddressSearchParamsWithContext

func NewDeliveryAddressSearchParamsWithContext(ctx context.Context) *DeliveryAddressSearchParams

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

func NewDeliveryAddressSearchParamsWithHTTPClient

func NewDeliveryAddressSearchParamsWithHTTPClient(client *http.Client) *DeliveryAddressSearchParams

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

func NewDeliveryAddressSearchParamsWithTimeout

func NewDeliveryAddressSearchParamsWithTimeout(timeout time.Duration) *DeliveryAddressSearchParams

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

func (*DeliveryAddressSearchParams) SetAddressLine1

func (o *DeliveryAddressSearchParams) SetAddressLine1(addressLine1 *string)

SetAddressLine1 adds the addressLine1 to the delivery address search params

func (*DeliveryAddressSearchParams) SetAddressLine2

func (o *DeliveryAddressSearchParams) SetAddressLine2(addressLine2 *string)

SetAddressLine2 adds the addressLine2 to the delivery address search params

func (*DeliveryAddressSearchParams) SetCity

func (o *DeliveryAddressSearchParams) SetCity(city *string)

SetCity adds the city to the delivery address search params

func (*DeliveryAddressSearchParams) SetContext

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

SetContext adds the context to the delivery address search params

func (*DeliveryAddressSearchParams) SetCount

func (o *DeliveryAddressSearchParams) SetCount(count *int64)

SetCount adds the count to the delivery address search params

func (*DeliveryAddressSearchParams) SetFields

func (o *DeliveryAddressSearchParams) SetFields(fields *string)

SetFields adds the fields to the delivery address search params

func (*DeliveryAddressSearchParams) SetFrom

func (o *DeliveryAddressSearchParams) SetFrom(from *int64)

SetFrom adds the from to the delivery address search params

func (*DeliveryAddressSearchParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delivery address search params

func (*DeliveryAddressSearchParams) SetID

func (o *DeliveryAddressSearchParams) SetID(id *string)

SetID adds the id to the delivery address search params

func (*DeliveryAddressSearchParams) SetName

func (o *DeliveryAddressSearchParams) SetName(name *string)

SetName adds the name to the delivery address search params

func (*DeliveryAddressSearchParams) SetPostalCode

func (o *DeliveryAddressSearchParams) SetPostalCode(postalCode *string)

SetPostalCode adds the postalCode to the delivery address search params

func (*DeliveryAddressSearchParams) SetSorting

func (o *DeliveryAddressSearchParams) SetSorting(sorting *string)

SetSorting adds the sorting to the delivery address search params

func (*DeliveryAddressSearchParams) SetTimeout

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

SetTimeout adds the timeout to the delivery address search params

func (*DeliveryAddressSearchParams) WithAddressLine1

func (o *DeliveryAddressSearchParams) WithAddressLine1(addressLine1 *string) *DeliveryAddressSearchParams

WithAddressLine1 adds the addressLine1 to the delivery address search params

func (*DeliveryAddressSearchParams) WithAddressLine2

func (o *DeliveryAddressSearchParams) WithAddressLine2(addressLine2 *string) *DeliveryAddressSearchParams

WithAddressLine2 adds the addressLine2 to the delivery address search params

func (*DeliveryAddressSearchParams) WithCity

WithCity adds the city to the delivery address search params

func (*DeliveryAddressSearchParams) WithContext

WithContext adds the context to the delivery address search params

func (*DeliveryAddressSearchParams) WithCount

WithCount adds the count to the delivery address search params

func (*DeliveryAddressSearchParams) WithFields

WithFields adds the fields to the delivery address search params

func (*DeliveryAddressSearchParams) WithFrom

WithFrom adds the from to the delivery address search params

func (*DeliveryAddressSearchParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delivery address search params

func (*DeliveryAddressSearchParams) WithID

WithID adds the id to the delivery address search params

func (*DeliveryAddressSearchParams) WithName

WithName adds the name to the delivery address search params

func (*DeliveryAddressSearchParams) WithPostalCode

func (o *DeliveryAddressSearchParams) WithPostalCode(postalCode *string) *DeliveryAddressSearchParams

WithPostalCode adds the postalCode to the delivery address search params

func (*DeliveryAddressSearchParams) WithSorting

WithSorting adds the sorting to the delivery address search params

func (*DeliveryAddressSearchParams) WithTimeout

WithTimeout adds the timeout to the delivery address search params

func (*DeliveryAddressSearchParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeliveryAddressSearchReader

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

DeliveryAddressSearchReader is a Reader for the DeliveryAddressSearch structure.

func (*DeliveryAddressSearchReader) ReadResponse

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