Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateTaxRules(params *CreateTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateTaxRulesOK, error)
- func (a *Client) DeleteTaxRule(params *DeleteTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteTaxRuleOK, error)
- func (a *Client) GetTaxRule(params *GetTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetTaxRuleOK, error)
- func (a *Client) ListTaxRules(params *ListTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListTaxRulesOK, error)
- func (a *Client) QueryTaxRules(params *QueryTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*QueryTaxRulesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateTaxRule(params *UpdateTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateTaxRuleOK, error)
- type ClientOption
- type ClientService
- type CreateTaxRulesBadRequest
- type CreateTaxRulesNotFound
- type CreateTaxRulesOK
- type CreateTaxRulesParams
- func NewCreateTaxRulesParams() *CreateTaxRulesParams
- func NewCreateTaxRulesParamsWithContext(ctx context.Context) *CreateTaxRulesParams
- func NewCreateTaxRulesParamsWithHTTPClient(client *http.Client) *CreateTaxRulesParams
- func NewCreateTaxRulesParamsWithTimeout(timeout time.Duration) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) SetBody(body []*models.TaxRuleModel)
- func (o *CreateTaxRulesParams) SetCompanyID(companyID int32)
- func (o *CreateTaxRulesParams) SetContext(ctx context.Context)
- func (o *CreateTaxRulesParams) SetDefaults()
- func (o *CreateTaxRulesParams) SetHTTPClient(client *http.Client)
- func (o *CreateTaxRulesParams) SetTimeout(timeout time.Duration)
- func (o *CreateTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *CreateTaxRulesParams) WithBody(body []*models.TaxRuleModel) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithCompanyID(companyID int32) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithContext(ctx context.Context) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithDefaults() *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithHTTPClient(client *http.Client) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithTimeout(timeout time.Duration) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *CreateTaxRulesParams
- func (o *CreateTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateTaxRulesReader
- type CreateTaxRulesUnauthorized
- type DeleteTaxRuleBadRequest
- type DeleteTaxRuleNotFound
- type DeleteTaxRuleOK
- type DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) SetCompanyID(companyID int32)
- func (o *DeleteTaxRuleParams) SetContext(ctx context.Context)
- func (o *DeleteTaxRuleParams) SetDefaults()
- func (o *DeleteTaxRuleParams) SetHTTPClient(client *http.Client)
- func (o *DeleteTaxRuleParams) SetID(id int32)
- func (o *DeleteTaxRuleParams) SetTimeout(timeout time.Duration)
- func (o *DeleteTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *DeleteTaxRuleParams) WithCompanyID(companyID int32) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithContext(ctx context.Context) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithDefaults() *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithHTTPClient(client *http.Client) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithID(id int32) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithTimeout(timeout time.Duration) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteTaxRuleParams
- func (o *DeleteTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteTaxRuleReader
- type DeleteTaxRuleUnauthorized
- type GetTaxRuleBadRequest
- type GetTaxRuleNotFound
- type GetTaxRuleOK
- type GetTaxRuleParams
- func (o *GetTaxRuleParams) SetCompanyID(companyID int32)
- func (o *GetTaxRuleParams) SetContext(ctx context.Context)
- func (o *GetTaxRuleParams) SetDefaults()
- func (o *GetTaxRuleParams) SetHTTPClient(client *http.Client)
- func (o *GetTaxRuleParams) SetID(id int32)
- func (o *GetTaxRuleParams) SetTimeout(timeout time.Duration)
- func (o *GetTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *GetTaxRuleParams) WithCompanyID(companyID int32) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithContext(ctx context.Context) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithDefaults() *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithHTTPClient(client *http.Client) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithID(id int32) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithTimeout(timeout time.Duration) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *GetTaxRuleParams
- func (o *GetTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetTaxRuleReader
- type GetTaxRuleUnauthorized
- type ListTaxRulesBadRequest
- type ListTaxRulesNotFound
- type ListTaxRulesOK
- type ListTaxRulesParams
- func (o *ListTaxRulesParams) SetCompanyID(companyID int32)
- func (o *ListTaxRulesParams) SetContext(ctx context.Context)
- func (o *ListTaxRulesParams) SetDefaults()
- func (o *ListTaxRulesParams) SetDollarFilter(dollarFilter *string)
- func (o *ListTaxRulesParams) SetDollarInclude(dollarInclude *string)
- func (o *ListTaxRulesParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *ListTaxRulesParams) SetDollarSkip(dollarSkip *int32)
- func (o *ListTaxRulesParams) SetDollarTop(dollarTop *int32)
- func (o *ListTaxRulesParams) SetHTTPClient(client *http.Client)
- func (o *ListTaxRulesParams) SetTimeout(timeout time.Duration)
- func (o *ListTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *ListTaxRulesParams) WithCompanyID(companyID int32) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithContext(ctx context.Context) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDefaults() *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDollarFilter(dollarFilter *string) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDollarInclude(dollarInclude *string) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDollarOrderBy(dollarOrderBy *string) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDollarSkip(dollarSkip *int32) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithDollarTop(dollarTop *int32) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithHTTPClient(client *http.Client) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithTimeout(timeout time.Duration) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *ListTaxRulesParams
- func (o *ListTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListTaxRulesReader
- type ListTaxRulesUnauthorized
- type QueryTaxRulesBadRequest
- type QueryTaxRulesOK
- type QueryTaxRulesParams
- func (o *QueryTaxRulesParams) SetContext(ctx context.Context)
- func (o *QueryTaxRulesParams) SetDefaults()
- func (o *QueryTaxRulesParams) SetDollarFilter(dollarFilter *string)
- func (o *QueryTaxRulesParams) SetDollarInclude(dollarInclude *string)
- func (o *QueryTaxRulesParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *QueryTaxRulesParams) SetDollarSkip(dollarSkip *int32)
- func (o *QueryTaxRulesParams) SetDollarTop(dollarTop *int32)
- func (o *QueryTaxRulesParams) SetHTTPClient(client *http.Client)
- func (o *QueryTaxRulesParams) SetTimeout(timeout time.Duration)
- func (o *QueryTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *QueryTaxRulesParams) WithContext(ctx context.Context) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDefaults() *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDollarFilter(dollarFilter *string) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDollarInclude(dollarInclude *string) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDollarOrderBy(dollarOrderBy *string) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDollarSkip(dollarSkip *int32) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithDollarTop(dollarTop *int32) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithHTTPClient(client *http.Client) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithTimeout(timeout time.Duration) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *QueryTaxRulesParams
- func (o *QueryTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryTaxRulesReader
- type QueryTaxRulesUnauthorized
- type UpdateTaxRuleBadRequest
- type UpdateTaxRuleNotFound
- type UpdateTaxRuleOK
- type UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) SetBody(body *models.TaxRuleModel)
- func (o *UpdateTaxRuleParams) SetCompanyID(companyID int32)
- func (o *UpdateTaxRuleParams) SetContext(ctx context.Context)
- func (o *UpdateTaxRuleParams) SetDefaults()
- func (o *UpdateTaxRuleParams) SetHTTPClient(client *http.Client)
- func (o *UpdateTaxRuleParams) SetID(id int32)
- func (o *UpdateTaxRuleParams) SetTimeout(timeout time.Duration)
- func (o *UpdateTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *UpdateTaxRuleParams) WithBody(body *models.TaxRuleModel) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithCompanyID(companyID int32) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithContext(ctx context.Context) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithDefaults() *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithHTTPClient(client *http.Client) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithID(id int32) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithTimeout(timeout time.Duration) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateTaxRuleParams
- func (o *UpdateTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateTaxRuleReader
- type UpdateTaxRuleUnauthorized
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 tax rules API
func (*Client) CreateTaxRules ¶
func (a *Client) CreateTaxRules(params *CreateTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaxRulesOK, error)
CreateTaxRules creates a new tax rule Create one or more custom tax rules attached to this company.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
func (*Client) DeleteTaxRule ¶
func (a *Client) DeleteTaxRule(params *DeleteTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaxRuleOK, error)
DeleteTaxRule deletes a single tax rule Mark the custom tax rule identified by this URL as deleted.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
func (*Client) GetTaxRule ¶
func (a *Client) GetTaxRule(params *GetTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaxRuleOK, error)
GetTaxRule retrieves a single tax rule Get the taxrule object identified by this URL.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser.
func (*Client) ListTaxRules ¶
func (a *Client) ListTaxRules(params *ListTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTaxRulesOK, error)
ListTaxRules retrieves tax rules for this company List all taxrule objects attached to this company.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
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.
func (*Client) QueryTaxRules ¶
func (a *Client) QueryTaxRules(params *QueryTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryTaxRulesOK, error)
QueryTaxRules retrieves all tax rules Get multiple taxrule objects across all companies.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
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.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateTaxRule ¶
func (a *Client) UpdateTaxRule(params *UpdateTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaxRuleOK, error)
UpdateTaxRule updates a single tax rule Replace the existing custom tax rule object at this URL with an updated object.
A tax rule represents a rule that changes the default AvaTax behavior for a product or jurisdiction. Custom tax rules can be used to change the taxability of an item, to change the tax base of an item, or to change the tax rate charged when selling an item. Tax rules can also change tax behavior depending on the `entityUseCode` value submitted with the transaction.
You can create custom tax rules to customize the behavior of AvaTax to match specific rules that are custom to your business. If you have obtained a ruling from a tax auditor that requires custom tax calculations, you can use custom tax rules to redefine the behavior for your company or item.
Please use custom tax rules carefully and ensure that these tax rules match the behavior agreed upon with your auditor, legal representative, and accounting team.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateTaxRules(params *CreateTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaxRulesOK, error) DeleteTaxRule(params *DeleteTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaxRuleOK, error) GetTaxRule(params *GetTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaxRuleOK, error) ListTaxRules(params *ListTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTaxRulesOK, error) QueryTaxRules(params *QueryTaxRulesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryTaxRulesOK, error) UpdateTaxRule(params *UpdateTaxRuleParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaxRuleOK, 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 tax rules API client.
type CreateTaxRulesBadRequest ¶
type CreateTaxRulesBadRequest struct { }
CreateTaxRulesBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateTaxRulesBadRequest ¶
func NewCreateTaxRulesBadRequest() *CreateTaxRulesBadRequest
NewCreateTaxRulesBadRequest creates a CreateTaxRulesBadRequest with default headers values
func (*CreateTaxRulesBadRequest) Error ¶
func (o *CreateTaxRulesBadRequest) Error() string
type CreateTaxRulesNotFound ¶
type CreateTaxRulesNotFound struct { }
CreateTaxRulesNotFound describes a response with status code 404, with default header values.
Not Found
func NewCreateTaxRulesNotFound ¶
func NewCreateTaxRulesNotFound() *CreateTaxRulesNotFound
NewCreateTaxRulesNotFound creates a CreateTaxRulesNotFound with default headers values
func (*CreateTaxRulesNotFound) Error ¶
func (o *CreateTaxRulesNotFound) Error() string
type CreateTaxRulesOK ¶
type CreateTaxRulesOK struct {
Payload []*models.TaxRuleModel
}
CreateTaxRulesOK describes a response with status code 200, with default header values.
Success
func NewCreateTaxRulesOK ¶
func NewCreateTaxRulesOK() *CreateTaxRulesOK
NewCreateTaxRulesOK creates a CreateTaxRulesOK with default headers values
func (*CreateTaxRulesOK) Error ¶
func (o *CreateTaxRulesOK) Error() string
func (*CreateTaxRulesOK) GetPayload ¶
func (o *CreateTaxRulesOK) GetPayload() []*models.TaxRuleModel
type CreateTaxRulesParams ¶
type CreateTaxRulesParams 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 tax rule you wish to create. */ Body []*models.TaxRuleModel /* CompanyID. The ID of the company that owns this tax rule. Format: int32 */ CompanyID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateTaxRulesParams contains all the parameters to send to the API endpoint
for the create tax rules operation. Typically these are written to a http.Request.
func NewCreateTaxRulesParams ¶
func NewCreateTaxRulesParams() *CreateTaxRulesParams
NewCreateTaxRulesParams creates a new CreateTaxRulesParams 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 NewCreateTaxRulesParamsWithContext ¶
func NewCreateTaxRulesParamsWithContext(ctx context.Context) *CreateTaxRulesParams
NewCreateTaxRulesParamsWithContext creates a new CreateTaxRulesParams object with the ability to set a context for a request.
func NewCreateTaxRulesParamsWithHTTPClient ¶
func NewCreateTaxRulesParamsWithHTTPClient(client *http.Client) *CreateTaxRulesParams
NewCreateTaxRulesParamsWithHTTPClient creates a new CreateTaxRulesParams object with the ability to set a custom HTTPClient for a request.
func NewCreateTaxRulesParamsWithTimeout ¶
func NewCreateTaxRulesParamsWithTimeout(timeout time.Duration) *CreateTaxRulesParams
NewCreateTaxRulesParamsWithTimeout creates a new CreateTaxRulesParams object with the ability to set a timeout on a request.
func (*CreateTaxRulesParams) SetBody ¶
func (o *CreateTaxRulesParams) SetBody(body []*models.TaxRuleModel)
SetBody adds the body to the create tax rules params
func (*CreateTaxRulesParams) SetCompanyID ¶
func (o *CreateTaxRulesParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the create tax rules params
func (*CreateTaxRulesParams) SetContext ¶
func (o *CreateTaxRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the create tax rules params
func (*CreateTaxRulesParams) SetDefaults ¶
func (o *CreateTaxRulesParams) SetDefaults()
SetDefaults hydrates default values in the create tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTaxRulesParams) SetHTTPClient ¶
func (o *CreateTaxRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create tax rules params
func (*CreateTaxRulesParams) SetTimeout ¶
func (o *CreateTaxRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create tax rules params
func (*CreateTaxRulesParams) SetXAvalaraClient ¶
func (o *CreateTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the create tax rules params
func (*CreateTaxRulesParams) WithBody ¶
func (o *CreateTaxRulesParams) WithBody(body []*models.TaxRuleModel) *CreateTaxRulesParams
WithBody adds the body to the create tax rules params
func (*CreateTaxRulesParams) WithCompanyID ¶
func (o *CreateTaxRulesParams) WithCompanyID(companyID int32) *CreateTaxRulesParams
WithCompanyID adds the companyID to the create tax rules params
func (*CreateTaxRulesParams) WithContext ¶
func (o *CreateTaxRulesParams) WithContext(ctx context.Context) *CreateTaxRulesParams
WithContext adds the context to the create tax rules params
func (*CreateTaxRulesParams) WithDefaults ¶
func (o *CreateTaxRulesParams) WithDefaults() *CreateTaxRulesParams
WithDefaults hydrates default values in the create tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*CreateTaxRulesParams) WithHTTPClient ¶
func (o *CreateTaxRulesParams) WithHTTPClient(client *http.Client) *CreateTaxRulesParams
WithHTTPClient adds the HTTPClient to the create tax rules params
func (*CreateTaxRulesParams) WithTimeout ¶
func (o *CreateTaxRulesParams) WithTimeout(timeout time.Duration) *CreateTaxRulesParams
WithTimeout adds the timeout to the create tax rules params
func (*CreateTaxRulesParams) WithXAvalaraClient ¶
func (o *CreateTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *CreateTaxRulesParams
WithXAvalaraClient adds the xAvalaraClient to the create tax rules params
func (*CreateTaxRulesParams) WriteToRequest ¶
func (o *CreateTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateTaxRulesReader ¶
type CreateTaxRulesReader struct {
// contains filtered or unexported fields
}
CreateTaxRulesReader is a Reader for the CreateTaxRules structure.
func (*CreateTaxRulesReader) ReadResponse ¶
func (o *CreateTaxRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateTaxRulesUnauthorized ¶
type CreateTaxRulesUnauthorized struct { }
CreateTaxRulesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateTaxRulesUnauthorized ¶
func NewCreateTaxRulesUnauthorized() *CreateTaxRulesUnauthorized
NewCreateTaxRulesUnauthorized creates a CreateTaxRulesUnauthorized with default headers values
func (*CreateTaxRulesUnauthorized) Error ¶
func (o *CreateTaxRulesUnauthorized) Error() string
type DeleteTaxRuleBadRequest ¶
type DeleteTaxRuleBadRequest struct { }
DeleteTaxRuleBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteTaxRuleBadRequest ¶
func NewDeleteTaxRuleBadRequest() *DeleteTaxRuleBadRequest
NewDeleteTaxRuleBadRequest creates a DeleteTaxRuleBadRequest with default headers values
func (*DeleteTaxRuleBadRequest) Error ¶
func (o *DeleteTaxRuleBadRequest) Error() string
type DeleteTaxRuleNotFound ¶
type DeleteTaxRuleNotFound struct { }
DeleteTaxRuleNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteTaxRuleNotFound ¶
func NewDeleteTaxRuleNotFound() *DeleteTaxRuleNotFound
NewDeleteTaxRuleNotFound creates a DeleteTaxRuleNotFound with default headers values
func (*DeleteTaxRuleNotFound) Error ¶
func (o *DeleteTaxRuleNotFound) Error() string
type DeleteTaxRuleOK ¶
type DeleteTaxRuleOK struct {
Payload []*models.ErrorDetail
}
DeleteTaxRuleOK describes a response with status code 200, with default header values.
Success
func NewDeleteTaxRuleOK ¶
func NewDeleteTaxRuleOK() *DeleteTaxRuleOK
NewDeleteTaxRuleOK creates a DeleteTaxRuleOK with default headers values
func (*DeleteTaxRuleOK) Error ¶
func (o *DeleteTaxRuleOK) Error() string
func (*DeleteTaxRuleOK) GetPayload ¶
func (o *DeleteTaxRuleOK) GetPayload() []*models.ErrorDetail
type DeleteTaxRuleParams ¶
type DeleteTaxRuleParams 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 tax rule. Format: int32 */ CompanyID int32 /* ID. The ID of the tax rule you wish to delete. Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteTaxRuleParams contains all the parameters to send to the API endpoint
for the delete tax rule operation. Typically these are written to a http.Request.
func NewDeleteTaxRuleParams ¶
func NewDeleteTaxRuleParams() *DeleteTaxRuleParams
NewDeleteTaxRuleParams creates a new DeleteTaxRuleParams 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 NewDeleteTaxRuleParamsWithContext ¶
func NewDeleteTaxRuleParamsWithContext(ctx context.Context) *DeleteTaxRuleParams
NewDeleteTaxRuleParamsWithContext creates a new DeleteTaxRuleParams object with the ability to set a context for a request.
func NewDeleteTaxRuleParamsWithHTTPClient ¶
func NewDeleteTaxRuleParamsWithHTTPClient(client *http.Client) *DeleteTaxRuleParams
NewDeleteTaxRuleParamsWithHTTPClient creates a new DeleteTaxRuleParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteTaxRuleParamsWithTimeout ¶
func NewDeleteTaxRuleParamsWithTimeout(timeout time.Duration) *DeleteTaxRuleParams
NewDeleteTaxRuleParamsWithTimeout creates a new DeleteTaxRuleParams object with the ability to set a timeout on a request.
func (*DeleteTaxRuleParams) SetCompanyID ¶
func (o *DeleteTaxRuleParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the delete tax rule params
func (*DeleteTaxRuleParams) SetContext ¶
func (o *DeleteTaxRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the delete tax rule params
func (*DeleteTaxRuleParams) SetDefaults ¶
func (o *DeleteTaxRuleParams) SetDefaults()
SetDefaults hydrates default values in the delete tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTaxRuleParams) SetHTTPClient ¶
func (o *DeleteTaxRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete tax rule params
func (*DeleteTaxRuleParams) SetID ¶
func (o *DeleteTaxRuleParams) SetID(id int32)
SetID adds the id to the delete tax rule params
func (*DeleteTaxRuleParams) SetTimeout ¶
func (o *DeleteTaxRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete tax rule params
func (*DeleteTaxRuleParams) SetXAvalaraClient ¶
func (o *DeleteTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the delete tax rule params
func (*DeleteTaxRuleParams) WithCompanyID ¶
func (o *DeleteTaxRuleParams) WithCompanyID(companyID int32) *DeleteTaxRuleParams
WithCompanyID adds the companyID to the delete tax rule params
func (*DeleteTaxRuleParams) WithContext ¶
func (o *DeleteTaxRuleParams) WithContext(ctx context.Context) *DeleteTaxRuleParams
WithContext adds the context to the delete tax rule params
func (*DeleteTaxRuleParams) WithDefaults ¶
func (o *DeleteTaxRuleParams) WithDefaults() *DeleteTaxRuleParams
WithDefaults hydrates default values in the delete tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteTaxRuleParams) WithHTTPClient ¶
func (o *DeleteTaxRuleParams) WithHTTPClient(client *http.Client) *DeleteTaxRuleParams
WithHTTPClient adds the HTTPClient to the delete tax rule params
func (*DeleteTaxRuleParams) WithID ¶
func (o *DeleteTaxRuleParams) WithID(id int32) *DeleteTaxRuleParams
WithID adds the id to the delete tax rule params
func (*DeleteTaxRuleParams) WithTimeout ¶
func (o *DeleteTaxRuleParams) WithTimeout(timeout time.Duration) *DeleteTaxRuleParams
WithTimeout adds the timeout to the delete tax rule params
func (*DeleteTaxRuleParams) WithXAvalaraClient ¶
func (o *DeleteTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteTaxRuleParams
WithXAvalaraClient adds the xAvalaraClient to the delete tax rule params
func (*DeleteTaxRuleParams) WriteToRequest ¶
func (o *DeleteTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteTaxRuleReader ¶
type DeleteTaxRuleReader struct {
// contains filtered or unexported fields
}
DeleteTaxRuleReader is a Reader for the DeleteTaxRule structure.
func (*DeleteTaxRuleReader) ReadResponse ¶
func (o *DeleteTaxRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteTaxRuleUnauthorized ¶
type DeleteTaxRuleUnauthorized struct { }
DeleteTaxRuleUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteTaxRuleUnauthorized ¶
func NewDeleteTaxRuleUnauthorized() *DeleteTaxRuleUnauthorized
NewDeleteTaxRuleUnauthorized creates a DeleteTaxRuleUnauthorized with default headers values
func (*DeleteTaxRuleUnauthorized) Error ¶
func (o *DeleteTaxRuleUnauthorized) Error() string
type GetTaxRuleBadRequest ¶
type GetTaxRuleBadRequest struct { }
GetTaxRuleBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetTaxRuleBadRequest ¶
func NewGetTaxRuleBadRequest() *GetTaxRuleBadRequest
NewGetTaxRuleBadRequest creates a GetTaxRuleBadRequest with default headers values
func (*GetTaxRuleBadRequest) Error ¶
func (o *GetTaxRuleBadRequest) Error() string
type GetTaxRuleNotFound ¶
type GetTaxRuleNotFound struct { }
GetTaxRuleNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetTaxRuleNotFound ¶
func NewGetTaxRuleNotFound() *GetTaxRuleNotFound
NewGetTaxRuleNotFound creates a GetTaxRuleNotFound with default headers values
func (*GetTaxRuleNotFound) Error ¶
func (o *GetTaxRuleNotFound) Error() string
type GetTaxRuleOK ¶
type GetTaxRuleOK struct {
Payload *models.TaxRuleModel
}
GetTaxRuleOK describes a response with status code 200, with default header values.
Success
func NewGetTaxRuleOK ¶
func NewGetTaxRuleOK() *GetTaxRuleOK
NewGetTaxRuleOK creates a GetTaxRuleOK with default headers values
func (*GetTaxRuleOK) Error ¶
func (o *GetTaxRuleOK) Error() string
func (*GetTaxRuleOK) GetPayload ¶
func (o *GetTaxRuleOK) GetPayload() *models.TaxRuleModel
type GetTaxRuleParams ¶
type GetTaxRuleParams 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 tax rule Format: int32 */ CompanyID int32 /* ID. The primary key of this tax rule Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetTaxRuleParams contains all the parameters to send to the API endpoint
for the get tax rule operation. Typically these are written to a http.Request.
func NewGetTaxRuleParams ¶
func NewGetTaxRuleParams() *GetTaxRuleParams
NewGetTaxRuleParams creates a new GetTaxRuleParams 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 NewGetTaxRuleParamsWithContext ¶
func NewGetTaxRuleParamsWithContext(ctx context.Context) *GetTaxRuleParams
NewGetTaxRuleParamsWithContext creates a new GetTaxRuleParams object with the ability to set a context for a request.
func NewGetTaxRuleParamsWithHTTPClient ¶
func NewGetTaxRuleParamsWithHTTPClient(client *http.Client) *GetTaxRuleParams
NewGetTaxRuleParamsWithHTTPClient creates a new GetTaxRuleParams object with the ability to set a custom HTTPClient for a request.
func NewGetTaxRuleParamsWithTimeout ¶
func NewGetTaxRuleParamsWithTimeout(timeout time.Duration) *GetTaxRuleParams
NewGetTaxRuleParamsWithTimeout creates a new GetTaxRuleParams object with the ability to set a timeout on a request.
func (*GetTaxRuleParams) SetCompanyID ¶
func (o *GetTaxRuleParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the get tax rule params
func (*GetTaxRuleParams) SetContext ¶
func (o *GetTaxRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the get tax rule params
func (*GetTaxRuleParams) SetDefaults ¶
func (o *GetTaxRuleParams) SetDefaults()
SetDefaults hydrates default values in the get tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetTaxRuleParams) SetHTTPClient ¶
func (o *GetTaxRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get tax rule params
func (*GetTaxRuleParams) SetID ¶
func (o *GetTaxRuleParams) SetID(id int32)
SetID adds the id to the get tax rule params
func (*GetTaxRuleParams) SetTimeout ¶
func (o *GetTaxRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get tax rule params
func (*GetTaxRuleParams) SetXAvalaraClient ¶
func (o *GetTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the get tax rule params
func (*GetTaxRuleParams) WithCompanyID ¶
func (o *GetTaxRuleParams) WithCompanyID(companyID int32) *GetTaxRuleParams
WithCompanyID adds the companyID to the get tax rule params
func (*GetTaxRuleParams) WithContext ¶
func (o *GetTaxRuleParams) WithContext(ctx context.Context) *GetTaxRuleParams
WithContext adds the context to the get tax rule params
func (*GetTaxRuleParams) WithDefaults ¶
func (o *GetTaxRuleParams) WithDefaults() *GetTaxRuleParams
WithDefaults hydrates default values in the get tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*GetTaxRuleParams) WithHTTPClient ¶
func (o *GetTaxRuleParams) WithHTTPClient(client *http.Client) *GetTaxRuleParams
WithHTTPClient adds the HTTPClient to the get tax rule params
func (*GetTaxRuleParams) WithID ¶
func (o *GetTaxRuleParams) WithID(id int32) *GetTaxRuleParams
WithID adds the id to the get tax rule params
func (*GetTaxRuleParams) WithTimeout ¶
func (o *GetTaxRuleParams) WithTimeout(timeout time.Duration) *GetTaxRuleParams
WithTimeout adds the timeout to the get tax rule params
func (*GetTaxRuleParams) WithXAvalaraClient ¶
func (o *GetTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *GetTaxRuleParams
WithXAvalaraClient adds the xAvalaraClient to the get tax rule params
func (*GetTaxRuleParams) WriteToRequest ¶
func (o *GetTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetTaxRuleReader ¶
type GetTaxRuleReader struct {
// contains filtered or unexported fields
}
GetTaxRuleReader is a Reader for the GetTaxRule structure.
func (*GetTaxRuleReader) ReadResponse ¶
func (o *GetTaxRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetTaxRuleUnauthorized ¶
type GetTaxRuleUnauthorized struct { }
GetTaxRuleUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetTaxRuleUnauthorized ¶
func NewGetTaxRuleUnauthorized() *GetTaxRuleUnauthorized
NewGetTaxRuleUnauthorized creates a GetTaxRuleUnauthorized with default headers values
func (*GetTaxRuleUnauthorized) Error ¶
func (o *GetTaxRuleUnauthorized) Error() string
type ListTaxRulesBadRequest ¶
type ListTaxRulesBadRequest struct { }
ListTaxRulesBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewListTaxRulesBadRequest ¶
func NewListTaxRulesBadRequest() *ListTaxRulesBadRequest
NewListTaxRulesBadRequest creates a ListTaxRulesBadRequest with default headers values
func (*ListTaxRulesBadRequest) Error ¶
func (o *ListTaxRulesBadRequest) Error() string
type ListTaxRulesNotFound ¶
type ListTaxRulesNotFound struct { }
ListTaxRulesNotFound describes a response with status code 404, with default header values.
Not Found
func NewListTaxRulesNotFound ¶
func NewListTaxRulesNotFound() *ListTaxRulesNotFound
NewListTaxRulesNotFound creates a ListTaxRulesNotFound with default headers values
func (*ListTaxRulesNotFound) Error ¶
func (o *ListTaxRulesNotFound) Error() string
type ListTaxRulesOK ¶
type ListTaxRulesOK struct {
Payload *models.TaxRuleModelFetchResult
}
ListTaxRulesOK describes a response with status code 200, with default header values.
Success
func NewListTaxRulesOK ¶
func NewListTaxRulesOK() *ListTaxRulesOK
NewListTaxRulesOK creates a ListTaxRulesOK with default headers values
func (*ListTaxRulesOK) Error ¶
func (o *ListTaxRulesOK) Error() string
func (*ListTaxRulesOK) GetPayload ¶
func (o *ListTaxRulesOK) GetPayload() *models.TaxRuleModelFetchResult
type ListTaxRulesParams ¶
type ListTaxRulesParams struct { /* DollarFilter. A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* taxCode, taxTypeCode, taxRuleProductDetail, rateTypeCode, taxTypeGroup, taxSubType, unitOfBasis */ DollarFilter *string /* DollarInclude. A comma separated list of additional data to retrieve. */ DollarInclude *string /* DollarOrderBy. A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`. */ DollarOrderBy *string /* DollarSkip. If nonzero, skip this number of results before returning data. Used with `$top` to provide pagination for large datasets. Format: int32 */ DollarSkip *int32 /* DollarTop. If nonzero, return no more than this number of results. Used with `$skip` to provide pagination for large datasets. Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records. Format: int32 */ DollarTop *int32 /* XAvalaraClient. Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . Default: "Swagger UI; 21.12.0; Custom; 1.0" */ XAvalaraClient *string /* CompanyID. The ID of the company that owns these tax rules Format: int32 */ CompanyID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListTaxRulesParams contains all the parameters to send to the API endpoint
for the list tax rules operation. Typically these are written to a http.Request.
func NewListTaxRulesParams ¶
func NewListTaxRulesParams() *ListTaxRulesParams
NewListTaxRulesParams creates a new ListTaxRulesParams 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 NewListTaxRulesParamsWithContext ¶
func NewListTaxRulesParamsWithContext(ctx context.Context) *ListTaxRulesParams
NewListTaxRulesParamsWithContext creates a new ListTaxRulesParams object with the ability to set a context for a request.
func NewListTaxRulesParamsWithHTTPClient ¶
func NewListTaxRulesParamsWithHTTPClient(client *http.Client) *ListTaxRulesParams
NewListTaxRulesParamsWithHTTPClient creates a new ListTaxRulesParams object with the ability to set a custom HTTPClient for a request.
func NewListTaxRulesParamsWithTimeout ¶
func NewListTaxRulesParamsWithTimeout(timeout time.Duration) *ListTaxRulesParams
NewListTaxRulesParamsWithTimeout creates a new ListTaxRulesParams object with the ability to set a timeout on a request.
func (*ListTaxRulesParams) SetCompanyID ¶
func (o *ListTaxRulesParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the list tax rules params
func (*ListTaxRulesParams) SetContext ¶
func (o *ListTaxRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the list tax rules params
func (*ListTaxRulesParams) SetDefaults ¶
func (o *ListTaxRulesParams) SetDefaults()
SetDefaults hydrates default values in the list tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListTaxRulesParams) SetDollarFilter ¶
func (o *ListTaxRulesParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the list tax rules params
func (*ListTaxRulesParams) SetDollarInclude ¶
func (o *ListTaxRulesParams) SetDollarInclude(dollarInclude *string)
SetDollarInclude adds the dollarInclude to the list tax rules params
func (*ListTaxRulesParams) SetDollarOrderBy ¶
func (o *ListTaxRulesParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the list tax rules params
func (*ListTaxRulesParams) SetDollarSkip ¶
func (o *ListTaxRulesParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the list tax rules params
func (*ListTaxRulesParams) SetDollarTop ¶
func (o *ListTaxRulesParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the list tax rules params
func (*ListTaxRulesParams) SetHTTPClient ¶
func (o *ListTaxRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list tax rules params
func (*ListTaxRulesParams) SetTimeout ¶
func (o *ListTaxRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list tax rules params
func (*ListTaxRulesParams) SetXAvalaraClient ¶
func (o *ListTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the list tax rules params
func (*ListTaxRulesParams) WithCompanyID ¶
func (o *ListTaxRulesParams) WithCompanyID(companyID int32) *ListTaxRulesParams
WithCompanyID adds the companyID to the list tax rules params
func (*ListTaxRulesParams) WithContext ¶
func (o *ListTaxRulesParams) WithContext(ctx context.Context) *ListTaxRulesParams
WithContext adds the context to the list tax rules params
func (*ListTaxRulesParams) WithDefaults ¶
func (o *ListTaxRulesParams) WithDefaults() *ListTaxRulesParams
WithDefaults hydrates default values in the list tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*ListTaxRulesParams) WithDollarFilter ¶
func (o *ListTaxRulesParams) WithDollarFilter(dollarFilter *string) *ListTaxRulesParams
WithDollarFilter adds the dollarFilter to the list tax rules params
func (*ListTaxRulesParams) WithDollarInclude ¶
func (o *ListTaxRulesParams) WithDollarInclude(dollarInclude *string) *ListTaxRulesParams
WithDollarInclude adds the dollarInclude to the list tax rules params
func (*ListTaxRulesParams) WithDollarOrderBy ¶
func (o *ListTaxRulesParams) WithDollarOrderBy(dollarOrderBy *string) *ListTaxRulesParams
WithDollarOrderBy adds the dollarOrderBy to the list tax rules params
func (*ListTaxRulesParams) WithDollarSkip ¶
func (o *ListTaxRulesParams) WithDollarSkip(dollarSkip *int32) *ListTaxRulesParams
WithDollarSkip adds the dollarSkip to the list tax rules params
func (*ListTaxRulesParams) WithDollarTop ¶
func (o *ListTaxRulesParams) WithDollarTop(dollarTop *int32) *ListTaxRulesParams
WithDollarTop adds the dollarTop to the list tax rules params
func (*ListTaxRulesParams) WithHTTPClient ¶
func (o *ListTaxRulesParams) WithHTTPClient(client *http.Client) *ListTaxRulesParams
WithHTTPClient adds the HTTPClient to the list tax rules params
func (*ListTaxRulesParams) WithTimeout ¶
func (o *ListTaxRulesParams) WithTimeout(timeout time.Duration) *ListTaxRulesParams
WithTimeout adds the timeout to the list tax rules params
func (*ListTaxRulesParams) WithXAvalaraClient ¶
func (o *ListTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *ListTaxRulesParams
WithXAvalaraClient adds the xAvalaraClient to the list tax rules params
func (*ListTaxRulesParams) WriteToRequest ¶
func (o *ListTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListTaxRulesReader ¶
type ListTaxRulesReader struct {
// contains filtered or unexported fields
}
ListTaxRulesReader is a Reader for the ListTaxRules structure.
func (*ListTaxRulesReader) ReadResponse ¶
func (o *ListTaxRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListTaxRulesUnauthorized ¶
type ListTaxRulesUnauthorized struct { }
ListTaxRulesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListTaxRulesUnauthorized ¶
func NewListTaxRulesUnauthorized() *ListTaxRulesUnauthorized
NewListTaxRulesUnauthorized creates a ListTaxRulesUnauthorized with default headers values
func (*ListTaxRulesUnauthorized) Error ¶
func (o *ListTaxRulesUnauthorized) Error() string
type QueryTaxRulesBadRequest ¶
type QueryTaxRulesBadRequest struct { }
QueryTaxRulesBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewQueryTaxRulesBadRequest ¶
func NewQueryTaxRulesBadRequest() *QueryTaxRulesBadRequest
NewQueryTaxRulesBadRequest creates a QueryTaxRulesBadRequest with default headers values
func (*QueryTaxRulesBadRequest) Error ¶
func (o *QueryTaxRulesBadRequest) Error() string
type QueryTaxRulesOK ¶
type QueryTaxRulesOK struct {
Payload *models.TaxRuleModelFetchResult
}
QueryTaxRulesOK describes a response with status code 200, with default header values.
Success
func NewQueryTaxRulesOK ¶
func NewQueryTaxRulesOK() *QueryTaxRulesOK
NewQueryTaxRulesOK creates a QueryTaxRulesOK with default headers values
func (*QueryTaxRulesOK) Error ¶
func (o *QueryTaxRulesOK) Error() string
func (*QueryTaxRulesOK) GetPayload ¶
func (o *QueryTaxRulesOK) GetPayload() *models.TaxRuleModelFetchResult
type QueryTaxRulesParams ¶
type QueryTaxRulesParams struct { /* DollarFilter. A filter statement to identify specific records to retrieve. For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* taxCode, taxTypeCode, taxRuleProductDetail, rateTypeCode, taxTypeGroup, taxSubType, unitOfBasis */ 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 }
QueryTaxRulesParams contains all the parameters to send to the API endpoint
for the query tax rules operation. Typically these are written to a http.Request.
func NewQueryTaxRulesParams ¶
func NewQueryTaxRulesParams() *QueryTaxRulesParams
NewQueryTaxRulesParams creates a new QueryTaxRulesParams 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 NewQueryTaxRulesParamsWithContext ¶
func NewQueryTaxRulesParamsWithContext(ctx context.Context) *QueryTaxRulesParams
NewQueryTaxRulesParamsWithContext creates a new QueryTaxRulesParams object with the ability to set a context for a request.
func NewQueryTaxRulesParamsWithHTTPClient ¶
func NewQueryTaxRulesParamsWithHTTPClient(client *http.Client) *QueryTaxRulesParams
NewQueryTaxRulesParamsWithHTTPClient creates a new QueryTaxRulesParams object with the ability to set a custom HTTPClient for a request.
func NewQueryTaxRulesParamsWithTimeout ¶
func NewQueryTaxRulesParamsWithTimeout(timeout time.Duration) *QueryTaxRulesParams
NewQueryTaxRulesParamsWithTimeout creates a new QueryTaxRulesParams object with the ability to set a timeout on a request.
func (*QueryTaxRulesParams) SetContext ¶
func (o *QueryTaxRulesParams) SetContext(ctx context.Context)
SetContext adds the context to the query tax rules params
func (*QueryTaxRulesParams) SetDefaults ¶
func (o *QueryTaxRulesParams) SetDefaults()
SetDefaults hydrates default values in the query tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*QueryTaxRulesParams) SetDollarFilter ¶
func (o *QueryTaxRulesParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the query tax rules params
func (*QueryTaxRulesParams) SetDollarInclude ¶
func (o *QueryTaxRulesParams) SetDollarInclude(dollarInclude *string)
SetDollarInclude adds the dollarInclude to the query tax rules params
func (*QueryTaxRulesParams) SetDollarOrderBy ¶
func (o *QueryTaxRulesParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the query tax rules params
func (*QueryTaxRulesParams) SetDollarSkip ¶
func (o *QueryTaxRulesParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the query tax rules params
func (*QueryTaxRulesParams) SetDollarTop ¶
func (o *QueryTaxRulesParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the query tax rules params
func (*QueryTaxRulesParams) SetHTTPClient ¶
func (o *QueryTaxRulesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query tax rules params
func (*QueryTaxRulesParams) SetTimeout ¶
func (o *QueryTaxRulesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query tax rules params
func (*QueryTaxRulesParams) SetXAvalaraClient ¶
func (o *QueryTaxRulesParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the query tax rules params
func (*QueryTaxRulesParams) WithContext ¶
func (o *QueryTaxRulesParams) WithContext(ctx context.Context) *QueryTaxRulesParams
WithContext adds the context to the query tax rules params
func (*QueryTaxRulesParams) WithDefaults ¶
func (o *QueryTaxRulesParams) WithDefaults() *QueryTaxRulesParams
WithDefaults hydrates default values in the query tax rules params (not the query body).
All values with no default are reset to their zero value.
func (*QueryTaxRulesParams) WithDollarFilter ¶
func (o *QueryTaxRulesParams) WithDollarFilter(dollarFilter *string) *QueryTaxRulesParams
WithDollarFilter adds the dollarFilter to the query tax rules params
func (*QueryTaxRulesParams) WithDollarInclude ¶
func (o *QueryTaxRulesParams) WithDollarInclude(dollarInclude *string) *QueryTaxRulesParams
WithDollarInclude adds the dollarInclude to the query tax rules params
func (*QueryTaxRulesParams) WithDollarOrderBy ¶
func (o *QueryTaxRulesParams) WithDollarOrderBy(dollarOrderBy *string) *QueryTaxRulesParams
WithDollarOrderBy adds the dollarOrderBy to the query tax rules params
func (*QueryTaxRulesParams) WithDollarSkip ¶
func (o *QueryTaxRulesParams) WithDollarSkip(dollarSkip *int32) *QueryTaxRulesParams
WithDollarSkip adds the dollarSkip to the query tax rules params
func (*QueryTaxRulesParams) WithDollarTop ¶
func (o *QueryTaxRulesParams) WithDollarTop(dollarTop *int32) *QueryTaxRulesParams
WithDollarTop adds the dollarTop to the query tax rules params
func (*QueryTaxRulesParams) WithHTTPClient ¶
func (o *QueryTaxRulesParams) WithHTTPClient(client *http.Client) *QueryTaxRulesParams
WithHTTPClient adds the HTTPClient to the query tax rules params
func (*QueryTaxRulesParams) WithTimeout ¶
func (o *QueryTaxRulesParams) WithTimeout(timeout time.Duration) *QueryTaxRulesParams
WithTimeout adds the timeout to the query tax rules params
func (*QueryTaxRulesParams) WithXAvalaraClient ¶
func (o *QueryTaxRulesParams) WithXAvalaraClient(xAvalaraClient *string) *QueryTaxRulesParams
WithXAvalaraClient adds the xAvalaraClient to the query tax rules params
func (*QueryTaxRulesParams) WriteToRequest ¶
func (o *QueryTaxRulesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryTaxRulesReader ¶
type QueryTaxRulesReader struct {
// contains filtered or unexported fields
}
QueryTaxRulesReader is a Reader for the QueryTaxRules structure.
func (*QueryTaxRulesReader) ReadResponse ¶
func (o *QueryTaxRulesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryTaxRulesUnauthorized ¶
type QueryTaxRulesUnauthorized struct { }
QueryTaxRulesUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewQueryTaxRulesUnauthorized ¶
func NewQueryTaxRulesUnauthorized() *QueryTaxRulesUnauthorized
NewQueryTaxRulesUnauthorized creates a QueryTaxRulesUnauthorized with default headers values
func (*QueryTaxRulesUnauthorized) Error ¶
func (o *QueryTaxRulesUnauthorized) Error() string
type UpdateTaxRuleBadRequest ¶
type UpdateTaxRuleBadRequest struct { }
UpdateTaxRuleBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateTaxRuleBadRequest ¶
func NewUpdateTaxRuleBadRequest() *UpdateTaxRuleBadRequest
NewUpdateTaxRuleBadRequest creates a UpdateTaxRuleBadRequest with default headers values
func (*UpdateTaxRuleBadRequest) Error ¶
func (o *UpdateTaxRuleBadRequest) Error() string
type UpdateTaxRuleNotFound ¶
type UpdateTaxRuleNotFound struct { }
UpdateTaxRuleNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateTaxRuleNotFound ¶
func NewUpdateTaxRuleNotFound() *UpdateTaxRuleNotFound
NewUpdateTaxRuleNotFound creates a UpdateTaxRuleNotFound with default headers values
func (*UpdateTaxRuleNotFound) Error ¶
func (o *UpdateTaxRuleNotFound) Error() string
type UpdateTaxRuleOK ¶
type UpdateTaxRuleOK struct {
Payload *models.TaxRuleModel
}
UpdateTaxRuleOK describes a response with status code 200, with default header values.
Success
func NewUpdateTaxRuleOK ¶
func NewUpdateTaxRuleOK() *UpdateTaxRuleOK
NewUpdateTaxRuleOK creates a UpdateTaxRuleOK with default headers values
func (*UpdateTaxRuleOK) Error ¶
func (o *UpdateTaxRuleOK) Error() string
func (*UpdateTaxRuleOK) GetPayload ¶
func (o *UpdateTaxRuleOK) GetPayload() *models.TaxRuleModel
type UpdateTaxRuleParams ¶
type UpdateTaxRuleParams 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 tax rule you wish to update. */ Body *models.TaxRuleModel /* CompanyID. The ID of the company that this tax rule belongs to. Format: int32 */ CompanyID int32 /* ID. The ID of the tax rule you wish to update Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateTaxRuleParams contains all the parameters to send to the API endpoint
for the update tax rule operation. Typically these are written to a http.Request.
func NewUpdateTaxRuleParams ¶
func NewUpdateTaxRuleParams() *UpdateTaxRuleParams
NewUpdateTaxRuleParams creates a new UpdateTaxRuleParams 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 NewUpdateTaxRuleParamsWithContext ¶
func NewUpdateTaxRuleParamsWithContext(ctx context.Context) *UpdateTaxRuleParams
NewUpdateTaxRuleParamsWithContext creates a new UpdateTaxRuleParams object with the ability to set a context for a request.
func NewUpdateTaxRuleParamsWithHTTPClient ¶
func NewUpdateTaxRuleParamsWithHTTPClient(client *http.Client) *UpdateTaxRuleParams
NewUpdateTaxRuleParamsWithHTTPClient creates a new UpdateTaxRuleParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateTaxRuleParamsWithTimeout ¶
func NewUpdateTaxRuleParamsWithTimeout(timeout time.Duration) *UpdateTaxRuleParams
NewUpdateTaxRuleParamsWithTimeout creates a new UpdateTaxRuleParams object with the ability to set a timeout on a request.
func (*UpdateTaxRuleParams) SetBody ¶
func (o *UpdateTaxRuleParams) SetBody(body *models.TaxRuleModel)
SetBody adds the body to the update tax rule params
func (*UpdateTaxRuleParams) SetCompanyID ¶
func (o *UpdateTaxRuleParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the update tax rule params
func (*UpdateTaxRuleParams) SetContext ¶
func (o *UpdateTaxRuleParams) SetContext(ctx context.Context)
SetContext adds the context to the update tax rule params
func (*UpdateTaxRuleParams) SetDefaults ¶
func (o *UpdateTaxRuleParams) SetDefaults()
SetDefaults hydrates default values in the update tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateTaxRuleParams) SetHTTPClient ¶
func (o *UpdateTaxRuleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update tax rule params
func (*UpdateTaxRuleParams) SetID ¶
func (o *UpdateTaxRuleParams) SetID(id int32)
SetID adds the id to the update tax rule params
func (*UpdateTaxRuleParams) SetTimeout ¶
func (o *UpdateTaxRuleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update tax rule params
func (*UpdateTaxRuleParams) SetXAvalaraClient ¶
func (o *UpdateTaxRuleParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the update tax rule params
func (*UpdateTaxRuleParams) WithBody ¶
func (o *UpdateTaxRuleParams) WithBody(body *models.TaxRuleModel) *UpdateTaxRuleParams
WithBody adds the body to the update tax rule params
func (*UpdateTaxRuleParams) WithCompanyID ¶
func (o *UpdateTaxRuleParams) WithCompanyID(companyID int32) *UpdateTaxRuleParams
WithCompanyID adds the companyID to the update tax rule params
func (*UpdateTaxRuleParams) WithContext ¶
func (o *UpdateTaxRuleParams) WithContext(ctx context.Context) *UpdateTaxRuleParams
WithContext adds the context to the update tax rule params
func (*UpdateTaxRuleParams) WithDefaults ¶
func (o *UpdateTaxRuleParams) WithDefaults() *UpdateTaxRuleParams
WithDefaults hydrates default values in the update tax rule params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateTaxRuleParams) WithHTTPClient ¶
func (o *UpdateTaxRuleParams) WithHTTPClient(client *http.Client) *UpdateTaxRuleParams
WithHTTPClient adds the HTTPClient to the update tax rule params
func (*UpdateTaxRuleParams) WithID ¶
func (o *UpdateTaxRuleParams) WithID(id int32) *UpdateTaxRuleParams
WithID adds the id to the update tax rule params
func (*UpdateTaxRuleParams) WithTimeout ¶
func (o *UpdateTaxRuleParams) WithTimeout(timeout time.Duration) *UpdateTaxRuleParams
WithTimeout adds the timeout to the update tax rule params
func (*UpdateTaxRuleParams) WithXAvalaraClient ¶
func (o *UpdateTaxRuleParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateTaxRuleParams
WithXAvalaraClient adds the xAvalaraClient to the update tax rule params
func (*UpdateTaxRuleParams) WriteToRequest ¶
func (o *UpdateTaxRuleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateTaxRuleReader ¶
type UpdateTaxRuleReader struct {
// contains filtered or unexported fields
}
UpdateTaxRuleReader is a Reader for the UpdateTaxRule structure.
func (*UpdateTaxRuleReader) ReadResponse ¶
func (o *UpdateTaxRuleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateTaxRuleUnauthorized ¶
type UpdateTaxRuleUnauthorized struct { }
UpdateTaxRuleUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateTaxRuleUnauthorized ¶
func NewUpdateTaxRuleUnauthorized() *UpdateTaxRuleUnauthorized
NewUpdateTaxRuleUnauthorized creates a UpdateTaxRuleUnauthorized with default headers values
func (*UpdateTaxRuleUnauthorized) Error ¶
func (o *UpdateTaxRuleUnauthorized) Error() string
Source Files ¶
- create_tax_rules_parameters.go
- create_tax_rules_responses.go
- delete_tax_rule_parameters.go
- delete_tax_rule_responses.go
- get_tax_rule_parameters.go
- get_tax_rule_responses.go
- list_tax_rules_parameters.go
- list_tax_rules_responses.go
- query_tax_rules_parameters.go
- query_tax_rules_responses.go
- tax_rules_client.go
- update_tax_rule_parameters.go
- update_tax_rule_responses.go