locations

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT 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 locations API

func (*Client) CreateLocationParameters

func (a *Client) CreateLocationParameters(params *CreateLocationParametersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLocationParametersCreated, error)
CreateLocationParameters adds parameters to a location

Add parameters to a location.

Some locations can be taxed differently depending on the properties of that location. In AvaTax, these tax-affecting properties are called "parameters".

A parameter added to a location will be used by default in tax calculation but will not show on the transaction line referencing the location.

A parameter specified on a transaction line will override a location parameter if they share the same parameter name.

To see available parameters for this location, call `/api/v2/definitions/parameters?$filter=attributeType eq Company`

Some parameters are only available for use if you have subscribed to specific AvaTax services. To see which parameters you are able to use, add the query parameter "$showSubscribed=true" to the parameter definition call above.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) CreateLocations

func (a *Client) CreateLocations(params *CreateLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLocationsOK, error)
CreateLocations creates a new location

Create one or more new location objects attached to this company.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) DeleteLocation

func (a *Client) DeleteLocation(params *DeleteLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLocationOK, error)
DeleteLocation deletes a single location

Mark the location object at this URL as deleted.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) DeleteLocationParameter

func (a *Client) DeleteLocationParameter(params *DeleteLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLocationParameterOK, error)
DeleteLocationParameter deletes a single location parameter

Delete a single location parameter.

Some locations can be taxed differently depending on the properties of that location. In AvaTax, these tax-affecting properties are called "parameters".

A parameter added to a location will be used by default in tax calculation but will not show on the transaction line referencing the location.

A parameter specified on a transaction line will override a location parameter if they share the same parameter name.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) GetLocation

func (a *Client) GetLocation(params *GetLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationOK, error)
GetLocation retrieves a single location

Get the location object identified by this URL.

An 'Location' represents a physical address where a company does business. Many taxing authorities require that you define a list of all locations where your company does business. These locations may require additional custom configuration or tax registration with these authorities. For more information on metadata requirements, see the '/api/v2/definitions/locationquestions' API.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* LocationSettings * parameters

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) GetLocationParameter

func (a *Client) GetLocationParameter(params *GetLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationParameterOK, error)
GetLocationParameter retrieves a single company location parameter

Retrieve a single location parameter.

Some locations can be taxed differently depending on the properties of that location. In AvaTax, these tax-affecting properties are called "parameters".

A parameter added to a location will be used by default in tax calculation but will not show on the transaction line referencing the location.

A parameter specified on a transaction line will override a location parameter if they share the same parameter name.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) ListLocationParameters

func (a *Client) ListLocationParameters(params *ListLocationParametersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLocationParametersOK, error)
ListLocationParameters retrieves parameters for a location

List parameters for a location.

Some locations can be taxed differently depending on the properties of that location. In AvaTax, these tax-affecting properties are called "parameters".

A parameter added to a location will be used by default in tax calculation but will not show on the transaction line referencing the location.

A parameter specified on a transaction line will override a location parameter if they share the same parameter name.

Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) ListLocationsByCompany

func (a *Client) ListLocationsByCompany(params *ListLocationsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLocationsByCompanyOK, error)
ListLocationsByCompany retrieves locations for this company

List all location objects defined for this company.

An 'Location' represents a physical address where a company does business. Many taxing authorities require that you define a list of all locations where your company does business. These locations may require additional custom configuration or tax registration with these authorities. For more information on metadata requirements, see the '/api/v2/definitions/locationquestions' API.

Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters. You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* LocationSettings * parameters

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) QueryLocations

func (a *Client) QueryLocations(params *QueryLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryLocationsOK, error)
QueryLocations retrieves all locations

Get multiple location objects across all companies.

An 'Location' represents a physical address where a company does business. Many taxing authorities require that you define a list of all locations where your company does business. These locations may require additional custom configuration or tax registration with these authorities. For more information on metadata requirements, see the '/api/v2/definitions/locationquestions' API.

Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* LocationSettings * parameters

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLocation

func (a *Client) UpdateLocation(params *UpdateLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLocationOK, error)
UpdateLocation updates a single location

Replace the existing location object at this URL with an updated object.

All data from the existing object will be replaced with data in the object you PUT. To set a field's value to null, you may either set its value to null or omit that field from the object you post.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) UpdateLocationParameter

func (a *Client) UpdateLocationParameter(params *UpdateLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLocationParameterOK, error)
UpdateLocationParameter updates a location parameter

Update a location parameter.

Some locations can be taxed differently depending on the properties of that location. In AvaTax, these tax-affecting properties are called "parameters".

A parameter added to a location will be used by default in tax calculation but will not show on the transaction line referencing the location.

A parameter specified on a transaction line will override a location parameter if they share the same parameter name.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPAdmin, CSPTester, FirmAdmin, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

func (*Client) ValidateLocation

func (a *Client) ValidateLocation(params *ValidateLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateLocationOK, error)
ValidateLocation validates the location against local requirements

Returns validation information for this location.

