UNPKG

react-native-iap

Version:
41 lines (38 loc) 979 B
export interface UserDataAmazon { userIdAmazon?: string; userMarketplaceAmazon?: string; userJsonAmazon?: string; } export interface ProductPurchaseAmazon extends UserDataAmazon { isCanceledAmazon?: boolean; } /** * From: https://developer.amazon.com/es/docs/in-app-purchasing/iap-rvs-examples.html */ export type ReceiptType = { autoRenewing: boolean; betaProduct: boolean; cancelDate: number | null; cancelReason: string; deferredDate: number | null; deferredSku: number | null; freeTrialEndDate: number; gracePeriodEndDate: number; parentProductId: string; productId: string; productType: string; purchaseDate: number; quantity: number; receiptId: string; renewalDate: number; term: string; termSku: string; testTransaction: boolean; } & Record<string, unknown>; export type AmazonLicensingStatus = | 'LICENSED' | 'NOT_LICENSED' | 'EXPIRED' | 'ERROR_VERIFICATION' | 'ERROR_INVALID_LICENSING_KEYS' | 'UNKNOWN_ERROR';