From 6e6e3e5a10061e1ec0dd7f618863fcf7863ba7ed Mon Sep 17 00:00:00 2001 From: Max Lynch Date: Mon, 13 Sep 2021 17:13:15 -0500 Subject: [PATCH] Removed clover-go - niche --- src/@ionic-native/plugins/clover-go/index.ts | 144 ------------------- 1 file changed, 144 deletions(-) delete mode 100644 src/@ionic-native/plugins/clover-go/index.ts diff --git a/src/@ionic-native/plugins/clover-go/index.ts b/src/@ionic-native/plugins/clover-go/index.ts deleted file mode 100644 index 98c26eebe..000000000 --- a/src/@ionic-native/plugins/clover-go/index.ts +++ /dev/null @@ -1,144 +0,0 @@ -import { Injectable } from '@angular/core'; -import { - Plugin, - Cordova, - CordovaProperty, - CordovaInstance, - InstanceProperty, - IonicNativePlugin, -} from '@ionic-native/core'; -import { Observable } from 'rxjs'; - -export interface Response { - type?: string; - message?: string; - reason?: string; -} -export interface InitResponse extends Response { - merchantName?: string; -} -export interface SaleResponse extends Response { - paymentId?: string; - transactionType?: string; - entryType?: string; - cardFirst6?: string; - cardLast4?: string; -} -export interface VoidPaymentResponse extends Response { - paymentId?: string; -} - -/** - * @name Clover Go - * @description - * This plugin connect to Clover Go payment device and process payments. - * - * @usage - * ```typescript - * import { CloverGo } from '@ionic-native/clover-go/ngx'; - * - * - * constructor(private cloverGo: CloverGo) { } - * - * ... - * - * - * this.cloverGo.init(configuration) - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * this.cloverGo.connect() - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * this.cloverGo.disconnect() - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * this.cloverGo.sale(saleInfo) - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * this.cloverGo.sign(signInfo) - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * this.cloverGo.voidPayment(paymentInfo) - * .then((res: any) => console.log(res)) - * .catch((error: any) => console.error(error)); - * - * ``` - */ -@Plugin({ - pluginName: 'CloverGo', - plugin: 'cordova-plugin-clovergo', - pluginRef: 'clovergo', - repo: 'https://github.com/hotwax/cordova-plugin-clovergo', - install: 'ionic plugin add cordova-plugin-clovergo', - platforms: ['Android'], -}) -@Injectable() -export class CloverGo extends IonicNativePlugin { - /** - * This function initialises Clover Go SDK - * @param configuration {object} - * @return {Promise} - */ - @Cordova() - init(configuration: object): Promise { - return; - } - - /** - * This function connects to available clover go device - * - * @return {Promise} - */ - @Cordova() - connect(): Promise { - return; - } - - /** - * This function disconnects to available clover go device - * - * @return {Promise} - */ - @Cordova() - disconnect(): Promise { - return; - } - - /** - * This function initiate sale for Clover Go device - * @param saleInfo {object} - * @return {Promise} - */ - @Cordova() - sale(saleInfo: object): Promise { - return; - } - - /** - * This method is used to pass signature as two - * dimensional number array that represents points - * of signature on screen. - * The list is passed as signature in SignInfo object. - * @param signInfo {object} - * @return {Promise} - */ - @Cordova() - sign(signInfo: object): Promise { - return; - } - - /** - * This function void any payment done through the device - * @param saleInfo {object} - * @return {Promise} - */ - @Cordova() - voidPayment(paymentInfo: object): Promise { - return; - } -}