listings_items_2020_09_01_models

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: 7 Imported by: 0

Documentation

Index

Constants

View Source
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"
)
View Source
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"
)
View Source
const (

	// ListingsItemSubmissionResponseStatusACCEPTED captures enum value "ACCEPTED"
	ListingsItemSubmissionResponseStatusACCEPTED string = "ACCEPTED"

	// ListingsItemSubmissionResponseStatusINVALID captures enum value "INVALID"
	ListingsItemSubmissionResponseStatusINVALID string = "INVALID"
)
View Source
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

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

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

func (m *ErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this error list based on the context it is used

func (*ErrorList) MarshalBinary

func (m *ErrorList) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ErrorList) UnmarshalBinary

func (m *ErrorList) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ErrorList) Validate

func (m *ErrorList) Validate(formats strfmt.Registry) error

Validate validates this error list

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

func (m *Issue) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this issue based on context it is used

func (*Issue) MarshalBinary

func (m *Issue) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Issue) UnmarshalBinary

func (m *Issue) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Issue) Validate

func (m *Issue) Validate(formats strfmt.Registry) error

Validate validates this issue

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

func (*ListingsItemPatchRequest) Validate

func (m *ListingsItemPatchRequest) Validate(formats strfmt.Registry) error

Validate validates this listings item patch request

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

func (*ListingsItemPutRequest) Validate

func (m *ListingsItemPutRequest) Validate(formats strfmt.Registry) error

Validate validates this listings item put request

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

func (*ListingsItemSubmissionResponse) Validate

func (m *ListingsItemSubmissionResponse) Validate(formats strfmt.Registry) error

Validate validates this listings item submission response

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

func (m *PatchOperation) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*PatchOperation) Validate

func (m *PatchOperation) Validate(formats strfmt.Registry) error

Validate validates this patch operation

Jump to

Keyboard shortcuts

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