customers

package
v0.0.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client for customers API

func (*Client) CreateCustomers

func (a *Client) CreateCustomers(params *CreateCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomersOK, error)
CreateCustomers creates customers for this company

Create one or more customers for this company.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

A nested object such as CustomFields could be specified and created along with the customer object. To fetch the nested object, please call 'GetCustomer' API with appropriate $include parameters.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### Security Policies

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

func (*Client) DeleteCustomer

func (a *Client) DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)
DeleteCustomer deletes a customer record

Deletes the customer object referenced by this URL.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### Security Policies

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

func (*Client) GetCustomer

func (a *Client) GetCustomer(params *GetCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCustomerOK, error)
GetCustomer retrieves a single customer

Retrieve the customer identified by this URL.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

You can use the `$include` parameter to fetch the following additional objects for expansion:

* Certificates - Fetch a list of certificates linked to this customer. * CustomFields - Fetch a list of custom fields associated to this customer. * attributes - Retrieves all attributes applied to the customer.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) LinkAttributesToCustomer

func (a *Client) LinkAttributesToCustomer(params *LinkAttributesToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkAttributesToCustomerOK, error)
LinkAttributesToCustomer links attributes to a customer

Link one or many attributes to a customer.

A customer may have multiple attributes that control its behavior. You may link or unlink attributes to a customer at any time. The full list of defined attributes may be found using `QueryCompanyCustomerAttributes` API.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### Security Policies

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

func (*Client) LinkCertificatesToCustomer

func (a *Client) LinkCertificatesToCustomer(params *LinkCertificatesToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkCertificatesToCustomerOK, error)
LinkCertificatesToCustomer links certificates to a customer

Link one or more certificates to a customer.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) LinkShipToCustomersToBillCustomer

func (a *Client) LinkShipToCustomersToBillCustomer(params *LinkShipToCustomersToBillCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkShipToCustomersToBillCustomerOK, error)
LinkShipToCustomersToBillCustomer links two customer records together

Links a Ship-To customer record with a Bill-To customer record.

Customer records represent businesses or individuals who can provide exemption certificates. Some customers may have certificates that are linked to their shipping address or their billing address. To group these customer records together, you may link multiple bill-to and ship-to addresses together to represent a single entity that has multiple different addresses of different kinds.

In general, a customer will have only one primary billing address and multiple ship-to addresses, representing all of the different locations where they receive goods. To facilitate this type of customer, you can send in one bill-to customer code and multiple ship-to customer codes in a single API call.

Note that you can only link a ship-to customer record to a bill-to customer record. You may not link two customers of the same kind together.

### 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.

func (*Client) ListAttributesForCustomer

func (a *Client) ListAttributesForCustomer(params *ListAttributesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAttributesForCustomerOK, error)
ListAttributesForCustomer retrieves a customer s attributes

Retrieve the attributes linked to the customer identified by this URL.

A customer may have multiple attributes that control its behavior. You may link or unlink attributes to a customer at any time. The full list of defined attributes may be found using `QueryCompanyCustomerAttributes` API.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) ListCertificatesForCustomer

func (a *Client) ListCertificatesForCustomer(params *ListCertificatesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCertificatesForCustomerOK, error)
ListCertificatesForCustomer lists certificates linked to a customer

List all certificates linked to a customer.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) ListValidCertificatesForCustomer

func (a *Client) ListValidCertificatesForCustomer(params *ListValidCertificatesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListValidCertificatesForCustomerOK, error)
ListValidCertificatesForCustomer lists valid certificates for a location

List valid certificates linked to a customer in a particular country and region.

This API is intended to help identify whether a customer has already provided a certificate that applies to a particular country and region. This API is intended to help you remind a customer when they have or have not provided copies of their exemption certificates to you during the sales order process.

If a customer does not have a certificate on file and they wish to provide one, you should send the customer a CertExpress invitation link so that the customer can upload proof of their exemption certificate. Please see the `CreateCertExpressInvitation` API to create an invitation link for this customer.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) QueryCustomers

func (a *Client) QueryCustomers(params *QueryCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryCustomersOK, error)
QueryCustomers lists all customers for this company

List all customers recorded by this company matching the specified criteria.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

You can use the `$include` parameter to fetch the following additional objects for expansion:

* Certificates - Fetch a list of certificates linked to this customer. * attributes - Retrieves all attributes applied to the customer.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

func (*Client) UnlinkAttributesFromCustomer

func (a *Client) UnlinkAttributesFromCustomer(params *UnlinkAttributesFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnlinkAttributesFromCustomerOK, error)
UnlinkAttributesFromCustomer unlinks attributes from a customer

Unlink one or many attributes from a customer.

A customer may have multiple attributes that control its behavior. You may link or unlink attributes to a customer at any time. The full list of defined attributes may be found using `QueryCompanyCustomerAttributes` API.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this customer object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### Security Policies

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

func (*Client) UnlinkCertificatesFromCustomer

func (a *Client) UnlinkCertificatesFromCustomer(params *UnlinkCertificatesFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnlinkCertificatesFromCustomerOK, error)
UnlinkCertificatesFromCustomer unlinks certificates from a customer

Remove one or more certificates to a customer.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### 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.

func (*Client) UpdateCustomer

func (a *Client) UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, error)
UpdateCustomer updates a single customer

Replace the customer object at this URL with a new record.

A customer object defines information about a person or business that purchases products from your company. When you create a tax transaction in AvaTax, you can use the `customerCode` from this record in your `CreateTransaction` API call. AvaTax will search for this `customerCode` value and identify any certificates linked to this `customer` object. If any certificate applies to the transaction, AvaTax will record the appropriate elements of the transaction as exempt and link it to the `certificate`.

Before you can use any exemption certificates endpoints, you must set up your company for exemption certificate data storage. Companies that do not have this storage system set up will see `CertCaptureNotConfiguredError` when they call exemption certificate related APIs. To check if this is set up for a company, call `GetCertificateSetup`. To request setup of exemption certificate storage for this company, call `RequestCertificateSetup`.