This API call is intended to compare this location against the currently known taxing authority rules and regulations, and provide information about what additional work is required to completely setup this location.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateLocationParameters(params *CreateLocationParametersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLocationParametersCreated, error)

	CreateLocations(params *CreateLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateLocationsOK, error)

	DeleteLocation(params *DeleteLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLocationOK, error)

	DeleteLocationParameter(params *DeleteLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLocationParameterOK, error)

	GetLocation(params *GetLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationOK, error)

	GetLocationParameter(params *GetLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLocationParameterOK, error)

	ListLocationParameters(params *ListLocationParametersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLocationParametersOK, error)

	ListLocationsByCompany(params *ListLocationsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListLocationsByCompanyOK, error)

	QueryLocations(params *QueryLocationsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryLocationsOK, error)

	UpdateLocation(params *UpdateLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLocationOK, error)

	UpdateLocationParameter(params *UpdateLocationParameterParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLocationParameterOK, error)

	ValidateLocation(params *ValidateLocationParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ValidateLocationOK, 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 locations API client.

type CreateLocationParametersBadRequest

type CreateLocationParametersBadRequest struct {
}
CreateLocationParametersBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCreateLocationParametersBadRequest

func NewCreateLocationParametersBadRequest() *CreateLocationParametersBadRequest

NewCreateLocationParametersBadRequest creates a CreateLocationParametersBadRequest with default headers values

func (*CreateLocationParametersBadRequest) Error

type CreateLocationParametersCreated

type CreateLocationParametersCreated struct {
	Payload []*models.LocationParameterModel
}
CreateLocationParametersCreated describes a response with status code 201, with default header values.

Success

func NewCreateLocationParametersCreated

func NewCreateLocationParametersCreated() *CreateLocationParametersCreated

NewCreateLocationParametersCreated creates a CreateLocationParametersCreated with default headers values

func (*CreateLocationParametersCreated) Error

func (*CreateLocationParametersCreated) GetPayload

type CreateLocationParametersNotFound

type CreateLocationParametersNotFound struct {
}
CreateLocationParametersNotFound describes a response with status code 404, with default header values.

Not Found

func NewCreateLocationParametersNotFound

func NewCreateLocationParametersNotFound() *CreateLocationParametersNotFound

NewCreateLocationParametersNotFound creates a CreateLocationParametersNotFound with default headers values

func (*CreateLocationParametersNotFound) Error

type CreateLocationParametersParams

type CreateLocationParametersParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The location parameters you wish to create.
	*/
	Body []*models.LocationParameterModel

	/* CompanyID.

	   The ID of the company that owns this location parameter.

	   Format: int32
	*/
	CompanyID int32

	/* LocationID.

	   The location id.

	   Format: int32
	*/
	LocationID int32

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

CreateLocationParametersParams contains all the parameters to send to the API endpoint

for the create location parameters operation.

Typically these are written to a http.Request.

func NewCreateLocationParametersParams

func NewCreateLocationParametersParams() *CreateLocationParametersParams

NewCreateLocationParametersParams creates a new CreateLocationParametersParams 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 NewCreateLocationParametersParamsWithContext

func NewCreateLocationParametersParamsWithContext(ctx context.Context) *CreateLocationParametersParams

NewCreateLocationParametersParamsWithContext creates a new CreateLocationParametersParams object with the ability to set a context for a request.

func NewCreateLocationParametersParamsWithHTTPClient

func NewCreateLocationParametersParamsWithHTTPClient(client *http.Client) *CreateLocationParametersParams

NewCreateLocationParametersParamsWithHTTPClient creates a new CreateLocationParametersParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLocationParametersParamsWithTimeout

func NewCreateLocationParametersParamsWithTimeout(timeout time.Duration) *CreateLocationParametersParams

NewCreateLocationParametersParamsWithTimeout creates a new CreateLocationParametersParams object with the ability to set a timeout on a request.

func (*CreateLocationParametersParams) SetBody

SetBody adds the body to the create location parameters params

func (*CreateLocationParametersParams) SetCompanyID

func (o *CreateLocationParametersParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create location parameters params

func (*CreateLocationParametersParams) SetContext

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

SetContext adds the context to the create location parameters params

func (*CreateLocationParametersParams) SetDefaults

func (o *CreateLocationParametersParams) SetDefaults()

SetDefaults hydrates default values in the create location parameters params (not the query body).

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

func (*CreateLocationParametersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create location parameters params

func (*CreateLocationParametersParams) SetLocationID

func (o *CreateLocationParametersParams) SetLocationID(locationID int32)

SetLocationID adds the locationId to the create location parameters params

func (*CreateLocationParametersParams) SetTimeout

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

SetTimeout adds the timeout to the create location parameters params

func (*CreateLocationParametersParams) SetXAvalaraClient

func (o *CreateLocationParametersParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the create location parameters params

func (*CreateLocationParametersParams) WithBody

WithBody adds the body to the create location parameters params

func (*CreateLocationParametersParams) WithCompanyID

WithCompanyID adds the companyID to the create location parameters params

func (*CreateLocationParametersParams) WithContext

WithContext adds the context to the create location parameters params

func (*CreateLocationParametersParams) WithDefaults

WithDefaults hydrates default values in the create location parameters params (not the query body).

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

func (*CreateLocationParametersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create location parameters params

func (*CreateLocationParametersParams) WithLocationID

WithLocationID adds the locationID to the create location parameters params

func (*CreateLocationParametersParams) WithTimeout

WithTimeout adds the timeout to the create location parameters params

func (*CreateLocationParametersParams) WithXAvalaraClient

func (o *CreateLocationParametersParams) WithXAvalaraClient(xAvalaraClient *string) *CreateLocationParametersParams

WithXAvalaraClient adds the xAvalaraClient to the create location parameters params

func (*CreateLocationParametersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateLocationParametersReader

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

CreateLocationParametersReader is a Reader for the CreateLocationParameters structure.

func (*CreateLocationParametersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLocationParametersUnauthorized

type CreateLocationParametersUnauthorized struct {
}
CreateLocationParametersUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateLocationParametersUnauthorized

func NewCreateLocationParametersUnauthorized() *CreateLocationParametersUnauthorized

NewCreateLocationParametersUnauthorized creates a CreateLocationParametersUnauthorized with default headers values

func (*CreateLocationParametersUnauthorized) Error

type CreateLocationsBadRequest

type CreateLocationsBadRequest struct {
}
CreateLocationsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCreateLocationsBadRequest

func NewCreateLocationsBadRequest() *CreateLocationsBadRequest

NewCreateLocationsBadRequest creates a CreateLocationsBadRequest with default headers values

func (*CreateLocationsBadRequest) Error

func (o *CreateLocationsBadRequest) Error() string

type CreateLocationsNotFound

type CreateLocationsNotFound struct {
}
CreateLocationsNotFound describes a response with status code 404, with default header values.

Not Found

func NewCreateLocationsNotFound

func NewCreateLocationsNotFound() *CreateLocationsNotFound

NewCreateLocationsNotFound creates a CreateLocationsNotFound with default headers values

func (*CreateLocationsNotFound) Error

func (o *CreateLocationsNotFound) Error() string

type CreateLocationsOK

type CreateLocationsOK struct {
	Payload []*models.LocationModel
}
CreateLocationsOK describes a response with status code 200, with default header values.

Success

func NewCreateLocationsOK

func NewCreateLocationsOK() *CreateLocationsOK

NewCreateLocationsOK creates a CreateLocationsOK with default headers values

func (*CreateLocationsOK) Error

func (o *CreateLocationsOK) Error() string

func (*CreateLocationsOK) GetPayload

func (o *CreateLocationsOK) GetPayload() []*models.LocationModel

type CreateLocationsParams

type CreateLocationsParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The location you wish to create.
	*/
	Body []*models.LocationModel

	/* CompanyID.

	   The ID of the company that owns this location.

	   Format: int32
	*/
	CompanyID int32

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

CreateLocationsParams contains all the parameters to send to the API endpoint

for the create locations operation.

Typically these are written to a http.Request.

func NewCreateLocationsParams

func NewCreateLocationsParams() *CreateLocationsParams

NewCreateLocationsParams creates a new CreateLocationsParams 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 NewCreateLocationsParamsWithContext

func NewCreateLocationsParamsWithContext(ctx context.Context) *CreateLocationsParams

NewCreateLocationsParamsWithContext creates a new CreateLocationsParams object with the ability to set a context for a request.

func NewCreateLocationsParamsWithHTTPClient

func NewCreateLocationsParamsWithHTTPClient(client *http.Client) *CreateLocationsParams

NewCreateLocationsParamsWithHTTPClient creates a new CreateLocationsParams object with the ability to set a custom HTTPClient for a request.

func NewCreateLocationsParamsWithTimeout

func NewCreateLocationsParamsWithTimeout(timeout time.Duration) *CreateLocationsParams

NewCreateLocationsParamsWithTimeout creates a new CreateLocationsParams object with the ability to set a timeout on a request.

func (*CreateLocationsParams) SetBody

func (o *CreateLocationsParams) SetBody(body []*models.LocationModel)

SetBody adds the body to the create locations params

func (*CreateLocationsParams) SetCompanyID

func (o *CreateLocationsParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create locations params

func (*CreateLocationsParams) SetContext

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

SetContext adds the context to the create locations params

func (*CreateLocationsParams) SetDefaults

func (o *CreateLocationsParams) SetDefaults()

SetDefaults hydrates default values in the create locations params (not the query body).

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

func (*CreateLocationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create locations params

func (*CreateLocationsParams) SetTimeout

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

SetTimeout adds the timeout to the create locations params

func (*CreateLocationsParams) SetXAvalaraClient

func (o *CreateLocationsParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the create locations params

func (*CreateLocationsParams) WithBody

WithBody adds the body to the create locations params

func (*CreateLocationsParams) WithCompanyID

func (o *CreateLocationsParams) WithCompanyID(companyID int32) *CreateLocationsParams

WithCompanyID adds the companyID to the create locations params

func (*CreateLocationsParams) WithContext

WithContext adds the context to the create locations params

func (*CreateLocationsParams) WithDefaults

func (o *CreateLocationsParams) WithDefaults() *CreateLocationsParams

WithDefaults hydrates default values in the create locations params (not the query body).

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

func (*CreateLocationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create locations params

func (*CreateLocationsParams) WithTimeout

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

WithTimeout adds the timeout to the create locations params

func (*CreateLocationsParams) WithXAvalaraClient

func (o *CreateLocationsParams) WithXAvalaraClient(xAvalaraClient *string) *CreateLocationsParams

WithXAvalaraClient adds the xAvalaraClient to the create locations params

func (*CreateLocationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateLocationsReader

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

CreateLocationsReader is a Reader for the CreateLocations structure.

func (*CreateLocationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateLocationsUnauthorized

type CreateLocationsUnauthorized struct {
}
CreateLocationsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewCreateLocationsUnauthorized

func NewCreateLocationsUnauthorized() *CreateLocationsUnauthorized

NewCreateLocationsUnauthorized creates a CreateLocationsUnauthorized with default headers values

func (*CreateLocationsUnauthorized) Error

type DeleteLocationBadRequest

type DeleteLocationBadRequest struct {
}
DeleteLocationBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteLocationBadRequest

func NewDeleteLocationBadRequest() *DeleteLocationBadRequest

NewDeleteLocationBadRequest creates a DeleteLocationBadRequest with default headers values

func (*DeleteLocationBadRequest) Error

func (o *DeleteLocationBadRequest) Error() string

type DeleteLocationNotFound

type DeleteLocationNotFound struct {
}
DeleteLocationNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteLocationNotFound

func NewDeleteLocationNotFound() *DeleteLocationNotFound

NewDeleteLocationNotFound creates a DeleteLocationNotFound with default headers values

func (*DeleteLocationNotFound) Error

func (o *DeleteLocationNotFound) Error() string

type DeleteLocationOK

type DeleteLocationOK struct {
	Payload []*models.ErrorDetail
}
DeleteLocationOK describes a response with status code 200, with default header values.

Success

func NewDeleteLocationOK

func NewDeleteLocationOK() *DeleteLocationOK

NewDeleteLocationOK creates a DeleteLocationOK with default headers values

func (*DeleteLocationOK) Error

func (o *DeleteLocationOK) Error() string

func (*DeleteLocationOK) GetPayload

func (o *DeleteLocationOK) GetPayload() []*models.ErrorDetail

type DeleteLocationParameterBadRequest

type DeleteLocationParameterBadRequest struct {
}
DeleteLocationParameterBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewDeleteLocationParameterBadRequest

func NewDeleteLocationParameterBadRequest() *DeleteLocationParameterBadRequest

NewDeleteLocationParameterBadRequest creates a DeleteLocationParameterBadRequest with default headers values

func (*DeleteLocationParameterBadRequest) Error

type DeleteLocationParameterNotFound

type DeleteLocationParameterNotFound struct {
}
DeleteLocationParameterNotFound describes a response with status code 404, with default header values.

Not Found

func NewDeleteLocationParameterNotFound

func NewDeleteLocationParameterNotFound() *DeleteLocationParameterNotFound

NewDeleteLocationParameterNotFound creates a DeleteLocationParameterNotFound with default headers values

func (*DeleteLocationParameterNotFound) Error

type DeleteLocationParameterOK

type DeleteLocationParameterOK struct {
	Payload []*models.ErrorDetail
}
DeleteLocationParameterOK describes a response with status code 200, with default header values.

Success

func NewDeleteLocationParameterOK

func NewDeleteLocationParameterOK() *DeleteLocationParameterOK

NewDeleteLocationParameterOK creates a DeleteLocationParameterOK with default headers values

func (*DeleteLocationParameterOK) Error

func (o *DeleteLocationParameterOK) Error() string

func (*DeleteLocationParameterOK) GetPayload

func (o *DeleteLocationParameterOK) GetPayload() []*models.ErrorDetail

type DeleteLocationParameterParams

type DeleteLocationParameterParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The company id

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The parameter id

	   Format: int64
	*/
	ID int64

	/* LocationID.

	   The location id

	   Format: int32
	*/
	LocationID int32

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

DeleteLocationParameterParams contains all the parameters to send to the API endpoint

for the delete location parameter operation.

Typically these are written to a http.Request.

func NewDeleteLocationParameterParams

func NewDeleteLocationParameterParams() *DeleteLocationParameterParams

NewDeleteLocationParameterParams creates a new DeleteLocationParameterParams 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 NewDeleteLocationParameterParamsWithContext

func NewDeleteLocationParameterParamsWithContext(ctx context.Context) *DeleteLocationParameterParams

NewDeleteLocationParameterParamsWithContext creates a new DeleteLocationParameterParams object with the ability to set a context for a request.

func NewDeleteLocationParameterParamsWithHTTPClient

func NewDeleteLocationParameterParamsWithHTTPClient(client *http.Client) *DeleteLocationParameterParams

NewDeleteLocationParameterParamsWithHTTPClient creates a new DeleteLocationParameterParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLocationParameterParamsWithTimeout

func NewDeleteLocationParameterParamsWithTimeout(timeout time.Duration) *DeleteLocationParameterParams

NewDeleteLocationParameterParamsWithTimeout creates a new DeleteLocationParameterParams object with the ability to set a timeout on a request.

func (*DeleteLocationParameterParams) SetCompanyID

func (o *DeleteLocationParameterParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the delete location parameter params

func (*DeleteLocationParameterParams) SetContext

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

SetContext adds the context to the delete location parameter params

func (*DeleteLocationParameterParams) SetDefaults

func (o *DeleteLocationParameterParams) SetDefaults()

SetDefaults hydrates default values in the delete location parameter params (not the query body).

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

func (*DeleteLocationParameterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete location parameter params

func (*DeleteLocationParameterParams) SetID

func (o *DeleteLocationParameterParams) SetID(id int64)

SetID adds the id to the delete location parameter params

func (*DeleteLocationParameterParams) SetLocationID

func (o *DeleteLocationParameterParams) SetLocationID(locationID int32)

SetLocationID adds the locationId to the delete location parameter params

func (*DeleteLocationParameterParams) SetTimeout

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

SetTimeout adds the timeout to the delete location parameter params

func (*DeleteLocationParameterParams) SetXAvalaraClient

func (o *DeleteLocationParameterParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the delete location parameter params

func (*DeleteLocationParameterParams) WithCompanyID

WithCompanyID adds the companyID to the delete location parameter params

func (*DeleteLocationParameterParams) WithContext

WithContext adds the context to the delete location parameter params

func (*DeleteLocationParameterParams) WithDefaults

WithDefaults hydrates default values in the delete location parameter params (not the query body).

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

func (*DeleteLocationParameterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete location parameter params

func (*DeleteLocationParameterParams) WithID

WithID adds the id to the delete location parameter params

func (*DeleteLocationParameterParams) WithLocationID

func (o *DeleteLocationParameterParams) WithLocationID(locationID int32) *DeleteLocationParameterParams

WithLocationID adds the locationID to the delete location parameter params

func (*DeleteLocationParameterParams) WithTimeout

WithTimeout adds the timeout to the delete location parameter params

func (*DeleteLocationParameterParams) WithXAvalaraClient

func (o *DeleteLocationParameterParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteLocationParameterParams

WithXAvalaraClient adds the xAvalaraClient to the delete location parameter params

func (*DeleteLocationParameterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLocationParameterReader

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

DeleteLocationParameterReader is a Reader for the DeleteLocationParameter structure.

func (*DeleteLocationParameterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLocationParameterUnauthorized

type DeleteLocationParameterUnauthorized struct {
}
DeleteLocationParameterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteLocationParameterUnauthorized

func NewDeleteLocationParameterUnauthorized() *DeleteLocationParameterUnauthorized

NewDeleteLocationParameterUnauthorized creates a DeleteLocationParameterUnauthorized with default headers values

func (*DeleteLocationParameterUnauthorized) Error

type DeleteLocationParams

type DeleteLocationParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The ID of the company that owns this location.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The ID of the location you wish to delete.

	   Format: int32
	*/
	ID int32

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

DeleteLocationParams contains all the parameters to send to the API endpoint

for the delete location operation.

Typically these are written to a http.Request.

func NewDeleteLocationParams

func NewDeleteLocationParams() *DeleteLocationParams

NewDeleteLocationParams creates a new DeleteLocationParams 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 NewDeleteLocationParamsWithContext

func NewDeleteLocationParamsWithContext(ctx context.Context) *DeleteLocationParams

NewDeleteLocationParamsWithContext creates a new DeleteLocationParams object with the ability to set a context for a request.

func NewDeleteLocationParamsWithHTTPClient

func NewDeleteLocationParamsWithHTTPClient(client *http.Client) *DeleteLocationParams

NewDeleteLocationParamsWithHTTPClient creates a new DeleteLocationParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLocationParamsWithTimeout

func NewDeleteLocationParamsWithTimeout(timeout time.Duration) *DeleteLocationParams

NewDeleteLocationParamsWithTimeout creates a new DeleteLocationParams object with the ability to set a timeout on a request.

func (*DeleteLocationParams) SetCompanyID

func (o *DeleteLocationParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the delete location params

func (*DeleteLocationParams) SetContext

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

SetContext adds the context to the delete location params

func (*DeleteLocationParams) SetDefaults

func (o *DeleteLocationParams) SetDefaults()

SetDefaults hydrates default values in the delete location params (not the query body).

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

func (*DeleteLocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete location params

func (*DeleteLocationParams) SetID

func (o *DeleteLocationParams) SetID(id int32)

SetID adds the id to the delete location params

func (*DeleteLocationParams) SetTimeout

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

SetTimeout adds the timeout to the delete location params

func (*DeleteLocationParams) SetXAvalaraClient

func (o *DeleteLocationParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the delete location params

func (*DeleteLocationParams) WithCompanyID

func (o *DeleteLocationParams) WithCompanyID(companyID int32) *DeleteLocationParams

WithCompanyID adds the companyID to the delete location params

func (*DeleteLocationParams) WithContext

WithContext adds the context to the delete location params

func (*DeleteLocationParams) WithDefaults

func (o *DeleteLocationParams) WithDefaults() *DeleteLocationParams

WithDefaults hydrates default values in the delete location params (not the query body).

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

func (*DeleteLocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete location params

func (*DeleteLocationParams) WithID

WithID adds the id to the delete location params

func (*DeleteLocationParams) WithTimeout

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

WithTimeout adds the timeout to the delete location params

func (*DeleteLocationParams) WithXAvalaraClient

func (o *DeleteLocationParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteLocationParams

WithXAvalaraClient adds the xAvalaraClient to the delete location params

func (*DeleteLocationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLocationReader

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

DeleteLocationReader is a Reader for the DeleteLocation structure.

func (*DeleteLocationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLocationUnauthorized

type DeleteLocationUnauthorized struct {
}
DeleteLocationUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewDeleteLocationUnauthorized

func NewDeleteLocationUnauthorized() *DeleteLocationUnauthorized

NewDeleteLocationUnauthorized creates a DeleteLocationUnauthorized with default headers values

func (*DeleteLocationUnauthorized) Error

type GetLocationBadRequest

type GetLocationBadRequest struct {
}
GetLocationBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetLocationBadRequest

func NewGetLocationBadRequest() *GetLocationBadRequest

NewGetLocationBadRequest creates a GetLocationBadRequest with default headers values

func (*GetLocationBadRequest) Error

func (o *GetLocationBadRequest) Error() string

type GetLocationNotFound

type GetLocationNotFound struct {
}
GetLocationNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetLocationNotFound

func NewGetLocationNotFound() *GetLocationNotFound

NewGetLocationNotFound creates a GetLocationNotFound with default headers values

func (*GetLocationNotFound) Error

func (o *GetLocationNotFound) Error() string

type GetLocationOK

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

Success

func NewGetLocationOK

func NewGetLocationOK() *GetLocationOK

NewGetLocationOK creates a GetLocationOK with default headers values

func (*GetLocationOK) Error

func (o *GetLocationOK) Error() string

func (*GetLocationOK) GetPayload

func (o *GetLocationOK) GetPayload() *models.LocationModel

type GetLocationParameterBadRequest

type GetLocationParameterBadRequest struct {
}
GetLocationParameterBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewGetLocationParameterBadRequest

func NewGetLocationParameterBadRequest() *GetLocationParameterBadRequest

NewGetLocationParameterBadRequest creates a GetLocationParameterBadRequest with default headers values

func (*GetLocationParameterBadRequest) Error

type GetLocationParameterNotFound

type GetLocationParameterNotFound struct {
}
GetLocationParameterNotFound describes a response with status code 404, with default header values.

Not Found

func NewGetLocationParameterNotFound

func NewGetLocationParameterNotFound() *GetLocationParameterNotFound

NewGetLocationParameterNotFound creates a GetLocationParameterNotFound with default headers values

func (*GetLocationParameterNotFound) Error

type GetLocationParameterOK

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

Success

func NewGetLocationParameterOK

func NewGetLocationParameterOK() *GetLocationParameterOK

NewGetLocationParameterOK creates a GetLocationParameterOK with default headers values

func (*GetLocationParameterOK) Error

func (o *GetLocationParameterOK) Error() string

func (*GetLocationParameterOK) GetPayload

type GetLocationParameterParams

type GetLocationParameterParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The company id

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The parameter id

	   Format: int64
	*/
	ID int64

	/* LocationID.

	   The location id

	   Format: int32
	*/
	LocationID int32

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

GetLocationParameterParams contains all the parameters to send to the API endpoint

for the get location parameter operation.

Typically these are written to a http.Request.

func NewGetLocationParameterParams

func NewGetLocationParameterParams() *GetLocationParameterParams

NewGetLocationParameterParams creates a new GetLocationParameterParams 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 NewGetLocationParameterParamsWithContext

func NewGetLocationParameterParamsWithContext(ctx context.Context) *GetLocationParameterParams

NewGetLocationParameterParamsWithContext creates a new GetLocationParameterParams object with the ability to set a context for a request.

func NewGetLocationParameterParamsWithHTTPClient

func NewGetLocationParameterParamsWithHTTPClient(client *http.Client) *GetLocationParameterParams

NewGetLocationParameterParamsWithHTTPClient creates a new GetLocationParameterParams object with the ability to set a custom HTTPClient for a request.

func NewGetLocationParameterParamsWithTimeout

func NewGetLocationParameterParamsWithTimeout(timeout time.Duration) *GetLocationParameterParams

NewGetLocationParameterParamsWithTimeout creates a new GetLocationParameterParams object with the ability to set a timeout on a request.

func (*GetLocationParameterParams) SetCompanyID

func (o *GetLocationParameterParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get location parameter params

func (*GetLocationParameterParams) SetContext

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

SetContext adds the context to the get location parameter params

func (*GetLocationParameterParams) SetDefaults

func (o *GetLocationParameterParams) SetDefaults()

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

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

func (*GetLocationParameterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get location parameter params

func (*GetLocationParameterParams) SetID

func (o *GetLocationParameterParams) SetID(id int64)

SetID adds the id to the get location parameter params

func (*GetLocationParameterParams) SetLocationID

func (o *GetLocationParameterParams) SetLocationID(locationID int32)

SetLocationID adds the locationId to the get location parameter params

func (*GetLocationParameterParams) SetTimeout

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

SetTimeout adds the timeout to the get location parameter params

func (*GetLocationParameterParams) SetXAvalaraClient

func (o *GetLocationParameterParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the get location parameter params

func (*GetLocationParameterParams) WithCompanyID

func (o *GetLocationParameterParams) WithCompanyID(companyID int32) *GetLocationParameterParams

WithCompanyID adds the companyID to the get location parameter params

func (*GetLocationParameterParams) WithContext

WithContext adds the context to the get location parameter params

func (*GetLocationParameterParams) WithDefaults

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

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

func (*GetLocationParameterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get location parameter params

func (*GetLocationParameterParams) WithID

WithID adds the id to the get location parameter params

func (*GetLocationParameterParams) WithLocationID

func (o *GetLocationParameterParams) WithLocationID(locationID int32) *GetLocationParameterParams

WithLocationID adds the locationID to the get location parameter params

func (*GetLocationParameterParams) WithTimeout

WithTimeout adds the timeout to the get location parameter params

func (*GetLocationParameterParams) WithXAvalaraClient

func (o *GetLocationParameterParams) WithXAvalaraClient(xAvalaraClient *string) *GetLocationParameterParams

WithXAvalaraClient adds the xAvalaraClient to the get location parameter params

func (*GetLocationParameterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetLocationParameterReader

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

GetLocationParameterReader is a Reader for the GetLocationParameter structure.

func (*GetLocationParameterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLocationParameterUnauthorized

type GetLocationParameterUnauthorized struct {
}
GetLocationParameterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetLocationParameterUnauthorized

func NewGetLocationParameterUnauthorized() *GetLocationParameterUnauthorized

NewGetLocationParameterUnauthorized creates a GetLocationParameterUnauthorized with default headers values

func (*GetLocationParameterUnauthorized) Error

type GetLocationParams

type GetLocationParams struct {

	/* DollarInclude.

	   A comma separated list of additional data to retrieve.
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The ID of the company that owns this location

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The primary key of this location

	   Format: int32
	*/
	ID int32

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

GetLocationParams contains all the parameters to send to the API endpoint

for the get location operation.

Typically these are written to a http.Request.

func NewGetLocationParams

func NewGetLocationParams() *GetLocationParams

NewGetLocationParams creates a new GetLocationParams 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 NewGetLocationParamsWithContext

func NewGetLocationParamsWithContext(ctx context.Context) *GetLocationParams

NewGetLocationParamsWithContext creates a new GetLocationParams object with the ability to set a context for a request.

func NewGetLocationParamsWithHTTPClient

func NewGetLocationParamsWithHTTPClient(client *http.Client) *GetLocationParams

NewGetLocationParamsWithHTTPClient creates a new GetLocationParams object with the ability to set a custom HTTPClient for a request.

func NewGetLocationParamsWithTimeout

func NewGetLocationParamsWithTimeout(timeout time.Duration) *GetLocationParams

NewGetLocationParamsWithTimeout creates a new GetLocationParams object with the ability to set a timeout on a request.

func (*GetLocationParams) SetCompanyID

func (o *GetLocationParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get location params

func (*GetLocationParams) SetContext

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

SetContext adds the context to the get location params

func (*GetLocationParams) SetDefaults

func (o *GetLocationParams) SetDefaults()

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

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

func (*GetLocationParams) SetDollarInclude

func (o *GetLocationParams) SetDollarInclude(dollarInclude *string)

SetDollarInclude adds the dollarInclude to the get location params

func (*GetLocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get location params

func (*GetLocationParams) SetID

func (o *GetLocationParams) SetID(id int32)

SetID adds the id to the get location params

func (*GetLocationParams) SetTimeout

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

SetTimeout adds the timeout to the get location params

func (*GetLocationParams) SetXAvalaraClient

func (o *GetLocationParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the get location params

func (*GetLocationParams) WithCompanyID

func (o *GetLocationParams) WithCompanyID(companyID int32) *GetLocationParams

WithCompanyID adds the companyID to the get location params

func (*GetLocationParams) WithContext

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

WithContext adds the context to the get location params

func (*GetLocationParams) WithDefaults

func (o *GetLocationParams) WithDefaults() *GetLocationParams

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

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

func (*GetLocationParams) WithDollarInclude

func (o *GetLocationParams) WithDollarInclude(dollarInclude *string) *GetLocationParams

WithDollarInclude adds the dollarInclude to the get location params

func (*GetLocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get location params

func (*GetLocationParams) WithID

func (o *GetLocationParams) WithID(id int32) *GetLocationParams

WithID adds the id to the get location params

func (*GetLocationParams) WithTimeout

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

WithTimeout adds the timeout to the get location params

func (*GetLocationParams) WithXAvalaraClient

func (o *GetLocationParams) WithXAvalaraClient(xAvalaraClient *string) *GetLocationParams

WithXAvalaraClient adds the xAvalaraClient to the get location params

func (*GetLocationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLocationReader

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

GetLocationReader is a Reader for the GetLocation structure.

func (*GetLocationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLocationUnauthorized

type GetLocationUnauthorized struct {
}
GetLocationUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetLocationUnauthorized

func NewGetLocationUnauthorized() *GetLocationUnauthorized

NewGetLocationUnauthorized creates a GetLocationUnauthorized with default headers values

func (*GetLocationUnauthorized) Error

func (o *GetLocationUnauthorized) Error() string

type ListLocationParametersBadRequest

type ListLocationParametersBadRequest struct {
}
ListLocationParametersBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewListLocationParametersBadRequest

func NewListLocationParametersBadRequest() *ListLocationParametersBadRequest

NewListLocationParametersBadRequest creates a ListLocationParametersBadRequest with default headers values

func (*ListLocationParametersBadRequest) Error

type ListLocationParametersNotFound

type ListLocationParametersNotFound struct {
}
ListLocationParametersNotFound describes a response with status code 404, with default header values.

Not Found

func NewListLocationParametersNotFound

func NewListLocationParametersNotFound() *ListLocationParametersNotFound

NewListLocationParametersNotFound creates a ListLocationParametersNotFound with default headers values

func (*ListLocationParametersNotFound) Error

type ListLocationParametersOK

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

Success

func NewListLocationParametersOK

func NewListLocationParametersOK() *ListLocationParametersOK

NewListLocationParametersOK creates a ListLocationParametersOK with default headers values

func (*ListLocationParametersOK) Error

func (o *ListLocationParametersOK) Error() string

func (*ListLocationParametersOK) GetPayload

type ListLocationParametersParams

type ListLocationParametersParams struct {

	/* DollarFilter.

	   A filter statement to identify specific records to retrieve.  For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* name, unit
	*/
	DollarFilter *string

	/* DollarOrderBy.

	   A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
	*/
	DollarOrderBy *string

	/* DollarSkip.

	   If nonzero, skip this number of results before returning data.  Used with `$top` to provide pagination for large datasets.

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   If nonzero, return no more than this number of results.  Used with `$skip` to provide pagination for large datasets.  Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The company id

	   Format: int32
	*/
	CompanyID int32

	/* LocationID.

	   The ID of the location

	   Format: int32
	*/
	LocationID int32

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

ListLocationParametersParams contains all the parameters to send to the API endpoint

for the list location parameters operation.

Typically these are written to a http.Request.

func NewListLocationParametersParams

func NewListLocationParametersParams() *ListLocationParametersParams

NewListLocationParametersParams creates a new ListLocationParametersParams 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 NewListLocationParametersParamsWithContext

func NewListLocationParametersParamsWithContext(ctx context.Context) *ListLocationParametersParams

NewListLocationParametersParamsWithContext creates a new ListLocationParametersParams object with the ability to set a context for a request.

func NewListLocationParametersParamsWithHTTPClient

func NewListLocationParametersParamsWithHTTPClient(client *http.Client) *ListLocationParametersParams

NewListLocationParametersParamsWithHTTPClient creates a new ListLocationParametersParams object with the ability to set a custom HTTPClient for a request.

func NewListLocationParametersParamsWithTimeout

func NewListLocationParametersParamsWithTimeout(timeout time.Duration) *ListLocationParametersParams

NewListLocationParametersParamsWithTimeout creates a new ListLocationParametersParams object with the ability to set a timeout on a request.

func (*ListLocationParametersParams) SetCompanyID

func (o *ListLocationParametersParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list location parameters params

func (*ListLocationParametersParams) SetContext

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

SetContext adds the context to the list location parameters params

func (*ListLocationParametersParams) SetDefaults

func (o *ListLocationParametersParams) SetDefaults()

SetDefaults hydrates default values in the list location parameters params (not the query body).

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

func (*ListLocationParametersParams) SetDollarFilter

func (o *ListLocationParametersParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the list location parameters params

func (*ListLocationParametersParams) SetDollarOrderBy

func (o *ListLocationParametersParams) SetDollarOrderBy(dollarOrderBy *string)

SetDollarOrderBy adds the dollarOrderBy to the list location parameters params

func (*ListLocationParametersParams) SetDollarSkip

func (o *ListLocationParametersParams) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the list location parameters params

func (*ListLocationParametersParams) SetDollarTop

func (o *ListLocationParametersParams) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the list location parameters params

func (*ListLocationParametersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list location parameters params

func (*ListLocationParametersParams) SetLocationID

func (o *ListLocationParametersParams) SetLocationID(locationID int32)

SetLocationID adds the locationId to the list location parameters params

func (*ListLocationParametersParams) SetTimeout

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

SetTimeout adds the timeout to the list location parameters params

func (*ListLocationParametersParams) SetXAvalaraClient

func (o *ListLocationParametersParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the list location parameters params

func (*ListLocationParametersParams) WithCompanyID

WithCompanyID adds the companyID to the list location parameters params

func (*ListLocationParametersParams) WithContext

WithContext adds the context to the list location parameters params

func (*ListLocationParametersParams) WithDefaults

WithDefaults hydrates default values in the list location parameters params (not the query body).

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

func (*ListLocationParametersParams) WithDollarFilter

func (o *ListLocationParametersParams) WithDollarFilter(dollarFilter *string) *ListLocationParametersParams

WithDollarFilter adds the dollarFilter to the list location parameters params

func (*ListLocationParametersParams) WithDollarOrderBy

func (o *ListLocationParametersParams) WithDollarOrderBy(dollarOrderBy *string) *ListLocationParametersParams

WithDollarOrderBy adds the dollarOrderBy to the list location parameters params

func (*ListLocationParametersParams) WithDollarSkip

func (o *ListLocationParametersParams) WithDollarSkip(dollarSkip *int32) *ListLocationParametersParams

WithDollarSkip adds the dollarSkip to the list location parameters params

func (*ListLocationParametersParams) WithDollarTop

func (o *ListLocationParametersParams) WithDollarTop(dollarTop *int32) *ListLocationParametersParams

WithDollarTop adds the dollarTop to the list location parameters params

func (*ListLocationParametersParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list location parameters params

func (*ListLocationParametersParams) WithLocationID

func (o *ListLocationParametersParams) WithLocationID(locationID int32) *ListLocationParametersParams

WithLocationID adds the locationID to the list location parameters params

func (*ListLocationParametersParams) WithTimeout

WithTimeout adds the timeout to the list location parameters params

func (*ListLocationParametersParams) WithXAvalaraClient

func (o *ListLocationParametersParams) WithXAvalaraClient(xAvalaraClient *string) *ListLocationParametersParams

WithXAvalaraClient adds the xAvalaraClient to the list location parameters params

func (*ListLocationParametersParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLocationParametersReader

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

ListLocationParametersReader is a Reader for the ListLocationParameters structure.

func (*ListLocationParametersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLocationParametersUnauthorized

type ListLocationParametersUnauthorized struct {
}
ListLocationParametersUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListLocationParametersUnauthorized

func NewListLocationParametersUnauthorized() *ListLocationParametersUnauthorized

NewListLocationParametersUnauthorized creates a ListLocationParametersUnauthorized with default headers values

func (*ListLocationParametersUnauthorized) Error

type ListLocationsByCompanyBadRequest

type ListLocationsByCompanyBadRequest struct {
}
ListLocationsByCompanyBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewListLocationsByCompanyBadRequest

func NewListLocationsByCompanyBadRequest() *ListLocationsByCompanyBadRequest

NewListLocationsByCompanyBadRequest creates a ListLocationsByCompanyBadRequest with default headers values

func (*ListLocationsByCompanyBadRequest) Error

type ListLocationsByCompanyNotFound

type ListLocationsByCompanyNotFound struct {
}
ListLocationsByCompanyNotFound describes a response with status code 404, with default header values.

Not Found

func NewListLocationsByCompanyNotFound

func NewListLocationsByCompanyNotFound() *ListLocationsByCompanyNotFound

NewListLocationsByCompanyNotFound creates a ListLocationsByCompanyNotFound with default headers values

func (*ListLocationsByCompanyNotFound) Error

type ListLocationsByCompanyOK

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

Success

func NewListLocationsByCompanyOK

func NewListLocationsByCompanyOK() *ListLocationsByCompanyOK

NewListLocationsByCompanyOK creates a ListLocationsByCompanyOK with default headers values

func (*ListLocationsByCompanyOK) Error

func (o *ListLocationsByCompanyOK) Error() string

func (*ListLocationsByCompanyOK) GetPayload

type ListLocationsByCompanyParams

type ListLocationsByCompanyParams struct {

	/* DollarFilter.

	   A filter statement to identify specific records to retrieve.  For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* isMarketplaceOutsideUsa, settings, parameters
	*/
	DollarFilter *string

	/* DollarInclude.

	   A comma separated list of additional data to retrieve.
	*/
	DollarInclude *string

	/* DollarOrderBy.

	   A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
	*/
	DollarOrderBy *string

	/* DollarSkip.

	   If nonzero, skip this number of results before returning data.  Used with `$top` to provide pagination for large datasets.

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   If nonzero, return no more than this number of results.  Used with `$skip` to provide pagination for large datasets.  Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The ID of the company that owns these locations

	   Format: int32
	*/
	CompanyID int32

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

ListLocationsByCompanyParams contains all the parameters to send to the API endpoint

for the list locations by company operation.

Typically these are written to a http.Request.

func NewListLocationsByCompanyParams

func NewListLocationsByCompanyParams() *ListLocationsByCompanyParams

NewListLocationsByCompanyParams creates a new ListLocationsByCompanyParams 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 NewListLocationsByCompanyParamsWithContext

func NewListLocationsByCompanyParamsWithContext(ctx context.Context) *ListLocationsByCompanyParams

NewListLocationsByCompanyParamsWithContext creates a new ListLocationsByCompanyParams object with the ability to set a context for a request.

func NewListLocationsByCompanyParamsWithHTTPClient

func NewListLocationsByCompanyParamsWithHTTPClient(client *http.Client) *ListLocationsByCompanyParams

NewListLocationsByCompanyParamsWithHTTPClient creates a new ListLocationsByCompanyParams object with the ability to set a custom HTTPClient for a request.

func NewListLocationsByCompanyParamsWithTimeout

func NewListLocationsByCompanyParamsWithTimeout(timeout time.Duration) *ListLocationsByCompanyParams

NewListLocationsByCompanyParamsWithTimeout creates a new ListLocationsByCompanyParams object with the ability to set a timeout on a request.

func (*ListLocationsByCompanyParams) SetCompanyID

func (o *ListLocationsByCompanyParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list locations by company params

func (*ListLocationsByCompanyParams) SetContext

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

SetContext adds the context to the list locations by company params

func (*ListLocationsByCompanyParams) SetDefaults

func (o *ListLocationsByCompanyParams) SetDefaults()

SetDefaults hydrates default values in the list locations by company params (not the query body).

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

func (*ListLocationsByCompanyParams) SetDollarFilter

func (o *ListLocationsByCompanyParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the list locations by company params

func (*ListLocationsByCompanyParams) SetDollarInclude

func (o *ListLocationsByCompanyParams) SetDollarInclude(dollarInclude *string)

SetDollarInclude adds the dollarInclude to the list locations by company params

func (*ListLocationsByCompanyParams) SetDollarOrderBy

func (o *ListLocationsByCompanyParams) SetDollarOrderBy(dollarOrderBy *string)

SetDollarOrderBy adds the dollarOrderBy to the list locations by company params

func (*ListLocationsByCompanyParams) SetDollarSkip

func (o *ListLocationsByCompanyParams) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the list locations by company params

func (*ListLocationsByCompanyParams) SetDollarTop

func (o *ListLocationsByCompanyParams) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the list locations by company params

func (*ListLocationsByCompanyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list locations by company params

func (*ListLocationsByCompanyParams) SetTimeout

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

SetTimeout adds the timeout to the list locations by company params

func (*ListLocationsByCompanyParams) SetXAvalaraClient

func (o *ListLocationsByCompanyParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the list locations by company params

func (*ListLocationsByCompanyParams) WithCompanyID

WithCompanyID adds the companyID to the list locations by company params

func (*ListLocationsByCompanyParams) WithContext

WithContext adds the context to the list locations by company params

func (*ListLocationsByCompanyParams) WithDefaults

WithDefaults hydrates default values in the list locations by company params (not the query body).

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

func (*ListLocationsByCompanyParams) WithDollarFilter

func (o *ListLocationsByCompanyParams) WithDollarFilter(dollarFilter *string) *ListLocationsByCompanyParams

WithDollarFilter adds the dollarFilter to the list locations by company params

func (*ListLocationsByCompanyParams) WithDollarInclude

func (o *ListLocationsByCompanyParams) WithDollarInclude(dollarInclude *string) *ListLocationsByCompanyParams

WithDollarInclude adds the dollarInclude to the list locations by company params

func (*ListLocationsByCompanyParams) WithDollarOrderBy

func (o *ListLocationsByCompanyParams) WithDollarOrderBy(dollarOrderBy *string) *ListLocationsByCompanyParams

WithDollarOrderBy adds the dollarOrderBy to the list locations by company params

func (*ListLocationsByCompanyParams) WithDollarSkip

func (o *ListLocationsByCompanyParams) WithDollarSkip(dollarSkip *int32) *ListLocationsByCompanyParams

WithDollarSkip adds the dollarSkip to the list locations by company params

func (*ListLocationsByCompanyParams) WithDollarTop

func (o *ListLocationsByCompanyParams) WithDollarTop(dollarTop *int32) *ListLocationsByCompanyParams

WithDollarTop adds the dollarTop to the list locations by company params

func (*ListLocationsByCompanyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list locations by company params

func (*ListLocationsByCompanyParams) WithTimeout

WithTimeout adds the timeout to the list locations by company params

func (*ListLocationsByCompanyParams) WithXAvalaraClient

func (o *ListLocationsByCompanyParams) WithXAvalaraClient(xAvalaraClient *string) *ListLocationsByCompanyParams

WithXAvalaraClient adds the xAvalaraClient to the list locations by company params

func (*ListLocationsByCompanyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListLocationsByCompanyReader

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

ListLocationsByCompanyReader is a Reader for the ListLocationsByCompany structure.

func (*ListLocationsByCompanyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListLocationsByCompanyUnauthorized

type ListLocationsByCompanyUnauthorized struct {
}
ListLocationsByCompanyUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewListLocationsByCompanyUnauthorized

func NewListLocationsByCompanyUnauthorized() *ListLocationsByCompanyUnauthorized

NewListLocationsByCompanyUnauthorized creates a ListLocationsByCompanyUnauthorized with default headers values

func (*ListLocationsByCompanyUnauthorized) Error

type QueryLocationsBadRequest

type QueryLocationsBadRequest struct {
}
QueryLocationsBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewQueryLocationsBadRequest

func NewQueryLocationsBadRequest() *QueryLocationsBadRequest

NewQueryLocationsBadRequest creates a QueryLocationsBadRequest with default headers values

func (*QueryLocationsBadRequest) Error

func (o *QueryLocationsBadRequest) Error() string

type QueryLocationsOK

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

Success

func NewQueryLocationsOK

func NewQueryLocationsOK() *QueryLocationsOK

NewQueryLocationsOK creates a QueryLocationsOK with default headers values

func (*QueryLocationsOK) Error

func (o *QueryLocationsOK) Error() string

func (*QueryLocationsOK) GetPayload

type QueryLocationsParams

type QueryLocationsParams struct {

	/* DollarFilter.

	   A filter statement to identify specific records to retrieve.  For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* isMarketplaceOutsideUsa, settings, parameters
	*/
	DollarFilter *string

	/* DollarInclude.

	   A comma separated list of additional data to retrieve.  You may specify `LocationSettings` to retrieve location settings.
	*/
	DollarInclude *string

	/* DollarOrderBy.

	   A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
	*/
	DollarOrderBy *string

	/* DollarSkip.

	   If nonzero, skip this number of results before returning data.  Used with `$top` to provide pagination for large datasets.

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   If nonzero, return no more than this number of results.  Used with `$skip` to provide pagination for large datasets.  Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

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

QueryLocationsParams contains all the parameters to send to the API endpoint

for the query locations operation.

Typically these are written to a http.Request.

func NewQueryLocationsParams

func NewQueryLocationsParams() *QueryLocationsParams

NewQueryLocationsParams creates a new QueryLocationsParams 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 NewQueryLocationsParamsWithContext

func NewQueryLocationsParamsWithContext(ctx context.Context) *QueryLocationsParams

NewQueryLocationsParamsWithContext creates a new QueryLocationsParams object with the ability to set a context for a request.

func NewQueryLocationsParamsWithHTTPClient

func NewQueryLocationsParamsWithHTTPClient(client *http.Client) *QueryLocationsParams

NewQueryLocationsParamsWithHTTPClient creates a new QueryLocationsParams object with the ability to set a custom HTTPClient for a request.

func NewQueryLocationsParamsWithTimeout

func NewQueryLocationsParamsWithTimeout(timeout time.Duration) *QueryLocationsParams

NewQueryLocationsParamsWithTimeout creates a new QueryLocationsParams object with the ability to set a timeout on a request.

func (*QueryLocationsParams) SetContext

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

SetContext adds the context to the query locations params

func (*QueryLocationsParams) SetDefaults

func (o *QueryLocationsParams) SetDefaults()

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

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

func (*QueryLocationsParams) SetDollarFilter

func (o *QueryLocationsParams) SetDollarFilter(dollarFilter *string)

SetDollarFilter adds the dollarFilter to the query locations params

func (*QueryLocationsParams) SetDollarInclude

func (o *QueryLocationsParams) SetDollarInclude(dollarInclude *string)

SetDollarInclude adds the dollarInclude to the query locations params

func (*QueryLocationsParams) SetDollarOrderBy

func (o *QueryLocationsParams) SetDollarOrderBy(dollarOrderBy *string)

SetDollarOrderBy adds the dollarOrderBy to the query locations params

func (*QueryLocationsParams) SetDollarSkip

func (o *QueryLocationsParams) SetDollarSkip(dollarSkip *int32)

SetDollarSkip adds the dollarSkip to the query locations params

func (*QueryLocationsParams) SetDollarTop

func (o *QueryLocationsParams) SetDollarTop(dollarTop *int32)

SetDollarTop adds the dollarTop to the query locations params

func (*QueryLocationsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query locations params

func (*QueryLocationsParams) SetTimeout

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

SetTimeout adds the timeout to the query locations params

func (*QueryLocationsParams) SetXAvalaraClient

func (o *QueryLocationsParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the query locations params

func (*QueryLocationsParams) WithContext

WithContext adds the context to the query locations params

func (*QueryLocationsParams) WithDefaults

func (o *QueryLocationsParams) WithDefaults() *QueryLocationsParams

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

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

func (*QueryLocationsParams) WithDollarFilter

func (o *QueryLocationsParams) WithDollarFilter(dollarFilter *string) *QueryLocationsParams

WithDollarFilter adds the dollarFilter to the query locations params

func (*QueryLocationsParams) WithDollarInclude

func (o *QueryLocationsParams) WithDollarInclude(dollarInclude *string) *QueryLocationsParams

WithDollarInclude adds the dollarInclude to the query locations params

func (*QueryLocationsParams) WithDollarOrderBy

func (o *QueryLocationsParams) WithDollarOrderBy(dollarOrderBy *string) *QueryLocationsParams

WithDollarOrderBy adds the dollarOrderBy to the query locations params

func (*QueryLocationsParams) WithDollarSkip

func (o *QueryLocationsParams) WithDollarSkip(dollarSkip *int32) *QueryLocationsParams

WithDollarSkip adds the dollarSkip to the query locations params

func (*QueryLocationsParams) WithDollarTop

func (o *QueryLocationsParams) WithDollarTop(dollarTop *int32) *QueryLocationsParams

WithDollarTop adds the dollarTop to the query locations params

func (*QueryLocationsParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query locations params

func (*QueryLocationsParams) WithTimeout

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

WithTimeout adds the timeout to the query locations params

func (*QueryLocationsParams) WithXAvalaraClient

func (o *QueryLocationsParams) WithXAvalaraClient(xAvalaraClient *string) *QueryLocationsParams

WithXAvalaraClient adds the xAvalaraClient to the query locations params

func (*QueryLocationsParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryLocationsReader

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

QueryLocationsReader is a Reader for the QueryLocations structure.

func (*QueryLocationsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryLocationsUnauthorized

type QueryLocationsUnauthorized struct {
}
QueryLocationsUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewQueryLocationsUnauthorized

func NewQueryLocationsUnauthorized() *QueryLocationsUnauthorized

NewQueryLocationsUnauthorized creates a QueryLocationsUnauthorized with default headers values

func (*QueryLocationsUnauthorized) Error

type UpdateLocationBadRequest

type UpdateLocationBadRequest struct {
}
UpdateLocationBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUpdateLocationBadRequest

func NewUpdateLocationBadRequest() *UpdateLocationBadRequest

NewUpdateLocationBadRequest creates a UpdateLocationBadRequest with default headers values

func (*UpdateLocationBadRequest) Error

func (o *UpdateLocationBadRequest) Error() string

type UpdateLocationNotFound

type UpdateLocationNotFound struct {
}
UpdateLocationNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateLocationNotFound

func NewUpdateLocationNotFound() *UpdateLocationNotFound

NewUpdateLocationNotFound creates a UpdateLocationNotFound with default headers values

func (*UpdateLocationNotFound) Error

func (o *UpdateLocationNotFound) Error() string

type UpdateLocationOK

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

Success

func NewUpdateLocationOK

func NewUpdateLocationOK() *UpdateLocationOK

NewUpdateLocationOK creates a UpdateLocationOK with default headers values

func (*UpdateLocationOK) Error

func (o *UpdateLocationOK) Error() string

func (*UpdateLocationOK) GetPayload

func (o *UpdateLocationOK) GetPayload() *models.LocationModel

type UpdateLocationParameterBadRequest

type UpdateLocationParameterBadRequest struct {
}
UpdateLocationParameterBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewUpdateLocationParameterBadRequest

func NewUpdateLocationParameterBadRequest() *UpdateLocationParameterBadRequest

NewUpdateLocationParameterBadRequest creates a UpdateLocationParameterBadRequest with default headers values

func (*UpdateLocationParameterBadRequest) Error

type UpdateLocationParameterNotFound

type UpdateLocationParameterNotFound struct {
}
UpdateLocationParameterNotFound describes a response with status code 404, with default header values.

Not Found

func NewUpdateLocationParameterNotFound

func NewUpdateLocationParameterNotFound() *UpdateLocationParameterNotFound

NewUpdateLocationParameterNotFound creates a UpdateLocationParameterNotFound with default headers values

func (*UpdateLocationParameterNotFound) Error

type UpdateLocationParameterOK

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

Success

func NewUpdateLocationParameterOK

func NewUpdateLocationParameterOK() *UpdateLocationParameterOK

NewUpdateLocationParameterOK creates a UpdateLocationParameterOK with default headers values

func (*UpdateLocationParameterOK) Error

func (o *UpdateLocationParameterOK) Error() string

func (*UpdateLocationParameterOK) GetPayload

type UpdateLocationParameterParams

type UpdateLocationParameterParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The location parameter object you wish to update.
	*/
	Body *models.LocationParameterModel

	/* CompanyID.

	   The company id.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The location parameter id

	   Format: int64
	*/
	ID int64

	/* LocationID.

	   The location id

	   Format: int32
	*/
	LocationID int32

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

UpdateLocationParameterParams contains all the parameters to send to the API endpoint

for the update location parameter operation.

Typically these are written to a http.Request.

func NewUpdateLocationParameterParams

func NewUpdateLocationParameterParams() *UpdateLocationParameterParams

NewUpdateLocationParameterParams creates a new UpdateLocationParameterParams 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 NewUpdateLocationParameterParamsWithContext

func NewUpdateLocationParameterParamsWithContext(ctx context.Context) *UpdateLocationParameterParams

NewUpdateLocationParameterParamsWithContext creates a new UpdateLocationParameterParams object with the ability to set a context for a request.

func NewUpdateLocationParameterParamsWithHTTPClient

func NewUpdateLocationParameterParamsWithHTTPClient(client *http.Client) *UpdateLocationParameterParams

NewUpdateLocationParameterParamsWithHTTPClient creates a new UpdateLocationParameterParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLocationParameterParamsWithTimeout

func NewUpdateLocationParameterParamsWithTimeout(timeout time.Duration) *UpdateLocationParameterParams

NewUpdateLocationParameterParamsWithTimeout creates a new UpdateLocationParameterParams object with the ability to set a timeout on a request.

func (*UpdateLocationParameterParams) SetBody

SetBody adds the body to the update location parameter params

func (*UpdateLocationParameterParams) SetCompanyID

func (o *UpdateLocationParameterParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the update location parameter params

func (*UpdateLocationParameterParams) SetContext

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

SetContext adds the context to the update location parameter params

func (*UpdateLocationParameterParams) SetDefaults

func (o *UpdateLocationParameterParams) SetDefaults()

SetDefaults hydrates default values in the update location parameter params (not the query body).

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

func (*UpdateLocationParameterParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update location parameter params

func (*UpdateLocationParameterParams) SetID

func (o *UpdateLocationParameterParams) SetID(id int64)

SetID adds the id to the update location parameter params

func (*UpdateLocationParameterParams) SetLocationID

func (o *UpdateLocationParameterParams) SetLocationID(locationID int32)

SetLocationID adds the locationId to the update location parameter params

func (*UpdateLocationParameterParams) SetTimeout

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

SetTimeout adds the timeout to the update location parameter params

func (*UpdateLocationParameterParams) SetXAvalaraClient

func (o *UpdateLocationParameterParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the update location parameter params

func (*UpdateLocationParameterParams) WithBody

WithBody adds the body to the update location parameter params

func (*UpdateLocationParameterParams) WithCompanyID

WithCompanyID adds the companyID to the update location parameter params

func (*UpdateLocationParameterParams) WithContext

WithContext adds the context to the update location parameter params

func (*UpdateLocationParameterParams) WithDefaults

WithDefaults hydrates default values in the update location parameter params (not the query body).

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

func (*UpdateLocationParameterParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update location parameter params

func (*UpdateLocationParameterParams) WithID

WithID adds the id to the update location parameter params

func (*UpdateLocationParameterParams) WithLocationID

func (o *UpdateLocationParameterParams) WithLocationID(locationID int32) *UpdateLocationParameterParams

WithLocationID adds the locationID to the update location parameter params

func (*UpdateLocationParameterParams) WithTimeout

WithTimeout adds the timeout to the update location parameter params

func (*UpdateLocationParameterParams) WithXAvalaraClient

func (o *UpdateLocationParameterParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateLocationParameterParams

WithXAvalaraClient adds the xAvalaraClient to the update location parameter params

func (*UpdateLocationParameterParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLocationParameterReader

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

UpdateLocationParameterReader is a Reader for the UpdateLocationParameter structure.

func (*UpdateLocationParameterReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLocationParameterUnauthorized

type UpdateLocationParameterUnauthorized struct {
}
UpdateLocationParameterUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateLocationParameterUnauthorized

func NewUpdateLocationParameterUnauthorized() *UpdateLocationParameterUnauthorized

NewUpdateLocationParameterUnauthorized creates a UpdateLocationParameterUnauthorized with default headers values

func (*UpdateLocationParameterUnauthorized) Error

type UpdateLocationParams

type UpdateLocationParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The location you wish to update.
	*/
	Body *models.LocationModel

	/* CompanyID.

	   The ID of the company that this location belongs to.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The ID of the location you wish to update

	   Format: int32
	*/
	ID int32

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

UpdateLocationParams contains all the parameters to send to the API endpoint

for the update location operation.

Typically these are written to a http.Request.

func NewUpdateLocationParams

func NewUpdateLocationParams() *UpdateLocationParams

NewUpdateLocationParams creates a new UpdateLocationParams 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 NewUpdateLocationParamsWithContext

func NewUpdateLocationParamsWithContext(ctx context.Context) *UpdateLocationParams

NewUpdateLocationParamsWithContext creates a new UpdateLocationParams object with the ability to set a context for a request.

func NewUpdateLocationParamsWithHTTPClient

func NewUpdateLocationParamsWithHTTPClient(client *http.Client) *UpdateLocationParams

NewUpdateLocationParamsWithHTTPClient creates a new UpdateLocationParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLocationParamsWithTimeout

func NewUpdateLocationParamsWithTimeout(timeout time.Duration) *UpdateLocationParams

NewUpdateLocationParamsWithTimeout creates a new UpdateLocationParams object with the ability to set a timeout on a request.

func (*UpdateLocationParams) SetBody

func (o *UpdateLocationParams) SetBody(body *models.LocationModel)

SetBody adds the body to the update location params

func (*UpdateLocationParams) SetCompanyID

func (o *UpdateLocationParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the update location params

func (*UpdateLocationParams) SetContext

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

SetContext adds the context to the update location params

func (*UpdateLocationParams) SetDefaults

func (o *UpdateLocationParams) SetDefaults()

SetDefaults hydrates default values in the update location params (not the query body).

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

func (*UpdateLocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update location params

func (*UpdateLocationParams) SetID

func (o *UpdateLocationParams) SetID(id int32)

SetID adds the id to the update location params

func (*UpdateLocationParams) SetTimeout

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

SetTimeout adds the timeout to the update location params

func (*UpdateLocationParams) SetXAvalaraClient

func (o *UpdateLocationParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the update location params

func (*UpdateLocationParams) WithBody

WithBody adds the body to the update location params

func (*UpdateLocationParams) WithCompanyID

func (o *UpdateLocationParams) WithCompanyID(companyID int32) *UpdateLocationParams

WithCompanyID adds the companyID to the update location params

func (*UpdateLocationParams) WithContext

WithContext adds the context to the update location params

func (*UpdateLocationParams) WithDefaults

func (o *UpdateLocationParams) WithDefaults() *UpdateLocationParams

WithDefaults hydrates default values in the update location params (not the query body).

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

func (*UpdateLocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update location params

func (*UpdateLocationParams) WithID

WithID adds the id to the update location params

func (*UpdateLocationParams) WithTimeout

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

WithTimeout adds the timeout to the update location params

func (*UpdateLocationParams) WithXAvalaraClient

func (o *UpdateLocationParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateLocationParams

WithXAvalaraClient adds the xAvalaraClient to the update location params

func (*UpdateLocationParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateLocationReader

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

UpdateLocationReader is a Reader for the UpdateLocation structure.

func (*UpdateLocationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLocationUnauthorized

type UpdateLocationUnauthorized struct {
}
UpdateLocationUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewUpdateLocationUnauthorized

func NewUpdateLocationUnauthorized() *UpdateLocationUnauthorized

NewUpdateLocationUnauthorized creates a UpdateLocationUnauthorized with default headers values

func (*UpdateLocationUnauthorized) Error

type ValidateLocationBadRequest

type ValidateLocationBadRequest struct {
}
ValidateLocationBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewValidateLocationBadRequest

func NewValidateLocationBadRequest() *ValidateLocationBadRequest

NewValidateLocationBadRequest creates a ValidateLocationBadRequest with default headers values

func (*ValidateLocationBadRequest) Error

type ValidateLocationNotFound

type ValidateLocationNotFound struct {
}
ValidateLocationNotFound describes a response with status code 404, with default header values.

Not Found

func NewValidateLocationNotFound

func NewValidateLocationNotFound() *ValidateLocationNotFound

NewValidateLocationNotFound creates a ValidateLocationNotFound with default headers values

func (*ValidateLocationNotFound) Error

func (o *ValidateLocationNotFound) Error() string

type ValidateLocationOK

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

Success

func NewValidateLocationOK

func NewValidateLocationOK() *ValidateLocationOK

NewValidateLocationOK creates a ValidateLocationOK with default headers values

func (*ValidateLocationOK) Error

func (o *ValidateLocationOK) Error() string

func (*ValidateLocationOK) GetPayload

type ValidateLocationParams

type ValidateLocationParams struct {

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyID.

	   The ID of the company that owns this location

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The primary key of this location

	   Format: int32
	*/
	ID int32

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

ValidateLocationParams contains all the parameters to send to the API endpoint

for the validate location operation.

Typically these are written to a http.Request.

func NewValidateLocationParams

func NewValidateLocationParams() *ValidateLocationParams

NewValidateLocationParams creates a new ValidateLocationParams 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 NewValidateLocationParamsWithContext

func NewValidateLocationParamsWithContext(ctx context.Context) *ValidateLocationParams

NewValidateLocationParamsWithContext creates a new ValidateLocationParams object with the ability to set a context for a request.

func NewValidateLocationParamsWithHTTPClient

func NewValidateLocationParamsWithHTTPClient(client *http.Client) *ValidateLocationParams

NewValidateLocationParamsWithHTTPClient creates a new ValidateLocationParams object with the ability to set a custom HTTPClient for a request.

func NewValidateLocationParamsWithTimeout

func NewValidateLocationParamsWithTimeout(timeout time.Duration) *ValidateLocationParams

NewValidateLocationParamsWithTimeout creates a new ValidateLocationParams object with the ability to set a timeout on a request.

func (*ValidateLocationParams) SetCompanyID

func (o *ValidateLocationParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the validate location params

func (*ValidateLocationParams) SetContext

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

SetContext adds the context to the validate location params

func (*ValidateLocationParams) SetDefaults

func (o *ValidateLocationParams) SetDefaults()

SetDefaults hydrates default values in the validate location params (not the query body).

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

func (*ValidateLocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the validate location params

func (*ValidateLocationParams) SetID

func (o *ValidateLocationParams) SetID(id int32)

SetID adds the id to the validate location params

func (*ValidateLocationParams) SetTimeout

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

SetTimeout adds the timeout to the validate location params

func (*ValidateLocationParams) SetXAvalaraClient

func (o *ValidateLocationParams) SetXAvalaraClient(xAvalaraClient *string)

SetXAvalaraClient adds the xAvalaraClient to the validate location params

func (*ValidateLocationParams) WithCompanyID

func (o *ValidateLocationParams) WithCompanyID(companyID int32) *ValidateLocationParams

WithCompanyID adds the companyID to the validate location params

func (*ValidateLocationParams) WithContext

WithContext adds the context to the validate location params

func (*ValidateLocationParams) WithDefaults

WithDefaults hydrates default values in the validate location params (not the query body).

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

func (*ValidateLocationParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the validate location params

func (*ValidateLocationParams) WithID

WithID adds the id to the validate location params

func (*ValidateLocationParams) WithTimeout

WithTimeout adds the timeout to the validate location params

func (*ValidateLocationParams) WithXAvalaraClient

func (o *ValidateLocationParams) WithXAvalaraClient(xAvalaraClient *string) *ValidateLocationParams

WithXAvalaraClient adds the xAvalaraClient to the validate location params

func (*ValidateLocationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ValidateLocationReader

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

ValidateLocationReader is a Reader for the ValidateLocation structure.

func (*ValidateLocationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ValidateLocationUnauthorized

type ValidateLocationUnauthorized struct {
}
ValidateLocationUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewValidateLocationUnauthorized

func NewValidateLocationUnauthorized() *ValidateLocationUnauthorized

NewValidateLocationUnauthorized creates a ValidateLocationUnauthorized with default headers values

func (*ValidateLocationUnauthorized) Error

Jump to

Keyboard shortcuts

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