tax_content

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 BuildTaxContentFileBadRequest

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

Bad Request

func NewBuildTaxContentFileBadRequest

func NewBuildTaxContentFileBadRequest() *BuildTaxContentFileBadRequest

NewBuildTaxContentFileBadRequest creates a BuildTaxContentFileBadRequest with default headers values

func (*BuildTaxContentFileBadRequest) Error

type BuildTaxContentFileForLocationBadRequest

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

Bad Request

func NewBuildTaxContentFileForLocationBadRequest

func NewBuildTaxContentFileForLocationBadRequest() *BuildTaxContentFileForLocationBadRequest

NewBuildTaxContentFileForLocationBadRequest creates a BuildTaxContentFileForLocationBadRequest with default headers values

func (*BuildTaxContentFileForLocationBadRequest) Error

type BuildTaxContentFileForLocationNotFound

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

Not Found

func NewBuildTaxContentFileForLocationNotFound

func NewBuildTaxContentFileForLocationNotFound() *BuildTaxContentFileForLocationNotFound

NewBuildTaxContentFileForLocationNotFound creates a BuildTaxContentFileForLocationNotFound with default headers values

func (*BuildTaxContentFileForLocationNotFound) Error

type BuildTaxContentFileForLocationOK

type BuildTaxContentFileForLocationOK struct {
	Payload io.Writer
}
BuildTaxContentFileForLocationOK describes a response with status code 200, with default header values.

OK

func NewBuildTaxContentFileForLocationOK

func NewBuildTaxContentFileForLocationOK(writer io.Writer) *BuildTaxContentFileForLocationOK

NewBuildTaxContentFileForLocationOK creates a BuildTaxContentFileForLocationOK with default headers values

func (*BuildTaxContentFileForLocationOK) Error

func (*BuildTaxContentFileForLocationOK) GetPayload

func (o *BuildTaxContentFileForLocationOK) GetPayload() io.Writer

type BuildTaxContentFileForLocationParams

type BuildTaxContentFileForLocationParams 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 number of the company that owns this location.

	   Format: int32
	*/
	CompanyID int32

	/* Date.

	   The date for which point-of-sale data would be calculated (today by default)

	   Format: date-time
	*/
	Date *strfmt.DateTime

	/* Format.

	   The format of the file (JSON by default)
	*/
	Format *string

	/* ID.

	   The ID number of the location to retrieve point-of-sale data.

	   Format: int32
	*/
	ID int32

	/* IncludeJurisCodes.

	   When true, the file will include jurisdiction codes in the result.
	*/
	IncludeJurisCodes *bool

	/* PartnerID.

	   If specified, requests a custom partner-formatted version of the file.
	*/
	PartnerID *string

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

BuildTaxContentFileForLocationParams contains all the parameters to send to the API endpoint

for the build tax content file for location operation.

Typically these are written to a http.Request.

func NewBuildTaxContentFileForLocationParams

func NewBuildTaxContentFileForLocationParams() *BuildTaxContentFileForLocationParams

NewBuildTaxContentFileForLocationParams creates a new BuildTaxContentFileForLocationParams 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 NewBuildTaxContentFileForLocationParamsWithContext

func NewBuildTaxContentFileForLocationParamsWithContext(ctx context.Context) *BuildTaxContentFileForLocationParams

NewBuildTaxContentFileForLocationParamsWithContext creates a new BuildTaxContentFileForLocationParams object with the ability to set a context for a request.

func NewBuildTaxContentFileForLocationParamsWithHTTPClient

func NewBuildTaxContentFileForLocationParamsWithHTTPClient(client *http.Client) *BuildTaxContentFileForLocationParams

NewBuildTaxContentFileForLocationParamsWithHTTPClient creates a new BuildTaxContentFileForLocationParams object with the ability to set a custom HTTPClient for a request.

func NewBuildTaxContentFileForLocationParamsWithTimeout

func NewBuildTaxContentFileForLocationParamsWithTimeout(timeout time.Duration) *BuildTaxContentFileForLocationParams

NewBuildTaxContentFileForLocationParamsWithTimeout creates a new BuildTaxContentFileForLocationParams object with the ability to set a timeout on a request.

func (*BuildTaxContentFileForLocationParams) SetCompanyID

func (o *BuildTaxContentFileForLocationParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetContext

SetContext adds the context to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetDate

SetDate adds the date to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetDefaults

func (o *BuildTaxContentFileForLocationParams) SetDefaults()

SetDefaults hydrates default values in the build tax content file for location params (not the query body).

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

func (*BuildTaxContentFileForLocationParams) SetFormat

func (o *BuildTaxContentFileForLocationParams) SetFormat(format *string)

SetFormat adds the format to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetID

SetID adds the id to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetIncludeJurisCodes

func (o *BuildTaxContentFileForLocationParams) SetIncludeJurisCodes(includeJurisCodes *bool)

SetIncludeJurisCodes adds the includeJurisCodes to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetPartnerID

func (o *BuildTaxContentFileForLocationParams) SetPartnerID(partnerID *string)

SetPartnerID adds the partnerId to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetTimeout

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

SetTimeout adds the timeout to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithCompanyID

WithCompanyID adds the companyID to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithContext

WithContext adds the context to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithDate

WithDate adds the date to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithDefaults

WithDefaults hydrates default values in the build tax content file for location params (not the query body).

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

func (*BuildTaxContentFileForLocationParams) WithFormat

WithFormat adds the format to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithID

WithID adds the id to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithIncludeJurisCodes

func (o *BuildTaxContentFileForLocationParams) WithIncludeJurisCodes(includeJurisCodes *bool) *BuildTaxContentFileForLocationParams

WithIncludeJurisCodes adds the includeJurisCodes to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithPartnerID

WithPartnerID adds the partnerID to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithTimeout

WithTimeout adds the timeout to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WithXAvalaraClient

WithXAvalaraClient adds the xAvalaraClient to the build tax content file for location params

func (*BuildTaxContentFileForLocationParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BuildTaxContentFileForLocationReader

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

BuildTaxContentFileForLocationReader is a Reader for the BuildTaxContentFileForLocation structure.

func (*BuildTaxContentFileForLocationReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BuildTaxContentFileForLocationUnauthorized

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

Unauthorized

func NewBuildTaxContentFileForLocationUnauthorized

func NewBuildTaxContentFileForLocationUnauthorized() *BuildTaxContentFileForLocationUnauthorized

NewBuildTaxContentFileForLocationUnauthorized creates a BuildTaxContentFileForLocationUnauthorized with default headers values

func (*BuildTaxContentFileForLocationUnauthorized) Error

type BuildTaxContentFileOK

type BuildTaxContentFileOK struct {
	Payload io.Writer
}
BuildTaxContentFileOK describes a response with status code 200, with default header values.

OK

func NewBuildTaxContentFileOK

func NewBuildTaxContentFileOK(writer io.Writer) *BuildTaxContentFileOK

NewBuildTaxContentFileOK creates a BuildTaxContentFileOK with default headers values

func (*BuildTaxContentFileOK) Error

func (o *BuildTaxContentFileOK) Error() string

func (*BuildTaxContentFileOK) GetPayload

func (o *BuildTaxContentFileOK) GetPayload() io.Writer

type BuildTaxContentFileParams

type BuildTaxContentFileParams 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.

	   Parameters about the desired file format and report format, specifying which company, locations and TaxCodes to include.
	*/
	Body *models.PointOfSaleDataRequestModel

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

BuildTaxContentFileParams contains all the parameters to send to the API endpoint

for the build tax content file operation.

Typically these are written to a http.Request.

func NewBuildTaxContentFileParams

func NewBuildTaxContentFileParams() *BuildTaxContentFileParams

NewBuildTaxContentFileParams creates a new BuildTaxContentFileParams 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 NewBuildTaxContentFileParamsWithContext

func NewBuildTaxContentFileParamsWithContext(ctx context.Context) *BuildTaxContentFileParams

NewBuildTaxContentFileParamsWithContext creates a new BuildTaxContentFileParams object with the ability to set a context for a request.

func NewBuildTaxContentFileParamsWithHTTPClient

func NewBuildTaxContentFileParamsWithHTTPClient(client *http.Client) *BuildTaxContentFileParams

NewBuildTaxContentFileParamsWithHTTPClient creates a new BuildTaxContentFileParams object with the ability to set a custom HTTPClient for a request.

func NewBuildTaxContentFileParamsWithTimeout

func NewBuildTaxContentFileParamsWithTimeout(timeout time.Duration) *BuildTaxContentFileParams

NewBuildTaxContentFileParamsWithTimeout creates a new BuildTaxContentFileParams object with the ability to set a timeout on a request.

func (*BuildTaxContentFileParams) SetBody

SetBody adds the body to the build tax content file params

func (*BuildTaxContentFileParams) SetContext

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

SetContext adds the context to the build tax content file params

func (*BuildTaxContentFileParams) SetDefaults

func (o *BuildTaxContentFileParams) SetDefaults()

SetDefaults hydrates default values in the build tax content file params (not the query body).

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

func (*BuildTaxContentFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the build tax content file params

func (*BuildTaxContentFileParams) SetTimeout

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

SetTimeout adds the timeout to the build tax content file params

func (*BuildTaxContentFileParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the build tax content file params

func (*BuildTaxContentFileParams) WithBody

WithBody adds the body to the build tax content file params

func (*BuildTaxContentFileParams) WithContext

WithContext adds the context to the build tax content file params

func (*BuildTaxContentFileParams) WithDefaults

WithDefaults hydrates default values in the build tax content file params (not the query body).

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

func (*BuildTaxContentFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the build tax content file params

func (*BuildTaxContentFileParams) WithTimeout

WithTimeout adds the timeout to the build tax content file params

func (*BuildTaxContentFileParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the build tax content file params

func (*BuildTaxContentFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BuildTaxContentFileReader

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

BuildTaxContentFileReader is a Reader for the BuildTaxContentFile structure.

func (*BuildTaxContentFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BuildTaxContentFileUnauthorized

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

Unauthorized

func NewBuildTaxContentFileUnauthorized

func NewBuildTaxContentFileUnauthorized() *BuildTaxContentFileUnauthorized

NewBuildTaxContentFileUnauthorized creates a BuildTaxContentFileUnauthorized with default headers values

func (*BuildTaxContentFileUnauthorized) Error

type Client

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

Client for tax content API

func (*Client) BuildTaxContentFile

func (a *Client) BuildTaxContentFile(params *BuildTaxContentFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*BuildTaxContentFileOK, error)
BuildTaxContentFile builds a multi location tax content file

Builds a tax content file containing information useful for a retail point-of-sale solution.

Since tax rates may change based on decisions made by a variety of tax authorities, we recommend that users of this tax content API download new data every day. Many tax authorities may finalize decisions on tax changes at unexpected times and may make changes in response to legal issues or governmental priorities. Any tax content downloaded for future time periods is subject to change if tax rates or tax laws change.

A TaxContent file contains a matrix of the taxes that would be charged when you sell any of your Items at any of your Locations. To create items, use `CreateItems()`. To create locations, use `CreateLocations()`. The file is built by looking up the tax profile for your location and your item and calculating taxes for each in turn. To include a custom `TaxCode` in this tax content file, first create the custom tax code using `CreateTaxCodes()` to create the custom tax code, then use `CreateItems()` to create an item that uses the custom tax code.

This data file can be customized for specific partner devices and usage conditions.

The result of this API is the file you requested in the format you requested using the `responseType` field.

This API builds the file on demand, and is limited to files with no more than 7500 scenarios. To build a tax content file for a single location at a time, please use `BuildTaxContentFileForLocation`.

NOTE: This API does not work for Tennessee tax holiday scenarios.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. * This API depends on the following active services:*Required* (all): AvaTaxPro.

func (*Client) BuildTaxContentFileForLocation

func (a *Client) BuildTaxContentFileForLocation(params *BuildTaxContentFileForLocationParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*BuildTaxContentFileForLocationOK, error)
BuildTaxContentFileForLocation builds a tax content file for a single location

Builds a tax content file containing information useful for a retail point-of-sale solution.

Since tax rates may change based on decisions made by a variety of tax authorities, we recommend that users of this tax content API download new data every day. Many tax authorities may finalize decisions on tax changes at unexpected times and may make changes in response to legal issues or governmental priorities. Any tax content downloaded for future time periods is subject to change if tax rates or tax laws change.

A TaxContent file contains a matrix of the taxes that would be charged when you sell any of your Items at any of your Locations. To create items, use `CreateItems()`. To create locations, use `CreateLocations()`. The file is built by looking up the tax profile for your location and your item and calculating taxes for each in turn. To include a custom `TaxCode` in this tax content file, first create the custom tax code using `CreateTaxCodes()` to create the custom tax code, then use `CreateItems()` to create an item that uses the custom tax code.

This data file can be customized for specific partner devices and usage conditions.

The result of this API is the file you requested in the format you requested using the `responseType` field.

This API builds the file on demand, and is limited to files with no more than 7500 scenarios. To build a tax content file for a multiple locations in a single file, please use `BuildTaxContentFile`.

NOTE: This API does not work for Tennessee tax holiday scenarios.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser. * This API depends on the following active services:*Required* (all): AvaTaxPro.

func (*Client) DownloadTaxRatesByZipCode

func (a *Client) DownloadTaxRatesByZipCode(params *DownloadTaxRatesByZipCodeParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadTaxRatesByZipCodeOK, error)
DownloadTaxRatesByZipCode downloads a file listing tax rates by postal code

Download a CSV file containing all five digit postal codes in the United States and their sales

and use tax rates for tangible personal property.

Since tax rates may change based on decisions made by a variety of tax authorities, we recommend that users of this tax content API download new data every day. Many tax authorities may finalize decisions on tax changes at unexpected times and may make changes in response to legal issues or governmental priorities. Any tax content downloaded for future time periods is subject to change if tax rates or tax laws change.

This rates file is intended to be used as a default for tax calculation when your software cannot call the `CreateTransaction` API call. When using this file, your software will be unable to handle complex tax rules such as:

* Zip+4 - This tax file contains five digit zip codes only. * Different product types - This tax file contains tangible personal property tax rates only. * Mixed sourcing - This tax file cannot be used to resolve origin-based taxes. * Threshold-based taxes - This tax file does not contain information about thresholds.

If you use this file to provide default tax rates, please ensure that your software calls `CreateTransaction` to reconcile the actual transaction and determine the difference between the estimated general tax rate and the final transaction tax.

The file provided by this API is in CSV format with the following columns:

* ZIP_CODE - The five digit zip code for this record. * STATE_ABBREV - A valid two character US state abbreviation for this record. Zip codes may span multiple states. * COUNTY_NAME - A valid county name for this record. Zip codes may span multiple counties. * CITY_NAME - A valid city name for this record. Zip codes may span multiple cities. * STATE_SALES_TAX - The state component of the sales tax rate. * STATE_USE_TAX - The state component of the use tax rate. * COUNTY_SALES_TAX - The county component of the sales tax rate. * COUNTY_USE_TAX - The county component of the use tax rate. * CITY_SALES_TAX - The city component of the sales tax rate. * CITY_USE_TAX - The city component of the use tax rate. * TOTAL_SALES_TAX - The total tax rate for sales tax for this postal code. This value may not equal the sum of the state/county/city due to special tax jurisdiction rules. * TOTAL_USE_TAX - The total tax rate for use tax for this postal code. This value may not equal the sum of the state/county/city due to special tax jurisdiction rules. * TAX_SHIPPING_ALONE - This column contains 'Y' if shipping is taxable. * TAX_SHIPPING_AND_HANDLING_TOGETHER - This column contains 'Y' if shipping and handling are taxable when sent together.

For more detailed tax content, please use the `BuildTaxContentFile` API which allows usage of exact items and exact locations.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, ProStoresOperator, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) TaxRatesByAddress

func (a *Client) TaxRatesByAddress(params *TaxRatesByAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TaxRatesByAddressOK, error)
TaxRatesByAddress sales tax rates for a specified address

Usage of this API is subject to rate limits.  Users who exceed the rate limit will receive HTTP

response code 429 - `Too Many Requests`.

This API assumes that you are selling general tangible personal property at a retail point-of-sale location in the United States only.

For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, which supports features including, but not limited to:

* Nexus declarations * Taxability based on product/service type * Sourcing rules affecting origin/destination states * Customers who are exempt from certain taxes * States that have dollar value thresholds for tax amounts * Refunds for products purchased on a different date * Detailed jurisdiction names and state assigned codes * And more!

Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/) for information on how to upgrade to the full AvaTax CreateTransaction API.

func (*Client) TaxRatesByPostalCode

func (a *Client) TaxRatesByPostalCode(params *TaxRatesByPostalCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TaxRatesByPostalCodeOK, error)
TaxRatesByPostalCode sales tax rates for a specified country and postal code this API is only available for u s postal codes

This API is only available for a US postal codes.

Usage of this API is subject to rate limits. Users who exceed the rate limit will receive HTTP response code 429 - `Too Many Requests`.

This API assumes that you are selling general tangible personal property at a retail point-of-sale location in the United States only.

For more powerful tax calculation, please consider upgrading to the `CreateTransaction` API, which supports features including, but not limited to:

* Nexus declarations * Taxability based on product/service type * Sourcing rules affecting origin/destination states * Customers who are exempt from certain taxes * States that have dollar value thresholds for tax amounts * Refunds for products purchased on a different date * Detailed jurisdiction names and state assigned codes * And more!

Please see [Estimating Tax with REST v2](http://developer.avalara.com/blog/2016/11/04/estimating-tax-with-rest-v2/) for information on how to upgrade to the full AvaTax CreateTransaction API.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	BuildTaxContentFile(params *BuildTaxContentFileParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*BuildTaxContentFileOK, error)

	BuildTaxContentFileForLocation(params *BuildTaxContentFileForLocationParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*BuildTaxContentFileForLocationOK, error)

	DownloadTaxRatesByZipCode(params *DownloadTaxRatesByZipCodeParams, authInfo runtime.ClientAuthInfoWriter, writer io.Writer, opts ...ClientOption) (*DownloadTaxRatesByZipCodeOK, error)

	TaxRatesByAddress(params *TaxRatesByAddressParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TaxRatesByAddressOK, error)

	TaxRatesByPostalCode(params *TaxRatesByPostalCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*TaxRatesByPostalCodeOK, 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 content API client.

type DownloadTaxRatesByZipCodeBadRequest

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

Bad Request

func NewDownloadTaxRatesByZipCodeBadRequest

func NewDownloadTaxRatesByZipCodeBadRequest() *DownloadTaxRatesByZipCodeBadRequest

NewDownloadTaxRatesByZipCodeBadRequest creates a DownloadTaxRatesByZipCodeBadRequest with default headers values

func (*DownloadTaxRatesByZipCodeBadRequest) Error

type DownloadTaxRatesByZipCodeOK

type DownloadTaxRatesByZipCodeOK struct {
	Payload io.Writer
}
DownloadTaxRatesByZipCodeOK describes a response with status code 200, with default header values.

OK

func NewDownloadTaxRatesByZipCodeOK

func NewDownloadTaxRatesByZipCodeOK(writer io.Writer) *DownloadTaxRatesByZipCodeOK

NewDownloadTaxRatesByZipCodeOK creates a DownloadTaxRatesByZipCodeOK with default headers values

func (*DownloadTaxRatesByZipCodeOK) Error

func (*DownloadTaxRatesByZipCodeOK) GetPayload

func (o *DownloadTaxRatesByZipCodeOK) GetPayload() io.Writer

type DownloadTaxRatesByZipCodeParams

type DownloadTaxRatesByZipCodeParams 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

	/* Date.

	   The date for which point-of-sale data would be calculated (today by default). Example input: 2016-12-31

	   Format: date-time
	*/
	Date strfmt.DateTime

	/* Region.

	   A two character region code which limits results to a specific region.
	*/
	Region *string

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

DownloadTaxRatesByZipCodeParams contains all the parameters to send to the API endpoint

for the download tax rates by zip code operation.

Typically these are written to a http.Request.

func NewDownloadTaxRatesByZipCodeParams

func NewDownloadTaxRatesByZipCodeParams() *DownloadTaxRatesByZipCodeParams

NewDownloadTaxRatesByZipCodeParams creates a new DownloadTaxRatesByZipCodeParams 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 NewDownloadTaxRatesByZipCodeParamsWithContext

func NewDownloadTaxRatesByZipCodeParamsWithContext(ctx context.Context) *DownloadTaxRatesByZipCodeParams

NewDownloadTaxRatesByZipCodeParamsWithContext creates a new DownloadTaxRatesByZipCodeParams object with the ability to set a context for a request.

func NewDownloadTaxRatesByZipCodeParamsWithHTTPClient

func NewDownloadTaxRatesByZipCodeParamsWithHTTPClient(client *http.Client) *DownloadTaxRatesByZipCodeParams

NewDownloadTaxRatesByZipCodeParamsWithHTTPClient creates a new DownloadTaxRatesByZipCodeParams object with the ability to set a custom HTTPClient for a request.

func NewDownloadTaxRatesByZipCodeParamsWithTimeout

func NewDownloadTaxRatesByZipCodeParamsWithTimeout(timeout time.Duration) *DownloadTaxRatesByZipCodeParams

NewDownloadTaxRatesByZipCodeParamsWithTimeout creates a new DownloadTaxRatesByZipCodeParams object with the ability to set a timeout on a request.

func (*DownloadTaxRatesByZipCodeParams) SetContext

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

SetContext adds the context to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) SetDate

SetDate adds the date to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) SetDefaults

func (o *DownloadTaxRatesByZipCodeParams) SetDefaults()

SetDefaults hydrates default values in the download tax rates by zip code params (not the query body).

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

func (*DownloadTaxRatesByZipCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) SetRegion

func (o *DownloadTaxRatesByZipCodeParams) SetRegion(region *string)

SetRegion adds the region to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) SetTimeout

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

SetTimeout adds the timeout to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithContext

WithContext adds the context to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithDate

WithDate adds the date to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithDefaults

WithDefaults hydrates default values in the download tax rates by zip code params (not the query body).

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

func (*DownloadTaxRatesByZipCodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithRegion

WithRegion adds the region to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithTimeout

WithTimeout adds the timeout to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the download tax rates by zip code params

func (*DownloadTaxRatesByZipCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DownloadTaxRatesByZipCodeReader

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

DownloadTaxRatesByZipCodeReader is a Reader for the DownloadTaxRatesByZipCode structure.

func (*DownloadTaxRatesByZipCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DownloadTaxRatesByZipCodeUnauthorized

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

Unauthorized

func NewDownloadTaxRatesByZipCodeUnauthorized

func NewDownloadTaxRatesByZipCodeUnauthorized() *DownloadTaxRatesByZipCodeUnauthorized

NewDownloadTaxRatesByZipCodeUnauthorized creates a DownloadTaxRatesByZipCodeUnauthorized with default headers values

func (*DownloadTaxRatesByZipCodeUnauthorized) Error

type TaxRatesByAddressBadRequest

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

Bad Request

func NewTaxRatesByAddressBadRequest

func NewTaxRatesByAddressBadRequest() *TaxRatesByAddressBadRequest

NewTaxRatesByAddressBadRequest creates a TaxRatesByAddressBadRequest with default headers values

func (*TaxRatesByAddressBadRequest) Error

type TaxRatesByAddressOK

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

Success

func NewTaxRatesByAddressOK

func NewTaxRatesByAddressOK() *TaxRatesByAddressOK

NewTaxRatesByAddressOK creates a TaxRatesByAddressOK with default headers values

func (*TaxRatesByAddressOK) Error

func (o *TaxRatesByAddressOK) Error() string

func (*TaxRatesByAddressOK) GetPayload

func (o *TaxRatesByAddressOK) GetPayload() *models.TaxRateModel

type TaxRatesByAddressParams

type TaxRatesByAddressParams 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

	/* City.

	   The city name of the location.
	*/
	City *string

	/* Country.

	     Name or ISO 3166 code identifying the country.

	This field supports many different country identifiers:
	 * Two character ISO 3166 codes
	 * Three character ISO 3166 codes
	 * Fully spelled out names of the country in ISO supported languages
	 * Common alternative spellings for many countries

	For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
	*/
	Country string

	/* Line1.

	   The street address of the location.
	*/
	Line1 string

	/* Line2.

	   The street address of the location.
	*/
	Line2 *string

	/* Line3.

	   The street address of the location.
	*/
	Line3 *string

	/* PostalCode.

	   The postal code of the location.
	*/
	PostalCode string

	/* Region.

	     Name or ISO 3166 code identifying the region within the country.

	This field supports many different region identifiers:
	 * Two and three character ISO 3166 region codes
	 * Fully spelled out names of the region in ISO supported languages
	 * Common alternative spellings for many regions

	For a full list of all supported codes and names, please see the Definitions API `ListRegions`.
	*/
	Region string

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

TaxRatesByAddressParams contains all the parameters to send to the API endpoint

for the tax rates by address operation.

Typically these are written to a http.Request.

func NewTaxRatesByAddressParams

func NewTaxRatesByAddressParams() *TaxRatesByAddressParams

NewTaxRatesByAddressParams creates a new TaxRatesByAddressParams 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 NewTaxRatesByAddressParamsWithContext

func NewTaxRatesByAddressParamsWithContext(ctx context.Context) *TaxRatesByAddressParams

NewTaxRatesByAddressParamsWithContext creates a new TaxRatesByAddressParams object with the ability to set a context for a request.

func NewTaxRatesByAddressParamsWithHTTPClient

func NewTaxRatesByAddressParamsWithHTTPClient(client *http.Client) *TaxRatesByAddressParams

NewTaxRatesByAddressParamsWithHTTPClient creates a new TaxRatesByAddressParams object with the ability to set a custom HTTPClient for a request.

func NewTaxRatesByAddressParamsWithTimeout

func NewTaxRatesByAddressParamsWithTimeout(timeout time.Duration) *TaxRatesByAddressParams

NewTaxRatesByAddressParamsWithTimeout creates a new TaxRatesByAddressParams object with the ability to set a timeout on a request.

func (*TaxRatesByAddressParams) SetCity

func (o *TaxRatesByAddressParams) SetCity(city *string)

SetCity adds the city to the tax rates by address params

func (*TaxRatesByAddressParams) SetContext

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

SetContext adds the context to the tax rates by address params

func (*TaxRatesByAddressParams) SetCountry

func (o *TaxRatesByAddressParams) SetCountry(country string)

SetCountry adds the country to the tax rates by address params

func (*TaxRatesByAddressParams) SetDefaults

func (o *TaxRatesByAddressParams) SetDefaults()

SetDefaults hydrates default values in the tax rates by address params (not the query body).

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

func (*TaxRatesByAddressParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tax rates by address params

func (*TaxRatesByAddressParams) SetLine1

func (o *TaxRatesByAddressParams) SetLine1(line1 string)

SetLine1 adds the line1 to the tax rates by address params

func (*TaxRatesByAddressParams) SetLine2

func (o *TaxRatesByAddressParams) SetLine2(line2 *string)

SetLine2 adds the line2 to the tax rates by address params

func (*TaxRatesByAddressParams) SetLine3

func (o *TaxRatesByAddressParams) SetLine3(line3 *string)

SetLine3 adds the line3 to the tax rates by address params

func (*TaxRatesByAddressParams) SetPostalCode

func (o *TaxRatesByAddressParams) SetPostalCode(postalCode string)

SetPostalCode adds the postalCode to the tax rates by address params

func (*TaxRatesByAddressParams) SetRegion

func (o *TaxRatesByAddressParams) SetRegion(region string)

SetRegion adds the region to the tax rates by address params

func (*TaxRatesByAddressParams) SetTimeout

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

SetTimeout adds the timeout to the tax rates by address params

func (*TaxRatesByAddressParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the tax rates by address params

func (*TaxRatesByAddressParams) WithCity

WithCity adds the city to the tax rates by address params

func (*TaxRatesByAddressParams) WithContext

WithContext adds the context to the tax rates by address params

func (*TaxRatesByAddressParams) WithCountry

func (o *TaxRatesByAddressParams) WithCountry(country string) *TaxRatesByAddressParams

WithCountry adds the country to the tax rates by address params

func (*TaxRatesByAddressParams) WithDefaults

WithDefaults hydrates default values in the tax rates by address params (not the query body).

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

func (*TaxRatesByAddressParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the tax rates by address params

func (*TaxRatesByAddressParams) WithLine1

WithLine1 adds the line1 to the tax rates by address params

func (*TaxRatesByAddressParams) WithLine2

WithLine2 adds the line2 to the tax rates by address params

func (*TaxRatesByAddressParams) WithLine3

WithLine3 adds the line3 to the tax rates by address params

func (*TaxRatesByAddressParams) WithPostalCode

func (o *TaxRatesByAddressParams) WithPostalCode(postalCode string) *TaxRatesByAddressParams

WithPostalCode adds the postalCode to the tax rates by address params

func (*TaxRatesByAddressParams) WithRegion

WithRegion adds the region to the tax rates by address params

func (*TaxRatesByAddressParams) WithTimeout

WithTimeout adds the timeout to the tax rates by address params

func (*TaxRatesByAddressParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the tax rates by address params

func (*TaxRatesByAddressParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TaxRatesByAddressReader

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

TaxRatesByAddressReader is a Reader for the TaxRatesByAddress structure.

func (*TaxRatesByAddressReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TaxRatesByAddressUnauthorized

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

Unauthorized

func NewTaxRatesByAddressUnauthorized

func NewTaxRatesByAddressUnauthorized() *TaxRatesByAddressUnauthorized

NewTaxRatesByAddressUnauthorized creates a TaxRatesByAddressUnauthorized with default headers values

func (*TaxRatesByAddressUnauthorized) Error

type TaxRatesByPostalCodeBadRequest

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

Bad Request

func NewTaxRatesByPostalCodeBadRequest

func NewTaxRatesByPostalCodeBadRequest() *TaxRatesByPostalCodeBadRequest

NewTaxRatesByPostalCodeBadRequest creates a TaxRatesByPostalCodeBadRequest with default headers values

func (*TaxRatesByPostalCodeBadRequest) Error

type TaxRatesByPostalCodeOK

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

Success

func NewTaxRatesByPostalCodeOK

func NewTaxRatesByPostalCodeOK() *TaxRatesByPostalCodeOK

NewTaxRatesByPostalCodeOK creates a TaxRatesByPostalCodeOK with default headers values

func (*TaxRatesByPostalCodeOK) Error

func (o *TaxRatesByPostalCodeOK) Error() string

func (*TaxRatesByPostalCodeOK) GetPayload

func (o *TaxRatesByPostalCodeOK) GetPayload() *models.TaxRateModel

type TaxRatesByPostalCodeParams

type TaxRatesByPostalCodeParams 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

	/* Country.

	     Name or ISO 3166 code identifying the country.

	This field supports many different country identifiers:
	 * Two character ISO 3166 codes
	 * Three character ISO 3166 codes
	 * Fully spelled out names of the country in ISO supported languages
	 * Common alternative spellings for many countries

	For a full list of all supported codes and names, please see the Definitions API `ListCountries`.
	*/
	Country string

	/* PostalCode.

	   The postal code of the location.
	*/
	PostalCode string

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

TaxRatesByPostalCodeParams contains all the parameters to send to the API endpoint

for the tax rates by postal code operation.

Typically these are written to a http.Request.

func NewTaxRatesByPostalCodeParams

func NewTaxRatesByPostalCodeParams() *TaxRatesByPostalCodeParams

NewTaxRatesByPostalCodeParams creates a new TaxRatesByPostalCodeParams 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 NewTaxRatesByPostalCodeParamsWithContext

func NewTaxRatesByPostalCodeParamsWithContext(ctx context.Context) *TaxRatesByPostalCodeParams

NewTaxRatesByPostalCodeParamsWithContext creates a new TaxRatesByPostalCodeParams object with the ability to set a context for a request.

func NewTaxRatesByPostalCodeParamsWithHTTPClient

func NewTaxRatesByPostalCodeParamsWithHTTPClient(client *http.Client) *TaxRatesByPostalCodeParams

NewTaxRatesByPostalCodeParamsWithHTTPClient creates a new TaxRatesByPostalCodeParams object with the ability to set a custom HTTPClient for a request.

func NewTaxRatesByPostalCodeParamsWithTimeout

func NewTaxRatesByPostalCodeParamsWithTimeout(timeout time.Duration) *TaxRatesByPostalCodeParams

NewTaxRatesByPostalCodeParamsWithTimeout creates a new TaxRatesByPostalCodeParams object with the ability to set a timeout on a request.

func (*TaxRatesByPostalCodeParams) SetContext

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

SetContext adds the context to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) SetCountry

func (o *TaxRatesByPostalCodeParams) SetCountry(country string)

SetCountry adds the country to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) SetDefaults

func (o *TaxRatesByPostalCodeParams) SetDefaults()

SetDefaults hydrates default values in the tax rates by postal code params (not the query body).

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

func (*TaxRatesByPostalCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) SetPostalCode

func (o *TaxRatesByPostalCodeParams) SetPostalCode(postalCode string)

SetPostalCode adds the postalCode to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) SetTimeout

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

SetTimeout adds the timeout to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithContext

WithContext adds the context to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithCountry

WithCountry adds the country to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithDefaults

WithDefaults hydrates default values in the tax rates by postal code params (not the query body).

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

func (*TaxRatesByPostalCodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithPostalCode

func (o *TaxRatesByPostalCodeParams) WithPostalCode(postalCode string) *TaxRatesByPostalCodeParams

WithPostalCode adds the postalCode to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithTimeout

WithTimeout adds the timeout to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the tax rates by postal code params

func (*TaxRatesByPostalCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type TaxRatesByPostalCodeReader

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

TaxRatesByPostalCodeReader is a Reader for the TaxRatesByPostalCode structure.

func (*TaxRatesByPostalCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type TaxRatesByPostalCodeUnauthorized

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

Unauthorized

func NewTaxRatesByPostalCodeUnauthorized

func NewTaxRatesByPostalCodeUnauthorized() *TaxRatesByPostalCodeUnauthorized

NewTaxRatesByPostalCodeUnauthorized creates a TaxRatesByPostalCodeUnauthorized with default headers values

func (*TaxRatesByPostalCodeUnauthorized) Error

Jump to

Keyboard shortcuts

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