@revenuecat/purchases-js 1.28.0 → 1.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -315,6 +315,13 @@ export declare interface FlagsConfig {
315
315
  collectAnalyticsEvents?: boolean;
316
316
  /* Excluded from this release type: rcSource */
317
317
  /* Excluded from this release type: forceEnableWalletMethods */
318
+ /**
319
+ * Determines when the store module (e.g. Stripe) is loaded.
320
+ * - `"configuration"`: Preloaded when the SDK is configured (default).
321
+ * - `"purchase_start"`: Loaded on demand when a purchase is started.
322
+ * @defaultValue "configuration"
323
+ */
324
+ storeLoadTime?: StoreLoadTime;
318
325
  }
319
326
 
320
327
  /**
@@ -1333,6 +1340,7 @@ export declare class Purchases {
1333
1340
  * @throws {@link PurchasesError} if there is an error while performing the purchase. If the {@link PurchasesError.errorCode} is {@link ErrorCode.UserCancelledError}, the user cancelled the purchase.
1334
1341
  */
1335
1342
  purchase(params: PurchaseParams): Promise<PurchaseResult>;
1343
+ private performStripePurchase;
1336
1344
  private performWebBillingPurchase;
1337
1345
  private performPaddlePurchase;
1338
1346
  /**
@@ -1759,6 +1767,14 @@ export declare class Purchases {
1759
1767
  */
1760
1768
  export declare type Store = "app_store" | "mac_app_store" | "play_store" | "amazon" | "stripe" | "rc_billing" | "promotional" | "paddle" | "test_store" | "unknown";
1761
1769
 
1770
+ /**
1771
+ * Determines when the store module (e.g. Stripe) is loaded.
1772
+ * - `"configuration"`: The store module is preloaded when the SDK is configured.
1773
+ * - `"purchase_start"`: The store module is loaded on demand when a purchase is started.
1774
+ * @public
1775
+ */
1776
+ export declare type StoreLoadTime = "configuration" | "purchase_start";
1777
+
1762
1778
  /**
1763
1779
  * Represents a transaction made in the store.
1764
1780
  * @public