Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateUPCs(params *CreateUPCsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*CreateUPCsOK, error)
- func (a *Client) DeleteUPC(params *DeleteUPCParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DeleteUPCOK, error)
- func (a *Client) GetUPC(params *GetUPCParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetUPCOK, error)
- func (a *Client) ListUPCsByCompany(params *ListUPCsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, ...) (*ListUPCsByCompanyOK, error)
- func (a *Client) QueryUPCs(params *QueryUPCsParams, authInfo runtime.ClientAuthInfoWriter, ...) (*QueryUPCsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateUPC(params *UpdateUPCParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateUPCOK, error)
- type ClientOption
- type ClientService
- type CreateUPCsBadRequest
- type CreateUPCsNotFound
- type CreateUPCsOK
- type CreateUPCsParams
- func (o *CreateUPCsParams) SetBody(body []*models.UPCModel)
- func (o *CreateUPCsParams) SetCompanyID(companyID int32)
- func (o *CreateUPCsParams) SetContext(ctx context.Context)
- func (o *CreateUPCsParams) SetDefaults()
- func (o *CreateUPCsParams) SetHTTPClient(client *http.Client)
- func (o *CreateUPCsParams) SetTimeout(timeout time.Duration)
- func (o *CreateUPCsParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *CreateUPCsParams) WithBody(body []*models.UPCModel) *CreateUPCsParams
- func (o *CreateUPCsParams) WithCompanyID(companyID int32) *CreateUPCsParams
- func (o *CreateUPCsParams) WithContext(ctx context.Context) *CreateUPCsParams
- func (o *CreateUPCsParams) WithDefaults() *CreateUPCsParams
- func (o *CreateUPCsParams) WithHTTPClient(client *http.Client) *CreateUPCsParams
- func (o *CreateUPCsParams) WithTimeout(timeout time.Duration) *CreateUPCsParams
- func (o *CreateUPCsParams) WithXAvalaraClient(xAvalaraClient *string) *CreateUPCsParams
- func (o *CreateUPCsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateUPCsReader
- type CreateUPCsUnauthorized
- type DeleteUPCBadRequest
- type DeleteUPCNotFound
- type DeleteUPCOK
- type DeleteUPCParams
- func (o *DeleteUPCParams) SetCompanyID(companyID int32)
- func (o *DeleteUPCParams) SetContext(ctx context.Context)
- func (o *DeleteUPCParams) SetDefaults()
- func (o *DeleteUPCParams) SetHTTPClient(client *http.Client)
- func (o *DeleteUPCParams) SetID(id int32)
- func (o *DeleteUPCParams) SetTimeout(timeout time.Duration)
- func (o *DeleteUPCParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *DeleteUPCParams) WithCompanyID(companyID int32) *DeleteUPCParams
- func (o *DeleteUPCParams) WithContext(ctx context.Context) *DeleteUPCParams
- func (o *DeleteUPCParams) WithDefaults() *DeleteUPCParams
- func (o *DeleteUPCParams) WithHTTPClient(client *http.Client) *DeleteUPCParams
- func (o *DeleteUPCParams) WithID(id int32) *DeleteUPCParams
- func (o *DeleteUPCParams) WithTimeout(timeout time.Duration) *DeleteUPCParams
- func (o *DeleteUPCParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteUPCParams
- func (o *DeleteUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteUPCReader
- type DeleteUPCUnauthorized
- type GetUPCBadRequest
- type GetUPCNotFound
- type GetUPCOK
- type GetUPCParams
- func (o *GetUPCParams) SetCompanyID(companyID int32)
- func (o *GetUPCParams) SetContext(ctx context.Context)
- func (o *GetUPCParams) SetDefaults()
- func (o *GetUPCParams) SetHTTPClient(client *http.Client)
- func (o *GetUPCParams) SetID(id int32)
- func (o *GetUPCParams) SetTimeout(timeout time.Duration)
- func (o *GetUPCParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *GetUPCParams) WithCompanyID(companyID int32) *GetUPCParams
- func (o *GetUPCParams) WithContext(ctx context.Context) *GetUPCParams
- func (o *GetUPCParams) WithDefaults() *GetUPCParams
- func (o *GetUPCParams) WithHTTPClient(client *http.Client) *GetUPCParams
- func (o *GetUPCParams) WithID(id int32) *GetUPCParams
- func (o *GetUPCParams) WithTimeout(timeout time.Duration) *GetUPCParams
- func (o *GetUPCParams) WithXAvalaraClient(xAvalaraClient *string) *GetUPCParams
- func (o *GetUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetUPCReader
- type GetUPCUnauthorized
- type ListUPCsByCompanyBadRequest
- type ListUPCsByCompanyNotFound
- type ListUPCsByCompanyOK
- type ListUPCsByCompanyParams
- func NewListUPCsByCompanyParams() *ListUPCsByCompanyParams
- func NewListUPCsByCompanyParamsWithContext(ctx context.Context) *ListUPCsByCompanyParams
- func NewListUPCsByCompanyParamsWithHTTPClient(client *http.Client) *ListUPCsByCompanyParams
- func NewListUPCsByCompanyParamsWithTimeout(timeout time.Duration) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) SetCompanyID(companyID int32)
- func (o *ListUPCsByCompanyParams) SetContext(ctx context.Context)
- func (o *ListUPCsByCompanyParams) SetDefaults()
- func (o *ListUPCsByCompanyParams) SetDollarFilter(dollarFilter *string)
- func (o *ListUPCsByCompanyParams) SetDollarInclude(dollarInclude *string)
- func (o *ListUPCsByCompanyParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *ListUPCsByCompanyParams) SetDollarSkip(dollarSkip *int32)
- func (o *ListUPCsByCompanyParams) SetDollarTop(dollarTop *int32)
- func (o *ListUPCsByCompanyParams) SetHTTPClient(client *http.Client)
- func (o *ListUPCsByCompanyParams) SetTimeout(timeout time.Duration)
- func (o *ListUPCsByCompanyParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *ListUPCsByCompanyParams) WithCompanyID(companyID int32) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithContext(ctx context.Context) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDefaults() *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDollarFilter(dollarFilter *string) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDollarInclude(dollarInclude *string) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDollarOrderBy(dollarOrderBy *string) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDollarSkip(dollarSkip *int32) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithDollarTop(dollarTop *int32) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithHTTPClient(client *http.Client) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithTimeout(timeout time.Duration) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WithXAvalaraClient(xAvalaraClient *string) *ListUPCsByCompanyParams
- func (o *ListUPCsByCompanyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListUPCsByCompanyReader
- type ListUPCsByCompanyUnauthorized
- type QueryUPCsBadRequest
- type QueryUPCsOK
- type QueryUPCsParams
- func (o *QueryUPCsParams) SetContext(ctx context.Context)
- func (o *QueryUPCsParams) SetDefaults()
- func (o *QueryUPCsParams) SetDollarFilter(dollarFilter *string)
- func (o *QueryUPCsParams) SetDollarInclude(dollarInclude *string)
- func (o *QueryUPCsParams) SetDollarOrderBy(dollarOrderBy *string)
- func (o *QueryUPCsParams) SetDollarSkip(dollarSkip *int32)
- func (o *QueryUPCsParams) SetDollarTop(dollarTop *int32)
- func (o *QueryUPCsParams) SetHTTPClient(client *http.Client)
- func (o *QueryUPCsParams) SetTimeout(timeout time.Duration)
- func (o *QueryUPCsParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *QueryUPCsParams) WithContext(ctx context.Context) *QueryUPCsParams
- func (o *QueryUPCsParams) WithDefaults() *QueryUPCsParams
- func (o *QueryUPCsParams) WithDollarFilter(dollarFilter *string) *QueryUPCsParams
- func (o *QueryUPCsParams) WithDollarInclude(dollarInclude *string) *QueryUPCsParams
- func (o *QueryUPCsParams) WithDollarOrderBy(dollarOrderBy *string) *QueryUPCsParams
- func (o *QueryUPCsParams) WithDollarSkip(dollarSkip *int32) *QueryUPCsParams
- func (o *QueryUPCsParams) WithDollarTop(dollarTop *int32) *QueryUPCsParams
- func (o *QueryUPCsParams) WithHTTPClient(client *http.Client) *QueryUPCsParams
- func (o *QueryUPCsParams) WithTimeout(timeout time.Duration) *QueryUPCsParams
- func (o *QueryUPCsParams) WithXAvalaraClient(xAvalaraClient *string) *QueryUPCsParams
- func (o *QueryUPCsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QueryUPCsReader
- type QueryUPCsUnauthorized
- type UpdateUPCBadRequest
- type UpdateUPCNotFound
- type UpdateUPCOK
- type UpdateUPCParams
- func (o *UpdateUPCParams) SetBody(body *models.UPCModel)
- func (o *UpdateUPCParams) SetCompanyID(companyID int32)
- func (o *UpdateUPCParams) SetContext(ctx context.Context)
- func (o *UpdateUPCParams) SetDefaults()
- func (o *UpdateUPCParams) SetHTTPClient(client *http.Client)
- func (o *UpdateUPCParams) SetID(id int32)
- func (o *UpdateUPCParams) SetTimeout(timeout time.Duration)
- func (o *UpdateUPCParams) SetXAvalaraClient(xAvalaraClient *string)
- func (o *UpdateUPCParams) WithBody(body *models.UPCModel) *UpdateUPCParams
- func (o *UpdateUPCParams) WithCompanyID(companyID int32) *UpdateUPCParams
- func (o *UpdateUPCParams) WithContext(ctx context.Context) *UpdateUPCParams
- func (o *UpdateUPCParams) WithDefaults() *UpdateUPCParams
- func (o *UpdateUPCParams) WithHTTPClient(client *http.Client) *UpdateUPCParams
- func (o *UpdateUPCParams) WithID(id int32) *UpdateUPCParams
- func (o *UpdateUPCParams) WithTimeout(timeout time.Duration) *UpdateUPCParams
- func (o *UpdateUPCParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateUPCParams
- func (o *UpdateUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateUPCReader
- type UpdateUPCUnauthorized
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 upcs API
func (*Client) CreateUPCs ¶
func (a *Client) CreateUPCs(params *CreateUPCsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUPCsOK, error)
CreateUPCs creates a new u p c Create one or more new UPC objects attached to this company.
A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaUpc.
func (*Client) DeleteUPC ¶
func (a *Client) DeleteUPC(params *DeleteUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUPCOK, error)
DeleteUPC deletes a single u p c Marks the UPC object identified by this URL as deleted.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaUpc.
func (*Client) GetUPC ¶
func (a *Client) GetUPC(params *GetUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUPCOK, error)
GetUPC retrieves a single u p c Get the UPC object identified by this URL.
A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, AccountUser, CompanyAdmin, CompanyUser, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaUpc.
func (*Client) ListUPCsByCompany ¶
func (a *Client) ListUPCsByCompany(params *ListUPCsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUPCsByCompanyOK, error)
ListUPCsByCompany retrieves u p cs for this company List all UPC objects attached to this company.
A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
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, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaUpc.
func (*Client) QueryUPCs ¶
func (a *Client) QueryUPCs(params *QueryUPCsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryUPCsOK, error)
QueryUPCs retrieves all u p cs Get multiple UPC objects across all companies.
A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC.
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, CSPAdmin, CSPTester, SiteAdmin, SSTAdmin, SystemAdmin, TechnicalSupportAdmin, TechnicalSupportUser. * This API depends on the following active services:*Required* (all): AvaUpc.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateUPC ¶
func (a *Client) UpdateUPC(params *UpdateUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUPCOK, error)
UpdateUPC updates a single u p c Replace the existing UPC object at this URL with an updated object.
A UPC represents a single UPC code in your catalog and matches this product to the tax code identified by this UPC. All data from the existing object will be replaced with data in the object you PUT. To set a field's value to null, you may either set its value to null or omit that field from the object you post.
### Security Policies
* This API requires one of the following user roles: AccountAdmin, CompanyAdmin, CSPTester, SSTAdmin, TechnicalSupportAdmin. * This API depends on the following active services:*Required* (all): AvaUpc.
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateUPCs(params *CreateUPCsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*CreateUPCsOK, error) DeleteUPC(params *DeleteUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteUPCOK, error) GetUPC(params *GetUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetUPCOK, error) ListUPCsByCompany(params *ListUPCsByCompanyParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*ListUPCsByCompanyOK, error) QueryUPCs(params *QueryUPCsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*QueryUPCsOK, error) UpdateUPC(params *UpdateUPCParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateUPCOK, 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 upcs API client.
type CreateUPCsBadRequest ¶
type CreateUPCsBadRequest struct { }
CreateUPCsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewCreateUPCsBadRequest ¶
func NewCreateUPCsBadRequest() *CreateUPCsBadRequest
NewCreateUPCsBadRequest creates a CreateUPCsBadRequest with default headers values
func (*CreateUPCsBadRequest) Error ¶
func (o *CreateUPCsBadRequest) Error() string
type CreateUPCsNotFound ¶
type CreateUPCsNotFound struct { }
CreateUPCsNotFound describes a response with status code 404, with default header values.
Not Found
func NewCreateUPCsNotFound ¶
func NewCreateUPCsNotFound() *CreateUPCsNotFound
NewCreateUPCsNotFound creates a CreateUPCsNotFound with default headers values
func (*CreateUPCsNotFound) Error ¶
func (o *CreateUPCsNotFound) Error() string
type CreateUPCsOK ¶
CreateUPCsOK describes a response with status code 200, with default header values.
Success
func NewCreateUPCsOK ¶
func NewCreateUPCsOK() *CreateUPCsOK
NewCreateUPCsOK creates a CreateUPCsOK with default headers values
func (*CreateUPCsOK) Error ¶
func (o *CreateUPCsOK) Error() string
func (*CreateUPCsOK) GetPayload ¶
func (o *CreateUPCsOK) GetPayload() []*models.UPCModel
type CreateUPCsParams ¶
type CreateUPCsParams 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 UPC you wish to create. */ Body []*models.UPCModel /* CompanyID. The ID of the company that owns this UPC. Format: int32 */ CompanyID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateUPCsParams contains all the parameters to send to the API endpoint
for the create u p cs operation. Typically these are written to a http.Request.
func NewCreateUPCsParams ¶
func NewCreateUPCsParams() *CreateUPCsParams
NewCreateUPCsParams creates a new CreateUPCsParams 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 NewCreateUPCsParamsWithContext ¶
func NewCreateUPCsParamsWithContext(ctx context.Context) *CreateUPCsParams
NewCreateUPCsParamsWithContext creates a new CreateUPCsParams object with the ability to set a context for a request.
func NewCreateUPCsParamsWithHTTPClient ¶
func NewCreateUPCsParamsWithHTTPClient(client *http.Client) *CreateUPCsParams
NewCreateUPCsParamsWithHTTPClient creates a new CreateUPCsParams object with the ability to set a custom HTTPClient for a request.
func NewCreateUPCsParamsWithTimeout ¶
func NewCreateUPCsParamsWithTimeout(timeout time.Duration) *CreateUPCsParams
NewCreateUPCsParamsWithTimeout creates a new CreateUPCsParams object with the ability to set a timeout on a request.
func (*CreateUPCsParams) SetBody ¶
func (o *CreateUPCsParams) SetBody(body []*models.UPCModel)
SetBody adds the body to the create u p cs params
func (*CreateUPCsParams) SetCompanyID ¶
func (o *CreateUPCsParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the create u p cs params
func (*CreateUPCsParams) SetContext ¶
func (o *CreateUPCsParams) SetContext(ctx context.Context)
SetContext adds the context to the create u p cs params
func (*CreateUPCsParams) SetDefaults ¶
func (o *CreateUPCsParams) SetDefaults()
SetDefaults hydrates default values in the create u p cs params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUPCsParams) SetHTTPClient ¶
func (o *CreateUPCsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create u p cs params
func (*CreateUPCsParams) SetTimeout ¶
func (o *CreateUPCsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create u p cs params
func (*CreateUPCsParams) SetXAvalaraClient ¶
func (o *CreateUPCsParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the create u p cs params
func (*CreateUPCsParams) WithBody ¶
func (o *CreateUPCsParams) WithBody(body []*models.UPCModel) *CreateUPCsParams
WithBody adds the body to the create u p cs params
func (*CreateUPCsParams) WithCompanyID ¶
func (o *CreateUPCsParams) WithCompanyID(companyID int32) *CreateUPCsParams
WithCompanyID adds the companyID to the create u p cs params
func (*CreateUPCsParams) WithContext ¶
func (o *CreateUPCsParams) WithContext(ctx context.Context) *CreateUPCsParams
WithContext adds the context to the create u p cs params
func (*CreateUPCsParams) WithDefaults ¶
func (o *CreateUPCsParams) WithDefaults() *CreateUPCsParams
WithDefaults hydrates default values in the create u p cs params (not the query body).
All values with no default are reset to their zero value.
func (*CreateUPCsParams) WithHTTPClient ¶
func (o *CreateUPCsParams) WithHTTPClient(client *http.Client) *CreateUPCsParams
WithHTTPClient adds the HTTPClient to the create u p cs params
func (*CreateUPCsParams) WithTimeout ¶
func (o *CreateUPCsParams) WithTimeout(timeout time.Duration) *CreateUPCsParams
WithTimeout adds the timeout to the create u p cs params
func (*CreateUPCsParams) WithXAvalaraClient ¶
func (o *CreateUPCsParams) WithXAvalaraClient(xAvalaraClient *string) *CreateUPCsParams
WithXAvalaraClient adds the xAvalaraClient to the create u p cs params
func (*CreateUPCsParams) WriteToRequest ¶
func (o *CreateUPCsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateUPCsReader ¶
type CreateUPCsReader struct {
// contains filtered or unexported fields
}
CreateUPCsReader is a Reader for the CreateUPCs structure.
func (*CreateUPCsReader) ReadResponse ¶
func (o *CreateUPCsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUPCsUnauthorized ¶
type CreateUPCsUnauthorized struct { }
CreateUPCsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewCreateUPCsUnauthorized ¶
func NewCreateUPCsUnauthorized() *CreateUPCsUnauthorized
NewCreateUPCsUnauthorized creates a CreateUPCsUnauthorized with default headers values
func (*CreateUPCsUnauthorized) Error ¶
func (o *CreateUPCsUnauthorized) Error() string
type DeleteUPCBadRequest ¶
type DeleteUPCBadRequest struct { }
DeleteUPCBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewDeleteUPCBadRequest ¶
func NewDeleteUPCBadRequest() *DeleteUPCBadRequest
NewDeleteUPCBadRequest creates a DeleteUPCBadRequest with default headers values
func (*DeleteUPCBadRequest) Error ¶
func (o *DeleteUPCBadRequest) Error() string
type DeleteUPCNotFound ¶
type DeleteUPCNotFound struct { }
DeleteUPCNotFound describes a response with status code 404, with default header values.
Not Found
func NewDeleteUPCNotFound ¶
func NewDeleteUPCNotFound() *DeleteUPCNotFound
NewDeleteUPCNotFound creates a DeleteUPCNotFound with default headers values
func (*DeleteUPCNotFound) Error ¶
func (o *DeleteUPCNotFound) Error() string
type DeleteUPCOK ¶
type DeleteUPCOK struct {
Payload []*models.ErrorDetail
}
DeleteUPCOK describes a response with status code 200, with default header values.
Success
func NewDeleteUPCOK ¶
func NewDeleteUPCOK() *DeleteUPCOK
NewDeleteUPCOK creates a DeleteUPCOK with default headers values
func (*DeleteUPCOK) Error ¶
func (o *DeleteUPCOK) Error() string
func (*DeleteUPCOK) GetPayload ¶
func (o *DeleteUPCOK) GetPayload() []*models.ErrorDetail
type DeleteUPCParams ¶
type DeleteUPCParams 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 ID of the company that owns this UPC. Format: int32 */ CompanyID int32 /* ID. The ID of the UPC you wish to delete. Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteUPCParams contains all the parameters to send to the API endpoint
for the delete u p c operation. Typically these are written to a http.Request.
func NewDeleteUPCParams ¶
func NewDeleteUPCParams() *DeleteUPCParams
NewDeleteUPCParams creates a new DeleteUPCParams 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 NewDeleteUPCParamsWithContext ¶
func NewDeleteUPCParamsWithContext(ctx context.Context) *DeleteUPCParams
NewDeleteUPCParamsWithContext creates a new DeleteUPCParams object with the ability to set a context for a request.
func NewDeleteUPCParamsWithHTTPClient ¶
func NewDeleteUPCParamsWithHTTPClient(client *http.Client) *DeleteUPCParams
NewDeleteUPCParamsWithHTTPClient creates a new DeleteUPCParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteUPCParamsWithTimeout ¶
func NewDeleteUPCParamsWithTimeout(timeout time.Duration) *DeleteUPCParams
NewDeleteUPCParamsWithTimeout creates a new DeleteUPCParams object with the ability to set a timeout on a request.
func (*DeleteUPCParams) SetCompanyID ¶
func (o *DeleteUPCParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the delete u p c params
func (*DeleteUPCParams) SetContext ¶
func (o *DeleteUPCParams) SetContext(ctx context.Context)
SetContext adds the context to the delete u p c params
func (*DeleteUPCParams) SetDefaults ¶
func (o *DeleteUPCParams) SetDefaults()
SetDefaults hydrates default values in the delete u p c params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUPCParams) SetHTTPClient ¶
func (o *DeleteUPCParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete u p c params
func (*DeleteUPCParams) SetID ¶
func (o *DeleteUPCParams) SetID(id int32)
SetID adds the id to the delete u p c params
func (*DeleteUPCParams) SetTimeout ¶
func (o *DeleteUPCParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete u p c params
func (*DeleteUPCParams) SetXAvalaraClient ¶
func (o *DeleteUPCParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the delete u p c params
func (*DeleteUPCParams) WithCompanyID ¶
func (o *DeleteUPCParams) WithCompanyID(companyID int32) *DeleteUPCParams
WithCompanyID adds the companyID to the delete u p c params
func (*DeleteUPCParams) WithContext ¶
func (o *DeleteUPCParams) WithContext(ctx context.Context) *DeleteUPCParams
WithContext adds the context to the delete u p c params
func (*DeleteUPCParams) WithDefaults ¶
func (o *DeleteUPCParams) WithDefaults() *DeleteUPCParams
WithDefaults hydrates default values in the delete u p c params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteUPCParams) WithHTTPClient ¶
func (o *DeleteUPCParams) WithHTTPClient(client *http.Client) *DeleteUPCParams
WithHTTPClient adds the HTTPClient to the delete u p c params
func (*DeleteUPCParams) WithID ¶
func (o *DeleteUPCParams) WithID(id int32) *DeleteUPCParams
WithID adds the id to the delete u p c params
func (*DeleteUPCParams) WithTimeout ¶
func (o *DeleteUPCParams) WithTimeout(timeout time.Duration) *DeleteUPCParams
WithTimeout adds the timeout to the delete u p c params
func (*DeleteUPCParams) WithXAvalaraClient ¶
func (o *DeleteUPCParams) WithXAvalaraClient(xAvalaraClient *string) *DeleteUPCParams
WithXAvalaraClient adds the xAvalaraClient to the delete u p c params
func (*DeleteUPCParams) WriteToRequest ¶
func (o *DeleteUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteUPCReader ¶
type DeleteUPCReader struct {
// contains filtered or unexported fields
}
DeleteUPCReader is a Reader for the DeleteUPC structure.
func (*DeleteUPCReader) ReadResponse ¶
func (o *DeleteUPCReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteUPCUnauthorized ¶
type DeleteUPCUnauthorized struct { }
DeleteUPCUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewDeleteUPCUnauthorized ¶
func NewDeleteUPCUnauthorized() *DeleteUPCUnauthorized
NewDeleteUPCUnauthorized creates a DeleteUPCUnauthorized with default headers values
func (*DeleteUPCUnauthorized) Error ¶
func (o *DeleteUPCUnauthorized) Error() string
type GetUPCBadRequest ¶
type GetUPCBadRequest struct { }
GetUPCBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewGetUPCBadRequest ¶
func NewGetUPCBadRequest() *GetUPCBadRequest
NewGetUPCBadRequest creates a GetUPCBadRequest with default headers values
func (*GetUPCBadRequest) Error ¶
func (o *GetUPCBadRequest) Error() string
type GetUPCNotFound ¶
type GetUPCNotFound struct { }
GetUPCNotFound describes a response with status code 404, with default header values.
Not Found
func NewGetUPCNotFound ¶
func NewGetUPCNotFound() *GetUPCNotFound
NewGetUPCNotFound creates a GetUPCNotFound with default headers values
func (*GetUPCNotFound) Error ¶
func (o *GetUPCNotFound) Error() string
type GetUPCOK ¶
GetUPCOK describes a response with status code 200, with default header values.
Success
func NewGetUPCOK ¶
func NewGetUPCOK() *GetUPCOK
NewGetUPCOK creates a GetUPCOK with default headers values
func (*GetUPCOK) GetPayload ¶
type GetUPCParams ¶
type GetUPCParams 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 ID of the company that owns this UPC Format: int32 */ CompanyID int32 /* ID. The primary key of this UPC Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetUPCParams contains all the parameters to send to the API endpoint
for the get u p c operation. Typically these are written to a http.Request.
func NewGetUPCParams ¶
func NewGetUPCParams() *GetUPCParams
NewGetUPCParams creates a new GetUPCParams 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 NewGetUPCParamsWithContext ¶
func NewGetUPCParamsWithContext(ctx context.Context) *GetUPCParams
NewGetUPCParamsWithContext creates a new GetUPCParams object with the ability to set a context for a request.
func NewGetUPCParamsWithHTTPClient ¶
func NewGetUPCParamsWithHTTPClient(client *http.Client) *GetUPCParams
NewGetUPCParamsWithHTTPClient creates a new GetUPCParams object with the ability to set a custom HTTPClient for a request.
func NewGetUPCParamsWithTimeout ¶
func NewGetUPCParamsWithTimeout(timeout time.Duration) *GetUPCParams
NewGetUPCParamsWithTimeout creates a new GetUPCParams object with the ability to set a timeout on a request.
func (*GetUPCParams) SetCompanyID ¶
func (o *GetUPCParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the get u p c params
func (*GetUPCParams) SetContext ¶
func (o *GetUPCParams) SetContext(ctx context.Context)
SetContext adds the context to the get u p c params
func (*GetUPCParams) SetDefaults ¶
func (o *GetUPCParams) SetDefaults()
SetDefaults hydrates default values in the get u p c params (not the query body).
All values with no default are reset to their zero value.
func (*GetUPCParams) SetHTTPClient ¶
func (o *GetUPCParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get u p c params
func (*GetUPCParams) SetID ¶
func (o *GetUPCParams) SetID(id int32)
SetID adds the id to the get u p c params
func (*GetUPCParams) SetTimeout ¶
func (o *GetUPCParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get u p c params
func (*GetUPCParams) SetXAvalaraClient ¶
func (o *GetUPCParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the get u p c params
func (*GetUPCParams) WithCompanyID ¶
func (o *GetUPCParams) WithCompanyID(companyID int32) *GetUPCParams
WithCompanyID adds the companyID to the get u p c params
func (*GetUPCParams) WithContext ¶
func (o *GetUPCParams) WithContext(ctx context.Context) *GetUPCParams
WithContext adds the context to the get u p c params
func (*GetUPCParams) WithDefaults ¶
func (o *GetUPCParams) WithDefaults() *GetUPCParams
WithDefaults hydrates default values in the get u p c params (not the query body).
All values with no default are reset to their zero value.
func (*GetUPCParams) WithHTTPClient ¶
func (o *GetUPCParams) WithHTTPClient(client *http.Client) *GetUPCParams
WithHTTPClient adds the HTTPClient to the get u p c params
func (*GetUPCParams) WithID ¶
func (o *GetUPCParams) WithID(id int32) *GetUPCParams
WithID adds the id to the get u p c params
func (*GetUPCParams) WithTimeout ¶
func (o *GetUPCParams) WithTimeout(timeout time.Duration) *GetUPCParams
WithTimeout adds the timeout to the get u p c params
func (*GetUPCParams) WithXAvalaraClient ¶
func (o *GetUPCParams) WithXAvalaraClient(xAvalaraClient *string) *GetUPCParams
WithXAvalaraClient adds the xAvalaraClient to the get u p c params
func (*GetUPCParams) WriteToRequest ¶
func (o *GetUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetUPCReader ¶
type GetUPCReader struct {
// contains filtered or unexported fields
}
GetUPCReader is a Reader for the GetUPC structure.
func (*GetUPCReader) ReadResponse ¶
func (o *GetUPCReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetUPCUnauthorized ¶
type GetUPCUnauthorized struct { }
GetUPCUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewGetUPCUnauthorized ¶
func NewGetUPCUnauthorized() *GetUPCUnauthorized
NewGetUPCUnauthorized creates a GetUPCUnauthorized with default headers values
func (*GetUPCUnauthorized) Error ¶
func (o *GetUPCUnauthorized) Error() string
type ListUPCsByCompanyBadRequest ¶
type ListUPCsByCompanyBadRequest struct { }
ListUPCsByCompanyBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewListUPCsByCompanyBadRequest ¶
func NewListUPCsByCompanyBadRequest() *ListUPCsByCompanyBadRequest
NewListUPCsByCompanyBadRequest creates a ListUPCsByCompanyBadRequest with default headers values
func (*ListUPCsByCompanyBadRequest) Error ¶
func (o *ListUPCsByCompanyBadRequest) Error() string
type ListUPCsByCompanyNotFound ¶
type ListUPCsByCompanyNotFound struct { }
ListUPCsByCompanyNotFound describes a response with status code 404, with default header values.
Not Found
func NewListUPCsByCompanyNotFound ¶
func NewListUPCsByCompanyNotFound() *ListUPCsByCompanyNotFound
NewListUPCsByCompanyNotFound creates a ListUPCsByCompanyNotFound with default headers values
func (*ListUPCsByCompanyNotFound) Error ¶
func (o *ListUPCsByCompanyNotFound) Error() string
type ListUPCsByCompanyOK ¶
type ListUPCsByCompanyOK struct {
Payload *models.UPCModelFetchResult
}
ListUPCsByCompanyOK describes a response with status code 200, with default header values.
Success
func NewListUPCsByCompanyOK ¶
func NewListUPCsByCompanyOK() *ListUPCsByCompanyOK
NewListUPCsByCompanyOK creates a ListUPCsByCompanyOK with default headers values
func (*ListUPCsByCompanyOK) Error ¶
func (o *ListUPCsByCompanyOK) Error() string
func (*ListUPCsByCompanyOK) GetPayload ¶
func (o *ListUPCsByCompanyOK) GetPayload() *models.UPCModelFetchResult
type ListUPCsByCompanyParams ¶
type ListUPCsByCompanyParams 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/). */ DollarFilter *string /* DollarInclude. A comma separated list of additional data to retrieve. */ 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 ID of the company that owns these UPCs Format: int32 */ CompanyID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListUPCsByCompanyParams contains all the parameters to send to the API endpoint
for the list u p cs by company operation. Typically these are written to a http.Request.
func NewListUPCsByCompanyParams ¶
func NewListUPCsByCompanyParams() *ListUPCsByCompanyParams
NewListUPCsByCompanyParams creates a new ListUPCsByCompanyParams 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 NewListUPCsByCompanyParamsWithContext ¶
func NewListUPCsByCompanyParamsWithContext(ctx context.Context) *ListUPCsByCompanyParams
NewListUPCsByCompanyParamsWithContext creates a new ListUPCsByCompanyParams object with the ability to set a context for a request.
func NewListUPCsByCompanyParamsWithHTTPClient ¶
func NewListUPCsByCompanyParamsWithHTTPClient(client *http.Client) *ListUPCsByCompanyParams
NewListUPCsByCompanyParamsWithHTTPClient creates a new ListUPCsByCompanyParams object with the ability to set a custom HTTPClient for a request.
func NewListUPCsByCompanyParamsWithTimeout ¶
func NewListUPCsByCompanyParamsWithTimeout(timeout time.Duration) *ListUPCsByCompanyParams
NewListUPCsByCompanyParamsWithTimeout creates a new ListUPCsByCompanyParams object with the ability to set a timeout on a request.
func (*ListUPCsByCompanyParams) SetCompanyID ¶
func (o *ListUPCsByCompanyParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetContext ¶
func (o *ListUPCsByCompanyParams) SetContext(ctx context.Context)
SetContext adds the context to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetDefaults ¶
func (o *ListUPCsByCompanyParams) SetDefaults()
SetDefaults hydrates default values in the list u p cs by company params (not the query body).
All values with no default are reset to their zero value.
func (*ListUPCsByCompanyParams) SetDollarFilter ¶
func (o *ListUPCsByCompanyParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetDollarInclude ¶
func (o *ListUPCsByCompanyParams) SetDollarInclude(dollarInclude *string)
SetDollarInclude adds the dollarInclude to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetDollarOrderBy ¶
func (o *ListUPCsByCompanyParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetDollarSkip ¶
func (o *ListUPCsByCompanyParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetDollarTop ¶
func (o *ListUPCsByCompanyParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetHTTPClient ¶
func (o *ListUPCsByCompanyParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetTimeout ¶
func (o *ListUPCsByCompanyParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list u p cs by company params
func (*ListUPCsByCompanyParams) SetXAvalaraClient ¶
func (o *ListUPCsByCompanyParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithCompanyID ¶
func (o *ListUPCsByCompanyParams) WithCompanyID(companyID int32) *ListUPCsByCompanyParams
WithCompanyID adds the companyID to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithContext ¶
func (o *ListUPCsByCompanyParams) WithContext(ctx context.Context) *ListUPCsByCompanyParams
WithContext adds the context to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithDefaults ¶
func (o *ListUPCsByCompanyParams) WithDefaults() *ListUPCsByCompanyParams
WithDefaults hydrates default values in the list u p cs by company params (not the query body).
All values with no default are reset to their zero value.
func (*ListUPCsByCompanyParams) WithDollarFilter ¶
func (o *ListUPCsByCompanyParams) WithDollarFilter(dollarFilter *string) *ListUPCsByCompanyParams
WithDollarFilter adds the dollarFilter to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithDollarInclude ¶
func (o *ListUPCsByCompanyParams) WithDollarInclude(dollarInclude *string) *ListUPCsByCompanyParams
WithDollarInclude adds the dollarInclude to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithDollarOrderBy ¶
func (o *ListUPCsByCompanyParams) WithDollarOrderBy(dollarOrderBy *string) *ListUPCsByCompanyParams
WithDollarOrderBy adds the dollarOrderBy to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithDollarSkip ¶
func (o *ListUPCsByCompanyParams) WithDollarSkip(dollarSkip *int32) *ListUPCsByCompanyParams
WithDollarSkip adds the dollarSkip to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithDollarTop ¶
func (o *ListUPCsByCompanyParams) WithDollarTop(dollarTop *int32) *ListUPCsByCompanyParams
WithDollarTop adds the dollarTop to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithHTTPClient ¶
func (o *ListUPCsByCompanyParams) WithHTTPClient(client *http.Client) *ListUPCsByCompanyParams
WithHTTPClient adds the HTTPClient to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithTimeout ¶
func (o *ListUPCsByCompanyParams) WithTimeout(timeout time.Duration) *ListUPCsByCompanyParams
WithTimeout adds the timeout to the list u p cs by company params
func (*ListUPCsByCompanyParams) WithXAvalaraClient ¶
func (o *ListUPCsByCompanyParams) WithXAvalaraClient(xAvalaraClient *string) *ListUPCsByCompanyParams
WithXAvalaraClient adds the xAvalaraClient to the list u p cs by company params
func (*ListUPCsByCompanyParams) WriteToRequest ¶
func (o *ListUPCsByCompanyParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListUPCsByCompanyReader ¶
type ListUPCsByCompanyReader struct {
// contains filtered or unexported fields
}
ListUPCsByCompanyReader is a Reader for the ListUPCsByCompany structure.
func (*ListUPCsByCompanyReader) ReadResponse ¶
func (o *ListUPCsByCompanyReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListUPCsByCompanyUnauthorized ¶
type ListUPCsByCompanyUnauthorized struct { }
ListUPCsByCompanyUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewListUPCsByCompanyUnauthorized ¶
func NewListUPCsByCompanyUnauthorized() *ListUPCsByCompanyUnauthorized
NewListUPCsByCompanyUnauthorized creates a ListUPCsByCompanyUnauthorized with default headers values
func (*ListUPCsByCompanyUnauthorized) Error ¶
func (o *ListUPCsByCompanyUnauthorized) Error() string
type QueryUPCsBadRequest ¶
type QueryUPCsBadRequest struct { }
QueryUPCsBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewQueryUPCsBadRequest ¶
func NewQueryUPCsBadRequest() *QueryUPCsBadRequest
NewQueryUPCsBadRequest creates a QueryUPCsBadRequest with default headers values
func (*QueryUPCsBadRequest) Error ¶
func (o *QueryUPCsBadRequest) Error() string
type QueryUPCsOK ¶
type QueryUPCsOK struct {
Payload *models.UPCModelFetchResult
}
QueryUPCsOK describes a response with status code 200, with default header values.
Success
func NewQueryUPCsOK ¶
func NewQueryUPCsOK() *QueryUPCsOK
NewQueryUPCsOK creates a QueryUPCsOK with default headers values
func (*QueryUPCsOK) Error ¶
func (o *QueryUPCsOK) Error() string
func (*QueryUPCsOK) GetPayload ¶
func (o *QueryUPCsOK) GetPayload() *models.UPCModelFetchResult
type QueryUPCsParams ¶
type QueryUPCsParams 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/). */ DollarFilter *string /* DollarInclude. A comma separated list of additional data to retrieve. */ 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 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QueryUPCsParams contains all the parameters to send to the API endpoint
for the query u p cs operation. Typically these are written to a http.Request.
func NewQueryUPCsParams ¶
func NewQueryUPCsParams() *QueryUPCsParams
NewQueryUPCsParams creates a new QueryUPCsParams 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 NewQueryUPCsParamsWithContext ¶
func NewQueryUPCsParamsWithContext(ctx context.Context) *QueryUPCsParams
NewQueryUPCsParamsWithContext creates a new QueryUPCsParams object with the ability to set a context for a request.
func NewQueryUPCsParamsWithHTTPClient ¶
func NewQueryUPCsParamsWithHTTPClient(client *http.Client) *QueryUPCsParams
NewQueryUPCsParamsWithHTTPClient creates a new QueryUPCsParams object with the ability to set a custom HTTPClient for a request.
func NewQueryUPCsParamsWithTimeout ¶
func NewQueryUPCsParamsWithTimeout(timeout time.Duration) *QueryUPCsParams
NewQueryUPCsParamsWithTimeout creates a new QueryUPCsParams object with the ability to set a timeout on a request.
func (*QueryUPCsParams) SetContext ¶
func (o *QueryUPCsParams) SetContext(ctx context.Context)
SetContext adds the context to the query u p cs params
func (*QueryUPCsParams) SetDefaults ¶
func (o *QueryUPCsParams) SetDefaults()
SetDefaults hydrates default values in the query u p cs params (not the query body).
All values with no default are reset to their zero value.
func (*QueryUPCsParams) SetDollarFilter ¶
func (o *QueryUPCsParams) SetDollarFilter(dollarFilter *string)
SetDollarFilter adds the dollarFilter to the query u p cs params
func (*QueryUPCsParams) SetDollarInclude ¶
func (o *QueryUPCsParams) SetDollarInclude(dollarInclude *string)
SetDollarInclude adds the dollarInclude to the query u p cs params
func (*QueryUPCsParams) SetDollarOrderBy ¶
func (o *QueryUPCsParams) SetDollarOrderBy(dollarOrderBy *string)
SetDollarOrderBy adds the dollarOrderBy to the query u p cs params
func (*QueryUPCsParams) SetDollarSkip ¶
func (o *QueryUPCsParams) SetDollarSkip(dollarSkip *int32)
SetDollarSkip adds the dollarSkip to the query u p cs params
func (*QueryUPCsParams) SetDollarTop ¶
func (o *QueryUPCsParams) SetDollarTop(dollarTop *int32)
SetDollarTop adds the dollarTop to the query u p cs params
func (*QueryUPCsParams) SetHTTPClient ¶
func (o *QueryUPCsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the query u p cs params
func (*QueryUPCsParams) SetTimeout ¶
func (o *QueryUPCsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the query u p cs params
func (*QueryUPCsParams) SetXAvalaraClient ¶
func (o *QueryUPCsParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the query u p cs params
func (*QueryUPCsParams) WithContext ¶
func (o *QueryUPCsParams) WithContext(ctx context.Context) *QueryUPCsParams
WithContext adds the context to the query u p cs params
func (*QueryUPCsParams) WithDefaults ¶
func (o *QueryUPCsParams) WithDefaults() *QueryUPCsParams
WithDefaults hydrates default values in the query u p cs params (not the query body).
All values with no default are reset to their zero value.
func (*QueryUPCsParams) WithDollarFilter ¶
func (o *QueryUPCsParams) WithDollarFilter(dollarFilter *string) *QueryUPCsParams
WithDollarFilter adds the dollarFilter to the query u p cs params
func (*QueryUPCsParams) WithDollarInclude ¶
func (o *QueryUPCsParams) WithDollarInclude(dollarInclude *string) *QueryUPCsParams
WithDollarInclude adds the dollarInclude to the query u p cs params
func (*QueryUPCsParams) WithDollarOrderBy ¶
func (o *QueryUPCsParams) WithDollarOrderBy(dollarOrderBy *string) *QueryUPCsParams
WithDollarOrderBy adds the dollarOrderBy to the query u p cs params
func (*QueryUPCsParams) WithDollarSkip ¶
func (o *QueryUPCsParams) WithDollarSkip(dollarSkip *int32) *QueryUPCsParams
WithDollarSkip adds the dollarSkip to the query u p cs params
func (*QueryUPCsParams) WithDollarTop ¶
func (o *QueryUPCsParams) WithDollarTop(dollarTop *int32) *QueryUPCsParams
WithDollarTop adds the dollarTop to the query u p cs params
func (*QueryUPCsParams) WithHTTPClient ¶
func (o *QueryUPCsParams) WithHTTPClient(client *http.Client) *QueryUPCsParams
WithHTTPClient adds the HTTPClient to the query u p cs params
func (*QueryUPCsParams) WithTimeout ¶
func (o *QueryUPCsParams) WithTimeout(timeout time.Duration) *QueryUPCsParams
WithTimeout adds the timeout to the query u p cs params
func (*QueryUPCsParams) WithXAvalaraClient ¶
func (o *QueryUPCsParams) WithXAvalaraClient(xAvalaraClient *string) *QueryUPCsParams
WithXAvalaraClient adds the xAvalaraClient to the query u p cs params
func (*QueryUPCsParams) WriteToRequest ¶
func (o *QueryUPCsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QueryUPCsReader ¶
type QueryUPCsReader struct {
// contains filtered or unexported fields
}
QueryUPCsReader is a Reader for the QueryUPCs structure.
func (*QueryUPCsReader) ReadResponse ¶
func (o *QueryUPCsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QueryUPCsUnauthorized ¶
type QueryUPCsUnauthorized struct { }
QueryUPCsUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewQueryUPCsUnauthorized ¶
func NewQueryUPCsUnauthorized() *QueryUPCsUnauthorized
NewQueryUPCsUnauthorized creates a QueryUPCsUnauthorized with default headers values
func (*QueryUPCsUnauthorized) Error ¶
func (o *QueryUPCsUnauthorized) Error() string
type UpdateUPCBadRequest ¶
type UpdateUPCBadRequest struct { }
UpdateUPCBadRequest describes a response with status code 400, with default header values.
Bad Request
func NewUpdateUPCBadRequest ¶
func NewUpdateUPCBadRequest() *UpdateUPCBadRequest
NewUpdateUPCBadRequest creates a UpdateUPCBadRequest with default headers values
func (*UpdateUPCBadRequest) Error ¶
func (o *UpdateUPCBadRequest) Error() string
type UpdateUPCNotFound ¶
type UpdateUPCNotFound struct { }
UpdateUPCNotFound describes a response with status code 404, with default header values.
Not Found
func NewUpdateUPCNotFound ¶
func NewUpdateUPCNotFound() *UpdateUPCNotFound
NewUpdateUPCNotFound creates a UpdateUPCNotFound with default headers values
func (*UpdateUPCNotFound) Error ¶
func (o *UpdateUPCNotFound) Error() string
type UpdateUPCOK ¶
UpdateUPCOK describes a response with status code 200, with default header values.
Success
func NewUpdateUPCOK ¶
func NewUpdateUPCOK() *UpdateUPCOK
NewUpdateUPCOK creates a UpdateUPCOK with default headers values
func (*UpdateUPCOK) Error ¶
func (o *UpdateUPCOK) Error() string
func (*UpdateUPCOK) GetPayload ¶
func (o *UpdateUPCOK) GetPayload() *models.UPCModel
type UpdateUPCParams ¶
type UpdateUPCParams 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 UPC you wish to update. */ Body *models.UPCModel /* CompanyID. The ID of the company that this UPC belongs to. Format: int32 */ CompanyID int32 /* ID. The ID of the UPC you wish to update Format: int32 */ ID int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateUPCParams contains all the parameters to send to the API endpoint
for the update u p c operation. Typically these are written to a http.Request.
func NewUpdateUPCParams ¶
func NewUpdateUPCParams() *UpdateUPCParams
NewUpdateUPCParams creates a new UpdateUPCParams 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 NewUpdateUPCParamsWithContext ¶
func NewUpdateUPCParamsWithContext(ctx context.Context) *UpdateUPCParams
NewUpdateUPCParamsWithContext creates a new UpdateUPCParams object with the ability to set a context for a request.
func NewUpdateUPCParamsWithHTTPClient ¶
func NewUpdateUPCParamsWithHTTPClient(client *http.Client) *UpdateUPCParams
NewUpdateUPCParamsWithHTTPClient creates a new UpdateUPCParams object with the ability to set a custom HTTPClient for a request.
func NewUpdateUPCParamsWithTimeout ¶
func NewUpdateUPCParamsWithTimeout(timeout time.Duration) *UpdateUPCParams
NewUpdateUPCParamsWithTimeout creates a new UpdateUPCParams object with the ability to set a timeout on a request.
func (*UpdateUPCParams) SetBody ¶
func (o *UpdateUPCParams) SetBody(body *models.UPCModel)
SetBody adds the body to the update u p c params
func (*UpdateUPCParams) SetCompanyID ¶
func (o *UpdateUPCParams) SetCompanyID(companyID int32)
SetCompanyID adds the companyId to the update u p c params
func (*UpdateUPCParams) SetContext ¶
func (o *UpdateUPCParams) SetContext(ctx context.Context)
SetContext adds the context to the update u p c params
func (*UpdateUPCParams) SetDefaults ¶
func (o *UpdateUPCParams) SetDefaults()
SetDefaults hydrates default values in the update u p c params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUPCParams) SetHTTPClient ¶
func (o *UpdateUPCParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update u p c params
func (*UpdateUPCParams) SetID ¶
func (o *UpdateUPCParams) SetID(id int32)
SetID adds the id to the update u p c params
func (*UpdateUPCParams) SetTimeout ¶
func (o *UpdateUPCParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update u p c params
func (*UpdateUPCParams) SetXAvalaraClient ¶
func (o *UpdateUPCParams) SetXAvalaraClient(xAvalaraClient *string)
SetXAvalaraClient adds the xAvalaraClient to the update u p c params
func (*UpdateUPCParams) WithBody ¶
func (o *UpdateUPCParams) WithBody(body *models.UPCModel) *UpdateUPCParams
WithBody adds the body to the update u p c params
func (*UpdateUPCParams) WithCompanyID ¶
func (o *UpdateUPCParams) WithCompanyID(companyID int32) *UpdateUPCParams
WithCompanyID adds the companyID to the update u p c params
func (*UpdateUPCParams) WithContext ¶
func (o *UpdateUPCParams) WithContext(ctx context.Context) *UpdateUPCParams
WithContext adds the context to the update u p c params
func (*UpdateUPCParams) WithDefaults ¶
func (o *UpdateUPCParams) WithDefaults() *UpdateUPCParams
WithDefaults hydrates default values in the update u p c params (not the query body).
All values with no default are reset to their zero value.
func (*UpdateUPCParams) WithHTTPClient ¶
func (o *UpdateUPCParams) WithHTTPClient(client *http.Client) *UpdateUPCParams
WithHTTPClient adds the HTTPClient to the update u p c params
func (*UpdateUPCParams) WithID ¶
func (o *UpdateUPCParams) WithID(id int32) *UpdateUPCParams
WithID adds the id to the update u p c params
func (*UpdateUPCParams) WithTimeout ¶
func (o *UpdateUPCParams) WithTimeout(timeout time.Duration) *UpdateUPCParams
WithTimeout adds the timeout to the update u p c params
func (*UpdateUPCParams) WithXAvalaraClient ¶
func (o *UpdateUPCParams) WithXAvalaraClient(xAvalaraClient *string) *UpdateUPCParams
WithXAvalaraClient adds the xAvalaraClient to the update u p c params
func (*UpdateUPCParams) WriteToRequest ¶
func (o *UpdateUPCParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateUPCReader ¶
type UpdateUPCReader struct {
// contains filtered or unexported fields
}
UpdateUPCReader is a Reader for the UpdateUPC structure.
func (*UpdateUPCReader) ReadResponse ¶
func (o *UpdateUPCReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUPCUnauthorized ¶
type UpdateUPCUnauthorized struct { }
UpdateUPCUnauthorized describes a response with status code 401, with default header values.
Unauthorized
func NewUpdateUPCUnauthorized ¶
func NewUpdateUPCUnauthorized() *UpdateUPCUnauthorized
NewUpdateUPCUnauthorized creates a UpdateUPCUnauthorized with default headers values
func (*UpdateUPCUnauthorized) Error ¶
func (o *UpdateUPCUnauthorized) Error() string
Source Files
¶
- create_u_p_cs_parameters.go
- create_u_p_cs_responses.go
- delete_u_p_c_parameters.go
- delete_u_p_c_responses.go
- get_u_p_c_parameters.go
- get_u_p_c_responses.go
- list_u_p_cs_by_company_parameters.go
- list_u_p_cs_by_company_responses.go
- query_u_p_cs_parameters.go
- query_u_p_cs_responses.go
- upcs_client.go
- update_u_p_c_parameters.go
- update_u_p_c_responses.go