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