transactions

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 AddLinesBadRequest

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

Bad Request

func NewAddLinesBadRequest

func NewAddLinesBadRequest() *AddLinesBadRequest

NewAddLinesBadRequest creates a AddLinesBadRequest with default headers values

func (*AddLinesBadRequest) Error

func (o *AddLinesBadRequest) Error() string

type AddLinesOK

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

Success

func NewAddLinesOK

func NewAddLinesOK() *AddLinesOK

NewAddLinesOK creates a AddLinesOK with default headers values

func (*AddLinesOK) Error

func (o *AddLinesOK) Error() string

func (*AddLinesOK) GetPayload

func (o *AddLinesOK) GetPayload() *models.TransactionModel

type AddLinesParams

type AddLinesParams struct {

	/* DollarInclude.

	   Specifies objects to include in the response after transaction is created
	*/
	DollarInclude *string

	/* 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.

	   information about the transaction and lines to be added
	*/
	Body *models.AddTransactionLineModel

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

AddLinesParams contains all the parameters to send to the API endpoint

for the add lines operation.

Typically these are written to a http.Request.

func NewAddLinesParams

func NewAddLinesParams() *AddLinesParams

NewAddLinesParams creates a new AddLinesParams 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 NewAddLinesParamsWithContext

func NewAddLinesParamsWithContext(ctx context.Context) *AddLinesParams

NewAddLinesParamsWithContext creates a new AddLinesParams object with the ability to set a context for a request.

func NewAddLinesParamsWithHTTPClient

func NewAddLinesParamsWithHTTPClient(client *http.Client) *AddLinesParams

NewAddLinesParamsWithHTTPClient creates a new AddLinesParams object with the ability to set a custom HTTPClient for a request.

func NewAddLinesParamsWithTimeout

func NewAddLinesParamsWithTimeout(timeout time.Duration) *AddLinesParams

NewAddLinesParamsWithTimeout creates a new AddLinesParams object with the ability to set a timeout on a request.

func (*AddLinesParams) SetBody

func (o *AddLinesParams) SetBody(body *models.AddTransactionLineModel)

SetBody adds the body to the add lines params

func (*AddLinesParams) SetContext

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

SetContext adds the context to the add lines params

func (*AddLinesParams) SetDefaults

func (o *AddLinesParams) SetDefaults()

SetDefaults hydrates default values in the add lines params (not the query body).

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

func (*AddLinesParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the add lines params

func (*AddLinesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the add lines params

func (*AddLinesParams) SetTimeout

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

SetTimeout adds the timeout to the add lines params

func (*AddLinesParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the add lines params

func (*AddLinesParams) WithBody

WithBody adds the body to the add lines params

func (*AddLinesParams) WithContext

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

WithContext adds the context to the add lines params

func (*AddLinesParams) WithDefaults

func (o *AddLinesParams) WithDefaults() *AddLinesParams

WithDefaults hydrates default values in the add lines params (not the query body).

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

func (*AddLinesParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the add lines params

func (*AddLinesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the add lines params

func (*AddLinesParams) WithTimeout

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

WithTimeout adds the timeout to the add lines params

func (*AddLinesParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the add lines params

func (*AddLinesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type AddLinesReader

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

AddLinesReader is a Reader for the AddLines structure.

func (*AddLinesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AddLinesUnauthorized

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

Unauthorized

func NewAddLinesUnauthorized

func NewAddLinesUnauthorized() *AddLinesUnauthorized

NewAddLinesUnauthorized creates a AddLinesUnauthorized with default headers values

func (*AddLinesUnauthorized) Error

func (o *AddLinesUnauthorized) Error() string

type AdjustTransactionBadRequest

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

Bad Request

func NewAdjustTransactionBadRequest

func NewAdjustTransactionBadRequest() *AdjustTransactionBadRequest

NewAdjustTransactionBadRequest creates a AdjustTransactionBadRequest with default headers values

func (*AdjustTransactionBadRequest) Error

type AdjustTransactionNotFound

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

Not Found

func NewAdjustTransactionNotFound

func NewAdjustTransactionNotFound() *AdjustTransactionNotFound

NewAdjustTransactionNotFound creates a AdjustTransactionNotFound with default headers values

func (*AdjustTransactionNotFound) Error

func (o *AdjustTransactionNotFound) Error() string

type AdjustTransactionOK

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

Success

func NewAdjustTransactionOK

func NewAdjustTransactionOK() *AdjustTransactionOK

NewAdjustTransactionOK creates a AdjustTransactionOK with default headers values

func (*AdjustTransactionOK) Error

func (o *AdjustTransactionOK) Error() string

func (*AdjustTransactionOK) GetPayload

func (o *AdjustTransactionOK) GetPayload() *models.TransactionModel

type AdjustTransactionParams

type AdjustTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The adjustment you wish to make
	*/
	Body *models.AdjustTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to adjust.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to adjust
	*/
	TransactionCode string

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

AdjustTransactionParams contains all the parameters to send to the API endpoint

for the adjust transaction operation.

Typically these are written to a http.Request.

func NewAdjustTransactionParams

func NewAdjustTransactionParams() *AdjustTransactionParams

NewAdjustTransactionParams creates a new AdjustTransactionParams 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 NewAdjustTransactionParamsWithContext

func NewAdjustTransactionParamsWithContext(ctx context.Context) *AdjustTransactionParams

NewAdjustTransactionParamsWithContext creates a new AdjustTransactionParams object with the ability to set a context for a request.

func NewAdjustTransactionParamsWithHTTPClient

func NewAdjustTransactionParamsWithHTTPClient(client *http.Client) *AdjustTransactionParams

NewAdjustTransactionParamsWithHTTPClient creates a new AdjustTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewAdjustTransactionParamsWithTimeout

func NewAdjustTransactionParamsWithTimeout(timeout time.Duration) *AdjustTransactionParams

NewAdjustTransactionParamsWithTimeout creates a new AdjustTransactionParams object with the ability to set a timeout on a request.

func (*AdjustTransactionParams) SetBody

SetBody adds the body to the adjust transaction params

func (*AdjustTransactionParams) SetCompanyCode

func (o *AdjustTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the adjust transaction params

func (*AdjustTransactionParams) SetContext

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

SetContext adds the context to the adjust transaction params

func (*AdjustTransactionParams) SetDefaults

func (o *AdjustTransactionParams) SetDefaults()

SetDefaults hydrates default values in the adjust transaction params (not the query body).

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

func (*AdjustTransactionParams) SetDocumentType

func (o *AdjustTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the adjust transaction params

func (*AdjustTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the adjust transaction params

func (*AdjustTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the adjust transaction params

func (*AdjustTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the adjust transaction params

func (*AdjustTransactionParams) SetTransactionCode

func (o *AdjustTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the adjust transaction params

func (*AdjustTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the adjust transaction params

func (*AdjustTransactionParams) WithBody

WithBody adds the body to the adjust transaction params

func (*AdjustTransactionParams) WithCompanyCode

func (o *AdjustTransactionParams) WithCompanyCode(companyCode string) *AdjustTransactionParams

WithCompanyCode adds the companyCode to the adjust transaction params

func (*AdjustTransactionParams) WithContext

WithContext adds the context to the adjust transaction params

func (*AdjustTransactionParams) WithDefaults

WithDefaults hydrates default values in the adjust transaction params (not the query body).

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

func (*AdjustTransactionParams) WithDocumentType

func (o *AdjustTransactionParams) WithDocumentType(documentType *string) *AdjustTransactionParams

WithDocumentType adds the documentType to the adjust transaction params

func (*AdjustTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the adjust transaction params

func (*AdjustTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the adjust transaction params

func (*AdjustTransactionParams) WithTimeout

WithTimeout adds the timeout to the adjust transaction params

func (*AdjustTransactionParams) WithTransactionCode

func (o *AdjustTransactionParams) WithTransactionCode(transactionCode string) *AdjustTransactionParams

WithTransactionCode adds the transactionCode to the adjust transaction params

func (*AdjustTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the adjust transaction params

func (*AdjustTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AdjustTransactionReader

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

AdjustTransactionReader is a Reader for the AdjustTransaction structure.

func (*AdjustTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AdjustTransactionUnauthorized

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

Unauthorized

func NewAdjustTransactionUnauthorized

func NewAdjustTransactionUnauthorized() *AdjustTransactionUnauthorized

NewAdjustTransactionUnauthorized creates a AdjustTransactionUnauthorized with default headers values

func (*AdjustTransactionUnauthorized) Error

type AuditTransactionBadRequest

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

Bad Request

func NewAuditTransactionBadRequest

func NewAuditTransactionBadRequest() *AuditTransactionBadRequest

NewAuditTransactionBadRequest creates a AuditTransactionBadRequest with default headers values

func (*AuditTransactionBadRequest) Error

type AuditTransactionNotFound

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

Not Found

func NewAuditTransactionNotFound

func NewAuditTransactionNotFound() *AuditTransactionNotFound

NewAuditTransactionNotFound creates a AuditTransactionNotFound with default headers values

func (*AuditTransactionNotFound) Error

func (o *AuditTransactionNotFound) Error() string

type AuditTransactionOK

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

Success

func NewAuditTransactionOK

func NewAuditTransactionOK() *AuditTransactionOK

NewAuditTransactionOK creates a AuditTransactionOK with default headers values

func (*AuditTransactionOK) Error

func (o *AuditTransactionOK) Error() string

func (*AuditTransactionOK) GetPayload

type AuditTransactionParams

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

	/* CompanyCode.

	   The code identifying the company that owns this transaction
	*/
	CompanyCode string

	/* TransactionCode.

	   The code identifying the transaction
	*/
	TransactionCode string

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

AuditTransactionParams contains all the parameters to send to the API endpoint

for the audit transaction operation.

Typically these are written to a http.Request.

func NewAuditTransactionParams

func NewAuditTransactionParams() *AuditTransactionParams

NewAuditTransactionParams creates a new AuditTransactionParams 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 NewAuditTransactionParamsWithContext

func NewAuditTransactionParamsWithContext(ctx context.Context) *AuditTransactionParams

NewAuditTransactionParamsWithContext creates a new AuditTransactionParams object with the ability to set a context for a request.

func NewAuditTransactionParamsWithHTTPClient

func NewAuditTransactionParamsWithHTTPClient(client *http.Client) *AuditTransactionParams

NewAuditTransactionParamsWithHTTPClient creates a new AuditTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewAuditTransactionParamsWithTimeout

func NewAuditTransactionParamsWithTimeout(timeout time.Duration) *AuditTransactionParams

NewAuditTransactionParamsWithTimeout creates a new AuditTransactionParams object with the ability to set a timeout on a request.

func (*AuditTransactionParams) SetCompanyCode

func (o *AuditTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the audit transaction params

func (*AuditTransactionParams) SetContext

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

SetContext adds the context to the audit transaction params

func (*AuditTransactionParams) SetDefaults

func (o *AuditTransactionParams) SetDefaults()

SetDefaults hydrates default values in the audit transaction params (not the query body).

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

func (*AuditTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the audit transaction params

func (*AuditTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the audit transaction params

func (*AuditTransactionParams) SetTransactionCode

func (o *AuditTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the audit transaction params

func (*AuditTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the audit transaction params

func (*AuditTransactionParams) WithCompanyCode

func (o *AuditTransactionParams) WithCompanyCode(companyCode string) *AuditTransactionParams

WithCompanyCode adds the companyCode to the audit transaction params

func (*AuditTransactionParams) WithContext

WithContext adds the context to the audit transaction params

func (*AuditTransactionParams) WithDefaults

WithDefaults hydrates default values in the audit transaction params (not the query body).

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

func (*AuditTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the audit transaction params

func (*AuditTransactionParams) WithTimeout

WithTimeout adds the timeout to the audit transaction params

func (*AuditTransactionParams) WithTransactionCode

func (o *AuditTransactionParams) WithTransactionCode(transactionCode string) *AuditTransactionParams

WithTransactionCode adds the transactionCode to the audit transaction params

func (*AuditTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the audit transaction params

func (*AuditTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuditTransactionReader

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

AuditTransactionReader is a Reader for the AuditTransaction structure.

func (*AuditTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuditTransactionUnauthorized

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

Unauthorized

func NewAuditTransactionUnauthorized

func NewAuditTransactionUnauthorized() *AuditTransactionUnauthorized

NewAuditTransactionUnauthorized creates a AuditTransactionUnauthorized with default headers values

func (*AuditTransactionUnauthorized) Error

type AuditTransactionWithTypeBadRequest

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

Bad Request

func NewAuditTransactionWithTypeBadRequest

func NewAuditTransactionWithTypeBadRequest() *AuditTransactionWithTypeBadRequest

NewAuditTransactionWithTypeBadRequest creates a AuditTransactionWithTypeBadRequest with default headers values

func (*AuditTransactionWithTypeBadRequest) Error

type AuditTransactionWithTypeNotFound

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

Not Found

func NewAuditTransactionWithTypeNotFound

func NewAuditTransactionWithTypeNotFound() *AuditTransactionWithTypeNotFound

NewAuditTransactionWithTypeNotFound creates a AuditTransactionWithTypeNotFound with default headers values

func (*AuditTransactionWithTypeNotFound) Error

type AuditTransactionWithTypeOK

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

Success

func NewAuditTransactionWithTypeOK

func NewAuditTransactionWithTypeOK() *AuditTransactionWithTypeOK

NewAuditTransactionWithTypeOK creates a AuditTransactionWithTypeOK with default headers values

func (*AuditTransactionWithTypeOK) Error

func (*AuditTransactionWithTypeOK) GetPayload

type AuditTransactionWithTypeParams

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

	/* CompanyCode.

	   The code identifying the company that owns this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   The document type of the original transaction
	*/
	DocumentType string

	/* TransactionCode.

	   The code identifying the transaction
	*/
	TransactionCode string

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

AuditTransactionWithTypeParams contains all the parameters to send to the API endpoint

for the audit transaction with type operation.

Typically these are written to a http.Request.

func NewAuditTransactionWithTypeParams

func NewAuditTransactionWithTypeParams() *AuditTransactionWithTypeParams

NewAuditTransactionWithTypeParams creates a new AuditTransactionWithTypeParams 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 NewAuditTransactionWithTypeParamsWithContext

func NewAuditTransactionWithTypeParamsWithContext(ctx context.Context) *AuditTransactionWithTypeParams

NewAuditTransactionWithTypeParamsWithContext creates a new AuditTransactionWithTypeParams object with the ability to set a context for a request.

func NewAuditTransactionWithTypeParamsWithHTTPClient

func NewAuditTransactionWithTypeParamsWithHTTPClient(client *http.Client) *AuditTransactionWithTypeParams

NewAuditTransactionWithTypeParamsWithHTTPClient creates a new AuditTransactionWithTypeParams object with the ability to set a custom HTTPClient for a request.

func NewAuditTransactionWithTypeParamsWithTimeout

func NewAuditTransactionWithTypeParamsWithTimeout(timeout time.Duration) *AuditTransactionWithTypeParams

NewAuditTransactionWithTypeParamsWithTimeout creates a new AuditTransactionWithTypeParams object with the ability to set a timeout on a request.

func (*AuditTransactionWithTypeParams) SetCompanyCode

func (o *AuditTransactionWithTypeParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetContext

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

SetContext adds the context to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetDefaults

func (o *AuditTransactionWithTypeParams) SetDefaults()

SetDefaults hydrates default values in the audit transaction with type params (not the query body).

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

func (*AuditTransactionWithTypeParams) SetDocumentType

func (o *AuditTransactionWithTypeParams) SetDocumentType(documentType string)

SetDocumentType adds the documentType to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetTimeout

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

SetTimeout adds the timeout to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetTransactionCode

func (o *AuditTransactionWithTypeParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the audit transaction with type params

func (*AuditTransactionWithTypeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithCompanyCode

func (o *AuditTransactionWithTypeParams) WithCompanyCode(companyCode string) *AuditTransactionWithTypeParams

WithCompanyCode adds the companyCode to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithContext

WithContext adds the context to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithDefaults

WithDefaults hydrates default values in the audit transaction with type params (not the query body).

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

func (*AuditTransactionWithTypeParams) WithDocumentType

func (o *AuditTransactionWithTypeParams) WithDocumentType(documentType string) *AuditTransactionWithTypeParams

WithDocumentType adds the documentType to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithTimeout

WithTimeout adds the timeout to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithTransactionCode

func (o *AuditTransactionWithTypeParams) WithTransactionCode(transactionCode string) *AuditTransactionWithTypeParams

WithTransactionCode adds the transactionCode to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the audit transaction with type params

func (*AuditTransactionWithTypeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type AuditTransactionWithTypeReader

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

AuditTransactionWithTypeReader is a Reader for the AuditTransactionWithType structure.

func (*AuditTransactionWithTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type AuditTransactionWithTypeUnauthorized

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

Unauthorized

func NewAuditTransactionWithTypeUnauthorized

func NewAuditTransactionWithTypeUnauthorized() *AuditTransactionWithTypeUnauthorized

NewAuditTransactionWithTypeUnauthorized creates a AuditTransactionWithTypeUnauthorized with default headers values

func (*AuditTransactionWithTypeUnauthorized) Error

type BulkLockTransactionBadRequest

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

Bad Request

func NewBulkLockTransactionBadRequest

func NewBulkLockTransactionBadRequest() *BulkLockTransactionBadRequest

NewBulkLockTransactionBadRequest creates a BulkLockTransactionBadRequest with default headers values

func (*BulkLockTransactionBadRequest) Error

type BulkLockTransactionOK

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

Success

func NewBulkLockTransactionOK

func NewBulkLockTransactionOK() *BulkLockTransactionOK

NewBulkLockTransactionOK creates a BulkLockTransactionOK with default headers values

func (*BulkLockTransactionOK) Error

func (o *BulkLockTransactionOK) Error() string

func (*BulkLockTransactionOK) GetPayload

type BulkLockTransactionParams

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

	   bulk lock request
	*/
	Body *models.BulkLockTransactionModel

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

BulkLockTransactionParams contains all the parameters to send to the API endpoint

for the bulk lock transaction operation.

Typically these are written to a http.Request.

func NewBulkLockTransactionParams

func NewBulkLockTransactionParams() *BulkLockTransactionParams

NewBulkLockTransactionParams creates a new BulkLockTransactionParams 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 NewBulkLockTransactionParamsWithContext

func NewBulkLockTransactionParamsWithContext(ctx context.Context) *BulkLockTransactionParams

NewBulkLockTransactionParamsWithContext creates a new BulkLockTransactionParams object with the ability to set a context for a request.

func NewBulkLockTransactionParamsWithHTTPClient

func NewBulkLockTransactionParamsWithHTTPClient(client *http.Client) *BulkLockTransactionParams

NewBulkLockTransactionParamsWithHTTPClient creates a new BulkLockTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewBulkLockTransactionParamsWithTimeout

func NewBulkLockTransactionParamsWithTimeout(timeout time.Duration) *BulkLockTransactionParams

NewBulkLockTransactionParamsWithTimeout creates a new BulkLockTransactionParams object with the ability to set a timeout on a request.

func (*BulkLockTransactionParams) SetBody

SetBody adds the body to the bulk lock transaction params

func (*BulkLockTransactionParams) SetContext

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

SetContext adds the context to the bulk lock transaction params

func (*BulkLockTransactionParams) SetDefaults

func (o *BulkLockTransactionParams) SetDefaults()

SetDefaults hydrates default values in the bulk lock transaction params (not the query body).

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

func (*BulkLockTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the bulk lock transaction params

func (*BulkLockTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the bulk lock transaction params

func (*BulkLockTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the bulk lock transaction params

func (*BulkLockTransactionParams) WithBody

WithBody adds the body to the bulk lock transaction params

func (*BulkLockTransactionParams) WithContext

WithContext adds the context to the bulk lock transaction params

func (*BulkLockTransactionParams) WithDefaults

WithDefaults hydrates default values in the bulk lock transaction params (not the query body).

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

func (*BulkLockTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the bulk lock transaction params

func (*BulkLockTransactionParams) WithTimeout

WithTimeout adds the timeout to the bulk lock transaction params

func (*BulkLockTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the bulk lock transaction params

func (*BulkLockTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type BulkLockTransactionReader

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

BulkLockTransactionReader is a Reader for the BulkLockTransaction structure.

func (*BulkLockTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type BulkLockTransactionUnauthorized

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

Unauthorized

func NewBulkLockTransactionUnauthorized

func NewBulkLockTransactionUnauthorized() *BulkLockTransactionUnauthorized

NewBulkLockTransactionUnauthorized creates a BulkLockTransactionUnauthorized with default headers values

func (*BulkLockTransactionUnauthorized) Error

type ChangeTransactionCodeBadRequest

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

Bad Request

func NewChangeTransactionCodeBadRequest

func NewChangeTransactionCodeBadRequest() *ChangeTransactionCodeBadRequest

NewChangeTransactionCodeBadRequest creates a ChangeTransactionCodeBadRequest with default headers values

func (*ChangeTransactionCodeBadRequest) Error

type ChangeTransactionCodeNotFound

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

Not Found

func NewChangeTransactionCodeNotFound

func NewChangeTransactionCodeNotFound() *ChangeTransactionCodeNotFound

NewChangeTransactionCodeNotFound creates a ChangeTransactionCodeNotFound with default headers values

func (*ChangeTransactionCodeNotFound) Error

type ChangeTransactionCodeOK

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

Success

func NewChangeTransactionCodeOK

func NewChangeTransactionCodeOK() *ChangeTransactionCodeOK

NewChangeTransactionCodeOK creates a ChangeTransactionCodeOK with default headers values

func (*ChangeTransactionCodeOK) Error

func (o *ChangeTransactionCodeOK) Error() string

func (*ChangeTransactionCodeOK) GetPayload

type ChangeTransactionCodeParams

type ChangeTransactionCodeParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The code change request you wish to execute
	*/
	Body *models.ChangeTransactionCodeModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to change document code. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to change
	*/
	TransactionCode string

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

ChangeTransactionCodeParams contains all the parameters to send to the API endpoint

for the change transaction code operation.

Typically these are written to a http.Request.

func NewChangeTransactionCodeParams

func NewChangeTransactionCodeParams() *ChangeTransactionCodeParams

NewChangeTransactionCodeParams creates a new ChangeTransactionCodeParams 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 NewChangeTransactionCodeParamsWithContext

func NewChangeTransactionCodeParamsWithContext(ctx context.Context) *ChangeTransactionCodeParams

NewChangeTransactionCodeParamsWithContext creates a new ChangeTransactionCodeParams object with the ability to set a context for a request.

func NewChangeTransactionCodeParamsWithHTTPClient

func NewChangeTransactionCodeParamsWithHTTPClient(client *http.Client) *ChangeTransactionCodeParams

NewChangeTransactionCodeParamsWithHTTPClient creates a new ChangeTransactionCodeParams object with the ability to set a custom HTTPClient for a request.

func NewChangeTransactionCodeParamsWithTimeout

func NewChangeTransactionCodeParamsWithTimeout(timeout time.Duration) *ChangeTransactionCodeParams

NewChangeTransactionCodeParamsWithTimeout creates a new ChangeTransactionCodeParams object with the ability to set a timeout on a request.

func (*ChangeTransactionCodeParams) SetBody

SetBody adds the body to the change transaction code params

func (*ChangeTransactionCodeParams) SetCompanyCode

func (o *ChangeTransactionCodeParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the change transaction code params

func (*ChangeTransactionCodeParams) SetContext

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

SetContext adds the context to the change transaction code params

func (*ChangeTransactionCodeParams) SetDefaults

func (o *ChangeTransactionCodeParams) SetDefaults()

SetDefaults hydrates default values in the change transaction code params (not the query body).

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

func (*ChangeTransactionCodeParams) SetDocumentType

func (o *ChangeTransactionCodeParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the change transaction code params

func (*ChangeTransactionCodeParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the change transaction code params

func (*ChangeTransactionCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the change transaction code params

func (*ChangeTransactionCodeParams) SetTimeout

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

SetTimeout adds the timeout to the change transaction code params

func (*ChangeTransactionCodeParams) SetTransactionCode

func (o *ChangeTransactionCodeParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the change transaction code params

func (*ChangeTransactionCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the change transaction code params

func (*ChangeTransactionCodeParams) WithBody

WithBody adds the body to the change transaction code params

func (*ChangeTransactionCodeParams) WithCompanyCode

func (o *ChangeTransactionCodeParams) WithCompanyCode(companyCode string) *ChangeTransactionCodeParams

WithCompanyCode adds the companyCode to the change transaction code params

func (*ChangeTransactionCodeParams) WithContext

WithContext adds the context to the change transaction code params

func (*ChangeTransactionCodeParams) WithDefaults

WithDefaults hydrates default values in the change transaction code params (not the query body).

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

func (*ChangeTransactionCodeParams) WithDocumentType

func (o *ChangeTransactionCodeParams) WithDocumentType(documentType *string) *ChangeTransactionCodeParams

WithDocumentType adds the documentType to the change transaction code params

func (*ChangeTransactionCodeParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the change transaction code params

func (*ChangeTransactionCodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the change transaction code params

func (*ChangeTransactionCodeParams) WithTimeout

WithTimeout adds the timeout to the change transaction code params

func (*ChangeTransactionCodeParams) WithTransactionCode

func (o *ChangeTransactionCodeParams) WithTransactionCode(transactionCode string) *ChangeTransactionCodeParams

WithTransactionCode adds the transactionCode to the change transaction code params

func (*ChangeTransactionCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the change transaction code params

func (*ChangeTransactionCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ChangeTransactionCodeReader

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

ChangeTransactionCodeReader is a Reader for the ChangeTransactionCode structure.

func (*ChangeTransactionCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ChangeTransactionCodeUnauthorized

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

Unauthorized

func NewChangeTransactionCodeUnauthorized

func NewChangeTransactionCodeUnauthorized() *ChangeTransactionCodeUnauthorized

NewChangeTransactionCodeUnauthorized creates a ChangeTransactionCodeUnauthorized with default headers values

func (*ChangeTransactionCodeUnauthorized) Error

type Client

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

Client for transactions API

func (*Client) AddLines

func (a *Client) AddLines(params *AddLinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddLinesOK, error)
 AddLines adds lines to an existing unlocked transaction

  Add lines to an existing unlocked transaction.

The `AddLines` API allows you to add additional transaction lines to existing transaction, so that customer will
be able to append multiple calls together and form an extremely large transaction. If customer does not specify line number
in the lines to be added, a new random Guid string will be generated for line number. If customer are not satisfied with
the line number for the transaction lines, they can turn on the renumber switch to have REST v2 automatically renumber all
transaction lines for them, in this case, the line number becomes: "1", "2", "3", ...

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
sales, purchases, inventory transfer, and returns (also called refunds).
You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines
* Details (implies lines)
* Summary (implies details)
* Addresses

* SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size)

If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) AdjustTransaction

func (a *Client) AdjustTransaction(params *AdjustTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdjustTransactionOK, error)
AdjustTransaction corrects a previously created transaction

Replaces the current transaction uniquely identified by this URL with a new transaction.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

When you adjust a committed transaction, the original transaction will be updated with the status code `Adjusted`, and both revisions will be available for retrieval based on their code and ID numbers. Only transactions in `Committed` status are reported by Avalara Managed Returns.

Transactions that have been previously reported to a tax authority by Avalara Managed Returns are considered `locked` and are no longer available for adjustments.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) AuditTransaction

func (a *Client) AuditTransaction(params *AuditTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditTransactionOK, error)
AuditTransaction gets audit information about a transaction

Retrieve audit information about a transaction stored in AvaTax.

The `AuditTransaction` API retrieves audit information related to a specific transaction. This audit information includes the following:

* The `CompanyId` of the company that created the transaction * The server timestamp representing the exact server time when the transaction was created * The server duration - how long it took to process this transaction * Whether exact API call details were logged * A reconstructed API call showing what the original CreateTransaction call looked like

This API can be used to examine information about a previously created transaction.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) AuditTransactionWithType

func (a *Client) AuditTransactionWithType(params *AuditTransactionWithTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditTransactionWithTypeOK, error)
AuditTransactionWithType gets audit information about a transaction

Retrieve audit information about a transaction stored in AvaTax.

The `AuditTransaction` API retrieves audit information related to a specific transaction. This audit information includes the following:

* The `CompanyId` of the company that created the transaction * The server timestamp representing the exact server time when the transaction was created * The server duration - how long it took to process this transaction * Whether exact API call details were logged * A reconstructed API call showing what the original CreateTransaction call looked like

This API can be used to examine information about a previously created transaction.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) BulkLockTransaction

func (a *Client) BulkLockTransaction(params *BulkLockTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BulkLockTransactionOK, error)
BulkLockTransaction locks a set of documents

This API is available by invitation only.

Lock a set of transactions uniquely identified by DocumentIds provided. This API allows locking multiple documents at once. After this API call succeeds, documents will be locked and can't be voided.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

### Security Policies

* This API requires the user role Compliance Root User. * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.

func (*Client) ChangeTransactionCode

func (a *Client) ChangeTransactionCode(params *ChangeTransactionCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangeTransactionCodeOK, error)
ChangeTransactionCode changes a transaction s code

Renames a transaction uniquely identified by this URL by changing its `code` value.

This API is available as long as the transaction is in `saved` or `posted` status. When a transaction is `committed`, it can be modified by using the [AdjustTransaction](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Transactions/AdjustTransaction/) method.

After this API call succeeds, the transaction will have a new URL matching its new `code`.

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) CommitTransaction

func (a *Client) CommitTransaction(params *CommitTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CommitTransactionOK, error)
CommitTransaction commits a transaction for reporting

Marks a transaction by changing its status to `Committed`.

Transactions that are committed are available to be reported to a tax authority by Avalara Managed Returns.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

Any changes made to a committed transaction will generate a transaction history.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

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

func (*Client) CreateOrAdjustTransaction

func (a *Client) CreateOrAdjustTransaction(params *CreateOrAdjustTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOrAdjustTransactionOK, error)
CreateOrAdjustTransaction creates or adjust a transaction

Records a new transaction or adjust an existing transaction in AvaTax.

The `CreateOrAdjustTransaction` endpoint is used to create a new transaction or update an existing one. This API can help you create an idempotent service that creates transactions If there exists a transaction identified by code, the original transaction will be adjusted by using the meta data in the input transaction.

The `CreateOrAdjustTransaction` API cannot modify any transaction that has been reported to a tax authority using the Avalara Managed Returns Service or any other tax filing service. If you call this API to attempt to modify a transaction that has been reported on a tax filing, you will receive the error `CannotModifyLockedTransaction`.

To generate a refund for a transaction, use the `RefundTransaction` API.

If you don't specify the field `type` in your request, you will get an estimate of type `SalesOrder`, which will not be recorded in the database.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds). You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * ForceTimeout - Simulates a timeout. This adds a 30 second delay and error to your API call. This can be used to test your code to ensure it can respond correctly in the case of a dropped connection.

If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.

NOTE: Avoid using the following strings in your transaction codes as they are encoding strings and will be interpreted differently: * \_-ava2f-\_ * \_-ava2b-\_ * \_-ava3f-\_

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) CreateTransaction

func (a *Client) CreateTransaction(params *CreateTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTransactionCreated, error)
CreateTransaction creates a new transaction

Records a new transaction in AvaTax.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

The `CreateTransaction` endpoint uses the tax profile of your company to identify the correct tax rules and rates to apply to all line items in this transaction. The end result will be the total tax calculated by AvaTax based on your company's configuration and the data provided in this API call.

The `CreateTransaction` API will report an error if a committed transaction already exists with the same `code`. To avoid this error, use the `CreateOrAdjustTransaction` API - it will create the transaction if it does not exist, or update it if it does exist.

To generate a refund for a transaction, use the `RefundTransaction` API.

The field `type` identifies the kind of transaction - for example, a sale, purchase, or refund. If you do not specify a `type` value, you will receive an estimate of type `SalesOrder`, which will not be recorded.

The origin and destination locations for a transaction must be identified by either address or geocode. For address-based transactions, please provide addresses in the fields `line`, `city`, `region`, `country` and `postalCode`. For geocode-based transactions, please provide the geocode information in the fields `latitude` and `longitude`. If either `latitude` or `longitude` or both are null, the transaction will be calculated using the best available address location information.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * ForceTimeout - Simulates a timeout. This adds a 30 second delay and error to your API call. This can be used to test your code to ensure it can respond correctly in the case of a dropped connection. * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.

NOTE: Avoid using the following strings in your transaction codes as they are encoding strings and will be interpreted differently: * \_-ava2f-\_ * \_-ava2b-\_ * \_-ava3f-\_

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) DeleteLines

func (a *Client) DeleteLines(params *DeleteLinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLinesOK, error)
 DeleteLines removes lines from an existing unlocked transaction

  Remove lines to an existing unlocked transaction.

The `DeleteLines` API allows you to remove transaction lines from existing unlocked transaction, so that customer will
be able to delete transaction lines and adjust original transaction the way they like

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like
sales, purchases, inventory transfer, and returns (also called refunds).
You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines
* Details (implies lines)
* Summary (implies details)
* Addresses

* SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size)

If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) GetTransactionByCode

func (a *Client) GetTransactionByCode(params *GetTransactionByCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByCodeOK, error)
GetTransactionByCode retrieves a single transaction by code

Get the current transaction identified by this company code, transaction code, and document type.

A transaction is uniquely identified by `companyCode`, `code` (often called Transaction Code), and `documentType`.

For compatibility purposes, when this API finds multiple transactions with the same transaction code, and if you have not specified the `type` parameter to this API, it will default to selecting the `SalesInvoices` transaction. To change this behavior, use the optional `documentType` parameter to specify the specific document type you wish to find.

If this transaction was adjusted, the return value of this API will be the current transaction with this code.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size)

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) GetTransactionByCodeAndType

func (a *Client) GetTransactionByCodeAndType(params *GetTransactionByCodeAndTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByCodeAndTypeOK, error)
GetTransactionByCodeAndType retrieves a single transaction by code

DEPRECATED: Please use the `GetTransactionByCode` API instead.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) GetTransactionByID

func (a *Client) GetTransactionByID(params *GetTransactionByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByIDOK, error)
GetTransactionByID retrieves a single transaction by ID

Get the unique transaction identified by this URL.

This endpoint retrieves the exact transaction identified by this ID number even if that transaction was later adjusted by using the `AdjustTransaction` endpoint.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) ListTransactionsByCompany

func (a *Client) ListTransactionsByCompany(params *ListTransactionsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTransactionsByCompanyOK, error)
ListTransactionsByCompany retrieves all transactions

List all transactions attached to this company.

This endpoint is limited to returning 1,000 transactions at a time maximum.

When listing transactions, you must specify a `date` range filter. If you do not specify a `$filter` that includes a `date` field criteria, the query will default to looking at only those transactions with `date` in the past 30 days.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size)

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, ProStoresOperator, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) LockTransaction

func (a *Client) LockTransaction(params *LockTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LockTransactionOK, error)
LockTransaction locks a single transaction

Lock a transaction uniquely identified by this URL.

This API is mainly used for connector developers to simulate what happens when the Returns product locks a document. After this API call succeeds, the document will be locked and can't be voided or adjusted.

This API is only available to customers in Sandbox with AvaTaxPro subscription. On production servers, this API is available by invitation only.

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Returns* (at least one of): Mrs, MRSComplianceManager, AvaTaxCsp.*Firm Managed* (for accounts managed by a firm): ARA, ARAManaged.

func (*Client) RefundTransaction

func (a *Client) RefundTransaction(params *RefundTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefundTransactionOK, error)
RefundTransaction creates a refund for a transaction

Create a refund for a transaction.

The `RefundTransaction` API allows you to quickly and easily create a `ReturnInvoice` representing a refund for a previously created `SalesInvoice` transaction. You can choose to create a full or partial refund, and specify individual line items from the original sale for refund.

The `RefundTransaction` API ensures that the tax amount you refund to the customer exactly matches the tax that was calculated during the original transaction, regardless of any changes to your company's configuration, rules, nexus, or any other setting.

This API is intended to be a shortcut to allow you to quickly and accurately generate a refund for the following common refund scenarios:

* A full refund of a previous sale * Refunding the tax that was charged on a previous sale, when the customer provides an exemption certificate after the purchase * Refunding one or more items (lines) from a previous sale * Granting a customer a percentage refund of a previous sale

For more complex scenarios than the ones above, please use `CreateTransaction` with document type `ReturnInvoice` to create a custom refund transaction.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary. If you omit the `$include` parameter, the API will assume you want `Summary,Addresses`.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) SettleTransaction

func (a *Client) SettleTransaction(params *SettleTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SettleTransactionOK, error)
SettleTransaction performs multiple actions on a transaction

Performs one or more actions against the current transaction uniquely identified by this URL.

The `SettleTransaction` API call can perform the work of `ChangeCode`, `VerifyTransaction`, and `CommitTransaction`.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

This API is available for users who want to execute more than one action at a time.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

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

func (*Client) UncommitTransaction

func (a *Client) UncommitTransaction(params *UncommitTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UncommitTransactionOK, error)
UncommitTransaction uncommits a transaction for reporting

Adjusts a transaction by changing it to an uncommitted status.

Transactions that have been previously reported to a tax authority by Avalara Managed Returns are considered `locked` and are no longer available to be uncommitted.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) UnvoidTransaction

func (a *Client) UnvoidTransaction(params *UnvoidTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnvoidTransactionOK, error)
UnvoidTransaction unvoids a transaction

Unvoids a voided transaction

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) VerifyTransaction

func (a *Client) VerifyTransaction(params *VerifyTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyTransactionOK, error)
VerifyTransaction verifies a transaction

Verifies that the transaction uniquely identified by this URL matches certain expected values.

If the transaction does not match these expected values, this API will return an error code indicating which value did not match.

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, AccountUser, CompanyAdmin, CompanyUser, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

func (*Client) VoidTransaction

func (a *Client) VoidTransaction(params *VoidTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VoidTransactionOK, error)
VoidTransaction voids a transaction

Voids the current transaction uniquely identified by this URL.

A transaction represents a unique potentially taxable action that your company has recorded, and transactions include actions like sales, purchases, inventory transfer, and returns (also called refunds).

When you void a transaction, that transaction's status is recorded as `DocVoided`.

If you have more than one document with the same `code`, specify the `documentType` parameter to choose between them.

Transactions that have been previously reported to a tax authority by Avalara Managed Returns are no longer available to be voided.

You may specify one or more of the following values in the `$include` parameter to fetch additional nested data, using commas to separate multiple values:

* Lines * Details (implies lines) * Summary (implies details) * Addresses * SummaryOnly (omit lines and details - reduces API response size) * LinesOnly (omit details - reduces API response size) * TaxDetailsByTaxType - Includes the aggregated tax, exempt tax, taxable and non-taxable for each tax type returned in the transaction summary.

NOTE: If your companyCode or transactionCode contains any of these characters /, +, ? or a space please use the following encoding before making a request: * Replace '/' with '\_-ava2f-\_' For example: document/Code becomes document_-ava2f-_Code * Replace '+' with '\_-ava2b-\_' For example: document+Code becomes document_-ava2b-_Code * Replace '?' with '\_-ava3f-\_' For example: document?Code becomes document_-ava3f-_Code * Replace '%' with '\_-ava25-\_' For example: document%Code becomes document_-ava25-_Code * Replace '#' with '\_-ava23-\_' For example: document#Code becomes document_-ava23-_Code * Replace ' ' with '%20' For example: document Code becomes document%20Code

### Security Policies

* This API requires one of the following user roles: AccountAdmin, AccountOperator, CompanyAdmin, CSPTester, ProStoresOperator, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaTaxPro, BasicReturns.

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	AddLines(params *AddLinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddLinesOK, error)

	AdjustTransaction(params *AdjustTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AdjustTransactionOK, error)

	AuditTransaction(params *AuditTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditTransactionOK, error)

	AuditTransactionWithType(params *AuditTransactionWithTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AuditTransactionWithTypeOK, error)

	BulkLockTransaction(params *BulkLockTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*BulkLockTransactionOK, error)

	ChangeTransactionCode(params *ChangeTransactionCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ChangeTransactionCodeOK, error)

	CommitTransaction(params *CommitTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CommitTransactionOK, error)

	CreateOrAdjustTransaction(params *CreateOrAdjustTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateOrAdjustTransactionOK, error)

	CreateTransaction(params *CreateTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateTransactionCreated, error)

	DeleteLines(params *DeleteLinesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteLinesOK, error)

	GetTransactionByCode(params *GetTransactionByCodeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByCodeOK, error)

	GetTransactionByCodeAndType(params *GetTransactionByCodeAndTypeParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByCodeAndTypeOK, error)

	GetTransactionByID(params *GetTransactionByIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetTransactionByIDOK, error)

	ListTransactionsByCompany(params *ListTransactionsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListTransactionsByCompanyOK, error)

	LockTransaction(params *LockTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LockTransactionOK, error)

	RefundTransaction(params *RefundTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*RefundTransactionOK, error)

	SettleTransaction(params *SettleTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*SettleTransactionOK, error)

	UncommitTransaction(params *UncommitTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UncommitTransactionOK, error)

	UnvoidTransaction(params *UnvoidTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnvoidTransactionOK, error)

	VerifyTransaction(params *VerifyTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VerifyTransactionOK, error)

	VoidTransaction(params *VoidTransactionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*VoidTransactionOK, 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 transactions API client.

type CommitTransactionBadRequest

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

Bad Request

func NewCommitTransactionBadRequest

func NewCommitTransactionBadRequest() *CommitTransactionBadRequest

NewCommitTransactionBadRequest creates a CommitTransactionBadRequest with default headers values

func (*CommitTransactionBadRequest) Error

type CommitTransactionNotFound

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

Not Found

func NewCommitTransactionNotFound

func NewCommitTransactionNotFound() *CommitTransactionNotFound

NewCommitTransactionNotFound creates a CommitTransactionNotFound with default headers values

func (*CommitTransactionNotFound) Error

func (o *CommitTransactionNotFound) Error() string

type CommitTransactionOK

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

Success

func NewCommitTransactionOK

func NewCommitTransactionOK() *CommitTransactionOK

NewCommitTransactionOK creates a CommitTransactionOK with default headers values

func (*CommitTransactionOK) Error

func (o *CommitTransactionOK) Error() string

func (*CommitTransactionOK) GetPayload

func (o *CommitTransactionOK) GetPayload() *models.TransactionModel

type CommitTransactionParams

type CommitTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The commit request you wish to execute
	*/
	Body *models.CommitTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to commit. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to commit
	*/
	TransactionCode string

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

CommitTransactionParams contains all the parameters to send to the API endpoint

for the commit transaction operation.

Typically these are written to a http.Request.

func NewCommitTransactionParams

func NewCommitTransactionParams() *CommitTransactionParams

NewCommitTransactionParams creates a new CommitTransactionParams 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 NewCommitTransactionParamsWithContext

func NewCommitTransactionParamsWithContext(ctx context.Context) *CommitTransactionParams

NewCommitTransactionParamsWithContext creates a new CommitTransactionParams object with the ability to set a context for a request.

func NewCommitTransactionParamsWithHTTPClient

func NewCommitTransactionParamsWithHTTPClient(client *http.Client) *CommitTransactionParams

NewCommitTransactionParamsWithHTTPClient creates a new CommitTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCommitTransactionParamsWithTimeout

func NewCommitTransactionParamsWithTimeout(timeout time.Duration) *CommitTransactionParams

NewCommitTransactionParamsWithTimeout creates a new CommitTransactionParams object with the ability to set a timeout on a request.

func (*CommitTransactionParams) SetBody

SetBody adds the body to the commit transaction params

func (*CommitTransactionParams) SetCompanyCode

func (o *CommitTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the commit transaction params

func (*CommitTransactionParams) SetContext

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

SetContext adds the context to the commit transaction params

func (*CommitTransactionParams) SetDefaults

func (o *CommitTransactionParams) SetDefaults()

SetDefaults hydrates default values in the commit transaction params (not the query body).

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

func (*CommitTransactionParams) SetDocumentType

func (o *CommitTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the commit transaction params

func (*CommitTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the commit transaction params

func (*CommitTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the commit transaction params

func (*CommitTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the commit transaction params

func (*CommitTransactionParams) SetTransactionCode

func (o *CommitTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the commit transaction params

func (*CommitTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the commit transaction params

func (*CommitTransactionParams) WithBody

WithBody adds the body to the commit transaction params

func (*CommitTransactionParams) WithCompanyCode

func (o *CommitTransactionParams) WithCompanyCode(companyCode string) *CommitTransactionParams

WithCompanyCode adds the companyCode to the commit transaction params

func (*CommitTransactionParams) WithContext

WithContext adds the context to the commit transaction params

func (*CommitTransactionParams) WithDefaults

WithDefaults hydrates default values in the commit transaction params (not the query body).

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

func (*CommitTransactionParams) WithDocumentType

func (o *CommitTransactionParams) WithDocumentType(documentType *string) *CommitTransactionParams

WithDocumentType adds the documentType to the commit transaction params

func (*CommitTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the commit transaction params

func (*CommitTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the commit transaction params

func (*CommitTransactionParams) WithTimeout

WithTimeout adds the timeout to the commit transaction params

func (*CommitTransactionParams) WithTransactionCode

func (o *CommitTransactionParams) WithTransactionCode(transactionCode string) *CommitTransactionParams

WithTransactionCode adds the transactionCode to the commit transaction params

func (*CommitTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the commit transaction params

func (*CommitTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CommitTransactionReader

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

CommitTransactionReader is a Reader for the CommitTransaction structure.

func (*CommitTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CommitTransactionUnauthorized

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

Unauthorized

func NewCommitTransactionUnauthorized

func NewCommitTransactionUnauthorized() *CommitTransactionUnauthorized

NewCommitTransactionUnauthorized creates a CommitTransactionUnauthorized with default headers values

func (*CommitTransactionUnauthorized) Error

type CreateOrAdjustTransactionBadRequest

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

Bad Request

func NewCreateOrAdjustTransactionBadRequest

func NewCreateOrAdjustTransactionBadRequest() *CreateOrAdjustTransactionBadRequest

NewCreateOrAdjustTransactionBadRequest creates a CreateOrAdjustTransactionBadRequest with default headers values

func (*CreateOrAdjustTransactionBadRequest) Error

type CreateOrAdjustTransactionOK

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

Success

func NewCreateOrAdjustTransactionOK

func NewCreateOrAdjustTransactionOK() *CreateOrAdjustTransactionOK

NewCreateOrAdjustTransactionOK creates a CreateOrAdjustTransactionOK with default headers values

func (*CreateOrAdjustTransactionOK) Error

func (*CreateOrAdjustTransactionOK) GetPayload

type CreateOrAdjustTransactionParams

type CreateOrAdjustTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in the response after transaction is created
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The transaction you wish to create or adjust
	*/
	Body *models.CreateOrAdjustTransactionModel

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

CreateOrAdjustTransactionParams contains all the parameters to send to the API endpoint

for the create or adjust transaction operation.

Typically these are written to a http.Request.

func NewCreateOrAdjustTransactionParams

func NewCreateOrAdjustTransactionParams() *CreateOrAdjustTransactionParams

NewCreateOrAdjustTransactionParams creates a new CreateOrAdjustTransactionParams 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 NewCreateOrAdjustTransactionParamsWithContext

func NewCreateOrAdjustTransactionParamsWithContext(ctx context.Context) *CreateOrAdjustTransactionParams

NewCreateOrAdjustTransactionParamsWithContext creates a new CreateOrAdjustTransactionParams object with the ability to set a context for a request.

func NewCreateOrAdjustTransactionParamsWithHTTPClient

func NewCreateOrAdjustTransactionParamsWithHTTPClient(client *http.Client) *CreateOrAdjustTransactionParams

NewCreateOrAdjustTransactionParamsWithHTTPClient creates a new CreateOrAdjustTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateOrAdjustTransactionParamsWithTimeout

func NewCreateOrAdjustTransactionParamsWithTimeout(timeout time.Duration) *CreateOrAdjustTransactionParams

NewCreateOrAdjustTransactionParamsWithTimeout creates a new CreateOrAdjustTransactionParams object with the ability to set a timeout on a request.

func (*CreateOrAdjustTransactionParams) SetBody

SetBody adds the body to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) SetContext

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

SetContext adds the context to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) SetDefaults

func (o *CreateOrAdjustTransactionParams) SetDefaults()

SetDefaults hydrates default values in the create or adjust transaction params (not the query body).

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

func (*CreateOrAdjustTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithBody

WithBody adds the body to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithContext

WithContext adds the context to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithDefaults

WithDefaults hydrates default values in the create or adjust transaction params (not the query body).

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

func (*CreateOrAdjustTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithTimeout

WithTimeout adds the timeout to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create or adjust transaction params

func (*CreateOrAdjustTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateOrAdjustTransactionReader

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

CreateOrAdjustTransactionReader is a Reader for the CreateOrAdjustTransaction structure.

func (*CreateOrAdjustTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateOrAdjustTransactionUnauthorized

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

Unauthorized

func NewCreateOrAdjustTransactionUnauthorized

func NewCreateOrAdjustTransactionUnauthorized() *CreateOrAdjustTransactionUnauthorized

NewCreateOrAdjustTransactionUnauthorized creates a CreateOrAdjustTransactionUnauthorized with default headers values

func (*CreateOrAdjustTransactionUnauthorized) Error

type CreateTransactionBadRequest

type CreateTransactionBadRequest struct {
	Payload map[string]interface{}
}
CreateTransactionBadRequest describes a response with status code 400, with default header values.

Bad Request

func NewCreateTransactionBadRequest

func NewCreateTransactionBadRequest() *CreateTransactionBadRequest

NewCreateTransactionBadRequest creates a CreateTransactionBadRequest with default headers values

func (*CreateTransactionBadRequest) Error

func (*CreateTransactionBadRequest) GetPayload added in v0.0.4

func (o *CreateTransactionBadRequest) GetPayload() map[string]interface{}

type CreateTransactionCreated added in v0.0.2

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

Created

func NewCreateTransactionCreated added in v0.0.2

func NewCreateTransactionCreated() *CreateTransactionCreated

NewCreateTransactionCreated creates a CreateTransactionCreated with default headers values

func (*CreateTransactionCreated) Error added in v0.0.2

func (o *CreateTransactionCreated) Error() string

func (*CreateTransactionCreated) GetPayload added in v0.0.2

type CreateTransactionParams

type CreateTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in the response after transaction is created
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The transaction you wish to create
	*/
	Body *models.CreateTransactionModel

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

CreateTransactionParams contains all the parameters to send to the API endpoint

for the create transaction operation.

Typically these are written to a http.Request.

func NewCreateTransactionParams

func NewCreateTransactionParams() *CreateTransactionParams

NewCreateTransactionParams creates a new CreateTransactionParams 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 NewCreateTransactionParamsWithContext

func NewCreateTransactionParamsWithContext(ctx context.Context) *CreateTransactionParams

NewCreateTransactionParamsWithContext creates a new CreateTransactionParams object with the ability to set a context for a request.

func NewCreateTransactionParamsWithHTTPClient

func NewCreateTransactionParamsWithHTTPClient(client *http.Client) *CreateTransactionParams

NewCreateTransactionParamsWithHTTPClient creates a new CreateTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewCreateTransactionParamsWithTimeout

func NewCreateTransactionParamsWithTimeout(timeout time.Duration) *CreateTransactionParams

NewCreateTransactionParamsWithTimeout creates a new CreateTransactionParams object with the ability to set a timeout on a request.

func (*CreateTransactionParams) SetBody

SetBody adds the body to the create transaction params

func (*CreateTransactionParams) SetContext

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

SetContext adds the context to the create transaction params

func (*CreateTransactionParams) SetDefaults

func (o *CreateTransactionParams) SetDefaults()

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

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

func (*CreateTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the create transaction params

func (*CreateTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create transaction params

func (*CreateTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the create transaction params

func (*CreateTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create transaction params

func (*CreateTransactionParams) WithBody

WithBody adds the body to the create transaction params

func (*CreateTransactionParams) WithContext

WithContext adds the context to the create transaction params

func (*CreateTransactionParams) WithDefaults

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

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

func (*CreateTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the create transaction params

func (*CreateTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create transaction params

func (*CreateTransactionParams) WithTimeout

WithTimeout adds the timeout to the create transaction params

func (*CreateTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create transaction params

func (*CreateTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type CreateTransactionReader

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

CreateTransactionReader is a Reader for the CreateTransaction structure.

func (*CreateTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateTransactionUnauthorized

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

Unauthorized

func NewCreateTransactionUnauthorized

func NewCreateTransactionUnauthorized() *CreateTransactionUnauthorized

NewCreateTransactionUnauthorized creates a CreateTransactionUnauthorized with default headers values

func (*CreateTransactionUnauthorized) Error

type DeleteLinesBadRequest

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

Bad Request

func NewDeleteLinesBadRequest

func NewDeleteLinesBadRequest() *DeleteLinesBadRequest

NewDeleteLinesBadRequest creates a DeleteLinesBadRequest with default headers values

func (*DeleteLinesBadRequest) Error

func (o *DeleteLinesBadRequest) Error() string

type DeleteLinesNotFound

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

Not Found

func NewDeleteLinesNotFound

func NewDeleteLinesNotFound() *DeleteLinesNotFound

NewDeleteLinesNotFound creates a DeleteLinesNotFound with default headers values

func (*DeleteLinesNotFound) Error

func (o *DeleteLinesNotFound) Error() string

type DeleteLinesOK

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

Success

func NewDeleteLinesOK

func NewDeleteLinesOK() *DeleteLinesOK

NewDeleteLinesOK creates a DeleteLinesOK with default headers values

func (*DeleteLinesOK) Error

func (o *DeleteLinesOK) Error() string

func (*DeleteLinesOK) GetPayload

func (o *DeleteLinesOK) GetPayload() *models.TransactionModel

type DeleteLinesParams

type DeleteLinesParams struct {

	/* DollarInclude.

	   Specifies objects to include in the response after transaction is created
	*/
	DollarInclude *string

	/* 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.

	   information about the transaction and lines to be removed
	*/
	Body *models.RemoveTransactionLineModel

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

DeleteLinesParams contains all the parameters to send to the API endpoint

for the delete lines operation.

Typically these are written to a http.Request.

func NewDeleteLinesParams

func NewDeleteLinesParams() *DeleteLinesParams

NewDeleteLinesParams creates a new DeleteLinesParams 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 NewDeleteLinesParamsWithContext

func NewDeleteLinesParamsWithContext(ctx context.Context) *DeleteLinesParams

NewDeleteLinesParamsWithContext creates a new DeleteLinesParams object with the ability to set a context for a request.

func NewDeleteLinesParamsWithHTTPClient

func NewDeleteLinesParamsWithHTTPClient(client *http.Client) *DeleteLinesParams

NewDeleteLinesParamsWithHTTPClient creates a new DeleteLinesParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteLinesParamsWithTimeout

func NewDeleteLinesParamsWithTimeout(timeout time.Duration) *DeleteLinesParams

NewDeleteLinesParamsWithTimeout creates a new DeleteLinesParams object with the ability to set a timeout on a request.

func (*DeleteLinesParams) SetBody

SetBody adds the body to the delete lines params

func (*DeleteLinesParams) SetContext

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

SetContext adds the context to the delete lines params

func (*DeleteLinesParams) SetDefaults

func (o *DeleteLinesParams) SetDefaults()

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

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

func (*DeleteLinesParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the delete lines params

func (*DeleteLinesParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete lines params

func (*DeleteLinesParams) SetTimeout

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

SetTimeout adds the timeout to the delete lines params

func (*DeleteLinesParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the delete lines params

func (*DeleteLinesParams) WithBody

WithBody adds the body to the delete lines params

func (*DeleteLinesParams) WithContext

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

WithContext adds the context to the delete lines params

func (*DeleteLinesParams) WithDefaults

func (o *DeleteLinesParams) WithDefaults() *DeleteLinesParams

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

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

func (*DeleteLinesParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the delete lines params

func (*DeleteLinesParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete lines params

func (*DeleteLinesParams) WithTimeout

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

WithTimeout adds the timeout to the delete lines params

func (*DeleteLinesParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the delete lines params

func (*DeleteLinesParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteLinesReader

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

DeleteLinesReader is a Reader for the DeleteLines structure.

func (*DeleteLinesReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteLinesUnauthorized

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

Unauthorized

func NewDeleteLinesUnauthorized

func NewDeleteLinesUnauthorized() *DeleteLinesUnauthorized

NewDeleteLinesUnauthorized creates a DeleteLinesUnauthorized with default headers values

func (*DeleteLinesUnauthorized) Error

func (o *DeleteLinesUnauthorized) Error() string

type GetTransactionByCodeAndTypeBadRequest

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

Bad Request

func NewGetTransactionByCodeAndTypeBadRequest

func NewGetTransactionByCodeAndTypeBadRequest() *GetTransactionByCodeAndTypeBadRequest

NewGetTransactionByCodeAndTypeBadRequest creates a GetTransactionByCodeAndTypeBadRequest with default headers values

func (*GetTransactionByCodeAndTypeBadRequest) Error

type GetTransactionByCodeAndTypeNotFound

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

Not Found

func NewGetTransactionByCodeAndTypeNotFound

func NewGetTransactionByCodeAndTypeNotFound() *GetTransactionByCodeAndTypeNotFound

NewGetTransactionByCodeAndTypeNotFound creates a GetTransactionByCodeAndTypeNotFound with default headers values

func (*GetTransactionByCodeAndTypeNotFound) Error

type GetTransactionByCodeAndTypeOK

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

Success

func NewGetTransactionByCodeAndTypeOK

func NewGetTransactionByCodeAndTypeOK() *GetTransactionByCodeAndTypeOK

NewGetTransactionByCodeAndTypeOK creates a GetTransactionByCodeAndTypeOK with default headers values

func (*GetTransactionByCodeAndTypeOK) Error

func (*GetTransactionByCodeAndTypeOK) GetPayload

type GetTransactionByCodeAndTypeParams

type GetTransactionByCodeAndTypeParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* 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

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   The transaction type to retrieve
	*/
	DocumentType string

	/* TransactionCode.

	   The transaction code to retrieve
	*/
	TransactionCode string

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

GetTransactionByCodeAndTypeParams contains all the parameters to send to the API endpoint

for the get transaction by code and type operation.

Typically these are written to a http.Request.

func NewGetTransactionByCodeAndTypeParams

func NewGetTransactionByCodeAndTypeParams() *GetTransactionByCodeAndTypeParams

NewGetTransactionByCodeAndTypeParams creates a new GetTransactionByCodeAndTypeParams 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 NewGetTransactionByCodeAndTypeParamsWithContext

func NewGetTransactionByCodeAndTypeParamsWithContext(ctx context.Context) *GetTransactionByCodeAndTypeParams

NewGetTransactionByCodeAndTypeParamsWithContext creates a new GetTransactionByCodeAndTypeParams object with the ability to set a context for a request.

func NewGetTransactionByCodeAndTypeParamsWithHTTPClient

func NewGetTransactionByCodeAndTypeParamsWithHTTPClient(client *http.Client) *GetTransactionByCodeAndTypeParams

NewGetTransactionByCodeAndTypeParamsWithHTTPClient creates a new GetTransactionByCodeAndTypeParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionByCodeAndTypeParamsWithTimeout

func NewGetTransactionByCodeAndTypeParamsWithTimeout(timeout time.Duration) *GetTransactionByCodeAndTypeParams

NewGetTransactionByCodeAndTypeParamsWithTimeout creates a new GetTransactionByCodeAndTypeParams object with the ability to set a timeout on a request.

func (*GetTransactionByCodeAndTypeParams) SetCompanyCode

func (o *GetTransactionByCodeAndTypeParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetContext

SetContext adds the context to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetDefaults

func (o *GetTransactionByCodeAndTypeParams) SetDefaults()

SetDefaults hydrates default values in the get transaction by code and type params (not the query body).

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

func (*GetTransactionByCodeAndTypeParams) SetDocumentType

func (o *GetTransactionByCodeAndTypeParams) SetDocumentType(documentType string)

SetDocumentType adds the documentType to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetTimeout

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

SetTimeout adds the timeout to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetTransactionCode

func (o *GetTransactionByCodeAndTypeParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithCompanyCode

WithCompanyCode adds the companyCode to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithContext

WithContext adds the context to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithDefaults

WithDefaults hydrates default values in the get transaction by code and type params (not the query body).

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

func (*GetTransactionByCodeAndTypeParams) WithDocumentType

WithDocumentType adds the documentType to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithTimeout

WithTimeout adds the timeout to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithTransactionCode

func (o *GetTransactionByCodeAndTypeParams) WithTransactionCode(transactionCode string) *GetTransactionByCodeAndTypeParams

WithTransactionCode adds the transactionCode to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get transaction by code and type params

func (*GetTransactionByCodeAndTypeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransactionByCodeAndTypeReader

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

GetTransactionByCodeAndTypeReader is a Reader for the GetTransactionByCodeAndType structure.

func (*GetTransactionByCodeAndTypeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionByCodeAndTypeUnauthorized

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

Unauthorized

func NewGetTransactionByCodeAndTypeUnauthorized

func NewGetTransactionByCodeAndTypeUnauthorized() *GetTransactionByCodeAndTypeUnauthorized

NewGetTransactionByCodeAndTypeUnauthorized creates a GetTransactionByCodeAndTypeUnauthorized with default headers values

func (*GetTransactionByCodeAndTypeUnauthorized) Error

type GetTransactionByCodeBadRequest

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

Bad Request

func NewGetTransactionByCodeBadRequest

func NewGetTransactionByCodeBadRequest() *GetTransactionByCodeBadRequest

NewGetTransactionByCodeBadRequest creates a GetTransactionByCodeBadRequest with default headers values

func (*GetTransactionByCodeBadRequest) Error

type GetTransactionByCodeNotFound

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

Not Found

func NewGetTransactionByCodeNotFound

func NewGetTransactionByCodeNotFound() *GetTransactionByCodeNotFound

NewGetTransactionByCodeNotFound creates a GetTransactionByCodeNotFound with default headers values

func (*GetTransactionByCodeNotFound) Error

type GetTransactionByCodeOK

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

Success

func NewGetTransactionByCodeOK

func NewGetTransactionByCodeOK() *GetTransactionByCodeOK

NewGetTransactionByCodeOK creates a GetTransactionByCodeOK with default headers values

func (*GetTransactionByCodeOK) Error

func (o *GetTransactionByCodeOK) Error() string

func (*GetTransactionByCodeOK) GetPayload

type GetTransactionByCodeParams

type GetTransactionByCodeParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* 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

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to retrieve
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to retrieve
	*/
	TransactionCode string

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

GetTransactionByCodeParams contains all the parameters to send to the API endpoint

for the get transaction by code operation.

Typically these are written to a http.Request.

func NewGetTransactionByCodeParams

func NewGetTransactionByCodeParams() *GetTransactionByCodeParams

NewGetTransactionByCodeParams creates a new GetTransactionByCodeParams 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 NewGetTransactionByCodeParamsWithContext

func NewGetTransactionByCodeParamsWithContext(ctx context.Context) *GetTransactionByCodeParams

NewGetTransactionByCodeParamsWithContext creates a new GetTransactionByCodeParams object with the ability to set a context for a request.

func NewGetTransactionByCodeParamsWithHTTPClient

func NewGetTransactionByCodeParamsWithHTTPClient(client *http.Client) *GetTransactionByCodeParams

NewGetTransactionByCodeParamsWithHTTPClient creates a new GetTransactionByCodeParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionByCodeParamsWithTimeout

func NewGetTransactionByCodeParamsWithTimeout(timeout time.Duration) *GetTransactionByCodeParams

NewGetTransactionByCodeParamsWithTimeout creates a new GetTransactionByCodeParams object with the ability to set a timeout on a request.

func (*GetTransactionByCodeParams) SetCompanyCode

func (o *GetTransactionByCodeParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the get transaction by code params

func (*GetTransactionByCodeParams) SetContext

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

SetContext adds the context to the get transaction by code params

func (*GetTransactionByCodeParams) SetDefaults

func (o *GetTransactionByCodeParams) SetDefaults()

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

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

func (*GetTransactionByCodeParams) SetDocumentType

func (o *GetTransactionByCodeParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the get transaction by code params

func (*GetTransactionByCodeParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the get transaction by code params

func (*GetTransactionByCodeParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transaction by code params

func (*GetTransactionByCodeParams) SetTimeout

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

SetTimeout adds the timeout to the get transaction by code params

func (*GetTransactionByCodeParams) SetTransactionCode

func (o *GetTransactionByCodeParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the get transaction by code params

func (*GetTransactionByCodeParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get transaction by code params

func (*GetTransactionByCodeParams) WithCompanyCode

func (o *GetTransactionByCodeParams) WithCompanyCode(companyCode string) *GetTransactionByCodeParams

WithCompanyCode adds the companyCode to the get transaction by code params

func (*GetTransactionByCodeParams) WithContext

WithContext adds the context to the get transaction by code params

func (*GetTransactionByCodeParams) WithDefaults

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

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

func (*GetTransactionByCodeParams) WithDocumentType

func (o *GetTransactionByCodeParams) WithDocumentType(documentType *string) *GetTransactionByCodeParams

WithDocumentType adds the documentType to the get transaction by code params

func (*GetTransactionByCodeParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the get transaction by code params

func (*GetTransactionByCodeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get transaction by code params

func (*GetTransactionByCodeParams) WithTimeout

WithTimeout adds the timeout to the get transaction by code params

func (*GetTransactionByCodeParams) WithTransactionCode

func (o *GetTransactionByCodeParams) WithTransactionCode(transactionCode string) *GetTransactionByCodeParams

WithTransactionCode adds the transactionCode to the get transaction by code params

func (*GetTransactionByCodeParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get transaction by code params

func (*GetTransactionByCodeParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransactionByCodeReader

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

GetTransactionByCodeReader is a Reader for the GetTransactionByCode structure.

func (*GetTransactionByCodeReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionByCodeUnauthorized

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

Unauthorized

func NewGetTransactionByCodeUnauthorized

func NewGetTransactionByCodeUnauthorized() *GetTransactionByCodeUnauthorized

NewGetTransactionByCodeUnauthorized creates a GetTransactionByCodeUnauthorized with default headers values

func (*GetTransactionByCodeUnauthorized) Error

type GetTransactionByIDBadRequest

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

Bad Request

func NewGetTransactionByIDBadRequest

func NewGetTransactionByIDBadRequest() *GetTransactionByIDBadRequest

NewGetTransactionByIDBadRequest creates a GetTransactionByIDBadRequest with default headers values

func (*GetTransactionByIDBadRequest) Error

type GetTransactionByIDNotFound

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

Not Found

func NewGetTransactionByIDNotFound

func NewGetTransactionByIDNotFound() *GetTransactionByIDNotFound

NewGetTransactionByIDNotFound creates a GetTransactionByIDNotFound with default headers values

func (*GetTransactionByIDNotFound) Error

type GetTransactionByIDOK

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

Success

func NewGetTransactionByIDOK

func NewGetTransactionByIDOK() *GetTransactionByIDOK

NewGetTransactionByIDOK creates a GetTransactionByIDOK with default headers values

func (*GetTransactionByIDOK) Error

func (o *GetTransactionByIDOK) Error() string

func (*GetTransactionByIDOK) GetPayload

func (o *GetTransactionByIDOK) GetPayload() *models.TransactionModel

type GetTransactionByIDParams

type GetTransactionByIDParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* 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

	/* ID.

	   The unique ID number of the transaction to retrieve

	   Format: int64
	*/
	ID int64

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

GetTransactionByIDParams contains all the parameters to send to the API endpoint

for the get transaction by Id operation.

Typically these are written to a http.Request.

func NewGetTransactionByIDParams

func NewGetTransactionByIDParams() *GetTransactionByIDParams

NewGetTransactionByIDParams creates a new GetTransactionByIDParams 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 NewGetTransactionByIDParamsWithContext

func NewGetTransactionByIDParamsWithContext(ctx context.Context) *GetTransactionByIDParams

NewGetTransactionByIDParamsWithContext creates a new GetTransactionByIDParams object with the ability to set a context for a request.

func NewGetTransactionByIDParamsWithHTTPClient

func NewGetTransactionByIDParamsWithHTTPClient(client *http.Client) *GetTransactionByIDParams

NewGetTransactionByIDParamsWithHTTPClient creates a new GetTransactionByIDParams object with the ability to set a custom HTTPClient for a request.

func NewGetTransactionByIDParamsWithTimeout

func NewGetTransactionByIDParamsWithTimeout(timeout time.Duration) *GetTransactionByIDParams

NewGetTransactionByIDParamsWithTimeout creates a new GetTransactionByIDParams object with the ability to set a timeout on a request.

func (*GetTransactionByIDParams) SetContext

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

SetContext adds the context to the get transaction by Id params

func (*GetTransactionByIDParams) SetDefaults

func (o *GetTransactionByIDParams) SetDefaults()

SetDefaults hydrates default values in the get transaction by Id params (not the query body).

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

func (*GetTransactionByIDParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the get transaction by Id params

func (*GetTransactionByIDParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get transaction by Id params

func (*GetTransactionByIDParams) SetID

func (o *GetTransactionByIDParams) SetID(id int64)

SetID adds the id to the get transaction by Id params

func (*GetTransactionByIDParams) SetTimeout

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

SetTimeout adds the timeout to the get transaction by Id params

func (*GetTransactionByIDParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get transaction by Id params

func (*GetTransactionByIDParams) WithContext

WithContext adds the context to the get transaction by Id params

func (*GetTransactionByIDParams) WithDefaults

WithDefaults hydrates default values in the get transaction by Id params (not the query body).

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

func (*GetTransactionByIDParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the get transaction by Id params

func (*GetTransactionByIDParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get transaction by Id params

func (*GetTransactionByIDParams) WithID

WithID adds the id to the get transaction by Id params

func (*GetTransactionByIDParams) WithTimeout

WithTimeout adds the timeout to the get transaction by Id params

func (*GetTransactionByIDParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get transaction by Id params

func (*GetTransactionByIDParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetTransactionByIDReader

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

GetTransactionByIDReader is a Reader for the GetTransactionByID structure.

func (*GetTransactionByIDReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetTransactionByIDUnauthorized

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

Unauthorized

func NewGetTransactionByIDUnauthorized

func NewGetTransactionByIDUnauthorized() *GetTransactionByIDUnauthorized

NewGetTransactionByIDUnauthorized creates a GetTransactionByIDUnauthorized with default headers values

func (*GetTransactionByIDUnauthorized) Error

type ListTransactionsByCompanyBadRequest

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

Bad Request

func NewListTransactionsByCompanyBadRequest

func NewListTransactionsByCompanyBadRequest() *ListTransactionsByCompanyBadRequest

NewListTransactionsByCompanyBadRequest creates a ListTransactionsByCompanyBadRequest with default headers values

func (*ListTransactionsByCompanyBadRequest) Error

type ListTransactionsByCompanyNotFound

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

Not Found

func NewListTransactionsByCompanyNotFound

func NewListTransactionsByCompanyNotFound() *ListTransactionsByCompanyNotFound

NewListTransactionsByCompanyNotFound creates a ListTransactionsByCompanyNotFound with default headers values

func (*ListTransactionsByCompanyNotFound) Error

type ListTransactionsByCompanyOK

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

Success

func NewListTransactionsByCompanyOK

func NewListTransactionsByCompanyOK() *ListTransactionsByCompanyOK

NewListTransactionsByCompanyOK creates a ListTransactionsByCompanyOK with default headers values

func (*ListTransactionsByCompanyOK) Error

func (*ListTransactionsByCompanyOK) GetPayload

type ListTransactionsByCompanyParams

type ListTransactionsByCompanyParams struct {

	/* DollarFilter.

	   A filter statement to identify specific records to retrieve.  For more information on filtering, see [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/).<br />*Not filterable:* exchangeRateCurrencyCode, totalDiscount, lines, addresses, locationTypes, summary, taxDetailsByTaxType, parameters, userDefinedFields, messages, invoiceMessages, isFakeTransaction, deliveryTerms
	*/
	DollarFilter *string

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* DollarOrderBy.

	   A comma separated list of sort statements in the format `(fieldname) [ASC|DESC]`, for example `id ASC`.
	*/
	DollarOrderBy *string

	/* DollarSkip.

	   If nonzero, skip this number of results before returning data.  Used with `$top` to provide pagination for large datasets.

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

	   If nonzero, return no more than this number of results.  Used with `$skip` to provide pagination for large datasets.  Unless otherwise specified, the maximum number of records that can be returned from an API call is 1,000 records.

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DataSourceID.

	   Optionally filter transactions to those from a specific data source.

	   Format: int32
	*/
	DataSourceID *int32

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

ListTransactionsByCompanyParams contains all the parameters to send to the API endpoint

for the list transactions by company operation.

Typically these are written to a http.Request.

func NewListTransactionsByCompanyParams

func NewListTransactionsByCompanyParams() *ListTransactionsByCompanyParams

NewListTransactionsByCompanyParams creates a new ListTransactionsByCompanyParams 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 NewListTransactionsByCompanyParamsWithContext

func NewListTransactionsByCompanyParamsWithContext(ctx context.Context) *ListTransactionsByCompanyParams

NewListTransactionsByCompanyParamsWithContext creates a new ListTransactionsByCompanyParams object with the ability to set a context for a request.

func NewListTransactionsByCompanyParamsWithHTTPClient

func NewListTransactionsByCompanyParamsWithHTTPClient(client *http.Client) *ListTransactionsByCompanyParams

NewListTransactionsByCompanyParamsWithHTTPClient creates a new ListTransactionsByCompanyParams object with the ability to set a custom HTTPClient for a request.

func NewListTransactionsByCompanyParamsWithTimeout

func NewListTransactionsByCompanyParamsWithTimeout(timeout time.Duration) *ListTransactionsByCompanyParams

NewListTransactionsByCompanyParamsWithTimeout creates a new ListTransactionsByCompanyParams object with the ability to set a timeout on a request.

func (*ListTransactionsByCompanyParams) SetCompanyCode

func (o *ListTransactionsByCompanyParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetContext

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

SetContext adds the context to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDataSourceID

func (o *ListTransactionsByCompanyParams) SetDataSourceID(dataSourceID *int32)

SetDataSourceID adds the dataSourceId to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDefaults

func (o *ListTransactionsByCompanyParams) SetDefaults()

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

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

func (*ListTransactionsByCompanyParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetTimeout

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

SetTimeout adds the timeout to the list transactions by company params

func (*ListTransactionsByCompanyParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithCompanyCode

WithCompanyCode adds the companyCode to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithContext

WithContext adds the context to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDataSourceID

func (o *ListTransactionsByCompanyParams) WithDataSourceID(dataSourceID *int32) *ListTransactionsByCompanyParams

WithDataSourceID adds the dataSourceID to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDefaults

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

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

func (*ListTransactionsByCompanyParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDollarSkip

WithDollarSkip adds the dollarSkip to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithDollarTop

WithDollarTop adds the dollarTop to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithTimeout

WithTimeout adds the timeout to the list transactions by company params

func (*ListTransactionsByCompanyParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the list transactions by company params

func (*ListTransactionsByCompanyParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListTransactionsByCompanyReader

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

ListTransactionsByCompanyReader is a Reader for the ListTransactionsByCompany structure.

func (*ListTransactionsByCompanyReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListTransactionsByCompanyUnauthorized

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

Unauthorized

func NewListTransactionsByCompanyUnauthorized

func NewListTransactionsByCompanyUnauthorized() *ListTransactionsByCompanyUnauthorized

NewListTransactionsByCompanyUnauthorized creates a ListTransactionsByCompanyUnauthorized with default headers values

func (*ListTransactionsByCompanyUnauthorized) Error

type LockTransactionBadRequest

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

Bad Request

func NewLockTransactionBadRequest

func NewLockTransactionBadRequest() *LockTransactionBadRequest

NewLockTransactionBadRequest creates a LockTransactionBadRequest with default headers values

func (*LockTransactionBadRequest) Error

func (o *LockTransactionBadRequest) Error() string

type LockTransactionNotFound

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

Not Found

func NewLockTransactionNotFound

func NewLockTransactionNotFound() *LockTransactionNotFound

NewLockTransactionNotFound creates a LockTransactionNotFound with default headers values

func (*LockTransactionNotFound) Error

func (o *LockTransactionNotFound) Error() string

type LockTransactionOK

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

Success

func NewLockTransactionOK

func NewLockTransactionOK() *LockTransactionOK

NewLockTransactionOK creates a LockTransactionOK with default headers values

func (*LockTransactionOK) Error

func (o *LockTransactionOK) Error() string

func (*LockTransactionOK) GetPayload

func (o *LockTransactionOK) GetPayload() *models.TransactionModel

type LockTransactionParams

type LockTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The lock request you wish to execute
	*/
	Body *models.LockTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to lock. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to lock
	*/
	TransactionCode string

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

LockTransactionParams contains all the parameters to send to the API endpoint

for the lock transaction operation.

Typically these are written to a http.Request.

func NewLockTransactionParams

func NewLockTransactionParams() *LockTransactionParams

NewLockTransactionParams creates a new LockTransactionParams 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 NewLockTransactionParamsWithContext

func NewLockTransactionParamsWithContext(ctx context.Context) *LockTransactionParams

NewLockTransactionParamsWithContext creates a new LockTransactionParams object with the ability to set a context for a request.

func NewLockTransactionParamsWithHTTPClient

func NewLockTransactionParamsWithHTTPClient(client *http.Client) *LockTransactionParams

NewLockTransactionParamsWithHTTPClient creates a new LockTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewLockTransactionParamsWithTimeout

func NewLockTransactionParamsWithTimeout(timeout time.Duration) *LockTransactionParams

NewLockTransactionParamsWithTimeout creates a new LockTransactionParams object with the ability to set a timeout on a request.

func (*LockTransactionParams) SetBody

SetBody adds the body to the lock transaction params

func (*LockTransactionParams) SetCompanyCode

func (o *LockTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the lock transaction params

func (*LockTransactionParams) SetContext

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

SetContext adds the context to the lock transaction params

func (*LockTransactionParams) SetDefaults

func (o *LockTransactionParams) SetDefaults()

SetDefaults hydrates default values in the lock transaction params (not the query body).

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

func (*LockTransactionParams) SetDocumentType

func (o *LockTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the lock transaction params

func (*LockTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the lock transaction params

func (*LockTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the lock transaction params

func (*LockTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the lock transaction params

func (*LockTransactionParams) SetTransactionCode

func (o *LockTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the lock transaction params

func (*LockTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the lock transaction params

func (*LockTransactionParams) WithBody

WithBody adds the body to the lock transaction params

func (*LockTransactionParams) WithCompanyCode

func (o *LockTransactionParams) WithCompanyCode(companyCode string) *LockTransactionParams

WithCompanyCode adds the companyCode to the lock transaction params

func (*LockTransactionParams) WithContext

WithContext adds the context to the lock transaction params

func (*LockTransactionParams) WithDefaults

func (o *LockTransactionParams) WithDefaults() *LockTransactionParams

WithDefaults hydrates default values in the lock transaction params (not the query body).

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

func (*LockTransactionParams) WithDocumentType

func (o *LockTransactionParams) WithDocumentType(documentType *string) *LockTransactionParams

WithDocumentType adds the documentType to the lock transaction params

func (*LockTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the lock transaction params

func (*LockTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the lock transaction params

func (*LockTransactionParams) WithTimeout

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

WithTimeout adds the timeout to the lock transaction params

func (*LockTransactionParams) WithTransactionCode

func (o *LockTransactionParams) WithTransactionCode(transactionCode string) *LockTransactionParams

WithTransactionCode adds the transactionCode to the lock transaction params

func (*LockTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the lock transaction params

func (*LockTransactionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type LockTransactionReader

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

LockTransactionReader is a Reader for the LockTransaction structure.

func (*LockTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LockTransactionUnauthorized

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

Unauthorized

func NewLockTransactionUnauthorized

func NewLockTransactionUnauthorized() *LockTransactionUnauthorized

NewLockTransactionUnauthorized creates a LockTransactionUnauthorized with default headers values

func (*LockTransactionUnauthorized) Error

type RefundTransactionBadRequest

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

Bad Request

func NewRefundTransactionBadRequest

func NewRefundTransactionBadRequest() *RefundTransactionBadRequest

NewRefundTransactionBadRequest creates a RefundTransactionBadRequest with default headers values

func (*RefundTransactionBadRequest) Error

type RefundTransactionNotFound

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

Not Found

func NewRefundTransactionNotFound

func NewRefundTransactionNotFound() *RefundTransactionNotFound

NewRefundTransactionNotFound creates a RefundTransactionNotFound with default headers values

func (*RefundTransactionNotFound) Error

func (o *RefundTransactionNotFound) Error() string

type RefundTransactionOK

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

Success

func NewRefundTransactionOK

func NewRefundTransactionOK() *RefundTransactionOK

NewRefundTransactionOK creates a RefundTransactionOK with default headers values

func (*RefundTransactionOK) Error

func (o *RefundTransactionOK) Error() string

func (*RefundTransactionOK) GetPayload

func (o *RefundTransactionOK) GetPayload() *models.TransactionModel

type RefundTransactionParams

type RefundTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in the response after transaction is created
	*/
	DollarInclude *string

	/* 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.

	   Information about the refund to create
	*/
	Body *models.RefundTransactionModel

	/* CompanyCode.

	   The code of the company that made the original sale
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to refund. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code of the original sale
	*/
	TransactionCode string

	/* UseTaxDateOverride.

	   (Optional): If set to true, processes refund using taxDateOverride rather than taxAmountOverride (Note: taxAmountOverride is not allowed for SST states).
	*/
	UseTaxDateOverride *bool

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

RefundTransactionParams contains all the parameters to send to the API endpoint

for the refund transaction operation.

Typically these are written to a http.Request.

func NewRefundTransactionParams

func NewRefundTransactionParams() *RefundTransactionParams

NewRefundTransactionParams creates a new RefundTransactionParams 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 NewRefundTransactionParamsWithContext

func NewRefundTransactionParamsWithContext(ctx context.Context) *RefundTransactionParams

NewRefundTransactionParamsWithContext creates a new RefundTransactionParams object with the ability to set a context for a request.

func NewRefundTransactionParamsWithHTTPClient

func NewRefundTransactionParamsWithHTTPClient(client *http.Client) *RefundTransactionParams

NewRefundTransactionParamsWithHTTPClient creates a new RefundTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewRefundTransactionParamsWithTimeout

func NewRefundTransactionParamsWithTimeout(timeout time.Duration) *RefundTransactionParams

NewRefundTransactionParamsWithTimeout creates a new RefundTransactionParams object with the ability to set a timeout on a request.

func (*RefundTransactionParams) SetBody

SetBody adds the body to the refund transaction params

func (*RefundTransactionParams) SetCompanyCode

func (o *RefundTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the refund transaction params

func (*RefundTransactionParams) SetContext

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

SetContext adds the context to the refund transaction params

func (*RefundTransactionParams) SetDefaults

func (o *RefundTransactionParams) SetDefaults()

SetDefaults hydrates default values in the refund transaction params (not the query body).

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

func (*RefundTransactionParams) SetDocumentType

func (o *RefundTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the refund transaction params

func (*RefundTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the refund transaction params

func (*RefundTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the refund transaction params

func (*RefundTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the refund transaction params

func (*RefundTransactionParams) SetTransactionCode

func (o *RefundTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the refund transaction params

func (*RefundTransactionParams) SetUseTaxDateOverride

func (o *RefundTransactionParams) SetUseTaxDateOverride(useTaxDateOverride *bool)

SetUseTaxDateOverride adds the useTaxDateOverride to the refund transaction params

func (*RefundTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the refund transaction params

func (*RefundTransactionParams) WithBody

WithBody adds the body to the refund transaction params

func (*RefundTransactionParams) WithCompanyCode

func (o *RefundTransactionParams) WithCompanyCode(companyCode string) *RefundTransactionParams

WithCompanyCode adds the companyCode to the refund transaction params

func (*RefundTransactionParams) WithContext

WithContext adds the context to the refund transaction params

func (*RefundTransactionParams) WithDefaults

WithDefaults hydrates default values in the refund transaction params (not the query body).

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

func (*RefundTransactionParams) WithDocumentType

func (o *RefundTransactionParams) WithDocumentType(documentType *string) *RefundTransactionParams

WithDocumentType adds the documentType to the refund transaction params

func (*RefundTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the refund transaction params

func (*RefundTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the refund transaction params

func (*RefundTransactionParams) WithTimeout

WithTimeout adds the timeout to the refund transaction params

func (*RefundTransactionParams) WithTransactionCode

func (o *RefundTransactionParams) WithTransactionCode(transactionCode string) *RefundTransactionParams

WithTransactionCode adds the transactionCode to the refund transaction params

func (*RefundTransactionParams) WithUseTaxDateOverride

func (o *RefundTransactionParams) WithUseTaxDateOverride(useTaxDateOverride *bool) *RefundTransactionParams

WithUseTaxDateOverride adds the useTaxDateOverride to the refund transaction params

func (*RefundTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the refund transaction params

func (*RefundTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RefundTransactionReader

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

RefundTransactionReader is a Reader for the RefundTransaction structure.

func (*RefundTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RefundTransactionUnauthorized

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

Unauthorized

func NewRefundTransactionUnauthorized

func NewRefundTransactionUnauthorized() *RefundTransactionUnauthorized

NewRefundTransactionUnauthorized creates a RefundTransactionUnauthorized with default headers values

func (*RefundTransactionUnauthorized) Error

type SettleTransactionBadRequest

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

Bad Request

func NewSettleTransactionBadRequest

func NewSettleTransactionBadRequest() *SettleTransactionBadRequest

NewSettleTransactionBadRequest creates a SettleTransactionBadRequest with default headers values

func (*SettleTransactionBadRequest) Error

type SettleTransactionNotFound

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

Not Found

func NewSettleTransactionNotFound

func NewSettleTransactionNotFound() *SettleTransactionNotFound

NewSettleTransactionNotFound creates a SettleTransactionNotFound with default headers values

func (*SettleTransactionNotFound) Error

func (o *SettleTransactionNotFound) Error() string

type SettleTransactionOK

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

Success

func NewSettleTransactionOK

func NewSettleTransactionOK() *SettleTransactionOK

NewSettleTransactionOK creates a SettleTransactionOK with default headers values

func (*SettleTransactionOK) Error

func (o *SettleTransactionOK) Error() string

func (*SettleTransactionOK) GetPayload

func (o *SettleTransactionOK) GetPayload() *models.TransactionModel

type SettleTransactionParams

type SettleTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The data from an external system to reconcile against AvaTax
	*/
	Body *models.SettleTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to settle. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to settle
	*/
	TransactionCode string

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

SettleTransactionParams contains all the parameters to send to the API endpoint

for the settle transaction operation.

Typically these are written to a http.Request.

func NewSettleTransactionParams

func NewSettleTransactionParams() *SettleTransactionParams

NewSettleTransactionParams creates a new SettleTransactionParams 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 NewSettleTransactionParamsWithContext

func NewSettleTransactionParamsWithContext(ctx context.Context) *SettleTransactionParams

NewSettleTransactionParamsWithContext creates a new SettleTransactionParams object with the ability to set a context for a request.

func NewSettleTransactionParamsWithHTTPClient

func NewSettleTransactionParamsWithHTTPClient(client *http.Client) *SettleTransactionParams

NewSettleTransactionParamsWithHTTPClient creates a new SettleTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewSettleTransactionParamsWithTimeout

func NewSettleTransactionParamsWithTimeout(timeout time.Duration) *SettleTransactionParams

NewSettleTransactionParamsWithTimeout creates a new SettleTransactionParams object with the ability to set a timeout on a request.

func (*SettleTransactionParams) SetBody

SetBody adds the body to the settle transaction params

func (*SettleTransactionParams) SetCompanyCode

func (o *SettleTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the settle transaction params

func (*SettleTransactionParams) SetContext

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

SetContext adds the context to the settle transaction params

func (*SettleTransactionParams) SetDefaults

func (o *SettleTransactionParams) SetDefaults()

SetDefaults hydrates default values in the settle transaction params (not the query body).

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

func (*SettleTransactionParams) SetDocumentType

func (o *SettleTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the settle transaction params

func (*SettleTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the settle transaction params

func (*SettleTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the settle transaction params

func (*SettleTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the settle transaction params

func (*SettleTransactionParams) SetTransactionCode

func (o *SettleTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the settle transaction params

func (*SettleTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the settle transaction params

func (*SettleTransactionParams) WithBody

WithBody adds the body to the settle transaction params

func (*SettleTransactionParams) WithCompanyCode

func (o *SettleTransactionParams) WithCompanyCode(companyCode string) *SettleTransactionParams

WithCompanyCode adds the companyCode to the settle transaction params

func (*SettleTransactionParams) WithContext

WithContext adds the context to the settle transaction params

func (*SettleTransactionParams) WithDefaults

WithDefaults hydrates default values in the settle transaction params (not the query body).

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

func (*SettleTransactionParams) WithDocumentType

func (o *SettleTransactionParams) WithDocumentType(documentType *string) *SettleTransactionParams

WithDocumentType adds the documentType to the settle transaction params

func (*SettleTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the settle transaction params

func (*SettleTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the settle transaction params

func (*SettleTransactionParams) WithTimeout

WithTimeout adds the timeout to the settle transaction params

func (*SettleTransactionParams) WithTransactionCode

func (o *SettleTransactionParams) WithTransactionCode(transactionCode string) *SettleTransactionParams

WithTransactionCode adds the transactionCode to the settle transaction params

func (*SettleTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the settle transaction params

func (*SettleTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type SettleTransactionReader

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

SettleTransactionReader is a Reader for the SettleTransaction structure.

func (*SettleTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type SettleTransactionUnauthorized

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

Unauthorized

func NewSettleTransactionUnauthorized

func NewSettleTransactionUnauthorized() *SettleTransactionUnauthorized

NewSettleTransactionUnauthorized creates a SettleTransactionUnauthorized with default headers values

func (*SettleTransactionUnauthorized) Error

type UncommitTransactionBadRequest

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

Bad Request

func NewUncommitTransactionBadRequest

func NewUncommitTransactionBadRequest() *UncommitTransactionBadRequest

NewUncommitTransactionBadRequest creates a UncommitTransactionBadRequest with default headers values

func (*UncommitTransactionBadRequest) Error

type UncommitTransactionNotFound

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

Not Found

func NewUncommitTransactionNotFound

func NewUncommitTransactionNotFound() *UncommitTransactionNotFound

NewUncommitTransactionNotFound creates a UncommitTransactionNotFound with default headers values

func (*UncommitTransactionNotFound) Error

type UncommitTransactionOK

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

Success

func NewUncommitTransactionOK

func NewUncommitTransactionOK() *UncommitTransactionOK

NewUncommitTransactionOK creates a UncommitTransactionOK with default headers values

func (*UncommitTransactionOK) Error

func (o *UncommitTransactionOK) Error() string

func (*UncommitTransactionOK) GetPayload

type UncommitTransactionParams

type UncommitTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* 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

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to Uncommit. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to Uncommit
	*/
	TransactionCode string

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

UncommitTransactionParams contains all the parameters to send to the API endpoint

for the uncommit transaction operation.

Typically these are written to a http.Request.

func NewUncommitTransactionParams

func NewUncommitTransactionParams() *UncommitTransactionParams

NewUncommitTransactionParams creates a new UncommitTransactionParams 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 NewUncommitTransactionParamsWithContext

func NewUncommitTransactionParamsWithContext(ctx context.Context) *UncommitTransactionParams

NewUncommitTransactionParamsWithContext creates a new UncommitTransactionParams object with the ability to set a context for a request.

func NewUncommitTransactionParamsWithHTTPClient

func NewUncommitTransactionParamsWithHTTPClient(client *http.Client) *UncommitTransactionParams

NewUncommitTransactionParamsWithHTTPClient creates a new UncommitTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewUncommitTransactionParamsWithTimeout

func NewUncommitTransactionParamsWithTimeout(timeout time.Duration) *UncommitTransactionParams

NewUncommitTransactionParamsWithTimeout creates a new UncommitTransactionParams object with the ability to set a timeout on a request.

func (*UncommitTransactionParams) SetCompanyCode

func (o *UncommitTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the uncommit transaction params

func (*UncommitTransactionParams) SetContext

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

SetContext adds the context to the uncommit transaction params

func (*UncommitTransactionParams) SetDefaults

func (o *UncommitTransactionParams) SetDefaults()

SetDefaults hydrates default values in the uncommit transaction params (not the query body).

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

func (*UncommitTransactionParams) SetDocumentType

func (o *UncommitTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the uncommit transaction params

func (*UncommitTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the uncommit transaction params

func (*UncommitTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the uncommit transaction params

func (*UncommitTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the uncommit transaction params

func (*UncommitTransactionParams) SetTransactionCode

func (o *UncommitTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the uncommit transaction params

func (*UncommitTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the uncommit transaction params

func (*UncommitTransactionParams) WithCompanyCode

func (o *UncommitTransactionParams) WithCompanyCode(companyCode string) *UncommitTransactionParams

WithCompanyCode adds the companyCode to the uncommit transaction params

func (*UncommitTransactionParams) WithContext

WithContext adds the context to the uncommit transaction params

func (*UncommitTransactionParams) WithDefaults

WithDefaults hydrates default values in the uncommit transaction params (not the query body).

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

func (*UncommitTransactionParams) WithDocumentType

func (o *UncommitTransactionParams) WithDocumentType(documentType *string) *UncommitTransactionParams

WithDocumentType adds the documentType to the uncommit transaction params

func (*UncommitTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the uncommit transaction params

func (*UncommitTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the uncommit transaction params

func (*UncommitTransactionParams) WithTimeout

WithTimeout adds the timeout to the uncommit transaction params

func (*UncommitTransactionParams) WithTransactionCode

func (o *UncommitTransactionParams) WithTransactionCode(transactionCode string) *UncommitTransactionParams

WithTransactionCode adds the transactionCode to the uncommit transaction params

func (*UncommitTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the uncommit transaction params

func (*UncommitTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UncommitTransactionReader

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

UncommitTransactionReader is a Reader for the UncommitTransaction structure.

func (*UncommitTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UncommitTransactionUnauthorized

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

Unauthorized

func NewUncommitTransactionUnauthorized

func NewUncommitTransactionUnauthorized() *UncommitTransactionUnauthorized

NewUncommitTransactionUnauthorized creates a UncommitTransactionUnauthorized with default headers values

func (*UncommitTransactionUnauthorized) Error

type UnvoidTransactionBadRequest

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

Bad Request

func NewUnvoidTransactionBadRequest

func NewUnvoidTransactionBadRequest() *UnvoidTransactionBadRequest

NewUnvoidTransactionBadRequest creates a UnvoidTransactionBadRequest with default headers values

func (*UnvoidTransactionBadRequest) Error

type UnvoidTransactionNotFound

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

Not Found

func NewUnvoidTransactionNotFound

func NewUnvoidTransactionNotFound() *UnvoidTransactionNotFound

NewUnvoidTransactionNotFound creates a UnvoidTransactionNotFound with default headers values

func (*UnvoidTransactionNotFound) Error

func (o *UnvoidTransactionNotFound) Error() string

type UnvoidTransactionOK

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

Success

func NewUnvoidTransactionOK

func NewUnvoidTransactionOK() *UnvoidTransactionOK

NewUnvoidTransactionOK creates a UnvoidTransactionOK with default headers values

func (*UnvoidTransactionOK) Error

func (o *UnvoidTransactionOK) Error() string

func (*UnvoidTransactionOK) GetPayload

func (o *UnvoidTransactionOK) GetPayload() *models.TransactionModel

type UnvoidTransactionParams

type UnvoidTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* 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

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to commit. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to commit
	*/
	TransactionCode string

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

UnvoidTransactionParams contains all the parameters to send to the API endpoint

for the unvoid transaction operation.

Typically these are written to a http.Request.

func NewUnvoidTransactionParams

func NewUnvoidTransactionParams() *UnvoidTransactionParams

NewUnvoidTransactionParams creates a new UnvoidTransactionParams 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 NewUnvoidTransactionParamsWithContext

func NewUnvoidTransactionParamsWithContext(ctx context.Context) *UnvoidTransactionParams

NewUnvoidTransactionParamsWithContext creates a new UnvoidTransactionParams object with the ability to set a context for a request.

func NewUnvoidTransactionParamsWithHTTPClient

func NewUnvoidTransactionParamsWithHTTPClient(client *http.Client) *UnvoidTransactionParams

NewUnvoidTransactionParamsWithHTTPClient creates a new UnvoidTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewUnvoidTransactionParamsWithTimeout

func NewUnvoidTransactionParamsWithTimeout(timeout time.Duration) *UnvoidTransactionParams

NewUnvoidTransactionParamsWithTimeout creates a new UnvoidTransactionParams object with the ability to set a timeout on a request.

func (*UnvoidTransactionParams) SetCompanyCode

func (o *UnvoidTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the unvoid transaction params

func (*UnvoidTransactionParams) SetContext

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

SetContext adds the context to the unvoid transaction params

func (*UnvoidTransactionParams) SetDefaults

func (o *UnvoidTransactionParams) SetDefaults()

SetDefaults hydrates default values in the unvoid transaction params (not the query body).

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

func (*UnvoidTransactionParams) SetDocumentType

func (o *UnvoidTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the unvoid transaction params

func (*UnvoidTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the unvoid transaction params

func (*UnvoidTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unvoid transaction params

func (*UnvoidTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the unvoid transaction params

func (*UnvoidTransactionParams) SetTransactionCode

func (o *UnvoidTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the unvoid transaction params

func (*UnvoidTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the unvoid transaction params

func (*UnvoidTransactionParams) WithCompanyCode

func (o *UnvoidTransactionParams) WithCompanyCode(companyCode string) *UnvoidTransactionParams

WithCompanyCode adds the companyCode to the unvoid transaction params

func (*UnvoidTransactionParams) WithContext

WithContext adds the context to the unvoid transaction params

func (*UnvoidTransactionParams) WithDefaults

WithDefaults hydrates default values in the unvoid transaction params (not the query body).

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

func (*UnvoidTransactionParams) WithDocumentType

func (o *UnvoidTransactionParams) WithDocumentType(documentType *string) *UnvoidTransactionParams

WithDocumentType adds the documentType to the unvoid transaction params

func (*UnvoidTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the unvoid transaction params

func (*UnvoidTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the unvoid transaction params

func (*UnvoidTransactionParams) WithTimeout

WithTimeout adds the timeout to the unvoid transaction params

func (*UnvoidTransactionParams) WithTransactionCode

func (o *UnvoidTransactionParams) WithTransactionCode(transactionCode string) *UnvoidTransactionParams

WithTransactionCode adds the transactionCode to the unvoid transaction params

func (*UnvoidTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the unvoid transaction params

func (*UnvoidTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnvoidTransactionReader

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

UnvoidTransactionReader is a Reader for the UnvoidTransaction structure.

func (*UnvoidTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnvoidTransactionUnauthorized

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

Unauthorized

func NewUnvoidTransactionUnauthorized

func NewUnvoidTransactionUnauthorized() *UnvoidTransactionUnauthorized

NewUnvoidTransactionUnauthorized creates a UnvoidTransactionUnauthorized with default headers values

func (*UnvoidTransactionUnauthorized) Error

type VerifyTransactionBadRequest

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

Bad Request

func NewVerifyTransactionBadRequest

func NewVerifyTransactionBadRequest() *VerifyTransactionBadRequest

NewVerifyTransactionBadRequest creates a VerifyTransactionBadRequest with default headers values

func (*VerifyTransactionBadRequest) Error

type VerifyTransactionNotFound

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

Not Found

func NewVerifyTransactionNotFound

func NewVerifyTransactionNotFound() *VerifyTransactionNotFound

NewVerifyTransactionNotFound creates a VerifyTransactionNotFound with default headers values

func (*VerifyTransactionNotFound) Error

func (o *VerifyTransactionNotFound) Error() string

type VerifyTransactionOK

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

Success

func NewVerifyTransactionOK

func NewVerifyTransactionOK() *VerifyTransactionOK

NewVerifyTransactionOK creates a VerifyTransactionOK with default headers values

func (*VerifyTransactionOK) Error

func (o *VerifyTransactionOK) Error() string

func (*VerifyTransactionOK) GetPayload

func (o *VerifyTransactionOK) GetPayload() *models.TransactionModel

type VerifyTransactionParams

type VerifyTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The data from an external system to reconcile against AvaTax
	*/
	Body *models.VerifyTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to verify. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to settle
	*/
	TransactionCode string

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

VerifyTransactionParams contains all the parameters to send to the API endpoint

for the verify transaction operation.

Typically these are written to a http.Request.

func NewVerifyTransactionParams

func NewVerifyTransactionParams() *VerifyTransactionParams

NewVerifyTransactionParams creates a new VerifyTransactionParams 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 NewVerifyTransactionParamsWithContext

func NewVerifyTransactionParamsWithContext(ctx context.Context) *VerifyTransactionParams

NewVerifyTransactionParamsWithContext creates a new VerifyTransactionParams object with the ability to set a context for a request.

func NewVerifyTransactionParamsWithHTTPClient

func NewVerifyTransactionParamsWithHTTPClient(client *http.Client) *VerifyTransactionParams

NewVerifyTransactionParamsWithHTTPClient creates a new VerifyTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewVerifyTransactionParamsWithTimeout

func NewVerifyTransactionParamsWithTimeout(timeout time.Duration) *VerifyTransactionParams

NewVerifyTransactionParamsWithTimeout creates a new VerifyTransactionParams object with the ability to set a timeout on a request.

func (*VerifyTransactionParams) SetBody

SetBody adds the body to the verify transaction params

func (*VerifyTransactionParams) SetCompanyCode

func (o *VerifyTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the verify transaction params

func (*VerifyTransactionParams) SetContext

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

SetContext adds the context to the verify transaction params

func (*VerifyTransactionParams) SetDefaults

func (o *VerifyTransactionParams) SetDefaults()

SetDefaults hydrates default values in the verify transaction params (not the query body).

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

func (*VerifyTransactionParams) SetDocumentType

func (o *VerifyTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the verify transaction params

func (*VerifyTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the verify transaction params

func (*VerifyTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the verify transaction params

func (*VerifyTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the verify transaction params

func (*VerifyTransactionParams) SetTransactionCode

func (o *VerifyTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the verify transaction params

func (*VerifyTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the verify transaction params

func (*VerifyTransactionParams) WithBody

WithBody adds the body to the verify transaction params

func (*VerifyTransactionParams) WithCompanyCode

func (o *VerifyTransactionParams) WithCompanyCode(companyCode string) *VerifyTransactionParams

WithCompanyCode adds the companyCode to the verify transaction params

func (*VerifyTransactionParams) WithContext

WithContext adds the context to the verify transaction params

func (*VerifyTransactionParams) WithDefaults

WithDefaults hydrates default values in the verify transaction params (not the query body).

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

func (*VerifyTransactionParams) WithDocumentType

func (o *VerifyTransactionParams) WithDocumentType(documentType *string) *VerifyTransactionParams

WithDocumentType adds the documentType to the verify transaction params

func (*VerifyTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the verify transaction params

func (*VerifyTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the verify transaction params

func (*VerifyTransactionParams) WithTimeout

WithTimeout adds the timeout to the verify transaction params

func (*VerifyTransactionParams) WithTransactionCode

func (o *VerifyTransactionParams) WithTransactionCode(transactionCode string) *VerifyTransactionParams

WithTransactionCode adds the transactionCode to the verify transaction params

func (*VerifyTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the verify transaction params

func (*VerifyTransactionParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type VerifyTransactionReader

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

VerifyTransactionReader is a Reader for the VerifyTransaction structure.

func (*VerifyTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type VerifyTransactionUnauthorized

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

Unauthorized

func NewVerifyTransactionUnauthorized

func NewVerifyTransactionUnauthorized() *VerifyTransactionUnauthorized

NewVerifyTransactionUnauthorized creates a VerifyTransactionUnauthorized with default headers values

func (*VerifyTransactionUnauthorized) Error

type VoidTransactionBadRequest

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

Bad Request

func NewVoidTransactionBadRequest

func NewVoidTransactionBadRequest() *VoidTransactionBadRequest

NewVoidTransactionBadRequest creates a VoidTransactionBadRequest with default headers values

func (*VoidTransactionBadRequest) Error

func (o *VoidTransactionBadRequest) Error() string

type VoidTransactionNotFound

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

Not Found

func NewVoidTransactionNotFound

func NewVoidTransactionNotFound() *VoidTransactionNotFound

NewVoidTransactionNotFound creates a VoidTransactionNotFound with default headers values

func (*VoidTransactionNotFound) Error

func (o *VoidTransactionNotFound) Error() string

type VoidTransactionOK

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

Success

func NewVoidTransactionOK

func NewVoidTransactionOK() *VoidTransactionOK

NewVoidTransactionOK creates a VoidTransactionOK with default headers values

func (*VoidTransactionOK) Error

func (o *VoidTransactionOK) Error() string

func (*VoidTransactionOK) GetPayload

func (o *VoidTransactionOK) GetPayload() *models.TransactionModel

type VoidTransactionParams

type VoidTransactionParams struct {

	/* DollarInclude.

	   Specifies objects to include in this fetch call
	*/
	DollarInclude *string

	/* XAvalaraClient.

	   Identifies the software you are using to call this API.  For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) .

	   Default: "Swagger UI; 21.12.0; Custom; 1.0"
	*/
	XAvalaraClient *string

	/* Body.

	   The void request you wish to execute. To void a transaction the code must be set to 'DocVoided'
	*/
	Body *models.VoidTransactionModel

	/* CompanyCode.

	   The company code of the company that recorded this transaction
	*/
	CompanyCode string

	/* DocumentType.

	   (Optional): The document type of the transaction to void. If not provided, the default is SalesInvoice.
	*/
	DocumentType *string

	/* TransactionCode.

	   The transaction code to void
	*/
	TransactionCode string

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

VoidTransactionParams contains all the parameters to send to the API endpoint

for the void transaction operation.

Typically these are written to a http.Request.

func NewVoidTransactionParams

func NewVoidTransactionParams() *VoidTransactionParams

NewVoidTransactionParams creates a new VoidTransactionParams 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 NewVoidTransactionParamsWithContext

func NewVoidTransactionParamsWithContext(ctx context.Context) *VoidTransactionParams

NewVoidTransactionParamsWithContext creates a new VoidTransactionParams object with the ability to set a context for a request.

func NewVoidTransactionParamsWithHTTPClient

func NewVoidTransactionParamsWithHTTPClient(client *http.Client) *VoidTransactionParams

NewVoidTransactionParamsWithHTTPClient creates a new VoidTransactionParams object with the ability to set a custom HTTPClient for a request.

func NewVoidTransactionParamsWithTimeout

func NewVoidTransactionParamsWithTimeout(timeout time.Duration) *VoidTransactionParams

NewVoidTransactionParamsWithTimeout creates a new VoidTransactionParams object with the ability to set a timeout on a request.

func (*VoidTransactionParams) SetBody

SetBody adds the body to the void transaction params

func (*VoidTransactionParams) SetCompanyCode

func (o *VoidTransactionParams) SetCompanyCode(companyCode string)

SetCompanyCode adds the companyCode to the void transaction params

func (*VoidTransactionParams) SetContext

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

SetContext adds the context to the void transaction params

func (*VoidTransactionParams) SetDefaults

func (o *VoidTransactionParams) SetDefaults()

SetDefaults hydrates default values in the void transaction params (not the query body).

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

func (*VoidTransactionParams) SetDocumentType

func (o *VoidTransactionParams) SetDocumentType(documentType *string)

SetDocumentType adds the documentType to the void transaction params

func (*VoidTransactionParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the void transaction params

func (*VoidTransactionParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the void transaction params

func (*VoidTransactionParams) SetTimeout

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

SetTimeout adds the timeout to the void transaction params

func (*VoidTransactionParams) SetTransactionCode

func (o *VoidTransactionParams) SetTransactionCode(transactionCode string)

SetTransactionCode adds the transactionCode to the void transaction params

func (*VoidTransactionParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the void transaction params

func (*VoidTransactionParams) WithBody

WithBody adds the body to the void transaction params

func (*VoidTransactionParams) WithCompanyCode

func (o *VoidTransactionParams) WithCompanyCode(companyCode string) *VoidTransactionParams

WithCompanyCode adds the companyCode to the void transaction params

func (*VoidTransactionParams) WithContext

WithContext adds the context to the void transaction params

func (*VoidTransactionParams) WithDefaults

func (o *VoidTransactionParams) WithDefaults() *VoidTransactionParams

WithDefaults hydrates default values in the void transaction params (not the query body).

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

func (*VoidTransactionParams) WithDocumentType

func (o *VoidTransactionParams) WithDocumentType(documentType *string) *VoidTransactionParams

WithDocumentType adds the documentType to the void transaction params

func (*VoidTransactionParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the void transaction params

func (*VoidTransactionParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the void transaction params

func (*VoidTransactionParams) WithTimeout

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

WithTimeout adds the timeout to the void transaction params

func (*VoidTransactionParams) WithTransactionCode

func (o *VoidTransactionParams) WithTransactionCode(transactionCode string) *VoidTransactionParams

WithTransactionCode adds the transactionCode to the void transaction params

func (*VoidTransactionParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the void transaction params

func (*VoidTransactionParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type VoidTransactionReader

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

VoidTransactionReader is a Reader for the VoidTransaction structure.

func (*VoidTransactionReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type VoidTransactionUnauthorized

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

Unauthorized

func NewVoidTransactionUnauthorized

func NewVoidTransactionUnauthorized() *VoidTransactionUnauthorized

NewVoidTransactionUnauthorized creates a VoidTransactionUnauthorized with default headers values

func (*VoidTransactionUnauthorized) Error

Source Files

Jump to

Keyboard shortcuts

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