geographic_address

package
v0.0.0-...-0ce3674 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 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 Client

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

Client for geographic address API

func (*Client) GeographicAddressGet

func (a *Client) GeographicAddressGet(params *GeographicAddressGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GeographicAddressGetOK, error)

GeographicAddressGet retrieves address

The Buyer requests the full details of a single Address based on an Address identifier that was previously provided by the Seller.

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 {
	GeographicAddressGet(params *GeographicAddressGetParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GeographicAddressGetOK, 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 geographic address API client.

type GeographicAddressGetBadRequest

type GeographicAddressGetBadRequest struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetBadRequest describes a response with status code 400, with default header values.

Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

func NewGeographicAddressGetBadRequest

func NewGeographicAddressGetBadRequest() *GeographicAddressGetBadRequest

NewGeographicAddressGetBadRequest creates a GeographicAddressGetBadRequest with default headers values

func (*GeographicAddressGetBadRequest) Error

func (*GeographicAddressGetBadRequest) GetPayload

type GeographicAddressGetForbidden

type GeographicAddressGetForbidden struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetForbidden describes a response with status code 403, with default header values.

Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

func NewGeographicAddressGetForbidden

func NewGeographicAddressGetForbidden() *GeographicAddressGetForbidden

NewGeographicAddressGetForbidden creates a GeographicAddressGetForbidden with default headers values

func (*GeographicAddressGetForbidden) Error

func (*GeographicAddressGetForbidden) GetPayload

type GeographicAddressGetInternalServerError

type GeographicAddressGetInternalServerError struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetInternalServerError describes a response with status code 500, with default header values.

Internal Server Error

List of supported error codes: - 1: Internal error

func NewGeographicAddressGetInternalServerError

func NewGeographicAddressGetInternalServerError() *GeographicAddressGetInternalServerError

NewGeographicAddressGetInternalServerError creates a GeographicAddressGetInternalServerError with default headers values

func (*GeographicAddressGetInternalServerError) Error

func (*GeographicAddressGetInternalServerError) GetPayload

type GeographicAddressGetMethodNotAllowed

type GeographicAddressGetMethodNotAllowed struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetMethodNotAllowed describes a response with status code 405, with default header values.

Method Not Allowed

List of supported error codes: - 61: Method not allowed

func NewGeographicAddressGetMethodNotAllowed

func NewGeographicAddressGetMethodNotAllowed() *GeographicAddressGetMethodNotAllowed

NewGeographicAddressGetMethodNotAllowed creates a GeographicAddressGetMethodNotAllowed with default headers values

func (*GeographicAddressGetMethodNotAllowed) Error

func (*GeographicAddressGetMethodNotAllowed) GetPayload

type GeographicAddressGetNotFound

type GeographicAddressGetNotFound struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetNotFound describes a response with status code 404, with default header values.

Not Found

List of supported error codes: - 60: Resource not found

func NewGeographicAddressGetNotFound

func NewGeographicAddressGetNotFound() *GeographicAddressGetNotFound

NewGeographicAddressGetNotFound creates a GeographicAddressGetNotFound with default headers values

func (*GeographicAddressGetNotFound) Error

func (*GeographicAddressGetNotFound) GetPayload

type GeographicAddressGetOK

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

Ok

func NewGeographicAddressGetOK

func NewGeographicAddressGetOK() *GeographicAddressGetOK

NewGeographicAddressGetOK creates a GeographicAddressGetOK with default headers values

func (*GeographicAddressGetOK) Error

func (o *GeographicAddressGetOK) Error() string

func (*GeographicAddressGetOK) GetPayload

type GeographicAddressGetParams

type GeographicAddressGetParams struct {

	// GeographicAddressID.
	GeographicAddressID string

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

GeographicAddressGetParams contains all the parameters to send to the API endpoint

for the geographic address get operation.

Typically these are written to a http.Request.

func NewGeographicAddressGetParams

func NewGeographicAddressGetParams() *GeographicAddressGetParams

NewGeographicAddressGetParams creates a new GeographicAddressGetParams 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 NewGeographicAddressGetParamsWithContext

func NewGeographicAddressGetParamsWithContext(ctx context.Context) *GeographicAddressGetParams

NewGeographicAddressGetParamsWithContext creates a new GeographicAddressGetParams object with the ability to set a context for a request.

func NewGeographicAddressGetParamsWithHTTPClient

func NewGeographicAddressGetParamsWithHTTPClient(client *http.Client) *GeographicAddressGetParams

NewGeographicAddressGetParamsWithHTTPClient creates a new GeographicAddressGetParams object with the ability to set a custom HTTPClient for a request.

func NewGeographicAddressGetParamsWithTimeout

func NewGeographicAddressGetParamsWithTimeout(timeout time.Duration) *GeographicAddressGetParams

NewGeographicAddressGetParamsWithTimeout creates a new GeographicAddressGetParams object with the ability to set a timeout on a request.

func (*GeographicAddressGetParams) SetContext

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

SetContext adds the context to the geographic address get params

func (*GeographicAddressGetParams) SetDefaults

func (o *GeographicAddressGetParams) SetDefaults()

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

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

func (*GeographicAddressGetParams) SetGeographicAddressID

func (o *GeographicAddressGetParams) SetGeographicAddressID(geographicAddressID string)

SetGeographicAddressID adds the geographicAddressId to the geographic address get params

func (*GeographicAddressGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the geographic address get params

func (*GeographicAddressGetParams) SetTimeout

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

SetTimeout adds the timeout to the geographic address get params

func (*GeographicAddressGetParams) WithContext

WithContext adds the context to the geographic address get params

func (*GeographicAddressGetParams) WithDefaults

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

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

func (*GeographicAddressGetParams) WithGeographicAddressID

func (o *GeographicAddressGetParams) WithGeographicAddressID(geographicAddressID string) *GeographicAddressGetParams

WithGeographicAddressID adds the geographicAddressID to the geographic address get params

func (*GeographicAddressGetParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the geographic address get params

func (*GeographicAddressGetParams) WithTimeout

WithTimeout adds the timeout to the geographic address get params

func (*GeographicAddressGetParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GeographicAddressGetReader

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

GeographicAddressGetReader is a Reader for the GeographicAddressGet structure.

func (*GeographicAddressGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GeographicAddressGetServiceUnavailable

type GeographicAddressGetServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetServiceUnavailable describes a response with status code 503, with default header values.

Service Unavailable

func NewGeographicAddressGetServiceUnavailable

func NewGeographicAddressGetServiceUnavailable() *GeographicAddressGetServiceUnavailable

NewGeographicAddressGetServiceUnavailable creates a GeographicAddressGetServiceUnavailable with default headers values

func (*GeographicAddressGetServiceUnavailable) Error

func (*GeographicAddressGetServiceUnavailable) GetPayload

type GeographicAddressGetUnauthorized

type GeographicAddressGetUnauthorized struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetUnauthorized describes a response with status code 401, with default header values.

Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

func NewGeographicAddressGetUnauthorized

func NewGeographicAddressGetUnauthorized() *GeographicAddressGetUnauthorized

NewGeographicAddressGetUnauthorized creates a GeographicAddressGetUnauthorized with default headers values

func (*GeographicAddressGetUnauthorized) Error

func (*GeographicAddressGetUnauthorized) GetPayload

type GeographicAddressGetUnprocessableEntity

type GeographicAddressGetUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressGetUnprocessableEntity describes a response with status code 422, with default header values.

Unprocessable entity

Functional error

func NewGeographicAddressGetUnprocessableEntity

func NewGeographicAddressGetUnprocessableEntity() *GeographicAddressGetUnprocessableEntity

NewGeographicAddressGetUnprocessableEntity creates a GeographicAddressGetUnprocessableEntity with default headers values

func (*GeographicAddressGetUnprocessableEntity) Error

func (*GeographicAddressGetUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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