Documentation
¶
Index ¶
- Constants
- type Error
- type ErrorList
- type Issue
- type ListingsItemPatchRequest
- func (m *ListingsItemPatchRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ListingsItemPatchRequest) MarshalBinary() ([]byte, error)
- func (m *ListingsItemPatchRequest) UnmarshalBinary(b []byte) error
- func (m *ListingsItemPatchRequest) Validate(formats strfmt.Registry) error
- type ListingsItemPutRequest
- func (m *ListingsItemPutRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ListingsItemPutRequest) MarshalBinary() ([]byte, error)
- func (m *ListingsItemPutRequest) UnmarshalBinary(b []byte) error
- func (m *ListingsItemPutRequest) Validate(formats strfmt.Registry) error
- type ListingsItemSubmissionResponse
- func (m *ListingsItemSubmissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *ListingsItemSubmissionResponse) MarshalBinary() ([]byte, error)
- func (m *ListingsItemSubmissionResponse) UnmarshalBinary(b []byte) error
- func (m *ListingsItemSubmissionResponse) Validate(formats strfmt.Registry) error
- type PatchOperation
Constants ¶
const ( // IssueSeverityERROR captures enum value "ERROR" IssueSeverityERROR string = "ERROR" // IssueSeverityWARNING captures enum value "WARNING" IssueSeverityWARNING string = "WARNING" // IssueSeverityINFO captures enum value "INFO" IssueSeverityINFO string = "INFO" )
const ( // ListingsItemPutRequestRequirementsLISTING captures enum value "LISTING" ListingsItemPutRequestRequirementsLISTING string = "LISTING" // ListingsItemPutRequestRequirementsLISTINGPRODUCTONLY captures enum value "LISTING_PRODUCT_ONLY" ListingsItemPutRequestRequirementsLISTINGPRODUCTONLY string = "LISTING_PRODUCT_ONLY" // ListingsItemPutRequestRequirementsLISTINGOFFERONLY captures enum value "LISTING_OFFER_ONLY" ListingsItemPutRequestRequirementsLISTINGOFFERONLY string = "LISTING_OFFER_ONLY" )
const ( // ListingsItemSubmissionResponseStatusACCEPTED captures enum value "ACCEPTED" ListingsItemSubmissionResponseStatusACCEPTED string = "ACCEPTED" // ListingsItemSubmissionResponseStatusINVALID captures enum value "INVALID" ListingsItemSubmissionResponseStatusINVALID string = "INVALID" )
const ( // PatchOperationOpAdd captures enum value "add" PatchOperationOpAdd string = "add" // PatchOperationOpReplace captures enum value "replace" PatchOperationOpReplace string = "replace" // PatchOperationOpDelete captures enum value "delete" PatchOperationOpDelete string = "delete" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { // An error code that identifies the type of error that occurred. // Required: true Code *string `json:"code"` // Additional details that can help the caller understand or fix the issue. Details string `json:"details,omitempty"` // A message that describes the error condition. // Required: true Message *string `json:"message"` }
Error Error response returned when the request is unsuccessful.
swagger:model Error
func (*Error) ContextValidate ¶
ContextValidate validates this error based on context it is used
func (*Error) MarshalBinary ¶
MarshalBinary interface implementation
func (*Error) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ErrorList ¶
type ErrorList struct { // errors // Required: true Errors []*Error `json:"errors"` }
ErrorList A list of error responses returned when a request is unsuccessful.
swagger:model ErrorList
func (*ErrorList) ContextValidate ¶
ContextValidate validate this error list based on the context it is used
func (*ErrorList) MarshalBinary ¶
MarshalBinary interface implementation
func (*ErrorList) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Issue ¶
type Issue struct { // Name of the attribute associated with the issue, if applicable. AttributeName string `json:"attributeName,omitempty"` // An issue code that identifies the type of issue. // Required: true Code *string `json:"code"` // A message that describes the issue. // Required: true Message *string `json:"message"` // The severity of the issue. // Required: true // Enum: [ERROR WARNING INFO] Severity *string `json:"severity"` }
Issue An issue with a listings item.
swagger:model Issue
func (*Issue) ContextValidate ¶
ContextValidate validates this issue based on context it is used
func (*Issue) MarshalBinary ¶
MarshalBinary interface implementation
func (*Issue) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type ListingsItemPatchRequest ¶
type ListingsItemPatchRequest struct { // One or more JSON Patch operations to perform on the listings item. // Required: true // Min Items: 1 Patches []*PatchOperation `json:"patches"` // The Amazon product type of the listings item. // Required: true ProductType *string `json:"productType"` }
ListingsItemPatchRequest The request body schema for the patchListingsItem operation.
swagger:model ListingsItemPatchRequest
func (*ListingsItemPatchRequest) ContextValidate ¶
func (m *ListingsItemPatchRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this listings item patch request based on the context it is used
func (*ListingsItemPatchRequest) MarshalBinary ¶
func (m *ListingsItemPatchRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListingsItemPatchRequest) UnmarshalBinary ¶
func (m *ListingsItemPatchRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListingsItemPutRequest ¶
type ListingsItemPutRequest struct { // JSON object containing structured listings item attribute data keyed by attribute name. // Required: true Attributes interface{} `json:"attributes"` // The Amazon product type of the listings item. // Required: true ProductType *string `json:"productType"` // The name of the requirements set for the provided data. // Enum: [LISTING LISTING_PRODUCT_ONLY LISTING_OFFER_ONLY] Requirements string `json:"requirements,omitempty"` }
ListingsItemPutRequest The request body schema for the putListingsItem operation.
swagger:model ListingsItemPutRequest
func (*ListingsItemPutRequest) ContextValidate ¶
func (m *ListingsItemPutRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this listings item put request based on context it is used
func (*ListingsItemPutRequest) MarshalBinary ¶
func (m *ListingsItemPutRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListingsItemPutRequest) UnmarshalBinary ¶
func (m *ListingsItemPutRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ListingsItemSubmissionResponse ¶
type ListingsItemSubmissionResponse struct { // Listings item issues related to the listings item submission. Issues []*Issue `json:"issues"` // A selling partner provided identifier for an Amazon listing. // Required: true Sku *string `json:"sku"` // The status of the listings item submission. // Required: true // Enum: [ACCEPTED INVALID] Status *string `json:"status"` // The unique identifier of the listings item submission. // Required: true SubmissionID *string `json:"submissionId"` }
ListingsItemSubmissionResponse Response containing the results of a submission to the Selling Partner API for Listings Items.
swagger:model ListingsItemSubmissionResponse
func (*ListingsItemSubmissionResponse) ContextValidate ¶
func (m *ListingsItemSubmissionResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this listings item submission response based on the context it is used
func (*ListingsItemSubmissionResponse) MarshalBinary ¶
func (m *ListingsItemSubmissionResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ListingsItemSubmissionResponse) UnmarshalBinary ¶
func (m *ListingsItemSubmissionResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PatchOperation ¶
type PatchOperation struct { // Type of JSON Patch operation. Supported JSON Patch operations include add, replace, and delete. See <https://tools.ietf.org/html/rfc6902>. // Required: true // Enum: [add replace delete] Op *string `json:"op"` // JSON Pointer path of the element to patch. See <https://tools.ietf.org/html/rfc6902>. // Required: true Path *string `json:"path"` // JSON value to add, replace, or delete. Value []interface{} `json:"value"` }
PatchOperation Individual JSON Patch operation for an HTTP PATCH request.
swagger:model PatchOperation
func (*PatchOperation) ContextValidate ¶
ContextValidate validates this patch operation based on context it is used
func (*PatchOperation) MarshalBinary ¶
func (m *PatchOperation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PatchOperation) UnmarshalBinary ¶
func (m *PatchOperation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation