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

Documentation

Index

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 occured.
	// 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 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 []*Error

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) Validate

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

Validate validates this error list

type GetMarketplaceParticipationsResponse

type GetMarketplaceParticipationsResponse struct {

	// Encountered errors for the getMarketplaceParticipations operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the getMarketplaceParticipations operation.
	Payload MarketplaceParticipationList `json:"payload,omitempty"`
}

GetMarketplaceParticipationsResponse The response schema for the getMarketplaceParticipations operation.

swagger:model GetMarketplaceParticipationsResponse

func (*GetMarketplaceParticipationsResponse) ContextValidate

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

ContextValidate validate this get marketplace participations response based on the context it is used

func (*GetMarketplaceParticipationsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetMarketplaceParticipationsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetMarketplaceParticipationsResponse) Validate

Validate validates this get marketplace participations response

type Marketplace

type Marketplace struct {

	// The ISO 3166-1 alpha-2 format country code of the marketplace.
	// Required: true
	// Pattern: ^([A-Z]{2})$
	CountryCode *string `json:"countryCode"`

	// The ISO 4217 format currency code of the marketplace.
	// Required: true
	DefaultCurrencyCode *string `json:"defaultCurrencyCode"`

	// The ISO 639-1 format language code of the marketplace.
	// Required: true
	DefaultLanguageCode *string `json:"defaultLanguageCode"`

	// The domain name of the marketplace.
	// Required: true
	DomainName *string `json:"domainName"`

	// The encrypted marketplace value.
	// Required: true
	ID *string `json:"id"`

	// Marketplace name.
	// Required: true
	Name *string `json:"name"`
}

Marketplace Detailed information about an Amazon market where a seller can list items for sale and customers can view and purchase items.

swagger:model Marketplace

func (*Marketplace) ContextValidate

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

ContextValidate validates this marketplace based on context it is used

func (*Marketplace) MarshalBinary

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

MarshalBinary interface implementation

func (*Marketplace) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Marketplace) Validate

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

Validate validates this marketplace

type MarketplaceParticipation

type MarketplaceParticipation struct {

	// marketplace
	// Required: true
	Marketplace *Marketplace `json:"marketplace"`

	// participation
	// Required: true
	Participation *Participation `json:"participation"`
}

MarketplaceParticipation marketplace participation

swagger:model MarketplaceParticipation

func (*MarketplaceParticipation) ContextValidate

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

ContextValidate validate this marketplace participation based on the context it is used

func (*MarketplaceParticipation) MarshalBinary

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

MarshalBinary interface implementation

func (*MarketplaceParticipation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MarketplaceParticipation) Validate

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

Validate validates this marketplace participation

type MarketplaceParticipationList

type MarketplaceParticipationList []*MarketplaceParticipation

MarketplaceParticipationList List of marketplace participations.

swagger:model MarketplaceParticipationList

func (MarketplaceParticipationList) ContextValidate

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

ContextValidate validate this marketplace participation list based on the context it is used

func (MarketplaceParticipationList) Validate

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

Validate validates this marketplace participation list

type Participation

type Participation struct {

	// Specifies if the seller has suspended listings. True if the seller Listing Status is set to Inactive, otherwise False.
	// Required: true
	HasSuspendedListings *bool `json:"hasSuspendedListings"`

	// is participating
	// Required: true
	IsParticipating *bool `json:"isParticipating"`
}

Participation Detailed information that is specific to a seller in a Marketplace.

swagger:model Participation

func (*Participation) ContextValidate

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

ContextValidate validates this participation based on context it is used

func (*Participation) MarshalBinary

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

MarshalBinary interface implementation

func (*Participation) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Participation) Validate

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

Validate validates this participation

Jump to

Keyboard shortcuts

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