Skip to content

Commit

Permalink
feat(card-io): add typing for response
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed Dec 1, 2016
1 parent e6700a3 commit 2e82320
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/plugins/card-io.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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;
}

0 comments on commit 2e82320

Please sign in to comment.