| Client | The primary interface for interacting with the commerce system within a Lens. Once built and configured using the CommerceKitModule, its methods are used to perform all key commerce operations. This includes initiating connections to the payment service, querying details about products, launching purchase flows for users, checking a user's purchase history, and acknowledging completed purchases. |
| ClientOptions | Specifies the configuration for creating a commerce client. It defines important behaviors and callback functions, such as the onPurchasesUpdated, which is essential for receiving real-time notifications about the status of user purchases. |
| Price | Represents the price of a product in a Lens. |
| PricingPhase | Describes one phase of a subscription offer's pricing schedule, such as a free trial, an introductory price, or the regular recurring price. Phases apply in the order they are provided. |
| Product | Contains all the essential details about an item available for purchase in a Lens. When products are queried, these objects are received, which include information like the product's unique ID, its type (e.g., a non-consumable), its display name, a description, and its price. This information is crucial for presenting products to users in a Lens's store or interface. |
| Purchase | Represents a completed or pending transaction for a product. When a user buys something, or when their purchase history is retrieved, Purchase objects are received. These objects contain important details like the unique ID of the purchase, the ID of the product that was bought, when the purchase occurred, and its current state (e.g., purchased, pending, or invalidated). |
| PurchaseResult | Provides an immediate summary of the outcome of a purchase attempt. It indicates whether the transaction was successful, canceled by the user, or if an error occurred. This is the first place to look to understand the immediate result of a purchase flow. |
| SubscriptionOfferDetails | Describes a specific offer for a subscription product, such as a base plan or a promotional plan with a trial. A single subscription product can expose multiple offers through Product#subscriptionOfferDetails. |