/** * @module Resources/Products */ import { AuthParams, SendData } from "../api/RestAPI.js"; import { CRUDItemsResponse, CRUDResource } from "./CRUDResource.js"; import { SubscriptionPeriod } from "./Subscriptions.js"; import { TransactionTokenType } from "./TransactionTokens.js"; import { Metadata } from "./index.js"; export type LinkProductListItem = { id: string; merchantId: string; storeId: string; code: string | null; name: string; description?: string | null; createdOn: string; updatedOn: string; amount: number; currency: string; shippingFees?: number | null; tokenType: TransactionTokenType; quantity: number; subscriptionCycles?: number; subscriptionInitialAmount?: number; subscriptionStartDayOfMonth?: number; subscriptionStartInMonths?: number; subscriptionStartIn?: string; subscriptionStartOn?: string; /** * ISO 8601 period. e.g P1M, P23D. Can not be used with the `period` parameter */ subscriptionCyclicalPeriod?: string | null; subscriptionPeriod?: SubscriptionPeriod; /** * ISO 8601 period. e.g P1M, P23D. Can not be used with the `period` parameter */ subscriptionRetryInterval?: string | null; metadata?: T | null; }; export type ResponseLinkProducts = CRUDItemsResponse> & { hasMore: false; }; export declare class LinksProducts extends CRUDResource { static routeBase: string; private _list?; list(linkId: string, data?: SendData<{ [k: string]: never; }>, auth?: AuthParams): Promise>; }