Documentation ¶
Index ¶
- type Client
- func (a *Client) DeleteAPICustomersIDRatesRateID(params *DeleteAPICustomersIDRatesRateIDParams, ...) (*DeleteAPICustomersIDRatesRateIDNoContent, error)
- func (a *Client) GetAPICustomers(params *GetAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPICustomersOK, error)
- func (a *Client) GetAPICustomersID(params *GetAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPICustomersIDOK, error)
- func (a *Client) GetAPICustomersIDRates(params *GetAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*GetAPICustomersIDRatesOK, error)
- func (a *Client) PatchAPICustomersID(params *PatchAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPICustomersIDOK, error)
- func (a *Client) PatchAPICustomersIDMeta(params *PatchAPICustomersIDMetaParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PatchAPICustomersIDMetaOK, error)
- func (a *Client) PostAPICustomers(params *PostAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPICustomersOK, error)
- func (a *Client) PostAPICustomersIDRates(params *PostAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, ...) (*PostAPICustomersIDRatesOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DeleteAPICustomersIDRatesRateIDNoContent
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) Error() string
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsClientError() bool
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsCode(code int) bool
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsRedirect() bool
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsServerError() bool
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsSuccess() bool
- func (o *DeleteAPICustomersIDRatesRateIDNoContent) String() string
- type DeleteAPICustomersIDRatesRateIDParams
- func NewDeleteAPICustomersIDRatesRateIDParams() *DeleteAPICustomersIDRatesRateIDParams
- func NewDeleteAPICustomersIDRatesRateIDParamsWithContext(ctx context.Context) *DeleteAPICustomersIDRatesRateIDParams
- func NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient(client *http.Client) *DeleteAPICustomersIDRatesRateIDParams
- func NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout(timeout time.Duration) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetContext(ctx context.Context)
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetDefaults()
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetHTTPClient(client *http.Client)
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetID(id int64)
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetRateID(rateID int64)
- func (o *DeleteAPICustomersIDRatesRateIDParams) SetTimeout(timeout time.Duration)
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithContext(ctx context.Context) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithDefaults() *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithHTTPClient(client *http.Client) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithID(id int64) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithRateID(rateID int64) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WithTimeout(timeout time.Duration) *DeleteAPICustomersIDRatesRateIDParams
- func (o *DeleteAPICustomersIDRatesRateIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteAPICustomersIDRatesRateIDReader
- type GetAPICustomersIDOK
- func (o *GetAPICustomersIDOK) Error() string
- func (o *GetAPICustomersIDOK) GetPayload() *models.CustomerEntity
- func (o *GetAPICustomersIDOK) IsClientError() bool
- func (o *GetAPICustomersIDOK) IsCode(code int) bool
- func (o *GetAPICustomersIDOK) IsRedirect() bool
- func (o *GetAPICustomersIDOK) IsServerError() bool
- func (o *GetAPICustomersIDOK) IsSuccess() bool
- func (o *GetAPICustomersIDOK) String() string
- type GetAPICustomersIDParams
- func NewGetAPICustomersIDParams() *GetAPICustomersIDParams
- func NewGetAPICustomersIDParamsWithContext(ctx context.Context) *GetAPICustomersIDParams
- func NewGetAPICustomersIDParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDParams
- func NewGetAPICustomersIDParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) SetContext(ctx context.Context)
- func (o *GetAPICustomersIDParams) SetDefaults()
- func (o *GetAPICustomersIDParams) SetHTTPClient(client *http.Client)
- func (o *GetAPICustomersIDParams) SetID(id string)
- func (o *GetAPICustomersIDParams) SetTimeout(timeout time.Duration)
- func (o *GetAPICustomersIDParams) WithContext(ctx context.Context) *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) WithDefaults() *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) WithHTTPClient(client *http.Client) *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) WithID(id string) *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) WithTimeout(timeout time.Duration) *GetAPICustomersIDParams
- func (o *GetAPICustomersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPICustomersIDRatesOK
- func (o *GetAPICustomersIDRatesOK) Error() string
- func (o *GetAPICustomersIDRatesOK) GetPayload() []*models.CustomerRate
- func (o *GetAPICustomersIDRatesOK) IsClientError() bool
- func (o *GetAPICustomersIDRatesOK) IsCode(code int) bool
- func (o *GetAPICustomersIDRatesOK) IsRedirect() bool
- func (o *GetAPICustomersIDRatesOK) IsServerError() bool
- func (o *GetAPICustomersIDRatesOK) IsSuccess() bool
- func (o *GetAPICustomersIDRatesOK) String() string
- type GetAPICustomersIDRatesParams
- func NewGetAPICustomersIDRatesParams() *GetAPICustomersIDRatesParams
- func NewGetAPICustomersIDRatesParamsWithContext(ctx context.Context) *GetAPICustomersIDRatesParams
- func NewGetAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDRatesParams
- func NewGetAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) SetContext(ctx context.Context)
- func (o *GetAPICustomersIDRatesParams) SetDefaults()
- func (o *GetAPICustomersIDRatesParams) SetHTTPClient(client *http.Client)
- func (o *GetAPICustomersIDRatesParams) SetID(id int64)
- func (o *GetAPICustomersIDRatesParams) SetTimeout(timeout time.Duration)
- func (o *GetAPICustomersIDRatesParams) WithContext(ctx context.Context) *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) WithDefaults() *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) WithHTTPClient(client *http.Client) *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) WithID(id int64) *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) WithTimeout(timeout time.Duration) *GetAPICustomersIDRatesParams
- func (o *GetAPICustomersIDRatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPICustomersIDRatesReader
- type GetAPICustomersIDReader
- type GetAPICustomersOK
- func (o *GetAPICustomersOK) Error() string
- func (o *GetAPICustomersOK) GetPayload() []*models.CustomerCollection
- func (o *GetAPICustomersOK) IsClientError() bool
- func (o *GetAPICustomersOK) IsCode(code int) bool
- func (o *GetAPICustomersOK) IsRedirect() bool
- func (o *GetAPICustomersOK) IsServerError() bool
- func (o *GetAPICustomersOK) IsSuccess() bool
- func (o *GetAPICustomersOK) String() string
- type GetAPICustomersParams
- func NewGetAPICustomersParams() *GetAPICustomersParams
- func NewGetAPICustomersParamsWithContext(ctx context.Context) *GetAPICustomersParams
- func NewGetAPICustomersParamsWithHTTPClient(client *http.Client) *GetAPICustomersParams
- func NewGetAPICustomersParamsWithTimeout(timeout time.Duration) *GetAPICustomersParams
- func (o *GetAPICustomersParams) SetContext(ctx context.Context)
- func (o *GetAPICustomersParams) SetDefaults()
- func (o *GetAPICustomersParams) SetHTTPClient(client *http.Client)
- func (o *GetAPICustomersParams) SetOrder(order string)
- func (o *GetAPICustomersParams) SetOrderBy(orderBy string)
- func (o *GetAPICustomersParams) SetTerm(term *string)
- func (o *GetAPICustomersParams) SetTimeout(timeout time.Duration)
- func (o *GetAPICustomersParams) SetVisible(visible string)
- func (o *GetAPICustomersParams) WithContext(ctx context.Context) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithDefaults() *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithHTTPClient(client *http.Client) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithOrder(order string) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithOrderBy(orderBy string) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithTerm(term *string) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithTimeout(timeout time.Duration) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WithVisible(visible string) *GetAPICustomersParams
- func (o *GetAPICustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetAPICustomersReader
- type PatchAPICustomersIDMetaBody
- func (o *PatchAPICustomersIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *PatchAPICustomersIDMetaBody) MarshalBinary() ([]byte, error)
- func (o *PatchAPICustomersIDMetaBody) UnmarshalBinary(b []byte) error
- func (o *PatchAPICustomersIDMetaBody) Validate(formats strfmt.Registry) error
- type PatchAPICustomersIDMetaOK
- func (o *PatchAPICustomersIDMetaOK) Error() string
- func (o *PatchAPICustomersIDMetaOK) GetPayload() *models.CustomerEntity
- func (o *PatchAPICustomersIDMetaOK) IsClientError() bool
- func (o *PatchAPICustomersIDMetaOK) IsCode(code int) bool
- func (o *PatchAPICustomersIDMetaOK) IsRedirect() bool
- func (o *PatchAPICustomersIDMetaOK) IsServerError() bool
- func (o *PatchAPICustomersIDMetaOK) IsSuccess() bool
- func (o *PatchAPICustomersIDMetaOK) String() string
- type PatchAPICustomersIDMetaParams
- func NewPatchAPICustomersIDMetaParams() *PatchAPICustomersIDMetaParams
- func NewPatchAPICustomersIDMetaParamsWithContext(ctx context.Context) *PatchAPICustomersIDMetaParams
- func NewPatchAPICustomersIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDMetaParams
- func NewPatchAPICustomersIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) SetBody(body PatchAPICustomersIDMetaBody)
- func (o *PatchAPICustomersIDMetaParams) SetContext(ctx context.Context)
- func (o *PatchAPICustomersIDMetaParams) SetDefaults()
- func (o *PatchAPICustomersIDMetaParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPICustomersIDMetaParams) SetID(id int64)
- func (o *PatchAPICustomersIDMetaParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPICustomersIDMetaParams) WithBody(body PatchAPICustomersIDMetaBody) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WithContext(ctx context.Context) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WithDefaults() *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WithID(id int64) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPICustomersIDMetaParams
- func (o *PatchAPICustomersIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPICustomersIDMetaReader
- type PatchAPICustomersIDOK
- func (o *PatchAPICustomersIDOK) Error() string
- func (o *PatchAPICustomersIDOK) GetPayload() *models.CustomerEntity
- func (o *PatchAPICustomersIDOK) IsClientError() bool
- func (o *PatchAPICustomersIDOK) IsCode(code int) bool
- func (o *PatchAPICustomersIDOK) IsRedirect() bool
- func (o *PatchAPICustomersIDOK) IsServerError() bool
- func (o *PatchAPICustomersIDOK) IsSuccess() bool
- func (o *PatchAPICustomersIDOK) String() string
- type PatchAPICustomersIDParams
- func NewPatchAPICustomersIDParams() *PatchAPICustomersIDParams
- func NewPatchAPICustomersIDParamsWithContext(ctx context.Context) *PatchAPICustomersIDParams
- func NewPatchAPICustomersIDParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDParams
- func NewPatchAPICustomersIDParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) SetBody(body *models.CustomerEditForm)
- func (o *PatchAPICustomersIDParams) SetContext(ctx context.Context)
- func (o *PatchAPICustomersIDParams) SetDefaults()
- func (o *PatchAPICustomersIDParams) SetHTTPClient(client *http.Client)
- func (o *PatchAPICustomersIDParams) SetID(id int64)
- func (o *PatchAPICustomersIDParams) SetTimeout(timeout time.Duration)
- func (o *PatchAPICustomersIDParams) WithBody(body *models.CustomerEditForm) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WithContext(ctx context.Context) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WithDefaults() *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WithHTTPClient(client *http.Client) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WithID(id int64) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WithTimeout(timeout time.Duration) *PatchAPICustomersIDParams
- func (o *PatchAPICustomersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PatchAPICustomersIDReader
- type PostAPICustomersIDRatesOK
- func (o *PostAPICustomersIDRatesOK) Error() string
- func (o *PostAPICustomersIDRatesOK) GetPayload() *models.CustomerRate
- func (o *PostAPICustomersIDRatesOK) IsClientError() bool
- func (o *PostAPICustomersIDRatesOK) IsCode(code int) bool
- func (o *PostAPICustomersIDRatesOK) IsRedirect() bool
- func (o *PostAPICustomersIDRatesOK) IsServerError() bool
- func (o *PostAPICustomersIDRatesOK) IsSuccess() bool
- func (o *PostAPICustomersIDRatesOK) String() string
- type PostAPICustomersIDRatesParams
- func NewPostAPICustomersIDRatesParams() *PostAPICustomersIDRatesParams
- func NewPostAPICustomersIDRatesParamsWithContext(ctx context.Context) *PostAPICustomersIDRatesParams
- func NewPostAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *PostAPICustomersIDRatesParams
- func NewPostAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) SetBody(body *models.CustomerRateForm)
- func (o *PostAPICustomersIDRatesParams) SetContext(ctx context.Context)
- func (o *PostAPICustomersIDRatesParams) SetDefaults()
- func (o *PostAPICustomersIDRatesParams) SetHTTPClient(client *http.Client)
- func (o *PostAPICustomersIDRatesParams) SetID(id int64)
- func (o *PostAPICustomersIDRatesParams) SetTimeout(timeout time.Duration)
- func (o *PostAPICustomersIDRatesParams) WithBody(body *models.CustomerRateForm) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WithContext(ctx context.Context) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WithDefaults() *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WithHTTPClient(client *http.Client) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WithID(id int64) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WithTimeout(timeout time.Duration) *PostAPICustomersIDRatesParams
- func (o *PostAPICustomersIDRatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPICustomersIDRatesReader
- type PostAPICustomersOK
- func (o *PostAPICustomersOK) Error() string
- func (o *PostAPICustomersOK) GetPayload() *models.CustomerEntity
- func (o *PostAPICustomersOK) IsClientError() bool
- func (o *PostAPICustomersOK) IsCode(code int) bool
- func (o *PostAPICustomersOK) IsRedirect() bool
- func (o *PostAPICustomersOK) IsServerError() bool
- func (o *PostAPICustomersOK) IsSuccess() bool
- func (o *PostAPICustomersOK) String() string
- type PostAPICustomersParams
- func NewPostAPICustomersParams() *PostAPICustomersParams
- func NewPostAPICustomersParamsWithContext(ctx context.Context) *PostAPICustomersParams
- func NewPostAPICustomersParamsWithHTTPClient(client *http.Client) *PostAPICustomersParams
- func NewPostAPICustomersParamsWithTimeout(timeout time.Duration) *PostAPICustomersParams
- func (o *PostAPICustomersParams) SetBody(body *models.CustomerEditForm)
- func (o *PostAPICustomersParams) SetContext(ctx context.Context)
- func (o *PostAPICustomersParams) SetDefaults()
- func (o *PostAPICustomersParams) SetHTTPClient(client *http.Client)
- func (o *PostAPICustomersParams) SetTimeout(timeout time.Duration)
- func (o *PostAPICustomersParams) WithBody(body *models.CustomerEditForm) *PostAPICustomersParams
- func (o *PostAPICustomersParams) WithContext(ctx context.Context) *PostAPICustomersParams
- func (o *PostAPICustomersParams) WithDefaults() *PostAPICustomersParams
- func (o *PostAPICustomersParams) WithHTTPClient(client *http.Client) *PostAPICustomersParams
- func (o *PostAPICustomersParams) WithTimeout(timeout time.Duration) *PostAPICustomersParams
- func (o *PostAPICustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PostAPICustomersReader
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 customer API
func (*Client) DeleteAPICustomersIDRatesRateID ¶
func (a *Client) DeleteAPICustomersIDRatesRateID(params *DeleteAPICustomersIDRatesRateIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPICustomersIDRatesRateIDNoContent, error)
DeleteAPICustomersIDRatesRateID deletes one rate for an customer
func (*Client) GetAPICustomers ¶
func (a *Client) GetAPICustomers(params *GetAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersOK, error)
GetAPICustomers returns a collection of customers
func (*Client) GetAPICustomersID ¶
func (a *Client) GetAPICustomersID(params *GetAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDOK, error)
GetAPICustomersID returns one customer
func (*Client) GetAPICustomersIDRates ¶
func (a *Client) GetAPICustomersIDRates(params *GetAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDRatesOK, error)
GetAPICustomersIDRates returns a collection of all rates for one customer
func (*Client) PatchAPICustomersID ¶
func (a *Client) PatchAPICustomersID(params *PatchAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDOK, error)
PatchAPICustomersID updates an existing customer
Update an existing customer, you can pass all or just a subset of all attributes
func (*Client) PatchAPICustomersIDMeta ¶
func (a *Client) PatchAPICustomersIDMeta(params *PatchAPICustomersIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDMetaOK, error)
PatchAPICustomersIDMeta sets the value of a meta field for an existing customer
func (*Client) PostAPICustomers ¶
func (a *Client) PostAPICustomers(params *PostAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersOK, error)
PostAPICustomers creates a new customer
Creates a new customer and returns it afterwards
func (*Client) PostAPICustomersIDRates ¶
func (a *Client) PostAPICustomersIDRates(params *PostAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersIDRatesOK, error)
PostAPICustomersIDRates adds a new rate to a customer
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 { DeleteAPICustomersIDRatesRateID(params *DeleteAPICustomersIDRatesRateIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeleteAPICustomersIDRatesRateIDNoContent, error) GetAPICustomers(params *GetAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersOK, error) GetAPICustomersID(params *GetAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDOK, error) GetAPICustomersIDRates(params *GetAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetAPICustomersIDRatesOK, error) PatchAPICustomersID(params *PatchAPICustomersIDParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDOK, error) PatchAPICustomersIDMeta(params *PatchAPICustomersIDMetaParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchAPICustomersIDMetaOK, error) PostAPICustomers(params *PostAPICustomersParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersOK, error) PostAPICustomersIDRates(params *PostAPICustomersIDRatesParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PostAPICustomersIDRatesOK, 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 customer API client.
type DeleteAPICustomersIDRatesRateIDNoContent ¶
type DeleteAPICustomersIDRatesRateIDNoContent struct { }
DeleteAPICustomersIDRatesRateIDNoContent describes a response with status code 204, with default header values.
Returns no content: 204 on successful delete
func NewDeleteAPICustomersIDRatesRateIDNoContent ¶
func NewDeleteAPICustomersIDRatesRateIDNoContent() *DeleteAPICustomersIDRatesRateIDNoContent
NewDeleteAPICustomersIDRatesRateIDNoContent creates a DeleteAPICustomersIDRatesRateIDNoContent with default headers values
func (*DeleteAPICustomersIDRatesRateIDNoContent) Error ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) Error() string
func (*DeleteAPICustomersIDRatesRateIDNoContent) IsClientError ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsClientError() bool
IsClientError returns true when this delete Api customers Id rates rate Id no content response has a 4xx status code
func (*DeleteAPICustomersIDRatesRateIDNoContent) IsCode ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsCode(code int) bool
IsCode returns true when this delete Api customers Id rates rate Id no content response a status code equal to that given
func (*DeleteAPICustomersIDRatesRateIDNoContent) IsRedirect ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsRedirect() bool
IsRedirect returns true when this delete Api customers Id rates rate Id no content response has a 3xx status code
func (*DeleteAPICustomersIDRatesRateIDNoContent) IsServerError ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsServerError() bool
IsServerError returns true when this delete Api customers Id rates rate Id no content response has a 5xx status code
func (*DeleteAPICustomersIDRatesRateIDNoContent) IsSuccess ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) IsSuccess() bool
IsSuccess returns true when this delete Api customers Id rates rate Id no content response has a 2xx status code
func (*DeleteAPICustomersIDRatesRateIDNoContent) String ¶
func (o *DeleteAPICustomersIDRatesRateIDNoContent) String() string
type DeleteAPICustomersIDRatesRateIDParams ¶
type DeleteAPICustomersIDRatesRateIDParams struct { /* ID. The customer whose rate will be removed */ ID int64 /* RateID. The rate to remove */ RateID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteAPICustomersIDRatesRateIDParams contains all the parameters to send to the API endpoint
for the delete API customers ID rates rate ID operation. Typically these are written to a http.Request.
func NewDeleteAPICustomersIDRatesRateIDParams ¶
func NewDeleteAPICustomersIDRatesRateIDParams() *DeleteAPICustomersIDRatesRateIDParams
NewDeleteAPICustomersIDRatesRateIDParams creates a new DeleteAPICustomersIDRatesRateIDParams 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 NewDeleteAPICustomersIDRatesRateIDParamsWithContext ¶
func NewDeleteAPICustomersIDRatesRateIDParamsWithContext(ctx context.Context) *DeleteAPICustomersIDRatesRateIDParams
NewDeleteAPICustomersIDRatesRateIDParamsWithContext creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a context for a request.
func NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient ¶
func NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient(client *http.Client) *DeleteAPICustomersIDRatesRateIDParams
NewDeleteAPICustomersIDRatesRateIDParamsWithHTTPClient creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout ¶
func NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout(timeout time.Duration) *DeleteAPICustomersIDRatesRateIDParams
NewDeleteAPICustomersIDRatesRateIDParamsWithTimeout creates a new DeleteAPICustomersIDRatesRateIDParams object with the ability to set a timeout on a request.
func (*DeleteAPICustomersIDRatesRateIDParams) SetContext ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetContext(ctx context.Context)
SetContext adds the context to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) SetDefaults ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetDefaults()
SetDefaults hydrates default values in the delete API customers ID rates rate ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPICustomersIDRatesRateIDParams) SetHTTPClient ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) SetID ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetID(id int64)
SetID adds the id to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) SetRateID ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetRateID(rateID int64)
SetRateID adds the rateId to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) SetTimeout ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WithContext ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithContext(ctx context.Context) *DeleteAPICustomersIDRatesRateIDParams
WithContext adds the context to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WithDefaults ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithDefaults() *DeleteAPICustomersIDRatesRateIDParams
WithDefaults hydrates default values in the delete API customers ID rates rate ID params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteAPICustomersIDRatesRateIDParams) WithHTTPClient ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithHTTPClient(client *http.Client) *DeleteAPICustomersIDRatesRateIDParams
WithHTTPClient adds the HTTPClient to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WithID ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithID(id int64) *DeleteAPICustomersIDRatesRateIDParams
WithID adds the id to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WithRateID ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithRateID(rateID int64) *DeleteAPICustomersIDRatesRateIDParams
WithRateID adds the rateID to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WithTimeout ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WithTimeout(timeout time.Duration) *DeleteAPICustomersIDRatesRateIDParams
WithTimeout adds the timeout to the delete API customers ID rates rate ID params
func (*DeleteAPICustomersIDRatesRateIDParams) WriteToRequest ¶
func (o *DeleteAPICustomersIDRatesRateIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteAPICustomersIDRatesRateIDReader ¶
type DeleteAPICustomersIDRatesRateIDReader struct {
// contains filtered or unexported fields
}
DeleteAPICustomersIDRatesRateIDReader is a Reader for the DeleteAPICustomersIDRatesRateID structure.
func (*DeleteAPICustomersIDRatesRateIDReader) ReadResponse ¶
func (o *DeleteAPICustomersIDRatesRateIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPICustomersIDOK ¶
type GetAPICustomersIDOK struct {
Payload *models.CustomerEntity
}
GetAPICustomersIDOK describes a response with status code 200, with default header values.
Returns one customer entity
func NewGetAPICustomersIDOK ¶
func NewGetAPICustomersIDOK() *GetAPICustomersIDOK
NewGetAPICustomersIDOK creates a GetAPICustomersIDOK with default headers values
func (*GetAPICustomersIDOK) Error ¶
func (o *GetAPICustomersIDOK) Error() string
func (*GetAPICustomersIDOK) GetPayload ¶
func (o *GetAPICustomersIDOK) GetPayload() *models.CustomerEntity
func (*GetAPICustomersIDOK) IsClientError ¶
func (o *GetAPICustomersIDOK) IsClientError() bool
IsClientError returns true when this get Api customers Id o k response has a 4xx status code
func (*GetAPICustomersIDOK) IsCode ¶
func (o *GetAPICustomersIDOK) IsCode(code int) bool
IsCode returns true when this get Api customers Id o k response a status code equal to that given
func (*GetAPICustomersIDOK) IsRedirect ¶
func (o *GetAPICustomersIDOK) IsRedirect() bool
IsRedirect returns true when this get Api customers Id o k response has a 3xx status code
func (*GetAPICustomersIDOK) IsServerError ¶
func (o *GetAPICustomersIDOK) IsServerError() bool
IsServerError returns true when this get Api customers Id o k response has a 5xx status code
func (*GetAPICustomersIDOK) IsSuccess ¶
func (o *GetAPICustomersIDOK) IsSuccess() bool
IsSuccess returns true when this get Api customers Id o k response has a 2xx status code
func (*GetAPICustomersIDOK) String ¶
func (o *GetAPICustomersIDOK) String() string
type GetAPICustomersIDParams ¶
type GetAPICustomersIDParams struct { // ID. ID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPICustomersIDParams contains all the parameters to send to the API endpoint
for the get API customers ID operation. Typically these are written to a http.Request.
func NewGetAPICustomersIDParams ¶
func NewGetAPICustomersIDParams() *GetAPICustomersIDParams
NewGetAPICustomersIDParams creates a new GetAPICustomersIDParams 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 NewGetAPICustomersIDParamsWithContext ¶
func NewGetAPICustomersIDParamsWithContext(ctx context.Context) *GetAPICustomersIDParams
NewGetAPICustomersIDParamsWithContext creates a new GetAPICustomersIDParams object with the ability to set a context for a request.
func NewGetAPICustomersIDParamsWithHTTPClient ¶
func NewGetAPICustomersIDParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDParams
NewGetAPICustomersIDParamsWithHTTPClient creates a new GetAPICustomersIDParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPICustomersIDParamsWithTimeout ¶
func NewGetAPICustomersIDParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDParams
NewGetAPICustomersIDParamsWithTimeout creates a new GetAPICustomersIDParams object with the ability to set a timeout on a request.
func (*GetAPICustomersIDParams) SetContext ¶
func (o *GetAPICustomersIDParams) SetContext(ctx context.Context)
SetContext adds the context to the get API customers ID params
func (*GetAPICustomersIDParams) SetDefaults ¶
func (o *GetAPICustomersIDParams) SetDefaults()
SetDefaults hydrates default values in the get API customers ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersIDParams) SetHTTPClient ¶
func (o *GetAPICustomersIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API customers ID params
func (*GetAPICustomersIDParams) SetID ¶
func (o *GetAPICustomersIDParams) SetID(id string)
SetID adds the id to the get API customers ID params
func (*GetAPICustomersIDParams) SetTimeout ¶
func (o *GetAPICustomersIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API customers ID params
func (*GetAPICustomersIDParams) WithContext ¶
func (o *GetAPICustomersIDParams) WithContext(ctx context.Context) *GetAPICustomersIDParams
WithContext adds the context to the get API customers ID params
func (*GetAPICustomersIDParams) WithDefaults ¶
func (o *GetAPICustomersIDParams) WithDefaults() *GetAPICustomersIDParams
WithDefaults hydrates default values in the get API customers ID params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersIDParams) WithHTTPClient ¶
func (o *GetAPICustomersIDParams) WithHTTPClient(client *http.Client) *GetAPICustomersIDParams
WithHTTPClient adds the HTTPClient to the get API customers ID params
func (*GetAPICustomersIDParams) WithID ¶
func (o *GetAPICustomersIDParams) WithID(id string) *GetAPICustomersIDParams
WithID adds the id to the get API customers ID params
func (*GetAPICustomersIDParams) WithTimeout ¶
func (o *GetAPICustomersIDParams) WithTimeout(timeout time.Duration) *GetAPICustomersIDParams
WithTimeout adds the timeout to the get API customers ID params
func (*GetAPICustomersIDParams) WriteToRequest ¶
func (o *GetAPICustomersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPICustomersIDRatesOK ¶
type GetAPICustomersIDRatesOK struct {
Payload []*models.CustomerRate
}
GetAPICustomersIDRatesOK describes a response with status code 200, with default header values.
Returns a collection of customer rate entities
func NewGetAPICustomersIDRatesOK ¶
func NewGetAPICustomersIDRatesOK() *GetAPICustomersIDRatesOK
NewGetAPICustomersIDRatesOK creates a GetAPICustomersIDRatesOK with default headers values
func (*GetAPICustomersIDRatesOK) Error ¶
func (o *GetAPICustomersIDRatesOK) Error() string
func (*GetAPICustomersIDRatesOK) GetPayload ¶
func (o *GetAPICustomersIDRatesOK) GetPayload() []*models.CustomerRate
func (*GetAPICustomersIDRatesOK) IsClientError ¶
func (o *GetAPICustomersIDRatesOK) IsClientError() bool
IsClientError returns true when this get Api customers Id rates o k response has a 4xx status code
func (*GetAPICustomersIDRatesOK) IsCode ¶
func (o *GetAPICustomersIDRatesOK) IsCode(code int) bool
IsCode returns true when this get Api customers Id rates o k response a status code equal to that given
func (*GetAPICustomersIDRatesOK) IsRedirect ¶
func (o *GetAPICustomersIDRatesOK) IsRedirect() bool
IsRedirect returns true when this get Api customers Id rates o k response has a 3xx status code
func (*GetAPICustomersIDRatesOK) IsServerError ¶
func (o *GetAPICustomersIDRatesOK) IsServerError() bool
IsServerError returns true when this get Api customers Id rates o k response has a 5xx status code
func (*GetAPICustomersIDRatesOK) IsSuccess ¶
func (o *GetAPICustomersIDRatesOK) IsSuccess() bool
IsSuccess returns true when this get Api customers Id rates o k response has a 2xx status code
func (*GetAPICustomersIDRatesOK) String ¶
func (o *GetAPICustomersIDRatesOK) String() string
type GetAPICustomersIDRatesParams ¶
type GetAPICustomersIDRatesParams struct { /* ID. The customer whose rates will be returned */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPICustomersIDRatesParams contains all the parameters to send to the API endpoint
for the get API customers ID rates operation. Typically these are written to a http.Request.
func NewGetAPICustomersIDRatesParams ¶
func NewGetAPICustomersIDRatesParams() *GetAPICustomersIDRatesParams
NewGetAPICustomersIDRatesParams creates a new GetAPICustomersIDRatesParams 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 NewGetAPICustomersIDRatesParamsWithContext ¶
func NewGetAPICustomersIDRatesParamsWithContext(ctx context.Context) *GetAPICustomersIDRatesParams
NewGetAPICustomersIDRatesParamsWithContext creates a new GetAPICustomersIDRatesParams object with the ability to set a context for a request.
func NewGetAPICustomersIDRatesParamsWithHTTPClient ¶
func NewGetAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *GetAPICustomersIDRatesParams
NewGetAPICustomersIDRatesParamsWithHTTPClient creates a new GetAPICustomersIDRatesParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPICustomersIDRatesParamsWithTimeout ¶
func NewGetAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *GetAPICustomersIDRatesParams
NewGetAPICustomersIDRatesParamsWithTimeout creates a new GetAPICustomersIDRatesParams object with the ability to set a timeout on a request.
func (*GetAPICustomersIDRatesParams) SetContext ¶
func (o *GetAPICustomersIDRatesParams) SetContext(ctx context.Context)
SetContext adds the context to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) SetDefaults ¶
func (o *GetAPICustomersIDRatesParams) SetDefaults()
SetDefaults hydrates default values in the get API customers ID rates params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersIDRatesParams) SetHTTPClient ¶
func (o *GetAPICustomersIDRatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) SetID ¶
func (o *GetAPICustomersIDRatesParams) SetID(id int64)
SetID adds the id to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) SetTimeout ¶
func (o *GetAPICustomersIDRatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) WithContext ¶
func (o *GetAPICustomersIDRatesParams) WithContext(ctx context.Context) *GetAPICustomersIDRatesParams
WithContext adds the context to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) WithDefaults ¶
func (o *GetAPICustomersIDRatesParams) WithDefaults() *GetAPICustomersIDRatesParams
WithDefaults hydrates default values in the get API customers ID rates params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersIDRatesParams) WithHTTPClient ¶
func (o *GetAPICustomersIDRatesParams) WithHTTPClient(client *http.Client) *GetAPICustomersIDRatesParams
WithHTTPClient adds the HTTPClient to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) WithID ¶
func (o *GetAPICustomersIDRatesParams) WithID(id int64) *GetAPICustomersIDRatesParams
WithID adds the id to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) WithTimeout ¶
func (o *GetAPICustomersIDRatesParams) WithTimeout(timeout time.Duration) *GetAPICustomersIDRatesParams
WithTimeout adds the timeout to the get API customers ID rates params
func (*GetAPICustomersIDRatesParams) WriteToRequest ¶
func (o *GetAPICustomersIDRatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPICustomersIDRatesReader ¶
type GetAPICustomersIDRatesReader struct {
// contains filtered or unexported fields
}
GetAPICustomersIDRatesReader is a Reader for the GetAPICustomersIDRates structure.
func (*GetAPICustomersIDRatesReader) ReadResponse ¶
func (o *GetAPICustomersIDRatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPICustomersIDReader ¶
type GetAPICustomersIDReader struct {
// contains filtered or unexported fields
}
GetAPICustomersIDReader is a Reader for the GetAPICustomersID structure.
func (*GetAPICustomersIDReader) ReadResponse ¶
func (o *GetAPICustomersIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetAPICustomersOK ¶
type GetAPICustomersOK struct {
Payload []*models.CustomerCollection
}
GetAPICustomersOK describes a response with status code 200, with default header values.
Returns a collection of customer entities
func NewGetAPICustomersOK ¶
func NewGetAPICustomersOK() *GetAPICustomersOK
NewGetAPICustomersOK creates a GetAPICustomersOK with default headers values
func (*GetAPICustomersOK) Error ¶
func (o *GetAPICustomersOK) Error() string
func (*GetAPICustomersOK) GetPayload ¶
func (o *GetAPICustomersOK) GetPayload() []*models.CustomerCollection
func (*GetAPICustomersOK) IsClientError ¶
func (o *GetAPICustomersOK) IsClientError() bool
IsClientError returns true when this get Api customers o k response has a 4xx status code
func (*GetAPICustomersOK) IsCode ¶
func (o *GetAPICustomersOK) IsCode(code int) bool
IsCode returns true when this get Api customers o k response a status code equal to that given
func (*GetAPICustomersOK) IsRedirect ¶
func (o *GetAPICustomersOK) IsRedirect() bool
IsRedirect returns true when this get Api customers o k response has a 3xx status code
func (*GetAPICustomersOK) IsServerError ¶
func (o *GetAPICustomersOK) IsServerError() bool
IsServerError returns true when this get Api customers o k response has a 5xx status code
func (*GetAPICustomersOK) IsSuccess ¶
func (o *GetAPICustomersOK) IsSuccess() bool
IsSuccess returns true when this get Api customers o k response has a 2xx status code
func (*GetAPICustomersOK) String ¶
func (o *GetAPICustomersOK) String() string
type GetAPICustomersParams ¶
type GetAPICustomersParams struct { /* Order. The result order. Allowed values: ASC, DESC (default: ASC) */ Order string /* OrderBy. The field by which results will be ordered. Allowed values: id, name (default: name) */ OrderBy string /* Term. Free search term */ Term *string /* Visible. Visibility status to filter activities (1=visible, 2=hidden, 3=both) */ Visible string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetAPICustomersParams contains all the parameters to send to the API endpoint
for the get API customers operation. Typically these are written to a http.Request.
func NewGetAPICustomersParams ¶
func NewGetAPICustomersParams() *GetAPICustomersParams
NewGetAPICustomersParams creates a new GetAPICustomersParams 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 NewGetAPICustomersParamsWithContext ¶
func NewGetAPICustomersParamsWithContext(ctx context.Context) *GetAPICustomersParams
NewGetAPICustomersParamsWithContext creates a new GetAPICustomersParams object with the ability to set a context for a request.
func NewGetAPICustomersParamsWithHTTPClient ¶
func NewGetAPICustomersParamsWithHTTPClient(client *http.Client) *GetAPICustomersParams
NewGetAPICustomersParamsWithHTTPClient creates a new GetAPICustomersParams object with the ability to set a custom HTTPClient for a request.
func NewGetAPICustomersParamsWithTimeout ¶
func NewGetAPICustomersParamsWithTimeout(timeout time.Duration) *GetAPICustomersParams
NewGetAPICustomersParamsWithTimeout creates a new GetAPICustomersParams object with the ability to set a timeout on a request.
func (*GetAPICustomersParams) SetContext ¶
func (o *GetAPICustomersParams) SetContext(ctx context.Context)
SetContext adds the context to the get API customers params
func (*GetAPICustomersParams) SetDefaults ¶
func (o *GetAPICustomersParams) SetDefaults()
SetDefaults hydrates default values in the get API customers params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersParams) SetHTTPClient ¶
func (o *GetAPICustomersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get API customers params
func (*GetAPICustomersParams) SetOrder ¶
func (o *GetAPICustomersParams) SetOrder(order string)
SetOrder adds the order to the get API customers params
func (*GetAPICustomersParams) SetOrderBy ¶
func (o *GetAPICustomersParams) SetOrderBy(orderBy string)
SetOrderBy adds the orderBy to the get API customers params
func (*GetAPICustomersParams) SetTerm ¶
func (o *GetAPICustomersParams) SetTerm(term *string)
SetTerm adds the term to the get API customers params
func (*GetAPICustomersParams) SetTimeout ¶
func (o *GetAPICustomersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get API customers params
func (*GetAPICustomersParams) SetVisible ¶
func (o *GetAPICustomersParams) SetVisible(visible string)
SetVisible adds the visible to the get API customers params
func (*GetAPICustomersParams) WithContext ¶
func (o *GetAPICustomersParams) WithContext(ctx context.Context) *GetAPICustomersParams
WithContext adds the context to the get API customers params
func (*GetAPICustomersParams) WithDefaults ¶
func (o *GetAPICustomersParams) WithDefaults() *GetAPICustomersParams
WithDefaults hydrates default values in the get API customers params (not the query body).
All values with no default are reset to their zero value.
func (*GetAPICustomersParams) WithHTTPClient ¶
func (o *GetAPICustomersParams) WithHTTPClient(client *http.Client) *GetAPICustomersParams
WithHTTPClient adds the HTTPClient to the get API customers params
func (*GetAPICustomersParams) WithOrder ¶
func (o *GetAPICustomersParams) WithOrder(order string) *GetAPICustomersParams
WithOrder adds the order to the get API customers params
func (*GetAPICustomersParams) WithOrderBy ¶
func (o *GetAPICustomersParams) WithOrderBy(orderBy string) *GetAPICustomersParams
WithOrderBy adds the orderBy to the get API customers params
func (*GetAPICustomersParams) WithTerm ¶
func (o *GetAPICustomersParams) WithTerm(term *string) *GetAPICustomersParams
WithTerm adds the term to the get API customers params
func (*GetAPICustomersParams) WithTimeout ¶
func (o *GetAPICustomersParams) WithTimeout(timeout time.Duration) *GetAPICustomersParams
WithTimeout adds the timeout to the get API customers params
func (*GetAPICustomersParams) WithVisible ¶
func (o *GetAPICustomersParams) WithVisible(visible string) *GetAPICustomersParams
WithVisible adds the visible to the get API customers params
func (*GetAPICustomersParams) WriteToRequest ¶
func (o *GetAPICustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetAPICustomersReader ¶
type GetAPICustomersReader struct {
// contains filtered or unexported fields
}
GetAPICustomersReader is a Reader for the GetAPICustomers structure.
func (*GetAPICustomersReader) ReadResponse ¶
func (o *GetAPICustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPICustomersIDMetaBody ¶
type PatchAPICustomersIDMetaBody struct { // The meta-field name // Required: true Name *string `json:"name"` // The meta-field value // Required: true Value *string `json:"value"` }
PatchAPICustomersIDMetaBody patch API customers ID meta body swagger:model PatchAPICustomersIDMetaBody
func (*PatchAPICustomersIDMetaBody) ContextValidate ¶
func (o *PatchAPICustomersIDMetaBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this patch API customers ID meta body based on context it is used
func (*PatchAPICustomersIDMetaBody) MarshalBinary ¶
func (o *PatchAPICustomersIDMetaBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchAPICustomersIDMetaBody) UnmarshalBinary ¶
func (o *PatchAPICustomersIDMetaBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchAPICustomersIDMetaOK ¶
type PatchAPICustomersIDMetaOK struct {
Payload *models.CustomerEntity
}
PatchAPICustomersIDMetaOK describes a response with status code 200, with default header values.
Sets the value of an existing/configured meta-field. You cannot create unknown meta-fields, if the given name is not a configured meta-field, this will return an exception.
func NewPatchAPICustomersIDMetaOK ¶
func NewPatchAPICustomersIDMetaOK() *PatchAPICustomersIDMetaOK
NewPatchAPICustomersIDMetaOK creates a PatchAPICustomersIDMetaOK with default headers values
func (*PatchAPICustomersIDMetaOK) Error ¶
func (o *PatchAPICustomersIDMetaOK) Error() string
func (*PatchAPICustomersIDMetaOK) GetPayload ¶
func (o *PatchAPICustomersIDMetaOK) GetPayload() *models.CustomerEntity
func (*PatchAPICustomersIDMetaOK) IsClientError ¶
func (o *PatchAPICustomersIDMetaOK) IsClientError() bool
IsClientError returns true when this patch Api customers Id meta o k response has a 4xx status code
func (*PatchAPICustomersIDMetaOK) IsCode ¶
func (o *PatchAPICustomersIDMetaOK) IsCode(code int) bool
IsCode returns true when this patch Api customers Id meta o k response a status code equal to that given
func (*PatchAPICustomersIDMetaOK) IsRedirect ¶
func (o *PatchAPICustomersIDMetaOK) IsRedirect() bool
IsRedirect returns true when this patch Api customers Id meta o k response has a 3xx status code
func (*PatchAPICustomersIDMetaOK) IsServerError ¶
func (o *PatchAPICustomersIDMetaOK) IsServerError() bool
IsServerError returns true when this patch Api customers Id meta o k response has a 5xx status code
func (*PatchAPICustomersIDMetaOK) IsSuccess ¶
func (o *PatchAPICustomersIDMetaOK) IsSuccess() bool
IsSuccess returns true when this patch Api customers Id meta o k response has a 2xx status code
func (*PatchAPICustomersIDMetaOK) String ¶
func (o *PatchAPICustomersIDMetaOK) String() string
type PatchAPICustomersIDMetaParams ¶
type PatchAPICustomersIDMetaParams struct { // Body. Body PatchAPICustomersIDMetaBody /* ID. Customer record ID to set the meta-field value for */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPICustomersIDMetaParams contains all the parameters to send to the API endpoint
for the patch API customers ID meta operation. Typically these are written to a http.Request.
func NewPatchAPICustomersIDMetaParams ¶
func NewPatchAPICustomersIDMetaParams() *PatchAPICustomersIDMetaParams
NewPatchAPICustomersIDMetaParams creates a new PatchAPICustomersIDMetaParams 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 NewPatchAPICustomersIDMetaParamsWithContext ¶
func NewPatchAPICustomersIDMetaParamsWithContext(ctx context.Context) *PatchAPICustomersIDMetaParams
NewPatchAPICustomersIDMetaParamsWithContext creates a new PatchAPICustomersIDMetaParams object with the ability to set a context for a request.
func NewPatchAPICustomersIDMetaParamsWithHTTPClient ¶
func NewPatchAPICustomersIDMetaParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDMetaParams
NewPatchAPICustomersIDMetaParamsWithHTTPClient creates a new PatchAPICustomersIDMetaParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPICustomersIDMetaParamsWithTimeout ¶
func NewPatchAPICustomersIDMetaParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDMetaParams
NewPatchAPICustomersIDMetaParamsWithTimeout creates a new PatchAPICustomersIDMetaParams object with the ability to set a timeout on a request.
func (*PatchAPICustomersIDMetaParams) SetBody ¶
func (o *PatchAPICustomersIDMetaParams) SetBody(body PatchAPICustomersIDMetaBody)
SetBody adds the body to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) SetContext ¶
func (o *PatchAPICustomersIDMetaParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) SetDefaults ¶
func (o *PatchAPICustomersIDMetaParams) SetDefaults()
SetDefaults hydrates default values in the patch API customers ID meta params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPICustomersIDMetaParams) SetHTTPClient ¶
func (o *PatchAPICustomersIDMetaParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) SetID ¶
func (o *PatchAPICustomersIDMetaParams) SetID(id int64)
SetID adds the id to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) SetTimeout ¶
func (o *PatchAPICustomersIDMetaParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WithBody ¶
func (o *PatchAPICustomersIDMetaParams) WithBody(body PatchAPICustomersIDMetaBody) *PatchAPICustomersIDMetaParams
WithBody adds the body to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WithContext ¶
func (o *PatchAPICustomersIDMetaParams) WithContext(ctx context.Context) *PatchAPICustomersIDMetaParams
WithContext adds the context to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WithDefaults ¶
func (o *PatchAPICustomersIDMetaParams) WithDefaults() *PatchAPICustomersIDMetaParams
WithDefaults hydrates default values in the patch API customers ID meta params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPICustomersIDMetaParams) WithHTTPClient ¶
func (o *PatchAPICustomersIDMetaParams) WithHTTPClient(client *http.Client) *PatchAPICustomersIDMetaParams
WithHTTPClient adds the HTTPClient to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WithID ¶
func (o *PatchAPICustomersIDMetaParams) WithID(id int64) *PatchAPICustomersIDMetaParams
WithID adds the id to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WithTimeout ¶
func (o *PatchAPICustomersIDMetaParams) WithTimeout(timeout time.Duration) *PatchAPICustomersIDMetaParams
WithTimeout adds the timeout to the patch API customers ID meta params
func (*PatchAPICustomersIDMetaParams) WriteToRequest ¶
func (o *PatchAPICustomersIDMetaParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPICustomersIDMetaReader ¶
type PatchAPICustomersIDMetaReader struct {
// contains filtered or unexported fields
}
PatchAPICustomersIDMetaReader is a Reader for the PatchAPICustomersIDMeta structure.
func (*PatchAPICustomersIDMetaReader) ReadResponse ¶
func (o *PatchAPICustomersIDMetaReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PatchAPICustomersIDOK ¶
type PatchAPICustomersIDOK struct {
Payload *models.CustomerEntity
}
PatchAPICustomersIDOK describes a response with status code 200, with default header values.
Returns the updated customer
func NewPatchAPICustomersIDOK ¶
func NewPatchAPICustomersIDOK() *PatchAPICustomersIDOK
NewPatchAPICustomersIDOK creates a PatchAPICustomersIDOK with default headers values
func (*PatchAPICustomersIDOK) Error ¶
func (o *PatchAPICustomersIDOK) Error() string
func (*PatchAPICustomersIDOK) GetPayload ¶
func (o *PatchAPICustomersIDOK) GetPayload() *models.CustomerEntity
func (*PatchAPICustomersIDOK) IsClientError ¶
func (o *PatchAPICustomersIDOK) IsClientError() bool
IsClientError returns true when this patch Api customers Id o k response has a 4xx status code
func (*PatchAPICustomersIDOK) IsCode ¶
func (o *PatchAPICustomersIDOK) IsCode(code int) bool
IsCode returns true when this patch Api customers Id o k response a status code equal to that given
func (*PatchAPICustomersIDOK) IsRedirect ¶
func (o *PatchAPICustomersIDOK) IsRedirect() bool
IsRedirect returns true when this patch Api customers Id o k response has a 3xx status code
func (*PatchAPICustomersIDOK) IsServerError ¶
func (o *PatchAPICustomersIDOK) IsServerError() bool
IsServerError returns true when this patch Api customers Id o k response has a 5xx status code
func (*PatchAPICustomersIDOK) IsSuccess ¶
func (o *PatchAPICustomersIDOK) IsSuccess() bool
IsSuccess returns true when this patch Api customers Id o k response has a 2xx status code
func (*PatchAPICustomersIDOK) String ¶
func (o *PatchAPICustomersIDOK) String() string
type PatchAPICustomersIDParams ¶
type PatchAPICustomersIDParams struct { // Body. Body *models.CustomerEditForm /* ID. Customer ID to update */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PatchAPICustomersIDParams contains all the parameters to send to the API endpoint
for the patch API customers ID operation. Typically these are written to a http.Request.
func NewPatchAPICustomersIDParams ¶
func NewPatchAPICustomersIDParams() *PatchAPICustomersIDParams
NewPatchAPICustomersIDParams creates a new PatchAPICustomersIDParams 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 NewPatchAPICustomersIDParamsWithContext ¶
func NewPatchAPICustomersIDParamsWithContext(ctx context.Context) *PatchAPICustomersIDParams
NewPatchAPICustomersIDParamsWithContext creates a new PatchAPICustomersIDParams object with the ability to set a context for a request.
func NewPatchAPICustomersIDParamsWithHTTPClient ¶
func NewPatchAPICustomersIDParamsWithHTTPClient(client *http.Client) *PatchAPICustomersIDParams
NewPatchAPICustomersIDParamsWithHTTPClient creates a new PatchAPICustomersIDParams object with the ability to set a custom HTTPClient for a request.
func NewPatchAPICustomersIDParamsWithTimeout ¶
func NewPatchAPICustomersIDParamsWithTimeout(timeout time.Duration) *PatchAPICustomersIDParams
NewPatchAPICustomersIDParamsWithTimeout creates a new PatchAPICustomersIDParams object with the ability to set a timeout on a request.
func (*PatchAPICustomersIDParams) SetBody ¶
func (o *PatchAPICustomersIDParams) SetBody(body *models.CustomerEditForm)
SetBody adds the body to the patch API customers ID params
func (*PatchAPICustomersIDParams) SetContext ¶
func (o *PatchAPICustomersIDParams) SetContext(ctx context.Context)
SetContext adds the context to the patch API customers ID params
func (*PatchAPICustomersIDParams) SetDefaults ¶
func (o *PatchAPICustomersIDParams) SetDefaults()
SetDefaults hydrates default values in the patch API customers ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPICustomersIDParams) SetHTTPClient ¶
func (o *PatchAPICustomersIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the patch API customers ID params
func (*PatchAPICustomersIDParams) SetID ¶
func (o *PatchAPICustomersIDParams) SetID(id int64)
SetID adds the id to the patch API customers ID params
func (*PatchAPICustomersIDParams) SetTimeout ¶
func (o *PatchAPICustomersIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the patch API customers ID params
func (*PatchAPICustomersIDParams) WithBody ¶
func (o *PatchAPICustomersIDParams) WithBody(body *models.CustomerEditForm) *PatchAPICustomersIDParams
WithBody adds the body to the patch API customers ID params
func (*PatchAPICustomersIDParams) WithContext ¶
func (o *PatchAPICustomersIDParams) WithContext(ctx context.Context) *PatchAPICustomersIDParams
WithContext adds the context to the patch API customers ID params
func (*PatchAPICustomersIDParams) WithDefaults ¶
func (o *PatchAPICustomersIDParams) WithDefaults() *PatchAPICustomersIDParams
WithDefaults hydrates default values in the patch API customers ID params (not the query body).
All values with no default are reset to their zero value.
func (*PatchAPICustomersIDParams) WithHTTPClient ¶
func (o *PatchAPICustomersIDParams) WithHTTPClient(client *http.Client) *PatchAPICustomersIDParams
WithHTTPClient adds the HTTPClient to the patch API customers ID params
func (*PatchAPICustomersIDParams) WithID ¶
func (o *PatchAPICustomersIDParams) WithID(id int64) *PatchAPICustomersIDParams
WithID adds the id to the patch API customers ID params
func (*PatchAPICustomersIDParams) WithTimeout ¶
func (o *PatchAPICustomersIDParams) WithTimeout(timeout time.Duration) *PatchAPICustomersIDParams
WithTimeout adds the timeout to the patch API customers ID params
func (*PatchAPICustomersIDParams) WriteToRequest ¶
func (o *PatchAPICustomersIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PatchAPICustomersIDReader ¶
type PatchAPICustomersIDReader struct {
// contains filtered or unexported fields
}
PatchAPICustomersIDReader is a Reader for the PatchAPICustomersID structure.
func (*PatchAPICustomersIDReader) ReadResponse ¶
func (o *PatchAPICustomersIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAPICustomersIDRatesOK ¶
type PostAPICustomersIDRatesOK struct {
Payload *models.CustomerRate
}
PostAPICustomersIDRatesOK describes a response with status code 200, with default header values.
Returns the new created rate
func NewPostAPICustomersIDRatesOK ¶
func NewPostAPICustomersIDRatesOK() *PostAPICustomersIDRatesOK
NewPostAPICustomersIDRatesOK creates a PostAPICustomersIDRatesOK with default headers values
func (*PostAPICustomersIDRatesOK) Error ¶
func (o *PostAPICustomersIDRatesOK) Error() string
func (*PostAPICustomersIDRatesOK) GetPayload ¶
func (o *PostAPICustomersIDRatesOK) GetPayload() *models.CustomerRate
func (*PostAPICustomersIDRatesOK) IsClientError ¶
func (o *PostAPICustomersIDRatesOK) IsClientError() bool
IsClientError returns true when this post Api customers Id rates o k response has a 4xx status code
func (*PostAPICustomersIDRatesOK) IsCode ¶
func (o *PostAPICustomersIDRatesOK) IsCode(code int) bool
IsCode returns true when this post Api customers Id rates o k response a status code equal to that given
func (*PostAPICustomersIDRatesOK) IsRedirect ¶
func (o *PostAPICustomersIDRatesOK) IsRedirect() bool
IsRedirect returns true when this post Api customers Id rates o k response has a 3xx status code
func (*PostAPICustomersIDRatesOK) IsServerError ¶
func (o *PostAPICustomersIDRatesOK) IsServerError() bool
IsServerError returns true when this post Api customers Id rates o k response has a 5xx status code
func (*PostAPICustomersIDRatesOK) IsSuccess ¶
func (o *PostAPICustomersIDRatesOK) IsSuccess() bool
IsSuccess returns true when this post Api customers Id rates o k response has a 2xx status code
func (*PostAPICustomersIDRatesOK) String ¶
func (o *PostAPICustomersIDRatesOK) String() string
type PostAPICustomersIDRatesParams ¶
type PostAPICustomersIDRatesParams struct { // Body. Body *models.CustomerRateForm /* ID. The customer to add the rate for */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAPICustomersIDRatesParams contains all the parameters to send to the API endpoint
for the post API customers ID rates operation. Typically these are written to a http.Request.
func NewPostAPICustomersIDRatesParams ¶
func NewPostAPICustomersIDRatesParams() *PostAPICustomersIDRatesParams
NewPostAPICustomersIDRatesParams creates a new PostAPICustomersIDRatesParams 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 NewPostAPICustomersIDRatesParamsWithContext ¶
func NewPostAPICustomersIDRatesParamsWithContext(ctx context.Context) *PostAPICustomersIDRatesParams
NewPostAPICustomersIDRatesParamsWithContext creates a new PostAPICustomersIDRatesParams object with the ability to set a context for a request.
func NewPostAPICustomersIDRatesParamsWithHTTPClient ¶
func NewPostAPICustomersIDRatesParamsWithHTTPClient(client *http.Client) *PostAPICustomersIDRatesParams
NewPostAPICustomersIDRatesParamsWithHTTPClient creates a new PostAPICustomersIDRatesParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPICustomersIDRatesParamsWithTimeout ¶
func NewPostAPICustomersIDRatesParamsWithTimeout(timeout time.Duration) *PostAPICustomersIDRatesParams
NewPostAPICustomersIDRatesParamsWithTimeout creates a new PostAPICustomersIDRatesParams object with the ability to set a timeout on a request.
func (*PostAPICustomersIDRatesParams) SetBody ¶
func (o *PostAPICustomersIDRatesParams) SetBody(body *models.CustomerRateForm)
SetBody adds the body to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) SetContext ¶
func (o *PostAPICustomersIDRatesParams) SetContext(ctx context.Context)
SetContext adds the context to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) SetDefaults ¶
func (o *PostAPICustomersIDRatesParams) SetDefaults()
SetDefaults hydrates default values in the post API customers ID rates params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPICustomersIDRatesParams) SetHTTPClient ¶
func (o *PostAPICustomersIDRatesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) SetID ¶
func (o *PostAPICustomersIDRatesParams) SetID(id int64)
SetID adds the id to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) SetTimeout ¶
func (o *PostAPICustomersIDRatesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WithBody ¶
func (o *PostAPICustomersIDRatesParams) WithBody(body *models.CustomerRateForm) *PostAPICustomersIDRatesParams
WithBody adds the body to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WithContext ¶
func (o *PostAPICustomersIDRatesParams) WithContext(ctx context.Context) *PostAPICustomersIDRatesParams
WithContext adds the context to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WithDefaults ¶
func (o *PostAPICustomersIDRatesParams) WithDefaults() *PostAPICustomersIDRatesParams
WithDefaults hydrates default values in the post API customers ID rates params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPICustomersIDRatesParams) WithHTTPClient ¶
func (o *PostAPICustomersIDRatesParams) WithHTTPClient(client *http.Client) *PostAPICustomersIDRatesParams
WithHTTPClient adds the HTTPClient to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WithID ¶
func (o *PostAPICustomersIDRatesParams) WithID(id int64) *PostAPICustomersIDRatesParams
WithID adds the id to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WithTimeout ¶
func (o *PostAPICustomersIDRatesParams) WithTimeout(timeout time.Duration) *PostAPICustomersIDRatesParams
WithTimeout adds the timeout to the post API customers ID rates params
func (*PostAPICustomersIDRatesParams) WriteToRequest ¶
func (o *PostAPICustomersIDRatesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPICustomersIDRatesReader ¶
type PostAPICustomersIDRatesReader struct {
// contains filtered or unexported fields
}
PostAPICustomersIDRatesReader is a Reader for the PostAPICustomersIDRates structure.
func (*PostAPICustomersIDRatesReader) ReadResponse ¶
func (o *PostAPICustomersIDRatesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PostAPICustomersOK ¶
type PostAPICustomersOK struct {
Payload *models.CustomerEntity
}
PostAPICustomersOK describes a response with status code 200, with default header values.
Returns the new created customer
func NewPostAPICustomersOK ¶
func NewPostAPICustomersOK() *PostAPICustomersOK
NewPostAPICustomersOK creates a PostAPICustomersOK with default headers values
func (*PostAPICustomersOK) Error ¶
func (o *PostAPICustomersOK) Error() string
func (*PostAPICustomersOK) GetPayload ¶
func (o *PostAPICustomersOK) GetPayload() *models.CustomerEntity
func (*PostAPICustomersOK) IsClientError ¶
func (o *PostAPICustomersOK) IsClientError() bool
IsClientError returns true when this post Api customers o k response has a 4xx status code
func (*PostAPICustomersOK) IsCode ¶
func (o *PostAPICustomersOK) IsCode(code int) bool
IsCode returns true when this post Api customers o k response a status code equal to that given
func (*PostAPICustomersOK) IsRedirect ¶
func (o *PostAPICustomersOK) IsRedirect() bool
IsRedirect returns true when this post Api customers o k response has a 3xx status code
func (*PostAPICustomersOK) IsServerError ¶
func (o *PostAPICustomersOK) IsServerError() bool
IsServerError returns true when this post Api customers o k response has a 5xx status code
func (*PostAPICustomersOK) IsSuccess ¶
func (o *PostAPICustomersOK) IsSuccess() bool
IsSuccess returns true when this post Api customers o k response has a 2xx status code
func (*PostAPICustomersOK) String ¶
func (o *PostAPICustomersOK) String() string
type PostAPICustomersParams ¶
type PostAPICustomersParams struct { // Body. Body *models.CustomerEditForm Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PostAPICustomersParams contains all the parameters to send to the API endpoint
for the post API customers operation. Typically these are written to a http.Request.
func NewPostAPICustomersParams ¶
func NewPostAPICustomersParams() *PostAPICustomersParams
NewPostAPICustomersParams creates a new PostAPICustomersParams 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 NewPostAPICustomersParamsWithContext ¶
func NewPostAPICustomersParamsWithContext(ctx context.Context) *PostAPICustomersParams
NewPostAPICustomersParamsWithContext creates a new PostAPICustomersParams object with the ability to set a context for a request.
func NewPostAPICustomersParamsWithHTTPClient ¶
func NewPostAPICustomersParamsWithHTTPClient(client *http.Client) *PostAPICustomersParams
NewPostAPICustomersParamsWithHTTPClient creates a new PostAPICustomersParams object with the ability to set a custom HTTPClient for a request.
func NewPostAPICustomersParamsWithTimeout ¶
func NewPostAPICustomersParamsWithTimeout(timeout time.Duration) *PostAPICustomersParams
NewPostAPICustomersParamsWithTimeout creates a new PostAPICustomersParams object with the ability to set a timeout on a request.
func (*PostAPICustomersParams) SetBody ¶
func (o *PostAPICustomersParams) SetBody(body *models.CustomerEditForm)
SetBody adds the body to the post API customers params
func (*PostAPICustomersParams) SetContext ¶
func (o *PostAPICustomersParams) SetContext(ctx context.Context)
SetContext adds the context to the post API customers params
func (*PostAPICustomersParams) SetDefaults ¶
func (o *PostAPICustomersParams) SetDefaults()
SetDefaults hydrates default values in the post API customers params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPICustomersParams) SetHTTPClient ¶
func (o *PostAPICustomersParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the post API customers params
func (*PostAPICustomersParams) SetTimeout ¶
func (o *PostAPICustomersParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the post API customers params
func (*PostAPICustomersParams) WithBody ¶
func (o *PostAPICustomersParams) WithBody(body *models.CustomerEditForm) *PostAPICustomersParams
WithBody adds the body to the post API customers params
func (*PostAPICustomersParams) WithContext ¶
func (o *PostAPICustomersParams) WithContext(ctx context.Context) *PostAPICustomersParams
WithContext adds the context to the post API customers params
func (*PostAPICustomersParams) WithDefaults ¶
func (o *PostAPICustomersParams) WithDefaults() *PostAPICustomersParams
WithDefaults hydrates default values in the post API customers params (not the query body).
All values with no default are reset to their zero value.
func (*PostAPICustomersParams) WithHTTPClient ¶
func (o *PostAPICustomersParams) WithHTTPClient(client *http.Client) *PostAPICustomersParams
WithHTTPClient adds the HTTPClient to the post API customers params
func (*PostAPICustomersParams) WithTimeout ¶
func (o *PostAPICustomersParams) WithTimeout(timeout time.Duration) *PostAPICustomersParams
WithTimeout adds the timeout to the post API customers params
func (*PostAPICustomersParams) WriteToRequest ¶
func (o *PostAPICustomersParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PostAPICustomersReader ¶
type PostAPICustomersReader struct {
// contains filtered or unexported fields
}
PostAPICustomersReader is a Reader for the PostAPICustomers structure.
func (*PostAPICustomersReader) ReadResponse ¶
func (o *PostAPICustomersReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- customer_client.go
- delete_api_customers_id_rates_rate_id_parameters.go
- delete_api_customers_id_rates_rate_id_responses.go
- get_api_customers_id_parameters.go
- get_api_customers_id_rates_parameters.go
- get_api_customers_id_rates_responses.go
- get_api_customers_id_responses.go
- get_api_customers_parameters.go
- get_api_customers_responses.go
- patch_api_customers_id_meta_parameters.go
- patch_api_customers_id_meta_responses.go
- patch_api_customers_id_parameters.go
- patch_api_customers_id_responses.go
- post_api_customers_id_rates_parameters.go
- post_api_customers_id_rates_responses.go
- post_api_customers_parameters.go
- post_api_customers_responses.go