distance_thresholds

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 distance thresholds API

func (*Client) CreateDistanceThreshold

func (a *Client) CreateDistanceThreshold(params *CreateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDistanceThresholdOK, error)
CreateDistanceThreshold creates one or more distance threshold objects

Create one or more DistanceThreshold objects for this company.

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

### Security Policies

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

func (*Client) DeleteDistanceThreshold

func (a *Client) DeleteDistanceThreshold(params *DeleteDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDistanceThresholdOK, error)
DeleteDistanceThreshold deletes a single distance threshold object

Marks the DistanceThreshold object identified by this URL as deleted.

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

### Security Policies

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

func (*Client) GetDistanceThreshold

func (a *Client) GetDistanceThreshold(params *GetDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDistanceThresholdOK, error)
GetDistanceThreshold retrieves a single distance threshold

Retrieves a single DistanceThreshold object defined by this URL.

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

### Security Policies

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

func (*Client) ListDistanceThresholds

func (a *Client) ListDistanceThresholds(params *ListDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDistanceThresholdsOK, error)
ListDistanceThresholds retrieves all distance thresholds for this company

Lists all DistanceThreshold objects that belong to this company.

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

### Security Policies

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

func (*Client) QueryDistanceThresholds

func (a *Client) QueryDistanceThresholds(params *QueryDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryDistanceThresholdsOK, error)
QueryDistanceThresholds retrieves all distance threshold objects

Lists all DistanceThreshold objects that belong to this account.

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

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, 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) UpdateDistanceThreshold

func (a *Client) UpdateDistanceThreshold(params *UpdateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateDistanceThresholdOK, error)
UpdateDistanceThreshold updates a distance threshold object

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

A company-distance-threshold model indicates the distance between a company and the taxing borders of various countries. Distance thresholds are necessary to correctly calculate some value-added taxes.

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, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateDistanceThreshold(params *CreateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateDistanceThresholdOK, error)

	DeleteDistanceThreshold(params *DeleteDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteDistanceThresholdOK, error)

	GetDistanceThreshold(params *GetDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDistanceThresholdOK, error)

	ListDistanceThresholds(params *ListDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListDistanceThresholdsOK, error)

	QueryDistanceThresholds(params *QueryDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryDistanceThresholdsOK, error)

	UpdateDistanceThreshold(params *UpdateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateDistanceThresholdOK, 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 distance thresholds API client.

type CreateDistanceThresholdBadRequest

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

Bad Request

func NewCreateDistanceThresholdBadRequest

func NewCreateDistanceThresholdBadRequest() *CreateDistanceThresholdBadRequest

NewCreateDistanceThresholdBadRequest creates a CreateDistanceThresholdBadRequest with default headers values

func (*CreateDistanceThresholdBadRequest) Error

type CreateDistanceThresholdNotFound

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

Not Found

func NewCreateDistanceThresholdNotFound

func NewCreateDistanceThresholdNotFound() *CreateDistanceThresholdNotFound

NewCreateDistanceThresholdNotFound creates a CreateDistanceThresholdNotFound with default headers values

func (*CreateDistanceThresholdNotFound) Error

type CreateDistanceThresholdOK

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

Success

func NewCreateDistanceThresholdOK

func NewCreateDistanceThresholdOK() *CreateDistanceThresholdOK

NewCreateDistanceThresholdOK creates a CreateDistanceThresholdOK with default headers values

func (*CreateDistanceThresholdOK) Error

func (o *CreateDistanceThresholdOK) Error() string

func (*CreateDistanceThresholdOK) GetPayload

type CreateDistanceThresholdParams

type CreateDistanceThresholdParams 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 DistanceThreshold object or objects you wish to create.
	*/
	Body []*models.CompanyDistanceThresholdModel

	/* CompanyID.

	   The unique ID number of the company that owns this DistanceThreshold

	   Format: int32
	*/
	CompanyID int32

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

CreateDistanceThresholdParams contains all the parameters to send to the API endpoint

for the create distance threshold operation.

Typically these are written to a http.Request.

func NewCreateDistanceThresholdParams

func NewCreateDistanceThresholdParams() *CreateDistanceThresholdParams

NewCreateDistanceThresholdParams creates a new CreateDistanceThresholdParams 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 NewCreateDistanceThresholdParamsWithContext

func NewCreateDistanceThresholdParamsWithContext(ctx context.Context) *CreateDistanceThresholdParams

NewCreateDistanceThresholdParamsWithContext creates a new CreateDistanceThresholdParams object with the ability to set a context for a request.

func NewCreateDistanceThresholdParamsWithHTTPClient

func NewCreateDistanceThresholdParamsWithHTTPClient(client *http.Client) *CreateDistanceThresholdParams

NewCreateDistanceThresholdParamsWithHTTPClient creates a new CreateDistanceThresholdParams object with the ability to set a custom HTTPClient for a request.

func NewCreateDistanceThresholdParamsWithTimeout

func NewCreateDistanceThresholdParamsWithTimeout(timeout time.Duration) *CreateDistanceThresholdParams

NewCreateDistanceThresholdParamsWithTimeout creates a new CreateDistanceThresholdParams object with the ability to set a timeout on a request.

func (*CreateDistanceThresholdParams) SetBody

SetBody adds the body to the create distance threshold params

func (*CreateDistanceThresholdParams) SetCompanyID

func (o *CreateDistanceThresholdParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create distance threshold params

func (*CreateDistanceThresholdParams) SetContext

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

SetContext adds the context to the create distance threshold params

func (*CreateDistanceThresholdParams) SetDefaults

func (o *CreateDistanceThresholdParams) SetDefaults()

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

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

func (*CreateDistanceThresholdParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create distance threshold params

func (*CreateDistanceThresholdParams) SetTimeout

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

SetTimeout adds the timeout to the create distance threshold params

func (*CreateDistanceThresholdParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create distance threshold params

func (*CreateDistanceThresholdParams) WithBody

WithBody adds the body to the create distance threshold params

func (*CreateDistanceThresholdParams) WithCompanyID

WithCompanyID adds the companyID to the create distance threshold params

func (*CreateDistanceThresholdParams) WithContext

WithContext adds the context to the create distance threshold params

func (*CreateDistanceThresholdParams) WithDefaults

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

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

func (*CreateDistanceThresholdParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create distance threshold params

func (*CreateDistanceThresholdParams) WithTimeout

WithTimeout adds the timeout to the create distance threshold params

func (*CreateDistanceThresholdParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create distance threshold params

func (*CreateDistanceThresholdParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateDistanceThresholdReader

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

CreateDistanceThresholdReader is a Reader for the CreateDistanceThreshold structure.

func (*CreateDistanceThresholdReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateDistanceThresholdUnauthorized

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

Unauthorized

func NewCreateDistanceThresholdUnauthorized

func NewCreateDistanceThresholdUnauthorized() *CreateDistanceThresholdUnauthorized

NewCreateDistanceThresholdUnauthorized creates a CreateDistanceThresholdUnauthorized with default headers values

func (*CreateDistanceThresholdUnauthorized) Error

type DeleteDistanceThresholdBadRequest

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

Bad Request

func NewDeleteDistanceThresholdBadRequest

func NewDeleteDistanceThresholdBadRequest() *DeleteDistanceThresholdBadRequest

NewDeleteDistanceThresholdBadRequest creates a DeleteDistanceThresholdBadRequest with default headers values

func (*DeleteDistanceThresholdBadRequest) Error

type DeleteDistanceThresholdNotFound

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

Not Found

func NewDeleteDistanceThresholdNotFound

func NewDeleteDistanceThresholdNotFound() *DeleteDistanceThresholdNotFound

NewDeleteDistanceThresholdNotFound creates a DeleteDistanceThresholdNotFound with default headers values

func (*DeleteDistanceThresholdNotFound) Error

type DeleteDistanceThresholdOK

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

Success

func NewDeleteDistanceThresholdOK

func NewDeleteDistanceThresholdOK() *DeleteDistanceThresholdOK

NewDeleteDistanceThresholdOK creates a DeleteDistanceThresholdOK with default headers values

func (*DeleteDistanceThresholdOK) Error

func (o *DeleteDistanceThresholdOK) Error() string

func (*DeleteDistanceThresholdOK) GetPayload

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

type DeleteDistanceThresholdParams

type DeleteDistanceThresholdParams 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 unique ID number of the company that owns this DistanceThreshold

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The unique ID number of the DistanceThreshold object you wish to delete.

	   Format: int64
	*/
	ID int64

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

DeleteDistanceThresholdParams contains all the parameters to send to the API endpoint

for the delete distance threshold operation.

Typically these are written to a http.Request.

func NewDeleteDistanceThresholdParams

func NewDeleteDistanceThresholdParams() *DeleteDistanceThresholdParams

NewDeleteDistanceThresholdParams creates a new DeleteDistanceThresholdParams 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 NewDeleteDistanceThresholdParamsWithContext

func NewDeleteDistanceThresholdParamsWithContext(ctx context.Context) *DeleteDistanceThresholdParams

NewDeleteDistanceThresholdParamsWithContext creates a new DeleteDistanceThresholdParams object with the ability to set a context for a request.

func NewDeleteDistanceThresholdParamsWithHTTPClient

func NewDeleteDistanceThresholdParamsWithHTTPClient(client *http.Client) *DeleteDistanceThresholdParams

NewDeleteDistanceThresholdParamsWithHTTPClient creates a new DeleteDistanceThresholdParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteDistanceThresholdParamsWithTimeout

func NewDeleteDistanceThresholdParamsWithTimeout(timeout time.Duration) *DeleteDistanceThresholdParams

NewDeleteDistanceThresholdParamsWithTimeout creates a new DeleteDistanceThresholdParams object with the ability to set a timeout on a request.

func (*DeleteDistanceThresholdParams) SetCompanyID

func (o *DeleteDistanceThresholdParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the delete distance threshold params

func (*DeleteDistanceThresholdParams) SetContext

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

SetContext adds the context to the delete distance threshold params

func (*DeleteDistanceThresholdParams) SetDefaults

func (o *DeleteDistanceThresholdParams) SetDefaults()

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

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

func (*DeleteDistanceThresholdParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete distance threshold params

func (*DeleteDistanceThresholdParams) SetID

func (o *DeleteDistanceThresholdParams) SetID(id int64)

SetID adds the id to the delete distance threshold params

func (*DeleteDistanceThresholdParams) SetTimeout

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

SetTimeout adds the timeout to the delete distance threshold params

func (*DeleteDistanceThresholdParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithCompanyID

WithCompanyID adds the companyID to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithContext

WithContext adds the context to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithDefaults

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

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

func (*DeleteDistanceThresholdParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithID

WithID adds the id to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithTimeout

WithTimeout adds the timeout to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the delete distance threshold params

func (*DeleteDistanceThresholdParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteDistanceThresholdReader

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

DeleteDistanceThresholdReader is a Reader for the DeleteDistanceThreshold structure.

func (*DeleteDistanceThresholdReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteDistanceThresholdUnauthorized

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

Unauthorized

func NewDeleteDistanceThresholdUnauthorized

func NewDeleteDistanceThresholdUnauthorized() *DeleteDistanceThresholdUnauthorized

NewDeleteDistanceThresholdUnauthorized creates a DeleteDistanceThresholdUnauthorized with default headers values

func (*DeleteDistanceThresholdUnauthorized) Error

type GetDistanceThresholdBadRequest

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

Bad Request

func NewGetDistanceThresholdBadRequest

func NewGetDistanceThresholdBadRequest() *GetDistanceThresholdBadRequest

NewGetDistanceThresholdBadRequest creates a GetDistanceThresholdBadRequest with default headers values

func (*GetDistanceThresholdBadRequest) Error

type GetDistanceThresholdNotFound

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

Not Found

func NewGetDistanceThresholdNotFound

func NewGetDistanceThresholdNotFound() *GetDistanceThresholdNotFound

NewGetDistanceThresholdNotFound creates a GetDistanceThresholdNotFound with default headers values

func (*GetDistanceThresholdNotFound) Error

type GetDistanceThresholdOK

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

Success

func NewGetDistanceThresholdOK

func NewGetDistanceThresholdOK() *GetDistanceThresholdOK

NewGetDistanceThresholdOK creates a GetDistanceThresholdOK with default headers values

func (*GetDistanceThresholdOK) Error

func (o *GetDistanceThresholdOK) Error() string

func (*GetDistanceThresholdOK) GetPayload

type GetDistanceThresholdParams

type GetDistanceThresholdParams 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 DistanceThreshold object

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The unique ID number referring to this DistanceThreshold object

	   Format: int64
	*/
	ID int64

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

GetDistanceThresholdParams contains all the parameters to send to the API endpoint

for the get distance threshold operation.

Typically these are written to a http.Request.

func NewGetDistanceThresholdParams

func NewGetDistanceThresholdParams() *GetDistanceThresholdParams

NewGetDistanceThresholdParams creates a new GetDistanceThresholdParams 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 NewGetDistanceThresholdParamsWithContext

func NewGetDistanceThresholdParamsWithContext(ctx context.Context) *GetDistanceThresholdParams

NewGetDistanceThresholdParamsWithContext creates a new GetDistanceThresholdParams object with the ability to set a context for a request.

func NewGetDistanceThresholdParamsWithHTTPClient

func NewGetDistanceThresholdParamsWithHTTPClient(client *http.Client) *GetDistanceThresholdParams

NewGetDistanceThresholdParamsWithHTTPClient creates a new GetDistanceThresholdParams object with the ability to set a custom HTTPClient for a request.

func NewGetDistanceThresholdParamsWithTimeout

func NewGetDistanceThresholdParamsWithTimeout(timeout time.Duration) *GetDistanceThresholdParams

NewGetDistanceThresholdParamsWithTimeout creates a new GetDistanceThresholdParams object with the ability to set a timeout on a request.

func (*GetDistanceThresholdParams) SetCompanyID

func (o *GetDistanceThresholdParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get distance threshold params

func (*GetDistanceThresholdParams) SetContext

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

SetContext adds the context to the get distance threshold params

func (*GetDistanceThresholdParams) SetDefaults

func (o *GetDistanceThresholdParams) SetDefaults()

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

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

func (*GetDistanceThresholdParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get distance threshold params

func (*GetDistanceThresholdParams) SetID

func (o *GetDistanceThresholdParams) SetID(id int64)

SetID adds the id to the get distance threshold params

func (*GetDistanceThresholdParams) SetTimeout

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

SetTimeout adds the timeout to the get distance threshold params

func (*GetDistanceThresholdParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get distance threshold params

func (*GetDistanceThresholdParams) WithCompanyID

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

WithCompanyID adds the companyID to the get distance threshold params

func (*GetDistanceThresholdParams) WithContext

WithContext adds the context to the get distance threshold params

func (*GetDistanceThresholdParams) WithDefaults

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

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

func (*GetDistanceThresholdParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get distance threshold params

func (*GetDistanceThresholdParams) WithID

WithID adds the id to the get distance threshold params

func (*GetDistanceThresholdParams) WithTimeout

WithTimeout adds the timeout to the get distance threshold params

func (*GetDistanceThresholdParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get distance threshold params

func (*GetDistanceThresholdParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDistanceThresholdReader

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

GetDistanceThresholdReader is a Reader for the GetDistanceThreshold structure.

func (*GetDistanceThresholdReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDistanceThresholdUnauthorized

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

Unauthorized

func NewGetDistanceThresholdUnauthorized

func NewGetDistanceThresholdUnauthorized() *GetDistanceThresholdUnauthorized

NewGetDistanceThresholdUnauthorized creates a GetDistanceThresholdUnauthorized with default headers values

func (*GetDistanceThresholdUnauthorized) Error

type ListDistanceThresholdsBadRequest

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

Bad Request

func NewListDistanceThresholdsBadRequest

func NewListDistanceThresholdsBadRequest() *ListDistanceThresholdsBadRequest

NewListDistanceThresholdsBadRequest creates a ListDistanceThresholdsBadRequest with default headers values

func (*ListDistanceThresholdsBadRequest) Error

type ListDistanceThresholdsNotFound

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

Not Found

func NewListDistanceThresholdsNotFound

func NewListDistanceThresholdsNotFound() *ListDistanceThresholdsNotFound

NewListDistanceThresholdsNotFound creates a ListDistanceThresholdsNotFound with default headers values

func (*ListDistanceThresholdsNotFound) Error

type ListDistanceThresholdsOK

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

Success

func NewListDistanceThresholdsOK

func NewListDistanceThresholdsOK() *ListDistanceThresholdsOK

NewListDistanceThresholdsOK creates a ListDistanceThresholdsOK with default headers values

func (*ListDistanceThresholdsOK) Error

func (o *ListDistanceThresholdsOK) Error() string

func (*ListDistanceThresholdsOK) GetPayload

type ListDistanceThresholdsParams

type ListDistanceThresholdsParams 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/).
	*/
	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 whose DistanceThreshold objects you wish to list.

	   Format: int32
	*/
	CompanyID int32

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

ListDistanceThresholdsParams contains all the parameters to send to the API endpoint

for the list distance thresholds operation.

Typically these are written to a http.Request.

func NewListDistanceThresholdsParams

func NewListDistanceThresholdsParams() *ListDistanceThresholdsParams

NewListDistanceThresholdsParams creates a new ListDistanceThresholdsParams 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 NewListDistanceThresholdsParamsWithContext

func NewListDistanceThresholdsParamsWithContext(ctx context.Context) *ListDistanceThresholdsParams

NewListDistanceThresholdsParamsWithContext creates a new ListDistanceThresholdsParams object with the ability to set a context for a request.

func NewListDistanceThresholdsParamsWithHTTPClient

func NewListDistanceThresholdsParamsWithHTTPClient(client *http.Client) *ListDistanceThresholdsParams

NewListDistanceThresholdsParamsWithHTTPClient creates a new ListDistanceThresholdsParams object with the ability to set a custom HTTPClient for a request.

func NewListDistanceThresholdsParamsWithTimeout

func NewListDistanceThresholdsParamsWithTimeout(timeout time.Duration) *ListDistanceThresholdsParams

NewListDistanceThresholdsParamsWithTimeout creates a new ListDistanceThresholdsParams object with the ability to set a timeout on a request.

func (*ListDistanceThresholdsParams) SetCompanyID

func (o *ListDistanceThresholdsParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetContext

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

SetContext adds the context to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetDefaults

func (o *ListDistanceThresholdsParams) SetDefaults()

SetDefaults hydrates default values in the list distance thresholds params (not the query body).

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

func (*ListDistanceThresholdsParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetTimeout

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

SetTimeout adds the timeout to the list distance thresholds params

func (*ListDistanceThresholdsParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithCompanyID

WithCompanyID adds the companyID to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithContext

WithContext adds the context to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithDefaults

WithDefaults hydrates default values in the list distance thresholds params (not the query body).

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

func (*ListDistanceThresholdsParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithDollarTop

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

WithDollarTop adds the dollarTop to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithTimeout

WithTimeout adds the timeout to the list distance thresholds params

func (*ListDistanceThresholdsParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the list distance thresholds params

func (*ListDistanceThresholdsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListDistanceThresholdsReader

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

ListDistanceThresholdsReader is a Reader for the ListDistanceThresholds structure.

func (*ListDistanceThresholdsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListDistanceThresholdsUnauthorized

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

Unauthorized

func NewListDistanceThresholdsUnauthorized

func NewListDistanceThresholdsUnauthorized() *ListDistanceThresholdsUnauthorized

NewListDistanceThresholdsUnauthorized creates a ListDistanceThresholdsUnauthorized with default headers values

func (*ListDistanceThresholdsUnauthorized) Error

type QueryDistanceThresholdsBadRequest

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

Bad Request

func NewQueryDistanceThresholdsBadRequest

func NewQueryDistanceThresholdsBadRequest() *QueryDistanceThresholdsBadRequest

NewQueryDistanceThresholdsBadRequest creates a QueryDistanceThresholdsBadRequest with default headers values

func (*QueryDistanceThresholdsBadRequest) Error

type QueryDistanceThresholdsOK

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

Success

func NewQueryDistanceThresholdsOK

func NewQueryDistanceThresholdsOK() *QueryDistanceThresholdsOK

NewQueryDistanceThresholdsOK creates a QueryDistanceThresholdsOK with default headers values

func (*QueryDistanceThresholdsOK) Error

func (o *QueryDistanceThresholdsOK) Error() string

func (*QueryDistanceThresholdsOK) GetPayload

type QueryDistanceThresholdsParams

type QueryDistanceThresholdsParams 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/).
	*/
	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

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

QueryDistanceThresholdsParams contains all the parameters to send to the API endpoint

for the query distance thresholds operation.

Typically these are written to a http.Request.

func NewQueryDistanceThresholdsParams

func NewQueryDistanceThresholdsParams() *QueryDistanceThresholdsParams

NewQueryDistanceThresholdsParams creates a new QueryDistanceThresholdsParams 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 NewQueryDistanceThresholdsParamsWithContext

func NewQueryDistanceThresholdsParamsWithContext(ctx context.Context) *QueryDistanceThresholdsParams

NewQueryDistanceThresholdsParamsWithContext creates a new QueryDistanceThresholdsParams object with the ability to set a context for a request.

func NewQueryDistanceThresholdsParamsWithHTTPClient

func NewQueryDistanceThresholdsParamsWithHTTPClient(client *http.Client) *QueryDistanceThresholdsParams

NewQueryDistanceThresholdsParamsWithHTTPClient creates a new QueryDistanceThresholdsParams object with the ability to set a custom HTTPClient for a request.

func NewQueryDistanceThresholdsParamsWithTimeout

func NewQueryDistanceThresholdsParamsWithTimeout(timeout time.Duration) *QueryDistanceThresholdsParams

NewQueryDistanceThresholdsParamsWithTimeout creates a new QueryDistanceThresholdsParams object with the ability to set a timeout on a request.

func (*QueryDistanceThresholdsParams) SetContext

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

SetContext adds the context to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetDefaults

func (o *QueryDistanceThresholdsParams) SetDefaults()

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

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

func (*QueryDistanceThresholdsParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetTimeout

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

SetTimeout adds the timeout to the query distance thresholds params

func (*QueryDistanceThresholdsParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithContext

WithContext adds the context to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithDefaults

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

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

func (*QueryDistanceThresholdsParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithDollarTop

WithDollarTop adds the dollarTop to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithTimeout

WithTimeout adds the timeout to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the query distance thresholds params

func (*QueryDistanceThresholdsParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type QueryDistanceThresholdsReader

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

QueryDistanceThresholdsReader is a Reader for the QueryDistanceThresholds structure.

func (*QueryDistanceThresholdsReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryDistanceThresholdsUnauthorized

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

Unauthorized

func NewQueryDistanceThresholdsUnauthorized

func NewQueryDistanceThresholdsUnauthorized() *QueryDistanceThresholdsUnauthorized

NewQueryDistanceThresholdsUnauthorized creates a QueryDistanceThresholdsUnauthorized with default headers values

func (*QueryDistanceThresholdsUnauthorized) Error

type UpdateDistanceThresholdBadRequest

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

Bad Request

func NewUpdateDistanceThresholdBadRequest

func NewUpdateDistanceThresholdBadRequest() *UpdateDistanceThresholdBadRequest

NewUpdateDistanceThresholdBadRequest creates a UpdateDistanceThresholdBadRequest with default headers values

func (*UpdateDistanceThresholdBadRequest) Error

type UpdateDistanceThresholdNotFound

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

Not Found

func NewUpdateDistanceThresholdNotFound

func NewUpdateDistanceThresholdNotFound() *UpdateDistanceThresholdNotFound

NewUpdateDistanceThresholdNotFound creates a UpdateDistanceThresholdNotFound with default headers values

func (*UpdateDistanceThresholdNotFound) Error

type UpdateDistanceThresholdOK

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

Success

func NewUpdateDistanceThresholdOK

func NewUpdateDistanceThresholdOK() *UpdateDistanceThresholdOK

NewUpdateDistanceThresholdOK creates a UpdateDistanceThresholdOK with default headers values

func (*UpdateDistanceThresholdOK) Error

func (o *UpdateDistanceThresholdOK) Error() string

func (*UpdateDistanceThresholdOK) GetPayload

type UpdateDistanceThresholdParams

type UpdateDistanceThresholdParams 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 new DistanceThreshold object to store.
	*/
	Body *models.CompanyDistanceThresholdModel

	/* CompanyID.

	   The unique ID number of the company that owns this DistanceThreshold object.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The unique ID number of the DistanceThreshold object to replace.

	   Format: int64
	*/
	ID int64

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

UpdateDistanceThresholdParams contains all the parameters to send to the API endpoint

for the update distance threshold operation.

Typically these are written to a http.Request.

func NewUpdateDistanceThresholdParams

func NewUpdateDistanceThresholdParams() *UpdateDistanceThresholdParams

NewUpdateDistanceThresholdParams creates a new UpdateDistanceThresholdParams 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 NewUpdateDistanceThresholdParamsWithContext

func NewUpdateDistanceThresholdParamsWithContext(ctx context.Context) *UpdateDistanceThresholdParams

NewUpdateDistanceThresholdParamsWithContext creates a new UpdateDistanceThresholdParams object with the ability to set a context for a request.

func NewUpdateDistanceThresholdParamsWithHTTPClient

func NewUpdateDistanceThresholdParamsWithHTTPClient(client *http.Client) *UpdateDistanceThresholdParams

NewUpdateDistanceThresholdParamsWithHTTPClient creates a new UpdateDistanceThresholdParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateDistanceThresholdParamsWithTimeout

func NewUpdateDistanceThresholdParamsWithTimeout(timeout time.Duration) *UpdateDistanceThresholdParams

NewUpdateDistanceThresholdParamsWithTimeout creates a new UpdateDistanceThresholdParams object with the ability to set a timeout on a request.

func (*UpdateDistanceThresholdParams) SetBody

SetBody adds the body to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetCompanyID

func (o *UpdateDistanceThresholdParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetContext

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

SetContext adds the context to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetDefaults

func (o *UpdateDistanceThresholdParams) SetDefaults()

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

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

func (*UpdateDistanceThresholdParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetID

func (o *UpdateDistanceThresholdParams) SetID(id int64)

SetID adds the id to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetTimeout

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

SetTimeout adds the timeout to the update distance threshold params

func (*UpdateDistanceThresholdParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithBody

WithBody adds the body to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithCompanyID

WithCompanyID adds the companyID to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithContext

WithContext adds the context to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithDefaults

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

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

func (*UpdateDistanceThresholdParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithID

WithID adds the id to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithTimeout

WithTimeout adds the timeout to the update distance threshold params

func (*UpdateDistanceThresholdParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the update distance threshold params

func (*UpdateDistanceThresholdParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateDistanceThresholdReader

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

UpdateDistanceThresholdReader is a Reader for the UpdateDistanceThreshold structure.

func (*UpdateDistanceThresholdReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateDistanceThresholdUnauthorized

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

Unauthorized

func NewUpdateDistanceThresholdUnauthorized

func NewUpdateDistanceThresholdUnauthorized() *UpdateDistanceThresholdUnauthorized

NewUpdateDistanceThresholdUnauthorized creates a UpdateDistanceThresholdUnauthorized with default headers values

func (*UpdateDistanceThresholdUnauthorized) Error

Jump to

Keyboard shortcuts

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