@revenuecat/purchases-js 1.60.1 → 1.62.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.
@@ -21,6 +21,7 @@ declare enum BackendErrorCode {
21
21
  BackendProductIdForGoogleReceiptNotProvided = 7106,
22
22
  BackendInvalidPlayStoreCredentials = 7107,
23
23
  BackendInternalServerError = 7110,
24
+ BackendTooManyRequests = 7114,
24
25
  BackendEmptyAppUserId = 7220,
25
26
  BackendInvalidAuthToken = 7224,
26
27
  BackendInvalidAPIKey = 7225,
@@ -45,7 +46,8 @@ declare enum BackendErrorCode {
45
46
  BackendGatewaySetupErrorInvalidTaxOriginAddress = 7899,
46
47
  BackendGatewaySetupErrorMissingRequiredPermission = 7900,
47
48
  BackendGatewaySetupErrorSandboxModeOnly = 7901,
48
- BackendInvalidPaddleAPIKey = 7967
49
+ BackendInvalidPaddleAPIKey = 7967,
50
+ BackendQuickPurchaseUnavailable = 8172
49
51
  }
50
52
 
51
53
  /**
@@ -963,6 +965,8 @@ export declare interface PlatformInfo {
963
965
  readonly version: string;
964
966
  }
965
967
 
968
+ /* Excluded from this release type: PrepareQuickPurchaseParams */
969
+
966
970
  /**
967
971
  * Contains data about the context in which an offering was presented.
968
972
  * @public
@@ -1521,6 +1525,7 @@ export declare interface PurchaseParams {
1521
1525
  * for example from a URL parameter.
1522
1526
  */
1523
1527
  discountCode?: string;
1528
+ /* Excluded from this release type: discountId */
1524
1529
  /**
1525
1530
  * @experimental
1526
1531
  * Called when the applied discount code changes in the Web Billing checkout.
@@ -1544,6 +1549,7 @@ export declare interface PurchaseParams {
1544
1549
  */
1545
1550
  termsAndConditionsUrl?: string;
1546
1551
  /* Excluded from this release type: productChangeInfo */
1552
+ /* Excluded from this release type: tryWithApplePay */
1547
1553
  }
1548
1554
 
1549
1555
  /* Excluded from this release type: PurchaseResponseAttributionMetadata */
@@ -1599,6 +1605,8 @@ export declare class Purchases {
1599
1605
  /* Excluded from this release type: _platformInfo */
1600
1606
  /* Excluded from this release type: inMemoryCache */
1601
1607
  /* Excluded from this release type: cachedCurrentOffering */
1608
+ /* Excluded from this release type: stripeBillingQuickPurchaseState */
1609
+ /* Excluded from this release type: stripeBillingQuickPurchasePreparation */
1602
1610
  /* Excluded from this release type: instance */
1603
1611
  /**
1604
1612
  * Set the log level. Logs of the given level and below will be printed
@@ -1622,6 +1630,7 @@ export declare class Purchases {
1622
1630
  /* Excluded from this release type: buildInfoPerPackage */
1623
1631
  /* Excluded from this release type: buildPaywallContextPackages */
1624
1632
  /* Excluded from this release type: getPlatformInfo */
1633
+ /* Excluded from this release type: applyPaddleDiscountsToOffering */
1625
1634
  /**
1626
1635
  * Get the singleton instance of Purchases. It's preferred to use the instance
1627
1636
  * obtained from the `configure` method when possible.
@@ -1708,6 +1717,9 @@ export declare class Purchases {
1708
1717
  * @see {@link Purchases.getCustomerInfo}
1709
1718
  */
1710
1719
  isEntitledTo(entitlementIdentifier: string): Promise<boolean>;
1720
+ /* Excluded from this release type: prepareForQuickPurchases */
1721
+ /* Excluded from this release type: prepareStripeBillingQuickPurchase */
1722
+ /* Excluded from this release type: resolveStripeBillingQuickPurchaseContext */
1711
1723
  /**
1712
1724
  * Method to perform a purchase for a given package. You can obtain the
1713
1725
  * package from {@link Purchases.getOfferings}. This method will present the purchase
@@ -1746,6 +1758,8 @@ export declare class Purchases {
1746
1758
  * @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.
1747
1759
  */
1748
1760
  purchase(params: PurchaseParams): Promise<PurchaseResult>;
1761
+ /* Excluded from this release type: tryPreparedStripeBillingQuickPurchase */
1762
+ /* Excluded from this release type: purchaseAfterLoadingResources */
1749
1763
  private performStripePurchase;
1750
1764
  private performWebBillingPurchase;
1751
1765
  private performPaddlePurchase;
@@ -1984,6 +1998,8 @@ export declare class Purchases {
1984
1998
  readonly backendErrorCode?: number;
1985
1999
  }
1986
2000
 
2001
+ /* Excluded from this release type: QuickPurchasePreparationResult */
2002
+
1987
2003
  /**
1988
2004
  * This object gives you access to the purchase redemption data when
1989
2005
  * the purchase can be redeemed to a mobile user, like in the case of anonymous users.