### Security Policies

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

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	CreateCustomers(params *CreateCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateCustomersOK, error)

	DeleteCustomer(params *DeleteCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteCustomerOK, error)

	GetCustomer(params *GetCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetCustomerOK, error)

	LinkAttributesToCustomer(params *LinkAttributesToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkAttributesToCustomerOK, error)

	LinkCertificatesToCustomer(params *LinkCertificatesToCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkCertificatesToCustomerOK, error)

	LinkShipToCustomersToBillCustomer(params *LinkShipToCustomersToBillCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*LinkShipToCustomersToBillCustomerOK, error)

	ListAttributesForCustomer(params *ListAttributesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListAttributesForCustomerOK, error)

	ListCertificatesForCustomer(params *ListCertificatesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListCertificatesForCustomerOK, error)

	ListValidCertificatesForCustomer(params *ListValidCertificatesForCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListValidCertificatesForCustomerOK, error)

	QueryCustomers(params *QueryCustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryCustomersOK, error)

	UnlinkAttributesFromCustomer(params *UnlinkAttributesFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnlinkAttributesFromCustomerOK, error)

	UnlinkCertificatesFromCustomer(params *UnlinkCertificatesFromCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UnlinkCertificatesFromCustomerOK, error)

	UpdateCustomer(params *UpdateCustomerParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateCustomerOK, 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 customers API client.

type CreateCustomersBadRequest

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

Bad Request

func NewCreateCustomersBadRequest

func NewCreateCustomersBadRequest() *CreateCustomersBadRequest

NewCreateCustomersBadRequest creates a CreateCustomersBadRequest with default headers values

func (*CreateCustomersBadRequest) Error

func (o *CreateCustomersBadRequest) Error() string

type CreateCustomersNotFound

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

Not Found

func NewCreateCustomersNotFound

func NewCreateCustomersNotFound() *CreateCustomersNotFound

NewCreateCustomersNotFound creates a CreateCustomersNotFound with default headers values

func (*CreateCustomersNotFound) Error

func (o *CreateCustomersNotFound) Error() string

type CreateCustomersOK

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

Success

func NewCreateCustomersOK

func NewCreateCustomersOK() *CreateCustomersOK

NewCreateCustomersOK creates a CreateCustomersOK with default headers values

func (*CreateCustomersOK) Error

func (o *CreateCustomersOK) Error() string

func (*CreateCustomersOK) GetPayload

func (o *CreateCustomersOK) GetPayload() []*models.CustomerModel

type CreateCustomersParams

type CreateCustomersParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The list of customer objects to be created
	*/
	Body []*models.CustomerModel

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

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

CreateCustomersParams contains all the parameters to send to the API endpoint

for the create customers operation.

Typically these are written to a http.Request.

func NewCreateCustomersParams

func NewCreateCustomersParams() *CreateCustomersParams

NewCreateCustomersParams creates a new CreateCustomersParams 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 NewCreateCustomersParamsWithContext

func NewCreateCustomersParamsWithContext(ctx context.Context) *CreateCustomersParams

NewCreateCustomersParamsWithContext creates a new CreateCustomersParams object with the ability to set a context for a request.

func NewCreateCustomersParamsWithHTTPClient

func NewCreateCustomersParamsWithHTTPClient(client *http.Client) *CreateCustomersParams

NewCreateCustomersParamsWithHTTPClient creates a new CreateCustomersParams object with the ability to set a custom HTTPClient for a request.

func NewCreateCustomersParamsWithTimeout

func NewCreateCustomersParamsWithTimeout(timeout time.Duration) *CreateCustomersParams

NewCreateCustomersParamsWithTimeout creates a new CreateCustomersParams object with the ability to set a timeout on a request.

func (*CreateCustomersParams) SetBody

func (o *CreateCustomersParams) SetBody(body []*models.CustomerModel)

SetBody adds the body to the create customers params

func (*CreateCustomersParams) SetCompanyID

func (o *CreateCustomersParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the create customers params

func (*CreateCustomersParams) SetContext

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

SetContext adds the context to the create customers params

func (*CreateCustomersParams) SetDefaults

func (o *CreateCustomersParams) SetDefaults()

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

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

func (*CreateCustomersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the create customers params

func (*CreateCustomersParams) SetTimeout

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

SetTimeout adds the timeout to the create customers params

func (*CreateCustomersParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the create customers params

func (*CreateCustomersParams) WithBody

WithBody adds the body to the create customers params

func (*CreateCustomersParams) WithCompanyID

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

WithCompanyID adds the companyID to the create customers params

func (*CreateCustomersParams) WithContext

WithContext adds the context to the create customers params

func (*CreateCustomersParams) WithDefaults

func (o *CreateCustomersParams) WithDefaults() *CreateCustomersParams

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

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

func (*CreateCustomersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the create customers params

func (*CreateCustomersParams) WithTimeout

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

WithTimeout adds the timeout to the create customers params

func (*CreateCustomersParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the create customers params

func (*CreateCustomersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type CreateCustomersReader

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

CreateCustomersReader is a Reader for the CreateCustomers structure.

func (*CreateCustomersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type CreateCustomersUnauthorized

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

Unauthorized

func NewCreateCustomersUnauthorized

func NewCreateCustomersUnauthorized() *CreateCustomersUnauthorized

NewCreateCustomersUnauthorized creates a CreateCustomersUnauthorized with default headers values

func (*CreateCustomersUnauthorized) Error

type DeleteCustomerBadRequest

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

Bad Request

func NewDeleteCustomerBadRequest

func NewDeleteCustomerBadRequest() *DeleteCustomerBadRequest

NewDeleteCustomerBadRequest creates a DeleteCustomerBadRequest with default headers values

func (*DeleteCustomerBadRequest) Error

func (o *DeleteCustomerBadRequest) Error() string

type DeleteCustomerNotFound

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

Not Found

func NewDeleteCustomerNotFound

func NewDeleteCustomerNotFound() *DeleteCustomerNotFound

NewDeleteCustomerNotFound creates a DeleteCustomerNotFound with default headers values

func (*DeleteCustomerNotFound) Error

func (o *DeleteCustomerNotFound) Error() string

type DeleteCustomerOK

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

Success

func NewDeleteCustomerOK

func NewDeleteCustomerOK() *DeleteCustomerOK

NewDeleteCustomerOK creates a DeleteCustomerOK with default headers values

func (*DeleteCustomerOK) Error

func (o *DeleteCustomerOK) Error() string

func (*DeleteCustomerOK) GetPayload

func (o *DeleteCustomerOK) GetPayload() *models.CustomerModel

type DeleteCustomerParams

type DeleteCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

DeleteCustomerParams contains all the parameters to send to the API endpoint

for the delete customer operation.

Typically these are written to a http.Request.

func NewDeleteCustomerParams

func NewDeleteCustomerParams() *DeleteCustomerParams

NewDeleteCustomerParams creates a new DeleteCustomerParams 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 NewDeleteCustomerParamsWithContext

func NewDeleteCustomerParamsWithContext(ctx context.Context) *DeleteCustomerParams

NewDeleteCustomerParamsWithContext creates a new DeleteCustomerParams object with the ability to set a context for a request.

func NewDeleteCustomerParamsWithHTTPClient

func NewDeleteCustomerParamsWithHTTPClient(client *http.Client) *DeleteCustomerParams

NewDeleteCustomerParamsWithHTTPClient creates a new DeleteCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewDeleteCustomerParamsWithTimeout

func NewDeleteCustomerParamsWithTimeout(timeout time.Duration) *DeleteCustomerParams

NewDeleteCustomerParamsWithTimeout creates a new DeleteCustomerParams object with the ability to set a timeout on a request.

func (*DeleteCustomerParams) SetCompanyID

func (o *DeleteCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the delete customer params

func (*DeleteCustomerParams) SetContext

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

SetContext adds the context to the delete customer params

func (*DeleteCustomerParams) SetCustomerCode

func (o *DeleteCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the delete customer params

func (*DeleteCustomerParams) SetDefaults

func (o *DeleteCustomerParams) SetDefaults()

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

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

func (*DeleteCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the delete customer params

func (*DeleteCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the delete customer params

func (*DeleteCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the delete customer params

func (*DeleteCustomerParams) WithCompanyID

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

WithCompanyID adds the companyID to the delete customer params

func (*DeleteCustomerParams) WithContext

WithContext adds the context to the delete customer params

func (*DeleteCustomerParams) WithCustomerCode

func (o *DeleteCustomerParams) WithCustomerCode(customerCode string) *DeleteCustomerParams

WithCustomerCode adds the customerCode to the delete customer params

func (*DeleteCustomerParams) WithDefaults

func (o *DeleteCustomerParams) WithDefaults() *DeleteCustomerParams

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

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

func (*DeleteCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the delete customer params

func (*DeleteCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the delete customer params

func (*DeleteCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the delete customer params

func (*DeleteCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeleteCustomerReader

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

DeleteCustomerReader is a Reader for the DeleteCustomer structure.

func (*DeleteCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DeleteCustomerUnauthorized

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

Unauthorized

func NewDeleteCustomerUnauthorized

func NewDeleteCustomerUnauthorized() *DeleteCustomerUnauthorized

NewDeleteCustomerUnauthorized creates a DeleteCustomerUnauthorized with default headers values

func (*DeleteCustomerUnauthorized) Error

type GetCustomerBadRequest

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

Bad Request

func NewGetCustomerBadRequest

func NewGetCustomerBadRequest() *GetCustomerBadRequest

NewGetCustomerBadRequest creates a GetCustomerBadRequest with default headers values

func (*GetCustomerBadRequest) Error

func (o *GetCustomerBadRequest) Error() string

type GetCustomerNotFound

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

Not Found

func NewGetCustomerNotFound

func NewGetCustomerNotFound() *GetCustomerNotFound

NewGetCustomerNotFound creates a GetCustomerNotFound with default headers values

func (*GetCustomerNotFound) Error

func (o *GetCustomerNotFound) Error() string

type GetCustomerOK

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

Success

func NewGetCustomerOK

func NewGetCustomerOK() *GetCustomerOK

NewGetCustomerOK creates a GetCustomerOK with default headers values

func (*GetCustomerOK) Error

func (o *GetCustomerOK) Error() string

func (*GetCustomerOK) GetPayload

func (o *GetCustomerOK) GetPayload() *models.CustomerModel

type GetCustomerParams

type GetCustomerParams struct {

	/* DollarInclude.

	   Specify optional additional objects to include in this fetch request
	*/
	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

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

GetCustomerParams contains all the parameters to send to the API endpoint

for the get customer operation.

Typically these are written to a http.Request.

func NewGetCustomerParams

func NewGetCustomerParams() *GetCustomerParams

NewGetCustomerParams creates a new GetCustomerParams 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 NewGetCustomerParamsWithContext

func NewGetCustomerParamsWithContext(ctx context.Context) *GetCustomerParams

NewGetCustomerParamsWithContext creates a new GetCustomerParams object with the ability to set a context for a request.

func NewGetCustomerParamsWithHTTPClient

func NewGetCustomerParamsWithHTTPClient(client *http.Client) *GetCustomerParams

NewGetCustomerParamsWithHTTPClient creates a new GetCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewGetCustomerParamsWithTimeout

func NewGetCustomerParamsWithTimeout(timeout time.Duration) *GetCustomerParams

NewGetCustomerParamsWithTimeout creates a new GetCustomerParams object with the ability to set a timeout on a request.

func (*GetCustomerParams) SetCompanyID

func (o *GetCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the get customer params

func (*GetCustomerParams) SetContext

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

SetContext adds the context to the get customer params

func (*GetCustomerParams) SetCustomerCode

func (o *GetCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the get customer params

func (*GetCustomerParams) SetDefaults

func (o *GetCustomerParams) SetDefaults()

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

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

func (*GetCustomerParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the get customer params

func (*GetCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get customer params

func (*GetCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the get customer params

func (*GetCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the get customer params

func (*GetCustomerParams) WithCompanyID

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

WithCompanyID adds the companyID to the get customer params

func (*GetCustomerParams) WithContext

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

WithContext adds the context to the get customer params

func (*GetCustomerParams) WithCustomerCode

func (o *GetCustomerParams) WithCustomerCode(customerCode string) *GetCustomerParams

WithCustomerCode adds the customerCode to the get customer params

func (*GetCustomerParams) WithDefaults

func (o *GetCustomerParams) WithDefaults() *GetCustomerParams

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

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

func (*GetCustomerParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the get customer params

func (*GetCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the get customer params

func (*GetCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the get customer params

func (*GetCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the get customer params

func (*GetCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type GetCustomerReader

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

GetCustomerReader is a Reader for the GetCustomer structure.

func (*GetCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetCustomerUnauthorized

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

Unauthorized

func NewGetCustomerUnauthorized

func NewGetCustomerUnauthorized() *GetCustomerUnauthorized

NewGetCustomerUnauthorized creates a GetCustomerUnauthorized with default headers values

func (*GetCustomerUnauthorized) Error

func (o *GetCustomerUnauthorized) Error() string

type LinkAttributesToCustomerOK

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

Success

func NewLinkAttributesToCustomerOK

func NewLinkAttributesToCustomerOK() *LinkAttributesToCustomerOK

NewLinkAttributesToCustomerOK creates a LinkAttributesToCustomerOK with default headers values

func (*LinkAttributesToCustomerOK) Error

func (*LinkAttributesToCustomerOK) GetPayload

type LinkAttributesToCustomerParams

type LinkAttributesToCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The list of attributes to link to the customer.
	*/
	Body []*models.CustomerAttributeModel

	/* CompanyID.

	   The unique ID number of the company that recorded the provided customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing the current customer
	*/
	CustomerCode string

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

LinkAttributesToCustomerParams contains all the parameters to send to the API endpoint

for the link attributes to customer operation.

Typically these are written to a http.Request.

func NewLinkAttributesToCustomerParams

func NewLinkAttributesToCustomerParams() *LinkAttributesToCustomerParams

NewLinkAttributesToCustomerParams creates a new LinkAttributesToCustomerParams 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 NewLinkAttributesToCustomerParamsWithContext

func NewLinkAttributesToCustomerParamsWithContext(ctx context.Context) *LinkAttributesToCustomerParams

NewLinkAttributesToCustomerParamsWithContext creates a new LinkAttributesToCustomerParams object with the ability to set a context for a request.

func NewLinkAttributesToCustomerParamsWithHTTPClient

func NewLinkAttributesToCustomerParamsWithHTTPClient(client *http.Client) *LinkAttributesToCustomerParams

NewLinkAttributesToCustomerParamsWithHTTPClient creates a new LinkAttributesToCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewLinkAttributesToCustomerParamsWithTimeout

func NewLinkAttributesToCustomerParamsWithTimeout(timeout time.Duration) *LinkAttributesToCustomerParams

NewLinkAttributesToCustomerParamsWithTimeout creates a new LinkAttributesToCustomerParams object with the ability to set a timeout on a request.

func (*LinkAttributesToCustomerParams) SetBody

SetBody adds the body to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetCompanyID

func (o *LinkAttributesToCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetContext

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

SetContext adds the context to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetCustomerCode

func (o *LinkAttributesToCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetDefaults

func (o *LinkAttributesToCustomerParams) SetDefaults()

SetDefaults hydrates default values in the link attributes to customer params (not the query body).

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

func (*LinkAttributesToCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the link attributes to customer params

func (*LinkAttributesToCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithBody

WithBody adds the body to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithContext

WithContext adds the context to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithCustomerCode

func (o *LinkAttributesToCustomerParams) WithCustomerCode(customerCode string) *LinkAttributesToCustomerParams

WithCustomerCode adds the customerCode to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithDefaults

WithDefaults hydrates default values in the link attributes to customer params (not the query body).

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

func (*LinkAttributesToCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithTimeout

WithTimeout adds the timeout to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the link attributes to customer params

func (*LinkAttributesToCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LinkAttributesToCustomerReader

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

LinkAttributesToCustomerReader is a Reader for the LinkAttributesToCustomer structure.

func (*LinkAttributesToCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LinkCertificatesToCustomerBadRequest

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

Bad Request

func NewLinkCertificatesToCustomerBadRequest

func NewLinkCertificatesToCustomerBadRequest() *LinkCertificatesToCustomerBadRequest

NewLinkCertificatesToCustomerBadRequest creates a LinkCertificatesToCustomerBadRequest with default headers values

func (*LinkCertificatesToCustomerBadRequest) Error

type LinkCertificatesToCustomerNotFound

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

Not Found

func NewLinkCertificatesToCustomerNotFound

func NewLinkCertificatesToCustomerNotFound() *LinkCertificatesToCustomerNotFound

NewLinkCertificatesToCustomerNotFound creates a LinkCertificatesToCustomerNotFound with default headers values

func (*LinkCertificatesToCustomerNotFound) Error

type LinkCertificatesToCustomerOK

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

Success

func NewLinkCertificatesToCustomerOK

func NewLinkCertificatesToCustomerOK() *LinkCertificatesToCustomerOK

NewLinkCertificatesToCustomerOK creates a LinkCertificatesToCustomerOK with default headers values

func (*LinkCertificatesToCustomerOK) Error

func (*LinkCertificatesToCustomerOK) GetPayload

type LinkCertificatesToCustomerParams

type LinkCertificatesToCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The list of certificates to link to this customer
	*/
	Body *models.LinkCertificatesModel

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

LinkCertificatesToCustomerParams contains all the parameters to send to the API endpoint

for the link certificates to customer operation.

Typically these are written to a http.Request.

func NewLinkCertificatesToCustomerParams

func NewLinkCertificatesToCustomerParams() *LinkCertificatesToCustomerParams

NewLinkCertificatesToCustomerParams creates a new LinkCertificatesToCustomerParams 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 NewLinkCertificatesToCustomerParamsWithContext

func NewLinkCertificatesToCustomerParamsWithContext(ctx context.Context) *LinkCertificatesToCustomerParams

NewLinkCertificatesToCustomerParamsWithContext creates a new LinkCertificatesToCustomerParams object with the ability to set a context for a request.

func NewLinkCertificatesToCustomerParamsWithHTTPClient

func NewLinkCertificatesToCustomerParamsWithHTTPClient(client *http.Client) *LinkCertificatesToCustomerParams

NewLinkCertificatesToCustomerParamsWithHTTPClient creates a new LinkCertificatesToCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewLinkCertificatesToCustomerParamsWithTimeout

func NewLinkCertificatesToCustomerParamsWithTimeout(timeout time.Duration) *LinkCertificatesToCustomerParams

NewLinkCertificatesToCustomerParamsWithTimeout creates a new LinkCertificatesToCustomerParams object with the ability to set a timeout on a request.

func (*LinkCertificatesToCustomerParams) SetBody

SetBody adds the body to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetCompanyID

func (o *LinkCertificatesToCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetContext

SetContext adds the context to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetCustomerCode

func (o *LinkCertificatesToCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetDefaults

func (o *LinkCertificatesToCustomerParams) SetDefaults()

SetDefaults hydrates default values in the link certificates to customer params (not the query body).

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

func (*LinkCertificatesToCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithBody

WithBody adds the body to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithContext

WithContext adds the context to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithCustomerCode

WithCustomerCode adds the customerCode to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithDefaults

WithDefaults hydrates default values in the link certificates to customer params (not the query body).

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

func (*LinkCertificatesToCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithTimeout

WithTimeout adds the timeout to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the link certificates to customer params

func (*LinkCertificatesToCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LinkCertificatesToCustomerReader

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

LinkCertificatesToCustomerReader is a Reader for the LinkCertificatesToCustomer structure.

func (*LinkCertificatesToCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LinkCertificatesToCustomerUnauthorized

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

Unauthorized

func NewLinkCertificatesToCustomerUnauthorized

func NewLinkCertificatesToCustomerUnauthorized() *LinkCertificatesToCustomerUnauthorized

NewLinkCertificatesToCustomerUnauthorized creates a LinkCertificatesToCustomerUnauthorized with default headers values

func (*LinkCertificatesToCustomerUnauthorized) Error

type LinkShipToCustomersToBillCustomerBadRequest

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

Bad Request

func NewLinkShipToCustomersToBillCustomerBadRequest

func NewLinkShipToCustomersToBillCustomerBadRequest() *LinkShipToCustomersToBillCustomerBadRequest

NewLinkShipToCustomersToBillCustomerBadRequest creates a LinkShipToCustomersToBillCustomerBadRequest with default headers values

func (*LinkShipToCustomersToBillCustomerBadRequest) Error

type LinkShipToCustomersToBillCustomerNotFound

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

Not Found

func NewLinkShipToCustomersToBillCustomerNotFound

func NewLinkShipToCustomersToBillCustomerNotFound() *LinkShipToCustomersToBillCustomerNotFound

NewLinkShipToCustomersToBillCustomerNotFound creates a LinkShipToCustomersToBillCustomerNotFound with default headers values

func (*LinkShipToCustomersToBillCustomerNotFound) Error

type LinkShipToCustomersToBillCustomerOK

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

Success

func NewLinkShipToCustomersToBillCustomerOK

func NewLinkShipToCustomersToBillCustomerOK() *LinkShipToCustomersToBillCustomerOK

NewLinkShipToCustomersToBillCustomerOK creates a LinkShipToCustomersToBillCustomerOK with default headers values

func (*LinkShipToCustomersToBillCustomerOK) Error

func (*LinkShipToCustomersToBillCustomerOK) GetPayload

type LinkShipToCustomersToBillCustomerParams

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

	   A list of information about ship-to customers to link to this bill-to customer.
	*/
	Body *models.LinkCustomersModel

	/* Code.

	   The code of the bill-to customer to link.
	*/
	Code string

	/* CompanyID.

	   The unique ID number of the company defining customers.

	   Format: int32
	*/
	CompanyID int32

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

LinkShipToCustomersToBillCustomerParams contains all the parameters to send to the API endpoint

for the link ship to customers to bill customer operation.

Typically these are written to a http.Request.

func NewLinkShipToCustomersToBillCustomerParams

func NewLinkShipToCustomersToBillCustomerParams() *LinkShipToCustomersToBillCustomerParams

NewLinkShipToCustomersToBillCustomerParams creates a new LinkShipToCustomersToBillCustomerParams 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 NewLinkShipToCustomersToBillCustomerParamsWithContext

func NewLinkShipToCustomersToBillCustomerParamsWithContext(ctx context.Context) *LinkShipToCustomersToBillCustomerParams

NewLinkShipToCustomersToBillCustomerParamsWithContext creates a new LinkShipToCustomersToBillCustomerParams object with the ability to set a context for a request.

func NewLinkShipToCustomersToBillCustomerParamsWithHTTPClient

func NewLinkShipToCustomersToBillCustomerParamsWithHTTPClient(client *http.Client) *LinkShipToCustomersToBillCustomerParams

NewLinkShipToCustomersToBillCustomerParamsWithHTTPClient creates a new LinkShipToCustomersToBillCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewLinkShipToCustomersToBillCustomerParamsWithTimeout

func NewLinkShipToCustomersToBillCustomerParamsWithTimeout(timeout time.Duration) *LinkShipToCustomersToBillCustomerParams

NewLinkShipToCustomersToBillCustomerParamsWithTimeout creates a new LinkShipToCustomersToBillCustomerParams object with the ability to set a timeout on a request.

func (*LinkShipToCustomersToBillCustomerParams) SetBody

SetBody adds the body to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetCode

SetCode adds the code to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetCompanyID

func (o *LinkShipToCustomersToBillCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetContext

SetContext adds the context to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetDefaults

func (o *LinkShipToCustomersToBillCustomerParams) SetDefaults()

SetDefaults hydrates default values in the link ship to customers to bill customer params (not the query body).

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

func (*LinkShipToCustomersToBillCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithBody

WithBody adds the body to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithCode

WithCode adds the code to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithContext

WithContext adds the context to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithDefaults

WithDefaults hydrates default values in the link ship to customers to bill customer params (not the query body).

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

func (*LinkShipToCustomersToBillCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithTimeout

WithTimeout adds the timeout to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WithXAvalaraClient

WithXAvalaraClient adds the xAvalaraClient to the link ship to customers to bill customer params

func (*LinkShipToCustomersToBillCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type LinkShipToCustomersToBillCustomerReader

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

LinkShipToCustomersToBillCustomerReader is a Reader for the LinkShipToCustomersToBillCustomer structure.

func (*LinkShipToCustomersToBillCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type LinkShipToCustomersToBillCustomerUnauthorized

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

Unauthorized

func NewLinkShipToCustomersToBillCustomerUnauthorized

func NewLinkShipToCustomersToBillCustomerUnauthorized() *LinkShipToCustomersToBillCustomerUnauthorized

NewLinkShipToCustomersToBillCustomerUnauthorized creates a LinkShipToCustomersToBillCustomerUnauthorized with default headers values

func (*LinkShipToCustomersToBillCustomerUnauthorized) Error

type ListAttributesForCustomerOK

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

Success

func NewListAttributesForCustomerOK

func NewListAttributesForCustomerOK() *ListAttributesForCustomerOK

NewListAttributesForCustomerOK creates a ListAttributesForCustomerOK with default headers values

func (*ListAttributesForCustomerOK) Error

func (*ListAttributesForCustomerOK) GetPayload

type ListAttributesForCustomerParams

type ListAttributesForCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* CompanyID.

	   The unique ID number of the company that recorded the provided customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing the current customer
	*/
	CustomerCode string

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

ListAttributesForCustomerParams contains all the parameters to send to the API endpoint

for the list attributes for customer operation.

Typically these are written to a http.Request.

func NewListAttributesForCustomerParams

func NewListAttributesForCustomerParams() *ListAttributesForCustomerParams

NewListAttributesForCustomerParams creates a new ListAttributesForCustomerParams 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 NewListAttributesForCustomerParamsWithContext

func NewListAttributesForCustomerParamsWithContext(ctx context.Context) *ListAttributesForCustomerParams

NewListAttributesForCustomerParamsWithContext creates a new ListAttributesForCustomerParams object with the ability to set a context for a request.

func NewListAttributesForCustomerParamsWithHTTPClient

func NewListAttributesForCustomerParamsWithHTTPClient(client *http.Client) *ListAttributesForCustomerParams

NewListAttributesForCustomerParamsWithHTTPClient creates a new ListAttributesForCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewListAttributesForCustomerParamsWithTimeout

func NewListAttributesForCustomerParamsWithTimeout(timeout time.Duration) *ListAttributesForCustomerParams

NewListAttributesForCustomerParamsWithTimeout creates a new ListAttributesForCustomerParams object with the ability to set a timeout on a request.

func (*ListAttributesForCustomerParams) SetCompanyID

func (o *ListAttributesForCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list attributes for customer params

func (*ListAttributesForCustomerParams) SetContext

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

SetContext adds the context to the list attributes for customer params

func (*ListAttributesForCustomerParams) SetCustomerCode

func (o *ListAttributesForCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the list attributes for customer params

func (*ListAttributesForCustomerParams) SetDefaults

func (o *ListAttributesForCustomerParams) SetDefaults()

SetDefaults hydrates default values in the list attributes for customer params (not the query body).

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

func (*ListAttributesForCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list attributes for customer params

func (*ListAttributesForCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the list attributes for customer params

func (*ListAttributesForCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithContext

WithContext adds the context to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithCustomerCode

func (o *ListAttributesForCustomerParams) WithCustomerCode(customerCode string) *ListAttributesForCustomerParams

WithCustomerCode adds the customerCode to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithDefaults

WithDefaults hydrates default values in the list attributes for customer params (not the query body).

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

func (*ListAttributesForCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithTimeout

WithTimeout adds the timeout to the list attributes for customer params

func (*ListAttributesForCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the list attributes for customer params

func (*ListAttributesForCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListAttributesForCustomerReader

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

ListAttributesForCustomerReader is a Reader for the ListAttributesForCustomer structure.

func (*ListAttributesForCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCertificatesForCustomerBadRequest

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

Bad Request

func NewListCertificatesForCustomerBadRequest

func NewListCertificatesForCustomerBadRequest() *ListCertificatesForCustomerBadRequest

NewListCertificatesForCustomerBadRequest creates a ListCertificatesForCustomerBadRequest with default headers values

func (*ListCertificatesForCustomerBadRequest) Error

type ListCertificatesForCustomerNotFound

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

Not Found

func NewListCertificatesForCustomerNotFound

func NewListCertificatesForCustomerNotFound() *ListCertificatesForCustomerNotFound

NewListCertificatesForCustomerNotFound creates a ListCertificatesForCustomerNotFound with default headers values

func (*ListCertificatesForCustomerNotFound) Error

type ListCertificatesForCustomerOK

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

Success

func NewListCertificatesForCustomerOK

func NewListCertificatesForCustomerOK() *ListCertificatesForCustomerOK

NewListCertificatesForCustomerOK creates a ListCertificatesForCustomerOK with default headers values

func (*ListCertificatesForCustomerOK) Error

func (*ListCertificatesForCustomerOK) GetPayload

type ListCertificatesForCustomerParams

type ListCertificatesForCustomerParams 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:* exemptionNumber, status, ecmsId, ecmsStatus, pdf, pages
	*/
	DollarFilter *string

	/* DollarInclude.

	   OPTIONAL: A comma separated list of special fetch options.  You can specify one or more of the following:

	           * customers - Retrieves the list of customers linked to the certificate.
	           * po_numbers - Retrieves all PO numbers tied to the certificate.
	           * attributes - Retrieves all attributes applied to the certificate.
	*/
	DollarInclude *string

	/* DollarOrderBy.

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

	/* DollarSkip.

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

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

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

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

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

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

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

ListCertificatesForCustomerParams contains all the parameters to send to the API endpoint

for the list certificates for customer operation.

Typically these are written to a http.Request.

func NewListCertificatesForCustomerParams

func NewListCertificatesForCustomerParams() *ListCertificatesForCustomerParams

NewListCertificatesForCustomerParams creates a new ListCertificatesForCustomerParams 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 NewListCertificatesForCustomerParamsWithContext

func NewListCertificatesForCustomerParamsWithContext(ctx context.Context) *ListCertificatesForCustomerParams

NewListCertificatesForCustomerParamsWithContext creates a new ListCertificatesForCustomerParams object with the ability to set a context for a request.

func NewListCertificatesForCustomerParamsWithHTTPClient

func NewListCertificatesForCustomerParamsWithHTTPClient(client *http.Client) *ListCertificatesForCustomerParams

NewListCertificatesForCustomerParamsWithHTTPClient creates a new ListCertificatesForCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewListCertificatesForCustomerParamsWithTimeout

func NewListCertificatesForCustomerParamsWithTimeout(timeout time.Duration) *ListCertificatesForCustomerParams

NewListCertificatesForCustomerParamsWithTimeout creates a new ListCertificatesForCustomerParams object with the ability to set a timeout on a request.

func (*ListCertificatesForCustomerParams) SetCompanyID

func (o *ListCertificatesForCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetContext

SetContext adds the context to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetCustomerCode

func (o *ListCertificatesForCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetDefaults

func (o *ListCertificatesForCustomerParams) SetDefaults()

SetDefaults hydrates default values in the list certificates for customer params (not the query body).

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

func (*ListCertificatesForCustomerParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the list certificates for customer params

func (*ListCertificatesForCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithContext

WithContext adds the context to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithCustomerCode

WithCustomerCode adds the customerCode to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithDefaults

WithDefaults hydrates default values in the list certificates for customer params (not the query body).

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

func (*ListCertificatesForCustomerParams) WithDollarFilter

WithDollarFilter adds the dollarFilter to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithDollarSkip

WithDollarSkip adds the dollarSkip to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithDollarTop

WithDollarTop adds the dollarTop to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithTimeout

WithTimeout adds the timeout to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the list certificates for customer params

func (*ListCertificatesForCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListCertificatesForCustomerReader

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

ListCertificatesForCustomerReader is a Reader for the ListCertificatesForCustomer structure.

func (*ListCertificatesForCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListCertificatesForCustomerUnauthorized

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

Unauthorized

func NewListCertificatesForCustomerUnauthorized

func NewListCertificatesForCustomerUnauthorized() *ListCertificatesForCustomerUnauthorized

NewListCertificatesForCustomerUnauthorized creates a ListCertificatesForCustomerUnauthorized with default headers values

func (*ListCertificatesForCustomerUnauthorized) Error

type ListValidCertificatesForCustomerBadRequest

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

Bad Request

func NewListValidCertificatesForCustomerBadRequest

func NewListValidCertificatesForCustomerBadRequest() *ListValidCertificatesForCustomerBadRequest

NewListValidCertificatesForCustomerBadRequest creates a ListValidCertificatesForCustomerBadRequest with default headers values

func (*ListValidCertificatesForCustomerBadRequest) Error

type ListValidCertificatesForCustomerNotFound

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

Not Found

func NewListValidCertificatesForCustomerNotFound

func NewListValidCertificatesForCustomerNotFound() *ListValidCertificatesForCustomerNotFound

NewListValidCertificatesForCustomerNotFound creates a ListValidCertificatesForCustomerNotFound with default headers values

func (*ListValidCertificatesForCustomerNotFound) Error

type ListValidCertificatesForCustomerOK

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

Success

func NewListValidCertificatesForCustomerOK

func NewListValidCertificatesForCustomerOK() *ListValidCertificatesForCustomerOK

NewListValidCertificatesForCustomerOK creates a ListValidCertificatesForCustomerOK with default headers values

func (*ListValidCertificatesForCustomerOK) Error

func (*ListValidCertificatesForCustomerOK) GetPayload

type ListValidCertificatesForCustomerParams

type ListValidCertificatesForCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* Country.

	   Search for certificates matching this country.  Uses the ISO 3166 two character country code.
	*/
	Country string

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

	/* Region.

	   Search for certificates matching this region.  Uses the ISO 3166 two or three character state, region, or province code.
	*/
	Region string

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

ListValidCertificatesForCustomerParams contains all the parameters to send to the API endpoint

for the list valid certificates for customer operation.

Typically these are written to a http.Request.

func NewListValidCertificatesForCustomerParams

func NewListValidCertificatesForCustomerParams() *ListValidCertificatesForCustomerParams

NewListValidCertificatesForCustomerParams creates a new ListValidCertificatesForCustomerParams 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 NewListValidCertificatesForCustomerParamsWithContext

func NewListValidCertificatesForCustomerParamsWithContext(ctx context.Context) *ListValidCertificatesForCustomerParams

NewListValidCertificatesForCustomerParamsWithContext creates a new ListValidCertificatesForCustomerParams object with the ability to set a context for a request.

func NewListValidCertificatesForCustomerParamsWithHTTPClient

func NewListValidCertificatesForCustomerParamsWithHTTPClient(client *http.Client) *ListValidCertificatesForCustomerParams

NewListValidCertificatesForCustomerParamsWithHTTPClient creates a new ListValidCertificatesForCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewListValidCertificatesForCustomerParamsWithTimeout

func NewListValidCertificatesForCustomerParamsWithTimeout(timeout time.Duration) *ListValidCertificatesForCustomerParams

NewListValidCertificatesForCustomerParamsWithTimeout creates a new ListValidCertificatesForCustomerParams object with the ability to set a timeout on a request.

func (*ListValidCertificatesForCustomerParams) SetCompanyID

func (o *ListValidCertificatesForCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetContext

SetContext adds the context to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetCountry

func (o *ListValidCertificatesForCustomerParams) SetCountry(country string)

SetCountry adds the country to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetCustomerCode

func (o *ListValidCertificatesForCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetDefaults

func (o *ListValidCertificatesForCustomerParams) SetDefaults()

SetDefaults hydrates default values in the list valid certificates for customer params (not the query body).

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

func (*ListValidCertificatesForCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetRegion

func (o *ListValidCertificatesForCustomerParams) SetRegion(region string)

SetRegion adds the region to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithContext

WithContext adds the context to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithCountry

WithCountry adds the country to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithCustomerCode

WithCustomerCode adds the customerCode to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithDefaults

WithDefaults hydrates default values in the list valid certificates for customer params (not the query body).

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

func (*ListValidCertificatesForCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithRegion

WithRegion adds the region to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithTimeout

WithTimeout adds the timeout to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WithXAvalaraClient

WithXAvalaraClient adds the xAvalaraClient to the list valid certificates for customer params

func (*ListValidCertificatesForCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type ListValidCertificatesForCustomerReader

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

ListValidCertificatesForCustomerReader is a Reader for the ListValidCertificatesForCustomer structure.

func (*ListValidCertificatesForCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ListValidCertificatesForCustomerUnauthorized

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

Unauthorized

func NewListValidCertificatesForCustomerUnauthorized

func NewListValidCertificatesForCustomerUnauthorized() *ListValidCertificatesForCustomerUnauthorized

NewListValidCertificatesForCustomerUnauthorized creates a ListValidCertificatesForCustomerUnauthorized with default headers values

func (*ListValidCertificatesForCustomerUnauthorized) Error

type QueryCustomersBadRequest

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

Bad Request

func NewQueryCustomersBadRequest

func NewQueryCustomersBadRequest() *QueryCustomersBadRequest

NewQueryCustomersBadRequest creates a QueryCustomersBadRequest with default headers values

func (*QueryCustomersBadRequest) Error

func (o *QueryCustomersBadRequest) Error() string

type QueryCustomersNotFound

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

Not Found

func NewQueryCustomersNotFound

func NewQueryCustomersNotFound() *QueryCustomersNotFound

NewQueryCustomersNotFound creates a QueryCustomersNotFound with default headers values

func (*QueryCustomersNotFound) Error

func (o *QueryCustomersNotFound) Error() string

type QueryCustomersOK

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

Success

func NewQueryCustomersOK

func NewQueryCustomersOK() *QueryCustomersOK

NewQueryCustomersOK creates a QueryCustomersOK with default headers values

func (*QueryCustomersOK) Error

func (o *QueryCustomersOK) Error() string

func (*QueryCustomersOK) GetPayload

type QueryCustomersParams

type QueryCustomersParams 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:* shipTos
	*/
	DollarFilter *string

	/* DollarInclude.

	   OPTIONAL - You can specify the value `certificates` to fetch information about certificates linked to the customer.
	*/
	DollarInclude *string

	/* DollarOrderBy.

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

	/* DollarSkip.

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

	   Format: int32
	*/
	DollarSkip *int32

	/* DollarTop.

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

	   Format: int32
	*/
	DollarTop *int32

	/* XAvalaraClient.

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

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

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

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

QueryCustomersParams contains all the parameters to send to the API endpoint

for the query customers operation.

Typically these are written to a http.Request.

func NewQueryCustomersParams

func NewQueryCustomersParams() *QueryCustomersParams

NewQueryCustomersParams creates a new QueryCustomersParams 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 NewQueryCustomersParamsWithContext

func NewQueryCustomersParamsWithContext(ctx context.Context) *QueryCustomersParams

NewQueryCustomersParamsWithContext creates a new QueryCustomersParams object with the ability to set a context for a request.

func NewQueryCustomersParamsWithHTTPClient

func NewQueryCustomersParamsWithHTTPClient(client *http.Client) *QueryCustomersParams

NewQueryCustomersParamsWithHTTPClient creates a new QueryCustomersParams object with the ability to set a custom HTTPClient for a request.

func NewQueryCustomersParamsWithTimeout

func NewQueryCustomersParamsWithTimeout(timeout time.Duration) *QueryCustomersParams

NewQueryCustomersParamsWithTimeout creates a new QueryCustomersParams object with the ability to set a timeout on a request.

func (*QueryCustomersParams) SetCompanyID

func (o *QueryCustomersParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the query customers params

func (*QueryCustomersParams) SetContext

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

SetContext adds the context to the query customers params

func (*QueryCustomersParams) SetDefaults

func (o *QueryCustomersParams) SetDefaults()

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

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

func (*QueryCustomersParams) SetDollarFilter

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

SetDollarFilter adds the dollarFilter to the query customers params

func (*QueryCustomersParams) SetDollarInclude

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

SetDollarInclude adds the dollarInclude to the query customers params

func (*QueryCustomersParams) SetDollarOrderBy

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

SetDollarOrderBy adds the dollarOrderBy to the query customers params

func (*QueryCustomersParams) SetDollarSkip

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

SetDollarSkip adds the dollarSkip to the query customers params

func (*QueryCustomersParams) SetDollarTop

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

SetDollarTop adds the dollarTop to the query customers params

func (*QueryCustomersParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the query customers params

func (*QueryCustomersParams) SetTimeout

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

SetTimeout adds the timeout to the query customers params

func (*QueryCustomersParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the query customers params

func (*QueryCustomersParams) WithCompanyID

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

WithCompanyID adds the companyID to the query customers params

func (*QueryCustomersParams) WithContext

WithContext adds the context to the query customers params

func (*QueryCustomersParams) WithDefaults

func (o *QueryCustomersParams) WithDefaults() *QueryCustomersParams

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

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

func (*QueryCustomersParams) WithDollarFilter

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

WithDollarFilter adds the dollarFilter to the query customers params

func (*QueryCustomersParams) WithDollarInclude

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

WithDollarInclude adds the dollarInclude to the query customers params

func (*QueryCustomersParams) WithDollarOrderBy

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

WithDollarOrderBy adds the dollarOrderBy to the query customers params

func (*QueryCustomersParams) WithDollarSkip

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

WithDollarSkip adds the dollarSkip to the query customers params

func (*QueryCustomersParams) WithDollarTop

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

WithDollarTop adds the dollarTop to the query customers params

func (*QueryCustomersParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the query customers params

func (*QueryCustomersParams) WithTimeout

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

WithTimeout adds the timeout to the query customers params

func (*QueryCustomersParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the query customers params

func (*QueryCustomersParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type QueryCustomersReader

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

QueryCustomersReader is a Reader for the QueryCustomers structure.

func (*QueryCustomersReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type QueryCustomersUnauthorized

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

Unauthorized

func NewQueryCustomersUnauthorized

func NewQueryCustomersUnauthorized() *QueryCustomersUnauthorized

NewQueryCustomersUnauthorized creates a QueryCustomersUnauthorized with default headers values

func (*QueryCustomersUnauthorized) Error

type UnlinkAttributesFromCustomerOK

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

Success

func NewUnlinkAttributesFromCustomerOK

func NewUnlinkAttributesFromCustomerOK() *UnlinkAttributesFromCustomerOK

NewUnlinkAttributesFromCustomerOK creates a UnlinkAttributesFromCustomerOK with default headers values

func (*UnlinkAttributesFromCustomerOK) Error

func (*UnlinkAttributesFromCustomerOK) GetPayload

type UnlinkAttributesFromCustomerParams

type UnlinkAttributesFromCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The list of attributes to unlink from the customer.
	*/
	Body []*models.CustomerAttributeModel

	/* CompanyID.

	   The unique ID number of the company that recorded the customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing the current customer
	*/
	CustomerCode string

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

UnlinkAttributesFromCustomerParams contains all the parameters to send to the API endpoint

for the unlink attributes from customer operation.

Typically these are written to a http.Request.

func NewUnlinkAttributesFromCustomerParams

func NewUnlinkAttributesFromCustomerParams() *UnlinkAttributesFromCustomerParams

NewUnlinkAttributesFromCustomerParams creates a new UnlinkAttributesFromCustomerParams 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 NewUnlinkAttributesFromCustomerParamsWithContext

func NewUnlinkAttributesFromCustomerParamsWithContext(ctx context.Context) *UnlinkAttributesFromCustomerParams

NewUnlinkAttributesFromCustomerParamsWithContext creates a new UnlinkAttributesFromCustomerParams object with the ability to set a context for a request.

func NewUnlinkAttributesFromCustomerParamsWithHTTPClient

func NewUnlinkAttributesFromCustomerParamsWithHTTPClient(client *http.Client) *UnlinkAttributesFromCustomerParams

NewUnlinkAttributesFromCustomerParamsWithHTTPClient creates a new UnlinkAttributesFromCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewUnlinkAttributesFromCustomerParamsWithTimeout

func NewUnlinkAttributesFromCustomerParamsWithTimeout(timeout time.Duration) *UnlinkAttributesFromCustomerParams

NewUnlinkAttributesFromCustomerParamsWithTimeout creates a new UnlinkAttributesFromCustomerParams object with the ability to set a timeout on a request.

func (*UnlinkAttributesFromCustomerParams) SetBody

SetBody adds the body to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetCompanyID

func (o *UnlinkAttributesFromCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetContext

SetContext adds the context to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetCustomerCode

func (o *UnlinkAttributesFromCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetDefaults

func (o *UnlinkAttributesFromCustomerParams) SetDefaults()

SetDefaults hydrates default values in the unlink attributes from customer params (not the query body).

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

func (*UnlinkAttributesFromCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithBody

WithBody adds the body to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithContext

WithContext adds the context to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithCustomerCode

WithCustomerCode adds the customerCode to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithDefaults

WithDefaults hydrates default values in the unlink attributes from customer params (not the query body).

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

func (*UnlinkAttributesFromCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithTimeout

WithTimeout adds the timeout to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the unlink attributes from customer params

func (*UnlinkAttributesFromCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnlinkAttributesFromCustomerReader

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

UnlinkAttributesFromCustomerReader is a Reader for the UnlinkAttributesFromCustomer structure.

func (*UnlinkAttributesFromCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnlinkCertificatesFromCustomerBadRequest

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

Bad Request

func NewUnlinkCertificatesFromCustomerBadRequest

func NewUnlinkCertificatesFromCustomerBadRequest() *UnlinkCertificatesFromCustomerBadRequest

NewUnlinkCertificatesFromCustomerBadRequest creates a UnlinkCertificatesFromCustomerBadRequest with default headers values

func (*UnlinkCertificatesFromCustomerBadRequest) Error

type UnlinkCertificatesFromCustomerNotFound

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

Not Found

func NewUnlinkCertificatesFromCustomerNotFound

func NewUnlinkCertificatesFromCustomerNotFound() *UnlinkCertificatesFromCustomerNotFound

NewUnlinkCertificatesFromCustomerNotFound creates a UnlinkCertificatesFromCustomerNotFound with default headers values

func (*UnlinkCertificatesFromCustomerNotFound) Error

type UnlinkCertificatesFromCustomerOK

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

Success

func NewUnlinkCertificatesFromCustomerOK

func NewUnlinkCertificatesFromCustomerOK() *UnlinkCertificatesFromCustomerOK

NewUnlinkCertificatesFromCustomerOK creates a UnlinkCertificatesFromCustomerOK with default headers values

func (*UnlinkCertificatesFromCustomerOK) Error

func (*UnlinkCertificatesFromCustomerOK) GetPayload

type UnlinkCertificatesFromCustomerParams

type UnlinkCertificatesFromCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The list of certificates to link to this customer
	*/
	Body *models.LinkCertificatesModel

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

UnlinkCertificatesFromCustomerParams contains all the parameters to send to the API endpoint

for the unlink certificates from customer operation.

Typically these are written to a http.Request.

func NewUnlinkCertificatesFromCustomerParams

func NewUnlinkCertificatesFromCustomerParams() *UnlinkCertificatesFromCustomerParams

NewUnlinkCertificatesFromCustomerParams creates a new UnlinkCertificatesFromCustomerParams 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 NewUnlinkCertificatesFromCustomerParamsWithContext

func NewUnlinkCertificatesFromCustomerParamsWithContext(ctx context.Context) *UnlinkCertificatesFromCustomerParams

NewUnlinkCertificatesFromCustomerParamsWithContext creates a new UnlinkCertificatesFromCustomerParams object with the ability to set a context for a request.

func NewUnlinkCertificatesFromCustomerParamsWithHTTPClient

func NewUnlinkCertificatesFromCustomerParamsWithHTTPClient(client *http.Client) *UnlinkCertificatesFromCustomerParams

NewUnlinkCertificatesFromCustomerParamsWithHTTPClient creates a new UnlinkCertificatesFromCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewUnlinkCertificatesFromCustomerParamsWithTimeout

func NewUnlinkCertificatesFromCustomerParamsWithTimeout(timeout time.Duration) *UnlinkCertificatesFromCustomerParams

NewUnlinkCertificatesFromCustomerParamsWithTimeout creates a new UnlinkCertificatesFromCustomerParams object with the ability to set a timeout on a request.

func (*UnlinkCertificatesFromCustomerParams) SetBody

SetBody adds the body to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetCompanyID

func (o *UnlinkCertificatesFromCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetContext

SetContext adds the context to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetCustomerCode

func (o *UnlinkCertificatesFromCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetDefaults

func (o *UnlinkCertificatesFromCustomerParams) SetDefaults()

SetDefaults hydrates default values in the unlink certificates from customer params (not the query body).

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

func (*UnlinkCertificatesFromCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithBody

WithBody adds the body to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithCompanyID

WithCompanyID adds the companyID to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithContext

WithContext adds the context to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithCustomerCode

WithCustomerCode adds the customerCode to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithDefaults

WithDefaults hydrates default values in the unlink certificates from customer params (not the query body).

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

func (*UnlinkCertificatesFromCustomerParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithTimeout

WithTimeout adds the timeout to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WithXAvalaraClient

WithXAvalaraClient adds the xAvalaraClient to the unlink certificates from customer params

func (*UnlinkCertificatesFromCustomerParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type UnlinkCertificatesFromCustomerReader

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

UnlinkCertificatesFromCustomerReader is a Reader for the UnlinkCertificatesFromCustomer structure.

func (*UnlinkCertificatesFromCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UnlinkCertificatesFromCustomerUnauthorized

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

Unauthorized

func NewUnlinkCertificatesFromCustomerUnauthorized

func NewUnlinkCertificatesFromCustomerUnauthorized() *UnlinkCertificatesFromCustomerUnauthorized

NewUnlinkCertificatesFromCustomerUnauthorized creates a UnlinkCertificatesFromCustomerUnauthorized with default headers values

func (*UnlinkCertificatesFromCustomerUnauthorized) Error

type UpdateCustomerBadRequest

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

Bad Request

func NewUpdateCustomerBadRequest

func NewUpdateCustomerBadRequest() *UpdateCustomerBadRequest

NewUpdateCustomerBadRequest creates a UpdateCustomerBadRequest with default headers values

func (*UpdateCustomerBadRequest) Error

func (o *UpdateCustomerBadRequest) Error() string

type UpdateCustomerNotFound

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

Not Found

func NewUpdateCustomerNotFound

func NewUpdateCustomerNotFound() *UpdateCustomerNotFound

NewUpdateCustomerNotFound creates a UpdateCustomerNotFound with default headers values

func (*UpdateCustomerNotFound) Error

func (o *UpdateCustomerNotFound) Error() string

type UpdateCustomerOK

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

Success

func NewUpdateCustomerOK

func NewUpdateCustomerOK() *UpdateCustomerOK

NewUpdateCustomerOK creates a UpdateCustomerOK with default headers values

func (*UpdateCustomerOK) Error

func (o *UpdateCustomerOK) Error() string

func (*UpdateCustomerOK) GetPayload

func (o *UpdateCustomerOK) GetPayload() *models.CustomerModel

type UpdateCustomerParams

type UpdateCustomerParams struct {

	/* XAvalaraClient.

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

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

	/* Body.

	   The new customer model that will replace the existing record at this URL
	*/
	Body *models.CustomerModel

	/* CompanyID.

	   The unique ID number of the company that recorded this customer

	   Format: int32
	*/
	CompanyID int32

	/* CustomerCode.

	   The unique code representing this customer
	*/
	CustomerCode string

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

UpdateCustomerParams contains all the parameters to send to the API endpoint

for the update customer operation.

Typically these are written to a http.Request.

func NewUpdateCustomerParams

func NewUpdateCustomerParams() *UpdateCustomerParams

NewUpdateCustomerParams creates a new UpdateCustomerParams 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 NewUpdateCustomerParamsWithContext

func NewUpdateCustomerParamsWithContext(ctx context.Context) *UpdateCustomerParams

NewUpdateCustomerParamsWithContext creates a new UpdateCustomerParams object with the ability to set a context for a request.

func NewUpdateCustomerParamsWithHTTPClient

func NewUpdateCustomerParamsWithHTTPClient(client *http.Client) *UpdateCustomerParams

NewUpdateCustomerParamsWithHTTPClient creates a new UpdateCustomerParams object with the ability to set a custom HTTPClient for a request.

func NewUpdateCustomerParamsWithTimeout

func NewUpdateCustomerParamsWithTimeout(timeout time.Duration) *UpdateCustomerParams

NewUpdateCustomerParamsWithTimeout creates a new UpdateCustomerParams object with the ability to set a timeout on a request.

func (*UpdateCustomerParams) SetBody

func (o *UpdateCustomerParams) SetBody(body *models.CustomerModel)

SetBody adds the body to the update customer params

func (*UpdateCustomerParams) SetCompanyID

func (o *UpdateCustomerParams) SetCompanyID(companyID int32)

SetCompanyID adds the companyId to the update customer params

func (*UpdateCustomerParams) SetContext

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

SetContext adds the context to the update customer params

func (*UpdateCustomerParams) SetCustomerCode

func (o *UpdateCustomerParams) SetCustomerCode(customerCode string)

SetCustomerCode adds the customerCode to the update customer params

func (*UpdateCustomerParams) SetDefaults

func (o *UpdateCustomerParams) SetDefaults()

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

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

func (*UpdateCustomerParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the update customer params

func (*UpdateCustomerParams) SetTimeout

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

SetTimeout adds the timeout to the update customer params

func (*UpdateCustomerParams) SetXAvalaraClient

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

SetXAvalaraClient adds the xAvalaraClient to the update customer params

func (*UpdateCustomerParams) WithBody

WithBody adds the body to the update customer params

func (*UpdateCustomerParams) WithCompanyID

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

WithCompanyID adds the companyID to the update customer params

func (*UpdateCustomerParams) WithContext

WithContext adds the context to the update customer params

func (*UpdateCustomerParams) WithCustomerCode

func (o *UpdateCustomerParams) WithCustomerCode(customerCode string) *UpdateCustomerParams

WithCustomerCode adds the customerCode to the update customer params

func (*UpdateCustomerParams) WithDefaults

func (o *UpdateCustomerParams) WithDefaults() *UpdateCustomerParams

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

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

func (*UpdateCustomerParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the update customer params

func (*UpdateCustomerParams) WithTimeout

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

WithTimeout adds the timeout to the update customer params

func (*UpdateCustomerParams) WithXAvalaraClient

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

WithXAvalaraClient adds the xAvalaraClient to the update customer params

func (*UpdateCustomerParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type UpdateCustomerReader

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

UpdateCustomerReader is a Reader for the UpdateCustomer structure.

func (*UpdateCustomerReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type UpdateCustomerUnauthorized

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

Unauthorized

func NewUpdateCustomerUnauthorized

func NewUpdateCustomerUnauthorized() *UpdateCustomerUnauthorized

NewUpdateCustomerUnauthorized creates a UpdateCustomerUnauthorized with default headers values

func (*UpdateCustomerUnauthorized) Error

Jump to

Keyboard shortcuts

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