geographic_address_validation

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2020 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

func (a *Client) GeographicAddressValidationCreate(params *GeographicAddressValidationCreateParams) (*GeographicAddressValidationCreateCreated, error)

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 ClientService

type ClientService interface {
	GeographicAddressValidationCreate(params *GeographicAddressValidationCreateParams) (*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 handles this case 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 handles this case 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 handles this case 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 handles this case 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 handles this case 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 handles this case 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 values initialized.

func NewGeographicAddressValidationCreateParamsWithContext

func NewGeographicAddressValidationCreateParamsWithContext(ctx context.Context) *GeographicAddressValidationCreateParams

NewGeographicAddressValidationCreateParamsWithContext creates a new GeographicAddressValidationCreateParams object with the default values initialized, and 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 default values initialized, and 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 default values initialized, and 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) 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) 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 handles this case 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 handles this case 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 handles this case 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