UNPKG

@ballin-team/paysync-nubank

Version:

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

16 lines (15 loc) 983 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.NubankClient = void 0; const nubankPayment_client_1 = require("./nubankPayment.client"); const NubankConciliation_client_1 = require("./NubankConciliation.client"); class NubankClient { constructor(input) { this.config = input; const paymentCredentials = input.credentials.payment; const conciliationCredentials = input.credentials.conciliation; this.payment = new nubankPayment_client_1.NubankPaymentClient(Object.assign(Object.assign({}, input), { credentials: { merchantKey: paymentCredentials.merchantKey, merchantToken: paymentCredentials.merchantToken } })); this.conciliation = new NubankConciliation_client_1.NubankConciliationClient(Object.assign(Object.assign({}, input), { credentials: { merchantKey: conciliationCredentials.merchantKey, merchantToken: conciliationCredentials.merchantToken } })); } } exports.NubankClient = NubankClient;