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.

12 lines (11 loc) 454 B
import { CustomerBalance } from './customer-balance.js'; export class CreditBalance { customerId; currencyCode; balance; constructor(creditBalance) { this.customerId = creditBalance.customer_id ? creditBalance.customer_id : null; this.currencyCode = creditBalance.currency_code ? creditBalance.currency_code : null; this.balance = creditBalance.balance ? new CustomerBalance(creditBalance.balance) : null; } }