@revenuecat/purchases-js 1.28.0 → 1.29.1

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.
@@ -2,6 +2,7 @@ import { CustomVariables } from '@revenuecat/purchases-ui-js';
2
2
  import { CustomVariableValue } from '@revenuecat/purchases-ui-js';
3
3
  import { PaywallData } from '@revenuecat/purchases-ui-js';
4
4
  import { UIConfig } from '@revenuecat/purchases-ui-js';
5
+ import { WalletButtonRender } from '@revenuecat/purchases-ui-js';
5
6
 
6
7
  declare enum BackendErrorCode {
7
8
  BackendInvalidPlatform = 7000,
@@ -315,6 +316,13 @@ export declare interface FlagsConfig {
315
316
  collectAnalyticsEvents?: boolean;
316
317
  /* Excluded from this release type: rcSource */
317
318
  /* Excluded from this release type: forceEnableWalletMethods */
319
+ /**
320
+ * Determines when the store module (e.g. Stripe) is loaded.
321
+ * - `"configuration"`: Preloaded when the SDK is configured (default).
322
+ * - `"purchase_start"`: Loaded on demand when a purchase is started.
323
+ * @defaultValue "configuration"
324
+ */
325
+ storeLoadTime?: StoreLoadTime;
318
326
  }
319
327
 
320
328
  /**
@@ -1323,6 +1331,7 @@ export declare class Purchases {
1323
1331
  */
1324
1332
  purchasePackage(rcPackage: Package, customerEmail?: string, htmlTarget?: HTMLElement): Promise<PurchaseResult>;
1325
1333
  /* Excluded from this release type: presentExpressPurchaseButton */
1334
+ /* Excluded from this release type: getWalletButtonRender */
1326
1335
  /**
1327
1336
  * Method to perform a purchase for a given package. You can obtain the
1328
1337
  * package from {@link Purchases.getOfferings}. This method will present the purchase
@@ -1333,6 +1342,7 @@ export declare class Purchases {
1333
1342
  * @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
1343
  */
1335
1344
  purchase(params: PurchaseParams): Promise<PurchaseResult>;
1345
+ private performStripePurchase;
1336
1346
  private performWebBillingPurchase;
1337
1347
  private performPaddlePurchase;
1338
1348
  /**
@@ -1759,6 +1769,14 @@ export declare class Purchases {
1759
1769
  */
1760
1770
  export declare type Store = "app_store" | "mac_app_store" | "play_store" | "amazon" | "stripe" | "rc_billing" | "promotional" | "paddle" | "test_store" | "unknown";
1761
1771
 
1772
+ /**
1773
+ * Determines when the store module (e.g. Stripe) is loaded.
1774
+ * - `"configuration"`: The store module is preloaded when the SDK is configured.
1775
+ * - `"purchase_start"`: The store module is loaded on demand when a purchase is started.
1776
+ * @public
1777
+ */
1778
+ export declare type StoreLoadTime = "configuration" | "purchase_start";
1779
+
1762
1780
  /**
1763
1781
  * Represents a transaction made in the store.
1764
1782
  * @public