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.

9 lines (8 loc) 407 B
import { CustomerBalance } from './customer-balance.js'; export class CreditBalance { 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; } }