Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PurchasesStoreTransaction type missing purchaseDateMillis, revenueCatId #674

Open
olofholmlund opened this issue Jun 27, 2023 · 3 comments
Labels
bug Something isn't working

Comments

@olofholmlund
Copy link

Hello!

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

export interface PurchasesStoreTransaction {
/**
* Id of the transaction.
*/
transactionIdentifier: string;
/**
* Product Id associated with the transaction.
*/
productIdentifier: string;
/**
* Purchase date of the transaction in ISO 8601 format.
*/
purchaseDate: string;
}

@olofholmlund olofholmlund added the bug Something isn't working label Jun 27, 2023
@RCGitBot
Copy link
Contributor

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

@MarkVillacampa
Copy link
Member

MarkVillacampa commented Jun 27, 2023

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?

@olofholmlund
Copy link
Author

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants