/** * The back in stock settings object holds information related to the state of collecting back in stock * notification requests. */ interface BackInStockSettings { /** * Information about collecting customer requests to receive * back in stock notifications. */ collectionStates?: BackInStockCollectionState[]; } interface BackInStockCollectionState { /** ID of the app to receive notification requests for. */ appId?: string; /** Whether to collect requests for items from this app. */ collectingRequests?: boolean; } interface StartCollectingRequestsRequest { /** ID of the app to start accepting notification requests for. */ appId: string; } interface StartCollectingRequestsResponse { /** Back in stock settings info. */ settings?: BackInStockSettings; } interface StopCollectingRequestsRequest { /** ID of the app to stop accepting notification requests for. */ appId: string; } interface StopCollectingRequestsResponse { /** Back in stock settings info. */ settings?: BackInStockSettings; } interface GetSettingsRequest { } interface GetSettingsResponse { /** Retrieved back in stock request settings. */ settings?: BackInStockSettings; } interface BackInStockCollectionStateNonNullableFields { appId: string; collectingRequests: boolean; } interface BackInStockSettingsNonNullableFields { collectionStates: BackInStockCollectionStateNonNullableFields[]; } interface StartCollectingRequestsResponseNonNullableFields { settings?: BackInStockSettingsNonNullableFields; } interface StopCollectingRequestsResponseNonNullableFields { settings?: BackInStockSettingsNonNullableFields; } interface GetSettingsResponseNonNullableFields { settings?: BackInStockSettingsNonNullableFields; } export type { BackInStockSettings as B, GetSettingsResponse as G, StartCollectingRequestsResponse as S, StartCollectingRequestsResponseNonNullableFields as a, StopCollectingRequestsResponse as b, StopCollectingRequestsResponseNonNullableFields as c, GetSettingsResponseNonNullableFields as d, BackInStockCollectionState as e, StartCollectingRequestsRequest as f, StopCollectingRequestsRequest as g, GetSettingsRequest as h };