notifications

package
v0.0.0-...-3a03c6d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package notifications provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Package notifications provides primitives to interact the openapi HTTP API.

Code generated by go-sdk-codegen DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateDestinationRequest

func NewCreateDestinationRequest(endpoint string, body CreateDestinationJSONRequestBody) (*http.Request, error)

NewCreateDestinationRequest calls the generic CreateDestination builder with application/json body

func NewCreateDestinationRequestWithBody

func NewCreateDestinationRequestWithBody(endpoint string, contentType string, body io.Reader) (*http.Request, error)

NewCreateDestinationRequestWithBody generates requests for CreateDestination with any type of body

func NewCreateSubscriptionRequest

func NewCreateSubscriptionRequest(endpoint string, notificationType NotificationType, body CreateSubscriptionJSONRequestBody) (*http.Request, error)

NewCreateSubscriptionRequest calls the generic CreateSubscription builder with application/json body

func NewCreateSubscriptionRequestWithBody

func NewCreateSubscriptionRequestWithBody(endpoint string, notificationType NotificationType, contentType string, body io.Reader) (*http.Request, error)

NewCreateSubscriptionRequestWithBody generates requests for CreateSubscription with any type of body

func NewDeleteDestinationRequest

func NewDeleteDestinationRequest(endpoint string, destinationId string) (*http.Request, error)

NewDeleteDestinationRequest generates requests for DeleteDestination

func NewDeleteSubscriptionByIdRequest

func NewDeleteSubscriptionByIdRequest(endpoint string, notificationType NotificationType, subscriptionId string) (*http.Request, error)

NewDeleteSubscriptionByIdRequest generates requests for DeleteSubscriptionById

func NewGetDestinationRequest

func NewGetDestinationRequest(endpoint string, destinationId string) (*http.Request, error)

NewGetDestinationRequest generates requests for GetDestination

func NewGetDestinationsRequest

func NewGetDestinationsRequest(endpoint string) (*http.Request, error)

NewGetDestinationsRequest generates requests for GetDestinations

func NewGetSubscriptionByIdRequest

func NewGetSubscriptionByIdRequest(endpoint string, notificationType NotificationType, subscriptionId string) (*http.Request, error)

NewGetSubscriptionByIdRequest generates requests for GetSubscriptionById

func NewGetSubscriptionRequest

func NewGetSubscriptionRequest(endpoint string, notificationType NotificationType) (*http.Request, error)

NewGetSubscriptionRequest generates requests for GetSubscription

Types

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Endpoint string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A callback for modifying requests which are generated before sending over
	// the network.
	RequestBefore RequestBeforeFn

	// A callback for modifying response which are generated before sending over
	// the network.
	ResponseAfter ResponseAfterFn

	// The user agent header identifies your application, its version number, and the platform and programming language you are using.
	// You must include a user agent header in each request submitted to the sales partner API.
	UserAgent string
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(endpoint string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateDestination

func (c *Client) CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody) (*http.Response, error)

func (*Client) CreateDestinationWithBody

func (c *Client) CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

func (*Client) CreateSubscription

func (c *Client) CreateSubscription(ctx context.Context, notificationType NotificationType, body CreateSubscriptionJSONRequestBody) (*http.Response, error)

func (*Client) CreateSubscriptionWithBody

func (c *Client) CreateSubscriptionWithBody(ctx context.Context, notificationType NotificationType, contentType string, body io.Reader) (*http.Response, error)

func (*Client) DeleteDestination

func (c *Client) DeleteDestination(ctx context.Context, destinationId string) (*http.Response, error)

func (*Client) DeleteSubscriptionById

func (c *Client) DeleteSubscriptionById(ctx context.Context, notificationType NotificationType, subscriptionId string) (*http.Response, error)

func (*Client) GetDestination

func (c *Client) GetDestination(ctx context.Context, destinationId string) (*http.Response, error)

func (*Client) GetDestinations

func (c *Client) GetDestinations(ctx context.Context) (*http.Response, error)

func (*Client) GetSubscription

func (c *Client) GetSubscription(ctx context.Context, notificationType NotificationType) (*http.Response, error)

func (*Client) GetSubscriptionById

func (c *Client) GetSubscriptionById(ctx context.Context, notificationType NotificationType, subscriptionId string) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// GetDestinations request
	GetDestinations(ctx context.Context) (*http.Response, error)

	// CreateDestination request  with any body
	CreateDestinationWithBody(ctx context.Context, contentType string, body io.Reader) (*http.Response, error)

	CreateDestination(ctx context.Context, body CreateDestinationJSONRequestBody) (*http.Response, error)

	// DeleteDestination request
	DeleteDestination(ctx context.Context, destinationId string) (*http.Response, error)

	// GetDestination request
	GetDestination(ctx context.Context, destinationId string) (*http.Response, error)

	// GetSubscription request
	GetSubscription(ctx context.Context, notificationType NotificationType) (*http.Response, error)

	// CreateSubscription request  with any body
	CreateSubscriptionWithBody(ctx context.Context, notificationType NotificationType, contentType string, body io.Reader) (*http.Response, error)

	CreateSubscription(ctx context.Context, notificationType NotificationType, body CreateSubscriptionJSONRequestBody) (*http.Response, error)

	// DeleteSubscriptionById request
	DeleteSubscriptionById(ctx context.Context, notificationType NotificationType, subscriptionId string) (*http.Response, error)

	// GetSubscriptionById request
	GetSubscriptionById(ctx context.Context, notificationType NotificationType, subscriptionId string) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestBefore

func WithRequestBefore(fn RequestBeforeFn) ClientOption

WithRequestBefore allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

func WithResponseAfter

func WithResponseAfter(fn ResponseAfterFn) ClientOption

WithResponseAfter allows setting up a callback function, which will be called right after get response the request. This can be used to log.

func WithUserAgent

func WithUserAgent(userAgent string) ClientOption

WithUserAgent set up useragent add user agent to every request automatically

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(endpoint string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateDestinationWithBodyWithResponse

func (c *ClientWithResponses) CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateDestinationResp, error)

CreateDestinationWithBodyWithResponse request with arbitrary body returning *CreateDestinationResponse

func (*ClientWithResponses) CreateDestinationWithResponse

func (c *ClientWithResponses) CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody) (*CreateDestinationResp, error)

func (*ClientWithResponses) CreateSubscriptionWithBodyWithResponse

func (c *ClientWithResponses) CreateSubscriptionWithBodyWithResponse(ctx context.Context, notificationType NotificationType, contentType string, body io.Reader) (*CreateSubscriptionResp, error)

CreateSubscriptionWithBodyWithResponse request with arbitrary body returning *CreateSubscriptionResponse

func (*ClientWithResponses) CreateSubscriptionWithResponse

func (c *ClientWithResponses) CreateSubscriptionWithResponse(ctx context.Context, notificationType NotificationType, body CreateSubscriptionJSONRequestBody) (*CreateSubscriptionResp, error)

func (*ClientWithResponses) DeleteDestinationWithResponse

func (c *ClientWithResponses) DeleteDestinationWithResponse(ctx context.Context, destinationId string) (*DeleteDestinationResp, error)

DeleteDestinationWithResponse request returning *DeleteDestinationResponse

func (*ClientWithResponses) DeleteSubscriptionByIdWithResponse

func (c *ClientWithResponses) DeleteSubscriptionByIdWithResponse(ctx context.Context, notificationType NotificationType, subscriptionId string) (*DeleteSubscriptionByIdResp, error)

DeleteSubscriptionByIdWithResponse request returning *DeleteSubscriptionByIdResponse

func (*ClientWithResponses) GetDestinationWithResponse

func (c *ClientWithResponses) GetDestinationWithResponse(ctx context.Context, destinationId string) (*GetDestinationResp, error)

GetDestinationWithResponse request returning *GetDestinationResponse

func (*ClientWithResponses) GetDestinationsWithResponse

func (c *ClientWithResponses) GetDestinationsWithResponse(ctx context.Context) (*GetDestinationsResp, error)

GetDestinationsWithResponse request returning *GetDestinationsResponse

func (*ClientWithResponses) GetSubscriptionByIdWithResponse

func (c *ClientWithResponses) GetSubscriptionByIdWithResponse(ctx context.Context, notificationType NotificationType, subscriptionId string) (*GetSubscriptionByIdResp, error)

GetSubscriptionByIdWithResponse request returning *GetSubscriptionByIdResponse

func (*ClientWithResponses) GetSubscriptionWithResponse

