geographic_address_validation

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 validation API

func (*Client) GeographicAddressValidationCreate

GeographicAddressValidationCreate validates a geographic address

The Buyer sends Address information known to the Buyer to the Seller. The Seller re-sponds with a list of Addresses known to the Seller that likely match the Address infor-mation sent by the Buyer. For each Address returned, the Seller generally also provides an Address Identifier, which uniquely identifies this Address within 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 {
	GeographicAddressValidationCreate(params *GeographicAddressValidationCreateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GeographicAddressValidationCreateCreated, 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 validation API client.

type GeographicAddressValidationCreateBadRequest

type GeographicAddressValidationCreateBadRequest struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressValidationCreateBadRequest 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 NewGeographicAddressValidationCreateBadRequest

func NewGeographicAddressValidationCreateBadRequest() *GeographicAddressValidationCreateBadRequest

NewGeographicAddressValidationCreateBadRequest creates a GeographicAddressValidationCreateBadRequest with default headers values

func (*GeographicAddressValidationCreateBadRequest) Error

func (*GeographicAddressValidationCreateBadRequest) GetPayload

type GeographicAddressValidationCreateCreated

type GeographicAddressValidationCreateCreated struct {
	Payload *models.GeographicAddressValidation
}
GeographicAddressValidationCreateCreated describes a response with status code 201, with default header values.

Created

func NewGeographicAddressValidationCreateCreated

func NewGeographicAddressValidationCreateCreated() *GeographicAddressValidationCreateCreated

NewGeographicAddressValidationCreateCreated creates a GeographicAddressValidationCreateCreated with default headers values

func (*GeographicAddressValidationCreateCreated) Error

func (*GeographicAddressValidationCreateCreated) GetPayload

type GeographicAddressValidationCreateForbidden

type GeographicAddressValidationCreateForbidden struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressValidationCreateForbidden 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 NewGeographicAddressValidationCreateForbidden

func NewGeographicAddressValidationCreateForbidden() *GeographicAddressValidationCreateForbidden

NewGeographicAddressValidationCreateForbidden creates a GeographicAddressValidationCreateForbidden with default headers values

func (*GeographicAddressValidationCreateForbidden) Error

func (*GeographicAddressValidationCreateForbidden) GetPayload

type GeographicAddressValidationCreateInternalServerError

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

Internal Server Error

List of supported error codes: - 1: Internal error

func NewGeographicAddressValidationCreateInternalServerError

func NewGeographicAddressValidationCreateInternalServerError() *GeographicAddressValidationCreateInternalServerError

NewGeographicAddressValidationCreateInternalServerError creates a GeographicAddressValidationCreateInternalServerError with default headers values

func (*GeographicAddressValidationCreateInternalServerError) Error

func (*GeographicAddressValidationCreateInternalServerError) GetPayload

type GeographicAddressValidationCreateMethodNotAllowed

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

Method Not Allowed

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

func NewGeographicAddressValidationCreateMethodNotAllowed

func NewGeographicAddressValidationCreateMethodNotAllowed() *GeographicAddressValidationCreateMethodNotAllowed

NewGeographicAddressValidationCreateMethodNotAllowed creates a GeographicAddressValidationCreateMethodNotAllowed with default headers values

func (*GeographicAddressValidationCreateMethodNotAllowed) Error

func (*GeographicAddressValidationCreateMethodNotAllowed) GetPayload

type GeographicAddressValidationCreateNotFound

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

Not Found

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

func NewGeographicAddressValidationCreateNotFound

func NewGeographicAddressValidationCreateNotFound() *GeographicAddressValidationCreateNotFound

NewGeographicAddressValidationCreateNotFound creates a GeographicAddressValidationCreateNotFound with default headers values

func (*GeographicAddressValidationCreateNotFound) Error

func (*GeographicAddressValidationCreateNotFound) GetPayload

type GeographicAddressValidationCreateParams

type GeographicAddressValidationCreateParams struct {

	// AddressValidationRequest.
	AddressValidationRequest *models.GeographicAddressValidationCreate

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

GeographicAddressValidationCreateParams contains all the parameters to send to the API endpoint

for the geographic address validation create operation.

Typically these are written to a http.Request.

func NewGeographicAddressValidationCreateParams

func NewGeographicAddressValidationCreateParams() *GeographicAddressValidationCreateParams

NewGeographicAddressValidationCreateParams creates a new GeographicAddressValidationCreateParams 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 NewGeographicAddressValidationCreateParamsWithContext

func NewGeographicAddressValidationCreateParamsWithContext(ctx context.Context) *GeographicAddressValidationCreateParams

NewGeographicAddressValidationCreateParamsWithContext creates a new GeographicAddressValidationCreateParams object with the ability to set a context for a request.

func NewGeographicAddressValidationCreateParamsWithHTTPClient

func NewGeographicAddressValidationCreateParamsWithHTTPClient(client *http.Client) *GeographicAddressValidationCreateParams

NewGeographicAddressValidationCreateParamsWithHTTPClient creates a new GeographicAddressValidationCreateParams object with the ability to set a custom HTTPClient for a request.

func NewGeographicAddressValidationCreateParamsWithTimeout

func NewGeographicAddressValidationCreateParamsWithTimeout(timeout time.Duration) *GeographicAddressValidationCreateParams

NewGeographicAddressValidationCreateParamsWithTimeout creates a new GeographicAddressValidationCreateParams object with the ability to set a timeout on a request.

func (*GeographicAddressValidationCreateParams) SetAddressValidationRequest

func (o *GeographicAddressValidationCreateParams) SetAddressValidationRequest(addressValidationRequest *models.GeographicAddressValidationCreate)

SetAddressValidationRequest adds the addressValidationRequest to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) SetContext

SetContext adds the context to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) SetDefaults

func (o *GeographicAddressValidationCreateParams) SetDefaults()

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

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

func (*GeographicAddressValidationCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) SetTimeout

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

SetTimeout adds the timeout to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) WithAddressValidationRequest

