product

package
v0.0.0-...-c4e9093 Latest Latest
Warning

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

Go to latest
Published: May 19, 2020 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 product API

func (*Client) ProductFind

func (a *Client) ProductFind(params *ProductFindParams) (*ProductFindOK, error)

ProductFind products find list retrieve product list with summary view

The Buyer requests a list of Products from the Seller based on filter criteria.

func (*Client) ProductGet

func (a *Client) ProductGet(params *ProductGetParams) (*ProductGetOK, error)

ProductGet products get by id retrieve one product with all information

The Buyer requests the details associated with a single Product based on a Seller Product Identifier.

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientService

type ClientService interface {
	ProductFind(params *ProductFindParams) (*ProductFindOK, error)

	ProductGet(params *ProductGetParams) (*ProductGetOK, 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 product API client.

type ProductFindBadRequest

type ProductFindBadRequest struct {
	Payload *models.ErrorRepresentation
}

ProductFindBadRequest handles this case with default header values.

Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

func NewProductFindBadRequest

func NewProductFindBadRequest() *ProductFindBadRequest

NewProductFindBadRequest creates a ProductFindBadRequest with default headers values

func (*ProductFindBadRequest) Error

func (o *ProductFindBadRequest) Error() string

func (*ProductFindBadRequest) GetPayload

type ProductFindForbidden

type ProductFindForbidden struct {
	Payload *models.ErrorRepresentation
}

ProductFindForbidden handles this case with default header values.

Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

func NewProductFindForbidden

func NewProductFindForbidden() *ProductFindForbidden

NewProductFindForbidden creates a ProductFindForbidden with default headers values

func (*ProductFindForbidden) Error

func (o *ProductFindForbidden) Error() string

func (*ProductFindForbidden) GetPayload

type ProductFindNotFound

type ProductFindNotFound struct {
	Payload *models.ErrorRepresentation
}

ProductFindNotFound handles this case with default header values.

Not Found

List of supported error codes: - 60: Resource not found

func NewProductFindNotFound

func NewProductFindNotFound() *ProductFindNotFound

NewProductFindNotFound creates a ProductFindNotFound with default headers values

func (*ProductFindNotFound) Error

func (o *ProductFindNotFound) Error() string

func (*ProductFindNotFound) GetPayload

type ProductFindOK

type ProductFindOK struct {
	/*The number of resources retrieved in the response
	 */
	XResultCount string
	/*The total number of matching resources
	 */
	XTotalCount string

	Payload []*models.ProductSummary
}

ProductFindOK handles this case with default header values.

Ok

func NewProductFindOK

func NewProductFindOK() *ProductFindOK

NewProductFindOK creates a ProductFindOK with default headers values

func (*ProductFindOK) Error

func (o *ProductFindOK) Error() string

func (*ProductFindOK) GetPayload

func (o *ProductFindOK) GetPayload() []*models.ProductSummary

type ProductFindParams

type ProductFindParams struct {

	/*BillingAccountID
	  The Billing Account associated with the Product.

	*/
	BillingAccountID *string
	/*BuyerID
	  Identifier of the party who role is buyer.

	*/
	BuyerID *string
	/*BuyerProductID
	  A reference to the buyerProductId provided in the order

	*/
	BuyerProductID *string
	/*GeographicalSiteID
	  A site identifier which is associated to the product

	*/
	GeographicalSiteID *string
	/*LastUpdateDateGt
	  Greater than the date that the last change affecting this Product was complet-ed

	*/
	LastUpdateDateGt *strfmt.DateTime
	/*LastUpdateDateLt
	  Less than date that the last change affecting this Product was completed

	*/
	LastUpdateDateLt *strfmt.DateTime
	/*Limit
	  Requested number of resources to be provided in response requested by client

	*/
	Limit *string
	/*Offset
	  Requested index for start of resources to be provided in response requested by client

	*/
	Offset *string
	/*ProductOfferingID
	  A reference to a product offering by id

	*/
	ProductOfferingID *string
	/*ProductOrderID
	  Identifies Product Order(s) associated with the Product

	*/
	ProductOrderID *string
	/*ProductSpecificationID
	  A reference to a product spec by id

	*/
	ProductSpecificationID *string
	/*RelatedProductID
	  This criteria allows to retrieve all Product records with a Product Relationship to a specified Product.
	E.g. All Products related to Product with ID 5

	*/
	RelatedProductID *string
	/*StartDateGt
	  Greater than the date that is the initial install date for the Product

	*/
	StartDateGt *strfmt.DateTime
	/*StartDateLt
	  Less than the date that is the initial install date for the Product

	*/
	StartDateLt *strfmt.DateTime
	/*Status
	  The status of the product

	*/
	Status *string

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

ProductFindParams contains all the parameters to send to the API endpoint for the product find operation typically these are written to a http.Request

func NewProductFindParams

func NewProductFindParams() *ProductFindParams

NewProductFindParams creates a new ProductFindParams object with the default values initialized.

func NewProductFindParamsWithContext

func NewProductFindParamsWithContext(ctx context.Context) *ProductFindParams

NewProductFindParamsWithContext creates a new ProductFindParams object with the default values initialized, and the ability to set a context for a request

func NewProductFindParamsWithHTTPClient

func NewProductFindParamsWithHTTPClient(client *http.Client) *ProductFindParams

NewProductFindParamsWithHTTPClient creates a new ProductFindParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewProductFindParamsWithTimeout

func NewProductFindParamsWithTimeout(timeout time.Duration) *ProductFindParams

NewProductFindParamsWithTimeout creates a new ProductFindParams object with the default values initialized, and the ability to set a timeout on a request

func (*ProductFindParams) SetBillingAccountID

func (o *ProductFindParams) SetBillingAccountID(billingAccountID *string)

SetBillingAccountID adds the billingAccountId to the product find params

func (*ProductFindParams) SetBuyerID

func (o *ProductFindParams) SetBuyerID(buyerID *string)

SetBuyerID adds the buyerId to the product find params

func (*ProductFindParams) SetBuyerProductID

func (o *ProductFindParams) SetBuyerProductID(buyerProductID *string)

SetBuyerProductID adds the buyerProductId to the product find params

func (*ProductFindParams) SetContext

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

SetContext adds the context to the product find params

func (*ProductFindParams) SetGeographicalSiteID

func (o *ProductFindParams) SetGeographicalSiteID(geographicalSiteID *string)

SetGeographicalSiteID adds the geographicalSiteId to the product find params

func (*ProductFindParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product find params

func (*ProductFindParams) SetLastUpdateDateGt

func (o *ProductFindParams) SetLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime)

SetLastUpdateDateGt adds the lastUpdateDateGt to the product find params

func (*ProductFindParams) SetLastUpdateDateLt

func (o *ProductFindParams) SetLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime)

SetLastUpdateDateLt adds the lastUpdateDateLt to the product find params

func (*ProductFindParams) SetLimit

func (o *ProductFindParams) SetLimit(limit *string)

SetLimit adds the limit to the product find params

func (*ProductFindParams) SetOffset

func (o *ProductFindParams) SetOffset(offset *string)

SetOffset adds the offset to the product find params

func (*ProductFindParams) SetProductOfferingID

func (o *ProductFindParams) SetProductOfferingID(productOfferingID *string)

SetProductOfferingID adds the productOfferingId to the product find params

func (*ProductFindParams) SetProductOrderID

func (o *ProductFindParams) SetProductOrderID(productOrderID *string)

SetProductOrderID adds the productOrderId to the product find params

func (*ProductFindParams) SetProductSpecificationID

func (o *ProductFindParams) SetProductSpecificationID(productSpecificationID *string)

SetProductSpecificationID adds the productSpecificationId to the product find params

func (*ProductFindParams) SetRelatedProductID

func (o *ProductFindParams) SetRelatedProductID(relatedProductID *string)

SetRelatedProductID adds the relatedProductId to the product find params

func (*ProductFindParams) SetStartDateGt

func (o *ProductFindParams) SetStartDateGt(startDateGt *strfmt.DateTime)

SetStartDateGt adds the startDateGt to the product find params

func (*ProductFindParams) SetStartDateLt

func (o *ProductFindParams) SetStartDateLt(startDateLt *strfmt.DateTime)

SetStartDateLt adds the startDateLt to the product find params

func (*ProductFindParams) SetStatus

func (o *ProductFindParams) SetStatus(status *string)

SetStatus adds the status to the product find params

func (*ProductFindParams) SetTimeout

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

SetTimeout adds the timeout to the product find params

func (*ProductFindParams) WithBillingAccountID

func (o *ProductFindParams) WithBillingAccountID(billingAccountID *string) *ProductFindParams

WithBillingAccountID adds the billingAccountID to the product find params

func (*ProductFindParams) WithBuyerID

func (o *ProductFindParams) WithBuyerID(buyerID *string) *ProductFindParams

WithBuyerID adds the buyerID to the product find params

func (*ProductFindParams) WithBuyerProductID

func (o *ProductFindParams) WithBuyerProductID(buyerProductID *string) *ProductFindParams

WithBuyerProductID adds the buyerProductID to the product find params

func (*ProductFindParams) WithContext

func (o *ProductFindParams) WithContext(ctx context.Context) *ProductFindParams

WithContext adds the context to the product find params

func (*ProductFindParams) WithGeographicalSiteID

func (o *ProductFindParams) WithGeographicalSiteID(geographicalSiteID *string) *ProductFindParams

WithGeographicalSiteID adds the geographicalSiteID to the product find params

func (*ProductFindParams) WithHTTPClient

func (o *ProductFindParams) WithHTTPClient(client *http.Client) *ProductFindParams

WithHTTPClient adds the HTTPClient to the product find params

func (*ProductFindParams) WithLastUpdateDateGt

func (o *ProductFindParams) WithLastUpdateDateGt(lastUpdateDateGt *strfmt.DateTime) *ProductFindParams

WithLastUpdateDateGt adds the lastUpdateDateGt to the product find params

func (*ProductFindParams) WithLastUpdateDateLt

func (o *ProductFindParams) WithLastUpdateDateLt(lastUpdateDateLt *strfmt.DateTime) *ProductFindParams

WithLastUpdateDateLt adds the lastUpdateDateLt to the product find params

func (*ProductFindParams) WithLimit

func (o *ProductFindParams) WithLimit(limit *string) *ProductFindParams

WithLimit adds the limit to the product find params

func (*ProductFindParams) WithOffset

func (o *ProductFindParams) WithOffset(offset *string) *ProductFindParams

WithOffset adds the offset to the product find params

func (*ProductFindParams) WithProductOfferingID

func (o *ProductFindParams) WithProductOfferingID(productOfferingID *string) *ProductFindParams

WithProductOfferingID adds the productOfferingID to the product find params

func (*ProductFindParams) WithProductOrderID

func (o *ProductFindParams) WithProductOrderID(productOrderID *string) *ProductFindParams

WithProductOrderID adds the productOrderID to the product find params

func (*ProductFindParams) WithProductSpecificationID

func (o *ProductFindParams) WithProductSpecificationID(productSpecificationID *string) *ProductFindParams

WithProductSpecificationID adds the productSpecificationID to the product find params

func (*ProductFindParams) WithRelatedProductID

func (o *ProductFindParams) WithRelatedProductID(relatedProductID *string) *ProductFindParams

WithRelatedProductID adds the relatedProductID to the product find params

func (*ProductFindParams) WithStartDateGt

func (o *ProductFindParams) WithStartDateGt(startDateGt *strfmt.DateTime) *ProductFindParams

WithStartDateGt adds the startDateGt to the product find params

func (*ProductFindParams) WithStartDateLt

func (o *ProductFindParams) WithStartDateLt(startDateLt *strfmt.DateTime) *ProductFindParams

WithStartDateLt adds the startDateLt to the product find params

func (*ProductFindParams) WithStatus

func (o *ProductFindParams) WithStatus(status *string) *ProductFindParams

WithStatus adds the status to the product find params

func (*ProductFindParams) WithTimeout

func (o *ProductFindParams) WithTimeout(timeout time.Duration) *ProductFindParams

WithTimeout adds the timeout to the product find params

func (*ProductFindParams) WriteToRequest

func (o *ProductFindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProductFindReader

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

ProductFindReader is a Reader for the ProductFind structure.

func (*ProductFindReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductFindServiceUnavailable

type ProductFindServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

ProductFindServiceUnavailable handles this case with default header values.

Service Unavailable

func NewProductFindServiceUnavailable

func NewProductFindServiceUnavailable() *ProductFindServiceUnavailable

NewProductFindServiceUnavailable creates a ProductFindServiceUnavailable with default headers values

func (*ProductFindServiceUnavailable) Error

func (*ProductFindServiceUnavailable) GetPayload

type ProductFindUnauthorized

type ProductFindUnauthorized struct {
	Payload *models.ErrorRepresentation
}

ProductFindUnauthorized handles this case with default header values.

Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

func NewProductFindUnauthorized

func NewProductFindUnauthorized() *ProductFindUnauthorized

NewProductFindUnauthorized creates a ProductFindUnauthorized with default headers values

func (*ProductFindUnauthorized) Error

func (o *ProductFindUnauthorized) Error() string

func (*ProductFindUnauthorized) GetPayload

type ProductFindUnprocessableEntity

type ProductFindUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

ProductFindUnprocessableEntity handles this case with default header values.

Unprocessable entity

Functional error

  • code: 100

message: Too many records retrieved - please restrict requested parameter value(s) description:

  • code: 103

message: Incomplete request - If place.id is filled, place.type must be filled description:

  • code: 104

message: Incomplete request - If place.type is filled, place.id must be filled description:

  • code: 105

message: Incomplete request - If partyRole.role is filled, partyRole.relatedPartyId must be filled description:

  • code: 106

message: Incomplete request - If partyRole.relatedPartyId is filled, partyRole.role must be filled description:

func NewProductFindUnprocessableEntity

func NewProductFindUnprocessableEntity() *ProductFindUnprocessableEntity

NewProductFindUnprocessableEntity creates a ProductFindUnprocessableEntity with default headers values

func (*ProductFindUnprocessableEntity) Error

func (*ProductFindUnprocessableEntity) GetPayload

type ProductGetBadRequest

type ProductGetBadRequest struct {
	Payload *models.ErrorRepresentation
}

ProductGetBadRequest handles this case with default header values.

Bad Request

List of supported error codes: - 20: Invalid URL parameter value - 21: Missing body - 22: Invalid body - 23: Missing body field - 24: Invalid body field - 25: Missing header - 26: Invalid header value - 27: Missing query-string parameter - 28: Invalid query-string parameter value

func NewProductGetBadRequest

func NewProductGetBadRequest() *ProductGetBadRequest

NewProductGetBadRequest creates a ProductGetBadRequest with default headers values

func (*ProductGetBadRequest) Error

func (o *ProductGetBadRequest) Error() string

func (*ProductGetBadRequest) GetPayload

type ProductGetForbidden

type ProductGetForbidden struct {
	Payload *models.ErrorRepresentation
}

ProductGetForbidden handles this case with default header values.

Forbidden

List of supported error codes: - 50: Access denied - 51: Forbidden requester - 52: Forbidden user - 53: Too many requests

func NewProductGetForbidden

func NewProductGetForbidden() *ProductGetForbidden

NewProductGetForbidden creates a ProductGetForbidden with default headers values

func (*ProductGetForbidden) Error

func (o *ProductGetForbidden) Error() string

func (*ProductGetForbidden) GetPayload

type ProductGetNotFound

type ProductGetNotFound struct {
	Payload *models.ErrorRepresentation
}

ProductGetNotFound handles this case with default header values.

Not Found

List of supported error codes: - 60: Resource not found

func NewProductGetNotFound

func NewProductGetNotFound() *ProductGetNotFound

NewProductGetNotFound creates a ProductGetNotFound with default headers values

func (*ProductGetNotFound) Error

func (o *ProductGetNotFound) Error() string

func (*ProductGetNotFound) GetPayload

type ProductGetOK

type ProductGetOK struct {
	Payload *models.Product
}

ProductGetOK handles this case with default header values.

Ok

func NewProductGetOK

func NewProductGetOK() *ProductGetOK

NewProductGetOK creates a ProductGetOK with default headers values

func (*ProductGetOK) Error

func (o *ProductGetOK) Error() string

func (*ProductGetOK) GetPayload

func (o *ProductGetOK) GetPayload() *models.Product

type ProductGetParams

type ProductGetParams struct {

	/*ProductID*/
	ProductID string

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

ProductGetParams contains all the parameters to send to the API endpoint for the product get operation typically these are written to a http.Request

func NewProductGetParams

func NewProductGetParams() *ProductGetParams

NewProductGetParams creates a new ProductGetParams object with the default values initialized.

func NewProductGetParamsWithContext

func NewProductGetParamsWithContext(ctx context.Context) *ProductGetParams

NewProductGetParamsWithContext creates a new ProductGetParams object with the default values initialized, and the ability to set a context for a request

func NewProductGetParamsWithHTTPClient

func NewProductGetParamsWithHTTPClient(client *http.Client) *ProductGetParams

NewProductGetParamsWithHTTPClient creates a new ProductGetParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewProductGetParamsWithTimeout

func NewProductGetParamsWithTimeout(timeout time.Duration) *ProductGetParams

NewProductGetParamsWithTimeout creates a new ProductGetParams object with the default values initialized, and the ability to set a timeout on a request

func (*ProductGetParams) SetContext

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

SetContext adds the context to the product get params

func (*ProductGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the product get params

func (*ProductGetParams) SetProductID

func (o *ProductGetParams) SetProductID(productID string)

SetProductID adds the productId to the product get params

func (*ProductGetParams) SetTimeout

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

SetTimeout adds the timeout to the product get params

func (*ProductGetParams) WithContext

func (o *ProductGetParams) WithContext(ctx context.Context) *ProductGetParams

WithContext adds the context to the product get params

func (*ProductGetParams) WithHTTPClient

func (o *ProductGetParams) WithHTTPClient(client *http.Client) *ProductGetParams

WithHTTPClient adds the HTTPClient to the product get params

func (*ProductGetParams) WithProductID

func (o *ProductGetParams) WithProductID(productID string) *ProductGetParams

WithProductID adds the productID to the product get params

func (*ProductGetParams) WithTimeout

func (o *ProductGetParams) WithTimeout(timeout time.Duration) *ProductGetParams

WithTimeout adds the timeout to the product get params

func (*ProductGetParams) WriteToRequest

func (o *ProductGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type ProductGetReader

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

ProductGetReader is a Reader for the ProductGet structure.

func (*ProductGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type ProductGetServiceUnavailable

type ProductGetServiceUnavailable struct {
	Payload *models.ErrorRepresentation
}

ProductGetServiceUnavailable handles this case with default header values.

Service Unavailable

func NewProductGetServiceUnavailable

func NewProductGetServiceUnavailable() *ProductGetServiceUnavailable

NewProductGetServiceUnavailable creates a ProductGetServiceUnavailable with default headers values

func (*ProductGetServiceUnavailable) Error

func (*ProductGetServiceUnavailable) GetPayload

type ProductGetUnauthorized

type ProductGetUnauthorized struct {
	Payload *models.ErrorRepresentation
}

ProductGetUnauthorized handles this case with default header values.

Unauthorized

List of supported error codes: - 40: Missing credentials - 41: Invalid credentials - 42: Expired credentials

func NewProductGetUnauthorized

func NewProductGetUnauthorized() *ProductGetUnauthorized

NewProductGetUnauthorized creates a ProductGetUnauthorized with default headers values

func (*ProductGetUnauthorized) Error

func (o *ProductGetUnauthorized) Error() string

func (*ProductGetUnauthorized) GetPayload

type ProductGetUnprocessableEntity

type ProductGetUnprocessableEntity struct {
	Payload *models.ErrorRepresentation
}

ProductGetUnprocessableEntity handles this case with default header values.

Unprocessable entity

Functional error

func NewProductGetUnprocessableEntity

func NewProductGetUnprocessableEntity() *ProductGetUnprocessableEntity

NewProductGetUnprocessableEntity creates a ProductGetUnprocessableEntity with default headers values

func (*ProductGetUnprocessableEntity) Error

func (*ProductGetUnprocessableEntity) GetPayload

Jump to

Keyboard shortcuts

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