mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-21 00:23:00 +08:00
feat(card-io): add typing for response
This commit is contained in:
parent
e6700a360e
commit
2e82320b4c
@ -45,7 +45,7 @@ export class CardIO {
|
||||
* @param {CardIOOptions} options Options for configuring the plugin
|
||||
*/
|
||||
@Cordova()
|
||||
static scan(options?: CardIOOptions): Promise<any> { return; }
|
||||
static scan(options?: CardIOOptions): Promise<CardIOResponse> { return; }
|
||||
|
||||
/**
|
||||
* Retrieve the version of the card.io library. Useful when contacting support.
|
||||
@ -73,3 +73,14 @@ export interface CardIOOptions {
|
||||
useCardIOLogo?: boolean;
|
||||
supressScan?: boolean;
|
||||
}
|
||||
|
||||
export interface CardIOResponse {
|
||||
cardType: string;
|
||||
redactedCardNumber: string;
|
||||
cardNumber: string;
|
||||
expiryMonth: number;
|
||||
expiryYear: number;
|
||||
cvv: string;
|
||||
postalCode: string;
|
||||
cardholderName: string;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user