Documentation
¶
Index ¶
- type Client
- func (a *Client) GetSubscription(params *GetSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetSubscriptionOK, error)
- func (a *Client) ListSubscriptionsByAccount(params *ListSubscriptionsByAccountParams, ...) (*ListSubscriptionsByAccountOK, error)
- func (a *Client) QuerySubscriptions(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*QuerySubscriptionsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type GetSubscriptionBadRequest
- type GetSubscriptionNotFound
- type GetSubscriptionOK
- type GetSubscriptionParams
- func NewGetSubscriptionParams() *GetSubscriptionParams
- func NewGetSubscriptionParamsWithContext(ctx context.Context) *GetSubscriptionParams
- func NewGetSubscriptionParamsWithHTTPClient(client *http.Client) *GetSubscriptionParams
- func NewGetSubscriptionParamsWithTimeout(timeout time.Duration) *GetSubscriptionParams
- func (o *GetSubscriptionParams) SetAccountID(accountID int32)
- func (o *GetSubscriptionParams) SetContext(ctx context.Context)
- func (o *GetSubscriptionParams) SetDefaults()
- func (o *GetSubscriptionParams) SetHTTPClient(client *http.Client)
- func (o *GetSubscriptionParams) SetID(id int32)
- func (o *GetSubscriptionParams) SetTimeout(timeout time.Duration)
- func (o *GetSubscriptionParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *GetSubscriptionParams) WithAccountID(accountID int32) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithContext(ctx context.Context) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithDefaults() *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithHTTPClient(client *http.Client) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithID(id int32) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithTimeout(timeout time.Duration) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WithXAvalaraClient(xAvalaraClient *string) *GetSubscriptionParams
- func (o *GetSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetSubscriptionReader
- type GetSubscriptionUnauthorized
- type ListSubscriptionsByAccountBadRequest
- type ListSubscriptionsByAccountNotFound
- type ListSubscriptionsByAccountOK
- type ListSubscriptionsByAccountParams
- func NewListSubscriptionsByAccountParams() *ListSubscriptionsByAccountParams
- func NewListSubscriptionsByAccountParamsWithContext(ctx context.Context) *ListSubscriptionsByAccountParams
- func NewListSubscriptionsByAccountParamsWithHTTPClient(client *http.Client) *ListSubscriptionsByAccountParams
- func NewListSubscriptionsByAccountParamsWithTimeout(timeout time.Duration) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) SetAccountID(accountID int32)
- func (o *ListSubscriptionsByAccountParams) SetContext(ctx context.Context)
- func (o *ListSubscriptionsByAccountParams) SetDefaults()
- func (o *ListSubscriptionsByAccountParams) SetDollarFilter(dollarFilter *string)
- func (o *ListSubscriptionsByAccountParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *ListSubscriptionsByAccountParams) SetDollarSkip(dollarSkip *int32)
- func (o *ListSubscriptionsByAccountParams) SetDollarTop(dollarTop *int32)
- func (o *ListSubscriptionsByAccountParams) SetHTTPClient(client *http.Client)
- func (o *ListSubscriptionsByAccountParams) SetTimeout(timeout time.Duration)
- func (o *ListSubscriptionsByAccountParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *ListSubscriptionsByAccountParams) WithAccountID(accountID int32) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithContext(ctx context.Context) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithDefaults() *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithDollarFilter(dollarFilter *string) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithDollarOrderBy(dollarOrderBy *string) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithDollarSkip(dollarSkip *int32) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithDollarTop(dollarTop *int32) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithHTTPClient(client *http.Client) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithTimeout(timeout time.Duration) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WithXAvalaraClient(xAvalaraClient *string) *ListSubscriptionsByAccountParams
- func (o *ListSubscriptionsByAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSubscriptionsByAccountReader
- type ListSubscriptionsByAccountUnauthorized
- type QuerySubscriptionsBadRequest
- type QuerySubscriptionsOK
- type QuerySubscriptionsParams
- func NewQuerySubscriptionsParams() *QuerySubscriptionsParams
- func NewQuerySubscriptionsParamsWithContext(ctx context.Context) *QuerySubscriptionsParams
- func NewQuerySubscriptionsParamsWithHTTPClient(client *http.Client) *QuerySubscriptionsParams
- func NewQuerySubscriptionsParamsWithTimeout(timeout time.Duration) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) SetContext(ctx context.Context)
- func (o *QuerySubscriptionsParams) SetDefaults()
- func (o *QuerySubscriptionsParams) SetDollarFilter(dollarFilter *string)
- func (o *QuerySubscriptionsParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *QuerySubscriptionsParams) SetDollarSkip(dollarSkip *int32)
- func (o *QuerySubscriptionsParams) SetDollarTop(dollarTop *int32)
- func (o *QuerySubscriptionsParams) SetHTTPClient(client *http.Client)
- func (o *QuerySubscriptionsParams) SetTimeout(timeout time.Duration)
- func (o *QuerySubscriptionsParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *QuerySubscriptionsParams) WithContext(ctx context.Context) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithDefaults() *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithDollarFilter(dollarFilter *string) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithDollarOrderBy(dollarOrderBy *string) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithDollarSkip(dollarSkip *int32) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithDollarTop(dollarTop *int32) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithHTTPClient(client *http.Client) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithTimeout(timeout time.Duration) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WithXAvalaraClient(xAvalaraClient *string) *QuerySubscriptionsParams
- func (o *QuerySubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuerySubscriptionsReader
- type QuerySubscriptionsUnauthorized
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 subscriptions API
func (*Client) GetSubscription ¶
func (a *Client) GetSubscription(params *GetSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubscriptionOK, error)
GetSubscription retrieves a single subscription Get the subscription object identified by this URL.
A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
func (*Client) ListSubscriptionsByAccount ¶
func (a *Client) ListSubscriptionsByAccount(params *ListSubscriptionsByAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSubscriptionsByAccountOK, error)
ListSubscriptionsByAccount retrieves subscriptions for this account List all subscription objects attached to this account.
A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
func (*Client) QuerySubscriptions ¶
func (a *Client) QuerySubscriptions(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QuerySubscriptionsOK, error)
QuerySubscriptions retrieves all subscriptions Get multiple subscription objects across all accounts.
A 'subscription' indicates a licensed subscription to a named Avalara service. To request or remove subscriptions, please contact Avalara sales or your customer account manager.
Search for specific objects using the criteria in the `$filter` parameter; full documentation is available on [Filtering in REST](http://developer.avalara.com/avatax/filtering-in-rest/) . Paginate your results using the `$top`, `$skip`, and `$orderby` parameters.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, Compliance Root User, ComplianceAdmin, ComplianceUser, CSPAdmin, CSPTester, FirmAdmin, FirmUser, Registrar, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser, TreasuryAdmin, TreasuryUser.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { GetSubscription(params *GetSubscriptionParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetSubscriptionOK, error) ListSubscriptionsByAccount(params *ListSubscriptionsByAccountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListSubscriptionsByAccountOK, error) QuerySubscriptions(params *QuerySubscriptionsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QuerySubscriptionsOK, 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 subscriptions API client.
type GetSubscriptionBadRequest ¶
type GetSubscriptionBadRequest struct { }
GetSubscriptionBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetSubscriptionBadRequest ¶
func NewGetSubscriptionBadRequest() *GetSubscriptionBadRequest
NewGetSubscriptionBadRequest creates a GetSubscriptionBadRequest with default headers values
func (*GetSubscriptionBadRequest) Error ¶
func (o *GetSubscriptionBadRequest) Error() string
type GetSubscriptionNotFound ¶
type GetSubscriptionNotFound struct { }
GetSubscriptionNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetSubscriptionNotFound ¶
func NewGetSubscriptionNotFound() *GetSubscriptionNotFound
NewGetSubscriptionNotFound creates a GetSubscriptionNotFound with default headers values
func (*GetSubscriptionNotFound) Error ¶
func (o *GetSubscriptionNotFound) Error() string
type GetSubscriptionOK ¶
type GetSubscriptionOK struct {
Payload *models.SubscriptionModel
}
GetSubscriptionOK describes a response with status code 200, with default header values.
Success
func NewGetSubscriptionOK ¶
func NewGetSubscriptionOK() *GetSubscriptionOK
NewGetSubscriptionOK creates a GetSubscriptionOK with default headers values
func (*GetSubscriptionOK) Error ¶
func (o *GetSubscriptionOK) Error() string
func (*GetSubscriptionOK) GetPayload ¶
func (o *GetSubscriptionOK) GetPayload() *models.SubscriptionModel
type GetSubscriptionParams ¶
type GetSubscriptionParams struct { /* XAvalaraClient. Identifies the software you are using to call this API. For more information on the client header, see [Client Headers](https://developer.avalara.com/avatax/client-headers/) . Default: "Swagger UI; 21.12.0; Custom; 1.0" */ XAvalaraClient *string /* AccountID. The ID of the account that owns this subscription Format: int32 */ AccountID int32 /* ID. The primary key of this subscription Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetSubscriptionParams contains all the parameters to send to the API endpoint
for the get subscription operation. Typically these are written to a http.Request.
func NewGetSubscriptionParams ¶
func NewGetSubscriptionParams() *GetSubscriptionParams
NewGetSubscriptionParams creates a new GetSubscriptionParams 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 NewGetSubscriptionParamsWithContext ¶
func NewGetSubscriptionParamsWithContext(ctx context.Context) *GetSubscriptionParams
NewGetSubscriptionParamsWithContext creates a new GetSubscriptionParams object with the ability to set a context for a request.
func NewGetSubscriptionParamsWithHTTPClient ¶
func NewGetSubscriptionParamsWithHTTPClient(client *http.Client) *GetSubscriptionParams
NewGetSubscriptionParamsWithHTTPClient creates a new GetSubscriptionParams object with the ability to set a custom HTTPClient for a request.
func NewGetSubscriptionParamsWithTimeout ¶
func NewGetSubscriptionParamsWithTimeout(timeout time.Duration) *GetSubscriptionParams
NewGetSubscriptionParamsWithTimeout creates a new GetSubscriptionParams object with the ability to set a timeout on a request.
func (*GetSubscriptionParams) SetAccountID ¶
func (o *GetSubscriptionParams) SetAccountID(accountID int32)
SetAccountID adds the accountId to the get subscription params
func (*GetSubscriptionParams) SetContext ¶
func (o *GetSubscriptionParams) SetContext(ctx context.Context)
SetContext adds the context to the get subscription params
func (*GetSubscriptionParams) SetDefaults ¶
func (o *GetSubscriptionParams) SetDefaults()
SetDefaults hydrates default values in the get subscription params (not the query body).
All values with no default are reset to their zero value.
func (*GetSubscriptionParams) SetHTTPClient ¶
func (o *GetSubscriptionParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get subscription params
func (*GetSubscriptionParams) SetID ¶
func (o *GetSubscriptionParams) SetID(id int32)
SetID adds the id to the get subscription params
func (*GetSubscriptionParams) SetTimeout ¶
func (o *GetSubscriptionParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get subscription params
func (*GetSubscriptionParams) SetXAvalaraClient ¶
func (o *GetSubscriptionParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the get subscription params
func (*GetSubscriptionParams) WithAccountID ¶
func (o *GetSubscriptionParams) WithAccountID(accountID int32) *GetSubscriptionParams
WithAccountID adds the accountID to the get subscription params
func (*GetSubscriptionParams) WithContext ¶
func (o *GetSubscriptionParams) WithContext(ctx context.Context) *GetSubscriptionParams
WithContext adds the context to the get subscription params
func (*GetSubscriptionParams) WithDefaults ¶
func (o *GetSubscriptionParams) WithDefaults() *GetSubscriptionParams
WithDefaults hydrates default values in the get subscription params (not the query body).
All values with no default are reset to their zero value.
func (*GetSubscriptionParams) WithHTTPClient ¶
func (o *GetSubscriptionParams) WithHTTPClient(client *http.Client) *GetSubscriptionParams
WithHTTPClient adds the HTTPClient to the get subscription params
func (*GetSubscriptionParams) WithID ¶
func (o *GetSubscriptionParams) WithID(id int32) *GetSubscriptionParams
WithID adds the id to the get subscription params
func (*GetSubscriptionParams) WithTimeout ¶
func (o *GetSubscriptionParams) WithTimeout(timeout time.Duration) *GetSubscriptionParams
WithTimeout adds the timeout to the get subscription params
func (*GetSubscriptionParams) WithXAvalaraClient ¶
func (o *GetSubscriptionParams) WithXAvalaraClient(xAvalaraClient *string) *GetSubscriptionParams
WithXAvalaraClient adds the xAvalaraClient to the get subscription params
func (*GetSubscriptionParams) WriteToRequest ¶
func (o *GetSubscriptionParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetSubscriptionReader ¶
type GetSubscriptionReader struct {
// contains filtered or unexported fields
}
GetSubscriptionReader is a Reader for the GetSubscription structure.
func (*GetSubscriptionReader) ReadResponse ¶
func (o *GetSubscriptionReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetSubscriptionUnauthorized ¶
type GetSubscriptionUnauthorized struct { }
GetSubscriptionUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetSubscriptionUnauthorized ¶
func NewGetSubscriptionUnauthorized() *GetSubscriptionUnauthorized
NewGetSubscriptionUnauthorized creates a GetSubscriptionUnauthorized with default headers values
func (*GetSubscriptionUnauthorized) Error ¶
func (o *GetSubscriptionUnauthorized) Error() string
type ListSubscriptionsByAccountBadRequest ¶
type ListSubscriptionsByAccountBadRequest struct { }
ListSubscriptionsByAccountBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewListSubscriptionsByAccountBadRequest ¶
func NewListSubscriptionsByAccountBadRequest() *ListSubscriptionsByAccountBadRequest
NewListSubscriptionsByAccountBadRequest creates a ListSubscriptionsByAccountBadRequest with default headers values
func (*ListSubscriptionsByAccountBadRequest) Error ¶
func (o *ListSubscriptionsByAccountBadRequest) Error() string
type ListSubscriptionsByAccountNotFound ¶
type ListSubscriptionsByAccountNotFound struct { }
ListSubscriptionsByAccountNotFound describes a response with status code 404, with default header values.
Not Found
func NewListSubscriptionsByAccountNotFound ¶
func NewListSubscriptionsByAccountNotFound() *ListSubscriptionsByAccountNotFound
NewListSubscriptionsByAccountNotFound creates a ListSubscriptionsByAccountNotFound with default headers values
func (*ListSubscriptionsByAccountNotFound) Error ¶
func (o *ListSubscriptionsByAccountNotFound) Error() string
type ListSubscriptionsByAccountOK ¶
type ListSubscriptionsByAccountOK struct {
Payload *models.SubscriptionModelFetchResult
}
ListSubscriptionsByAccountOK describes a response with status code 200, with default header values.
Success
func NewListSubscriptionsByAccountOK ¶
func NewListSubscriptionsByAccountOK() *ListSubscriptionsByAccountOK
NewListSubscriptionsByAccountOK creates a ListSubscriptionsByAccountOK with default headers values
func (*ListSubscriptionsByAccountOK) Error ¶
func (o *ListSubscriptionsByAccountOK) Error() string
func (*ListSubscriptionsByAccountOK) GetPayload ¶
func (o *ListSubscriptionsByAccountOK) GetPayload() *models.SubscriptionModelFetchResult
type ListSubscriptionsByAccountParams ¶
type ListSubscriptionsByAccountParams 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:* subscriptionDescription */ DollarFilter *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 /* AccountID. The ID of the account that owns these subscriptions Format: int32 */ AccountID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSubscriptionsByAccountParams contains all the parameters to send to the API endpoint
for the list subscriptions by account operation. Typically these are written to a http.Request.
func NewListSubscriptionsByAccountParams ¶
func NewListSubscriptionsByAccountParams() *ListSubscriptionsByAccountParams
NewListSubscriptionsByAccountParams creates a new ListSubscriptionsByAccountParams 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 NewListSubscriptionsByAccountParamsWithContext ¶
func NewListSubscriptionsByAccountParamsWithContext(ctx context.Context) *ListSubscriptionsByAccountParams
NewListSubscriptionsByAccountParamsWithContext creates a new ListSubscriptionsByAccountParams object with the ability to set a context for a request.
func NewListSubscriptionsByAccountParamsWithHTTPClient ¶
func NewListSubscriptionsByAccountParamsWithHTTPClient(client *http.Client) *ListSubscriptionsByAccountParams
NewListSubscriptionsByAccountParamsWithHTTPClient creates a new ListSubscriptionsByAccountParams object with the ability to set a custom HTTPClient for a request.
func NewListSubscriptionsByAccountParamsWithTimeout ¶
func NewListSubscriptionsByAccountParamsWithTimeout(timeout time.Duration) *ListSubscriptionsByAccountParams
NewListSubscriptionsByAccountParamsWithTimeout creates a new ListSubscriptionsByAccountParams object with the ability to set a timeout on a request.
func (*ListSubscriptionsByAccountParams) SetAccountID ¶
func (o *ListSubscriptionsByAccountParams) SetAccountID(accountID int32)
SetAccountID adds the accountId to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetContext ¶
func (o *ListSubscriptionsByAccountParams) SetContext(ctx context.Context)
SetContext adds the context to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetDefaults ¶
func (o *ListSubscriptionsByAccountParams) SetDefaults()
SetDefaults hydrates default values in the list subscriptions by account params (not the query body).
All values with no default are reset to their zero value.
func (*ListSubscriptionsByAccountParams) SetDollarFilter ¶
func (o *ListSubscriptionsByAccountParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetDollarOrderBy ¶
func (o *ListSubscriptionsByAccountParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetDollarSkip ¶
func (o *ListSubscriptionsByAccountParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetDollarTop ¶
func (o *ListSubscriptionsByAccountParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetHTTPClient ¶
func (o *ListSubscriptionsByAccountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetTimeout ¶
func (o *ListSubscriptionsByAccountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) SetXAvalaraClient ¶
func (o *ListSubscriptionsByAccountParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithAccountID ¶
func (o *ListSubscriptionsByAccountParams) WithAccountID(accountID int32) *ListSubscriptionsByAccountParams
WithAccountID adds the accountID to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithContext ¶
func (o *ListSubscriptionsByAccountParams) WithContext(ctx context.Context) *ListSubscriptionsByAccountParams
WithContext adds the context to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithDefaults ¶
func (o *ListSubscriptionsByAccountParams) WithDefaults() *ListSubscriptionsByAccountParams
WithDefaults hydrates default values in the list subscriptions by account params (not the query body).
All values with no default are reset to their zero value.
func (*ListSubscriptionsByAccountParams) WithDollarFilter ¶
func (o *ListSubscriptionsByAccountParams) WithDollarFilter(dollarFilter *string) *ListSubscriptionsByAccountParams
WithDollarFilter adds the dollarFilter to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithDollarOrderBy ¶
func (o *ListSubscriptionsByAccountParams) WithDollarOrderBy(dollarOrderBy *string) *ListSubscriptionsByAccountParams
WithDollarOrderBy adds the dollarOrderBy to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithDollarSkip ¶
func (o *ListSubscriptionsByAccountParams) WithDollarSkip(dollarSkip *int32) *ListSubscriptionsByAccountParams
WithDollarSkip adds the dollarSkip to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithDollarTop ¶
func (o *ListSubscriptionsByAccountParams) WithDollarTop(dollarTop *int32) *ListSubscriptionsByAccountParams
WithDollarTop adds the dollarTop to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithHTTPClient ¶
func (o *ListSubscriptionsByAccountParams) WithHTTPClient(client *http.Client) *ListSubscriptionsByAccountParams
WithHTTPClient adds the HTTPClient to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithTimeout ¶
func (o *ListSubscriptionsByAccountParams) WithTimeout(timeout time.Duration) *ListSubscriptionsByAccountParams
WithTimeout adds the timeout to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WithXAvalaraClient ¶
func (o *ListSubscriptionsByAccountParams) WithXAvalaraClient(xAvalaraClient *string) *ListSubscriptionsByAccountParams
WithXAvalaraClient adds the xAvalaraClient to the list subscriptions by account params
func (*ListSubscriptionsByAccountParams) WriteToRequest ¶
func (o *ListSubscriptionsByAccountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSubscriptionsByAccountReader ¶
type ListSubscriptionsByAccountReader struct {
// contains filtered or unexported fields
}
ListSubscriptionsByAccountReader is a Reader for the ListSubscriptionsByAccount structure.
func (*ListSubscriptionsByAccountReader) ReadResponse ¶
func (o *ListSubscriptionsByAccountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSubscriptionsByAccountUnauthorized ¶
type ListSubscriptionsByAccountUnauthorized struct { }
ListSubscriptionsByAccountUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListSubscriptionsByAccountUnauthorized ¶
func NewListSubscriptionsByAccountUnauthorized() *ListSubscriptionsByAccountUnauthorized
NewListSubscriptionsByAccountUnauthorized creates a ListSubscriptionsByAccountUnauthorized with default headers values
func (*ListSubscriptionsByAccountUnauthorized) Error ¶
func (o *ListSubscriptionsByAccountUnauthorized) Error() string
type QuerySubscriptionsBadRequest ¶
type QuerySubscriptionsBadRequest struct { }
QuerySubscriptionsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewQuerySubscriptionsBadRequest ¶
func NewQuerySubscriptionsBadRequest() *QuerySubscriptionsBadRequest
NewQuerySubscriptionsBadRequest creates a QuerySubscriptionsBadRequest with default headers values
func (*QuerySubscriptionsBadRequest) Error ¶
func (o *QuerySubscriptionsBadRequest) Error() string
type QuerySubscriptionsOK ¶
type QuerySubscriptionsOK struct {
Payload *models.SubscriptionModelFetchResult
}
QuerySubscriptionsOK describes a response with status code 200, with default header values.
Success
func NewQuerySubscriptionsOK ¶
func NewQuerySubscriptionsOK() *QuerySubscriptionsOK
NewQuerySubscriptionsOK creates a QuerySubscriptionsOK with default headers values
func (*QuerySubscriptionsOK) Error ¶
func (o *QuerySubscriptionsOK) Error() string
func (*QuerySubscriptionsOK) GetPayload ¶
func (o *QuerySubscriptionsOK) GetPayload() *models.SubscriptionModelFetchResult
type QuerySubscriptionsParams ¶
type QuerySubscriptionsParams 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:* subscriptionDescription */ DollarFilter *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 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuerySubscriptionsParams contains all the parameters to send to the API endpoint
for the query subscriptions operation. Typically these are written to a http.Request.
func NewQuerySubscriptionsParams ¶
func NewQuerySubscriptionsParams() *QuerySubscriptionsParams
NewQuerySubscriptionsParams creates a new QuerySubscriptionsParams 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 NewQuerySubscriptionsParamsWithContext ¶
func NewQuerySubscriptionsParamsWithContext(ctx context.Context) *QuerySubscriptionsParams
NewQuerySubscriptionsParamsWithContext creates a new QuerySubscriptionsParams object with the ability to set a context for a request.
func NewQuerySubscriptionsParamsWithHTTPClient ¶
func NewQuerySubscriptionsParamsWithHTTPClient(client *http.Client) *QuerySubscriptionsParams
NewQuerySubscriptionsParamsWithHTTPClient creates a new QuerySubscriptionsParams object with the ability to set a custom HTTPClient for a request.
func NewQuerySubscriptionsParamsWithTimeout ¶
func NewQuerySubscriptionsParamsWithTimeout(timeout time.Duration) *QuerySubscriptionsParams
NewQuerySubscriptionsParamsWithTimeout creates a new QuerySubscriptionsParams object with the ability to set a timeout on a request.
func (*QuerySubscriptionsParams) SetContext ¶
func (o *QuerySubscriptionsParams) SetContext(ctx context.Context)
SetContext adds the context to the query subscriptions params
func (*QuerySubscriptionsParams) SetDefaults ¶
func (o *QuerySubscriptionsParams) SetDefaults()
SetDefaults hydrates default values in the query subscriptions params (not the query body).
All values with no default are reset to their zero value.
func (*QuerySubscriptionsParams) SetDollarFilter ¶
func (o *QuerySubscriptionsParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the query subscriptions params
func (*QuerySubscriptionsParams) SetDollarOrderBy ¶
func (o *QuerySubscriptionsParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the query subscriptions params
func (*QuerySubscriptionsParams) SetDollarSkip ¶
func (o *QuerySubscriptionsParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the query subscriptions params
func (*QuerySubscriptionsParams) SetDollarTop ¶
func (o *QuerySubscriptionsParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the query subscriptions params
func (*QuerySubscriptionsParams) SetHTTPClient ¶
func (o *QuerySubscriptionsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query subscriptions params
func (*QuerySubscriptionsParams) SetTimeout ¶
func (o *QuerySubscriptionsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query subscriptions params
func (*QuerySubscriptionsParams) SetXAvalaraClient ¶
func (o *QuerySubscriptionsParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the query subscriptions params
func (*QuerySubscriptionsParams) WithContext ¶
func (o *QuerySubscriptionsParams) WithContext(ctx context.Context) *QuerySubscriptionsParams
WithContext adds the context to the query subscriptions params
func (*QuerySubscriptionsParams) WithDefaults ¶
func (o *QuerySubscriptionsParams) WithDefaults() *QuerySubscriptionsParams
WithDefaults hydrates default values in the query subscriptions params (not the query body).
All values with no default are reset to their zero value.
func (*QuerySubscriptionsParams) WithDollarFilter ¶
func (o *QuerySubscriptionsParams) WithDollarFilter(dollarFilter *string) *QuerySubscriptionsParams
WithDollarFilter adds the dollarFilter to the query subscriptions params
func (*QuerySubscriptionsParams) WithDollarOrderBy ¶
func (o *QuerySubscriptionsParams) WithDollarOrderBy(dollarOrderBy *string) *QuerySubscriptionsParams
WithDollarOrderBy adds the dollarOrderBy to the query subscriptions params
func (*QuerySubscriptionsParams) WithDollarSkip ¶
func (o *QuerySubscriptionsParams) WithDollarSkip(dollarSkip *int32) *QuerySubscriptionsParams
WithDollarSkip adds the dollarSkip to the query subscriptions params
func (*QuerySubscriptionsParams) WithDollarTop ¶
func (o *QuerySubscriptionsParams) WithDollarTop(dollarTop *int32) *QuerySubscriptionsParams
WithDollarTop adds the dollarTop to the query subscriptions params
func (*QuerySubscriptionsParams) WithHTTPClient ¶
func (o *QuerySubscriptionsParams) WithHTTPClient(client *http.Client) *QuerySubscriptionsParams
WithHTTPClient adds the HTTPClient to the query subscriptions params
func (*QuerySubscriptionsParams) WithTimeout ¶
func (o *QuerySubscriptionsParams) WithTimeout(timeout time.Duration) *QuerySubscriptionsParams
WithTimeout adds the timeout to the query subscriptions params
func (*QuerySubscriptionsParams) WithXAvalaraClient ¶
func (o *QuerySubscriptionsParams) WithXAvalaraClient(xAvalaraClient *string) *QuerySubscriptionsParams
WithXAvalaraClient adds the xAvalaraClient to the query subscriptions params
func (*QuerySubscriptionsParams) WriteToRequest ¶
func (o *QuerySubscriptionsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuerySubscriptionsReader ¶
type QuerySubscriptionsReader struct {
// contains filtered or unexported fields
}
QuerySubscriptionsReader is a Reader for the QuerySubscriptions structure.
func (*QuerySubscriptionsReader) ReadResponse ¶
func (o *QuerySubscriptionsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QuerySubscriptionsUnauthorized ¶
type QuerySubscriptionsUnauthorized struct { }
QuerySubscriptionsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewQuerySubscriptionsUnauthorized ¶
func NewQuerySubscriptionsUnauthorized() *QuerySubscriptionsUnauthorized
NewQuerySubscriptionsUnauthorized creates a QuerySubscriptionsUnauthorized with default headers values
func (*QuerySubscriptionsUnauthorized) Error ¶
func (o *QuerySubscriptionsUnauthorized) Error() string