UNPKG

@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) 726 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BillingDetails = void 0; const time_period_js_1 = require("./time-period.js"); class BillingDetails { 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_js_1.TimePeriod(billingDetails.payment_terms); } } exports.BillingDetails = BillingDetails;