notifications_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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggregationFilter

type AggregationFilter struct {

	// aggregation settings
	AggregationSettings *AggregationSettings `json:"aggregationSettings,omitempty"`
}

AggregationFilter A filter used to select the aggregation time period at which to send notifications (for example: limit to one notification every five minutes for high frequency notifications).

swagger:model AggregationFilter

func (*AggregationFilter) ContextValidate

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

ContextValidate validate this aggregation filter based on the context it is used

func (*AggregationFilter) MarshalBinary

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

MarshalBinary interface implementation

func (*AggregationFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AggregationFilter) Validate

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

Validate validates this aggregation filter

type AggregationSettings

type AggregationSettings struct {

	// The supported time period to use to perform marketplace-ASIN level aggregation.
	// Required: true
	AggregationTimePeriod *AggregationTimePeriod `json:"aggregationTimePeriod"`
}

AggregationSettings A container that holds all of the necessary properties to configure the aggregation of notifications.

swagger:model AggregationSettings

func (*AggregationSettings) ContextValidate

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

ContextValidate validate this aggregation settings based on the context it is used

func (*AggregationSettings) MarshalBinary

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

MarshalBinary interface implementation

func (*AggregationSettings) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*AggregationSettings) Validate

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

Validate validates this aggregation settings

type AggregationTimePeriod

type AggregationTimePeriod string

AggregationTimePeriod The supported aggregation time periods. For example, if FiveMinutes is the value chosen, and 50 price updates occur for an ASIN within 5 minutes, Amazon will send only two notifications; one for the first event, and then a subsequent notification 5 minutes later with the final end state of the data. The 48 interim events will be dropped.

swagger:model AggregationTimePeriod

const (

	// AggregationTimePeriodFiveMinutes captures enum value "FiveMinutes"
	AggregationTimePeriodFiveMinutes AggregationTimePeriod = "FiveMinutes"

	// AggregationTimePeriodTenMinutes captures enum value "TenMinutes"
	AggregationTimePeriodTenMinutes AggregationTimePeriod = "TenMinutes"
)

func NewAggregationTimePeriod

func NewAggregationTimePeriod(value AggregationTimePeriod) *AggregationTimePeriod

func (AggregationTimePeriod) ContextValidate

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

ContextValidate validates this aggregation time period based on context it is used

func (AggregationTimePeriod) Pointer

Pointer returns a pointer to a freshly-allocated AggregationTimePeriod.

func (AggregationTimePeriod) Validate

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

Validate validates this aggregation time period

type CreateDestinationRequest

type CreateDestinationRequest struct {

	// A developer-defined name to help identify this destination.
	// Required: true
	Name *string `json:"name"`

	// The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination.
	// Required: true
	ResourceSpecification *DestinationResourceSpecification `json:"resourceSpecification"`
}

CreateDestinationRequest The request schema for the `createDestination` operation.

swagger:model CreateDestinationRequest

func (*CreateDestinationRequest) ContextValidate

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

ContextValidate validate this create destination request based on the context it is used

func (*CreateDestinationRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateDestinationRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateDestinationRequest) Validate

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

Validate validates this create destination request

type CreateDestinationResponse

type CreateDestinationResponse struct {

	// One or more unexpected errors occurred during the `createDestination` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `createDestination` operation.
	Payload *Destination `json:"payload,omitempty"`
}

CreateDestinationResponse The response schema for the createDestination operation.

swagger:model CreateDestinationResponse

func (*CreateDestinationResponse) ContextValidate

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

ContextValidate validate this create destination response based on the context it is used

func (*CreateDestinationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateDestinationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateDestinationResponse) Validate

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

Validate validates this create destination response

type CreateSubscriptionRequest

type CreateSubscriptionRequest struct {

	// The identifier for the destination where notifications will be delivered.
	// Required: true
	DestinationID *string `json:"destinationId"`

	// The version of the payload object to be used in the notification.
	// Required: true
	PayloadVersion *string `json:"payloadVersion"`

	// processing directive
	ProcessingDirective *ProcessingDirective `json:"processingDirective,omitempty"`
}

