react-native-purchases icon indicating copy to clipboard operation
react-native-purchases copied to clipboard

PurchasesStoreTransaction type missing purchaseDateMillis, revenueCatId

Open olofholmlund opened this issue 2 years ago • 3 comments

Hello!

The SDK returns purchaseDateMillis and revenueCatId in the nonSubscriptionPurchases property of the CustomerInfo object. However, these are not included in the typescript type.

https://github.com/RevenueCat/react-native-purchases/blob/fd8f869d91f99858da58b8e98c45e31add01ba7c/src/customerInfo.ts#L143-L156

olofholmlund avatar Jun 27 '23 13:06 olofholmlund

👀 We've just linked this issue to our internal tracker and notified the team. Thank you for reporting, we're checking this out!

RCGitBot avatar Jun 27 '23 13:06 RCGitBot

Hello @olofholmlund!

This is intentional as we recommend using transactionIdentifier and purchaseDate. Is there any use case you want to implement not covered by the exposed fields?

MarkVillacampa avatar Jun 27 '23 18:06 MarkVillacampa

Hi @MarkVillacampa !

Ok I see, no I could solve it using purchaseDate instead. I also noticed that PurchasesStoreProduct-interface is missing productType prop, is this also intentional?

olofholmlund avatar Jun 28 '23 05:06 olofholmlund