Interface Purchase

Represents a purchased product

Hierarchy

  • Purchase

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

Generated using TypeDoc