CreateSubscriptionRequest The request schema for the `createSubscription` operation.

swagger:model CreateSubscriptionRequest

func (*CreateSubscriptionRequest) ContextValidate

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

ContextValidate validate this create subscription request based on the context it is used

func (*CreateSubscriptionRequest) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateSubscriptionRequest) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateSubscriptionRequest) Validate

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

Validate validates this create subscription request

type CreateSubscriptionResponse

type CreateSubscriptionResponse struct {

	// One or more unexpected errors occurred during the `createSubscription` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `createSubscription` operation.
	Payload *Subscription `json:"payload,omitempty"`
}

CreateSubscriptionResponse The response schema for the `createSubscription` operation.

swagger:model CreateSubscriptionResponse

func (*CreateSubscriptionResponse) ContextValidate

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

ContextValidate validate this create subscription response based on the context it is used

func (*CreateSubscriptionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*CreateSubscriptionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*CreateSubscriptionResponse) Validate

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

Validate validates this create subscription response

type DeleteDestinationResponse

type DeleteDestinationResponse struct {

	// One or more unexpected errors occurred during the `deleteDestination` operation.
	Errors ErrorList `json:"errors,omitempty"`
}

DeleteDestinationResponse The response schema for the `deleteDestination` operation.

swagger:model DeleteDestinationResponse

func (*DeleteDestinationResponse) ContextValidate

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

ContextValidate validate this delete destination response based on the context it is used

func (*DeleteDestinationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteDestinationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteDestinationResponse) Validate

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

Validate validates this delete destination response

type DeleteSubscriptionByIDResponse

type DeleteSubscriptionByIDResponse struct {

	// An unexpected condition occurred during the `deleteSubscriptionById` operation.
	Errors ErrorList `json:"errors,omitempty"`
}

DeleteSubscriptionByIDResponse The response schema for the `deleteSubscriptionById` operation.

swagger:model DeleteSubscriptionByIdResponse

func (*DeleteSubscriptionByIDResponse) ContextValidate

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

ContextValidate validate this delete subscription by Id response based on the context it is used

func (*DeleteSubscriptionByIDResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*DeleteSubscriptionByIDResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DeleteSubscriptionByIDResponse) Validate

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

Validate validates this delete subscription by Id response

type Destination

type Destination struct {

	// The destination identifier generated when you created the destination.
	// Required: true
	DestinationID *string `json:"destinationId"`

	// The developer-defined name for this destination.
	// Required: true
	// Max Length: 256
	Name *string `json:"name"`

	// The resource that will receive notifications associated with this destination.
	// Required: true
	Resource *DestinationResource `json:"resource"`
}

Destination Information about the destination created when you call the `createDestination` operation.

swagger:model Destination

func (*Destination) ContextValidate

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

ContextValidate validate this destination based on the context it is used

func (*Destination) MarshalBinary

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

MarshalBinary interface implementation

func (*Destination) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Destination) Validate

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

Validate validates this destination

type DestinationList

type DestinationList []*Destination

DestinationList A list of destinations.

swagger:model DestinationList

func (DestinationList) ContextValidate

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

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

func (DestinationList) Validate

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

Validate validates this destination list

type DestinationResource

type DestinationResource struct {

	// An Amazon EventBridge destination.
	EventBridge *EventBridgeResource `json:"eventBridge,omitempty"`

	// An Amazon Simple Queue Service (SQS) queue destination.
	Sqs *SqsResource `json:"sqs,omitempty"`
}

DestinationResource The destination resource types.

swagger:model DestinationResource

func (*DestinationResource) ContextValidate

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

ContextValidate validate this destination resource based on the context it is used

func (*DestinationResource) MarshalBinary

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

MarshalBinary interface implementation

func (*DestinationResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DestinationResource) Validate

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

Validate validates this destination resource

type DestinationResourceSpecification

