Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type QuoteGuestCartTotalManagementV1CollectTotalsPutBody
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) MarshalBinary() ([]byte, error)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) UnmarshalBinary(b []byte) error
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) Validate(formats strfmt.Registry) error
- type QuoteGuestCartTotalManagementV1CollectTotalsPutDefault
- type QuoteGuestCartTotalManagementV1CollectTotalsPutOK
- type QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParams() *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithContext(ctx context.Context) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithHTTPClient(client *http.Client) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithTimeout(timeout time.Duration) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetCartID(cartID string)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetContext(ctx context.Context)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetDefaults()
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetHTTPClient(client *http.Client)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetQuoteGuestCartTotalManagementV1CollectTotalsPutBody(...)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetTimeout(timeout time.Duration)
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithCartID(cartID string) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithContext(ctx context.Context) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithDefaults() *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithHTTPClient(client *http.Client) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithQuoteGuestCartTotalManagementV1CollectTotalsPutBody(...) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithTimeout(timeout time.Duration) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
- func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuoteGuestCartTotalManagementV1CollectTotalsPutReader
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 cart total management v1 API
func (*Client) QuoteGuestCartTotalManagementV1CollectTotalsPut ¶
func (a *Client) QuoteGuestCartTotalManagementV1CollectTotalsPut(params *QuoteGuestCartTotalManagementV1CollectTotalsPutParams, opts ...ClientOption) (*QuoteGuestCartTotalManagementV1CollectTotalsPutOK, error)
QuoteGuestCartTotalManagementV1CollectTotalsPut Set shipping/billing methods and additional data for cart and collect totals for guest.
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 { QuoteGuestCartTotalManagementV1CollectTotalsPut(params *QuoteGuestCartTotalManagementV1CollectTotalsPutParams, opts ...ClientOption) (*QuoteGuestCartTotalManagementV1CollectTotalsPutOK, 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 cart total management v1 API client.
type QuoteGuestCartTotalManagementV1CollectTotalsPutBody ¶
type QuoteGuestCartTotalManagementV1CollectTotalsPutBody struct { // additional data AdditionalData *models.QuoteDataTotalsAdditionalDataInterface `json:"additionalData,omitempty"` // payment method // Required: true PaymentMethod *models.QuoteDataPaymentInterface `json:"paymentMethod"` // The carrier code. ShippingCarrierCode string `json:"shippingCarrierCode,omitempty"` // The shipping method code. ShippingMethodCode string `json:"shippingMethodCode,omitempty"` }
QuoteGuestCartTotalManagementV1CollectTotalsPutBody quote guest cart total management v1 collect totals put body swagger:model QuoteGuestCartTotalManagementV1CollectTotalsPutBody
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutBody) ContextValidate ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this quote guest cart total management v1 collect totals put body based on the context it is used
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutBody) MarshalBinary ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutBody) UnmarshalBinary ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type QuoteGuestCartTotalManagementV1CollectTotalsPutDefault ¶
type QuoteGuestCartTotalManagementV1CollectTotalsPutDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
QuoteGuestCartTotalManagementV1CollectTotalsPutDefault describes a response with status code -1, with default header values.
Unexpected error
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutDefault ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutDefault(code int) *QuoteGuestCartTotalManagementV1CollectTotalsPutDefault
NewQuoteGuestCartTotalManagementV1CollectTotalsPutDefault creates a QuoteGuestCartTotalManagementV1CollectTotalsPutDefault with default headers values
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) Code ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) Code() int
Code gets the status code for the quote guest cart total management v1 collect totals put default response
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) Error ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) Error() string
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) GetPayload ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutDefault) GetPayload() *models.ErrorResponse
type QuoteGuestCartTotalManagementV1CollectTotalsPutOK ¶
type QuoteGuestCartTotalManagementV1CollectTotalsPutOK struct {
Payload *models.QuoteDataTotalsInterface
}
QuoteGuestCartTotalManagementV1CollectTotalsPutOK describes a response with status code 200, with default header values.
200 Success.
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutOK ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutOK() *QuoteGuestCartTotalManagementV1CollectTotalsPutOK
NewQuoteGuestCartTotalManagementV1CollectTotalsPutOK creates a QuoteGuestCartTotalManagementV1CollectTotalsPutOK with default headers values
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutOK) Error ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutOK) Error() string
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutOK) GetPayload ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutOK) GetPayload() *models.QuoteDataTotalsInterface
type QuoteGuestCartTotalManagementV1CollectTotalsPutParams ¶
type QuoteGuestCartTotalManagementV1CollectTotalsPutParams struct { /* CartID. The cart ID. */ CartID string // QuoteGuestCartTotalManagementV1CollectTotalsPutBody. QuoteGuestCartTotalManagementV1CollectTotalsPutBody QuoteGuestCartTotalManagementV1CollectTotalsPutBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuoteGuestCartTotalManagementV1CollectTotalsPutParams contains all the parameters to send to the API endpoint
for the quote guest cart total management v1 collect totals put operation. Typically these are written to a http.Request.
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParams ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParams() *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
NewQuoteGuestCartTotalManagementV1CollectTotalsPutParams creates a new QuoteGuestCartTotalManagementV1CollectTotalsPutParams 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 NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithContext ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithContext(ctx context.Context) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithContext creates a new QuoteGuestCartTotalManagementV1CollectTotalsPutParams object with the ability to set a context for a request.
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithHTTPClient ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithHTTPClient(client *http.Client) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithHTTPClient creates a new QuoteGuestCartTotalManagementV1CollectTotalsPutParams object with the ability to set a custom HTTPClient for a request.
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithTimeout ¶
func NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithTimeout(timeout time.Duration) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
NewQuoteGuestCartTotalManagementV1CollectTotalsPutParamsWithTimeout creates a new QuoteGuestCartTotalManagementV1CollectTotalsPutParams object with the ability to set a timeout on a request.
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetCartID ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetCartID(cartID string)
SetCartID adds the cartId to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetContext ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetContext(ctx context.Context)
SetContext adds the context to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetDefaults ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetDefaults()
SetDefaults hydrates default values in the quote guest cart total management v1 collect totals put params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetHTTPClient ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetQuoteGuestCartTotalManagementV1CollectTotalsPutBody ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetQuoteGuestCartTotalManagementV1CollectTotalsPutBody(quoteGuestCartTotalManagementV1CollectTotalsPutBody QuoteGuestCartTotalManagementV1CollectTotalsPutBody)
SetQuoteGuestCartTotalManagementV1CollectTotalsPutBody adds the quoteGuestCartTotalManagementV1CollectTotalsPutBody to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetTimeout ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithCartID ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithCartID(cartID string) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithCartID adds the cartID to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithContext ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithContext(ctx context.Context) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithContext adds the context to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithDefaults ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithDefaults() *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithDefaults hydrates default values in the quote guest cart total management v1 collect totals put params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithHTTPClient ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithHTTPClient(client *http.Client) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithHTTPClient adds the HTTPClient to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithQuoteGuestCartTotalManagementV1CollectTotalsPutBody ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithQuoteGuestCartTotalManagementV1CollectTotalsPutBody(quoteGuestCartTotalManagementV1CollectTotalsPutBody QuoteGuestCartTotalManagementV1CollectTotalsPutBody) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithQuoteGuestCartTotalManagementV1CollectTotalsPutBody adds the quoteGuestCartTotalManagementV1CollectTotalsPutBody to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithTimeout ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WithTimeout(timeout time.Duration) *QuoteGuestCartTotalManagementV1CollectTotalsPutParams
WithTimeout adds the timeout to the quote guest cart total management v1 collect totals put params
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WriteToRequest ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuoteGuestCartTotalManagementV1CollectTotalsPutReader ¶
type QuoteGuestCartTotalManagementV1CollectTotalsPutReader struct {
// contains filtered or unexported fields
}
QuoteGuestCartTotalManagementV1CollectTotalsPutReader is a Reader for the QuoteGuestCartTotalManagementV1CollectTotalsPut structure.
func (*QuoteGuestCartTotalManagementV1CollectTotalsPutReader) ReadResponse ¶
func (o *QuoteGuestCartTotalManagementV1CollectTotalsPutReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.