Documentation
¶
Index ¶
- type Client
- type ClientOption
- type ClientService
- type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) MarshalBinary() ([]byte, error)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) UnmarshalBinary(b []byte) error
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) Validate(formats strfmt.Registry) error
- type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault
- type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK
- type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams() *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithContext(ctx context.Context) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithHTTPClient(client *http.Client) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithTimeout(timeout time.Duration) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetCartID(cartID string)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetContext(ctx context.Context)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetDefaults()
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetHTTPClient(client *http.Client)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody(...)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetTimeout(timeout time.Duration)
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithCartID(cartID string) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithContext(ctx context.Context) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithDefaults() *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithHTTPClient(client *http.Client) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody(...) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithTimeout(timeout time.Duration) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
- func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader
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 shipment estimation v1 API
func (*Client) QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPost ¶
func (a *Client) QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPost(params *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams, opts ...ClientOption) (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK, error)
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPost Estimate shipping by address and return list of available shipping methods
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 { QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPost(params *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams, opts ...ClientOption) (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK, 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 shipment estimation v1 API client.
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody ¶
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody struct { // address // Required: true Address *models.QuoteDataAddressInterface `json:"address"` }
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody quote guest shipment estimation v1 estimate by extended address post body swagger:model QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) ContextValidate ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this quote guest shipment estimation v1 estimate by extended address post body based on the context it is used
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) MarshalBinary ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) UnmarshalBinary ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault ¶
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault describes a response with status code -1, with default header values.
Unexpected error
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault(code int) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault creates a QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault with default headers values
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) Code ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) Code() int
Code gets the status code for the quote guest shipment estimation v1 estimate by extended address post default response
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) Error ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) Error() string
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) GetPayload ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostDefault) GetPayload() *models.ErrorResponse
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK ¶
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK struct {
Payload []*models.QuoteDataShippingMethodInterface
}
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK describes a response with status code 200, with default header values.
200 Success.
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK() *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK creates a QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK with default headers values
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK) Error ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK) Error() string
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK) GetPayload ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostOK) GetPayload() []*models.QuoteDataShippingMethodInterface
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams ¶
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams struct { // CartID. CartID string // QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody. QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams contains all the parameters to send to the API endpoint
for the quote guest shipment estimation v1 estimate by extended address post operation. Typically these are written to a http.Request.
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams() *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams creates a new QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams 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 NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithContext ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithContext(ctx context.Context) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithContext creates a new QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams object with the ability to set a context for a request.
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithHTTPClient ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithHTTPClient(client *http.Client) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithHTTPClient creates a new QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams object with the ability to set a custom HTTPClient for a request.
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithTimeout ¶
func NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithTimeout(timeout time.Duration) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
NewQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParamsWithTimeout creates a new QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams object with the ability to set a timeout on a request.
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetCartID ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetCartID(cartID string)
SetCartID adds the cartId to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetContext ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetContext(ctx context.Context)
SetContext adds the context to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetDefaults ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetDefaults()
SetDefaults hydrates default values in the quote guest shipment estimation v1 estimate by extended address post params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetHTTPClient ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody(quoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody)
SetQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody adds the quoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetTimeout ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithCartID ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithCartID(cartID string) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithCartID adds the cartID to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithContext ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithContext(ctx context.Context) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithContext adds the context to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithDefaults ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithDefaults() *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithDefaults hydrates default values in the quote guest shipment estimation v1 estimate by extended address post params (not the query body).
All values with no default are reset to their zero value.
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithHTTPClient ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithHTTPClient(client *http.Client) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithHTTPClient adds the HTTPClient to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody(quoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithQuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody adds the quoteGuestShipmentEstimationV1EstimateByExtendedAddressPostBody to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithTimeout ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WithTimeout(timeout time.Duration) *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams
WithTimeout adds the timeout to the quote guest shipment estimation v1 estimate by extended address post params
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WriteToRequest ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader ¶
type QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader struct {
// contains filtered or unexported fields
}
QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader is a Reader for the QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPost structure.
func (*QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader) ReadResponse ¶
func (o *QuoteGuestShipmentEstimationV1EstimateByExtendedAddressPostReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.