type DestinationResourceSpecification struct {

	// The information required to create an Amazon EventBridge destination.
	EventBridge *EventBridgeResourceSpecification `json:"eventBridge,omitempty"`

	// The information required to create an Amazon Simple Queue Service (SQS) queue destination.
	Sqs *SqsResource `json:"sqs,omitempty"`
}

DestinationResourceSpecification The information required to create a destination resource. Applications should use one resource type (sqs or eventBridge) per destination.

swagger:model DestinationResourceSpecification

func (*DestinationResourceSpecification) ContextValidate

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

ContextValidate validate this destination resource specification based on the context it is used

func (*DestinationResourceSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*DestinationResourceSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*DestinationResourceSpecification) Validate

Validate validates this destination resource specification

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 An 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 EventBridgeResource

type EventBridgeResource struct {

	// The identifier for the AWS account that is responsible for charges related to receiving notifications.
	// Required: true
	AccountID *string `json:"accountId"`

	// The name of the partner event source associated with the destination.
	// Required: true
	// Max Length: 256
	Name *string `json:"name"`

	// The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, refer to [Amazon EventBridge endpoints and quotas](https://docs.aws.amazon.com/general/latest/gr/ev.html).
	// Required: true
	Region *string `json:"region"`
}

EventBridgeResource The Amazon EventBridge destination.

swagger:model EventBridgeResource

func (*EventBridgeResource) ContextValidate

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

ContextValidate validates this event bridge resource based on context it is used

func (*EventBridgeResource) MarshalBinary

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

MarshalBinary interface implementation

func (*EventBridgeResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventBridgeResource) Validate

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

Validate validates this event bridge resource

type EventBridgeResourceSpecification

type EventBridgeResourceSpecification struct {

	// The identifier for the AWS account that is responsible for charges related to receiving notifications.
	// Required: true
	AccountID *string `json:"accountId"`

	// The AWS region in which you will be receiving the notifications.
	// Required: true
	Region *string `json:"region"`
}

EventBridgeResourceSpecification The information required to create an Amazon EventBridge destination.

swagger:model EventBridgeResourceSpecification

func (*EventBridgeResourceSpecification) ContextValidate

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

ContextValidate validates this event bridge resource specification based on context it is used

func (*EventBridgeResourceSpecification) MarshalBinary

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

MarshalBinary interface implementation

func (*EventBridgeResourceSpecification) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventBridgeResourceSpecification) Validate

Validate validates this event bridge resource specification

type EventFilter

type EventFilter struct {
	AggregationFilter

	MarketplaceFilter

	OrderChangeTypeFilter

	// An `eventFilterType` value that is supported by the specific `notificationType`. This is used by the subscription service to determine the type of event filter. Refer to the section of the [Notifications Use Case Guide](https://developer-docs.amazon.com/sp-api/docs/notifications-api-v1-use-case-guide) that describes the specific `notificationType` to determine if an `eventFilterType` is supported.
	// Required: true
	// Enum: [ANY_OFFER_CHANGED ORDER_CHANGE]
	EventFilterType *string `json:"eventFilterType"`
}

EventFilter A `notificationType` specific filter. This object contains all of the currently available filters and properties that you can use to define a `notificationType` specific filter.

swagger:model EventFilter

func (*EventFilter) ContextValidate

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

ContextValidate validate this event filter based on the context it is used

func (*EventFilter) MarshalBinary

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

MarshalBinary interface implementation

func (EventFilter) MarshalJSON

func (m EventFilter) MarshalJSON() ([]byte, error)

MarshalJSON marshals this object to a JSON structure

func (*EventFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventFilter) UnmarshalJSON

func (m *EventFilter) UnmarshalJSON(raw []byte) error

UnmarshalJSON unmarshals this object from a JSON structure

func (*EventFilter) Validate

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

Validate validates this event filter

type GetDestinationResponse

type GetDestinationResponse struct {

	// One or more unexpected errors occurred during the `getDestination` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `getDestination` operation.
	Payload *Destination `json:"payload,omitempty"`
}

GetDestinationResponse The response schema for the `getDestination` operation.

swagger:model GetDestinationResponse

func (*GetDestinationResponse) ContextValidate

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

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

