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.

26 lines (25 loc) 1.04 kB
import { ChargebackFeeNotification } from './chargeback-fee-notification.js'; export class TransactionPayoutTotalsAdjustedNotification { subtotal; tax; total; fee; chargebackFee; earnings; currencyCode; exchangeRate; retainedFee; constructor(transactionPayoutTotalsAdjusted) { this.subtotal = transactionPayoutTotalsAdjusted.subtotal; this.tax = transactionPayoutTotalsAdjusted.tax; this.total = transactionPayoutTotalsAdjusted.total; this.fee = transactionPayoutTotalsAdjusted.fee; this.chargebackFee = transactionPayoutTotalsAdjusted.chargeback_fee ? new ChargebackFeeNotification(transactionPayoutTotalsAdjusted.chargeback_fee) : null; this.earnings = transactionPayoutTotalsAdjusted.earnings; this.currencyCode = transactionPayoutTotalsAdjusted.currency_code; this.exchangeRate = transactionPayoutTotalsAdjusted.exchange_rate; this.retainedFee = transactionPayoutTotalsAdjusted.retained_fee; } }