fba_smalland_light_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 (

	// FeeLineItemFeeTypeFBAWeightBasedFee captures enum value "FBAWeightBasedFee"
	FeeLineItemFeeTypeFBAWeightBasedFee string = "FBAWeightBasedFee"

	// FeeLineItemFeeTypeFBAPerOrderFulfillmentFee captures enum value "FBAPerOrderFulfillmentFee"
	FeeLineItemFeeTypeFBAPerOrderFulfillmentFee string = "FBAPerOrderFulfillmentFee"

	// FeeLineItemFeeTypeFBAPerUnitFulfillmentFee captures enum value "FBAPerUnitFulfillmentFee"
	FeeLineItemFeeTypeFBAPerUnitFulfillmentFee string = "FBAPerUnitFulfillmentFee"

	// FeeLineItemFeeTypeCommission captures enum value "Commission"
	FeeLineItemFeeTypeCommission string = "Commission"
)

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 information that can help the caller understand or fix the issue.
	Details string `json:"details,omitempty"`

	// A message that describes the error condition in a human-readable form.
	// 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
	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 FeeLineItem

type FeeLineItem struct {

	// Amount charged to the seller for the specific fee type.
	// Required: true
	FeeCharge *MoneyType `json:"feeCharge"`

	// The type of fee charged to the seller.
	// Required: true
	// Enum: [FBAWeightBasedFee FBAPerOrderFulfillmentFee FBAPerUnitFulfillmentFee Commission]
	FeeType *string `json:"feeType"`
}

FeeLineItem Fee details for a specific fee.

swagger:model FeeLineItem

func (*FeeLineItem) ContextValidate

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

ContextValidate validate this fee line item based on the context it is used

func (*FeeLineItem) MarshalBinary

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

MarshalBinary interface implementation

func (*FeeLineItem) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FeeLineItem) Validate

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

Validate validates this fee line item

type FeePreview

type FeePreview struct {

	// The Amazon Standard Identification Number (ASIN) value used to identify the item.
	Asin string `json:"asin,omitempty"`

	// One or more unexpected errors occurred during the getSmallAndLightFeePreview operation.
	Errors []*Error `json:"errors"`

	// A list of the Small and Light fees for the item.
	FeeBreakdown []*FeeLineItem `json:"feeBreakdown"`

	// The price that the seller plans to charge for the item.
	Price *MoneyType `json:"price,omitempty"`

	// The total fees charged if the item participated in the Small and Light program.
	TotalFees *MoneyType `json:"totalFees,omitempty"`
}

FeePreview The fee estimate for a specific item.

swagger:model FeePreview

func (*FeePreview) ContextValidate

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

ContextValidate validate this fee preview based on the context it is used

func (*FeePreview) MarshalBinary

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

MarshalBinary interface implementation

func (*FeePreview) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*FeePreview) Validate

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

Validate validates this fee preview

type Item

type Item struct {

	// The Amazon Standard Identification Number (ASIN) value used to identify the item.
	// Required: true
	Asin *string `json:"asin"`

	// The price that the seller plans to charge for the item.
	// Required: true
	Price *MoneyType `json:"price"`
}

Item An item to be sold.

swagger:model Item

func (*Item) ContextValidate

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

ContextValidate validate this item based on the context it is used

func (*Item) MarshalBinary

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

MarshalBinary interface implementation

func (*Item) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Item) Validate

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

Validate validates this item

type MarketplaceID

type MarketplaceID string

MarketplaceID A marketplace identifier.

swagger:model MarketplaceId

func (MarketplaceID) ContextValidate

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

ContextValidate validates this marketplace Id based on context it is used

func (MarketplaceID) Validate

func (m MarketplaceID) Validate(formats strfmt.Registry) error

Validate validates this marketplace Id

type MoneyType

type MoneyType struct {

	// The monetary value.
	Amount float64 `json:"amount,omitempty"`

	// The currency code in ISO 4217 format.
	CurrencyCode string `json:"currencyCode,omitempty"`
}

MoneyType money type

swagger:model MoneyType

func (*MoneyType) ContextValidate

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

ContextValidate validates this money type based on context it is used

func (*MoneyType) MarshalBinary

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

MarshalBinary interface implementation

func (*MoneyType) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MoneyType) Validate

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

Validate validates this money type

type SellerSKU

type SellerSKU string

SellerSKU Identifies an item in the given marketplace. SellerSKU is qualified by the seller's SellerId, which is included with every operation that you submit.

swagger:model SellerSKU

func (SellerSKU) ContextValidate

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

ContextValidate validates this seller s k u based on context it is used

func (SellerSKU) Validate

func (m SellerSKU) Validate(formats strfmt.Registry) error

Validate validates this seller s k u

type SmallAndLightEligibility

type SmallAndLightEligibility struct {

	// marketplace Id
	// Required: true
	MarketplaceID *MarketplaceID `json:"marketplaceId"`

	// seller s k u
	// Required: true
	SellerSKU *SellerSKU `json:"sellerSKU"`

	// status
	// Required: true
	Status *SmallAndLightEligibilityStatus `json:"status"`
}

SmallAndLightEligibility The Small and Light eligibility status of the item indicated by the specified seller SKU.