func (*GetDestinationResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDestinationResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDestinationResponse) Validate

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

Validate validates this get destination response

type GetDestinationsResponse

type GetDestinationsResponse struct {

	// One or more unexpected errors occurred during the `getDestinations` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `getDestinations` operation.
	Payload DestinationList `json:"payload,omitempty"`
}

GetDestinationsResponse The response schema for the `getDestinations` operation.

swagger:model GetDestinationsResponse

func (*GetDestinationsResponse) ContextValidate

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

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

func (*GetDestinationsResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetDestinationsResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetDestinationsResponse) Validate

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

Validate validates this get destinations response

type GetSubscriptionByIDResponse

type GetSubscriptionByIDResponse struct {

	// An unexpected condition occurred during the `getSubscriptionById` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `getSubscriptionById` operation.
	Payload *Subscription `json:"payload,omitempty"`
}

GetSubscriptionByIDResponse The response schema for the `getSubscriptionById` operation.

swagger:model GetSubscriptionByIdResponse

func (*GetSubscriptionByIDResponse) ContextValidate

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

ContextValidate validate this get subscription by Id response based on the context it is used

func (*GetSubscriptionByIDResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSubscriptionByIDResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSubscriptionByIDResponse) Validate

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

Validate validates this get subscription by Id response

type GetSubscriptionResponse

type GetSubscriptionResponse struct {

	// One or more unexpected errors occurred during the `getSubscription` operation.
	Errors ErrorList `json:"errors,omitempty"`

	// The payload for the `getSubscription` operation.
	Payload *Subscription `json:"payload,omitempty"`
}

GetSubscriptionResponse The response schema for the `getSubscription` operation.

swagger:model GetSubscriptionResponse

func (*GetSubscriptionResponse) ContextValidate

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

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

func (*GetSubscriptionResponse) MarshalBinary

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

MarshalBinary interface implementation

func (*GetSubscriptionResponse) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*GetSubscriptionResponse) Validate

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

Validate validates this get subscription response

type MarketplaceFilter

type MarketplaceFilter struct {

	// marketplace ids
	MarketplaceIds MarketplaceIds `json:"marketplaceIds,omitempty"`
}

MarketplaceFilter An event filter to customize your subscription to send notifications for only the specified `marketplaceId`s.

swagger:model MarketplaceFilter

func (*MarketplaceFilter) ContextValidate

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

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

func (*MarketplaceFilter) MarshalBinary

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

MarshalBinary interface implementation

func (*MarketplaceFilter) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*MarketplaceFilter) Validate

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

Validate validates this marketplace filter

type MarketplaceIds

type MarketplaceIds []string

MarketplaceIds A list of marketplace identifiers to subscribe to (for example: ATVPDKIKX0DER). To receive notifications in every marketplace, do not provide this list.

swagger:model MarketplaceIds

func (MarketplaceIds) ContextValidate

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

ContextValidate validates this marketplace ids based on context it is used

func (MarketplaceIds) Validate

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

Validate validates this marketplace ids

type OrderChangeTypeEnum added in v0.2.4

type OrderChangeTypeEnum string

OrderChangeTypeEnum The supported order change type of ORDER_CHANGE notification.

swagger:model OrderChangeTypeEnum

const (

	// OrderChangeTypeEnumOrderStatusChange captures enum value "OrderStatusChange"
	OrderChangeTypeEnumOrderStatusChange OrderChangeTypeEnum = "OrderStatusChange"

	// OrderChangeTypeEnumBuyerRequestedChange captures enum value "BuyerRequestedChange"
	OrderChangeTypeEnumBuyerRequestedChange OrderChangeTypeEnum = "BuyerRequestedChange"
)

func NewOrderChangeTypeEnum added in v0.2.4

func NewOrderChangeTypeEnum(value OrderChangeTypeEnum) *OrderChangeTypeEnum

func (OrderChangeTypeEnum) ContextValidate added in v0.2.4

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

ContextValidate validates this order change type enum based on context it is used

func (OrderChangeTypeEnum) Pointer added in v0.2.4

