Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateDistanceThreshold(params *CreateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateDistanceThresholdOK, error)
- func (a *Client) DeleteDistanceThreshold(params *DeleteDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteDistanceThresholdOK, error)
- func (a *Client) GetDistanceThreshold(params *GetDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetDistanceThresholdOK, error)
- func (a *Client) ListDistanceThresholds(params *ListDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListDistanceThresholdsOK, error)
- func (a *Client) QueryDistanceThresholds(params *QueryDistanceThresholdsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*QueryDistanceThresholdsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateDistanceThreshold(params *UpdateDistanceThresholdParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateDistanceThresholdOK, error)
- type ClientOption
- type ClientService
- type CreateDistanceThresholdBadRequest
- type CreateDistanceThresholdNotFound
- type CreateDistanceThresholdOK
- type CreateDistanceThresholdParams
- func NewCreateDistanceThresholdParams() *CreateDistanceThresholdParams
- func NewCreateDistanceThresholdParamsWithContext(ctx context.Context) *CreateDistanceThresholdParams
- func NewCreateDistanceThresholdParamsWithHTTPClient(client *http.Client) *CreateDistanceThresholdParams
- func NewCreateDistanceThresholdParamsWithTimeout(timeout time.Duration) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) SetBody(body []*models.CompanyDistanceThresholdModel)
- func (o *CreateDistanceThresholdParams) SetCompanyID(companyID int32)
- func (o *CreateDistanceThresholdParams) SetContext(ctx context.Context)
- func (o *CreateDistanceThresholdParams) SetDefaults()
- func (o *CreateDistanceThresholdParams) SetHTTPClient(client *http.Client)
- func (o *CreateDistanceThresholdParams) SetTimeout(timeout time.Duration)
- func (o *CreateDistanceThresholdParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *CreateDistanceThresholdParams) WithBody(body []*models.CompanyDistanceThresholdModel) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithCompanyID(companyID int32) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithContext(ctx context.Context) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithDefaults() *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithHTTPClient(client *http.Client) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithTimeout(timeout time.Duration) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WithXAvalaraClient(xAvalaraClient *string) *CreateDistanceThresholdParams
- func (o *CreateDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDistanceThresholdReader
- type CreateDistanceThresholdUnauthorized
- type DeleteDistanceThresholdBadRequest
- type DeleteDistanceThresholdNotFound
- type DeleteDistanceThresholdOK
- type DeleteDistanceThresholdParams
- func NewDeleteDistanceThresholdParams() *DeleteDistanceThresholdParams
- func NewDeleteDistanceThresholdParamsWithContext(ctx context.Context) *DeleteDistanceThresholdParams
- func NewDeleteDistanceThresholdParamsWithHTTPClient(client *http.Client) *DeleteDistanceThresholdParams
- func NewDeleteDistanceThresholdParamsWithTimeout(timeout time.Duration) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) SetCompanyID(companyID int32)
- func (o *DeleteDistanceThresholdParams) SetContext(ctx context.Context)
- func (o *DeleteDistanceThresholdParams) SetDefaults()
- func (o *DeleteDistanceThresholdParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDistanceThresholdParams) SetID(id int64)
- func (o *DeleteDistanceThresholdParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDistanceThresholdParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *DeleteDistanceThresholdParams) WithCompanyID(companyID int32) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithContext(ctx context.Context) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithDefaults() *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithHTTPClient(client *http.Client) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithID(id int64) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithTimeout(timeout time.Duration) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteDistanceThresholdParams
- func (o *DeleteDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDistanceThresholdReader
- type DeleteDistanceThresholdUnauthorized
- type GetDistanceThresholdBadRequest
- type GetDistanceThresholdNotFound
- type GetDistanceThresholdOK
- type GetDistanceThresholdParams
- func NewGetDistanceThresholdParams() *GetDistanceThresholdParams
- func NewGetDistanceThresholdParamsWithContext(ctx context.Context) *GetDistanceThresholdParams
- func NewGetDistanceThresholdParamsWithHTTPClient(client *http.Client) *GetDistanceThresholdParams
- func NewGetDistanceThresholdParamsWithTimeout(timeout time.Duration) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) SetCompanyID(companyID int32)
- func (o *GetDistanceThresholdParams) SetContext(ctx context.Context)
- func (o *GetDistanceThresholdParams) SetDefaults()
- func (o *GetDistanceThresholdParams) SetHTTPClient(client *http.Client)
- func (o *GetDistanceThresholdParams) SetID(id int64)
- func (o *GetDistanceThresholdParams) SetTimeout(timeout time.Duration)
- func (o *GetDistanceThresholdParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *GetDistanceThresholdParams) WithCompanyID(companyID int32) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithContext(ctx context.Context) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithDefaults() *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithHTTPClient(client *http.Client) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithID(id int64) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithTimeout(timeout time.Duration) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WithXAvalaraClient(xAvalaraClient *string) *GetDistanceThresholdParams
- func (o *GetDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDistanceThresholdReader
- type GetDistanceThresholdUnauthorized
- type ListDistanceThresholdsBadRequest
- type ListDistanceThresholdsNotFound
- type ListDistanceThresholdsOK
- type ListDistanceThresholdsParams
- func NewListDistanceThresholdsParams() *ListDistanceThresholdsParams
- func NewListDistanceThresholdsParamsWithContext(ctx context.Context) *ListDistanceThresholdsParams
- func NewListDistanceThresholdsParamsWithHTTPClient(client *http.Client) *ListDistanceThresholdsParams
- func NewListDistanceThresholdsParamsWithTimeout(timeout time.Duration) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) SetCompanyID(companyID int32)
- func (o *ListDistanceThresholdsParams) SetContext(ctx context.Context)
- func (o *ListDistanceThresholdsParams) SetDefaults()
- func (o *ListDistanceThresholdsParams) SetDollarFilter(dollarFilter *string)
- func (o *ListDistanceThresholdsParams) SetDollarInclude(dollarInclude *string)
- func (o *ListDistanceThresholdsParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *ListDistanceThresholdsParams) SetDollarSkip(dollarSkip *int32)
- func (o *ListDistanceThresholdsParams) SetDollarTop(dollarTop *int32)
- func (o *ListDistanceThresholdsParams) SetHTTPClient(client *http.Client)
- func (o *ListDistanceThresholdsParams) SetTimeout(timeout time.Duration)
- func (o *ListDistanceThresholdsParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *ListDistanceThresholdsParams) WithCompanyID(companyID int32) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithContext(ctx context.Context) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDefaults() *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDollarFilter(dollarFilter *string) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDollarInclude(dollarInclude *string) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDollarOrderBy(dollarOrderBy *string) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDollarSkip(dollarSkip *int32) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithDollarTop(dollarTop *int32) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithHTTPClient(client *http.Client) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithTimeout(timeout time.Duration) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WithXAvalaraClient(xAvalaraClient *string) *ListDistanceThresholdsParams
- func (o *ListDistanceThresholdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListDistanceThresholdsReader
- type ListDistanceThresholdsUnauthorized
- type QueryDistanceThresholdsBadRequest
- type QueryDistanceThresholdsOK
- type QueryDistanceThresholdsParams
- func NewQueryDistanceThresholdsParams() *QueryDistanceThresholdsParams
- func NewQueryDistanceThresholdsParamsWithContext(ctx context.Context) *QueryDistanceThresholdsParams
- func NewQueryDistanceThresholdsParamsWithHTTPClient(client *http.Client) *QueryDistanceThresholdsParams
- func NewQueryDistanceThresholdsParamsWithTimeout(timeout time.Duration) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) SetContext(ctx context.Context)
- func (o *QueryDistanceThresholdsParams) SetDefaults()
- func (o *QueryDistanceThresholdsParams) SetDollarFilter(dollarFilter *string)
- func (o *QueryDistanceThresholdsParams) SetDollarInclude(dollarInclude *string)
- func (o *QueryDistanceThresholdsParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *QueryDistanceThresholdsParams) SetDollarSkip(dollarSkip *int32)
- func (o *QueryDistanceThresholdsParams) SetDollarTop(dollarTop *int32)
- func (o *QueryDistanceThresholdsParams) SetHTTPClient(client *http.Client)
- func (o *QueryDistanceThresholdsParams) SetTimeout(timeout time.Duration)
- func (o *QueryDistanceThresholdsParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *QueryDistanceThresholdsParams) WithContext(ctx context.Context) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDefaults() *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDollarFilter(dollarFilter *string) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDollarInclude(dollarInclude *string) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDollarOrderBy(dollarOrderBy *string) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDollarSkip(dollarSkip *int32) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithDollarTop(dollarTop *int32) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithHTTPClient(client *http.Client) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithTimeout(timeout time.Duration) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WithXAvalaraClient(xAvalaraClient *string) *QueryDistanceThresholdsParams
- func (o *QueryDistanceThresholdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryDistanceThresholdsReader
- type QueryDistanceThresholdsUnauthorized
- type UpdateDistanceThresholdBadRequest
- type UpdateDistanceThresholdNotFound
- type UpdateDistanceThresholdOK
- type UpdateDistanceThresholdParams
- func NewUpdateDistanceThresholdParams() *UpdateDistanceThresholdParams
- func NewUpdateDistanceThresholdParamsWithContext(ctx context.Context) *UpdateDistanceThresholdParams
- func NewUpdateDistanceThresholdParamsWithHTTPClient(client *http.Client) *UpdateDistanceThresholdParams
- func NewUpdateDistanceThresholdParamsWithTimeout(timeout time.Duration) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) SetBody(body *models.CompanyDistanceThresholdModel)
- func (o *UpdateDistanceThresholdParams) SetCompanyID(companyID int32)
- func (o *UpdateDistanceThresholdParams) SetContext(ctx context.Context)
- func (o *UpdateDistanceThresholdParams) SetDefaults()
- func (o *UpdateDistanceThresholdParams) SetHTTPClient(client *http.Client)
- func (o *UpdateDistanceThresholdParams) SetID(id int64)
- func (o *UpdateDistanceThresholdParams) SetTimeout(timeout time.Duration)
- func (o *UpdateDistanceThresholdParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *UpdateDistanceThresholdParams) WithBody(body *models.CompanyDistanceThresholdModel) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithCompanyID(companyID int32) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithContext(ctx context.Context) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithDefaults() *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithHTTPClient(client *http.Client) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithID(id int64) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithTimeout(timeout time.Duration) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateDistanceThresholdParams
- func (o *UpdateDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateDistanceThresholdReader
- type UpdateDistanceThresholdUnauthorized
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 ¶
func (o *CreateDistanceThresholdBadRequest) Error() string
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 ¶
func (o *CreateDistanceThresholdNotFound) Error() string
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 ¶
func (o *CreateDistanceThresholdOK) GetPayload() []*models.CompanyDistanceThresholdModel
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 ¶
func (o *CreateDistanceThresholdParams) SetBody(body []*models.CompanyDistanceThresholdModel)
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 ¶
func (o *CreateDistanceThresholdParams) WithBody(body []*models.CompanyDistanceThresholdModel) *CreateDistanceThresholdParams
WithBody adds the body to the create distance threshold params
func (*CreateDistanceThresholdParams) WithCompanyID ¶
func (o *CreateDistanceThresholdParams) WithCompanyID(companyID int32) *CreateDistanceThresholdParams
WithCompanyID adds the companyID to the create distance threshold params
func (*CreateDistanceThresholdParams) WithContext ¶
func (o *CreateDistanceThresholdParams) WithContext(ctx context.Context) *CreateDistanceThresholdParams
WithContext adds the context to the create distance threshold params
func (*CreateDistanceThresholdParams) WithDefaults ¶
func (o *CreateDistanceThresholdParams) WithDefaults() *CreateDistanceThresholdParams
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 ¶
func (o *CreateDistanceThresholdParams) WithHTTPClient(client *http.Client) *CreateDistanceThresholdParams
WithHTTPClient adds the HTTPClient to the create distance threshold params
func (*CreateDistanceThresholdParams) WithTimeout ¶
func (o *CreateDistanceThresholdParams) WithTimeout(timeout time.Duration) *CreateDistanceThresholdParams
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 ¶
func (o *CreateDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *CreateDistanceThresholdUnauthorized) Error() string
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 ¶
func (o *DeleteDistanceThresholdBadRequest) Error() string
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 ¶
func (o *DeleteDistanceThresholdNotFound) Error() string
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 ¶
func (o *DeleteDistanceThresholdParams) WithCompanyID(companyID int32) *DeleteDistanceThresholdParams
WithCompanyID adds the companyID to the delete distance threshold params
func (*DeleteDistanceThresholdParams) WithContext ¶
func (o *DeleteDistanceThresholdParams) WithContext(ctx context.Context) *DeleteDistanceThresholdParams
WithContext adds the context to the delete distance threshold params
func (*DeleteDistanceThresholdParams) WithDefaults ¶
func (o *DeleteDistanceThresholdParams) WithDefaults() *DeleteDistanceThresholdParams
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 ¶
func (o *DeleteDistanceThresholdParams) WithHTTPClient(client *http.Client) *DeleteDistanceThresholdParams
WithHTTPClient adds the HTTPClient to the delete distance threshold params
func (*DeleteDistanceThresholdParams) WithID ¶
func (o *DeleteDistanceThresholdParams) WithID(id int64) *DeleteDistanceThresholdParams
WithID adds the id to the delete distance threshold params
func (*DeleteDistanceThresholdParams) WithTimeout ¶
func (o *DeleteDistanceThresholdParams) WithTimeout(timeout time.Duration) *DeleteDistanceThresholdParams
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 ¶
func (o *DeleteDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DeleteDistanceThresholdUnauthorized) Error() string
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 ¶
func (o *GetDistanceThresholdBadRequest) Error() string
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 ¶
func (o *GetDistanceThresholdNotFound) Error() string
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 ¶
func (o *GetDistanceThresholdOK) GetPayload() *models.CompanyDistanceThresholdModel
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 ¶
func (o *GetDistanceThresholdParams) WithContext(ctx context.Context) *GetDistanceThresholdParams
WithContext adds the context to the get distance threshold params
func (*GetDistanceThresholdParams) WithDefaults ¶
func (o *GetDistanceThresholdParams) WithDefaults() *GetDistanceThresholdParams
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 ¶
func (o *GetDistanceThresholdParams) WithHTTPClient(client *http.Client) *GetDistanceThresholdParams
WithHTTPClient adds the HTTPClient to the get distance threshold params
func (*GetDistanceThresholdParams) WithID ¶
func (o *GetDistanceThresholdParams) WithID(id int64) *GetDistanceThresholdParams
WithID adds the id to the get distance threshold params
func (*GetDistanceThresholdParams) WithTimeout ¶
func (o *GetDistanceThresholdParams) WithTimeout(timeout time.Duration) *GetDistanceThresholdParams
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 ¶
func (o *GetDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *GetDistanceThresholdUnauthorized) Error() string
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 ¶
func (o *ListDistanceThresholdsBadRequest) Error() string
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 ¶
func (o *ListDistanceThresholdsNotFound) Error() string
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 ¶
func (o *ListDistanceThresholdsOK) GetPayload() *models.CompanyDistanceThresholdModelFetchResult
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 ¶
func (o *ListDistanceThresholdsParams) WithCompanyID(companyID int32) *ListDistanceThresholdsParams
WithCompanyID adds the companyID to the list distance thresholds params
func (*ListDistanceThresholdsParams) WithContext ¶
func (o *ListDistanceThresholdsParams) WithContext(ctx context.Context) *ListDistanceThresholdsParams
WithContext adds the context to the list distance thresholds params
func (*ListDistanceThresholdsParams) WithDefaults ¶
func (o *ListDistanceThresholdsParams) WithDefaults() *ListDistanceThresholdsParams
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 ¶
func (o *ListDistanceThresholdsParams) WithHTTPClient(client *http.Client) *ListDistanceThresholdsParams
WithHTTPClient adds the HTTPClient to the list distance thresholds params
func (*ListDistanceThresholdsParams) WithTimeout ¶
func (o *ListDistanceThresholdsParams) WithTimeout(timeout time.Duration) *ListDistanceThresholdsParams
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 ¶
func (o *ListDistanceThresholdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *ListDistanceThresholdsUnauthorized) Error() string
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 ¶
func (o *QueryDistanceThresholdsBadRequest) Error() string
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 ¶
func (o *QueryDistanceThresholdsOK) GetPayload() *models.CompanyDistanceThresholdModelFetchResult
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 ¶
func (o *QueryDistanceThresholdsParams) WithContext(ctx context.Context) *QueryDistanceThresholdsParams
WithContext adds the context to the query distance thresholds params
func (*QueryDistanceThresholdsParams) WithDefaults ¶
func (o *QueryDistanceThresholdsParams) WithDefaults() *QueryDistanceThresholdsParams
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 ¶
func (o *QueryDistanceThresholdsParams) WithDollarTop(dollarTop *int32) *QueryDistanceThresholdsParams
WithDollarTop adds the dollarTop to the query distance thresholds params
func (*QueryDistanceThresholdsParams) WithHTTPClient ¶
func (o *QueryDistanceThresholdsParams) WithHTTPClient(client *http.Client) *QueryDistanceThresholdsParams
WithHTTPClient adds the HTTPClient to the query distance thresholds params
func (*QueryDistanceThresholdsParams) WithTimeout ¶
func (o *QueryDistanceThresholdsParams) WithTimeout(timeout time.Duration) *QueryDistanceThresholdsParams
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 ¶
func (o *QueryDistanceThresholdsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *QueryDistanceThresholdsUnauthorized) Error() string
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 ¶
func (o *UpdateDistanceThresholdBadRequest) Error() string
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 ¶
func (o *UpdateDistanceThresholdNotFound) Error() string
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 ¶
func (o *UpdateDistanceThresholdOK) GetPayload() *models.CompanyDistanceThresholdModel
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 ¶
func (o *UpdateDistanceThresholdParams) SetBody(body *models.CompanyDistanceThresholdModel)
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 ¶
func (o *UpdateDistanceThresholdParams) WithBody(body *models.CompanyDistanceThresholdModel) *UpdateDistanceThresholdParams
WithBody adds the body to the update distance threshold params
func (*UpdateDistanceThresholdParams) WithCompanyID ¶
func (o *UpdateDistanceThresholdParams) WithCompanyID(companyID int32) *UpdateDistanceThresholdParams
WithCompanyID adds the companyID to the update distance threshold params
func (*UpdateDistanceThresholdParams) WithContext ¶
func (o *UpdateDistanceThresholdParams) WithContext(ctx context.Context) *UpdateDistanceThresholdParams
WithContext adds the context to the update distance threshold params
func (*UpdateDistanceThresholdParams) WithDefaults ¶
func (o *UpdateDistanceThresholdParams) WithDefaults() *UpdateDistanceThresholdParams
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 ¶
func (o *UpdateDistanceThresholdParams) WithHTTPClient(client *http.Client) *UpdateDistanceThresholdParams
WithHTTPClient adds the HTTPClient to the update distance threshold params
func (*UpdateDistanceThresholdParams) WithID ¶
func (o *UpdateDistanceThresholdParams) WithID(id int64) *UpdateDistanceThresholdParams
WithID adds the id to the update distance threshold params
func (*UpdateDistanceThresholdParams) WithTimeout ¶
func (o *UpdateDistanceThresholdParams) WithTimeout(timeout time.Duration) *UpdateDistanceThresholdParams
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 ¶
func (o *UpdateDistanceThresholdParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *UpdateDistanceThresholdUnauthorized) Error() string
Source Files
¶
- create_distance_threshold_parameters.go
- create_distance_threshold_responses.go
- delete_distance_threshold_parameters.go
- delete_distance_threshold_responses.go
- distance_thresholds_client.go
- get_distance_threshold_parameters.go
- get_distance_threshold_responses.go
- list_distance_thresholds_parameters.go
- list_distance_thresholds_responses.go
- query_distance_thresholds_parameters.go
- query_distance_thresholds_responses.go
- update_distance_threshold_parameters.go
- update_distance_threshold_responses.go