@revenuecat/purchases-js 1.52.0 → 1.52.2
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.
- package/dist/Purchases.es.d.ts +32 -7
- package/dist/Purchases.es.js +9145 -8389
- package/dist/Purchases.umd.js +81 -71
- package/package.json +1 -1
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -529,7 +529,27 @@ declare enum LocalizationKeys {
|
|
|
529
529
|
PriceUpdateTitle = "price_update.title",
|
|
530
530
|
PriceUpdateBaseMessage = "price_update.base_message",
|
|
531
531
|
PriceUpdateTrialMessage = "price_update.trial_message",
|
|
532
|
-
ApplePayFreeTrial = "apple_pay.free_trial"
|
|
532
|
+
ApplePayFreeTrial = "apple_pay.free_trial",
|
|
533
|
+
UpgradeProductInfoChangeSubscriptionTitle = "upgrade_product_info.change_subscription_title",
|
|
534
|
+
UpgradeProductInfoUpgradeSubscriptionTitle = "upgrade_product_info.upgrade_subscription_title",
|
|
535
|
+
UpgradeProductInfoTaxEstimated = "upgrade_product_info.tax_estimated",
|
|
536
|
+
UpgradeProductInfoEstimatedAtNextRenewal = "upgrade_product_info.estimated_at_next_renewal",
|
|
537
|
+
UpgradeProductInfoCalculatedLater = "upgrade_product_info.calculated_later",
|
|
538
|
+
PlanCardCurrent = "plan_card.current",
|
|
539
|
+
PlanCardNew = "plan_card.new",
|
|
540
|
+
RefundForUnusedTimeTitle = "refund_for_unused_time.title",
|
|
541
|
+
RefundForUnusedTimeMessage = "refund_for_unused_time.message",
|
|
542
|
+
UpgradeConfirmPageTitle = "upgrade_confirm_page.title",
|
|
543
|
+
UpgradeConfirmPageSubtitleImmediate = "upgrade_confirm_page.subtitle_immediate",
|
|
544
|
+
UpgradeConfirmPageSubtitleDeferred = "upgrade_confirm_page.subtitle_deferred",
|
|
545
|
+
UpgradeConfirmPageConfirming = "upgrade_confirm_page.confirming",
|
|
546
|
+
UpgradeConfirmPageConfirmSchedule = "upgrade_confirm_page.confirm_schedule",
|
|
547
|
+
UpgradeConfirmPageConfirmUpgrade = "upgrade_confirm_page.confirm_upgrade",
|
|
548
|
+
UpgradeConfirmPageConfirmUpgradeWithPrice = "upgrade_confirm_page.confirm_upgrade_with_price",
|
|
549
|
+
UpgradeConfirmPageOnFile = "upgrade_confirm_page.on_file",
|
|
550
|
+
UpgradeConfirmPageEmail = "upgrade_confirm_page.email",
|
|
551
|
+
UpgradeConfirmPagePaymentMethod = "upgrade_confirm_page.payment_method",
|
|
552
|
+
UpgradeConfirmPageBillingAddress = "upgrade_confirm_page.billing_address"
|
|
533
553
|
}
|
|
534
554
|
|
|
535
555
|
/**
|
|
@@ -1078,6 +1098,7 @@ export declare interface PresentPaywallParams {
|
|
|
1078
1098
|
* ```
|
|
1079
1099
|
*/
|
|
1080
1100
|
readonly customVariables?: CustomVariables;
|
|
1101
|
+
/* Excluded from this release type: productChangeInfo */
|
|
1081
1102
|
}
|
|
1082
1103
|
|
|
1083
1104
|
/**
|
|
@@ -1535,7 +1556,9 @@ export declare class Purchases {
|
|
|
1535
1556
|
* @param params - The parameters object to customise the offerings fetch. Check {@link GetOfferingsParams}
|
|
1536
1557
|
*/
|
|
1537
1558
|
getCurrentOfferingForPlacement(placementIdentifier: string, params?: GetOfferingsParams): Promise<Offering | null>;
|
|
1559
|
+
private findOfferingById;
|
|
1538
1560
|
private getAllOfferings;
|
|
1561
|
+
private fetchProductsForOfferings;
|
|
1539
1562
|
/**
|
|
1540
1563
|
* Convenience method to check whether a user is entitled to a specific
|
|
1541
1564
|
* entitlement. This will use {@link Purchases.getCustomerInfo} under the hood.
|
|
@@ -1573,8 +1596,10 @@ export declare class Purchases {
|
|
|
1573
1596
|
* form on your site, using the given HTML element as the mount point, if
|
|
1574
1597
|
* provided, or as a modal if not.
|
|
1575
1598
|
*
|
|
1576
|
-
* When {@link PurchaseParams.productChangeInfo} is set
|
|
1577
|
-
* checkout
|
|
1599
|
+
* When {@link PurchaseParams.productChangeInfo} is set with a subscriber token,
|
|
1600
|
+
* checkout starts in product-change mode: if the backend can change the
|
|
1601
|
+
* existing subscription, an upgrade-confirm page is shown; otherwise the
|
|
1602
|
+
* same checkout session continues as a normal purchase.
|
|
1578
1603
|
*
|
|
1579
1604
|
* @param params - The parameters object to customise the purchase flow. Check {@link PurchaseParams}
|
|
1580
1605
|
* @returns a Promise for the customer and redemption info after the purchase is completed successfully.
|
|
@@ -1637,11 +1662,11 @@ export declare class Purchases {
|
|
|
1637
1662
|
*/
|
|
1638
1663
|
identifyUser(appUserId: string): Promise<IdentifyResult>;
|
|
1639
1664
|
/**
|
|
1640
|
-
*
|
|
1641
|
-
*
|
|
1642
|
-
*
|
|
1665
|
+
* Resolves {@link PurchaseParams.productChangeInfo} into the product-change
|
|
1666
|
+
* context passed to the checkout UI, or undefined when the purchase should
|
|
1667
|
+
* proceed as a normal purchase (no info, no token, or non-Web Billing key).
|
|
1643
1668
|
*/
|
|
1644
|
-
private
|
|
1669
|
+
private resolveProductChange;
|
|
1645
1670
|
/**
|
|
1646
1671
|
* Rejects anything shaped like a RevenueCat API key so a secret or public
|
|
1647
1672
|
* key is never sent (or exposed) where a subscriber token belongs.
|