@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
28 lines (27 loc) • 1.14 kB
TypeScript
import { type CurrencyCode, type DiscountMode, type DiscountStatus, type DiscountType } from '../../enums/index.js';
import { type CustomData, DiscountGroup, ImportMeta } from '../index.js';
import { type IDiscountResponse } from '../../types/index.js';
export declare class Discount {
readonly id: string;
readonly status: DiscountStatus;
readonly description: string;
readonly enabledForCheckout: boolean;
readonly code: string | null;
readonly mode: DiscountMode;
readonly type: DiscountType;
readonly amount: string;
readonly currencyCode: CurrencyCode | null;
readonly recur: boolean;
readonly maximumRecurringIntervals: number | null;
readonly usageLimit: number | null;
readonly restrictTo: string[] | null;
readonly expiresAt: string | null;
readonly customData: CustomData | null;
readonly timesUsed: number | null;
readonly createdAt: string;
readonly updatedAt: string;
readonly importMeta: ImportMeta | null;
readonly discountGroupId: string | null;
readonly discountGroup: DiscountGroup | null;
constructor(discount: IDiscountResponse);
}