@revenuecat/purchases-js 1.11.0 → 1.12.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.
- package/dist/Purchases.es.d.ts +23 -0
- package/dist/Purchases.es.js +4294 -3885
- package/dist/Purchases.umd.js +47 -43
- package/package.json +1 -1
- package/dist/index-DuKHkfLn.js +0 -92
package/dist/Purchases.es.d.ts
CHANGED
|
@@ -662,6 +662,7 @@ export declare interface Product {
|
|
|
662
662
|
/**
|
|
663
663
|
* Price of the product. This will match the default option's base phase price
|
|
664
664
|
* in subscriptions or the price in non-subscriptions.
|
|
665
|
+
* @deprecated Use {@link Product.price}.
|
|
665
666
|
*/
|
|
666
667
|
readonly currentPrice: Price;
|
|
667
668
|
/**
|
|
@@ -707,6 +708,28 @@ export declare interface Product {
|
|
|
707
708
|
* Null in the case of subscriptions.
|
|
708
709
|
*/
|
|
709
710
|
readonly defaultNonSubscriptionOption: NonSubscriptionOption | null;
|
|
711
|
+
/**
|
|
712
|
+
* Base price (after any offers) for subscriptions, price for non-subscriptions.
|
|
713
|
+
*/
|
|
714
|
+
readonly price: Price;
|
|
715
|
+
/**
|
|
716
|
+
* Base subscription duration.
|
|
717
|
+
* Null for non-subscriptions.
|
|
718
|
+
* Convenience accessor for the default subscription option's base phase period.
|
|
719
|
+
*/
|
|
720
|
+
readonly period: Period | null;
|
|
721
|
+
/**
|
|
722
|
+
* Free trial phase information for subscriptions.
|
|
723
|
+
* Null for non-subscriptions or when no free trial is available.
|
|
724
|
+
* Convenience accessor for defaultSubscriptionOption?.trial.
|
|
725
|
+
*/
|
|
726
|
+
readonly freeTrialPhase: PricingPhase | null;
|
|
727
|
+
/**
|
|
728
|
+
* Introductory price phase information for subscriptions.
|
|
729
|
+
* Null for non-subscriptions or when no introductory price is available.
|
|
730
|
+
* Convenience accessor for defaultSubscriptionOption?.introPrice.
|
|
731
|
+
*/
|
|
732
|
+
readonly introPricePhase: PricingPhase | null;
|
|
710
733
|
}
|
|
711
734
|
|
|
712
735
|
/**
|