UNPKG

@ballin-team/paysync-nubank

Version:

<h1 align="center"> <img src="https://docs.nupaybusiness.com.br/images/logotipo.png" alt="NuPay for Business" /> </h1>

15 lines (14 loc) 767 B
import { NubankPaymentClient } from './nubankPayment.client'; import { NubankConciliationClient } from './NubankConciliation.client'; export class NubankClient { config; payment; conciliation; constructor(input) { this.config = input; const paymentCredentials = input.credentials.payment; const conciliationCredentials = input.credentials.conciliation; this.payment = new NubankPaymentClient({ ...input, credentials: { merchantKey: paymentCredentials.merchantKey, merchantToken: paymentCredentials.merchantToken } }); this.conciliation = new NubankConciliationClient({ ...input, credentials: { merchantKey: conciliationCredentials.merchantKey, merchantToken: conciliationCredentials.merchantToken } }); } }