From 2e82320b4c408b5ab358e297aaa2c62c6b1486b7 Mon Sep 17 00:00:00 2001 From: Ibby Hadeed Date: Thu, 1 Dec 2016 18:45:02 -0500 Subject: [PATCH] feat(card-io): add typing for response --- src/plugins/card-io.ts | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/plugins/card-io.ts b/src/plugins/card-io.ts index e38e2b878..fec7fe8f7 100644 --- a/src/plugins/card-io.ts +++ b/src/plugins/card-io.ts @@ -45,7 +45,7 @@ export class CardIO { * @param {CardIOOptions} options Options for configuring the plugin */ @Cordova() - static scan(options?: CardIOOptions): Promise { return; } + static scan(options?: CardIOOptions): Promise { 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; +}