mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-24 14:11:18 +08:00
refactor(CardIO):
This commit is contained in:
parent
8e91f2128f
commit
ff9b500938
@ -1,4 +1,4 @@
|
|||||||
import {Plugin, Cordova} from './plugin';
|
import { Cordova, Plugin } from './plugin';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name CardIO
|
* @name CardIO
|
||||||
@ -25,49 +25,49 @@ import {Plugin, Cordova} from './plugin';
|
|||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
plugin: 'https://github.com/card-io/card.io-Cordova-Plugin',
|
plugin: 'https://github.com/card-io/card.io-Cordova-Plugin',
|
||||||
pluginRef: 'CardIO',
|
pluginRef: 'CardIO',
|
||||||
repo: 'https://github.com/card-io/card.io-Cordova-Plugin',
|
repo: 'https://github.com/card-io/card.io-Cordova-Plugin',
|
||||||
platforms: ['iOS', 'Android']
|
platforms: ['iOS', 'Android']
|
||||||
})
|
})
|
||||||
export class CardIO {
|
export class CardIO {
|
||||||
/**
|
/**
|
||||||
* Check whether card scanning is currently available. (May vary by
|
* Check whether card scanning is currently available. (May vary by
|
||||||
* device, OS version, network connectivity, etc.)
|
* device, OS version, network connectivity, etc.)
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static canScan(): Promise<boolean> {return; }
|
static canScan(): Promise<boolean> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scan a credit card with card.io.
|
* Scan a credit card with card.io.
|
||||||
* @param options
|
* @param options
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static scan(options?: CardIOOptions): Promise<any> {return; }
|
static scan(options?: CardIOOptions): Promise<any> { return; }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Retrieve the version of the card.io library. Useful when contacting support.
|
* Retrieve the version of the card.io library. Useful when contacting support.
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
static version(): Promise<string> {return; }
|
static version(): Promise<string> { return; }
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CardIOOptions {
|
export interface CardIOOptions {
|
||||||
requireExpiry?: boolean;
|
requireExpiry?: boolean;
|
||||||
requireCCV?: boolean;
|
requireCCV?: boolean;
|
||||||
requirePostalCode?: boolean;
|
requirePostalCode?: boolean;
|
||||||
supressManual?: boolean;
|
supressManual?: boolean;
|
||||||
restrictPostalCodeToNumericOnly?: boolean;
|
restrictPostalCodeToNumericOnly?: boolean;
|
||||||
keepApplicationTheme?: boolean;
|
keepApplicationTheme?: boolean;
|
||||||
requireCardholderName?: boolean;
|
requireCardholderName?: boolean;
|
||||||
scanInstructions?: string;
|
scanInstructions?: string;
|
||||||
noCamera?: boolean;
|
noCamera?: boolean;
|
||||||
scanExpiry?: boolean;
|
scanExpiry?: boolean;
|
||||||
languageOrLocale?: string;
|
languageOrLocale?: string;
|
||||||
guideColor?: string;
|
guideColor?: string;
|
||||||
supressConfirmation?: boolean;
|
supressConfirmation?: boolean;
|
||||||
hideCardIOLogo?: boolean;
|
hideCardIOLogo?: boolean;
|
||||||
useCardIOLogo?: boolean;
|
useCardIOLogo?: boolean;
|
||||||
supressScan?: boolean;
|
supressScan?: boolean;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user