UNPKG

perfectpago

Version:

A Simple integration for mercadopago

29 lines (28 loc) 1.52 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.PaymentMethods = exports.Client = exports.Customers = exports.Cards = exports.Payments = exports.Refunds = void 0; const Client_1 = __importDefault(require("./src/structures/Client")); exports.Client = Client_1.default; const Refunds_1 = __importDefault(require("./src/structures/Refunds")); exports.Refunds = Refunds_1.default; const Payments_1 = __importDefault(require("./src/structures/Payments")); exports.Payments = Payments_1.default; const Cards_1 = __importDefault(require("./src/structures/Cards")); exports.Cards = Cards_1.default; const Customers_1 = __importDefault(require("./src/structures/Customers")); exports.Customers = Customers_1.default; const PaymentsMethods_1 = __importDefault(require("./src/structures/PaymentsMethods")); exports.PaymentMethods = PaymentsMethods_1.default; const Oauth_1 = __importDefault(require("./src/structures/Oauth")); class PerfectPago { constructor(options) { this.payments = new Payments_1.default({ accessToken: options.accessToken }); this.refunds = new Refunds_1.default({ accessToken: options.accessToken }); this.customers = new Customers_1.default({ accessToken: options.accessToken }); this.oauth = new Oauth_1.default({ accessToken: options.accessToken }); } } exports.default = PerfectPago;