tax_codes

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 25, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for tax codes API

func (*Client) CreateTaxCodes

func (a *Client) CreateTaxCodes(params *CreateTaxCodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaxCodesOK, error)
CreateTaxCodes creates a new tax code

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

A 'TaxCode' represents a uniquely identified type of product, good, or service. Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions. If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and taxability rules for this product in all supported jurisdictions.

### Security Policies

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

func (*Client) DeleteTaxCode

func (a *Client) DeleteTaxCode(params *DeleteTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaxCodeOK, error)
DeleteTaxCode deletes a single tax code

Marks the existing TaxCode object at this URL as deleted.

### Security Policies

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

func (*Client) GetTaxCode

func (a *Client) GetTaxCode(params *GetTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaxCodeOK, error)
GetTaxCode retrieves a single tax code

Get the taxcode object identified by this URL.

A 'TaxCode' represents a uniquely identified type of product, good, or service. Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions. If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and taxability rules for this product in all supported jurisdictions.

### Security Policies

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

func (*Client) ListTaxCodesByCompany

func (a *Client) ListTaxCodesByCompany(params *ListTaxCodesByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTaxCodesByCompanyOK, error)
ListTaxCodesByCompany retrieves tax codes for this company

List all taxcode objects attached to this company.

A 'TaxCode' represents a uniquely identified type of product, good, or service. Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions. If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and taxability rules for this product in all supported jurisdictions.

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) QueryTaxCodes

func (a *Client) QueryTaxCodes(params *QueryTaxCodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryTaxCodesOK, error)
QueryTaxCodes retrieves all tax codes

Get multiple taxcode objects across all companies.

A 'TaxCode' represents a uniquely identified type of product, good, or service. Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions. If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and taxability rules for this product in all supported jurisdictions.

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) UpdateTaxCode

func (a *Client) UpdateTaxCode(params *UpdateTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaxCodeOK, error)
UpdateTaxCode updates a single tax code

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