func (c *ClientWithResponses) GetSubscriptionWithResponse(ctx context.Context, notificationType NotificationType) (*GetSubscriptionResp, error)

GetSubscriptionWithResponse request returning *GetSubscriptionResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// GetDestinations request
	GetDestinationsWithResponse(ctx context.Context) (*GetDestinationsResp, error)

	// CreateDestination request  with any body
	CreateDestinationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader) (*CreateDestinationResp, error)

	CreateDestinationWithResponse(ctx context.Context, body CreateDestinationJSONRequestBody) (*CreateDestinationResp, error)

	// DeleteDestination request
	DeleteDestinationWithResponse(ctx context.Context, destinationId string) (*DeleteDestinationResp, error)

	// GetDestination request
	GetDestinationWithResponse(ctx context.Context, destinationId string) (*GetDestinationResp, error)

	// GetSubscription request
	GetSubscriptionWithResponse(ctx context.Context, notificationType NotificationType) (*GetSubscriptionResp, error)

	// CreateSubscription request  with any body
	CreateSubscriptionWithBodyWithResponse(ctx context.Context, notificationType NotificationType, contentType string, body io.Reader) (*CreateSubscriptionResp, error)

	CreateSubscriptionWithResponse(ctx context.Context, notificationType NotificationType, body CreateSubscriptionJSONRequestBody) (*CreateSubscriptionResp, error)

	// DeleteSubscriptionById request
	DeleteSubscriptionByIdWithResponse(ctx context.Context, notificationType NotificationType, subscriptionId string) (*DeleteSubscriptionByIdResp, error)

	// GetSubscriptionById request
	GetSubscriptionByIdWithResponse(ctx context.Context, notificationType NotificationType, subscriptionId string) (*GetSubscriptionByIdResp, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type CreateDestinationJSONBody

type CreateDestinationJSONBody CreateDestinationRequest

CreateDestinationJSONBody defines parameters for CreateDestination.

type CreateDestinationJSONRequestBody

type CreateDestinationJSONRequestBody CreateDestinationJSONBody

CreateDestinationRequestBody defines body for CreateDestination for application/json ContentType.

type CreateDestinationRequest

type CreateDestinationRequest struct {

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

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

CreateDestinationRequest defines model for CreateDestinationRequest.

type CreateDestinationResp

type CreateDestinationResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateDestinationResponse
}

func ParseCreateDestinationResp

func ParseCreateDestinationResp(rsp *http.Response) (*CreateDestinationResp, error)

ParseCreateDestinationResp parses an HTTP response from a CreateDestinationWithResponse call

func (CreateDestinationResp) Status

func (r CreateDestinationResp) Status() string

Status returns HTTPResponse.Status

func (CreateDestinationResp) StatusCode

func (r CreateDestinationResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateDestinationResponse

type CreateDestinationResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Represents a destination created when you call the createDestination operation.
	Payload *Destination `json:"payload,omitempty"`
}

CreateDestinationResponse defines model for CreateDestinationResponse.

type CreateSubscriptionJSONBody

type CreateSubscriptionJSONBody CreateSubscriptionRequest

CreateSubscriptionJSONBody defines parameters for CreateSubscription.

type CreateSubscriptionJSONRequestBody

type CreateSubscriptionJSONRequestBody CreateSubscriptionJSONBody

CreateSubscriptionRequestBody defines body for CreateSubscription for application/json ContentType.

type CreateSubscriptionRequest

type CreateSubscriptionRequest struct {

	// The identifier for the destination where notifications will be delivered.
	DestinationId *string `json:"destinationId,omitempty"`

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

CreateSubscriptionRequest defines model for CreateSubscriptionRequest.

type CreateSubscriptionResp

type CreateSubscriptionResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *CreateSubscriptionResponse
}

func ParseCreateSubscriptionResp

func ParseCreateSubscriptionResp(rsp *http.Response) (*CreateSubscriptionResp, error)

ParseCreateSubscriptionResp parses an HTTP response from a CreateSubscriptionWithResponse call

func (CreateSubscriptionResp) Status

func (r CreateSubscriptionResp) Status() string

Status returns HTTPResponse.Status

func (CreateSubscriptionResp) StatusCode

func (r CreateSubscriptionResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateSubscriptionResponse

type CreateSubscriptionResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Represents a subscription to receive notifications.
	Payload *Subscription `json:"payload,omitempty"`
}

CreateSubscriptionResponse defines model for CreateSubscriptionResponse.

type DeleteDestinationResp

type DeleteDestinationResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *DeleteDestinationResponse
}