WithAddressValidationRequest adds the addressValidationRequest to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) WithContext

WithContext adds the context to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) WithDefaults

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

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

func (*GeographicAddressValidationCreateParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) WithTimeout

WithTimeout adds the timeout to the geographic address validation create params

func (*GeographicAddressValidationCreateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GeographicAddressValidationCreateReader

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

GeographicAddressValidationCreateReader is a Reader for the GeographicAddressValidationCreate structure.

func (*GeographicAddressValidationCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GeographicAddressValidationCreateServiceUnavailable

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

Service Unavailable

func NewGeographicAddressValidationCreateServiceUnavailable

func NewGeographicAddressValidationCreateServiceUnavailable() *GeographicAddressValidationCreateServiceUnavailable

NewGeographicAddressValidationCreateServiceUnavailable creates a GeographicAddressValidationCreateServiceUnavailable with default headers values

func (*GeographicAddressValidationCreateServiceUnavailable) Error

func (*GeographicAddressValidationCreateServiceUnavailable) GetPayload

type GeographicAddressValidationCreateUnauthorized

type GeographicAddressValidationCreateUnauthorized struct {
	Payload *models.ErrorRepresentation
}
GeographicAddressValidationCreateUnauthorized 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 NewGeographicAddressValidationCreateUnauthorized

func NewGeographicAddressValidationCreateUnauthorized() *GeographicAddressValidationCreateUnauthorized

NewGeographicAddressValidationCreateUnauthorized creates a GeographicAddressValidationCreateUnauthorized with default headers values

func (*GeographicAddressValidationCreateUnauthorized) Error

func (*GeographicAddressValidationCreateUnauthorized) GetPayload

type GeographicAddressValidationCreateUnprocessableEntity

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

Unprocessable entity

Functional error

  • code: 100

message: Too many addresses match - please re-try with more attribute values restriction description:

func NewGeographicAddressValidationCreateUnprocessableEntity

func NewGeographicAddressValidationCreateUnprocessableEntity() *GeographicAddressValidationCreateUnprocessableEntity

NewGeographicAddressValidationCreateUnprocessableEntity creates a GeographicAddressValidationCreateUnprocessableEntity with default headers values

func (*GeographicAddressValidationCreateUnprocessableEntity) Error

func (*GeographicAddressValidationCreateUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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