advanced_rules

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for advanced rules API

func (*Client) CreateCompanyLookupFile

func (a *Client) CreateCompanyLookupFile(params *CreateCompanyLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCompanyLookupFileCreated, error)

CreateCompanyLookupFile creates a lookup file for a company

func (*Client) DeleteLookupFile

func (a *Client) DeleteLookupFile(params *DeleteLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLookupFileOK, error)

DeleteLookupFile deletes a lookup file

func (*Client) GetCompanyLookupFiles

func (a *Client) GetCompanyLookupFiles(params *GetCompanyLookupFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyLookupFilesOK, error)

GetCompanyLookupFiles gets the lookup files for a company

func (*Client) GetLookupFile

func (a *Client) GetLookupFile(params *GetLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLookupFileOK, error)

GetLookupFile gets a lookup file for an account Id and company lookup file Id

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UpdateLookupFile

func (a *Client) UpdateLookupFile(params *UpdateLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLookupFileOK, error)

UpdateLookupFile updates a lookup file

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateCompanyLookupFile(params *CreateCompanyLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCompanyLookupFileCreated, error)

	DeleteLookupFile(params *DeleteLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLookupFileOK, error)

	GetCompanyLookupFiles(params *GetCompanyLookupFilesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCompanyLookupFilesOK, error)

	GetLookupFile(params *GetLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetLookupFileOK, error)

	UpdateLookupFile(params *UpdateLookupFileParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateLookupFileOK, 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 advanced rules API client.

type CreateCompanyLookupFileBadRequest

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

Bad Request

func NewCreateCompanyLookupFileBadRequest

func NewCreateCompanyLookupFileBadRequest() *CreateCompanyLookupFileBadRequest

NewCreateCompanyLookupFileBadRequest creates a CreateCompanyLookupFileBadRequest with default headers values

func (*CreateCompanyLookupFileBadRequest) Error

type CreateCompanyLookupFileCreated

type CreateCompanyLookupFileCreated struct {
	Payload *models.AdvancedRuleLookupFileModel
}
CreateCompanyLookupFileCreated describes a response with status code 201, with default header values.

Success

func NewCreateCompanyLookupFileCreated

func NewCreateCompanyLookupFileCreated() *CreateCompanyLookupFileCreated

NewCreateCompanyLookupFileCreated creates a CreateCompanyLookupFileCreated with default headers values

func (*CreateCompanyLookupFileCreated) Error

func (*CreateCompanyLookupFileCreated) GetPayload

type CreateCompanyLookupFileNotFound

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

Not Found

func NewCreateCompanyLookupFileNotFound

func NewCreateCompanyLookupFileNotFound() *CreateCompanyLookupFileNotFound

NewCreateCompanyLookupFileNotFound creates a CreateCompanyLookupFileNotFound with default headers values

func (*CreateCompanyLookupFileNotFound) Error

type CreateCompanyLookupFileParams

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

	/* AccountID.

	   The ID of the account for the company

	   Format: int32
	*/
	AccountID int32

	/* Body.

	   The lookup file you wish to create
	*/
	Body *models.AdvancedRuleLookupFileModel

	/* CompanyID.

	   The ID of the company for which the lookup file is to be created

	   Format: int32
	*/
	CompanyID int32

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

CreateCompanyLookupFileParams contains all the parameters to send to the API endpoint

for the create company lookup file operation.

Typically these are written to a http.Request.

func NewCreateCompanyLookupFileParams

func NewCreateCompanyLookupFileParams() *CreateCompanyLookupFileParams

NewCreateCompanyLookupFileParams creates a new CreateCompanyLookupFileParams 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 NewCreateCompanyLookupFileParamsWithContext

func NewCreateCompanyLookupFileParamsWithContext(ctx context.Context) *CreateCompanyLookupFileParams

NewCreateCompanyLookupFileParamsWithContext creates a new CreateCompanyLookupFileParams object with the ability to set a context for a request.

func NewCreateCompanyLookupFileParamsWithHTTPClient

func NewCreateCompanyLookupFileParamsWithHTTPClient(client *http.Client) *CreateCompanyLookupFileParams

NewCreateCompanyLookupFileParamsWithHTTPClient creates a new CreateCompanyLookupFileParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCompanyLookupFileParamsWithTimeout

func NewCreateCompanyLookupFileParamsWithTimeout(timeout time.Duration) *CreateCompanyLookupFileParams

NewCreateCompanyLookupFileParamsWithTimeout creates a new CreateCompanyLookupFileParams object with the ability to set a timeout on a request.

func (*CreateCompanyLookupFileParams) SetAccountID

func (o *CreateCompanyLookupFileParams) SetAccountID(accountID int32)

SetAccountID adds the accountId to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetBody

SetBody adds the body to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetCompanyID

func (o *CreateCompanyLookupFileParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetContext

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

SetContext adds the context to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetDefaults

func (o *CreateCompanyLookupFileParams) SetDefaults()

SetDefaults hydrates default values in the create company lookup file params (not the query body).

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

func (*CreateCompanyLookupFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetTimeout

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

SetTimeout adds the timeout to the create company lookup file params

func (*CreateCompanyLookupFileParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithAccountID

WithAccountID adds the accountID to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithBody

WithBody adds the body to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithCompanyID

WithCompanyID adds the companyID to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithContext

WithContext adds the context to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithDefaults

WithDefaults hydrates default values in the create company lookup file params (not the query body).

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

func (*CreateCompanyLookupFileParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithTimeout

WithTimeout adds the timeout to the create company lookup file params

func (*CreateCompanyLookupFileParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create company lookup file params

func (*CreateCompanyLookupFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateCompanyLookupFileReader

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

CreateCompanyLookupFileReader is a Reader for the CreateCompanyLookupFile structure.

func (*CreateCompanyLookupFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCompanyLookupFileUnauthorized

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

Unauthorized

func NewCreateCompanyLookupFileUnauthorized

func NewCreateCompanyLookupFileUnauthorized() *CreateCompanyLookupFileUnauthorized

NewCreateCompanyLookupFileUnauthorized creates a CreateCompanyLookupFileUnauthorized with default headers values

func (*CreateCompanyLookupFileUnauthorized) Error

type DeleteLookupFileBadRequest

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

Bad Request

func NewDeleteLookupFileBadRequest

func NewDeleteLookupFileBadRequest() *DeleteLookupFileBadRequest

NewDeleteLookupFileBadRequest creates a DeleteLookupFileBadRequest with default headers values

func (*DeleteLookupFileBadRequest) Error

type DeleteLookupFileNotFound

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

Not Found

func NewDeleteLookupFileNotFound

func NewDeleteLookupFileNotFound() *DeleteLookupFileNotFound

NewDeleteLookupFileNotFound creates a DeleteLookupFileNotFound with default headers values

func (*DeleteLookupFileNotFound) Error

func (o *DeleteLookupFileNotFound) Error() string

type DeleteLookupFileOK

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

Success

func NewDeleteLookupFileOK

func NewDeleteLookupFileOK() *DeleteLookupFileOK

NewDeleteLookupFileOK creates a DeleteLookupFileOK with default headers values

func (*DeleteLookupFileOK) Error

func (o *DeleteLookupFileOK) Error() string

func (*DeleteLookupFileOK) GetPayload

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

type DeleteLookupFileParams

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

	/* AccountID.

	   The ID of the account for the company the lookup file is for

	   Format: int32
	*/
	AccountID int32

	/* ID.

	   The unique ID/GUID for the company lookup file to be deleted
	*/
	ID string

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

DeleteLookupFileParams contains all the parameters to send to the API endpoint

for the delete lookup file operation.

Typically these are written to a http.Request.

func NewDeleteLookupFileParams

func NewDeleteLookupFileParams() *DeleteLookupFileParams

NewDeleteLookupFileParams creates a new DeleteLookupFileParams 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 NewDeleteLookupFileParamsWithContext

func NewDeleteLookupFileParamsWithContext(ctx context.Context) *DeleteLookupFileParams

NewDeleteLookupFileParamsWithContext creates a new DeleteLookupFileParams object with the ability to set a context for a request.

func NewDeleteLookupFileParamsWithHTTPClient

func NewDeleteLookupFileParamsWithHTTPClient(client *http.Client) *DeleteLookupFileParams

NewDeleteLookupFileParamsWithHTTPClient creates a new DeleteLookupFileParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLookupFileParamsWithTimeout

func NewDeleteLookupFileParamsWithTimeout(timeout time.Duration) *DeleteLookupFileParams

NewDeleteLookupFileParamsWithTimeout creates a new DeleteLookupFileParams object with the ability to set a timeout on a request.

func (*DeleteLookupFileParams) SetAccountID

func (o *DeleteLookupFileParams) SetAccountID(accountID int32)

SetAccountID adds the accountId to the delete lookup file params

func (*DeleteLookupFileParams) SetContext

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

SetContext adds the context to the delete lookup file params

func (*DeleteLookupFileParams) SetDefaults

func (o *DeleteLookupFileParams) SetDefaults()

SetDefaults hydrates default values in the delete lookup file params (not the query body).

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

func (*DeleteLookupFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete lookup file params

func (*DeleteLookupFileParams) SetID

func (o *DeleteLookupFileParams) SetID(id string)

SetID adds the id to the delete lookup file params

func (*DeleteLookupFileParams) SetTimeout

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

SetTimeout adds the timeout to the delete lookup file params

func (*DeleteLookupFileParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the delete lookup file params

func (*DeleteLookupFileParams) WithAccountID

func (o *DeleteLookupFileParams) WithAccountID(accountID int32) *DeleteLookupFileParams

WithAccountID adds the accountID to the delete lookup file params

func (*DeleteLookupFileParams) WithContext

WithContext adds the context to the delete lookup file params

func (*DeleteLookupFileParams) WithDefaults

WithDefaults hydrates default values in the delete lookup file params (not the query body).

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

func (*DeleteLookupFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete lookup file params

func (*DeleteLookupFileParams) WithID

WithID adds the id to the delete lookup file params

func (*DeleteLookupFileParams) WithTimeout

WithTimeout adds the timeout to the delete lookup file params

func (*DeleteLookupFileParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the delete lookup file params

func (*DeleteLookupFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DeleteLookupFileReader

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

DeleteLookupFileReader is a Reader for the DeleteLookupFile structure.

func (*DeleteLookupFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLookupFileUnauthorized

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

Unauthorized

func NewDeleteLookupFileUnauthorized

func NewDeleteLookupFileUnauthorized() *DeleteLookupFileUnauthorized

NewDeleteLookupFileUnauthorized creates a DeleteLookupFileUnauthorized with default headers values

func (*DeleteLookupFileUnauthorized) Error

type GetCompanyLookupFilesBadRequest

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

Bad Request

func NewGetCompanyLookupFilesBadRequest

func NewGetCompanyLookupFilesBadRequest() *GetCompanyLookupFilesBadRequest

NewGetCompanyLookupFilesBadRequest creates a GetCompanyLookupFilesBadRequest with default headers values

func (*GetCompanyLookupFilesBadRequest) Error

type GetCompanyLookupFilesNotFound

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

Not Found

func NewGetCompanyLookupFilesNotFound

func NewGetCompanyLookupFilesNotFound() *GetCompanyLookupFilesNotFound

NewGetCompanyLookupFilesNotFound creates a GetCompanyLookupFilesNotFound with default headers values

func (*GetCompanyLookupFilesNotFound) Error

type GetCompanyLookupFilesOK

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

Success

func NewGetCompanyLookupFilesOK

func NewGetCompanyLookupFilesOK() *GetCompanyLookupFilesOK

NewGetCompanyLookupFilesOK creates a GetCompanyLookupFilesOK with default headers values

func (*GetCompanyLookupFilesOK) Error

func (o *GetCompanyLookupFilesOK) Error() string

func (*GetCompanyLookupFilesOK) GetPayload

type GetCompanyLookupFilesParams

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

	/* AccountID.

	   The account ID for the company

	   Format: int32
	*/
	AccountID int32

	/* CompanyID.

	   The ID of the company for which to retrieve lookup files

	   Format: int32
	*/
	CompanyID int32

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

GetCompanyLookupFilesParams contains all the parameters to send to the API endpoint

for the get company lookup files operation.

Typically these are written to a http.Request.

func NewGetCompanyLookupFilesParams

func NewGetCompanyLookupFilesParams() *GetCompanyLookupFilesParams

NewGetCompanyLookupFilesParams creates a new GetCompanyLookupFilesParams 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 NewGetCompanyLookupFilesParamsWithContext

func NewGetCompanyLookupFilesParamsWithContext(ctx context.Context) *GetCompanyLookupFilesParams

NewGetCompanyLookupFilesParamsWithContext creates a new GetCompanyLookupFilesParams object with the ability to set a context for a request.

func NewGetCompanyLookupFilesParamsWithHTTPClient

func NewGetCompanyLookupFilesParamsWithHTTPClient(client *http.Client) *GetCompanyLookupFilesParams

NewGetCompanyLookupFilesParamsWithHTTPClient creates a new GetCompanyLookupFilesParams object with the ability to set a custom HTTPClient for a request.

func NewGetCompanyLookupFilesParamsWithTimeout

func NewGetCompanyLookupFilesParamsWithTimeout(timeout time.Duration) *GetCompanyLookupFilesParams

NewGetCompanyLookupFilesParamsWithTimeout creates a new GetCompanyLookupFilesParams object with the ability to set a timeout on a request.

func (*GetCompanyLookupFilesParams) SetAccountID

func (o *GetCompanyLookupFilesParams) SetAccountID(accountID int32)

SetAccountID adds the accountId to the get company lookup files params

func (*GetCompanyLookupFilesParams) SetCompanyID

func (o *GetCompanyLookupFilesParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get company lookup files params

func (*GetCompanyLookupFilesParams) SetContext

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

SetContext adds the context to the get company lookup files params

func (*GetCompanyLookupFilesParams) SetDefaults

func (o *GetCompanyLookupFilesParams) SetDefaults()

SetDefaults hydrates default values in the get company lookup files params (not the query body).

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

func (*GetCompanyLookupFilesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get company lookup files params

func (*GetCompanyLookupFilesParams) SetTimeout

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

SetTimeout adds the timeout to the get company lookup files params

func (*GetCompanyLookupFilesParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithAccountID

func (o *GetCompanyLookupFilesParams) WithAccountID(accountID int32) *GetCompanyLookupFilesParams

WithAccountID adds the accountID to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithCompanyID

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

WithCompanyID adds the companyID to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithContext

WithContext adds the context to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithDefaults

WithDefaults hydrates default values in the get company lookup files params (not the query body).

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

func (*GetCompanyLookupFilesParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithTimeout

WithTimeout adds the timeout to the get company lookup files params

func (*GetCompanyLookupFilesParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get company lookup files params

func (*GetCompanyLookupFilesParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetCompanyLookupFilesReader

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

GetCompanyLookupFilesReader is a Reader for the GetCompanyLookupFiles structure.

func (*GetCompanyLookupFilesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCompanyLookupFilesUnauthorized

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

Unauthorized

func NewGetCompanyLookupFilesUnauthorized

func NewGetCompanyLookupFilesUnauthorized() *GetCompanyLookupFilesUnauthorized

NewGetCompanyLookupFilesUnauthorized creates a GetCompanyLookupFilesUnauthorized with default headers values

func (*GetCompanyLookupFilesUnauthorized) Error

type GetLookupFileBadRequest

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

Bad Request

func NewGetLookupFileBadRequest

func NewGetLookupFileBadRequest() *GetLookupFileBadRequest

NewGetLookupFileBadRequest creates a GetLookupFileBadRequest with default headers values

func (*GetLookupFileBadRequest) Error

func (o *GetLookupFileBadRequest) Error() string

type GetLookupFileNotFound

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

Not Found

func NewGetLookupFileNotFound

func NewGetLookupFileNotFound() *GetLookupFileNotFound

NewGetLookupFileNotFound creates a GetLookupFileNotFound with default headers values

func (*GetLookupFileNotFound) Error

func (o *GetLookupFileNotFound) Error() string

type GetLookupFileOK

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

Success

func NewGetLookupFileOK

func NewGetLookupFileOK() *GetLookupFileOK

NewGetLookupFileOK creates a GetLookupFileOK with default headers values

func (*GetLookupFileOK) Error

func (o *GetLookupFileOK) Error() string

func (*GetLookupFileOK) GetPayload

type GetLookupFileParams

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

	/* AccountID.

	   The ID of the account for the lookup file

	   Format: int32
	*/
	AccountID int32

	/* ID.

	   The unique ID/GUID of the company lookup file to return
	*/
	ID string

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

GetLookupFileParams contains all the parameters to send to the API endpoint

for the get lookup file operation.

Typically these are written to a http.Request.

func NewGetLookupFileParams

func NewGetLookupFileParams() *GetLookupFileParams

NewGetLookupFileParams creates a new GetLookupFileParams 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 NewGetLookupFileParamsWithContext

func NewGetLookupFileParamsWithContext(ctx context.Context) *GetLookupFileParams

NewGetLookupFileParamsWithContext creates a new GetLookupFileParams object with the ability to set a context for a request.

func NewGetLookupFileParamsWithHTTPClient

func NewGetLookupFileParamsWithHTTPClient(client *http.Client) *GetLookupFileParams

NewGetLookupFileParamsWithHTTPClient creates a new GetLookupFileParams object with the ability to set a custom HTTPClient for a request.

func NewGetLookupFileParamsWithTimeout

func NewGetLookupFileParamsWithTimeout(timeout time.Duration) *GetLookupFileParams

NewGetLookupFileParamsWithTimeout creates a new GetLookupFileParams object with the ability to set a timeout on a request.

func (*GetLookupFileParams) SetAccountID

func (o *GetLookupFileParams) SetAccountID(accountID int32)

SetAccountID adds the accountId to the get lookup file params

func (*GetLookupFileParams) SetContext

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

SetContext adds the context to the get lookup file params

func (*GetLookupFileParams) SetDefaults

func (o *GetLookupFileParams) SetDefaults()

SetDefaults hydrates default values in the get lookup file params (not the query body).

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

func (*GetLookupFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get lookup file params

func (*GetLookupFileParams) SetID

func (o *GetLookupFileParams) SetID(id string)

SetID adds the id to the get lookup file params

func (*GetLookupFileParams) SetTimeout

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

SetTimeout adds the timeout to the get lookup file params

func (*GetLookupFileParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get lookup file params

func (*GetLookupFileParams) WithAccountID

func (o *GetLookupFileParams) WithAccountID(accountID int32) *GetLookupFileParams

WithAccountID adds the accountID to the get lookup file params

func (*GetLookupFileParams) WithContext

WithContext adds the context to the get lookup file params

func (*GetLookupFileParams) WithDefaults

func (o *GetLookupFileParams) WithDefaults() *GetLookupFileParams

WithDefaults hydrates default values in the get lookup file params (not the query body).

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

func (*GetLookupFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get lookup file params

func (*GetLookupFileParams) WithID

WithID adds the id to the get lookup file params

func (*GetLookupFileParams) WithTimeout

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

WithTimeout adds the timeout to the get lookup file params

func (*GetLookupFileParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get lookup file params

func (*GetLookupFileParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetLookupFileReader

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

GetLookupFileReader is a Reader for the GetLookupFile structure.

func (*GetLookupFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetLookupFileUnauthorized

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

Unauthorized

func NewGetLookupFileUnauthorized

func NewGetLookupFileUnauthorized() *GetLookupFileUnauthorized

NewGetLookupFileUnauthorized creates a GetLookupFileUnauthorized with default headers values

func (*GetLookupFileUnauthorized) Error

func (o *GetLookupFileUnauthorized) Error() string

type UpdateLookupFileBadRequest

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

Bad Request

func NewUpdateLookupFileBadRequest

func NewUpdateLookupFileBadRequest() *UpdateLookupFileBadRequest

NewUpdateLookupFileBadRequest creates a UpdateLookupFileBadRequest with default headers values

func (*UpdateLookupFileBadRequest) Error

type UpdateLookupFileNotFound

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

Not Found

func NewUpdateLookupFileNotFound

func NewUpdateLookupFileNotFound() *UpdateLookupFileNotFound

NewUpdateLookupFileNotFound creates a UpdateLookupFileNotFound with default headers values

func (*UpdateLookupFileNotFound) Error

func (o *UpdateLookupFileNotFound) Error() string

type UpdateLookupFileOK

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

Success

func NewUpdateLookupFileOK

func NewUpdateLookupFileOK() *UpdateLookupFileOK

NewUpdateLookupFileOK creates a UpdateLookupFileOK with default headers values

func (*UpdateLookupFileOK) Error

func (o *UpdateLookupFileOK) Error() string

func (*UpdateLookupFileOK) GetPayload

type UpdateLookupFileParams

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

	/* AccountID.

	   The ID of the account for the company the lookup file is for

	   Format: int32
	*/
	AccountID int32

	/* Body.

	   The new values to update the lookup file
	*/
	Body *models.AdvancedRuleLookupFileModel

	/* ID.

	   The unique ID/GUID of the company lookup file to be updated
	*/
	ID string

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

UpdateLookupFileParams contains all the parameters to send to the API endpoint

for the update lookup file operation.

Typically these are written to a http.Request.

func NewUpdateLookupFileParams

func NewUpdateLookupFileParams() *UpdateLookupFileParams

NewUpdateLookupFileParams creates a new UpdateLookupFileParams 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 NewUpdateLookupFileParamsWithContext

func NewUpdateLookupFileParamsWithContext(ctx context.Context) *UpdateLookupFileParams

NewUpdateLookupFileParamsWithContext creates a new UpdateLookupFileParams object with the ability to set a context for a request.

func NewUpdateLookupFileParamsWithHTTPClient

func NewUpdateLookupFileParamsWithHTTPClient(client *http.Client) *UpdateLookupFileParams

NewUpdateLookupFileParamsWithHTTPClient creates a new UpdateLookupFileParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateLookupFileParamsWithTimeout

func NewUpdateLookupFileParamsWithTimeout(timeout time.Duration) *UpdateLookupFileParams

NewUpdateLookupFileParamsWithTimeout creates a new UpdateLookupFileParams object with the ability to set a timeout on a request.

func (*UpdateLookupFileParams) SetAccountID

func (o *UpdateLookupFileParams) SetAccountID(accountID int32)

SetAccountID adds the accountId to the update lookup file params

func (*UpdateLookupFileParams) SetBody

SetBody adds the body to the update lookup file params

func (*UpdateLookupFileParams) SetContext

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

SetContext adds the context to the update lookup file params

func (*UpdateLookupFileParams) SetDefaults

func (o *UpdateLookupFileParams) SetDefaults()

SetDefaults hydrates default values in the update lookup file params (not the query body).

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

func (*UpdateLookupFileParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update lookup file params

func (*UpdateLookupFileParams) SetID

func (o *UpdateLookupFileParams) SetID(id string)

SetID adds the id to the update lookup file params

func (*UpdateLookupFileParams) SetTimeout

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

SetTimeout adds the timeout to the update lookup file params

func (*UpdateLookupFileParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the update lookup file params

func (*UpdateLookupFileParams) WithAccountID

func (o *UpdateLookupFileParams) WithAccountID(accountID int32) *UpdateLookupFileParams

WithAccountID adds the accountID to the update lookup file params

func (*UpdateLookupFileParams) WithBody

WithBody adds the body to the update lookup file params

func (*UpdateLookupFileParams) WithContext

WithContext adds the context to the update lookup file params

func (*UpdateLookupFileParams) WithDefaults

WithDefaults hydrates default values in the update lookup file params (not the query body).

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

func (*UpdateLookupFileParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update lookup file params

func (*UpdateLookupFileParams) WithID

WithID adds the id to the update lookup file params

func (*UpdateLookupFileParams) WithTimeout

WithTimeout adds the timeout to the update lookup file params

func (*UpdateLookupFileParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the update lookup file params

func (*UpdateLookupFileParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UpdateLookupFileReader

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

UpdateLookupFileReader is a Reader for the UpdateLookupFile structure.

func (*UpdateLookupFileReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateLookupFileUnauthorized

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

Unauthorized

func NewUpdateLookupFileUnauthorized

func NewUpdateLookupFileUnauthorized() *UpdateLookupFileUnauthorized

NewUpdateLookupFileUnauthorized creates a UpdateLookupFileUnauthorized with default headers values

func (*UpdateLookupFileUnauthorized) Error

Jump to

Keyboard shortcuts

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