Interface Purchase

Represents a purchased product

interface Purchase {
    amountMicros: number;
    currency: string;
    expirationDate: string;
    isTrialPeriod: boolean;
    lastRenewalDate: string;
    platform: "stripe";
    productId: string;
    purchaseDate: string;
    purchaseId: string;
    renewalIntent: "Renew" | "Cancel";
    transactionId: string;
}

Properties

amountMicros: number

Price in micros (1/1,000,000 of the currency unit)

currency: string

Currency code (e.g., 'USD', 'EUR')

expirationDate: string

Date of the expiration

isTrialPeriod: boolean

Whether the purchase is a trial period

lastRenewalDate: string

Date of the last renewal

platform: "stripe"

Platform identifier (e.g., 'stripe')

productId: string

Unique identifier for the product

purchaseDate: string

Date of the purchase

purchaseId: string

Unique identifier for the purchase

renewalIntent: "Renew" | "Cancel"

Intent of the renewal

transactionId: string

Unique identifier for the transaction