Documentation
¶
Index ¶
- type Error
- type ErrorList
- type FeeDetail
- type FeeDetailList
- type FeesEstimate
- type FeesEstimateByIDRequest
- func (m *FeesEstimateByIDRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *FeesEstimateByIDRequest) MarshalBinary() ([]byte, error)
- func (m *FeesEstimateByIDRequest) UnmarshalBinary(b []byte) error
- func (m *FeesEstimateByIDRequest) Validate(formats strfmt.Registry) error
- type FeesEstimateError
- type FeesEstimateErrorDetail
- type FeesEstimateIdentifier
- func (m *FeesEstimateIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *FeesEstimateIdentifier) MarshalBinary() ([]byte, error)
- func (m *FeesEstimateIdentifier) UnmarshalBinary(b []byte) error
- func (m *FeesEstimateIdentifier) Validate(formats strfmt.Registry) error
- type FeesEstimateRequest
- type FeesEstimateResult
- type GetMyFeesEstimateRequest
- func (m *GetMyFeesEstimateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GetMyFeesEstimateRequest) MarshalBinary() ([]byte, error)
- func (m *GetMyFeesEstimateRequest) UnmarshalBinary(b []byte) error
- func (m *GetMyFeesEstimateRequest) Validate(formats strfmt.Registry) error
- type GetMyFeesEstimateResponse
- func (m *GetMyFeesEstimateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GetMyFeesEstimateResponse) MarshalBinary() ([]byte, error)
- func (m *GetMyFeesEstimateResponse) UnmarshalBinary(b []byte) error
- func (m *GetMyFeesEstimateResponse) Validate(formats strfmt.Registry) error
- type GetMyFeesEstimateResult
- func (m *GetMyFeesEstimateResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GetMyFeesEstimateResult) MarshalBinary() ([]byte, error)
- func (m *GetMyFeesEstimateResult) UnmarshalBinary(b []byte) error
- func (m *GetMyFeesEstimateResult) Validate(formats strfmt.Registry) error
- type GetMyFeesEstimatesErrorList
- func (m *GetMyFeesEstimatesErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
- func (m *GetMyFeesEstimatesErrorList) MarshalBinary() ([]byte, error)
- func (m *GetMyFeesEstimatesErrorList) UnmarshalBinary(b []byte) error
- func (m *GetMyFeesEstimatesErrorList) Validate(formats strfmt.Registry) error
- type GetMyFeesEstimatesRequest
- type GetMyFeesEstimatesResponse
- type IDType
- type IncludedFeeDetail
- type IncludedFeeDetailList
- type MoneyType
- type OptionalFulfillmentProgram
- type Points
- type PriceToEstimateFees
Constants ¶
This section is empty.
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
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 []*Error
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
type FeeDetail ¶
type FeeDetail struct { // The amount charged for a given fee. // Required: true FeeAmount *MoneyType `json:"FeeAmount"` // The promotion amount for a given fee. FeePromotion *MoneyType `json:"FeePromotion,omitempty"` // The type of fee charged to a seller. // Required: true FeeType *string `json:"FeeType"` // The final fee amount for a given fee. // Required: true FinalFee *MoneyType `json:"FinalFee"` // included fee detail list IncludedFeeDetailList IncludedFeeDetailList `json:"IncludedFeeDetailList,omitempty"` // The tax amount for a given fee. TaxAmount *MoneyType `json:"TaxAmount,omitempty"` }
FeeDetail The type of fee, fee amount, and other details.
swagger:model FeeDetail
func (*FeeDetail) ContextValidate ¶
ContextValidate validate this fee detail based on the context it is used
func (*FeeDetail) MarshalBinary ¶
MarshalBinary interface implementation
func (*FeeDetail) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type FeeDetailList ¶
type FeeDetailList []*FeeDetail
FeeDetailList A list of other fees that contribute to a given fee.
swagger:model FeeDetailList
func (FeeDetailList) ContextValidate ¶
ContextValidate validate this fee detail list based on the context it is used
type FeesEstimate ¶
type FeesEstimate struct { // fee detail list FeeDetailList FeeDetailList `json:"FeeDetailList,omitempty"` // The time at which the fees were estimated. This defaults to the time the request is made. // Required: true // Format: date-time TimeOfFeesEstimation *strfmt.DateTime `json:"TimeOfFeesEstimation"` // Total estimated fees for a given item, price, and fulfillment channel. TotalFeesEstimate *MoneyType `json:"TotalFeesEstimate,omitempty"` }
FeesEstimate The total estimated fees for an item and a list of details.
swagger:model FeesEstimate
func (*FeesEstimate) ContextValidate ¶
ContextValidate validate this fees estimate based on the context it is used
func (*FeesEstimate) MarshalBinary ¶
func (m *FeesEstimate) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimate) UnmarshalBinary ¶
func (m *FeesEstimate) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeesEstimateByIDRequest ¶
type FeesEstimateByIDRequest struct { // fees estimate request FeesEstimateRequest *FeesEstimateRequest `json:"FeesEstimateRequest,omitempty"` // Id type // Required: true IDType *IDType `json:"IdType"` // The item identifier. // Required: true IDValue *string `json:"IdValue"` }
FeesEstimateByIDRequest A product, marketplace, and proposed price used to request estimated fees.
swagger:model FeesEstimateByIdRequest
func (*FeesEstimateByIDRequest) ContextValidate ¶
func (m *FeesEstimateByIDRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this fees estimate by Id request based on the context it is used
func (*FeesEstimateByIDRequest) MarshalBinary ¶
func (m *FeesEstimateByIDRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimateByIDRequest) UnmarshalBinary ¶
func (m *FeesEstimateByIDRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeesEstimateError ¶
type FeesEstimateError struct { // An error code that identifies the type of error that occurred. // Required: true Code *string `json:"Code"` // detail // Required: true Detail FeesEstimateErrorDetail `json:"Detail"` // A message that describes the error condition. // Required: true Message *string `json:"Message"` // An error type, identifying either the receiver or the sender as the originator of the error. // Required: true Type *string `json:"Type"` }
FeesEstimateError An unexpected error occurred during this operation.
swagger:model FeesEstimateError
func (*FeesEstimateError) ContextValidate ¶
ContextValidate validate this fees estimate error based on the context it is used
func (*FeesEstimateError) MarshalBinary ¶
func (m *FeesEstimateError) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimateError) UnmarshalBinary ¶
func (m *FeesEstimateError) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeesEstimateErrorDetail ¶
type FeesEstimateErrorDetail []interface{}
FeesEstimateErrorDetail Additional information that can help the caller understand or fix the issue.
swagger:model FeesEstimateErrorDetail
func (FeesEstimateErrorDetail) ContextValidate ¶
func (m FeesEstimateErrorDetail) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this fees estimate error detail based on context it is used
type FeesEstimateIdentifier ¶
type FeesEstimateIdentifier struct { // Id type IDType IDType `json:"IdType,omitempty"` // The item identifier. IDValue string `json:"IdValue,omitempty"` // When true, the offer is fulfilled by Amazon. IsAmazonFulfilled bool `json:"IsAmazonFulfilled,omitempty"` // A marketplace identifier. MarketplaceID string `json:"MarketplaceId,omitempty"` // optional fulfillment program OptionalFulfillmentProgram OptionalFulfillmentProgram `json:"OptionalFulfillmentProgram,omitempty"` // The item price on which the fee estimate is based. PriceToEstimateFees *PriceToEstimateFees `json:"PriceToEstimateFees,omitempty"` // The seller identifier. SellerID string `json:"SellerId,omitempty"` // A unique identifier provided by the caller to track this request. SellerInputIdentifier string `json:"SellerInputIdentifier,omitempty"` }
FeesEstimateIdentifier An item identifier, marketplace, time of request, and other details that identify an estimate.
swagger:model FeesEstimateIdentifier
func (*FeesEstimateIdentifier) ContextValidate ¶
func (m *FeesEstimateIdentifier) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this fees estimate identifier based on the context it is used
func (*FeesEstimateIdentifier) MarshalBinary ¶
func (m *FeesEstimateIdentifier) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimateIdentifier) UnmarshalBinary ¶
func (m *FeesEstimateIdentifier) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeesEstimateRequest ¶
type FeesEstimateRequest struct { // A unique identifier provided by the caller to track this request. // Required: true Identifier *string `json:"Identifier"` // When true, the offer is fulfilled by Amazon. IsAmazonFulfilled bool `json:"IsAmazonFulfilled,omitempty"` // A marketplace identifier. // Required: true MarketplaceID *string `json:"MarketplaceId"` // optional fulfillment program OptionalFulfillmentProgram OptionalFulfillmentProgram `json:"OptionalFulfillmentProgram,omitempty"` // The product price that the fee estimate is based on. // Required: true PriceToEstimateFees *PriceToEstimateFees `json:"PriceToEstimateFees"` }
FeesEstimateRequest A product, marketplace, and proposed price used to request estimated fees.
swagger:model FeesEstimateRequest
func (*FeesEstimateRequest) ContextValidate ¶
ContextValidate validate this fees estimate request based on the context it is used
func (*FeesEstimateRequest) MarshalBinary ¶
func (m *FeesEstimateRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimateRequest) UnmarshalBinary ¶
func (m *FeesEstimateRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type FeesEstimateResult ¶
type FeesEstimateResult struct { // An error object with a type, code, and message. Error *FeesEstimateError `json:"Error,omitempty"` // The total estimated fees for an item and a list of details. FeesEstimate *FeesEstimate `json:"FeesEstimate,omitempty"` // Information used to identify a fees estimate request. FeesEstimateIdentifier *FeesEstimateIdentifier `json:"FeesEstimateIdentifier,omitempty"` // The status of the fee request. Possible values: Success, ClientError, ServiceError. Status string `json:"Status,omitempty"` }
FeesEstimateResult An item identifier and the estimated fees for the item.
swagger:model FeesEstimateResult
func (*FeesEstimateResult) ContextValidate ¶
ContextValidate validate this fees estimate result based on the context it is used
func (*FeesEstimateResult) MarshalBinary ¶
func (m *FeesEstimateResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*FeesEstimateResult) UnmarshalBinary ¶
func (m *FeesEstimateResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMyFeesEstimateRequest ¶
type GetMyFeesEstimateRequest struct { // fees estimate request FeesEstimateRequest *FeesEstimateRequest `json:"FeesEstimateRequest,omitempty"` }
GetMyFeesEstimateRequest Request schema.
swagger:model GetMyFeesEstimateRequest
func (*GetMyFeesEstimateRequest) ContextValidate ¶
func (m *GetMyFeesEstimateRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimate request based on the context it is used
func (*GetMyFeesEstimateRequest) MarshalBinary ¶
func (m *GetMyFeesEstimateRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMyFeesEstimateRequest) UnmarshalBinary ¶
func (m *GetMyFeesEstimateRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMyFeesEstimateResponse ¶
type GetMyFeesEstimateResponse struct { // errors Errors ErrorList `json:"errors,omitempty"` // The payload for the operation. Payload *GetMyFeesEstimateResult `json:"payload,omitempty"` }
GetMyFeesEstimateResponse get my fees estimate response
swagger:model GetMyFeesEstimateResponse
func (*GetMyFeesEstimateResponse) ContextValidate ¶
func (m *GetMyFeesEstimateResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimate response based on the context it is used
func (*GetMyFeesEstimateResponse) MarshalBinary ¶
func (m *GetMyFeesEstimateResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMyFeesEstimateResponse) UnmarshalBinary ¶
func (m *GetMyFeesEstimateResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMyFeesEstimateResult ¶
type GetMyFeesEstimateResult struct { // The item's estimated fees. FeesEstimateResult *FeesEstimateResult `json:"FeesEstimateResult,omitempty"` }
GetMyFeesEstimateResult Response schema.
swagger:model GetMyFeesEstimateResult
func (*GetMyFeesEstimateResult) ContextValidate ¶
func (m *GetMyFeesEstimateResult) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimate result based on the context it is used
func (*GetMyFeesEstimateResult) MarshalBinary ¶
func (m *GetMyFeesEstimateResult) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMyFeesEstimateResult) UnmarshalBinary ¶
func (m *GetMyFeesEstimateResult) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMyFeesEstimatesErrorList ¶
type GetMyFeesEstimatesErrorList struct { // errors // Required: true Errors []*Error `json:"errors"` }
GetMyFeesEstimatesErrorList A list of error responses returned when a request is unsuccessful.
swagger:model GetMyFeesEstimatesErrorList
func (*GetMyFeesEstimatesErrorList) ContextValidate ¶
func (m *GetMyFeesEstimatesErrorList) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimates error list based on the context it is used
func (*GetMyFeesEstimatesErrorList) MarshalBinary ¶
func (m *GetMyFeesEstimatesErrorList) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*GetMyFeesEstimatesErrorList) UnmarshalBinary ¶
func (m *GetMyFeesEstimatesErrorList) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type GetMyFeesEstimatesRequest ¶
type GetMyFeesEstimatesRequest []*FeesEstimateByIDRequest
GetMyFeesEstimatesRequest Request for estimated fees for a list of products.
swagger:model GetMyFeesEstimatesRequest
func (GetMyFeesEstimatesRequest) ContextValidate ¶
func (m GetMyFeesEstimatesRequest) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimates request based on the context it is used
type GetMyFeesEstimatesResponse ¶
type GetMyFeesEstimatesResponse []*FeesEstimateResult
GetMyFeesEstimatesResponse Estimated fees for a list of products.
swagger:model GetMyFeesEstimatesResponse
func (GetMyFeesEstimatesResponse) ContextValidate ¶
func (m GetMyFeesEstimatesResponse) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validate this get my fees estimates response based on the context it is used
type IDType ¶
type IDType string
IDType The type of product identifier used in a `FeesEstimateByIdRequest`.
swagger:model IdType
func (IDType) ContextValidate ¶
ContextValidate validates this Id type based on context it is used
type IncludedFeeDetail ¶
type IncludedFeeDetail struct { // The amount charged for a given fee. // Required: true FeeAmount *MoneyType `json:"FeeAmount"` // The promotion amount for a given fee. FeePromotion *MoneyType `json:"FeePromotion,omitempty"` // The type of fee charged to a seller. // Required: true FeeType *string `json:"FeeType"` // The final fee amount for a given fee. // Required: true FinalFee *MoneyType `json:"FinalFee"` // The tax amount for a given fee. TaxAmount *MoneyType `json:"TaxAmount,omitempty"` }
IncludedFeeDetail The type of fee, fee amount, and other details.
swagger:model IncludedFeeDetail
func (*IncludedFeeDetail) ContextValidate ¶
ContextValidate validate this included fee detail based on the context it is used
func (*IncludedFeeDetail) MarshalBinary ¶
func (m *IncludedFeeDetail) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*IncludedFeeDetail) UnmarshalBinary ¶
func (m *IncludedFeeDetail) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type IncludedFeeDetailList ¶
type IncludedFeeDetailList []*IncludedFeeDetail
IncludedFeeDetailList A list of other fees that contribute to a given fee.
swagger:model IncludedFeeDetailList
func (IncludedFeeDetailList) ContextValidate ¶
ContextValidate validate this included fee detail list based on the context it is used
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 ¶
ContextValidate validates this money type based on context it is used
func (*MoneyType) MarshalBinary ¶
MarshalBinary interface implementation
func (*MoneyType) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type OptionalFulfillmentProgram ¶
type OptionalFulfillmentProgram string
OptionalFulfillmentProgram An optional enrollment program to return the estimated fees when the offer is fulfilled by Amazon (IsAmazonFulfilled is set to true).
swagger:model OptionalFulfillmentProgram
const ( // OptionalFulfillmentProgramFBACORE captures enum value "FBA_CORE" OptionalFulfillmentProgramFBACORE OptionalFulfillmentProgram = "FBA_CORE" // OptionalFulfillmentProgramFBASNL captures enum value "FBA_SNL" OptionalFulfillmentProgramFBASNL OptionalFulfillmentProgram = "FBA_SNL" // OptionalFulfillmentProgramFBAEFN captures enum value "FBA_EFN" OptionalFulfillmentProgramFBAEFN OptionalFulfillmentProgram = "FBA_EFN" )
func NewOptionalFulfillmentProgram ¶
func NewOptionalFulfillmentProgram(value OptionalFulfillmentProgram) *OptionalFulfillmentProgram
func (OptionalFulfillmentProgram) ContextValidate ¶
func (m OptionalFulfillmentProgram) ContextValidate(ctx context.Context, formats strfmt.Registry) error
ContextValidate validates this optional fulfillment program based on context it is used
func (OptionalFulfillmentProgram) Pointer ¶
func (m OptionalFulfillmentProgram) Pointer() *OptionalFulfillmentProgram
Pointer returns a pointer to a freshly-allocated OptionalFulfillmentProgram.
type Points ¶
type Points struct { // points monetary value PointsMonetaryValue *MoneyType `json:"PointsMonetaryValue,omitempty"` // points number PointsNumber int32 `json:"PointsNumber,omitempty"` }
Points points
swagger:model Points
func (*Points) ContextValidate ¶
ContextValidate validate this points based on the context it is used
func (*Points) MarshalBinary ¶
MarshalBinary interface implementation
func (*Points) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type PriceToEstimateFees ¶
type PriceToEstimateFees struct { // The price of the item. // Required: true ListingPrice *MoneyType `json:"ListingPrice"` // The number of Amazon Points offered with the purchase of an item. Points *Points `json:"Points,omitempty"` // The shipping cost. Shipping *MoneyType `json:"Shipping,omitempty"` }
PriceToEstimateFees Price information for an item, used to estimate fees.
swagger:model PriceToEstimateFees
func (*PriceToEstimateFees) ContextValidate ¶
ContextValidate validate this price to estimate fees based on the context it is used
func (*PriceToEstimateFees) MarshalBinary ¶
func (m *PriceToEstimateFees) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PriceToEstimateFees) UnmarshalBinary ¶
func (m *PriceToEstimateFees) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files
¶
- error.go
- error_list.go
- fee_detail.go
- fee_detail_list.go
- fees_estimate.go
- fees_estimate_by_id_request.go
- fees_estimate_error.go
- fees_estimate_error_detail.go
- fees_estimate_identifier.go
- fees_estimate_request.go
- fees_estimate_result.go
- get_my_fees_estimate_request.go
- get_my_fees_estimate_response.go
- get_my_fees_estimate_result.go
- get_my_fees_estimates_error_list.go
- get_my_fees_estimates_request.go
- get_my_fees_estimates_response.go
- id_type.go
- included_fee_detail.go
- included_fee_detail_list.go
- money_type.go
- optional_fulfillment_program.go
- points.go
- price_to_estimate_fees.go