UNPKG

zips-typescript-sdk

Version:

TypeScript SDK for ZIPS Payment Gateway - Complete payment solution for server-side applications

35 lines 1.15 kB
"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); const payment_1 = __importDefault(require("./modules/payment")); const transaction_1 = __importDefault(require("./modules/transaction")); class Zips { constructor(apikey) { this._payments = null; // private _customers: CustomersModule | null = null; this._transactions = null; this.apiKey = apikey; } get payments() { if (!this._payments) { this._payments = new payment_1.default(this.apiKey); } return this._payments; } // get customers(): CustomersModule { // if (!this._customers) { // this._customers = new CustomersModule(this.apiKey); // } // return this._customers; // } get transactions() { if (!this._transactions) { this._transactions = new transaction_1.default(this.apiKey); } return this._transactions; } } exports.default = Zips; //# sourceMappingURL=root.js.map