@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
38 lines (37 loc) • 1.9 kB
TypeScript
import { type CollectionMode, type CurrencyCode, type SubscriptionStatus } from '../../enums/index.js';
import { SubscriptionDiscount } from './subscription-discount.js';
import { BillingDetails, ImportMeta, TimePeriod } from '../shared/index.js';
import { SubscriptionTimePeriod } from './subscription-time-period.js';
import { SubscriptionScheduledChange } from './subscription-scheduled-change.js';
import { SubscriptionManagement } from './subscription-management.js';
import { SubscriptionItem } from './subscription-item.js';
import { type CustomData, NextTransaction, TransactionDetailsPreview } from '../index.js';
import { type ISubscriptionResponse } from '../../types/index.js';
export declare class Subscription {
readonly id: string;
readonly status: SubscriptionStatus;
readonly customerId: string;
readonly addressId: string;
readonly businessId: string | null;
readonly currencyCode: CurrencyCode;
readonly createdAt: string;
readonly updatedAt: string;
readonly startedAt: string | null;
readonly firstBilledAt: string | null;
readonly nextBilledAt: string | null;
readonly pausedAt: string | null;
readonly canceledAt: string | null;
readonly discount: SubscriptionDiscount | null;
readonly collectionMode: CollectionMode;
readonly billingDetails: BillingDetails | null;
readonly currentBillingPeriod: SubscriptionTimePeriod | null;
readonly billingCycle: TimePeriod;
readonly scheduledChange: SubscriptionScheduledChange | null;
readonly managementUrls: SubscriptionManagement | null;
readonly items: SubscriptionItem[];
readonly customData: CustomData | null;
readonly importMeta: ImportMeta | null;
readonly nextTransaction: NextTransaction | null;
readonly recurringTransactionDetails: TransactionDetailsPreview | null;
constructor(subscription: ISubscriptionResponse);
}