Documentation
¶
Index ¶
- type BuildTaxContentFileBadRequest
- type BuildTaxContentFileForLocationBadRequest
- type BuildTaxContentFileForLocationNotFound
- type BuildTaxContentFileForLocationOK
- type BuildTaxContentFileForLocationParams
- func NewBuildTaxContentFileForLocationParams() *BuildTaxContentFileForLocationParams
- func NewBuildTaxContentFileForLocationParamsWithContext(ctx context.Context) *BuildTaxContentFileForLocationParams
- func NewBuildTaxContentFileForLocationParamsWithHTTPClient(client *http.Client) *BuildTaxContentFileForLocationParams
- func NewBuildTaxContentFileForLocationParamsWithTimeout(timeout time.Duration) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) SetCompanyID(companyID int32)
- func (o *BuildTaxContentFileForLocationParams) SetContext(ctx context.Context)
- func (o *BuildTaxContentFileForLocationParams) SetDate(date *strfmt.DateTime)
- func (o *BuildTaxContentFileForLocationParams) SetDefaults()
- func (o *BuildTaxContentFileForLocationParams) SetFormat(format *string)
- func (o *BuildTaxContentFileForLocationParams) SetHTTPClient(client *http.Client)
- func (o *BuildTaxContentFileForLocationParams) SetID(id int32)
- func (o *BuildTaxContentFileForLocationParams) SetIncludeJurisCodes(includeJurisCodes *bool)
- func (o *BuildTaxContentFileForLocationParams) SetPartnerID(partnerID *string)
- func (o *BuildTaxContentFileForLocationParams) SetTimeout(timeout time.Duration)
- func (o *BuildTaxContentFileForLocationParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *BuildTaxContentFileForLocationParams) WithCompanyID(companyID int32) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithContext(ctx context.Context) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithDate(date *strfmt.DateTime) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithDefaults() *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithFormat(format *string) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithHTTPClient(client *http.Client) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithID(id int32) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithIncludeJurisCodes(includeJurisCodes *bool) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithPartnerID(partnerID *string) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithTimeout(timeout time.Duration) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WithXAvalaraClient(xAvalaraClient *string) *BuildTaxContentFileForLocationParams
- func (o *BuildTaxContentFileForLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BuildTaxContentFileForLocationReader
- type BuildTaxContentFileForLocationUnauthorized
- type BuildTaxContentFileOK
- type BuildTaxContentFileParams
- func NewBuildTaxContentFileParams() *BuildTaxContentFileParams
- func NewBuildTaxContentFileParamsWithContext(ctx context.Context) *BuildTaxContentFileParams
- func NewBuildTaxContentFileParamsWithHTTPClient(client *http.Client) *BuildTaxContentFileParams
- func NewBuildTaxContentFileParamsWithTimeout(timeout time.Duration) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) SetBody(body *models.PointOfSaleDataRequestModel)
- func (o *BuildTaxContentFileParams) SetContext(ctx context.Context)
- func (o *BuildTaxContentFileParams) SetDefaults()
- func (o *BuildTaxContentFileParams) SetHTTPClient(client *http.Client)
- func (o *BuildTaxContentFileParams) SetTimeout(timeout time.Duration)
- func (o *BuildTaxContentFileParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *BuildTaxContentFileParams) WithBody(body *models.PointOfSaleDataRequestModel) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WithContext(ctx context.Context) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WithDefaults() *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WithHTTPClient(client *http.Client) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WithTimeout(timeout time.Duration) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WithXAvalaraClient(xAvalaraClient *string) *BuildTaxContentFileParams
- func (o *BuildTaxContentFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type BuildTaxContentFileReader
- type BuildTaxContentFileUnauthorized
- type Client
- func (a *Client) BuildTaxContentFile(params *BuildTaxContentFileParams, authInfo runtime.ClientAuthInfoWriter, ...) (*BuildTaxContentFileOK, error)
- func (a *Client) BuildTaxContentFileForLocation(params *BuildTaxContentFileForLocationParams, ...) (*BuildTaxContentFileForLocationOK, error)
- func (a *Client) DownloadTaxRatesByZipCode(params *DownloadTaxRatesByZipCodeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DownloadTaxRatesByZipCodeOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) TaxRatesByAddress(params *TaxRatesByAddressParams, authInfo runtime.ClientAuthInfoWriter, ...) (*TaxRatesByAddressOK, error)
- func (a *Client) TaxRatesByPostalCode(params *TaxRatesByPostalCodeParams, authInfo runtime.ClientAuthInfoWriter, ...) (*TaxRatesByPostalCodeOK, error)
- type ClientOption
- type ClientService
- type DownloadTaxRatesByZipCodeBadRequest
- type DownloadTaxRatesByZipCodeOK
- type DownloadTaxRatesByZipCodeParams
- func NewDownloadTaxRatesByZipCodeParams() *DownloadTaxRatesByZipCodeParams
- func NewDownloadTaxRatesByZipCodeParamsWithContext(ctx context.Context) *DownloadTaxRatesByZipCodeParams
- func NewDownloadTaxRatesByZipCodeParamsWithHTTPClient(client *http.Client) *DownloadTaxRatesByZipCodeParams
- func NewDownloadTaxRatesByZipCodeParamsWithTimeout(timeout time.Duration) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) SetContext(ctx context.Context)
- func (o *DownloadTaxRatesByZipCodeParams) SetDate(date strfmt.DateTime)
- func (o *DownloadTaxRatesByZipCodeParams) SetDefaults()
- func (o *DownloadTaxRatesByZipCodeParams) SetHTTPClient(client *http.Client)
- func (o *DownloadTaxRatesByZipCodeParams) SetRegion(region *string)
- func (o *DownloadTaxRatesByZipCodeParams) SetTimeout(timeout time.Duration)
- func (o *DownloadTaxRatesByZipCodeParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *DownloadTaxRatesByZipCodeParams) WithContext(ctx context.Context) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithDate(date strfmt.DateTime) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithDefaults() *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithHTTPClient(client *http.Client) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithRegion(region *string) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithTimeout(timeout time.Duration) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WithXAvalaraClient(xAvalaraClient *string) *DownloadTaxRatesByZipCodeParams
- func (o *DownloadTaxRatesByZipCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DownloadTaxRatesByZipCodeReader
- type DownloadTaxRatesByZipCodeUnauthorized
- type TaxRatesByAddressBadRequest
- type TaxRatesByAddressOK
- type TaxRatesByAddressParams
- func NewTaxRatesByAddressParams() *TaxRatesByAddressParams
- func NewTaxRatesByAddressParamsWithContext(ctx context.Context) *TaxRatesByAddressParams
- func NewTaxRatesByAddressParamsWithHTTPClient(client *http.Client) *TaxRatesByAddressParams
- func NewTaxRatesByAddressParamsWithTimeout(timeout time.Duration) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) SetCity(city *string)
- func (o *TaxRatesByAddressParams) SetContext(ctx context.Context)
- func (o *TaxRatesByAddressParams) SetCountry(country string)
- func (o *TaxRatesByAddressParams) SetDefaults()
- func (o *TaxRatesByAddressParams) SetHTTPClient(client *http.Client)
- func (o *TaxRatesByAddressParams) SetLine1(line1 string)
- func (o *TaxRatesByAddressParams) SetLine2(line2 *string)
- func (o *TaxRatesByAddressParams) SetLine3(line3 *string)
- func (o *TaxRatesByAddressParams) SetPostalCode(postalCode string)
- func (o *TaxRatesByAddressParams) SetRegion(region string)
- func (o *TaxRatesByAddressParams) SetTimeout(timeout time.Duration)
- func (o *TaxRatesByAddressParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *TaxRatesByAddressParams) WithCity(city *string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithContext(ctx context.Context) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithCountry(country string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithDefaults() *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithHTTPClient(client *http.Client) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithLine1(line1 string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithLine2(line2 *string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithLine3(line3 *string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithPostalCode(postalCode string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithRegion(region string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithTimeout(timeout time.Duration) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WithXAvalaraClient(xAvalaraClient *string) *TaxRatesByAddressParams
- func (o *TaxRatesByAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TaxRatesByAddressReader
- type TaxRatesByAddressUnauthorized
- type TaxRatesByPostalCodeBadRequest
- type TaxRatesByPostalCodeOK
- type TaxRatesByPostalCodeParams
- func NewTaxRatesByPostalCodeParams() *TaxRatesByPostalCodeParams
- func NewTaxRatesByPostalCodeParamsWithContext(ctx context.Context) *TaxRatesByPostalCodeParams
- func NewTaxRatesByPostalCodeParamsWithHTTPClient(client *http.Client) *TaxRatesByPostalCodeParams
- func NewTaxRatesByPostalCodeParamsWithTimeout(timeout time.Duration) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) SetContext(ctx context.Context)
- func (o *TaxRatesByPostalCodeParams) SetCountry(country string)
- func (o *TaxRatesByPostalCodeParams) SetDefaults()
- func (o *TaxRatesByPostalCodeParams) SetHTTPClient(client *http.Client)
- func (o *TaxRatesByPostalCodeParams) SetPostalCode(postalCode string)
- func (o *TaxRatesByPostalCodeParams) SetTimeout(timeout time.Duration)
- func (o *TaxRatesByPostalCodeParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *TaxRatesByPostalCodeParams) WithContext(ctx context.Context) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithCountry(country string) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithDefaults() *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithHTTPClient(client *http.Client) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithPostalCode(postalCode string) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithTimeout(timeout time.Duration) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WithXAvalaraClient(xAvalaraClient *string) *TaxRatesByPostalCodeParams
- func (o *TaxRatesByPostalCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type TaxRatesByPostalCodeReader
- type TaxRatesByPostalCodeUnauthorized
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 ¶
func (o *BuildTaxContentFileBadRequest) Error() string
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 ¶
func (o *BuildTaxContentFileForLocationBadRequest) Error() string
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 ¶
func (o *BuildTaxContentFileForLocationNotFound) Error() string
type BuildTaxContentFileForLocationOK ¶
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 (o *BuildTaxContentFileForLocationOK) Error() string
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 ¶
func (o *BuildTaxContentFileForLocationParams) SetContext(ctx context.Context)
SetContext adds the context to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) SetDate ¶
func (o *BuildTaxContentFileForLocationParams) SetDate(date *strfmt.DateTime)
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 ¶
func (o *BuildTaxContentFileForLocationParams) SetID(id int32)
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 ¶
func (o *BuildTaxContentFileForLocationParams) WithCompanyID(companyID int32) *BuildTaxContentFileForLocationParams
WithCompanyID adds the companyID to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithContext ¶
func (o *BuildTaxContentFileForLocationParams) WithContext(ctx context.Context) *BuildTaxContentFileForLocationParams
WithContext adds the context to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithDate ¶
func (o *BuildTaxContentFileForLocationParams) WithDate(date *strfmt.DateTime) *BuildTaxContentFileForLocationParams
WithDate adds the date to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithDefaults ¶
func (o *BuildTaxContentFileForLocationParams) WithDefaults() *BuildTaxContentFileForLocationParams
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 ¶
func (o *BuildTaxContentFileForLocationParams) WithFormat(format *string) *BuildTaxContentFileForLocationParams
WithFormat adds the format to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithHTTPClient ¶
func (o *BuildTaxContentFileForLocationParams) WithHTTPClient(client *http.Client) *BuildTaxContentFileForLocationParams
WithHTTPClient adds the HTTPClient to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithID ¶
func (o *BuildTaxContentFileForLocationParams) WithID(id int32) *BuildTaxContentFileForLocationParams
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 ¶
func (o *BuildTaxContentFileForLocationParams) WithPartnerID(partnerID *string) *BuildTaxContentFileForLocationParams
WithPartnerID adds the partnerID to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithTimeout ¶
func (o *BuildTaxContentFileForLocationParams) WithTimeout(timeout time.Duration) *BuildTaxContentFileForLocationParams
WithTimeout adds the timeout to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WithXAvalaraClient ¶
func (o *BuildTaxContentFileForLocationParams) WithXAvalaraClient(xAvalaraClient *string) *BuildTaxContentFileForLocationParams
WithXAvalaraClient adds the xAvalaraClient to the build tax content file for location params
func (*BuildTaxContentFileForLocationParams) WriteToRequest ¶
func (o *BuildTaxContentFileForLocationParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *BuildTaxContentFileForLocationUnauthorized) Error() string
type BuildTaxContentFileOK ¶
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 ¶
func (o *BuildTaxContentFileParams) SetBody(body *models.PointOfSaleDataRequestModel)
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 ¶
func (o *BuildTaxContentFileParams) WithBody(body *models.PointOfSaleDataRequestModel) *BuildTaxContentFileParams
WithBody adds the body to the build tax content file params
func (*BuildTaxContentFileParams) WithContext ¶
func (o *BuildTaxContentFileParams) WithContext(ctx context.Context) *BuildTaxContentFileParams
WithContext adds the context to the build tax content file params
func (*BuildTaxContentFileParams) WithDefaults ¶
func (o *BuildTaxContentFileParams) WithDefaults() *BuildTaxContentFileParams
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 ¶
func (o *BuildTaxContentFileParams) WithTimeout(timeout time.Duration) *BuildTaxContentFileParams
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 ¶
func (o *BuildTaxContentFileParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *BuildTaxContentFileUnauthorized) Error() string
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 ¶
func (o *DownloadTaxRatesByZipCodeBadRequest) Error() string
type DownloadTaxRatesByZipCodeOK ¶
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 (o *DownloadTaxRatesByZipCodeOK) Error() string
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 ¶
func (o *DownloadTaxRatesByZipCodeParams) SetDate(date strfmt.DateTime)
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 ¶
func (o *DownloadTaxRatesByZipCodeParams) WithContext(ctx context.Context) *DownloadTaxRatesByZipCodeParams
WithContext adds the context to the download tax rates by zip code params
func (*DownloadTaxRatesByZipCodeParams) WithDate ¶
func (o *DownloadTaxRatesByZipCodeParams) WithDate(date strfmt.DateTime) *DownloadTaxRatesByZipCodeParams
WithDate adds the date to the download tax rates by zip code params
func (*DownloadTaxRatesByZipCodeParams) WithDefaults ¶
func (o *DownloadTaxRatesByZipCodeParams) WithDefaults() *DownloadTaxRatesByZipCodeParams
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 ¶
func (o *DownloadTaxRatesByZipCodeParams) WithHTTPClient(client *http.Client) *DownloadTaxRatesByZipCodeParams
WithHTTPClient adds the HTTPClient to the download tax rates by zip code params
func (*DownloadTaxRatesByZipCodeParams) WithRegion ¶
func (o *DownloadTaxRatesByZipCodeParams) WithRegion(region *string) *DownloadTaxRatesByZipCodeParams
WithRegion adds the region to the download tax rates by zip code params
func (*DownloadTaxRatesByZipCodeParams) WithTimeout ¶
func (o *DownloadTaxRatesByZipCodeParams) WithTimeout(timeout time.Duration) *DownloadTaxRatesByZipCodeParams
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 ¶
func (o *DownloadTaxRatesByZipCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *DownloadTaxRatesByZipCodeUnauthorized) Error() string
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 ¶
func (o *TaxRatesByAddressBadRequest) Error() string
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 ¶
func (o *TaxRatesByAddressParams) WithCity(city *string) *TaxRatesByAddressParams
WithCity adds the city to the tax rates by address params
func (*TaxRatesByAddressParams) WithContext ¶
func (o *TaxRatesByAddressParams) WithContext(ctx context.Context) *TaxRatesByAddressParams
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 ¶
func (o *TaxRatesByAddressParams) WithDefaults() *TaxRatesByAddressParams
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 ¶
func (o *TaxRatesByAddressParams) WithLine1(line1 string) *TaxRatesByAddressParams
WithLine1 adds the line1 to the tax rates by address params
func (*TaxRatesByAddressParams) WithLine2 ¶
func (o *TaxRatesByAddressParams) WithLine2(line2 *string) *TaxRatesByAddressParams
WithLine2 adds the line2 to the tax rates by address params
func (*TaxRatesByAddressParams) WithLine3 ¶
func (o *TaxRatesByAddressParams) WithLine3(line3 *string) *TaxRatesByAddressParams
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 ¶
func (o *TaxRatesByAddressParams) WithRegion(region string) *TaxRatesByAddressParams
WithRegion adds the region to the tax rates by address params
func (*TaxRatesByAddressParams) WithTimeout ¶
func (o *TaxRatesByAddressParams) WithTimeout(timeout time.Duration) *TaxRatesByAddressParams
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 ¶
func (o *TaxRatesByAddressParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *TaxRatesByAddressUnauthorized) Error() string
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 ¶
func (o *TaxRatesByPostalCodeBadRequest) Error() string
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 ¶
func (o *TaxRatesByPostalCodeParams) WithContext(ctx context.Context) *TaxRatesByPostalCodeParams
WithContext adds the context to the tax rates by postal code params
func (*TaxRatesByPostalCodeParams) WithCountry ¶
func (o *TaxRatesByPostalCodeParams) WithCountry(country string) *TaxRatesByPostalCodeParams
WithCountry adds the country to the tax rates by postal code params
func (*TaxRatesByPostalCodeParams) WithDefaults ¶
func (o *TaxRatesByPostalCodeParams) WithDefaults() *TaxRatesByPostalCodeParams
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 ¶
func (o *TaxRatesByPostalCodeParams) WithHTTPClient(client *http.Client) *TaxRatesByPostalCodeParams
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 ¶
func (o *TaxRatesByPostalCodeParams) WithTimeout(timeout time.Duration) *TaxRatesByPostalCodeParams
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 ¶
func (o *TaxRatesByPostalCodeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
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 ¶
func (o *TaxRatesByPostalCodeUnauthorized) Error() string
Source Files
¶
- build_tax_content_file_for_location_parameters.go
- build_tax_content_file_for_location_responses.go
- build_tax_content_file_parameters.go
- build_tax_content_file_responses.go
- download_tax_rates_by_zip_code_parameters.go
- download_tax_rates_by_zip_code_responses.go
- tax_content_client.go
- tax_rates_by_address_parameters.go
- tax_rates_by_address_responses.go
- tax_rates_by_postal_code_parameters.go
- tax_rates_by_postal_code_responses.go