free

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2022 License: MIT Imports: 10 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 free API

func (*Client) RequestFreeTrial

func (a *Client) RequestFreeTrial(params *RequestFreeTrialParams, opts ...ClientOption) (*RequestFreeTrialOK, error)
RequestFreeTrial fs r e e API request a free trial of ava tax

Call this API to obtain a free AvaTax account.

This API is free to use. No authentication credentials are required to call this API. You must read and accept [Avalara's terms and conditions](https://www1.avalara.com/us/en/legal/terms.html) for the account to be created.

If all conditions are met, this API will grant a free trial version of AvaTax. For a list of functionality available in the free trial and its limitations, please see the [AvaTax Developer Website Free Trial page](https://developer.avalara.com/avatax/signup/).

After your free trial concludes, you will still be able to use the [Free AvaTax API Suite](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Free/).

### Security Policies

* This API may be called without providing authentication credentials.

func (*Client) SetTransport

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

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	RequestFreeTrial(params *RequestFreeTrialParams, opts ...ClientOption) (*RequestFreeTrialOK, 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 free API client.

type RequestFreeTrialBadRequest

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

Bad Request

func NewRequestFreeTrialBadRequest

func NewRequestFreeTrialBadRequest() *RequestFreeTrialBadRequest

NewRequestFreeTrialBadRequest creates a RequestFreeTrialBadRequest with default headers values

func (*RequestFreeTrialBadRequest) Error

type RequestFreeTrialOK

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

Success

func NewRequestFreeTrialOK

func NewRequestFreeTrialOK() *RequestFreeTrialOK

NewRequestFreeTrialOK creates a RequestFreeTrialOK with default headers values

func (*RequestFreeTrialOK) Error

func (o *RequestFreeTrialOK) Error() string

func (*RequestFreeTrialOK) GetPayload

func (o *RequestFreeTrialOK) GetPayload() *models.NewAccountModel

type RequestFreeTrialParams

type RequestFreeTrialParams struct {

	/* Body.

	   Required information to provision a free trial account.
	*/
	Body *models.FreeTrialRequestModel

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

RequestFreeTrialParams contains all the parameters to send to the API endpoint

for the request free trial operation.

Typically these are written to a http.Request.

func NewRequestFreeTrialParams

func NewRequestFreeTrialParams() *RequestFreeTrialParams

NewRequestFreeTrialParams creates a new RequestFreeTrialParams 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 NewRequestFreeTrialParamsWithContext

func NewRequestFreeTrialParamsWithContext(ctx context.Context) *RequestFreeTrialParams

NewRequestFreeTrialParamsWithContext creates a new RequestFreeTrialParams object with the ability to set a context for a request.

func NewRequestFreeTrialParamsWithHTTPClient

func NewRequestFreeTrialParamsWithHTTPClient(client *http.Client) *RequestFreeTrialParams

NewRequestFreeTrialParamsWithHTTPClient creates a new RequestFreeTrialParams object with the ability to set a custom HTTPClient for a request.

func NewRequestFreeTrialParamsWithTimeout

func NewRequestFreeTrialParamsWithTimeout(timeout time.Duration) *RequestFreeTrialParams

NewRequestFreeTrialParamsWithTimeout creates a new RequestFreeTrialParams object with the ability to set a timeout on a request.

func (*RequestFreeTrialParams) SetBody

SetBody adds the body to the request free trial params

func (*RequestFreeTrialParams) SetContext

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

SetContext adds the context to the request free trial params

func (*RequestFreeTrialParams) SetDefaults

func (o *RequestFreeTrialParams) SetDefaults()

SetDefaults hydrates default values in the request free trial params (not the query body).

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

func (*RequestFreeTrialParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the request free trial params

func (*RequestFreeTrialParams) SetTimeout

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

SetTimeout adds the timeout to the request free trial params

func (*RequestFreeTrialParams) WithBody

WithBody adds the body to the request free trial params

func (*RequestFreeTrialParams) WithContext

WithContext adds the context to the request free trial params

func (*RequestFreeTrialParams) WithDefaults

WithDefaults hydrates default values in the request free trial params (not the query body).

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

func (*RequestFreeTrialParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the request free trial params

func (*RequestFreeTrialParams) WithTimeout

WithTimeout adds the timeout to the request free trial params

func (*RequestFreeTrialParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type RequestFreeTrialReader

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

RequestFreeTrialReader is a Reader for the RequestFreeTrial structure.

func (*RequestFreeTrialReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type RequestFreeTrialUnauthorized

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

Unauthorized

func NewRequestFreeTrialUnauthorized

func NewRequestFreeTrialUnauthorized() *RequestFreeTrialUnauthorized

NewRequestFreeTrialUnauthorized creates a RequestFreeTrialUnauthorized with default headers values

func (*RequestFreeTrialUnauthorized) Error

Jump to

Keyboard shortcuts

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