/** * @module Resources/Products */ import { AuthParams, SendData } from "../api/RestAPI.js"; import { CRUDResource } from "./CRUDResource.js"; import { Metadata } from "./common/types.js"; import { SubscriptionPeriod } from "./Subscriptions.js"; import { TransactionTokenType } from "./TransactionTokens.js"; export type ProductItem = { id: string; storeId: string; merchantId: string; platformId: string; name: string; code: string; amount: number; currency: string; tokenType: TransactionTokenType; description?: string | null; shippingFees?: number | null; subscriptionCycles?: number; subscriptionInitialAmount?: number; subscriptionStartDayOfMonth?: number; subscriptionStartInMonths?: number; /** * ISO 8601 period. e.g P1M, P23D. */ subscriptionStartIn?: string; subscriptionPreserveEndOfMonth?: boolean; /** * ISO 8601 period. e.g P1M, P23D. */ subscriptionRetryInterval?: string; /** * ISO 8601 period. e.g P1M, P23D. Can not be used with the `period` parameter */ subscriptionCyclicalPeriod?: string | null; subscriptionPeriod?: SubscriptionPeriod; createdOn: string; updatedOn: string; active: boolean; metadata?: T; }; export type ResponseProduct = ProductItem; export declare class Products extends CRUDResource { static routeBase: string; private _get?; get(id: string, data?: SendData | null, auth?: AuthParams): Promise>; private _getByCode?; getByCode(code: string, data?: SendData, auth?: AuthParams): Promise>; }