addresses

package
v0.0.0-...-4ac4f36 Latest Latest
Warning

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

Go to latest
Published: May 8, 2021 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 addresses API

func (*Client) GetAddress

func (a *Client) GetAddress(params *GetAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAddressOK, error)

GetAddress get address API

func (*Client) GetAddressByID

func (a *Client) GetAddressByID(params *GetAddressByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAddressByIDOK, error)

GetAddressByID get address by Id API

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 {
	GetAddress(params *GetAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAddressOK, error)

	GetAddressByID(params *GetAddressByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAddressByIDOK, 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 addresses API client.

type GetAddressByIDOK

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

Success

func NewGetAddressByIDOK

func NewGetAddressByIDOK() *GetAddressByIDOK

NewGetAddressByIDOK creates a GetAddressByIDOK with default headers values

func (*GetAddressByIDOK) Error

func (o *GetAddressByIDOK) Error() string

func (*GetAddressByIDOK) GetPayload

func (o *GetAddressByIDOK) GetPayload() *models.Address

type GetAddressByIDParams

type GetAddressByIDParams struct {

	// ID.
	//
	// Format: int64
	ID int64

	// OrganizationID.
	//
	// Format: int32
	OrganizationID int32

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

GetAddressByIDParams contains all the parameters to send to the API endpoint

for the get address by Id operation.

Typically these are written to a http.Request.

func NewGetAddressByIDParams

func NewGetAddressByIDParams() *GetAddressByIDParams

NewGetAddressByIDParams creates a new GetAddressByIDParams 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 NewGetAddressByIDParamsWithContext

func NewGetAddressByIDParamsWithContext(ctx context.Context) *GetAddressByIDParams

NewGetAddressByIDParamsWithContext creates a new GetAddressByIDParams object with the ability to set a context for a request.

func NewGetAddressByIDParamsWithHTTPClient

func NewGetAddressByIDParamsWithHTTPClient(client *http.Client) *GetAddressByIDParams

NewGetAddressByIDParamsWithHTTPClient creates a new GetAddressByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetAddressByIDParamsWithTimeout

func NewGetAddressByIDParamsWithTimeout(timeout time.Duration) *GetAddressByIDParams

NewGetAddressByIDParamsWithTimeout creates a new GetAddressByIDParams object with the ability to set a timeout on a request.

func (*GetAddressByIDParams) SetContext

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

SetContext adds the context to the get address by Id params

func (*GetAddressByIDParams) SetDefaults

func (o *GetAddressByIDParams) SetDefaults()

SetDefaults hydrates default values in the get address by Id params (not the query body).

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

func (*GetAddressByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get address by Id params

func (*GetAddressByIDParams) SetID

func (o *GetAddressByIDParams) SetID(id int64)

SetID adds the id to the get address by Id params

func (*GetAddressByIDParams) SetOrganizationID

func (o *GetAddressByIDParams) SetOrganizationID(organizationID int32)

SetOrganizationID adds the organizationId to the get address by Id params

func (*GetAddressByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get address by Id params

func (*GetAddressByIDParams) WithContext

WithContext adds the context to the get address by Id params

func (*GetAddressByIDParams) WithDefaults

func (o *GetAddressByIDParams) WithDefaults() *GetAddressByIDParams

WithDefaults hydrates default values in the get address by Id params (not the query body).

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

func (*GetAddressByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get address by Id params

func (*GetAddressByIDParams) WithID

WithID adds the id to the get address by Id params

func (*GetAddressByIDParams) WithOrganizationID

func (o *GetAddressByIDParams) WithOrganizationID(organizationID int32) *GetAddressByIDParams

WithOrganizationID adds the organizationID to the get address by Id params

func (*GetAddressByIDParams) WithTimeout

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

WithTimeout adds the timeout to the get address by Id params

func (*GetAddressByIDParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAddressByIDReader

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

GetAddressByIDReader is a Reader for the GetAddressByID structure.

func (*GetAddressByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetAddressOK

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

Success

func NewGetAddressOK

func NewGetAddressOK() *GetAddressOK

NewGetAddressOK creates a GetAddressOK with default headers values

func (*GetAddressOK) Error

func (o *GetAddressOK) Error() string

func (*GetAddressOK) GetPayload

func (o *GetAddressOK) GetPayload() *models.APICollectionOfAddress

type GetAddressParams

type GetAddressParams struct {

	// OrganizationID.
	//
	// Format: int32
	OrganizationID int32

	// Type.
	Type *string

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

GetAddressParams contains all the parameters to send to the API endpoint

for the get address operation.

Typically these are written to a http.Request.

func NewGetAddressParams

func NewGetAddressParams() *GetAddressParams

NewGetAddressParams creates a new GetAddressParams 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 NewGetAddressParamsWithContext

func NewGetAddressParamsWithContext(ctx context.Context) *GetAddressParams

NewGetAddressParamsWithContext creates a new GetAddressParams object with the ability to set a context for a request.

func NewGetAddressParamsWithHTTPClient

func NewGetAddressParamsWithHTTPClient(client *http.Client) *GetAddressParams

NewGetAddressParamsWithHTTPClient creates a new GetAddressParams object with the ability to set a custom HTTPClient for a request.

func NewGetAddressParamsWithTimeout

func NewGetAddressParamsWithTimeout(timeout time.Duration) *GetAddressParams

NewGetAddressParamsWithTimeout creates a new GetAddressParams object with the ability to set a timeout on a request.

func (*GetAddressParams) SetContext

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

SetContext adds the context to the get address params

func (*GetAddressParams) SetDefaults

func (o *GetAddressParams) SetDefaults()

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

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

func (*GetAddressParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get address params

func (*GetAddressParams) SetOrganizationID

func (o *GetAddressParams) SetOrganizationID(organizationID int32)

SetOrganizationID adds the organizationId to the get address params

func (*GetAddressParams) SetTimeout

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

SetTimeout adds the timeout to the get address params

func (*GetAddressParams) SetType

func (o *GetAddressParams) SetType(typeVar *string)

SetType adds the type to the get address params

func (*GetAddressParams) WithContext

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

WithContext adds the context to the get address params

func (*GetAddressParams) WithDefaults

func (o *GetAddressParams) WithDefaults() *GetAddressParams

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

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

func (*GetAddressParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get address params

func (*GetAddressParams) WithOrganizationID

func (o *GetAddressParams) WithOrganizationID(organizationID int32) *GetAddressParams

WithOrganizationID adds the organizationID to the get address params

func (*GetAddressParams) WithTimeout

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

WithTimeout adds the timeout to the get address params

func (*GetAddressParams) WithType

func (o *GetAddressParams) WithType(typeVar *string) *GetAddressParams

WithType adds the typeVar to the get address params

func (*GetAddressParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetAddressReader

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

GetAddressReader is a Reader for the GetAddress structure.

func (*GetAddressReader) ReadResponse

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