func ParseDeleteDestinationResp

func ParseDeleteDestinationResp(rsp *http.Response) (*DeleteDestinationResp, error)

ParseDeleteDestinationResp parses an HTTP response from a DeleteDestinationWithResponse call

func (DeleteDestinationResp) Status

func (r DeleteDestinationResp) Status() string

Status returns HTTPResponse.Status

func (DeleteDestinationResp) StatusCode

func (r DeleteDestinationResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteDestinationResponse

type DeleteDestinationResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

DeleteDestinationResponse defines model for DeleteDestinationResponse.

type DeleteSubscriptionByIdResp

type DeleteSubscriptionByIdResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *DeleteSubscriptionByIdResponse
}

func ParseDeleteSubscriptionByIdResp

func ParseDeleteSubscriptionByIdResp(rsp *http.Response) (*DeleteSubscriptionByIdResp, error)

ParseDeleteSubscriptionByIdResp parses an HTTP response from a DeleteSubscriptionByIdWithResponse call

func (DeleteSubscriptionByIdResp) Status

Status returns HTTPResponse.Status

func (DeleteSubscriptionByIdResp) StatusCode

func (r DeleteSubscriptionByIdResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteSubscriptionByIdResponse

type DeleteSubscriptionByIdResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`
}

DeleteSubscriptionByIdResponse defines model for DeleteSubscriptionByIdResponse.

type Destination

type Destination struct {

	// The destination identifier generated when you created the destination.
	DestinationId string `json:"destinationId"`

	// The developer-defined name for this destination.
	Name string `json:"name"`

	// The destination resource types.
	Resource DestinationResource `json:"resource"`
}

Destination defines model for Destination.

type DestinationList

type DestinationList []Destination

DestinationList defines model for DestinationList.

type DestinationResource

type DestinationResource struct {

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

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

DestinationResource defines model for DestinationResource.

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 (Amazon SQS) queue destination.
	Sqs *SqsResource `json:"sqs,omitempty"`
}

DestinationResourceSpecification defines model for DestinationResourceSpecification.

type Error

type Error struct {

	// An error code that identifies the type of error that occurred.
	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.
	Message string `json:"message"`
}

Error defines model for Error.

type ErrorList

type ErrorList []Error

ErrorList defines model for ErrorList.

type EventBridgeResource

type EventBridgeResource struct {

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

	// The name of the partner event source associated with the destination.
	Name string `json:"name"`

	// The AWS region in which you receive the notifications. For AWS regions that are supported in Amazon EventBridge, see https://docs.aws.amazon.com/general/latest/gr/ev.html.
	Region string `json:"region"`
}

EventBridgeResource defines model for EventBridgeResource.

type EventBridgeResourceSpecification

type EventBridgeResourceSpecification struct {

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

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

EventBridgeResourceSpecification defines model for EventBridgeResourceSpecification.

type GetDestinationResp

type GetDestinationResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetDestinationResponse
}

func ParseGetDestinationResp

func ParseGetDestinationResp(rsp *http.Response) (*GetDestinationResp, error)

ParseGetDestinationResp parses an HTTP response from a GetDestinationWithResponse call

func (GetDestinationResp) Status

func (r GetDestinationResp) Status() string

Status returns HTTPResponse.Status

func (GetDestinationResp) StatusCode

func (r GetDestinationResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDestinationResponse

type GetDestinationResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Represents a destination created when you call the createDestination operation.
	Payload *Destination `json:"payload,omitempty"`
}

GetDestinationResponse defines model for GetDestinationResponse.

type GetDestinationsResp

type GetDestinationsResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetDestinationsResponse
}

func ParseGetDestinationsResp

func ParseGetDestinationsResp(rsp *http.Response) (*GetDestinationsResp, error)

ParseGetDestinationsResp parses an HTTP response from a GetDestinationsWithResponse call

func (GetDestinationsResp) Status

func (r GetDestinationsResp) Status() string

Status returns HTTPResponse.Status

func (GetDestinationsResp) StatusCode

func (r GetDestinationsResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetDestinationsResponse

type GetDestinationsResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// A list of destinations.
	Payload *DestinationList `json:"payload,omitempty"`
}

GetDestinationsResponse defines model for GetDestinationsResponse.

type GetSubscriptionByIdResp

type GetSubscriptionByIdResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetSubscriptionByIdResponse
}

func ParseGetSubscriptionByIdResp

func ParseGetSubscriptionByIdResp(rsp *http.Response) (*GetSubscriptionByIdResp, error)

ParseGetSubscriptionByIdResp parses an HTTP response from a GetSubscriptionByIdWithResponse call

func (GetSubscriptionByIdResp) Status

func (r GetSubscriptionByIdResp) Status() string

Status returns HTTPResponse.Status

func (GetSubscriptionByIdResp) StatusCode

func (r GetSubscriptionByIdResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSubscriptionByIdResponse

type GetSubscriptionByIdResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Represents a subscription to receive notifications.
	Payload *Subscription `json:"payload,omitempty"`
}

GetSubscriptionByIdResponse defines model for GetSubscriptionByIdResponse.

type GetSubscriptionResp

type GetSubscriptionResp struct {
	Body         []byte
	HTTPResponse *http.Response
	Model        *GetSubscriptionResponse
}

func ParseGetSubscriptionResp

func ParseGetSubscriptionResp(rsp *http.Response) (*GetSubscriptionResp, error)

ParseGetSubscriptionResp parses an HTTP response from a GetSubscriptionWithResponse call

func (GetSubscriptionResp) Status

func (r GetSubscriptionResp) Status() string

Status returns HTTPResponse.Status

func (GetSubscriptionResp) StatusCode

func (r GetSubscriptionResp) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetSubscriptionResponse

type GetSubscriptionResponse struct {

	// A list of error responses returned when a request is unsuccessful.
	Errors *ErrorList `json:"errors,omitempty"`

	// Represents a subscription to receive notifications.
	Payload *Subscription `json:"payload,omitempty"`
}

GetSubscriptionResponse defines model for GetSubscriptionResponse.

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type NotificationType

type NotificationType string

NotificationType defines model for NotificationType.

const (
	NotificationType_ANY_OFFER_CHANGED            NotificationType = "ANY_OFFER_CHANGED"
	NotificationType_B2B_ANY_OFFER_CHANGED        NotificationType = "B2B_ANY_OFFER_CHANGED"
	NotificationType_BRANDED_ITEM_CONTENT_CHANGE  NotificationType = "BRANDED_ITEM_CONTENT_CHANGE"
	NotificationType_FBA_OUTBOUND_SHIPMENT_STATUS NotificationType = "FBA_OUTBOUND_SHIPMENT_STATUS"
	NotificationType_FEED_PROCESSING_FINISHED     NotificationType = "FEED_PROCESSING_FINISHED"
	NotificationType_FEE_PROMOTION                NotificationType = "FEE_PROMOTION"
	NotificationType_FULFILLMENT_ORDER_STATUS     NotificationType = "FULFILLMENT_ORDER_STATUS"
	NotificationType_ITEM_PRODUCT_TYPE_CHANGE     NotificationType = "ITEM_PRODUCT_TYPE_CHANGE"
	NotificationType_MFN_ORDER_STATUS_CHANGE      NotificationType = "MFN_ORDER_STATUS_CHANGE"
	NotificationType_REPORT_PROCESSING_FINISHED   NotificationType = "REPORT_PROCESSING_FINISHED"
)

List of NotificationType

type RequestBeforeFn

type RequestBeforeFn func(ctx context.Context, req *http.Request) error

RequestBeforeFn is the function signature for the RequestBefore callback function

type ResponseAfterFn

type ResponseAfterFn func(ctx context.Context, rsp *http.Response) error

ResponseAfterFn is the function signature for the ResponseAfter callback function

type SqsResource

type SqsResource struct {

	// The Amazon Resource Name (ARN) associated with the SQS queue.
	Arn string `json:"arn"`
}

SqsResource defines model for SqsResource.

type Subscription

type Subscription struct {

	// The identifier for the destination where notifications will be delivered.
	DestinationId string `json:"destinationId"`

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

	// The subscription identifier generated when the subscription is created.
	SubscriptionId string `json:"subscriptionId"`
}

Subscription defines model for Subscription.

Jump to

Keyboard shortcuts

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