@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
15 lines (14 loc) • 825 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.BillingDetailsNotification = void 0;
const time_period_notification_js_1 = require("./time-period-notification.js");
class BillingDetailsNotification {
constructor(billingDetails) {
var _a;
this.enableCheckout = (_a = billingDetails.enable_checkout) !== null && _a !== void 0 ? _a : null;
this.purchaseOrderNumber = billingDetails.purchase_order_number ? billingDetails.purchase_order_number : null;
this.additionalInformation = billingDetails.additional_information ? billingDetails.additional_information : null;
this.paymentTerms = new time_period_notification_js_1.TimePeriodNotification(billingDetails.payment_terms);
}
}
exports.BillingDetailsNotification = BillingDetailsNotification;