UNPKG

@calf/dotypay

Version:

Dotypay module of Calf framework.

48 lines (47 loc) 1.38 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Dotypay = void 0; // Services var extensions_service_1 = require("../services/extensions.service"); var transaction_service_1 = require("../services/transaction.service"); /** * Dotypay * @description Dotypay client */ var Dotypay = /** @class */ (function () { function Dotypay() { } Object.defineProperty(Dotypay, "Transaction", { /** * Transaction * @description Service to handle transactions */ get: function () { return this.transactionService; }, enumerable: false, configurable: true }); Object.defineProperty(Dotypay, "Extensions", { /** * Extensions * @description Service to handle extensions */ get: function () { return this.extensionsService; }, enumerable: false, configurable: true }); /** * Initialize * @param config */ Dotypay.initialize = function (config) { // Create services this.transactionService = new transaction_service_1.TransactionService(config); this.extensionsService = new extensions_service_1.ExtensionsService(config); }; return Dotypay; }()); exports.Dotypay = Dotypay;