swagger:model SmallAndLightEligibility

func (*SmallAndLightEligibility) ContextValidate

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

ContextValidate validate this small and light eligibility based on the context it is used

func (*SmallAndLightEligibility) MarshalBinary

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

MarshalBinary interface implementation

func (*SmallAndLightEligibility) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SmallAndLightEligibility) Validate

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

Validate validates this small and light eligibility

type SmallAndLightEligibilityStatus

type SmallAndLightEligibilityStatus string

SmallAndLightEligibilityStatus The Small and Light eligibility status of the item.

swagger:model SmallAndLightEligibilityStatus

const (

	// SmallAndLightEligibilityStatusELIGIBLE captures enum value "ELIGIBLE"
	SmallAndLightEligibilityStatusELIGIBLE SmallAndLightEligibilityStatus = "ELIGIBLE"

	// SmallAndLightEligibilityStatusNOTELIGIBLE captures enum value "NOT_ELIGIBLE"
	SmallAndLightEligibilityStatusNOTELIGIBLE SmallAndLightEligibilityStatus = "NOT_ELIGIBLE"
)

func (SmallAndLightEligibilityStatus) ContextValidate

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

ContextValidate validates this small and light eligibility status based on context it is used

func (SmallAndLightEligibilityStatus) Pointer

Pointer returns a pointer to a freshly-allocated SmallAndLightEligibilityStatus.

func (SmallAndLightEligibilityStatus) Validate

Validate validates this small and light eligibility status

type SmallAndLightEnrollment

type SmallAndLightEnrollment struct {

	// marketplace Id
	// Required: true
	MarketplaceID *MarketplaceID `json:"marketplaceId"`

	// seller s k u
	// Required: true
	SellerSKU *SellerSKU `json:"sellerSKU"`

	// status
	// Required: true
	Status *SmallAndLightEnrollmentStatus `json:"status"`
}

SmallAndLightEnrollment The Small and Light enrollment status of the item indicated by the specified seller SKU.

swagger:model SmallAndLightEnrollment

func (*SmallAndLightEnrollment) ContextValidate

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

ContextValidate validate this small and light enrollment based on the context it is used

func (*SmallAndLightEnrollment) MarshalBinary

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

MarshalBinary interface implementation

func (*SmallAndLightEnrollment) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SmallAndLightEnrollment) Validate

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

Validate validates this small and light enrollment

type SmallAndLightEnrollmentStatus

type SmallAndLightEnrollmentStatus string

SmallAndLightEnrollmentStatus The Small and Light enrollment status of the item.

swagger:model SmallAndLightEnrollmentStatus

const (

	// SmallAndLightEnrollmentStatusENROLLED captures enum value "ENROLLED"
	SmallAndLightEnrollmentStatusENROLLED SmallAndLightEnrollmentStatus = "ENROLLED"

	// SmallAndLightEnrollmentStatusNOTENROLLED captures enum value "NOT_ENROLLED"
	SmallAndLightEnrollmentStatusNOTENROLLED SmallAndLightEnrollmentStatus = "NOT_ENROLLED"
)

func (SmallAndLightEnrollmentStatus) ContextValidate

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

ContextValidate validates this small and light enrollment status based on context it is used

func (SmallAndLightEnrollmentStatus) Pointer

Pointer returns a pointer to a freshly-allocated SmallAndLightEnrollmentStatus.

func (SmallAndLightEnrollmentStatus) Validate

func (m SmallAndLightEnrollmentStatus) Validate(formats strfmt.Registry) error

Validate validates this small and light enrollment status

type SmallAndLightFeePreviewRequest

type SmallAndLightFeePreviewRequest struct {

	// A list of items for which to retrieve fee estimates (limit: 25).
	// Required: true
	// Max Items: 25
	Items []*Item `json:"items"`

	// marketplace Id
	// Required: true
	MarketplaceID *MarketplaceID `json:"marketplaceId"`
}

SmallAndLightFeePreviewRequest Request schema for submitting items for which to retrieve fee estimates.

swagger:model SmallAndLightFeePreviewRequest

func (*SmallAndLightFeePreviewRequest) ContextValidate

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

ContextValidate validate this small and light fee preview request based on the context it is used

func (*SmallAndLightFeePreviewRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*SmallAndLightFeePreviewRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SmallAndLightFeePreviewRequest) Validate

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

Validate validates this small and light fee preview request

type SmallAndLightFeePreviews

type SmallAndLightFeePreviews struct {

	// A list of fee estimates for the requested items. The order of the fee estimates will follow the same order as the items in the request, with duplicates removed.
	Data []*FeePreview `json:"data"`
}

SmallAndLightFeePreviews small and light fee previews

swagger:model SmallAndLightFeePreviews

func (*SmallAndLightFeePreviews) ContextValidate

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

ContextValidate validate this small and light fee previews based on the context it is used

func (*SmallAndLightFeePreviews) MarshalBinary

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

MarshalBinary interface implementation

func (*SmallAndLightFeePreviews) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SmallAndLightFeePreviews) Validate

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

Validate validates this small and light fee previews

Jump to

Keyboard shortcuts

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