mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-01-19 16:52:53 +08:00
docs(card-io): fix jsdoc
This commit is contained in:
parent
1e8626c435
commit
62241105c8
@ -1,8 +1,7 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Cordova, Plugin, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
export interface CardIOOptions {
|
export interface CardIOOptions {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Set to true to require expiry date
|
* Set to true to require expiry date
|
||||||
*/
|
*/
|
||||||
@ -82,11 +81,9 @@ export interface CardIOOptions {
|
|||||||
* Once a card image has been captured but before it has been processed, this value will determine whether to continue processing as usual.
|
* Once a card image has been captured but before it has been processed, this value will determine whether to continue processing as usual.
|
||||||
*/
|
*/
|
||||||
supressScan?: boolean;
|
supressScan?: boolean;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface CardIOResponse {
|
export interface CardIOResponse {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Card type
|
* Card type
|
||||||
*/
|
*/
|
||||||
@ -126,7 +123,6 @@ export interface CardIOResponse {
|
|||||||
* Cardholder name
|
* Cardholder name
|
||||||
*/
|
*/
|
||||||
cardholderName: string;
|
cardholderName: string;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -173,7 +169,6 @@ export interface CardIOResponse {
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CardIO extends IonicNativePlugin {
|
export class CardIO extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 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.)
|
||||||
@ -181,21 +176,26 @@ export class CardIO extends IonicNativePlugin {
|
|||||||
* @returns {Promise<boolean>}
|
* @returns {Promise<boolean>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
canScan(): Promise<boolean> { return; }
|
canScan(): Promise<boolean> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Scan a credit card with card.io.
|
* Scan a credit card with card.io.
|
||||||
* @param {CardIOOptions} options Options for configuring the plugin
|
* @param {CardIOOptions} [options] Options for configuring the plugin
|
||||||
* @returns {Promise<any>}
|
* @returns {Promise<any>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
scan(options?: CardIOOptions): Promise<CardIOResponse> { return; }
|
scan(options?: CardIOOptions): Promise<CardIOResponse> {
|
||||||
|
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.
|
||||||
* @returns {Promise<string>}
|
* @returns {Promise<string>}
|
||||||
*/
|
*/
|
||||||
@Cordova()
|
@Cordova()
|
||||||
version(): Promise<string> { return; }
|
version(): Promise<string> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user