@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
12 lines (11 loc) • 424 B
JavaScript
import { General } from './general.js';
import { CustomerPortalSubscriptionUrl } from './customer-portal-subscription-url.js';
export class Urls {
general;
subscriptions;
constructor(urlsResponse) {
this.general = new General(urlsResponse.general);
this.subscriptions =
urlsResponse.subscriptions?.map((subscription) => new CustomerPortalSubscriptionUrl(subscription)) ?? [];
}
}