UNPKG

flutterwave-angularjs

Version:
207 lines (201 loc) 7.91 kB
(function (global, factory) { typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common')) : typeof define === 'function' && define.amd ? define('flutterwave-angularjs', ['exports', '@angular/core', '@angular/common'], factory) : (global = global || self, factory(global['flutterwave-angularjs'] = {}, global.ng.core, global.ng.common)); }(this, (function (exports, core, common) { 'use strict'; /** * @fileoverview added by tsickle * Generated from: lib/flutterwave-angularjs.component.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ /** * @record */ function IRaveOptions() { } if (false) { /** @type {?} */ IRaveOptions.prototype.PBFPubKey; /** @type {?} */ IRaveOptions.prototype.txref; /** @type {?} */ IRaveOptions.prototype.amount; /** @type {?} */ IRaveOptions.prototype.currency; /** @type {?} */ IRaveOptions.prototype.country; /** @type {?} */ IRaveOptions.prototype.customer_email; /** @type {?} */ IRaveOptions.prototype.customer_firstname; /** @type {?} */ IRaveOptions.prototype.customer_lastname; /** @type {?} */ IRaveOptions.prototype.custom_title; /** @type {?} */ IRaveOptions.prototype.custom_description; /** @type {?} */ IRaveOptions.prototype.custom_logo; /** @type {?|undefined} */ IRaveOptions.prototype.meta; /** @type {?} */ IRaveOptions.prototype.callback; /** @type {?} */ IRaveOptions.prototype.onclose; } /** * @record */ function MyWindow() { } if (false) { /** @type {?} */ MyWindow.prototype.getpaidSetup; } var FlutterwaveAngularjsComponent = /** @class */ (function () { function FlutterwaveAngularjsComponent() { this.callback = new core.EventEmitter(); this.close = new core.EventEmitter(); } /** * @return {?} */ FlutterwaveAngularjsComponent.prototype.ngOnInit = /** * @return {?} */ function () { }; /** * @return {?} */ FlutterwaveAngularjsComponent.prototype.madePayment = /** * @return {?} */ function () { this.prepRaveOptions(); window.getpaidSetup(this.raveOptions); }; /** * @return {?} */ FlutterwaveAngularjsComponent.prototype.prepRaveOptions = /** * @return {?} */ function () { var _this = this; this.raveOptions = { PBFPubKey: this.key, txref: this.reference, amount: this.amount, customer_email: this.email, onclose: (/** * @return {?} */ function () { return _this.close.emit(); }), callback: (/** * @param {?} response * @return {?} */ function (response) { return _this.callback.emit(response); }), currency: this.currency || 'NGN', country: this.country || 'NG', customer_firstname: this.customer_firstname || '', customer_lastname: this.customer_lastname || '', custom_title: this.custom_title || '', custom_description: this.custom_description || '', custom_logo: this.custom_logo || '', meta: this.meta || {} }; }; FlutterwaveAngularjsComponent.decorators = [ { type: core.Component, args: [{ selector: 'rave-pay-button', template: "<button\n class=\"paystack-pay-button\"\n [ngStyle]=\"style\"\n [ngClass]=\"className\"\n (click)=\"madePayment()\">\n {{text || 'Pay'}}\n</button>", styles: ["h1{color:red}"] }] } ]; /** @nocollapse */ FlutterwaveAngularjsComponent.ctorParameters = function () { return []; }; FlutterwaveAngularjsComponent.propDecorators = { text: [{ type: core.Input }], style: [{ type: core.Input }], className: [{ type: core.Input }], callback: [{ type: core.Output }], close: [{ type: core.Output }], key: [{ type: core.Input }], email: [{ type: core.Input }], amount: [{ type: core.Input }], reference: [{ type: core.Input }], meta: [{ type: core.Input }], currency: [{ type: core.Input }], country: [{ type: core.Input }], customer_firstname: [{ type: core.Input }], customer_lastname: [{ type: core.Input }], custom_title: [{ type: core.Input }], custom_description: [{ type: core.Input }], custom_logo: [{ type: core.Input }] }; return FlutterwaveAngularjsComponent; }()); if (false) { /** @type {?} */ FlutterwaveAngularjsComponent.prototype.text; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.style; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.className; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.callback; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.close; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.key; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.email; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.amount; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.reference; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.meta; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.currency; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.country; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.customer_firstname; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.customer_lastname; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.custom_title; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.custom_description; /** @type {?} */ FlutterwaveAngularjsComponent.prototype.custom_logo; /** * @type {?} * @private */ FlutterwaveAngularjsComponent.prototype.raveOptions; } /** * @fileoverview added by tsickle * Generated from: lib/flutterwave-angularjs.module.ts * @suppress {checkTypes,constantProperty,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc */ var FlutterwaveAngularjsModule = /** @class */ (function () { function FlutterwaveAngularjsModule() { } FlutterwaveAngularjsModule.decorators = [ { type: core.NgModule, args: [{ declarations: [FlutterwaveAngularjsComponent], imports: [ common.CommonModule ], exports: [FlutterwaveAngularjsComponent] },] } ]; return FlutterwaveAngularjsModule; }()); exports.FlutterwaveAngularjsModule = FlutterwaveAngularjsModule; exports.ɵa = FlutterwaveAngularjsComponent; Object.defineProperty(exports, '__esModule', { value: true }); }))); //# sourceMappingURL=flutterwave-angularjs.umd.js.map