/**
 * Selling Partner API for Notifications
 * The Selling Partner API for Notifications lets you subscribe to notifications that are relevant to a selling partner\'s business. Using this API you can create a destination to receive notifications, subscribe to notifications, delete notification subscriptions, and more.  For more information, see the [Notifications Use Case Guide](https://github.com/amzn/selling-partner-api-docs/blob/main/guides/en-US/use-case-guides/notifications-api-use-case-guide/notifications-use-case-guide-v1.md)
 *
 * The version of the OpenAPI document: v1
 *
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */ import { Configuration } from './configuration' ; import globalAxios , { AxiosPromise , AxiosInstance } from 'axios' ; import { DUMMY_BASE_URL , assertParamExists , setApiKeyToObject , setBasicAuthToObject , setBearerAuthToObject , setOAuthToObject , setSearchParams , serializeDataIfNeeded , toPathString , createRequestFunction } from './common' ; import { BASE_PATH , COLLECTION_FORMATS , RequestArgs , BaseAPI , RequiredError } from './base' ; export interface export interface CreateDestinationRequest { type { DestinationResourceSpecification } memberof resourceSpecification : DestinationResourceSpecification ; type { string } memberof name : string ; } export interface export interface CreateDestinationResponse { type { Destination } memberof payload ? : Destination ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface CreateSubscriptionRequest { type { string } memberof payloadVersion ? : string ; type { string } memberof destinationId ? : string ; } export interface export interface CreateSubscriptionResponse { type { Subscription } memberof payload ? : Subscription ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface DeleteDestinationResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface DeleteSubscriptionByIdResponse { type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface Destination { type { string } memberof name : string ; type { string } memberof destinationId : string ; type { DestinationResource } memberof resource : DestinationResource ; } export interface export interface DestinationResource { type { SqsResource } memberof sqs ? : SqsResource ; type { EventBridgeResource } memberof eventBridge ? : EventBridgeResource ; } export interface export interface DestinationResourceSpecification { type { SqsResource } memberof sqs ? : SqsResource ; type { EventBridgeResourceSpecification } memberof eventBridge ? : EventBridgeResourceSpecification ; } export interface export interface EventBridgeResource { type { string } memberof name : string ; type { string } memberof region : string ; type { string } memberof accountId : string ; } export interface export interface EventBridgeResourceSpecification { type { string } memberof region : string ; type { string } memberof accountId : string ; } export interface export interface GetDestinationResponse { type { Destination } memberof payload ? : Destination ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetDestinationsResponse { type { Array < Destination > } memberof payload ? : Array < Destination > ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetSubscriptionByIdResponse { type { Subscription } memberof payload ? : Subscription ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface GetSubscriptionResponse { type { Subscription } memberof payload ? : Subscription ; type { Array < Error > } memberof errors ? : Array < Error > ; } export interface export interface ModelError { type { string } memberof code : string ; type { string } memberof message : string ; type { string } memberof details ? : string ; } export interface export interface SqsResource { type { string } memberof arn : string ; } export interface export interface Subscription { type { string } memberof subscriptionId : string ; type { string } memberof payloadVersion : string ; type { string } memberof destinationId : string ; } export export const NotificationsApiAxiosParamCreator = function ( configuration ? ) { return { param { CreateDestinationRequest } body param { * } options throws createDestination : async ( body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createDestination' , 'body' , body ) ; const localVarPath = `/notifications/v1/destinations` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { CreateSubscriptionRequest } body param { * } options throws createSubscription : async ( notificationType , body , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'createSubscription' , 'notificationType' , notificationType ) ; assertParamExists ( 'createSubscription' , 'body' , body ) ; const localVarPath = `/notifications/v1/subscriptions/{notificationType}` . replace ( `{${ "notificationType" }}` , encodeURIComponent ( String ( notificationType ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'POST' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; localVarHeaderParameter [ 'Content-Type' ] = 'application/json' ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; localVarRequestOptions . data = serializeDataIfNeeded ( body , localVarRequestOptions , configuration ) ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } destinationId param { * } options throws deleteDestination : async ( destinationId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'deleteDestination' , 'destinationId' , destinationId ) ; const localVarPath = `/notifications/v1/destinations/{destinationId}` . replace ( `{${ "destinationId" }}` , encodeURIComponent ( String ( destinationId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'DELETE' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws deleteSubscriptionById : async ( subscriptionId , notificationType , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'deleteSubscriptionById' , 'subscriptionId' , subscriptionId ) ; assertParamExists ( 'deleteSubscriptionById' , 'notificationType' , notificationType ) ; const localVarPath = `/notifications/v1/subscriptions/{notificationType}/{subscriptionId}` . replace ( `{${ "subscriptionId" }}` , encodeURIComponent ( String ( subscriptionId ) ) ) . replace ( `{${ "notificationType" }}` , encodeURIComponent ( String ( notificationType ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'DELETE' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } destinationId param { * } options throws getDestination : async ( destinationId , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getDestination' , 'destinationId' , destinationId ) ; const localVarPath = `/notifications/v1/destinations/{destinationId}` . replace ( `{${ "destinationId" }}` , encodeURIComponent ( String ( destinationId ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { * } options throws getDestinations : async ( options = { } ) : Promise < RequestArgs > => { const localVarPath = `/notifications/v1/destinations` ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws getSubscription : async ( notificationType , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getSubscription' , 'notificationType' , notificationType ) ; const localVarPath = `/notifications/v1/subscriptions/{notificationType}` . replace ( `{${ "notificationType" }}` , encodeURIComponent ( String ( notificationType ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws getSubscriptionById : async ( subscriptionId , notificationType , options = { } ) : Promise < RequestArgs > => { assertParamExists ( 'getSubscriptionById' , 'subscriptionId' , subscriptionId ) ; assertParamExists ( 'getSubscriptionById' , 'notificationType' , notificationType ) ; const localVarPath = `/notifications/v1/subscriptions/{notificationType}/{subscriptionId}` . replace ( `{${ "subscriptionId" }}` , encodeURIComponent ( String ( subscriptionId ) ) ) . replace ( `{${ "notificationType" }}` , encodeURIComponent ( String ( notificationType ) ) ) ; const localVarUrlObj = new URL ( localVarPath , DUMMY_BASE_URL ) ; let baseOptions ; if ( configuration ) { baseOptions = configuration . baseOptions ; } const localVarRequestOptions = { method : 'GET' , ... baseOptions , ... options } ; const localVarHeaderParameter = { } as any ; const localVarQueryParameter = { } as any ; setSearchParams ( localVarUrlObj , localVarQueryParameter , options . query ) ; let headersFromBaseOptions = baseOptions && baseOptions . headers ? baseOptions . headers : { } ; localVarRequestOptions . headers = { ... localVarHeaderParameter , ... headersFromBaseOptions , ... options . headers } ; return { url : toPathString ( localVarUrlObj ) , options : localVarRequestOptions , } ; } , } ; } ; export export const NotificationsApiFp = function ( configuration ? ) { const localVarAxiosParamCreator = NotificationsApiAxiosParamCreator ( configuration ) ; return { param { CreateDestinationRequest } body param { * } options throws async createDestination ( body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createDestination ( body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { CreateSubscriptionRequest } body param { * } options throws async createSubscription ( notificationType , body , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . createSubscription ( notificationType , body , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } destinationId param { * } options throws async deleteDestination ( destinationId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . deleteDestination ( destinationId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws async deleteSubscriptionById ( subscriptionId , notificationType , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . deleteSubscriptionById ( subscriptionId , notificationType , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } destinationId param { * } options throws async getDestination ( destinationId , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getDestination ( destinationId , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { * } options throws async getDestinations ( options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getDestinations ( options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws async getSubscription ( notificationType , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getSubscription ( notificationType , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws async getSubscriptionById ( subscriptionId , notificationType , options ? ) { const localVarAxiosArgs = await localVarAxiosParamCreator . getSubscriptionById ( subscriptionId , notificationType , options ) ; return createRequestFunction ( localVarAxiosArgs , globalAxios , BASE_PATH , configuration ) ; } , } ; } ; export export const NotificationsApiFactory = function ( configuration ? , basePath ? , axios ? ) { const localVarFp = NotificationsApiFp ( configuration ) ; return { param { CreateDestinationRequest } body param { * } options throws createDestination ( body , options ? ) { return localVarFp . createDestination ( body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { CreateSubscriptionRequest } body param { * } options throws createSubscription ( notificationType , body , options ? ) { return localVarFp . createSubscription ( notificationType , body , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } destinationId param { * } options throws deleteDestination ( destinationId , options ? ) { return localVarFp . deleteDestination ( destinationId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws deleteSubscriptionById ( subscriptionId , notificationType , options ? ) { return localVarFp . deleteSubscriptionById ( subscriptionId , notificationType , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } destinationId param { * } options throws getDestination ( destinationId , options ? ) { return localVarFp . getDestination ( destinationId , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { * } options throws getDestinations ( options ? ) { return localVarFp . getDestinations ( options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws getSubscription ( notificationType , options ? ) { return localVarFp . getSubscription ( notificationType , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , param { string } subscriptionId param { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } notificationType param { * } options throws getSubscriptionById ( subscriptionId , notificationType , options ? ) { return localVarFp . getSubscriptionById ( subscriptionId , notificationType , options ) . then ( ( request ) => request ( axios , basePath ) ) ; } , } ; } ; export interface export interface NotificationsApiCreateDestinationRequest { type { CreateDestinationRequest } memberof readonly body : CreateDestinationRequest ; } export interface export interface NotificationsApiCreateSubscriptionRequest { type { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } memberof readonly notificationType : 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' ; type { CreateSubscriptionRequest } memberof readonly body : CreateSubscriptionRequest ; } export interface export interface NotificationsApiDeleteDestinationRequest { type { string } memberof readonly destinationId : string ; } export interface export interface NotificationsApiDeleteSubscriptionByIdRequest { type { string } memberof readonly subscriptionId : string ; type { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } memberof readonly notificationType : 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' ; } export interface export interface NotificationsApiGetDestinationRequest { type { string } memberof readonly destinationId : string ; } export interface export interface NotificationsApiGetSubscriptionRequest { type { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } memberof readonly notificationType : 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' ; } export interface export interface NotificationsApiGetSubscriptionByIdRequest { type { string } memberof readonly subscriptionId : string ; type { 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' } memberof readonly notificationType : 'ANY_OFFER_CHANGED' | 'FEED_PROCESSING_FINISHED' | 'FBA_OUTBOUND_SHIPMENT_STATUS' | 'FEE_PROMOTION' | 'FULFILLMENT_ORDER_STATUS' | 'REPORT_PROCESSING_FINISHED' | 'BRANDED_ITEM_CONTENT_CHANGE' | 'ITEM_PRODUCT_TYPE_CHANGE' | 'LISTINGS_ITEM_STATUS_CHANGE' | 'LISTINGS_ITEM_ISSUES_CHANGE' | 'MFN_ORDER_STATUS_CHANGE' | 'B2B_ANY_OFFER_CHANGED' | 'ACCOUNT_STATUS_CHANGED' | 'PRODUCT_TYPE_DEFINITIONS_CHANGE' ; } export class extends BaseAPI export class NotificationsApi extends BaseAPI { param { NotificationsApiCreateDestinationRequest } requestParameters param { * } options throws memberof public createDestination ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . createDestination ( requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiCreateSubscriptionRequest } requestParameters param { * } options throws memberof public createSubscription ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . createSubscription ( requestParameters . notificationType , requestParameters . body , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiDeleteDestinationRequest } requestParameters param { * } options throws memberof public deleteDestination ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . deleteDestination ( requestParameters . destinationId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiDeleteSubscriptionByIdRequest } requestParameters param { * } options throws memberof public deleteSubscriptionById ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . deleteSubscriptionById ( requestParameters . subscriptionId , requestParameters . notificationType , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiGetDestinationRequest } requestParameters param { * } options throws memberof public getDestination ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . getDestination ( requestParameters . destinationId , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { * } options throws memberof public getDestinations ( options ? ) { return NotificationsApiFp ( this . configuration ) . getDestinations ( options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiGetSubscriptionRequest } requestParameters param { * } options throws memberof public getSubscription ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . getSubscription ( requestParameters . notificationType , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } param { NotificationsApiGetSubscriptionByIdRequest } requestParameters param { * } options throws memberof public getSubscriptionById ( requestParameters , options ? ) { return NotificationsApiFp ( this . configuration ) . getSubscriptionById ( requestParameters . subscriptionId , requestParameters . notificationType , options ) . then ( ( request ) => request ( this . axios , this . basePath ) ) ; } }