Documentation ¶
Index ¶
- type Client
- func (a *Client) DiscountManagerCalculateCustomerDiscount(params *DiscountManagerCalculateCustomerDiscountParams, ...) (*DiscountManagerCalculateCustomerDiscountOK, error)
- func (a *Client) DiscountManagerCreateCustomerDiscount(params *DiscountManagerCreateCustomerDiscountParams, ...) (*DiscountManagerCreateCustomerDiscountOK, error)
- func (a *Client) DiscountManagerDeleteCustomerDiscounts(params *DiscountManagerDeleteCustomerDiscountsParams, ...) (*DiscountManagerDeleteCustomerDiscountsOK, error)
- func (a *Client) DiscountManagerDescribeCustomerDiscounts(params *DiscountManagerDescribeCustomerDiscountsParams, ...) (*DiscountManagerDescribeCustomerDiscountsOK, error)
- func (a *Client) DiscountManagerGetCustomerDiscount(params *DiscountManagerGetCustomerDiscountParams, ...) (*DiscountManagerGetCustomerDiscountOK, error)
- func (a *Client) DiscountManagerModifyCustomerDiscount(params *DiscountManagerModifyCustomerDiscountParams, ...) (*DiscountManagerModifyCustomerDiscountOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type DiscountManagerCalculateCustomerDiscountDefault
- func (o *DiscountManagerCalculateCustomerDiscountDefault) Code() int
- func (o *DiscountManagerCalculateCustomerDiscountDefault) Error() string
- func (o *DiscountManagerCalculateCustomerDiscountDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerCalculateCustomerDiscountDefault) IsClientError() bool
- func (o *DiscountManagerCalculateCustomerDiscountDefault) IsCode(code int) bool
- func (o *DiscountManagerCalculateCustomerDiscountDefault) IsRedirect() bool
- func (o *DiscountManagerCalculateCustomerDiscountDefault) IsServerError() bool
- func (o *DiscountManagerCalculateCustomerDiscountDefault) IsSuccess() bool
- func (o *DiscountManagerCalculateCustomerDiscountDefault) String() string
- type DiscountManagerCalculateCustomerDiscountOK
- func (o *DiscountManagerCalculateCustomerDiscountOK) Error() string
- func (o *DiscountManagerCalculateCustomerDiscountOK) GetPayload() *models.NewbillingCalculateCustomerDiscountResponse
- func (o *DiscountManagerCalculateCustomerDiscountOK) IsClientError() bool
- func (o *DiscountManagerCalculateCustomerDiscountOK) IsCode(code int) bool
- func (o *DiscountManagerCalculateCustomerDiscountOK) IsRedirect() bool
- func (o *DiscountManagerCalculateCustomerDiscountOK) IsServerError() bool
- func (o *DiscountManagerCalculateCustomerDiscountOK) IsSuccess() bool
- func (o *DiscountManagerCalculateCustomerDiscountOK) String() string
- type DiscountManagerCalculateCustomerDiscountParams
- func NewDiscountManagerCalculateCustomerDiscountParams() *DiscountManagerCalculateCustomerDiscountParams
- func NewDiscountManagerCalculateCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerCalculateCustomerDiscountParams
- func NewDiscountManagerCalculateCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerCalculateCustomerDiscountParams
- func NewDiscountManagerCalculateCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) SetBody(body *models.NewbillingCalculateCustomerDiscountRequest)
- func (o *DiscountManagerCalculateCustomerDiscountParams) SetContext(ctx context.Context)
- func (o *DiscountManagerCalculateCustomerDiscountParams) SetDefaults()
- func (o *DiscountManagerCalculateCustomerDiscountParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerCalculateCustomerDiscountParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerCalculateCustomerDiscountParams) WithBody(body *models.NewbillingCalculateCustomerDiscountRequest) *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) WithDefaults() *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerCalculateCustomerDiscountParams
- func (o *DiscountManagerCalculateCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerCalculateCustomerDiscountReader
- type DiscountManagerCreateCustomerDiscountDefault
- func (o *DiscountManagerCreateCustomerDiscountDefault) Code() int
- func (o *DiscountManagerCreateCustomerDiscountDefault) Error() string
- func (o *DiscountManagerCreateCustomerDiscountDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerCreateCustomerDiscountDefault) IsClientError() bool
- func (o *DiscountManagerCreateCustomerDiscountDefault) IsCode(code int) bool
- func (o *DiscountManagerCreateCustomerDiscountDefault) IsRedirect() bool
- func (o *DiscountManagerCreateCustomerDiscountDefault) IsServerError() bool
- func (o *DiscountManagerCreateCustomerDiscountDefault) IsSuccess() bool
- func (o *DiscountManagerCreateCustomerDiscountDefault) String() string
- type DiscountManagerCreateCustomerDiscountOK
- func (o *DiscountManagerCreateCustomerDiscountOK) Error() string
- func (o *DiscountManagerCreateCustomerDiscountOK) GetPayload() *models.NewbillingCreateCustomerDiscountResponse
- func (o *DiscountManagerCreateCustomerDiscountOK) IsClientError() bool
- func (o *DiscountManagerCreateCustomerDiscountOK) IsCode(code int) bool
- func (o *DiscountManagerCreateCustomerDiscountOK) IsRedirect() bool
- func (o *DiscountManagerCreateCustomerDiscountOK) IsServerError() bool
- func (o *DiscountManagerCreateCustomerDiscountOK) IsSuccess() bool
- func (o *DiscountManagerCreateCustomerDiscountOK) String() string
- type DiscountManagerCreateCustomerDiscountParams
- func NewDiscountManagerCreateCustomerDiscountParams() *DiscountManagerCreateCustomerDiscountParams
- func NewDiscountManagerCreateCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerCreateCustomerDiscountParams
- func NewDiscountManagerCreateCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerCreateCustomerDiscountParams
- func NewDiscountManagerCreateCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) SetBody(body *models.NewbillingCreateCustomerDiscountRequest)
- func (o *DiscountManagerCreateCustomerDiscountParams) SetContext(ctx context.Context)
- func (o *DiscountManagerCreateCustomerDiscountParams) SetDefaults()
- func (o *DiscountManagerCreateCustomerDiscountParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerCreateCustomerDiscountParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerCreateCustomerDiscountParams) WithBody(body *models.NewbillingCreateCustomerDiscountRequest) *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) WithDefaults() *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerCreateCustomerDiscountParams
- func (o *DiscountManagerCreateCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerCreateCustomerDiscountReader
- type DiscountManagerDeleteCustomerDiscountsDefault
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) Code() int
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) Error() string
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsClientError() bool
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsCode(code int) bool
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsRedirect() bool
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsServerError() bool
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsSuccess() bool
- func (o *DiscountManagerDeleteCustomerDiscountsDefault) String() string
- type DiscountManagerDeleteCustomerDiscountsOK
- func (o *DiscountManagerDeleteCustomerDiscountsOK) Error() string
- func (o *DiscountManagerDeleteCustomerDiscountsOK) GetPayload() *models.NewbillingDeleteCustomerDiscountsResponse
- func (o *DiscountManagerDeleteCustomerDiscountsOK) IsClientError() bool
- func (o *DiscountManagerDeleteCustomerDiscountsOK) IsCode(code int) bool
- func (o *DiscountManagerDeleteCustomerDiscountsOK) IsRedirect() bool
- func (o *DiscountManagerDeleteCustomerDiscountsOK) IsServerError() bool
- func (o *DiscountManagerDeleteCustomerDiscountsOK) IsSuccess() bool
- func (o *DiscountManagerDeleteCustomerDiscountsOK) String() string
- type DiscountManagerDeleteCustomerDiscountsParams
- func NewDiscountManagerDeleteCustomerDiscountsParams() *DiscountManagerDeleteCustomerDiscountsParams
- func NewDiscountManagerDeleteCustomerDiscountsParamsWithContext(ctx context.Context) *DiscountManagerDeleteCustomerDiscountsParams
- func NewDiscountManagerDeleteCustomerDiscountsParamsWithHTTPClient(client *http.Client) *DiscountManagerDeleteCustomerDiscountsParams
- func NewDiscountManagerDeleteCustomerDiscountsParamsWithTimeout(timeout time.Duration) *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) SetBody(body *models.NewbillingDeleteCustomerDiscountsRequest)
- func (o *DiscountManagerDeleteCustomerDiscountsParams) SetContext(ctx context.Context)
- func (o *DiscountManagerDeleteCustomerDiscountsParams) SetDefaults()
- func (o *DiscountManagerDeleteCustomerDiscountsParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerDeleteCustomerDiscountsParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WithBody(body *models.NewbillingDeleteCustomerDiscountsRequest) *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WithContext(ctx context.Context) *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WithDefaults() *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WithHTTPClient(client *http.Client) *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WithTimeout(timeout time.Duration) *DiscountManagerDeleteCustomerDiscountsParams
- func (o *DiscountManagerDeleteCustomerDiscountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerDeleteCustomerDiscountsReader
- type DiscountManagerDescribeCustomerDiscountsDefault
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) Code() int
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) Error() string
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsClientError() bool
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsCode(code int) bool
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsRedirect() bool
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsServerError() bool
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsSuccess() bool
- func (o *DiscountManagerDescribeCustomerDiscountsDefault) String() string
- type DiscountManagerDescribeCustomerDiscountsOK
- func (o *DiscountManagerDescribeCustomerDiscountsOK) Error() string
- func (o *DiscountManagerDescribeCustomerDiscountsOK) GetPayload() *models.NewbillingDescribeCustomerDiscountsResponse
- func (o *DiscountManagerDescribeCustomerDiscountsOK) IsClientError() bool
- func (o *DiscountManagerDescribeCustomerDiscountsOK) IsCode(code int) bool
- func (o *DiscountManagerDescribeCustomerDiscountsOK) IsRedirect() bool
- func (o *DiscountManagerDescribeCustomerDiscountsOK) IsServerError() bool
- func (o *DiscountManagerDescribeCustomerDiscountsOK) IsSuccess() bool
- func (o *DiscountManagerDescribeCustomerDiscountsOK) String() string
- type DiscountManagerDescribeCustomerDiscountsParams
- func NewDiscountManagerDescribeCustomerDiscountsParams() *DiscountManagerDescribeCustomerDiscountsParams
- func NewDiscountManagerDescribeCustomerDiscountsParamsWithContext(ctx context.Context) *DiscountManagerDescribeCustomerDiscountsParams
- func NewDiscountManagerDescribeCustomerDiscountsParamsWithHTTPClient(client *http.Client) *DiscountManagerDescribeCustomerDiscountsParams
- func NewDiscountManagerDescribeCustomerDiscountsParamsWithTimeout(timeout time.Duration) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetAccessSysID(accessSysID []string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetContext(ctx context.Context)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetCustomerDiscountName(customerDiscountName []string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetCustomerID(customerID []string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetDefaults()
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetLimit(limit *string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetOffset(offset *string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetReverse(reverse *bool)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetSearchWord(searchWord *string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetSortKey(sortKey *string)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithAccessSysID(accessSysID []string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithContext(ctx context.Context) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithCustomerDiscountName(customerDiscountName []string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithCustomerID(customerID []string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithDefaults() *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithHTTPClient(client *http.Client) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithLimit(limit *string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithOffset(offset *string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithReverse(reverse *bool) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithSearchWord(searchWord *string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithSortKey(sortKey *string) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WithTimeout(timeout time.Duration) *DiscountManagerDescribeCustomerDiscountsParams
- func (o *DiscountManagerDescribeCustomerDiscountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerDescribeCustomerDiscountsReader
- type DiscountManagerGetCustomerDiscountDefault
- func (o *DiscountManagerGetCustomerDiscountDefault) Code() int
- func (o *DiscountManagerGetCustomerDiscountDefault) Error() string
- func (o *DiscountManagerGetCustomerDiscountDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerGetCustomerDiscountDefault) IsClientError() bool
- func (o *DiscountManagerGetCustomerDiscountDefault) IsCode(code int) bool
- func (o *DiscountManagerGetCustomerDiscountDefault) IsRedirect() bool
- func (o *DiscountManagerGetCustomerDiscountDefault) IsServerError() bool
- func (o *DiscountManagerGetCustomerDiscountDefault) IsSuccess() bool
- func (o *DiscountManagerGetCustomerDiscountDefault) String() string
- type DiscountManagerGetCustomerDiscountOK
- func (o *DiscountManagerGetCustomerDiscountOK) Error() string
- func (o *DiscountManagerGetCustomerDiscountOK) GetPayload() *models.NewbillingGetCustomerDiscountResponse
- func (o *DiscountManagerGetCustomerDiscountOK) IsClientError() bool
- func (o *DiscountManagerGetCustomerDiscountOK) IsCode(code int) bool
- func (o *DiscountManagerGetCustomerDiscountOK) IsRedirect() bool
- func (o *DiscountManagerGetCustomerDiscountOK) IsServerError() bool
- func (o *DiscountManagerGetCustomerDiscountOK) IsSuccess() bool
- func (o *DiscountManagerGetCustomerDiscountOK) String() string
- type DiscountManagerGetCustomerDiscountParams
- func NewDiscountManagerGetCustomerDiscountParams() *DiscountManagerGetCustomerDiscountParams
- func NewDiscountManagerGetCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerGetCustomerDiscountParams
- func NewDiscountManagerGetCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerGetCustomerDiscountParams
- func NewDiscountManagerGetCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) SetContext(ctx context.Context)
- func (o *DiscountManagerGetCustomerDiscountParams) SetCustomerDiscountID(customerDiscountID string)
- func (o *DiscountManagerGetCustomerDiscountParams) SetDefaults()
- func (o *DiscountManagerGetCustomerDiscountParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerGetCustomerDiscountParams) SetProdID(prodID *string)
- func (o *DiscountManagerGetCustomerDiscountParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerGetCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WithCustomerDiscountID(customerDiscountID string) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WithDefaults() *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WithProdID(prodID *string) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerGetCustomerDiscountParams
- func (o *DiscountManagerGetCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerGetCustomerDiscountReader
- type DiscountManagerModifyCustomerDiscountDefault
- func (o *DiscountManagerModifyCustomerDiscountDefault) Code() int
- func (o *DiscountManagerModifyCustomerDiscountDefault) Error() string
- func (o *DiscountManagerModifyCustomerDiscountDefault) GetPayload() *models.RuntimeError
- func (o *DiscountManagerModifyCustomerDiscountDefault) IsClientError() bool
- func (o *DiscountManagerModifyCustomerDiscountDefault) IsCode(code int) bool
- func (o *DiscountManagerModifyCustomerDiscountDefault) IsRedirect() bool
- func (o *DiscountManagerModifyCustomerDiscountDefault) IsServerError() bool
- func (o *DiscountManagerModifyCustomerDiscountDefault) IsSuccess() bool
- func (o *DiscountManagerModifyCustomerDiscountDefault) String() string
- type DiscountManagerModifyCustomerDiscountOK
- func (o *DiscountManagerModifyCustomerDiscountOK) Error() string
- func (o *DiscountManagerModifyCustomerDiscountOK) GetPayload() *models.NewbillingModifyCustomerDiscountResponse
- func (o *DiscountManagerModifyCustomerDiscountOK) IsClientError() bool
- func (o *DiscountManagerModifyCustomerDiscountOK) IsCode(code int) bool
- func (o *DiscountManagerModifyCustomerDiscountOK) IsRedirect() bool
- func (o *DiscountManagerModifyCustomerDiscountOK) IsServerError() bool
- func (o *DiscountManagerModifyCustomerDiscountOK) IsSuccess() bool
- func (o *DiscountManagerModifyCustomerDiscountOK) String() string
- type DiscountManagerModifyCustomerDiscountParams
- func NewDiscountManagerModifyCustomerDiscountParams() *DiscountManagerModifyCustomerDiscountParams
- func NewDiscountManagerModifyCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerModifyCustomerDiscountParams
- func NewDiscountManagerModifyCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerModifyCustomerDiscountParams
- func NewDiscountManagerModifyCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) SetBody(body *models.NewbillingModifyCustomerDiscountRequest)
- func (o *DiscountManagerModifyCustomerDiscountParams) SetContext(ctx context.Context)
- func (o *DiscountManagerModifyCustomerDiscountParams) SetDefaults()
- func (o *DiscountManagerModifyCustomerDiscountParams) SetHTTPClient(client *http.Client)
- func (o *DiscountManagerModifyCustomerDiscountParams) SetTimeout(timeout time.Duration)
- func (o *DiscountManagerModifyCustomerDiscountParams) WithBody(body *models.NewbillingModifyCustomerDiscountRequest) *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) WithDefaults() *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerModifyCustomerDiscountParams
- func (o *DiscountManagerModifyCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DiscountManagerModifyCustomerDiscountReader
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 discount manager API
func (*Client) DiscountManagerCalculateCustomerDiscount ¶
func (a *Client) DiscountManagerCalculateCustomerDiscount(params *DiscountManagerCalculateCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerCalculateCustomerDiscountOK, error)
DiscountManagerCalculateCustomerDiscount 计算折扣s
func (*Client) DiscountManagerCreateCustomerDiscount ¶
func (a *Client) DiscountManagerCreateCustomerDiscount(params *DiscountManagerCreateCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerCreateCustomerDiscountOK, error)
DiscountManagerCreateCustomerDiscount 创建客户折扣s
func (*Client) DiscountManagerDeleteCustomerDiscounts ¶
func (a *Client) DiscountManagerDeleteCustomerDiscounts(params *DiscountManagerDeleteCustomerDiscountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerDeleteCustomerDiscountsOK, error)
DiscountManagerDeleteCustomerDiscounts 删除客户折扣s
func (*Client) DiscountManagerDescribeCustomerDiscounts ¶
func (a *Client) DiscountManagerDescribeCustomerDiscounts(params *DiscountManagerDescribeCustomerDiscountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerDescribeCustomerDiscountsOK, error)
DiscountManagerDescribeCustomerDiscounts 查询客户折扣列表s
func (*Client) DiscountManagerGetCustomerDiscount ¶
func (a *Client) DiscountManagerGetCustomerDiscount(params *DiscountManagerGetCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerGetCustomerDiscountOK, error)
DiscountManagerGetCustomerDiscount 查询单个客户折扣信息s
func (*Client) DiscountManagerModifyCustomerDiscount ¶
func (a *Client) DiscountManagerModifyCustomerDiscount(params *DiscountManagerModifyCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerModifyCustomerDiscountOK, error)
DiscountManagerModifyCustomerDiscount 修改客户折扣s
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 { DiscountManagerCalculateCustomerDiscount(params *DiscountManagerCalculateCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerCalculateCustomerDiscountOK, error) DiscountManagerCreateCustomerDiscount(params *DiscountManagerCreateCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerCreateCustomerDiscountOK, error) DiscountManagerDeleteCustomerDiscounts(params *DiscountManagerDeleteCustomerDiscountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerDeleteCustomerDiscountsOK, error) DiscountManagerDescribeCustomerDiscounts(params *DiscountManagerDescribeCustomerDiscountsParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerDescribeCustomerDiscountsOK, error) DiscountManagerGetCustomerDiscount(params *DiscountManagerGetCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerGetCustomerDiscountOK, error) DiscountManagerModifyCustomerDiscount(params *DiscountManagerModifyCustomerDiscountParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DiscountManagerModifyCustomerDiscountOK, 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 discount manager API client.
type DiscountManagerCalculateCustomerDiscountDefault ¶
type DiscountManagerCalculateCustomerDiscountDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerCalculateCustomerDiscountDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerCalculateCustomerDiscountDefault ¶
func NewDiscountManagerCalculateCustomerDiscountDefault(code int) *DiscountManagerCalculateCustomerDiscountDefault
NewDiscountManagerCalculateCustomerDiscountDefault creates a DiscountManagerCalculateCustomerDiscountDefault with default headers values
func (*DiscountManagerCalculateCustomerDiscountDefault) Code ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) Code() int
Code gets the status code for the discount manager calculate customer discount default response
func (*DiscountManagerCalculateCustomerDiscountDefault) Error ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) Error() string
func (*DiscountManagerCalculateCustomerDiscountDefault) GetPayload ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerCalculateCustomerDiscountDefault) IsClientError ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) IsClientError() bool
IsClientError returns true when this discount manager calculate customer discount default response has a 4xx status code
func (*DiscountManagerCalculateCustomerDiscountDefault) IsCode ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) IsCode(code int) bool
IsCode returns true when this discount manager calculate customer discount default response a status code equal to that given
func (*DiscountManagerCalculateCustomerDiscountDefault) IsRedirect ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) IsRedirect() bool
IsRedirect returns true when this discount manager calculate customer discount default response has a 3xx status code
func (*DiscountManagerCalculateCustomerDiscountDefault) IsServerError ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) IsServerError() bool
IsServerError returns true when this discount manager calculate customer discount default response has a 5xx status code
func (*DiscountManagerCalculateCustomerDiscountDefault) IsSuccess ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) IsSuccess() bool
IsSuccess returns true when this discount manager calculate customer discount default response has a 2xx status code
func (*DiscountManagerCalculateCustomerDiscountDefault) String ¶
func (o *DiscountManagerCalculateCustomerDiscountDefault) String() string
type DiscountManagerCalculateCustomerDiscountOK ¶
type DiscountManagerCalculateCustomerDiscountOK struct {
Payload *models.NewbillingCalculateCustomerDiscountResponse
}
DiscountManagerCalculateCustomerDiscountOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerCalculateCustomerDiscountOK ¶
func NewDiscountManagerCalculateCustomerDiscountOK() *DiscountManagerCalculateCustomerDiscountOK
NewDiscountManagerCalculateCustomerDiscountOK creates a DiscountManagerCalculateCustomerDiscountOK with default headers values
func (*DiscountManagerCalculateCustomerDiscountOK) Error ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) Error() string
func (*DiscountManagerCalculateCustomerDiscountOK) GetPayload ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) GetPayload() *models.NewbillingCalculateCustomerDiscountResponse
func (*DiscountManagerCalculateCustomerDiscountOK) IsClientError ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) IsClientError() bool
IsClientError returns true when this discount manager calculate customer discount o k response has a 4xx status code
func (*DiscountManagerCalculateCustomerDiscountOK) IsCode ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) IsCode(code int) bool
IsCode returns true when this discount manager calculate customer discount o k response a status code equal to that given
func (*DiscountManagerCalculateCustomerDiscountOK) IsRedirect ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) IsRedirect() bool
IsRedirect returns true when this discount manager calculate customer discount o k response has a 3xx status code
func (*DiscountManagerCalculateCustomerDiscountOK) IsServerError ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) IsServerError() bool
IsServerError returns true when this discount manager calculate customer discount o k response has a 5xx status code
func (*DiscountManagerCalculateCustomerDiscountOK) IsSuccess ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) IsSuccess() bool
IsSuccess returns true when this discount manager calculate customer discount o k response has a 2xx status code
func (*DiscountManagerCalculateCustomerDiscountOK) String ¶
func (o *DiscountManagerCalculateCustomerDiscountOK) String() string
type DiscountManagerCalculateCustomerDiscountParams ¶
type DiscountManagerCalculateCustomerDiscountParams struct { // Body. Body *models.NewbillingCalculateCustomerDiscountRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerCalculateCustomerDiscountParams contains all the parameters to send to the API endpoint
for the discount manager calculate customer discount operation. Typically these are written to a http.Request.
func NewDiscountManagerCalculateCustomerDiscountParams ¶
func NewDiscountManagerCalculateCustomerDiscountParams() *DiscountManagerCalculateCustomerDiscountParams
NewDiscountManagerCalculateCustomerDiscountParams creates a new DiscountManagerCalculateCustomerDiscountParams 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 NewDiscountManagerCalculateCustomerDiscountParamsWithContext ¶
func NewDiscountManagerCalculateCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerCalculateCustomerDiscountParams
NewDiscountManagerCalculateCustomerDiscountParamsWithContext creates a new DiscountManagerCalculateCustomerDiscountParams object with the ability to set a context for a request.
func NewDiscountManagerCalculateCustomerDiscountParamsWithHTTPClient ¶
func NewDiscountManagerCalculateCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerCalculateCustomerDiscountParams
NewDiscountManagerCalculateCustomerDiscountParamsWithHTTPClient creates a new DiscountManagerCalculateCustomerDiscountParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerCalculateCustomerDiscountParamsWithTimeout ¶
func NewDiscountManagerCalculateCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerCalculateCustomerDiscountParams
NewDiscountManagerCalculateCustomerDiscountParamsWithTimeout creates a new DiscountManagerCalculateCustomerDiscountParams object with the ability to set a timeout on a request.
func (*DiscountManagerCalculateCustomerDiscountParams) SetBody ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) SetBody(body *models.NewbillingCalculateCustomerDiscountRequest)
SetBody adds the body to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) SetContext ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) SetDefaults ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) SetDefaults()
SetDefaults hydrates default values in the discount manager calculate customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerCalculateCustomerDiscountParams) SetHTTPClient ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) SetTimeout ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) WithBody ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WithBody(body *models.NewbillingCalculateCustomerDiscountRequest) *DiscountManagerCalculateCustomerDiscountParams
WithBody adds the body to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) WithContext ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerCalculateCustomerDiscountParams
WithContext adds the context to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) WithDefaults ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WithDefaults() *DiscountManagerCalculateCustomerDiscountParams
WithDefaults hydrates default values in the discount manager calculate customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerCalculateCustomerDiscountParams) WithHTTPClient ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerCalculateCustomerDiscountParams
WithHTTPClient adds the HTTPClient to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) WithTimeout ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerCalculateCustomerDiscountParams
WithTimeout adds the timeout to the discount manager calculate customer discount params
func (*DiscountManagerCalculateCustomerDiscountParams) WriteToRequest ¶
func (o *DiscountManagerCalculateCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerCalculateCustomerDiscountReader ¶
type DiscountManagerCalculateCustomerDiscountReader struct {
// contains filtered or unexported fields
}
DiscountManagerCalculateCustomerDiscountReader is a Reader for the DiscountManagerCalculateCustomerDiscount structure.
func (*DiscountManagerCalculateCustomerDiscountReader) ReadResponse ¶
func (o *DiscountManagerCalculateCustomerDiscountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DiscountManagerCreateCustomerDiscountDefault ¶
type DiscountManagerCreateCustomerDiscountDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerCreateCustomerDiscountDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerCreateCustomerDiscountDefault ¶
func NewDiscountManagerCreateCustomerDiscountDefault(code int) *DiscountManagerCreateCustomerDiscountDefault
NewDiscountManagerCreateCustomerDiscountDefault creates a DiscountManagerCreateCustomerDiscountDefault with default headers values
func (*DiscountManagerCreateCustomerDiscountDefault) Code ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) Code() int
Code gets the status code for the discount manager create customer discount default response
func (*DiscountManagerCreateCustomerDiscountDefault) Error ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) Error() string
func (*DiscountManagerCreateCustomerDiscountDefault) GetPayload ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerCreateCustomerDiscountDefault) IsClientError ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) IsClientError() bool
IsClientError returns true when this discount manager create customer discount default response has a 4xx status code
func (*DiscountManagerCreateCustomerDiscountDefault) IsCode ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) IsCode(code int) bool
IsCode returns true when this discount manager create customer discount default response a status code equal to that given
func (*DiscountManagerCreateCustomerDiscountDefault) IsRedirect ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) IsRedirect() bool
IsRedirect returns true when this discount manager create customer discount default response has a 3xx status code
func (*DiscountManagerCreateCustomerDiscountDefault) IsServerError ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) IsServerError() bool
IsServerError returns true when this discount manager create customer discount default response has a 5xx status code
func (*DiscountManagerCreateCustomerDiscountDefault) IsSuccess ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) IsSuccess() bool
IsSuccess returns true when this discount manager create customer discount default response has a 2xx status code
func (*DiscountManagerCreateCustomerDiscountDefault) String ¶
func (o *DiscountManagerCreateCustomerDiscountDefault) String() string
type DiscountManagerCreateCustomerDiscountOK ¶
type DiscountManagerCreateCustomerDiscountOK struct {
Payload *models.NewbillingCreateCustomerDiscountResponse
}
DiscountManagerCreateCustomerDiscountOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerCreateCustomerDiscountOK ¶
func NewDiscountManagerCreateCustomerDiscountOK() *DiscountManagerCreateCustomerDiscountOK
NewDiscountManagerCreateCustomerDiscountOK creates a DiscountManagerCreateCustomerDiscountOK with default headers values
func (*DiscountManagerCreateCustomerDiscountOK) Error ¶
func (o *DiscountManagerCreateCustomerDiscountOK) Error() string
func (*DiscountManagerCreateCustomerDiscountOK) GetPayload ¶
func (o *DiscountManagerCreateCustomerDiscountOK) GetPayload() *models.NewbillingCreateCustomerDiscountResponse
func (*DiscountManagerCreateCustomerDiscountOK) IsClientError ¶
func (o *DiscountManagerCreateCustomerDiscountOK) IsClientError() bool
IsClientError returns true when this discount manager create customer discount o k response has a 4xx status code
func (*DiscountManagerCreateCustomerDiscountOK) IsCode ¶
func (o *DiscountManagerCreateCustomerDiscountOK) IsCode(code int) bool
IsCode returns true when this discount manager create customer discount o k response a status code equal to that given
func (*DiscountManagerCreateCustomerDiscountOK) IsRedirect ¶
func (o *DiscountManagerCreateCustomerDiscountOK) IsRedirect() bool
IsRedirect returns true when this discount manager create customer discount o k response has a 3xx status code
func (*DiscountManagerCreateCustomerDiscountOK) IsServerError ¶
func (o *DiscountManagerCreateCustomerDiscountOK) IsServerError() bool
IsServerError returns true when this discount manager create customer discount o k response has a 5xx status code
func (*DiscountManagerCreateCustomerDiscountOK) IsSuccess ¶
func (o *DiscountManagerCreateCustomerDiscountOK) IsSuccess() bool
IsSuccess returns true when this discount manager create customer discount o k response has a 2xx status code
func (*DiscountManagerCreateCustomerDiscountOK) String ¶
func (o *DiscountManagerCreateCustomerDiscountOK) String() string
type DiscountManagerCreateCustomerDiscountParams ¶
type DiscountManagerCreateCustomerDiscountParams struct { // Body. Body *models.NewbillingCreateCustomerDiscountRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerCreateCustomerDiscountParams contains all the parameters to send to the API endpoint
for the discount manager create customer discount operation. Typically these are written to a http.Request.
func NewDiscountManagerCreateCustomerDiscountParams ¶
func NewDiscountManagerCreateCustomerDiscountParams() *DiscountManagerCreateCustomerDiscountParams
NewDiscountManagerCreateCustomerDiscountParams creates a new DiscountManagerCreateCustomerDiscountParams 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 NewDiscountManagerCreateCustomerDiscountParamsWithContext ¶
func NewDiscountManagerCreateCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerCreateCustomerDiscountParams
NewDiscountManagerCreateCustomerDiscountParamsWithContext creates a new DiscountManagerCreateCustomerDiscountParams object with the ability to set a context for a request.
func NewDiscountManagerCreateCustomerDiscountParamsWithHTTPClient ¶
func NewDiscountManagerCreateCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerCreateCustomerDiscountParams
NewDiscountManagerCreateCustomerDiscountParamsWithHTTPClient creates a new DiscountManagerCreateCustomerDiscountParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerCreateCustomerDiscountParamsWithTimeout ¶
func NewDiscountManagerCreateCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerCreateCustomerDiscountParams
NewDiscountManagerCreateCustomerDiscountParamsWithTimeout creates a new DiscountManagerCreateCustomerDiscountParams object with the ability to set a timeout on a request.
func (*DiscountManagerCreateCustomerDiscountParams) SetBody ¶
func (o *DiscountManagerCreateCustomerDiscountParams) SetBody(body *models.NewbillingCreateCustomerDiscountRequest)
SetBody adds the body to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) SetContext ¶
func (o *DiscountManagerCreateCustomerDiscountParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) SetDefaults ¶
func (o *DiscountManagerCreateCustomerDiscountParams) SetDefaults()
SetDefaults hydrates default values in the discount manager create customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerCreateCustomerDiscountParams) SetHTTPClient ¶
func (o *DiscountManagerCreateCustomerDiscountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) SetTimeout ¶
func (o *DiscountManagerCreateCustomerDiscountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) WithBody ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WithBody(body *models.NewbillingCreateCustomerDiscountRequest) *DiscountManagerCreateCustomerDiscountParams
WithBody adds the body to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) WithContext ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerCreateCustomerDiscountParams
WithContext adds the context to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) WithDefaults ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WithDefaults() *DiscountManagerCreateCustomerDiscountParams
WithDefaults hydrates default values in the discount manager create customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerCreateCustomerDiscountParams) WithHTTPClient ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerCreateCustomerDiscountParams
WithHTTPClient adds the HTTPClient to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) WithTimeout ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerCreateCustomerDiscountParams
WithTimeout adds the timeout to the discount manager create customer discount params
func (*DiscountManagerCreateCustomerDiscountParams) WriteToRequest ¶
func (o *DiscountManagerCreateCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerCreateCustomerDiscountReader ¶
type DiscountManagerCreateCustomerDiscountReader struct {
// contains filtered or unexported fields
}
DiscountManagerCreateCustomerDiscountReader is a Reader for the DiscountManagerCreateCustomerDiscount structure.
func (*DiscountManagerCreateCustomerDiscountReader) ReadResponse ¶
func (o *DiscountManagerCreateCustomerDiscountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DiscountManagerDeleteCustomerDiscountsDefault ¶
type DiscountManagerDeleteCustomerDiscountsDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerDeleteCustomerDiscountsDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerDeleteCustomerDiscountsDefault ¶
func NewDiscountManagerDeleteCustomerDiscountsDefault(code int) *DiscountManagerDeleteCustomerDiscountsDefault
NewDiscountManagerDeleteCustomerDiscountsDefault creates a DiscountManagerDeleteCustomerDiscountsDefault with default headers values
func (*DiscountManagerDeleteCustomerDiscountsDefault) Code ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) Code() int
Code gets the status code for the discount manager delete customer discounts default response
func (*DiscountManagerDeleteCustomerDiscountsDefault) Error ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) Error() string
func (*DiscountManagerDeleteCustomerDiscountsDefault) GetPayload ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerDeleteCustomerDiscountsDefault) IsClientError ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsClientError() bool
IsClientError returns true when this discount manager delete customer discounts default response has a 4xx status code
func (*DiscountManagerDeleteCustomerDiscountsDefault) IsCode ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsCode(code int) bool
IsCode returns true when this discount manager delete customer discounts default response a status code equal to that given
func (*DiscountManagerDeleteCustomerDiscountsDefault) IsRedirect ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsRedirect() bool
IsRedirect returns true when this discount manager delete customer discounts default response has a 3xx status code
func (*DiscountManagerDeleteCustomerDiscountsDefault) IsServerError ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsServerError() bool
IsServerError returns true when this discount manager delete customer discounts default response has a 5xx status code
func (*DiscountManagerDeleteCustomerDiscountsDefault) IsSuccess ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) IsSuccess() bool
IsSuccess returns true when this discount manager delete customer discounts default response has a 2xx status code
func (*DiscountManagerDeleteCustomerDiscountsDefault) String ¶
func (o *DiscountManagerDeleteCustomerDiscountsDefault) String() string
type DiscountManagerDeleteCustomerDiscountsOK ¶
type DiscountManagerDeleteCustomerDiscountsOK struct {
Payload *models.NewbillingDeleteCustomerDiscountsResponse
}
DiscountManagerDeleteCustomerDiscountsOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerDeleteCustomerDiscountsOK ¶
func NewDiscountManagerDeleteCustomerDiscountsOK() *DiscountManagerDeleteCustomerDiscountsOK
NewDiscountManagerDeleteCustomerDiscountsOK creates a DiscountManagerDeleteCustomerDiscountsOK with default headers values
func (*DiscountManagerDeleteCustomerDiscountsOK) Error ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) Error() string
func (*DiscountManagerDeleteCustomerDiscountsOK) GetPayload ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) GetPayload() *models.NewbillingDeleteCustomerDiscountsResponse
func (*DiscountManagerDeleteCustomerDiscountsOK) IsClientError ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) IsClientError() bool
IsClientError returns true when this discount manager delete customer discounts o k response has a 4xx status code
func (*DiscountManagerDeleteCustomerDiscountsOK) IsCode ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) IsCode(code int) bool
IsCode returns true when this discount manager delete customer discounts o k response a status code equal to that given
func (*DiscountManagerDeleteCustomerDiscountsOK) IsRedirect ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) IsRedirect() bool
IsRedirect returns true when this discount manager delete customer discounts o k response has a 3xx status code
func (*DiscountManagerDeleteCustomerDiscountsOK) IsServerError ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) IsServerError() bool
IsServerError returns true when this discount manager delete customer discounts o k response has a 5xx status code
func (*DiscountManagerDeleteCustomerDiscountsOK) IsSuccess ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) IsSuccess() bool
IsSuccess returns true when this discount manager delete customer discounts o k response has a 2xx status code
func (*DiscountManagerDeleteCustomerDiscountsOK) String ¶
func (o *DiscountManagerDeleteCustomerDiscountsOK) String() string
type DiscountManagerDeleteCustomerDiscountsParams ¶
type DiscountManagerDeleteCustomerDiscountsParams struct { // Body. Body *models.NewbillingDeleteCustomerDiscountsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerDeleteCustomerDiscountsParams contains all the parameters to send to the API endpoint
for the discount manager delete customer discounts operation. Typically these are written to a http.Request.
func NewDiscountManagerDeleteCustomerDiscountsParams ¶
func NewDiscountManagerDeleteCustomerDiscountsParams() *DiscountManagerDeleteCustomerDiscountsParams
NewDiscountManagerDeleteCustomerDiscountsParams creates a new DiscountManagerDeleteCustomerDiscountsParams 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 NewDiscountManagerDeleteCustomerDiscountsParamsWithContext ¶
func NewDiscountManagerDeleteCustomerDiscountsParamsWithContext(ctx context.Context) *DiscountManagerDeleteCustomerDiscountsParams
NewDiscountManagerDeleteCustomerDiscountsParamsWithContext creates a new DiscountManagerDeleteCustomerDiscountsParams object with the ability to set a context for a request.
func NewDiscountManagerDeleteCustomerDiscountsParamsWithHTTPClient ¶
func NewDiscountManagerDeleteCustomerDiscountsParamsWithHTTPClient(client *http.Client) *DiscountManagerDeleteCustomerDiscountsParams
NewDiscountManagerDeleteCustomerDiscountsParamsWithHTTPClient creates a new DiscountManagerDeleteCustomerDiscountsParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerDeleteCustomerDiscountsParamsWithTimeout ¶
func NewDiscountManagerDeleteCustomerDiscountsParamsWithTimeout(timeout time.Duration) *DiscountManagerDeleteCustomerDiscountsParams
NewDiscountManagerDeleteCustomerDiscountsParamsWithTimeout creates a new DiscountManagerDeleteCustomerDiscountsParams object with the ability to set a timeout on a request.
func (*DiscountManagerDeleteCustomerDiscountsParams) SetBody ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) SetBody(body *models.NewbillingDeleteCustomerDiscountsRequest)
SetBody adds the body to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) SetContext ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) SetDefaults ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) SetDefaults()
SetDefaults hydrates default values in the discount manager delete customer discounts params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerDeleteCustomerDiscountsParams) SetHTTPClient ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) SetTimeout ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) WithBody ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WithBody(body *models.NewbillingDeleteCustomerDiscountsRequest) *DiscountManagerDeleteCustomerDiscountsParams
WithBody adds the body to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) WithContext ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WithContext(ctx context.Context) *DiscountManagerDeleteCustomerDiscountsParams
WithContext adds the context to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) WithDefaults ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WithDefaults() *DiscountManagerDeleteCustomerDiscountsParams
WithDefaults hydrates default values in the discount manager delete customer discounts params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerDeleteCustomerDiscountsParams) WithHTTPClient ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WithHTTPClient(client *http.Client) *DiscountManagerDeleteCustomerDiscountsParams
WithHTTPClient adds the HTTPClient to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) WithTimeout ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WithTimeout(timeout time.Duration) *DiscountManagerDeleteCustomerDiscountsParams
WithTimeout adds the timeout to the discount manager delete customer discounts params
func (*DiscountManagerDeleteCustomerDiscountsParams) WriteToRequest ¶
func (o *DiscountManagerDeleteCustomerDiscountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerDeleteCustomerDiscountsReader ¶
type DiscountManagerDeleteCustomerDiscountsReader struct {
// contains filtered or unexported fields
}
DiscountManagerDeleteCustomerDiscountsReader is a Reader for the DiscountManagerDeleteCustomerDiscounts structure.
func (*DiscountManagerDeleteCustomerDiscountsReader) ReadResponse ¶
func (o *DiscountManagerDeleteCustomerDiscountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DiscountManagerDescribeCustomerDiscountsDefault ¶
type DiscountManagerDescribeCustomerDiscountsDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerDescribeCustomerDiscountsDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerDescribeCustomerDiscountsDefault ¶
func NewDiscountManagerDescribeCustomerDiscountsDefault(code int) *DiscountManagerDescribeCustomerDiscountsDefault
NewDiscountManagerDescribeCustomerDiscountsDefault creates a DiscountManagerDescribeCustomerDiscountsDefault with default headers values
func (*DiscountManagerDescribeCustomerDiscountsDefault) Code ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) Code() int
Code gets the status code for the discount manager describe customer discounts default response
func (*DiscountManagerDescribeCustomerDiscountsDefault) Error ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) Error() string
func (*DiscountManagerDescribeCustomerDiscountsDefault) GetPayload ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerDescribeCustomerDiscountsDefault) IsClientError ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsClientError() bool
IsClientError returns true when this discount manager describe customer discounts default response has a 4xx status code
func (*DiscountManagerDescribeCustomerDiscountsDefault) IsCode ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsCode(code int) bool
IsCode returns true when this discount manager describe customer discounts default response a status code equal to that given
func (*DiscountManagerDescribeCustomerDiscountsDefault) IsRedirect ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsRedirect() bool
IsRedirect returns true when this discount manager describe customer discounts default response has a 3xx status code
func (*DiscountManagerDescribeCustomerDiscountsDefault) IsServerError ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsServerError() bool
IsServerError returns true when this discount manager describe customer discounts default response has a 5xx status code
func (*DiscountManagerDescribeCustomerDiscountsDefault) IsSuccess ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) IsSuccess() bool
IsSuccess returns true when this discount manager describe customer discounts default response has a 2xx status code
func (*DiscountManagerDescribeCustomerDiscountsDefault) String ¶
func (o *DiscountManagerDescribeCustomerDiscountsDefault) String() string
type DiscountManagerDescribeCustomerDiscountsOK ¶
type DiscountManagerDescribeCustomerDiscountsOK struct {
Payload *models.NewbillingDescribeCustomerDiscountsResponse
}
DiscountManagerDescribeCustomerDiscountsOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerDescribeCustomerDiscountsOK ¶
func NewDiscountManagerDescribeCustomerDiscountsOK() *DiscountManagerDescribeCustomerDiscountsOK
NewDiscountManagerDescribeCustomerDiscountsOK creates a DiscountManagerDescribeCustomerDiscountsOK with default headers values
func (*DiscountManagerDescribeCustomerDiscountsOK) Error ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) Error() string
func (*DiscountManagerDescribeCustomerDiscountsOK) GetPayload ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) GetPayload() *models.NewbillingDescribeCustomerDiscountsResponse
func (*DiscountManagerDescribeCustomerDiscountsOK) IsClientError ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) IsClientError() bool
IsClientError returns true when this discount manager describe customer discounts o k response has a 4xx status code
func (*DiscountManagerDescribeCustomerDiscountsOK) IsCode ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) IsCode(code int) bool
IsCode returns true when this discount manager describe customer discounts o k response a status code equal to that given
func (*DiscountManagerDescribeCustomerDiscountsOK) IsRedirect ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) IsRedirect() bool
IsRedirect returns true when this discount manager describe customer discounts o k response has a 3xx status code
func (*DiscountManagerDescribeCustomerDiscountsOK) IsServerError ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) IsServerError() bool
IsServerError returns true when this discount manager describe customer discounts o k response has a 5xx status code
func (*DiscountManagerDescribeCustomerDiscountsOK) IsSuccess ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) IsSuccess() bool
IsSuccess returns true when this discount manager describe customer discounts o k response has a 2xx status code
func (*DiscountManagerDescribeCustomerDiscountsOK) String ¶
func (o *DiscountManagerDescribeCustomerDiscountsOK) String() string
type DiscountManagerDescribeCustomerDiscountsParams ¶
type DiscountManagerDescribeCustomerDiscountsParams struct { /* AccessSysID. 接入系统ID. */ AccessSysID []string /* CustomerDiscountName. 产品折扣名称. */ CustomerDiscountName []string /* CustomerID. 客户ID. */ CustomerID []string /* Limit. 数据库查询每页大小 - 默认 20, 最大值 200. Format: uint64 */ Limit *string /* Offset. 数据库查询偏移位置 - 默认 0. Format: uint64 */ Offset *string /* Reverse. 是否倒序排序 - value = 0 sort ASC, value = 1 sort DESC. */ Reverse *bool /* SearchWord. 模糊查询关键字 - 支持字段:toadd. */ SearchWord *string /* SortKey. 排序字段 - 默认 create_time. */ SortKey *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerDescribeCustomerDiscountsParams contains all the parameters to send to the API endpoint
for the discount manager describe customer discounts operation. Typically these are written to a http.Request.
func NewDiscountManagerDescribeCustomerDiscountsParams ¶
func NewDiscountManagerDescribeCustomerDiscountsParams() *DiscountManagerDescribeCustomerDiscountsParams
NewDiscountManagerDescribeCustomerDiscountsParams creates a new DiscountManagerDescribeCustomerDiscountsParams 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 NewDiscountManagerDescribeCustomerDiscountsParamsWithContext ¶
func NewDiscountManagerDescribeCustomerDiscountsParamsWithContext(ctx context.Context) *DiscountManagerDescribeCustomerDiscountsParams
NewDiscountManagerDescribeCustomerDiscountsParamsWithContext creates a new DiscountManagerDescribeCustomerDiscountsParams object with the ability to set a context for a request.
func NewDiscountManagerDescribeCustomerDiscountsParamsWithHTTPClient ¶
func NewDiscountManagerDescribeCustomerDiscountsParamsWithHTTPClient(client *http.Client) *DiscountManagerDescribeCustomerDiscountsParams
NewDiscountManagerDescribeCustomerDiscountsParamsWithHTTPClient creates a new DiscountManagerDescribeCustomerDiscountsParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerDescribeCustomerDiscountsParamsWithTimeout ¶
func NewDiscountManagerDescribeCustomerDiscountsParamsWithTimeout(timeout time.Duration) *DiscountManagerDescribeCustomerDiscountsParams
NewDiscountManagerDescribeCustomerDiscountsParamsWithTimeout creates a new DiscountManagerDescribeCustomerDiscountsParams object with the ability to set a timeout on a request.
func (*DiscountManagerDescribeCustomerDiscountsParams) SetAccessSysID ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetAccessSysID(accessSysID []string)
SetAccessSysID adds the accessSysId to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetContext ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetCustomerDiscountName ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetCustomerDiscountName(customerDiscountName []string)
SetCustomerDiscountName adds the customerDiscountName to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetCustomerID ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetCustomerID(customerID []string)
SetCustomerID adds the customerId to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetDefaults ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetDefaults()
SetDefaults hydrates default values in the discount manager describe customer discounts params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerDescribeCustomerDiscountsParams) SetHTTPClient ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetLimit ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetLimit(limit *string)
SetLimit adds the limit to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetOffset ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetOffset(offset *string)
SetOffset adds the offset to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetReverse ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetReverse(reverse *bool)
SetReverse adds the reverse to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetSearchWord ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetSearchWord(searchWord *string)
SetSearchWord adds the searchWord to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetSortKey ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetSortKey(sortKey *string)
SetSortKey adds the sortKey to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) SetTimeout ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithAccessSysID ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithAccessSysID(accessSysID []string) *DiscountManagerDescribeCustomerDiscountsParams
WithAccessSysID adds the accessSysID to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithContext ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithContext(ctx context.Context) *DiscountManagerDescribeCustomerDiscountsParams
WithContext adds the context to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithCustomerDiscountName ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithCustomerDiscountName(customerDiscountName []string) *DiscountManagerDescribeCustomerDiscountsParams
WithCustomerDiscountName adds the customerDiscountName to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithCustomerID ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithCustomerID(customerID []string) *DiscountManagerDescribeCustomerDiscountsParams
WithCustomerID adds the customerID to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithDefaults ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithDefaults() *DiscountManagerDescribeCustomerDiscountsParams
WithDefaults hydrates default values in the discount manager describe customer discounts params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerDescribeCustomerDiscountsParams) WithHTTPClient ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithHTTPClient(client *http.Client) *DiscountManagerDescribeCustomerDiscountsParams
WithHTTPClient adds the HTTPClient to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithLimit ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithLimit(limit *string) *DiscountManagerDescribeCustomerDiscountsParams
WithLimit adds the limit to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithOffset ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithOffset(offset *string) *DiscountManagerDescribeCustomerDiscountsParams
WithOffset adds the offset to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithReverse ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithReverse(reverse *bool) *DiscountManagerDescribeCustomerDiscountsParams
WithReverse adds the reverse to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithSearchWord ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithSearchWord(searchWord *string) *DiscountManagerDescribeCustomerDiscountsParams
WithSearchWord adds the searchWord to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithSortKey ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithSortKey(sortKey *string) *DiscountManagerDescribeCustomerDiscountsParams
WithSortKey adds the sortKey to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WithTimeout ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WithTimeout(timeout time.Duration) *DiscountManagerDescribeCustomerDiscountsParams
WithTimeout adds the timeout to the discount manager describe customer discounts params
func (*DiscountManagerDescribeCustomerDiscountsParams) WriteToRequest ¶
func (o *DiscountManagerDescribeCustomerDiscountsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerDescribeCustomerDiscountsReader ¶
type DiscountManagerDescribeCustomerDiscountsReader struct {
// contains filtered or unexported fields
}
DiscountManagerDescribeCustomerDiscountsReader is a Reader for the DiscountManagerDescribeCustomerDiscounts structure.
func (*DiscountManagerDescribeCustomerDiscountsReader) ReadResponse ¶
func (o *DiscountManagerDescribeCustomerDiscountsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DiscountManagerGetCustomerDiscountDefault ¶
type DiscountManagerGetCustomerDiscountDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerGetCustomerDiscountDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerGetCustomerDiscountDefault ¶
func NewDiscountManagerGetCustomerDiscountDefault(code int) *DiscountManagerGetCustomerDiscountDefault
NewDiscountManagerGetCustomerDiscountDefault creates a DiscountManagerGetCustomerDiscountDefault with default headers values
func (*DiscountManagerGetCustomerDiscountDefault) Code ¶
func (o *DiscountManagerGetCustomerDiscountDefault) Code() int
Code gets the status code for the discount manager get customer discount default response
func (*DiscountManagerGetCustomerDiscountDefault) Error ¶
func (o *DiscountManagerGetCustomerDiscountDefault) Error() string
func (*DiscountManagerGetCustomerDiscountDefault) GetPayload ¶
func (o *DiscountManagerGetCustomerDiscountDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerGetCustomerDiscountDefault) IsClientError ¶
func (o *DiscountManagerGetCustomerDiscountDefault) IsClientError() bool
IsClientError returns true when this discount manager get customer discount default response has a 4xx status code
func (*DiscountManagerGetCustomerDiscountDefault) IsCode ¶
func (o *DiscountManagerGetCustomerDiscountDefault) IsCode(code int) bool
IsCode returns true when this discount manager get customer discount default response a status code equal to that given
func (*DiscountManagerGetCustomerDiscountDefault) IsRedirect ¶
func (o *DiscountManagerGetCustomerDiscountDefault) IsRedirect() bool
IsRedirect returns true when this discount manager get customer discount default response has a 3xx status code
func (*DiscountManagerGetCustomerDiscountDefault) IsServerError ¶
func (o *DiscountManagerGetCustomerDiscountDefault) IsServerError() bool
IsServerError returns true when this discount manager get customer discount default response has a 5xx status code
func (*DiscountManagerGetCustomerDiscountDefault) IsSuccess ¶
func (o *DiscountManagerGetCustomerDiscountDefault) IsSuccess() bool
IsSuccess returns true when this discount manager get customer discount default response has a 2xx status code
func (*DiscountManagerGetCustomerDiscountDefault) String ¶
func (o *DiscountManagerGetCustomerDiscountDefault) String() string
type DiscountManagerGetCustomerDiscountOK ¶
type DiscountManagerGetCustomerDiscountOK struct {
Payload *models.NewbillingGetCustomerDiscountResponse
}
DiscountManagerGetCustomerDiscountOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerGetCustomerDiscountOK ¶
func NewDiscountManagerGetCustomerDiscountOK() *DiscountManagerGetCustomerDiscountOK
NewDiscountManagerGetCustomerDiscountOK creates a DiscountManagerGetCustomerDiscountOK with default headers values
func (*DiscountManagerGetCustomerDiscountOK) Error ¶
func (o *DiscountManagerGetCustomerDiscountOK) Error() string
func (*DiscountManagerGetCustomerDiscountOK) GetPayload ¶
func (o *DiscountManagerGetCustomerDiscountOK) GetPayload() *models.NewbillingGetCustomerDiscountResponse
func (*DiscountManagerGetCustomerDiscountOK) IsClientError ¶
func (o *DiscountManagerGetCustomerDiscountOK) IsClientError() bool
IsClientError returns true when this discount manager get customer discount o k response has a 4xx status code
func (*DiscountManagerGetCustomerDiscountOK) IsCode ¶
func (o *DiscountManagerGetCustomerDiscountOK) IsCode(code int) bool
IsCode returns true when this discount manager get customer discount o k response a status code equal to that given
func (*DiscountManagerGetCustomerDiscountOK) IsRedirect ¶
func (o *DiscountManagerGetCustomerDiscountOK) IsRedirect() bool
IsRedirect returns true when this discount manager get customer discount o k response has a 3xx status code
func (*DiscountManagerGetCustomerDiscountOK) IsServerError ¶
func (o *DiscountManagerGetCustomerDiscountOK) IsServerError() bool
IsServerError returns true when this discount manager get customer discount o k response has a 5xx status code
func (*DiscountManagerGetCustomerDiscountOK) IsSuccess ¶
func (o *DiscountManagerGetCustomerDiscountOK) IsSuccess() bool
IsSuccess returns true when this discount manager get customer discount o k response has a 2xx status code
func (*DiscountManagerGetCustomerDiscountOK) String ¶
func (o *DiscountManagerGetCustomerDiscountOK) String() string
type DiscountManagerGetCustomerDiscountParams ¶
type DiscountManagerGetCustomerDiscountParams struct { /* CustomerDiscountID. 客户折扣ID */ CustomerDiscountID string /* ProdID. 产品ID. */ ProdID *string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerGetCustomerDiscountParams contains all the parameters to send to the API endpoint
for the discount manager get customer discount operation. Typically these are written to a http.Request.
func NewDiscountManagerGetCustomerDiscountParams ¶
func NewDiscountManagerGetCustomerDiscountParams() *DiscountManagerGetCustomerDiscountParams
NewDiscountManagerGetCustomerDiscountParams creates a new DiscountManagerGetCustomerDiscountParams 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 NewDiscountManagerGetCustomerDiscountParamsWithContext ¶
func NewDiscountManagerGetCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerGetCustomerDiscountParams
NewDiscountManagerGetCustomerDiscountParamsWithContext creates a new DiscountManagerGetCustomerDiscountParams object with the ability to set a context for a request.
func NewDiscountManagerGetCustomerDiscountParamsWithHTTPClient ¶
func NewDiscountManagerGetCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerGetCustomerDiscountParams
NewDiscountManagerGetCustomerDiscountParamsWithHTTPClient creates a new DiscountManagerGetCustomerDiscountParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerGetCustomerDiscountParamsWithTimeout ¶
func NewDiscountManagerGetCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerGetCustomerDiscountParams
NewDiscountManagerGetCustomerDiscountParamsWithTimeout creates a new DiscountManagerGetCustomerDiscountParams object with the ability to set a timeout on a request.
func (*DiscountManagerGetCustomerDiscountParams) SetContext ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) SetCustomerDiscountID ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetCustomerDiscountID(customerDiscountID string)
SetCustomerDiscountID adds the customerDiscountId to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) SetDefaults ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetDefaults()
SetDefaults hydrates default values in the discount manager get customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerGetCustomerDiscountParams) SetHTTPClient ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) SetProdID ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetProdID(prodID *string)
SetProdID adds the prodId to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) SetTimeout ¶
func (o *DiscountManagerGetCustomerDiscountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WithContext ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerGetCustomerDiscountParams
WithContext adds the context to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WithCustomerDiscountID ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithCustomerDiscountID(customerDiscountID string) *DiscountManagerGetCustomerDiscountParams
WithCustomerDiscountID adds the customerDiscountID to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WithDefaults ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithDefaults() *DiscountManagerGetCustomerDiscountParams
WithDefaults hydrates default values in the discount manager get customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerGetCustomerDiscountParams) WithHTTPClient ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerGetCustomerDiscountParams
WithHTTPClient adds the HTTPClient to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WithProdID ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithProdID(prodID *string) *DiscountManagerGetCustomerDiscountParams
WithProdID adds the prodID to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WithTimeout ¶
func (o *DiscountManagerGetCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerGetCustomerDiscountParams
WithTimeout adds the timeout to the discount manager get customer discount params
func (*DiscountManagerGetCustomerDiscountParams) WriteToRequest ¶
func (o *DiscountManagerGetCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerGetCustomerDiscountReader ¶
type DiscountManagerGetCustomerDiscountReader struct {
// contains filtered or unexported fields
}
DiscountManagerGetCustomerDiscountReader is a Reader for the DiscountManagerGetCustomerDiscount structure.
func (*DiscountManagerGetCustomerDiscountReader) ReadResponse ¶
func (o *DiscountManagerGetCustomerDiscountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DiscountManagerModifyCustomerDiscountDefault ¶
type DiscountManagerModifyCustomerDiscountDefault struct { Payload *models.RuntimeError // contains filtered or unexported fields }
DiscountManagerModifyCustomerDiscountDefault describes a response with status code -1, with default header values.
An unexpected error response
func NewDiscountManagerModifyCustomerDiscountDefault ¶
func NewDiscountManagerModifyCustomerDiscountDefault(code int) *DiscountManagerModifyCustomerDiscountDefault
NewDiscountManagerModifyCustomerDiscountDefault creates a DiscountManagerModifyCustomerDiscountDefault with default headers values
func (*DiscountManagerModifyCustomerDiscountDefault) Code ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) Code() int
Code gets the status code for the discount manager modify customer discount default response
func (*DiscountManagerModifyCustomerDiscountDefault) Error ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) Error() string
func (*DiscountManagerModifyCustomerDiscountDefault) GetPayload ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) GetPayload() *models.RuntimeError
func (*DiscountManagerModifyCustomerDiscountDefault) IsClientError ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) IsClientError() bool
IsClientError returns true when this discount manager modify customer discount default response has a 4xx status code
func (*DiscountManagerModifyCustomerDiscountDefault) IsCode ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) IsCode(code int) bool
IsCode returns true when this discount manager modify customer discount default response a status code equal to that given
func (*DiscountManagerModifyCustomerDiscountDefault) IsRedirect ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) IsRedirect() bool
IsRedirect returns true when this discount manager modify customer discount default response has a 3xx status code
func (*DiscountManagerModifyCustomerDiscountDefault) IsServerError ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) IsServerError() bool
IsServerError returns true when this discount manager modify customer discount default response has a 5xx status code
func (*DiscountManagerModifyCustomerDiscountDefault) IsSuccess ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) IsSuccess() bool
IsSuccess returns true when this discount manager modify customer discount default response has a 2xx status code
func (*DiscountManagerModifyCustomerDiscountDefault) String ¶
func (o *DiscountManagerModifyCustomerDiscountDefault) String() string
type DiscountManagerModifyCustomerDiscountOK ¶
type DiscountManagerModifyCustomerDiscountOK struct {
Payload *models.NewbillingModifyCustomerDiscountResponse
}
DiscountManagerModifyCustomerDiscountOK describes a response with status code 200, with default header values.
A successful response.
func NewDiscountManagerModifyCustomerDiscountOK ¶
func NewDiscountManagerModifyCustomerDiscountOK() *DiscountManagerModifyCustomerDiscountOK
NewDiscountManagerModifyCustomerDiscountOK creates a DiscountManagerModifyCustomerDiscountOK with default headers values
func (*DiscountManagerModifyCustomerDiscountOK) Error ¶
func (o *DiscountManagerModifyCustomerDiscountOK) Error() string
func (*DiscountManagerModifyCustomerDiscountOK) GetPayload ¶
func (o *DiscountManagerModifyCustomerDiscountOK) GetPayload() *models.NewbillingModifyCustomerDiscountResponse
func (*DiscountManagerModifyCustomerDiscountOK) IsClientError ¶
func (o *DiscountManagerModifyCustomerDiscountOK) IsClientError() bool
IsClientError returns true when this discount manager modify customer discount o k response has a 4xx status code
func (*DiscountManagerModifyCustomerDiscountOK) IsCode ¶
func (o *DiscountManagerModifyCustomerDiscountOK) IsCode(code int) bool
IsCode returns true when this discount manager modify customer discount o k response a status code equal to that given
func (*DiscountManagerModifyCustomerDiscountOK) IsRedirect ¶
func (o *DiscountManagerModifyCustomerDiscountOK) IsRedirect() bool
IsRedirect returns true when this discount manager modify customer discount o k response has a 3xx status code
func (*DiscountManagerModifyCustomerDiscountOK) IsServerError ¶
func (o *DiscountManagerModifyCustomerDiscountOK) IsServerError() bool
IsServerError returns true when this discount manager modify customer discount o k response has a 5xx status code
func (*DiscountManagerModifyCustomerDiscountOK) IsSuccess ¶
func (o *DiscountManagerModifyCustomerDiscountOK) IsSuccess() bool
IsSuccess returns true when this discount manager modify customer discount o k response has a 2xx status code
func (*DiscountManagerModifyCustomerDiscountOK) String ¶
func (o *DiscountManagerModifyCustomerDiscountOK) String() string
type DiscountManagerModifyCustomerDiscountParams ¶
type DiscountManagerModifyCustomerDiscountParams struct { // Body. Body *models.NewbillingModifyCustomerDiscountRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DiscountManagerModifyCustomerDiscountParams contains all the parameters to send to the API endpoint
for the discount manager modify customer discount operation. Typically these are written to a http.Request.
func NewDiscountManagerModifyCustomerDiscountParams ¶
func NewDiscountManagerModifyCustomerDiscountParams() *DiscountManagerModifyCustomerDiscountParams
NewDiscountManagerModifyCustomerDiscountParams creates a new DiscountManagerModifyCustomerDiscountParams 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 NewDiscountManagerModifyCustomerDiscountParamsWithContext ¶
func NewDiscountManagerModifyCustomerDiscountParamsWithContext(ctx context.Context) *DiscountManagerModifyCustomerDiscountParams
NewDiscountManagerModifyCustomerDiscountParamsWithContext creates a new DiscountManagerModifyCustomerDiscountParams object with the ability to set a context for a request.
func NewDiscountManagerModifyCustomerDiscountParamsWithHTTPClient ¶
func NewDiscountManagerModifyCustomerDiscountParamsWithHTTPClient(client *http.Client) *DiscountManagerModifyCustomerDiscountParams
NewDiscountManagerModifyCustomerDiscountParamsWithHTTPClient creates a new DiscountManagerModifyCustomerDiscountParams object with the ability to set a custom HTTPClient for a request.
func NewDiscountManagerModifyCustomerDiscountParamsWithTimeout ¶
func NewDiscountManagerModifyCustomerDiscountParamsWithTimeout(timeout time.Duration) *DiscountManagerModifyCustomerDiscountParams
NewDiscountManagerModifyCustomerDiscountParamsWithTimeout creates a new DiscountManagerModifyCustomerDiscountParams object with the ability to set a timeout on a request.
func (*DiscountManagerModifyCustomerDiscountParams) SetBody ¶
func (o *DiscountManagerModifyCustomerDiscountParams) SetBody(body *models.NewbillingModifyCustomerDiscountRequest)
SetBody adds the body to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) SetContext ¶
func (o *DiscountManagerModifyCustomerDiscountParams) SetContext(ctx context.Context)
SetContext adds the context to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) SetDefaults ¶
func (o *DiscountManagerModifyCustomerDiscountParams) SetDefaults()
SetDefaults hydrates default values in the discount manager modify customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerModifyCustomerDiscountParams) SetHTTPClient ¶
func (o *DiscountManagerModifyCustomerDiscountParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) SetTimeout ¶
func (o *DiscountManagerModifyCustomerDiscountParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) WithBody ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WithBody(body *models.NewbillingModifyCustomerDiscountRequest) *DiscountManagerModifyCustomerDiscountParams
WithBody adds the body to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) WithContext ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WithContext(ctx context.Context) *DiscountManagerModifyCustomerDiscountParams
WithContext adds the context to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) WithDefaults ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WithDefaults() *DiscountManagerModifyCustomerDiscountParams
WithDefaults hydrates default values in the discount manager modify customer discount params (not the query body).
All values with no default are reset to their zero value.
func (*DiscountManagerModifyCustomerDiscountParams) WithHTTPClient ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WithHTTPClient(client *http.Client) *DiscountManagerModifyCustomerDiscountParams
WithHTTPClient adds the HTTPClient to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) WithTimeout ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WithTimeout(timeout time.Duration) *DiscountManagerModifyCustomerDiscountParams
WithTimeout adds the timeout to the discount manager modify customer discount params
func (*DiscountManagerModifyCustomerDiscountParams) WriteToRequest ¶
func (o *DiscountManagerModifyCustomerDiscountParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DiscountManagerModifyCustomerDiscountReader ¶
type DiscountManagerModifyCustomerDiscountReader struct {
// contains filtered or unexported fields
}
DiscountManagerModifyCustomerDiscountReader is a Reader for the DiscountManagerModifyCustomerDiscount structure.
func (*DiscountManagerModifyCustomerDiscountReader) ReadResponse ¶
func (o *DiscountManagerModifyCustomerDiscountReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- discount_manager_calculate_customer_discount_parameters.go
- discount_manager_calculate_customer_discount_responses.go
- discount_manager_client.go
- discount_manager_create_customer_discount_parameters.go
- discount_manager_create_customer_discount_responses.go
- discount_manager_delete_customer_discounts_parameters.go
- discount_manager_delete_customer_discounts_responses.go
- discount_manager_describe_customer_discounts_parameters.go
- discount_manager_describe_customer_discounts_responses.go
- discount_manager_get_customer_discount_parameters.go
- discount_manager_get_customer_discount_responses.go
- discount_manager_modify_customer_discount_parameters.go
- discount_manager_modify_customer_discount_responses.go