@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
20 lines (19 loc) • 868 B
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.TransactionTotals = void 0;
class TransactionTotals {
constructor(transactionTotals) {
this.subtotal = transactionTotals.subtotal;
this.discount = transactionTotals.discount;
this.tax = transactionTotals.tax;
this.total = transactionTotals.total;
this.credit = transactionTotals.credit;
this.creditToBalance = transactionTotals.credit_to_balance;
this.balance = transactionTotals.balance;
this.grandTotal = transactionTotals.grand_total;
this.fee = transactionTotals.fee ? transactionTotals.fee : null;
this.earnings = transactionTotals.earnings ? transactionTotals.earnings : null;
this.currencyCode = transactionTotals.currency_code;
}
}
exports.TransactionTotals = TransactionTotals;