Documentation ¶
Index ¶
- type Client
- func (a *Client) QuoteGuestCouponManagementV1GetGet(params *QuoteGuestCouponManagementV1GetGetParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1GetGetOK, error)
- func (a *Client) QuoteGuestCouponManagementV1RemoveDelete(params *QuoteGuestCouponManagementV1RemoveDeleteParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1RemoveDeleteOK, error)
- func (a *Client) QuoteGuestCouponManagementV1SetPut(params *QuoteGuestCouponManagementV1SetPutParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1SetPutOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientOption
- type ClientService
- type QuoteGuestCouponManagementV1GetGetBadRequest
- type QuoteGuestCouponManagementV1GetGetDefault
- type QuoteGuestCouponManagementV1GetGetOK
- type QuoteGuestCouponManagementV1GetGetParams
- func NewQuoteGuestCouponManagementV1GetGetParams() *QuoteGuestCouponManagementV1GetGetParams
- func NewQuoteGuestCouponManagementV1GetGetParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1GetGetParams
- func NewQuoteGuestCouponManagementV1GetGetParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1GetGetParams
- func NewQuoteGuestCouponManagementV1GetGetParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) SetCartID(cartID string)
- func (o *QuoteGuestCouponManagementV1GetGetParams) SetContext(ctx context.Context)
- func (o *QuoteGuestCouponManagementV1GetGetParams) SetDefaults()
- func (o *QuoteGuestCouponManagementV1GetGetParams) SetHTTPClient(client *http.Client)
- func (o *QuoteGuestCouponManagementV1GetGetParams) SetTimeout(timeout time.Duration)
- func (o *QuoteGuestCouponManagementV1GetGetParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) WithDefaults() *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1GetGetParams
- func (o *QuoteGuestCouponManagementV1GetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuoteGuestCouponManagementV1GetGetReader
- type QuoteGuestCouponManagementV1RemoveDeleteBadRequest
- type QuoteGuestCouponManagementV1RemoveDeleteDefault
- type QuoteGuestCouponManagementV1RemoveDeleteOK
- type QuoteGuestCouponManagementV1RemoveDeleteParams
- func NewQuoteGuestCouponManagementV1RemoveDeleteParams() *QuoteGuestCouponManagementV1RemoveDeleteParams
- func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetCartID(cartID string)
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetContext(ctx context.Context)
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetDefaults()
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetHTTPClient(client *http.Client)
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetTimeout(timeout time.Duration)
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithDefaults() *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1RemoveDeleteParams
- func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuoteGuestCouponManagementV1RemoveDeleteReader
- type QuoteGuestCouponManagementV1SetPutBadRequest
- type QuoteGuestCouponManagementV1SetPutDefault
- type QuoteGuestCouponManagementV1SetPutOK
- type QuoteGuestCouponManagementV1SetPutParams
- func NewQuoteGuestCouponManagementV1SetPutParams() *QuoteGuestCouponManagementV1SetPutParams
- func NewQuoteGuestCouponManagementV1SetPutParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1SetPutParams
- func NewQuoteGuestCouponManagementV1SetPutParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1SetPutParams
- func NewQuoteGuestCouponManagementV1SetPutParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetCartID(cartID string)
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetContext(ctx context.Context)
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetCouponCode(couponCode string)
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetDefaults()
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetHTTPClient(client *http.Client)
- func (o *QuoteGuestCouponManagementV1SetPutParams) SetTimeout(timeout time.Duration)
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithCouponCode(couponCode string) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithDefaults() *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1SetPutParams
- func (o *QuoteGuestCouponManagementV1SetPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuoteGuestCouponManagementV1SetPutReader
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 quote guest coupon management v1 API
func (*Client) QuoteGuestCouponManagementV1GetGet ¶
func (a *Client) QuoteGuestCouponManagementV1GetGet(params *QuoteGuestCouponManagementV1GetGetParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1GetGetOK, error)
QuoteGuestCouponManagementV1GetGet Return information for a coupon in a specified cart.
func (*Client) QuoteGuestCouponManagementV1RemoveDelete ¶
func (a *Client) QuoteGuestCouponManagementV1RemoveDelete(params *QuoteGuestCouponManagementV1RemoveDeleteParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1RemoveDeleteOK, error)
QuoteGuestCouponManagementV1RemoveDelete Delete a coupon from a specified cart.
func (*Client) QuoteGuestCouponManagementV1SetPut ¶
func (a *Client) QuoteGuestCouponManagementV1SetPut(params *QuoteGuestCouponManagementV1SetPutParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1SetPutOK, error)
QuoteGuestCouponManagementV1SetPut Add a coupon by code to a specified cart.
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 { QuoteGuestCouponManagementV1GetGet(params *QuoteGuestCouponManagementV1GetGetParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1GetGetOK, error) QuoteGuestCouponManagementV1RemoveDelete(params *QuoteGuestCouponManagementV1RemoveDeleteParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1RemoveDeleteOK, error) QuoteGuestCouponManagementV1SetPut(params *QuoteGuestCouponManagementV1SetPutParams, opts ...ClientOption) (*QuoteGuestCouponManagementV1SetPutOK, 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 quote guest coupon management v1 API client.
type QuoteGuestCouponManagementV1GetGetBadRequest ¶
type QuoteGuestCouponManagementV1GetGetBadRequest struct {
Payload *models.ErrorResponse
}
QuoteGuestCouponManagementV1GetGetBadRequest describes a response with status code 400, with default header values.
400 Bad Request
func NewQuoteGuestCouponManagementV1GetGetBadRequest ¶
func NewQuoteGuestCouponManagementV1GetGetBadRequest() *QuoteGuestCouponManagementV1GetGetBadRequest
NewQuoteGuestCouponManagementV1GetGetBadRequest creates a QuoteGuestCouponManagementV1GetGetBadRequest with default headers values
func (*QuoteGuestCouponManagementV1GetGetBadRequest) Error ¶
func (o *QuoteGuestCouponManagementV1GetGetBadRequest) Error() string
func (*QuoteGuestCouponManagementV1GetGetBadRequest) GetPayload ¶
func (o *QuoteGuestCouponManagementV1GetGetBadRequest) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1GetGetDefault ¶
type QuoteGuestCouponManagementV1GetGetDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
QuoteGuestCouponManagementV1GetGetDefault describes a response with status code -1, with default header values.
Unexpected error
func NewQuoteGuestCouponManagementV1GetGetDefault ¶
func NewQuoteGuestCouponManagementV1GetGetDefault(code int) *QuoteGuestCouponManagementV1GetGetDefault
NewQuoteGuestCouponManagementV1GetGetDefault creates a QuoteGuestCouponManagementV1GetGetDefault with default headers values
func (*QuoteGuestCouponManagementV1GetGetDefault) Code ¶
func (o *QuoteGuestCouponManagementV1GetGetDefault) Code() int
Code gets the status code for the quote guest coupon management v1 get get default response
func (*QuoteGuestCouponManagementV1GetGetDefault) Error ¶
func (o *QuoteGuestCouponManagementV1GetGetDefault) Error() string
func (*QuoteGuestCouponManagementV1GetGetDefault) GetPayload ¶
func (o *QuoteGuestCouponManagementV1GetGetDefault) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1GetGetOK ¶
type QuoteGuestCouponManagementV1GetGetOK struct {
Payload string
}
QuoteGuestCouponManagementV1GetGetOK describes a response with status code 200, with default header values.
200 Success.
func NewQuoteGuestCouponManagementV1GetGetOK ¶
func NewQuoteGuestCouponManagementV1GetGetOK() *QuoteGuestCouponManagementV1GetGetOK
NewQuoteGuestCouponManagementV1GetGetOK creates a QuoteGuestCouponManagementV1GetGetOK with default headers values
func (*QuoteGuestCouponManagementV1GetGetOK) Error ¶
func (o *QuoteGuestCouponManagementV1GetGetOK) Error() string
func (*QuoteGuestCouponManagementV1GetGetOK) GetPayload ¶
func (o *QuoteGuestCouponManagementV1GetGetOK) GetPayload() string
type QuoteGuestCouponManagementV1GetGetParams ¶
type QuoteGuestCouponManagementV1GetGetParams struct { /* CartID. The cart ID. */ CartID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuoteGuestCouponManagementV1GetGetParams contains all the parameters to send to the API endpoint
for the quote guest coupon management v1 get get operation. Typically these are written to a http.Request.
func NewQuoteGuestCouponManagementV1GetGetParams ¶
func NewQuoteGuestCouponManagementV1GetGetParams() *QuoteGuestCouponManagementV1GetGetParams
NewQuoteGuestCouponManagementV1GetGetParams creates a new QuoteGuestCouponManagementV1GetGetParams 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 NewQuoteGuestCouponManagementV1GetGetParamsWithContext ¶
func NewQuoteGuestCouponManagementV1GetGetParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1GetGetParams
NewQuoteGuestCouponManagementV1GetGetParamsWithContext creates a new QuoteGuestCouponManagementV1GetGetParams object with the ability to set a context for a request.
func NewQuoteGuestCouponManagementV1GetGetParamsWithHTTPClient ¶
func NewQuoteGuestCouponManagementV1GetGetParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1GetGetParams
NewQuoteGuestCouponManagementV1GetGetParamsWithHTTPClient creates a new QuoteGuestCouponManagementV1GetGetParams object with the ability to set a custom HTTPClient for a request.
func NewQuoteGuestCouponManagementV1GetGetParamsWithTimeout ¶
func NewQuoteGuestCouponManagementV1GetGetParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1GetGetParams
NewQuoteGuestCouponManagementV1GetGetParamsWithTimeout creates a new QuoteGuestCouponManagementV1GetGetParams object with the ability to set a timeout on a request.
func (*QuoteGuestCouponManagementV1GetGetParams) SetCartID ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) SetCartID(cartID string)
SetCartID adds the cartId to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) SetContext ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) SetContext(ctx context.Context)
SetContext adds the context to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) SetDefaults ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) SetDefaults()
SetDefaults hydrates default values in the quote guest coupon management v1 get get params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1GetGetParams) SetHTTPClient ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) SetTimeout ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) WithCartID ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1GetGetParams
WithCartID adds the cartID to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) WithContext ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1GetGetParams
WithContext adds the context to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) WithDefaults ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WithDefaults() *QuoteGuestCouponManagementV1GetGetParams
WithDefaults hydrates default values in the quote guest coupon management v1 get get params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1GetGetParams) WithHTTPClient ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1GetGetParams
WithHTTPClient adds the HTTPClient to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) WithTimeout ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1GetGetParams
WithTimeout adds the timeout to the quote guest coupon management v1 get get params
func (*QuoteGuestCouponManagementV1GetGetParams) WriteToRequest ¶
func (o *QuoteGuestCouponManagementV1GetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuoteGuestCouponManagementV1GetGetReader ¶
type QuoteGuestCouponManagementV1GetGetReader struct {
// contains filtered or unexported fields
}
QuoteGuestCouponManagementV1GetGetReader is a Reader for the QuoteGuestCouponManagementV1GetGet structure.
func (*QuoteGuestCouponManagementV1GetGetReader) ReadResponse ¶
func (o *QuoteGuestCouponManagementV1GetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QuoteGuestCouponManagementV1RemoveDeleteBadRequest ¶
type QuoteGuestCouponManagementV1RemoveDeleteBadRequest struct {
Payload *models.ErrorResponse
}
QuoteGuestCouponManagementV1RemoveDeleteBadRequest describes a response with status code 400, with default header values.
400 Bad Request
func NewQuoteGuestCouponManagementV1RemoveDeleteBadRequest ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteBadRequest() *QuoteGuestCouponManagementV1RemoveDeleteBadRequest
NewQuoteGuestCouponManagementV1RemoveDeleteBadRequest creates a QuoteGuestCouponManagementV1RemoveDeleteBadRequest with default headers values
func (*QuoteGuestCouponManagementV1RemoveDeleteBadRequest) Error ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteBadRequest) Error() string
func (*QuoteGuestCouponManagementV1RemoveDeleteBadRequest) GetPayload ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteBadRequest) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1RemoveDeleteDefault ¶
type QuoteGuestCouponManagementV1RemoveDeleteDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
QuoteGuestCouponManagementV1RemoveDeleteDefault describes a response with status code -1, with default header values.
Unexpected error
func NewQuoteGuestCouponManagementV1RemoveDeleteDefault ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteDefault(code int) *QuoteGuestCouponManagementV1RemoveDeleteDefault
NewQuoteGuestCouponManagementV1RemoveDeleteDefault creates a QuoteGuestCouponManagementV1RemoveDeleteDefault with default headers values
func (*QuoteGuestCouponManagementV1RemoveDeleteDefault) Code ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteDefault) Code() int
Code gets the status code for the quote guest coupon management v1 remove delete default response
func (*QuoteGuestCouponManagementV1RemoveDeleteDefault) Error ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteDefault) Error() string
func (*QuoteGuestCouponManagementV1RemoveDeleteDefault) GetPayload ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteDefault) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1RemoveDeleteOK ¶
type QuoteGuestCouponManagementV1RemoveDeleteOK struct {
Payload bool
}
QuoteGuestCouponManagementV1RemoveDeleteOK describes a response with status code 200, with default header values.
200 Success.
func NewQuoteGuestCouponManagementV1RemoveDeleteOK ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteOK() *QuoteGuestCouponManagementV1RemoveDeleteOK
NewQuoteGuestCouponManagementV1RemoveDeleteOK creates a QuoteGuestCouponManagementV1RemoveDeleteOK with default headers values
func (*QuoteGuestCouponManagementV1RemoveDeleteOK) Error ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteOK) Error() string
func (*QuoteGuestCouponManagementV1RemoveDeleteOK) GetPayload ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteOK) GetPayload() bool
type QuoteGuestCouponManagementV1RemoveDeleteParams ¶
type QuoteGuestCouponManagementV1RemoveDeleteParams struct { /* CartID. The cart ID. */ CartID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuoteGuestCouponManagementV1RemoveDeleteParams contains all the parameters to send to the API endpoint
for the quote guest coupon management v1 remove delete operation. Typically these are written to a http.Request.
func NewQuoteGuestCouponManagementV1RemoveDeleteParams ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteParams() *QuoteGuestCouponManagementV1RemoveDeleteParams
NewQuoteGuestCouponManagementV1RemoveDeleteParams creates a new QuoteGuestCouponManagementV1RemoveDeleteParams 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 NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithContext ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1RemoveDeleteParams
NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithContext creates a new QuoteGuestCouponManagementV1RemoveDeleteParams object with the ability to set a context for a request.
func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithHTTPClient ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1RemoveDeleteParams
NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithHTTPClient creates a new QuoteGuestCouponManagementV1RemoveDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithTimeout ¶
func NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1RemoveDeleteParams
NewQuoteGuestCouponManagementV1RemoveDeleteParamsWithTimeout creates a new QuoteGuestCouponManagementV1RemoveDeleteParams object with the ability to set a timeout on a request.
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) SetCartID ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetCartID(cartID string)
SetCartID adds the cartId to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) SetContext ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) SetDefaults ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetDefaults()
SetDefaults hydrates default values in the quote guest coupon management v1 remove delete params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) SetHTTPClient ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) SetTimeout ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WithCartID ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1RemoveDeleteParams
WithCartID adds the cartID to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WithContext ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1RemoveDeleteParams
WithContext adds the context to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WithDefaults ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithDefaults() *QuoteGuestCouponManagementV1RemoveDeleteParams
WithDefaults hydrates default values in the quote guest coupon management v1 remove delete params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WithHTTPClient ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1RemoveDeleteParams
WithHTTPClient adds the HTTPClient to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WithTimeout ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1RemoveDeleteParams
WithTimeout adds the timeout to the quote guest coupon management v1 remove delete params
func (*QuoteGuestCouponManagementV1RemoveDeleteParams) WriteToRequest ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuoteGuestCouponManagementV1RemoveDeleteReader ¶
type QuoteGuestCouponManagementV1RemoveDeleteReader struct {
// contains filtered or unexported fields
}
QuoteGuestCouponManagementV1RemoveDeleteReader is a Reader for the QuoteGuestCouponManagementV1RemoveDelete structure.
func (*QuoteGuestCouponManagementV1RemoveDeleteReader) ReadResponse ¶
func (o *QuoteGuestCouponManagementV1RemoveDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type QuoteGuestCouponManagementV1SetPutBadRequest ¶
type QuoteGuestCouponManagementV1SetPutBadRequest struct {
Payload *models.ErrorResponse
}
QuoteGuestCouponManagementV1SetPutBadRequest describes a response with status code 400, with default header values.
400 Bad Request
func NewQuoteGuestCouponManagementV1SetPutBadRequest ¶
func NewQuoteGuestCouponManagementV1SetPutBadRequest() *QuoteGuestCouponManagementV1SetPutBadRequest
NewQuoteGuestCouponManagementV1SetPutBadRequest creates a QuoteGuestCouponManagementV1SetPutBadRequest with default headers values
func (*QuoteGuestCouponManagementV1SetPutBadRequest) Error ¶
func (o *QuoteGuestCouponManagementV1SetPutBadRequest) Error() string
func (*QuoteGuestCouponManagementV1SetPutBadRequest) GetPayload ¶
func (o *QuoteGuestCouponManagementV1SetPutBadRequest) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1SetPutDefault ¶
type QuoteGuestCouponManagementV1SetPutDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
QuoteGuestCouponManagementV1SetPutDefault describes a response with status code -1, with default header values.
Unexpected error
func NewQuoteGuestCouponManagementV1SetPutDefault ¶
func NewQuoteGuestCouponManagementV1SetPutDefault(code int) *QuoteGuestCouponManagementV1SetPutDefault
NewQuoteGuestCouponManagementV1SetPutDefault creates a QuoteGuestCouponManagementV1SetPutDefault with default headers values
func (*QuoteGuestCouponManagementV1SetPutDefault) Code ¶
func (o *QuoteGuestCouponManagementV1SetPutDefault) Code() int
Code gets the status code for the quote guest coupon management v1 set put default response
func (*QuoteGuestCouponManagementV1SetPutDefault) Error ¶
func (o *QuoteGuestCouponManagementV1SetPutDefault) Error() string
func (*QuoteGuestCouponManagementV1SetPutDefault) GetPayload ¶
func (o *QuoteGuestCouponManagementV1SetPutDefault) GetPayload() *models.ErrorResponse
type QuoteGuestCouponManagementV1SetPutOK ¶
type QuoteGuestCouponManagementV1SetPutOK struct {
Payload bool
}
QuoteGuestCouponManagementV1SetPutOK describes a response with status code 200, with default header values.
200 Success.
func NewQuoteGuestCouponManagementV1SetPutOK ¶
func NewQuoteGuestCouponManagementV1SetPutOK() *QuoteGuestCouponManagementV1SetPutOK
NewQuoteGuestCouponManagementV1SetPutOK creates a QuoteGuestCouponManagementV1SetPutOK with default headers values
func (*QuoteGuestCouponManagementV1SetPutOK) Error ¶
func (o *QuoteGuestCouponManagementV1SetPutOK) Error() string
func (*QuoteGuestCouponManagementV1SetPutOK) GetPayload ¶
func (o *QuoteGuestCouponManagementV1SetPutOK) GetPayload() bool
type QuoteGuestCouponManagementV1SetPutParams ¶
type QuoteGuestCouponManagementV1SetPutParams struct { /* CartID. The cart ID. */ CartID string /* CouponCode. The coupon code data. */ CouponCode string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuoteGuestCouponManagementV1SetPutParams contains all the parameters to send to the API endpoint
for the quote guest coupon management v1 set put operation. Typically these are written to a http.Request.
func NewQuoteGuestCouponManagementV1SetPutParams ¶
func NewQuoteGuestCouponManagementV1SetPutParams() *QuoteGuestCouponManagementV1SetPutParams
NewQuoteGuestCouponManagementV1SetPutParams creates a new QuoteGuestCouponManagementV1SetPutParams 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 NewQuoteGuestCouponManagementV1SetPutParamsWithContext ¶
func NewQuoteGuestCouponManagementV1SetPutParamsWithContext(ctx context.Context) *QuoteGuestCouponManagementV1SetPutParams
NewQuoteGuestCouponManagementV1SetPutParamsWithContext creates a new QuoteGuestCouponManagementV1SetPutParams object with the ability to set a context for a request.
func NewQuoteGuestCouponManagementV1SetPutParamsWithHTTPClient ¶
func NewQuoteGuestCouponManagementV1SetPutParamsWithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1SetPutParams
NewQuoteGuestCouponManagementV1SetPutParamsWithHTTPClient creates a new QuoteGuestCouponManagementV1SetPutParams object with the ability to set a custom HTTPClient for a request.
func NewQuoteGuestCouponManagementV1SetPutParamsWithTimeout ¶
func NewQuoteGuestCouponManagementV1SetPutParamsWithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1SetPutParams
NewQuoteGuestCouponManagementV1SetPutParamsWithTimeout creates a new QuoteGuestCouponManagementV1SetPutParams object with the ability to set a timeout on a request.
func (*QuoteGuestCouponManagementV1SetPutParams) SetCartID ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetCartID(cartID string)
SetCartID adds the cartId to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) SetContext ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetContext(ctx context.Context)
SetContext adds the context to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) SetCouponCode ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetCouponCode(couponCode string)
SetCouponCode adds the couponCode to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) SetDefaults ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetDefaults()
SetDefaults hydrates default values in the quote guest coupon management v1 set put params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1SetPutParams) SetHTTPClient ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) SetTimeout ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WithCartID ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithCartID(cartID string) *QuoteGuestCouponManagementV1SetPutParams
WithCartID adds the cartID to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WithContext ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithContext(ctx context.Context) *QuoteGuestCouponManagementV1SetPutParams
WithContext adds the context to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WithCouponCode ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithCouponCode(couponCode string) *QuoteGuestCouponManagementV1SetPutParams
WithCouponCode adds the couponCode to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WithDefaults ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithDefaults() *QuoteGuestCouponManagementV1SetPutParams
WithDefaults hydrates default values in the quote guest coupon management v1 set put params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCouponManagementV1SetPutParams) WithHTTPClient ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithHTTPClient(client *http.Client) *QuoteGuestCouponManagementV1SetPutParams
WithHTTPClient adds the HTTPClient to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WithTimeout ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WithTimeout(timeout time.Duration) *QuoteGuestCouponManagementV1SetPutParams
WithTimeout adds the timeout to the quote guest coupon management v1 set put params
func (*QuoteGuestCouponManagementV1SetPutParams) WriteToRequest ¶
func (o *QuoteGuestCouponManagementV1SetPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuoteGuestCouponManagementV1SetPutReader ¶
type QuoteGuestCouponManagementV1SetPutReader struct {
// contains filtered or unexported fields
}
QuoteGuestCouponManagementV1SetPutReader is a Reader for the QuoteGuestCouponManagementV1SetPut structure.
func (*QuoteGuestCouponManagementV1SetPutReader) ReadResponse ¶
func (o *QuoteGuestCouponManagementV1SetPutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- quote_guest_coupon_management_v1_client.go
- quote_guest_coupon_management_v1_get_get_parameters.go
- quote_guest_coupon_management_v1_get_get_responses.go
- quote_guest_coupon_management_v1_remove_delete_parameters.go
- quote_guest_coupon_management_v1_remove_delete_responses.go
- quote_guest_coupon_management_v1_set_put_parameters.go
- quote_guest_coupon_management_v1_set_put_responses.go