Pointer returns a pointer to a freshly-allocated OrderChangeTypeEnum.

func (OrderChangeTypeEnum) Validate added in v0.2.4

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

Validate validates this order change type enum

type OrderChangeTypeFilter added in v0.2.4

type OrderChangeTypeFilter struct {

	// order change types
	OrderChangeTypes OrderChangeTypes `json:"orderChangeTypes,omitempty"`
}

OrderChangeTypeFilter An event filter to customize your subscription to send notifications for only the specified `orderChangeType`.

swagger:model OrderChangeTypeFilter

func (*OrderChangeTypeFilter) ContextValidate added in v0.2.4

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

ContextValidate validate this order change type filter based on the context it is used

func (*OrderChangeTypeFilter) MarshalBinary added in v0.2.4

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

MarshalBinary interface implementation

func (*OrderChangeTypeFilter) UnmarshalBinary added in v0.2.4

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

UnmarshalBinary interface implementation

func (*OrderChangeTypeFilter) Validate added in v0.2.4

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

Validate validates this order change type filter

type OrderChangeTypes added in v0.2.4

type OrderChangeTypes []OrderChangeTypeEnum

OrderChangeTypes A list of order change types to subscribe to (for example: `BuyerRequestedChange`). To receive notifications of all change types, do not provide this list.

swagger:model OrderChangeTypes

func (OrderChangeTypes) ContextValidate added in v0.2.4

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

ContextValidate validate this order change types based on the context it is used

func (OrderChangeTypes) Validate added in v0.2.4

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

Validate validates this order change types

type ProcessingDirective

type ProcessingDirective struct {

	// A `notificationType` specific filter.
	EventFilter *EventFilter `json:"eventFilter,omitempty"`
}

ProcessingDirective Additional information passed to the subscription to control the processing of notifications. For example, you can use an `eventFilter` to customize your subscription to send notifications for only the specified `marketplaceId`s, or select the aggregation time period at which to send notifications (for example: limit to one notification every five minutes for high frequency notifications). The specific features available vary depending on the `notificationType`.

This feature is currently only supported by the `ANY_OFFER_CHANGED` and `ORDER_CHANGE` `notificationType`s.

swagger:model ProcessingDirective

func (*ProcessingDirective) ContextValidate

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

ContextValidate validate this processing directive based on the context it is used

func (*ProcessingDirective) MarshalBinary

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

MarshalBinary interface implementation

func (*ProcessingDirective) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ProcessingDirective) Validate

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

Validate validates this processing directive

type SqsResource

type SqsResource struct {

	// The Amazon Resource Name (ARN) associated with the SQS queue.
	// Required: true
	// Max Length: 1000
	// Pattern: ^arn:aws:sqs:\S+:\S+:\S+
	Arn *string `json:"arn"`
}

SqsResource The information required to create an Amazon Simple Queue Service (Amazon SQS) queue destination.

swagger:model SqsResource

func (*SqsResource) ContextValidate

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

ContextValidate validates this sqs resource based on context it is used

func (*SqsResource) MarshalBinary

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

MarshalBinary interface implementation

func (*SqsResource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*SqsResource) Validate

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

Validate validates this sqs resource

type Subscription

type Subscription struct {

	// The identifier for the destination where notifications will be delivered.
	// Required: true
	DestinationID *string `json:"destinationId"`

	// The version of the payload object to be used in the notification.
	// Required: true
	PayloadVersion *string `json:"payloadVersion"`

	// processing directive
	ProcessingDirective *ProcessingDirective `json:"processingDirective,omitempty"`

	// The subscription identifier generated when the subscription is created.
	// Required: true
	SubscriptionID *string `json:"subscriptionId"`
}

Subscription Information about the subscription.

swagger:model Subscription

func (*Subscription) ContextValidate

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

ContextValidate validate this subscription based on the context it is used

func (*Subscription) MarshalBinary

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

MarshalBinary interface implementation

func (*Subscription) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Subscription) Validate

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

Validate validates this subscription

Jump to

Keyboard shortcuts

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