From be274b5d7196fc05d0f34c695c9d5ef7d4bd6ae2 Mon Sep 17 00:00:00 2001 From: quentinnippert <77100190+quentinnippert@users.noreply.github.com> Date: Sun, 13 Aug 2023 20:10:02 +0200 Subject: [PATCH] fix: added missing iOS appAccountToken on ProductPurchase TS interface (#2506) Fixing issue #2434 Co-authored-by: Nippert --- src/types/appleSk2.ts | 2 ++ src/types/index.ts | 1 + 2 files changed, 3 insertions(+) diff --git a/src/types/appleSk2.ts b/src/types/appleSk2.ts index 7b26e9b5c..466792a1b 100644 --- a/src/types/appleSk2.ts +++ b/src/types/appleSk2.ts @@ -146,6 +146,7 @@ export const transactionSk2ToPurchaseMap = ({ purchasedQuantity, originalID, verificationResult, + appAccountToken }: TransactionSk2): Purchase => { const purchase: Purchase = { productId: productID, @@ -157,6 +158,7 @@ export const transactionSk2ToPurchaseMap = ({ originalTransactionDateIOS: originalPurchaseDate, originalTransactionIdentifierIOS: originalID, verificationResultIOS: verificationResult ?? '', + appAccountToken: appAccountToken ?? '', }; return purchase; }; diff --git a/src/types/index.ts b/src/types/index.ts index 97d43680c..ac979d885 100644 --- a/src/types/index.ts +++ b/src/types/index.ts @@ -69,6 +69,7 @@ export interface ProductPurchase { originalTransactionDateIOS?: number; originalTransactionIdentifierIOS?: string; verificationResultIOS?: string; + appAccountToken?: string; //Android productIds?: string[]; dataAndroid?: string;