vendor_d_f_sandbox

package
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 14, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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 vendor d f sandbox API

func (*Client) GenerateOrderScenarios

func (a *Client) GenerateOrderScenarios(params *GenerateOrderScenariosParams, opts ...ClientOption) (*GenerateOrderScenariosAccepted, error)

GenerateOrderScenarios Submits a request to generate test order data for Vendor Direct Fulfillment API entities.

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 {
	GenerateOrderScenarios(params *GenerateOrderScenariosParams, opts ...ClientOption) (*GenerateOrderScenariosAccepted, 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 vendor d f sandbox API client.

type GenerateOrderScenariosAccepted

type GenerateOrderScenariosAccepted struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.TransactionReference
}

GenerateOrderScenariosAccepted describes a response with status code 202, with default header values.

Success.

func NewGenerateOrderScenariosAccepted

func NewGenerateOrderScenariosAccepted() *GenerateOrderScenariosAccepted

NewGenerateOrderScenariosAccepted creates a GenerateOrderScenariosAccepted with default headers values

func (*GenerateOrderScenariosAccepted) Error

func (*GenerateOrderScenariosAccepted) IsClientError

func (o *GenerateOrderScenariosAccepted) IsClientError() bool

IsClientError returns true when this generate order scenarios accepted response has a 4xx status code

func (*GenerateOrderScenariosAccepted) IsCode

func (o *GenerateOrderScenariosAccepted) IsCode(code int) bool

IsCode returns true when this generate order scenarios accepted response a status code equal to that given

func (*GenerateOrderScenariosAccepted) IsRedirect

func (o *GenerateOrderScenariosAccepted) IsRedirect() bool

IsRedirect returns true when this generate order scenarios accepted response has a 3xx status code

func (*GenerateOrderScenariosAccepted) IsServerError

func (o *GenerateOrderScenariosAccepted) IsServerError() bool

IsServerError returns true when this generate order scenarios accepted response has a 5xx status code

func (*GenerateOrderScenariosAccepted) IsSuccess

func (o *GenerateOrderScenariosAccepted) IsSuccess() bool

IsSuccess returns true when this generate order scenarios accepted response has a 2xx status code

func (*GenerateOrderScenariosAccepted) String

type GenerateOrderScenariosBadRequest

type GenerateOrderScenariosBadRequest struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosBadRequest describes a response with status code 400, with default header values.

Request has missing or invalid parameters and cannot be parsed.

func NewGenerateOrderScenariosBadRequest

func NewGenerateOrderScenariosBadRequest() *GenerateOrderScenariosBadRequest

NewGenerateOrderScenariosBadRequest creates a GenerateOrderScenariosBadRequest with default headers values

func (*GenerateOrderScenariosBadRequest) Error

func (*GenerateOrderScenariosBadRequest) IsClientError

func (o *GenerateOrderScenariosBadRequest) IsClientError() bool

IsClientError returns true when this generate order scenarios bad request response has a 4xx status code

func (*GenerateOrderScenariosBadRequest) IsCode

func (o *GenerateOrderScenariosBadRequest) IsCode(code int) bool

IsCode returns true when this generate order scenarios bad request response a status code equal to that given

func (*GenerateOrderScenariosBadRequest) IsRedirect

func (o *GenerateOrderScenariosBadRequest) IsRedirect() bool

IsRedirect returns true when this generate order scenarios bad request response has a 3xx status code

func (*GenerateOrderScenariosBadRequest) IsServerError

func (o *GenerateOrderScenariosBadRequest) IsServerError() bool

IsServerError returns true when this generate order scenarios bad request response has a 5xx status code

func (*GenerateOrderScenariosBadRequest) IsSuccess

func (o *GenerateOrderScenariosBadRequest) IsSuccess() bool

IsSuccess returns true when this generate order scenarios bad request response has a 2xx status code

func (*GenerateOrderScenariosBadRequest) String

type GenerateOrderScenariosForbidden

type GenerateOrderScenariosForbidden struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosForbidden describes a response with status code 403, with default header values.

Indicates that access to the resource is forbidden. Possible reasons include Access Denied, Unauthorized, Expired Token, or Invalid Signature.

func NewGenerateOrderScenariosForbidden

func NewGenerateOrderScenariosForbidden() *GenerateOrderScenariosForbidden

NewGenerateOrderScenariosForbidden creates a GenerateOrderScenariosForbidden with default headers values

func (*GenerateOrderScenariosForbidden) Error

func (*GenerateOrderScenariosForbidden) IsClientError

func (o *GenerateOrderScenariosForbidden) IsClientError() bool

IsClientError returns true when this generate order scenarios forbidden response has a 4xx status code

func (*GenerateOrderScenariosForbidden) IsCode

func (o *GenerateOrderScenariosForbidden) IsCode(code int) bool

IsCode returns true when this generate order scenarios forbidden response a status code equal to that given

func (*GenerateOrderScenariosForbidden) IsRedirect

func (o *GenerateOrderScenariosForbidden) IsRedirect() bool

IsRedirect returns true when this generate order scenarios forbidden response has a 3xx status code

func (*GenerateOrderScenariosForbidden) IsServerError

func (o *GenerateOrderScenariosForbidden) IsServerError() bool

IsServerError returns true when this generate order scenarios forbidden response has a 5xx status code

func (*GenerateOrderScenariosForbidden) IsSuccess

func (o *GenerateOrderScenariosForbidden) IsSuccess() bool

IsSuccess returns true when this generate order scenarios forbidden response has a 2xx status code

func (*GenerateOrderScenariosForbidden) String

type GenerateOrderScenariosInternalServerError

type GenerateOrderScenariosInternalServerError struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosInternalServerError describes a response with status code 500, with default header values.

An unexpected condition occurred that prevented the server from fulfilling the request.

func NewGenerateOrderScenariosInternalServerError

func NewGenerateOrderScenariosInternalServerError() *GenerateOrderScenariosInternalServerError

NewGenerateOrderScenariosInternalServerError creates a GenerateOrderScenariosInternalServerError with default headers values

func (*GenerateOrderScenariosInternalServerError) Error

func (*GenerateOrderScenariosInternalServerError) GetPayload

func (*GenerateOrderScenariosInternalServerError) IsClientError

IsClientError returns true when this generate order scenarios internal server error response has a 4xx status code

func (*GenerateOrderScenariosInternalServerError) IsCode

IsCode returns true when this generate order scenarios internal server error response a status code equal to that given

func (*GenerateOrderScenariosInternalServerError) IsRedirect

IsRedirect returns true when this generate order scenarios internal server error response has a 3xx status code

func (*GenerateOrderScenariosInternalServerError) IsServerError

IsServerError returns true when this generate order scenarios internal server error response has a 5xx status code

func (*GenerateOrderScenariosInternalServerError) IsSuccess

IsSuccess returns true when this generate order scenarios internal server error response has a 2xx status code

func (*GenerateOrderScenariosInternalServerError) String

type GenerateOrderScenariosNotFound

type GenerateOrderScenariosNotFound struct {

	/* Your rate limit (requests per second) for this operation.
	 */
	XAmznRateLimitLimit string

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosNotFound describes a response with status code 404, with default header values.

The resource specified does not exist.

func NewGenerateOrderScenariosNotFound

func NewGenerateOrderScenariosNotFound() *GenerateOrderScenariosNotFound

NewGenerateOrderScenariosNotFound creates a GenerateOrderScenariosNotFound with default headers values

func (*GenerateOrderScenariosNotFound) Error

func (*GenerateOrderScenariosNotFound) IsClientError

func (o *GenerateOrderScenariosNotFound) IsClientError() bool

IsClientError returns true when this generate order scenarios not found response has a 4xx status code

func (*GenerateOrderScenariosNotFound) IsCode

func (o *GenerateOrderScenariosNotFound) IsCode(code int) bool

IsCode returns true when this generate order scenarios not found response a status code equal to that given

func (*GenerateOrderScenariosNotFound) IsRedirect

func (o *GenerateOrderScenariosNotFound) IsRedirect() bool

IsRedirect returns true when this generate order scenarios not found response has a 3xx status code

func (*GenerateOrderScenariosNotFound) IsServerError

func (o *GenerateOrderScenariosNotFound) IsServerError() bool

IsServerError returns true when this generate order scenarios not found response has a 5xx status code

func (*GenerateOrderScenariosNotFound) IsSuccess

func (o *GenerateOrderScenariosNotFound) IsSuccess() bool

IsSuccess returns true when this generate order scenarios not found response has a 2xx status code

func (*GenerateOrderScenariosNotFound) String

type GenerateOrderScenariosParams

type GenerateOrderScenariosParams struct {

	// Body.
	Body *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.GenerateOrderScenarioRequest

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GenerateOrderScenariosParams contains all the parameters to send to the API endpoint

for the generate order scenarios operation.

Typically these are written to a http.Request.

func NewGenerateOrderScenariosParams

func NewGenerateOrderScenariosParams() *GenerateOrderScenariosParams

NewGenerateOrderScenariosParams creates a new GenerateOrderScenariosParams 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 NewGenerateOrderScenariosParamsWithContext

func NewGenerateOrderScenariosParamsWithContext(ctx context.Context) *GenerateOrderScenariosParams

NewGenerateOrderScenariosParamsWithContext creates a new GenerateOrderScenariosParams object with the ability to set a context for a request.

func NewGenerateOrderScenariosParamsWithHTTPClient

func NewGenerateOrderScenariosParamsWithHTTPClient(client *http.Client) *GenerateOrderScenariosParams

NewGenerateOrderScenariosParamsWithHTTPClient creates a new GenerateOrderScenariosParams object with the ability to set a custom HTTPClient for a request.

func NewGenerateOrderScenariosParamsWithTimeout

func NewGenerateOrderScenariosParamsWithTimeout(timeout time.Duration) *GenerateOrderScenariosParams

NewGenerateOrderScenariosParamsWithTimeout creates a new GenerateOrderScenariosParams object with the ability to set a timeout on a request.

func (*GenerateOrderScenariosParams) SetBody

SetBody adds the body to the generate order scenarios params

func (*GenerateOrderScenariosParams) SetContext

func (o *GenerateOrderScenariosParams) SetContext(ctx context.Context)

SetContext adds the context to the generate order scenarios params

func (*GenerateOrderScenariosParams) SetDefaults

func (o *GenerateOrderScenariosParams) SetDefaults()

SetDefaults hydrates default values in the generate order scenarios params (not the query body).

All values with no default are reset to their zero value.

func (*GenerateOrderScenariosParams) SetHTTPClient

func (o *GenerateOrderScenariosParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the generate order scenarios params

func (*GenerateOrderScenariosParams) SetTimeout

func (o *GenerateOrderScenariosParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the generate order scenarios params

func (*GenerateOrderScenariosParams) WithBody

WithBody adds the body to the generate order scenarios params

func (*GenerateOrderScenariosParams) WithContext

WithContext adds the context to the generate order scenarios params

func (*GenerateOrderScenariosParams) WithDefaults

WithDefaults hydrates default values in the generate order scenarios params (not the query body).

All values with no default are reset to their zero value.

func (*GenerateOrderScenariosParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the generate order scenarios params

func (*GenerateOrderScenariosParams) WithTimeout

WithTimeout adds the timeout to the generate order scenarios params

func (*GenerateOrderScenariosParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GenerateOrderScenariosReader

type GenerateOrderScenariosReader struct {
	// contains filtered or unexported fields
}

GenerateOrderScenariosReader is a Reader for the GenerateOrderScenarios structure.

func (*GenerateOrderScenariosReader) ReadResponse

func (o *GenerateOrderScenariosReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GenerateOrderScenariosRequestEntityTooLarge

type GenerateOrderScenariosRequestEntityTooLarge struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosRequestEntityTooLarge describes a response with status code 413, with default header values.

The request size exceeded the maximum accepted size.

func NewGenerateOrderScenariosRequestEntityTooLarge

func NewGenerateOrderScenariosRequestEntityTooLarge() *GenerateOrderScenariosRequestEntityTooLarge

NewGenerateOrderScenariosRequestEntityTooLarge creates a GenerateOrderScenariosRequestEntityTooLarge with default headers values

func (*GenerateOrderScenariosRequestEntityTooLarge) Error

func (*GenerateOrderScenariosRequestEntityTooLarge) GetPayload

func (*GenerateOrderScenariosRequestEntityTooLarge) IsClientError

IsClientError returns true when this generate order scenarios request entity too large response has a 4xx status code

func (*GenerateOrderScenariosRequestEntityTooLarge) IsCode

IsCode returns true when this generate order scenarios request entity too large response a status code equal to that given

func (*GenerateOrderScenariosRequestEntityTooLarge) IsRedirect

IsRedirect returns true when this generate order scenarios request entity too large response has a 3xx status code

func (*GenerateOrderScenariosRequestEntityTooLarge) IsServerError

IsServerError returns true when this generate order scenarios request entity too large response has a 5xx status code

func (*GenerateOrderScenariosRequestEntityTooLarge) IsSuccess

IsSuccess returns true when this generate order scenarios request entity too large response has a 2xx status code

func (*GenerateOrderScenariosRequestEntityTooLarge) String

type GenerateOrderScenariosServiceUnavailable

type GenerateOrderScenariosServiceUnavailable struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosServiceUnavailable describes a response with status code 503, with default header values.

Temporary overloading or maintenance of the server.

func NewGenerateOrderScenariosServiceUnavailable

func NewGenerateOrderScenariosServiceUnavailable() *GenerateOrderScenariosServiceUnavailable

NewGenerateOrderScenariosServiceUnavailable creates a GenerateOrderScenariosServiceUnavailable with default headers values

func (*GenerateOrderScenariosServiceUnavailable) Error

func (*GenerateOrderScenariosServiceUnavailable) GetPayload

func (*GenerateOrderScenariosServiceUnavailable) IsClientError

IsClientError returns true when this generate order scenarios service unavailable response has a 4xx status code

func (*GenerateOrderScenariosServiceUnavailable) IsCode

IsCode returns true when this generate order scenarios service unavailable response a status code equal to that given

func (*GenerateOrderScenariosServiceUnavailable) IsRedirect

IsRedirect returns true when this generate order scenarios service unavailable response has a 3xx status code

func (*GenerateOrderScenariosServiceUnavailable) IsServerError

IsServerError returns true when this generate order scenarios service unavailable response has a 5xx status code

func (*GenerateOrderScenariosServiceUnavailable) IsSuccess

IsSuccess returns true when this generate order scenarios service unavailable response has a 2xx status code

func (*GenerateOrderScenariosServiceUnavailable) String

type GenerateOrderScenariosTooManyRequests

type GenerateOrderScenariosTooManyRequests struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosTooManyRequests describes a response with status code 429, with default header values.

The frequency of requests was greater than allowed.

func NewGenerateOrderScenariosTooManyRequests

func NewGenerateOrderScenariosTooManyRequests() *GenerateOrderScenariosTooManyRequests

NewGenerateOrderScenariosTooManyRequests creates a GenerateOrderScenariosTooManyRequests with default headers values

func (*GenerateOrderScenariosTooManyRequests) Error

func (*GenerateOrderScenariosTooManyRequests) GetPayload

func (*GenerateOrderScenariosTooManyRequests) IsClientError

func (o *GenerateOrderScenariosTooManyRequests) IsClientError() bool

IsClientError returns true when this generate order scenarios too many requests response has a 4xx status code

func (*GenerateOrderScenariosTooManyRequests) IsCode

IsCode returns true when this generate order scenarios too many requests response a status code equal to that given

func (*GenerateOrderScenariosTooManyRequests) IsRedirect

IsRedirect returns true when this generate order scenarios too many requests response has a 3xx status code

func (*GenerateOrderScenariosTooManyRequests) IsServerError

func (o *GenerateOrderScenariosTooManyRequests) IsServerError() bool

IsServerError returns true when this generate order scenarios too many requests response has a 5xx status code

func (*GenerateOrderScenariosTooManyRequests) IsSuccess

IsSuccess returns true when this generate order scenarios too many requests response has a 2xx status code

func (*GenerateOrderScenariosTooManyRequests) String

type GenerateOrderScenariosUnsupportedMediaType

type GenerateOrderScenariosUnsupportedMediaType struct {

	/* Unique request reference identifier.
	 */
	XAmznRequestID string

	Payload *vendor_direct_fulfillment_sandbox_data_2021_10_28_models.ErrorList
}

GenerateOrderScenariosUnsupportedMediaType describes a response with status code 415, with default header values.

The request payload is in an unsupported format.

func NewGenerateOrderScenariosUnsupportedMediaType

func NewGenerateOrderScenariosUnsupportedMediaType() *GenerateOrderScenariosUnsupportedMediaType

NewGenerateOrderScenariosUnsupportedMediaType creates a GenerateOrderScenariosUnsupportedMediaType with default headers values

func (*GenerateOrderScenariosUnsupportedMediaType) Error

func (*GenerateOrderScenariosUnsupportedMediaType) GetPayload

func (*GenerateOrderScenariosUnsupportedMediaType) IsClientError

IsClientError returns true when this generate order scenarios unsupported media type response has a 4xx status code

func (*GenerateOrderScenariosUnsupportedMediaType) IsCode

IsCode returns true when this generate order scenarios unsupported media type response a status code equal to that given

func (*GenerateOrderScenariosUnsupportedMediaType) IsRedirect

IsRedirect returns true when this generate order scenarios unsupported media type response has a 3xx status code

func (*GenerateOrderScenariosUnsupportedMediaType) IsServerError

IsServerError returns true when this generate order scenarios unsupported media type response has a 5xx status code

func (*GenerateOrderScenariosUnsupportedMediaType) IsSuccess

IsSuccess returns true when this generate order scenarios unsupported media type response has a 2xx status code

func (*GenerateOrderScenariosUnsupportedMediaType) String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL