@paddle/paddle-node-sdk
Version:
A Node.js SDK that you can use to integrate Paddle Billing with applications written in server-side JavaScript.
18 lines (17 loc) • 862 B
JavaScript
export class TransactionPayoutTotalsNotification {
constructor(transactionPayoutTotals) {
this.subtotal = transactionPayoutTotals.subtotal;
this.discount = transactionPayoutTotals.discount;
this.tax = transactionPayoutTotals.tax;
this.total = transactionPayoutTotals.total;
this.credit = transactionPayoutTotals.credit;
this.creditToBalance = transactionPayoutTotals.credit_to_balance;
this.balance = transactionPayoutTotals.balance;
this.grandTotal = transactionPayoutTotals.grand_total;
this.fee = transactionPayoutTotals.fee;
this.earnings = transactionPayoutTotals.earnings;
this.currencyCode = transactionPayoutTotals.currency_code;
this.exchangeRate = transactionPayoutTotals.exchange_rate;
this.feeRate = transactionPayoutTotals.fee_rate;
}
}