A 'TaxCode' represents a uniquely identified type of product, good, or service. Avalara supports correct tax rates and taxability rules for all TaxCodes in all supported jurisdictions. If you identify your products by tax code in your 'Create Transacion' API calls, Avalara will correctly calculate tax rates and taxability rules for this product in all supported jurisdictions. 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, CSPTester, SSTAdmin, TechnicalSupportAdmin.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateTaxCodes(params *CreateTaxCodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTaxCodesOK, error)

	DeleteTaxCode(params *DeleteTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteTaxCodeOK, error)

	GetTaxCode(params *GetTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTaxCodeOK, error)

	ListTaxCodesByCompany(params *ListTaxCodesByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTaxCodesByCompanyOK, error)

	QueryTaxCodes(params *QueryTaxCodesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryTaxCodesOK, error)

	UpdateTaxCode(params *UpdateTaxCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateTaxCodeOK, 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 codes API client.

type CreateTaxCodesBadRequest

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

Bad Request

func NewCreateTaxCodesBadRequest

func NewCreateTaxCodesBadRequest() *CreateTaxCodesBadRequest

NewCreateTaxCodesBadRequest creates a CreateTaxCodesBadRequest with default headers values

func (*CreateTaxCodesBadRequest) Error

func (o *CreateTaxCodesBadRequest) Error() string

type CreateTaxCodesNotFound

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

Not Found

func NewCreateTaxCodesNotFound

func NewCreateTaxCodesNotFound() *CreateTaxCodesNotFound

NewCreateTaxCodesNotFound creates a CreateTaxCodesNotFound with default headers values

func (*CreateTaxCodesNotFound) Error

func (o *CreateTaxCodesNotFound) Error() string

type CreateTaxCodesOK

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

Success

func NewCreateTaxCodesOK

func NewCreateTaxCodesOK() *CreateTaxCodesOK

NewCreateTaxCodesOK creates a CreateTaxCodesOK with default headers values

func (*CreateTaxCodesOK) Error

func (o *CreateTaxCodesOK) Error() string

func (*CreateTaxCodesOK) GetPayload

func (o *CreateTaxCodesOK) GetPayload() []*models.TaxCodeModel

type CreateTaxCodesParams

type CreateTaxCodesParams 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 code you wish to create.
	*/
	Body []*models.TaxCodeModel

	/* CompanyID.

	   The ID of the company that owns this tax code.

	   Format: int32
	*/
	CompanyID int32

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

CreateTaxCodesParams contains all the parameters to send to the API endpoint

for the create tax codes operation.

Typically these are written to a http.Request.

func NewCreateTaxCodesParams

func NewCreateTaxCodesParams() *CreateTaxCodesParams

NewCreateTaxCodesParams creates a new CreateTaxCodesParams 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 NewCreateTaxCodesParamsWithContext

func NewCreateTaxCodesParamsWithContext(ctx context.Context) *CreateTaxCodesParams

NewCreateTaxCodesParamsWithContext creates a new CreateTaxCodesParams object with the ability to set a context for a request.

func NewCreateTaxCodesParamsWithHTTPClient

func NewCreateTaxCodesParamsWithHTTPClient(client *http.Client) *CreateTaxCodesParams

NewCreateTaxCodesParamsWithHTTPClient creates a new CreateTaxCodesParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTaxCodesParamsWithTimeout

func NewCreateTaxCodesParamsWithTimeout(timeout time.Duration) *CreateTaxCodesParams

NewCreateTaxCodesParamsWithTimeout creates a new CreateTaxCodesParams object with the ability to set a timeout on a request.

func (*CreateTaxCodesParams) SetBody

func (o *CreateTaxCodesParams) SetBody(body []*models.TaxCodeModel)

SetBody adds the body to the create tax codes params

func (*CreateTaxCodesParams) SetCompanyID

func (o *CreateTaxCodesParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create tax codes params

func (*CreateTaxCodesParams) SetContext

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

SetContext adds the context to the create tax codes params

func (*CreateTaxCodesParams) SetDefaults

func (o *CreateTaxCodesParams) SetDefaults()

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

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

func (*CreateTaxCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create tax codes params

func (*CreateTaxCodesParams) SetTimeout

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

SetTimeout adds the timeout to the create tax codes params

func (*CreateTaxCodesParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create tax codes params

func (*CreateTaxCodesParams) WithBody

WithBody adds the body to the create tax codes params

func (*CreateTaxCodesParams) WithCompanyID

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

WithCompanyID adds the companyID to the create tax codes params

func (*CreateTaxCodesParams) WithContext

WithContext adds the context to the create tax codes params

func (*CreateTaxCodesParams) WithDefaults

func (o *CreateTaxCodesParams) WithDefaults() *CreateTaxCodesParams

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

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

func (*CreateTaxCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create tax codes params

func (*CreateTaxCodesParams) WithTimeout

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

WithTimeout adds the timeout to the create tax codes params

func (*CreateTaxCodesParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create tax codes params

func (*CreateTaxCodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateTaxCodesReader

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

CreateTaxCodesReader is a Reader for the CreateTaxCodes structure.

func (*CreateTaxCodesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTaxCodesUnauthorized

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

Unauthorized

func NewCreateTaxCodesUnauthorized

func NewCreateTaxCodesUnauthorized() *CreateTaxCodesUnauthorized

NewCreateTaxCodesUnauthorized creates a CreateTaxCodesUnauthorized with default headers values

func (*CreateTaxCodesUnauthorized) Error

type DeleteTaxCodeBadRequest

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

Bad Request

func NewDeleteTaxCodeBadRequest

func NewDeleteTaxCodeBadRequest() *DeleteTaxCodeBadRequest

NewDeleteTaxCodeBadRequest creates a DeleteTaxCodeBadRequest with default headers values

func (*DeleteTaxCodeBadRequest) Error

func (o *DeleteTaxCodeBadRequest) Error() string

type DeleteTaxCodeNotFound

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

Not Found

func NewDeleteTaxCodeNotFound

func NewDeleteTaxCodeNotFound() *DeleteTaxCodeNotFound

NewDeleteTaxCodeNotFound creates a DeleteTaxCodeNotFound with default headers values

func (*DeleteTaxCodeNotFound) Error

func (o *DeleteTaxCodeNotFound) Error() string

type DeleteTaxCodeOK

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

Success

func NewDeleteTaxCodeOK

func NewDeleteTaxCodeOK() *DeleteTaxCodeOK

NewDeleteTaxCodeOK creates a DeleteTaxCodeOK with default headers values

func (*DeleteTaxCodeOK) Error

func (o *DeleteTaxCodeOK) Error() string

func (*DeleteTaxCodeOK) GetPayload

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

type DeleteTaxCodeParams

type DeleteTaxCodeParams 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 code.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The ID of the tax code you wish to delete.

	   Format: int32
	*/
	ID int32

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

DeleteTaxCodeParams contains all the parameters to send to the API endpoint

for the delete tax code operation.

Typically these are written to a http.Request.

func NewDeleteTaxCodeParams

func NewDeleteTaxCodeParams() *DeleteTaxCodeParams

NewDeleteTaxCodeParams creates a new DeleteTaxCodeParams 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 NewDeleteTaxCodeParamsWithContext

func NewDeleteTaxCodeParamsWithContext(ctx context.Context) *DeleteTaxCodeParams

NewDeleteTaxCodeParamsWithContext creates a new DeleteTaxCodeParams object with the ability to set a context for a request.

func NewDeleteTaxCodeParamsWithHTTPClient

func NewDeleteTaxCodeParamsWithHTTPClient(client *http.Client) *DeleteTaxCodeParams

NewDeleteTaxCodeParamsWithHTTPClient creates a new DeleteTaxCodeParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteTaxCodeParamsWithTimeout

func NewDeleteTaxCodeParamsWithTimeout(timeout time.Duration) *DeleteTaxCodeParams

NewDeleteTaxCodeParamsWithTimeout creates a new DeleteTaxCodeParams object with the ability to set a timeout on a request.

func (*DeleteTaxCodeParams) SetCompanyID

func (o *DeleteTaxCodeParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the delete tax code params

func (*DeleteTaxCodeParams) SetContext

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

SetContext adds the context to the delete tax code params

func (*DeleteTaxCodeParams) SetDefaults

func (o *DeleteTaxCodeParams) SetDefaults()

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

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

func (*DeleteTaxCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete tax code params

func (*DeleteTaxCodeParams) SetID

func (o *DeleteTaxCodeParams) SetID(id int32)

SetID adds the id to the delete tax code params

func (*DeleteTaxCodeParams) SetTimeout

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

SetTimeout adds the timeout to the delete tax code params

func (*DeleteTaxCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the delete tax code params

func (*DeleteTaxCodeParams) WithCompanyID

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

WithCompanyID adds the companyID to the delete tax code params

func (*DeleteTaxCodeParams) WithContext

WithContext adds the context to the delete tax code params

func (*DeleteTaxCodeParams) WithDefaults

func (o *DeleteTaxCodeParams) WithDefaults() *DeleteTaxCodeParams

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

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

func (*DeleteTaxCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete tax code params

func (*DeleteTaxCodeParams) WithID

WithID adds the id to the delete tax code params

func (*DeleteTaxCodeParams) WithTimeout

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

WithTimeout adds the timeout to the delete tax code params

func (*DeleteTaxCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the delete tax code params

func (*DeleteTaxCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteTaxCodeReader

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

DeleteTaxCodeReader is a Reader for the DeleteTaxCode structure.

func (*DeleteTaxCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteTaxCodeUnauthorized

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

Unauthorized

func NewDeleteTaxCodeUnauthorized

func NewDeleteTaxCodeUnauthorized() *DeleteTaxCodeUnauthorized

NewDeleteTaxCodeUnauthorized creates a DeleteTaxCodeUnauthorized with default headers values

func (*DeleteTaxCodeUnauthorized) Error

func (o *DeleteTaxCodeUnauthorized) Error() string

type GetTaxCodeBadRequest

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

Bad Request

func NewGetTaxCodeBadRequest

func NewGetTaxCodeBadRequest() *GetTaxCodeBadRequest

NewGetTaxCodeBadRequest creates a GetTaxCodeBadRequest with default headers values

func (*GetTaxCodeBadRequest) Error

func (o *GetTaxCodeBadRequest) Error() string

type GetTaxCodeNotFound

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

Not Found

func NewGetTaxCodeNotFound

func NewGetTaxCodeNotFound() *GetTaxCodeNotFound

NewGetTaxCodeNotFound creates a GetTaxCodeNotFound with default headers values

func (*GetTaxCodeNotFound) Error

func (o *GetTaxCodeNotFound) Error() string

type GetTaxCodeOK

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

Success

func NewGetTaxCodeOK

func NewGetTaxCodeOK() *GetTaxCodeOK

NewGetTaxCodeOK creates a GetTaxCodeOK with default headers values

func (*GetTaxCodeOK) Error

func (o *GetTaxCodeOK) Error() string

func (*GetTaxCodeOK) GetPayload

func (o *GetTaxCodeOK) GetPayload() *models.TaxCodeModel

type GetTaxCodeParams

type GetTaxCodeParams 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 code

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The primary key of this tax code

	   Format: int32
	*/
	ID int32

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

GetTaxCodeParams contains all the parameters to send to the API endpoint

for the get tax code operation.

Typically these are written to a http.Request.

func NewGetTaxCodeParams

func NewGetTaxCodeParams() *GetTaxCodeParams

NewGetTaxCodeParams creates a new GetTaxCodeParams 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 NewGetTaxCodeParamsWithContext

func NewGetTaxCodeParamsWithContext(ctx context.Context) *GetTaxCodeParams

NewGetTaxCodeParamsWithContext creates a new GetTaxCodeParams object with the ability to set a context for a request.

func NewGetTaxCodeParamsWithHTTPClient

func NewGetTaxCodeParamsWithHTTPClient(client *http.Client) *GetTaxCodeParams

NewGetTaxCodeParamsWithHTTPClient creates a new GetTaxCodeParams object with the ability to set a custom HTTPClient for a request.

func NewGetTaxCodeParamsWithTimeout

func NewGetTaxCodeParamsWithTimeout(timeout time.Duration) *GetTaxCodeParams

NewGetTaxCodeParamsWithTimeout creates a new GetTaxCodeParams object with the ability to set a timeout on a request.

func (*GetTaxCodeParams) SetCompanyID

func (o *GetTaxCodeParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get tax code params

func (*GetTaxCodeParams) SetContext

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

SetContext adds the context to the get tax code params

func (*GetTaxCodeParams) SetDefaults

func (o *GetTaxCodeParams) SetDefaults()

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

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

func (*GetTaxCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get tax code params

func (*GetTaxCodeParams) SetID

func (o *GetTaxCodeParams) SetID(id int32)

SetID adds the id to the get tax code params

func (*GetTaxCodeParams) SetTimeout

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

SetTimeout adds the timeout to the get tax code params

func (*GetTaxCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get tax code params

func (*GetTaxCodeParams) WithCompanyID

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

WithCompanyID adds the companyID to the get tax code params

func (*GetTaxCodeParams) WithContext

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

WithContext adds the context to the get tax code params

func (*GetTaxCodeParams) WithDefaults

func (o *GetTaxCodeParams) WithDefaults() *GetTaxCodeParams

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

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

func (*GetTaxCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get tax code params

func (*GetTaxCodeParams) WithID

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

WithID adds the id to the get tax code params

func (*GetTaxCodeParams) WithTimeout

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

WithTimeout adds the timeout to the get tax code params

func (*GetTaxCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get tax code params

func (*GetTaxCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetTaxCodeReader

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

GetTaxCodeReader is a Reader for the GetTaxCode structure.

func (*GetTaxCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTaxCodeUnauthorized

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

Unauthorized

func NewGetTaxCodeUnauthorized

func NewGetTaxCodeUnauthorized() *GetTaxCodeUnauthorized

NewGetTaxCodeUnauthorized creates a GetTaxCodeUnauthorized with default headers values

func (*GetTaxCodeUnauthorized) Error

func (o *GetTaxCodeUnauthorized) Error() string

type ListTaxCodesByCompanyBadRequest

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

Bad Request

func NewListTaxCodesByCompanyBadRequest

func NewListTaxCodesByCompanyBadRequest() *ListTaxCodesByCompanyBadRequest

NewListTaxCodesByCompanyBadRequest creates a ListTaxCodesByCompanyBadRequest with default headers values

func (*ListTaxCodesByCompanyBadRequest) Error

type ListTaxCodesByCompanyNotFound

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

Not Found

func NewListTaxCodesByCompanyNotFound

func NewListTaxCodesByCompanyNotFound() *ListTaxCodesByCompanyNotFound

NewListTaxCodesByCompanyNotFound creates a ListTaxCodesByCompanyNotFound with default headers values

func (*ListTaxCodesByCompanyNotFound) Error

type ListTaxCodesByCompanyOK

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

Success

func NewListTaxCodesByCompanyOK

func NewListTaxCodesByCompanyOK() *ListTaxCodesByCompanyOK

NewListTaxCodesByCompanyOK creates a ListTaxCodesByCompanyOK with default headers values

func (*ListTaxCodesByCompanyOK) Error

func (o *ListTaxCodesByCompanyOK) Error() string

func (*ListTaxCodesByCompanyOK) GetPayload

type ListTaxCodesByCompanyParams

type ListTaxCodesByCompanyParams 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 that owns these tax codes

	   Format: int32
	*/
	CompanyID int32

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

ListTaxCodesByCompanyParams contains all the parameters to send to the API endpoint

for the list tax codes by company operation.

Typically these are written to a http.Request.

func NewListTaxCodesByCompanyParams

func NewListTaxCodesByCompanyParams() *ListTaxCodesByCompanyParams

NewListTaxCodesByCompanyParams creates a new ListTaxCodesByCompanyParams 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 NewListTaxCodesByCompanyParamsWithContext

func NewListTaxCodesByCompanyParamsWithContext(ctx context.Context) *ListTaxCodesByCompanyParams

NewListTaxCodesByCompanyParamsWithContext creates a new ListTaxCodesByCompanyParams object with the ability to set a context for a request.

func NewListTaxCodesByCompanyParamsWithHTTPClient

func NewListTaxCodesByCompanyParamsWithHTTPClient(client *http.Client) *ListTaxCodesByCompanyParams

NewListTaxCodesByCompanyParamsWithHTTPClient creates a new ListTaxCodesByCompanyParams object with the ability to set a custom HTTPClient for a request.

func NewListTaxCodesByCompanyParamsWithTimeout

func NewListTaxCodesByCompanyParamsWithTimeout(timeout time.Duration) *ListTaxCodesByCompanyParams

NewListTaxCodesByCompanyParamsWithTimeout creates a new ListTaxCodesByCompanyParams object with the ability to set a timeout on a request.

func (*ListTaxCodesByCompanyParams) SetCompanyID

func (o *ListTaxCodesByCompanyParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetContext

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

SetContext adds the context to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetDefaults

func (o *ListTaxCodesByCompanyParams) SetDefaults()

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

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

func (*ListTaxCodesByCompanyParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetTimeout

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

SetTimeout adds the timeout to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithCompanyID

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

WithCompanyID adds the companyID to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithContext

WithContext adds the context to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithDefaults

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

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

func (*ListTaxCodesByCompanyParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithDollarTop

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

WithDollarTop adds the dollarTop to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithTimeout

WithTimeout adds the timeout to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the list tax codes by company params

func (*ListTaxCodesByCompanyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTaxCodesByCompanyReader

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

ListTaxCodesByCompanyReader is a Reader for the ListTaxCodesByCompany structure.

func (*ListTaxCodesByCompanyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTaxCodesByCompanyUnauthorized

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

Unauthorized

func NewListTaxCodesByCompanyUnauthorized

func NewListTaxCodesByCompanyUnauthorized() *ListTaxCodesByCompanyUnauthorized

NewListTaxCodesByCompanyUnauthorized creates a ListTaxCodesByCompanyUnauthorized with default headers values

func (*ListTaxCodesByCompanyUnauthorized) Error

type QueryTaxCodesBadRequest

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

Bad Request

func NewQueryTaxCodesBadRequest

func NewQueryTaxCodesBadRequest() *QueryTaxCodesBadRequest

NewQueryTaxCodesBadRequest creates a QueryTaxCodesBadRequest with default headers values

func (*QueryTaxCodesBadRequest) Error

func (o *QueryTaxCodesBadRequest) Error() string

type QueryTaxCodesOK

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

Success

func NewQueryTaxCodesOK

func NewQueryTaxCodesOK() *QueryTaxCodesOK

NewQueryTaxCodesOK creates a QueryTaxCodesOK with default headers values

func (*QueryTaxCodesOK) Error

func (o *QueryTaxCodesOK) Error() string

func (*QueryTaxCodesOK) GetPayload

type QueryTaxCodesParams

type QueryTaxCodesParams 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
}

QueryTaxCodesParams contains all the parameters to send to the API endpoint

for the query tax codes operation.

Typically these are written to a http.Request.

func NewQueryTaxCodesParams

func NewQueryTaxCodesParams() *QueryTaxCodesParams

NewQueryTaxCodesParams creates a new QueryTaxCodesParams 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 NewQueryTaxCodesParamsWithContext

func NewQueryTaxCodesParamsWithContext(ctx context.Context) *QueryTaxCodesParams

NewQueryTaxCodesParamsWithContext creates a new QueryTaxCodesParams object with the ability to set a context for a request.

func NewQueryTaxCodesParamsWithHTTPClient

func NewQueryTaxCodesParamsWithHTTPClient(client *http.Client) *QueryTaxCodesParams

NewQueryTaxCodesParamsWithHTTPClient creates a new QueryTaxCodesParams object with the ability to set a custom HTTPClient for a request.

func NewQueryTaxCodesParamsWithTimeout

func NewQueryTaxCodesParamsWithTimeout(timeout time.Duration) *QueryTaxCodesParams

NewQueryTaxCodesParamsWithTimeout creates a new QueryTaxCodesParams object with the ability to set a timeout on a request.

func (*QueryTaxCodesParams) SetContext

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

SetContext adds the context to the query tax codes params

func (*QueryTaxCodesParams) SetDefaults

func (o *QueryTaxCodesParams) SetDefaults()

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

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

func (*QueryTaxCodesParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the query tax codes params

func (*QueryTaxCodesParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the query tax codes params

func (*QueryTaxCodesParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the query tax codes params

func (*QueryTaxCodesParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the query tax codes params

func (*QueryTaxCodesParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the query tax codes params

func (*QueryTaxCodesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query tax codes params

func (*QueryTaxCodesParams) SetTimeout

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

SetTimeout adds the timeout to the query tax codes params

func (*QueryTaxCodesParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the query tax codes params

func (*QueryTaxCodesParams) WithContext

WithContext adds the context to the query tax codes params

func (*QueryTaxCodesParams) WithDefaults

func (o *QueryTaxCodesParams) WithDefaults() *QueryTaxCodesParams

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

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

func (*QueryTaxCodesParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the query tax codes params

func (*QueryTaxCodesParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the query tax codes params

func (*QueryTaxCodesParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the query tax codes params

func (*QueryTaxCodesParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the query tax codes params

func (*QueryTaxCodesParams) WithDollarTop

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

WithDollarTop adds the dollarTop to the query tax codes params

func (*QueryTaxCodesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query tax codes params

func (*QueryTaxCodesParams) WithTimeout

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

WithTimeout adds the timeout to the query tax codes params

func (*QueryTaxCodesParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the query tax codes params

func (*QueryTaxCodesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryTaxCodesReader

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

QueryTaxCodesReader is a Reader for the QueryTaxCodes structure.

func (*QueryTaxCodesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryTaxCodesUnauthorized

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

Unauthorized

func NewQueryTaxCodesUnauthorized

func NewQueryTaxCodesUnauthorized() *QueryTaxCodesUnauthorized

NewQueryTaxCodesUnauthorized creates a QueryTaxCodesUnauthorized with default headers values

func (*QueryTaxCodesUnauthorized) Error

func (o *QueryTaxCodesUnauthorized) Error() string

type UpdateTaxCodeBadRequest

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

Bad Request

func NewUpdateTaxCodeBadRequest

func NewUpdateTaxCodeBadRequest() *UpdateTaxCodeBadRequest

NewUpdateTaxCodeBadRequest creates a UpdateTaxCodeBadRequest with default headers values

func (*UpdateTaxCodeBadRequest) Error

func (o *UpdateTaxCodeBadRequest) Error() string

type UpdateTaxCodeNotFound

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

Not Found

func NewUpdateTaxCodeNotFound

func NewUpdateTaxCodeNotFound() *UpdateTaxCodeNotFound

NewUpdateTaxCodeNotFound creates a UpdateTaxCodeNotFound with default headers values

func (*UpdateTaxCodeNotFound) Error

func (o *UpdateTaxCodeNotFound) Error() string

type UpdateTaxCodeOK

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

Success

func NewUpdateTaxCodeOK

func NewUpdateTaxCodeOK() *UpdateTaxCodeOK

NewUpdateTaxCodeOK creates a UpdateTaxCodeOK with default headers values

func (*UpdateTaxCodeOK) Error

func (o *UpdateTaxCodeOK) Error() string

func (*UpdateTaxCodeOK) GetPayload

func (o *UpdateTaxCodeOK) GetPayload() *models.TaxCodeModel

type UpdateTaxCodeParams

type UpdateTaxCodeParams 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 code you wish to update.
	*/
	Body *models.TaxCodeModel

	/* CompanyID.

	   The ID of the company that this tax code belongs to.

	   Format: int32
	*/
	CompanyID int32

	/* ID.

	   The ID of the tax code you wish to update

	   Format: int32
	*/
	ID int32

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

UpdateTaxCodeParams contains all the parameters to send to the API endpoint

for the update tax code operation.

Typically these are written to a http.Request.

func NewUpdateTaxCodeParams

func NewUpdateTaxCodeParams() *UpdateTaxCodeParams

NewUpdateTaxCodeParams creates a new UpdateTaxCodeParams 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 NewUpdateTaxCodeParamsWithContext

func NewUpdateTaxCodeParamsWithContext(ctx context.Context) *UpdateTaxCodeParams

NewUpdateTaxCodeParamsWithContext creates a new UpdateTaxCodeParams object with the ability to set a context for a request.

func NewUpdateTaxCodeParamsWithHTTPClient

func NewUpdateTaxCodeParamsWithHTTPClient(client *http.Client) *UpdateTaxCodeParams

NewUpdateTaxCodeParamsWithHTTPClient creates a new UpdateTaxCodeParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateTaxCodeParamsWithTimeout

func NewUpdateTaxCodeParamsWithTimeout(timeout time.Duration) *UpdateTaxCodeParams

NewUpdateTaxCodeParamsWithTimeout creates a new UpdateTaxCodeParams object with the ability to set a timeout on a request.

func (*UpdateTaxCodeParams) SetBody

func (o *UpdateTaxCodeParams) SetBody(body *models.TaxCodeModel)

SetBody adds the body to the update tax code params

func (*UpdateTaxCodeParams) SetCompanyID

func (o *UpdateTaxCodeParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the update tax code params

func (*UpdateTaxCodeParams) SetContext

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

SetContext adds the context to the update tax code params

func (*UpdateTaxCodeParams) SetDefaults

func (o *UpdateTaxCodeParams) SetDefaults()

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

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

func (*UpdateTaxCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update tax code params

func (*UpdateTaxCodeParams) SetID

func (o *UpdateTaxCodeParams) SetID(id int32)

SetID adds the id to the update tax code params

func (*UpdateTaxCodeParams) SetTimeout

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

SetTimeout adds the timeout to the update tax code params

func (*UpdateTaxCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the update tax code params

func (*UpdateTaxCodeParams) WithBody

WithBody adds the body to the update tax code params

func (*UpdateTaxCodeParams) WithCompanyID

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

WithCompanyID adds the companyID to the update tax code params

func (*UpdateTaxCodeParams) WithContext

WithContext adds the context to the update tax code params

func (*UpdateTaxCodeParams) WithDefaults

func (o *UpdateTaxCodeParams) WithDefaults() *UpdateTaxCodeParams

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

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

func (*UpdateTaxCodeParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update tax code params

func (*UpdateTaxCodeParams) WithID

WithID adds the id to the update tax code params

func (*UpdateTaxCodeParams) WithTimeout

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

WithTimeout adds the timeout to the update tax code params

func (*UpdateTaxCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the update tax code params

func (*UpdateTaxCodeParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateTaxCodeReader

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

UpdateTaxCodeReader is a Reader for the UpdateTaxCode structure.

func (*UpdateTaxCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateTaxCodeUnauthorized

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

Unauthorized

func NewUpdateTaxCodeUnauthorized

func NewUpdateTaxCodeUnauthorized() *UpdateTaxCodeUnauthorized

NewUpdateTaxCodeUnauthorized creates a UpdateTaxCodeUnauthorized with default headers values

func (*UpdateTaxCodeUnauthorized) Error

func (o *UpdateTaxCodeUnauthorized) Error() string

Jump to

Keyboard shortcuts

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