From ff9b500938ae58c792fa3dfbba7dcc0e723c61b9 Mon Sep 17 00:00:00 2001 From: Guille Date: Fri, 8 Jul 2016 00:43:33 +0200 Subject: [PATCH] refactor(CardIO): --- src/plugins/card-io.ts | 80 +++++++++++++++++++++--------------------- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git a/src/plugins/card-io.ts b/src/plugins/card-io.ts index d5045e8c5..5de7aaeca 100644 --- a/src/plugins/card-io.ts +++ b/src/plugins/card-io.ts @@ -1,4 +1,4 @@ -import {Plugin, Cordova} from './plugin'; +import { Cordova, Plugin } from './plugin'; /** * @name CardIO @@ -25,49 +25,49 @@ import {Plugin, Cordova} from './plugin'; * ``` */ @Plugin({ - plugin: 'https://github.com/card-io/card.io-Cordova-Plugin', - pluginRef: 'CardIO', - repo: 'https://github.com/card-io/card.io-Cordova-Plugin', - platforms: ['iOS', 'Android'] + plugin: 'https://github.com/card-io/card.io-Cordova-Plugin', + pluginRef: 'CardIO', + repo: 'https://github.com/card-io/card.io-Cordova-Plugin', + platforms: ['iOS', 'Android'] }) export class CardIO { - /** - * Check whether card scanning is currently available. (May vary by - * device, OS version, network connectivity, etc.) - * - */ - @Cordova() - static canScan(): Promise {return; } + /** + * Check whether card scanning is currently available. (May vary by + * device, OS version, network connectivity, etc.) + * + */ + @Cordova() + static canScan(): Promise { return; } - /** - * Scan a credit card with card.io. - * @param options - */ - @Cordova() - static scan(options?: CardIOOptions): Promise {return; } + /** + * Scan a credit card with card.io. + * @param options + */ + @Cordova() + static scan(options?: CardIOOptions): Promise { return; } - /** - * Retrieve the version of the card.io library. Useful when contacting support. - */ - @Cordova() - static version(): Promise {return; } + /** + * Retrieve the version of the card.io library. Useful when contacting support. + */ + @Cordova() + static version(): Promise { return; } } export interface CardIOOptions { - requireExpiry?: boolean; - requireCCV?: boolean; - requirePostalCode?: boolean; - supressManual?: boolean; - restrictPostalCodeToNumericOnly?: boolean; - keepApplicationTheme?: boolean; - requireCardholderName?: boolean; - scanInstructions?: string; - noCamera?: boolean; - scanExpiry?: boolean; - languageOrLocale?: string; - guideColor?: string; - supressConfirmation?: boolean; - hideCardIOLogo?: boolean; - useCardIOLogo?: boolean; - supressScan?: boolean; -} \ No newline at end of file + requireExpiry?: boolean; + requireCCV?: boolean; + requirePostalCode?: boolean; + supressManual?: boolean; + restrictPostalCodeToNumericOnly?: boolean; + keepApplicationTheme?: boolean; + requireCardholderName?: boolean; + scanInstructions?: string; + noCamera?: boolean; + scanExpiry?: boolean; + languageOrLocale?: string; + guideColor?: string; + supressConfirmation?: boolean; + hideCardIOLogo?: boolean; + useCardIOLogo?: boolean; + supressScan?: boolean; +}