@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) • 714 B
JavaScript
import { ChargebackFee } from './chargeback-fee.js';
export class TransactionPayoutTotalsAdjusted {
constructor(transactionPayoutTotalsAdjusted) {
this.subtotal = transactionPayoutTotalsAdjusted.subtotal;
this.tax = transactionPayoutTotalsAdjusted.tax;
this.total = transactionPayoutTotalsAdjusted.total;
this.fee = transactionPayoutTotalsAdjusted.fee;
this.chargebackFee = transactionPayoutTotalsAdjusted.chargeback_fee
? new ChargebackFee(transactionPayoutTotalsAdjusted.chargeback_fee)
: null;
this.earnings = transactionPayoutTotalsAdjusted.earnings;
this.currencyCode = transactionPayoutTotalsAdjusted.currency_code;
}
}