@@ -8,18 +8,18 @@ import PurchaseUpdateModel from './PurchaseUpdateModel';
88import SubscriptionPeriod from './SubscriptionPeriod' ;
99
1010class Product {
11- qonversionID : string ;
12- storeID : string | null ;
11+ qonversionId : string ;
12+ storeId : string | null ;
1313
1414 /**
1515 * Identifier of the base plan for Google product.
1616 */
17- basePlanID : string | null ;
17+ basePlanId : string | null ;
1818
1919 /**
2020 * Google Play Store details of this product.
2121 * Android only. Null for iOS, or if the product was not found.
22- * Doesn't take into account {@link basePlanID }.
22+ * Doesn't take into account {@link basePlanId }.
2323 * @deprecated Consider using {@link storeDetails} instead.
2424 */
2525 skuDetails : SkuDetails | null ;
@@ -39,7 +39,7 @@ class Product {
3939 offeringId ?: string | null ;
4040
4141 /**
42- * For Android - the subscription base plan duration. If the {@link basePlanID } is not specified,
42+ * For Android - the subscription base plan duration. If the {@link basePlanId } is not specified,
4343 * the duration is calculated using the deprecated {@link skuDetails}.
4444 * For iOS - the duration of the {@link skProduct}.
4545 * Null, if it's not a subscription product or the product was not found in the store.
@@ -57,7 +57,7 @@ class Product {
5757 /**
5858 * The calculated type of this product based on the store information.
5959 * On Android uses deprecated {@link skuDetails} for the old subscription products
60- * where {@link basePlanID } is not specified, and {@link storeDetails} for all the other products.
60+ * where {@link basePlanId } is not specified, and {@link storeDetails} for all the other products.
6161 * On iOS uses {@link skProduct} information.
6262 */
6363 type : ProductType ;
@@ -74,9 +74,9 @@ class Product {
7474 prettyIntroductoryPrice ?: string ;
7575
7676 constructor (
77- qonversionID : string ,
78- storeID : string ,
79- basePlanID : string | null ,
77+ qonversionId : string ,
78+ storeId : string ,
79+ basePlanId : string | null ,
8080 skuDetails : SkuDetails | null ,
8181 storeDetails : ProductStoreDetails | null ,
8282 skProduct : SKProduct | null ,
@@ -91,9 +91,9 @@ class Product {
9191 storeDescription : string | undefined ,
9292 prettyIntroductoryPrice : string | undefined ,
9393 ) {
94- this . qonversionID = qonversionID ;
95- this . storeID = storeID ;
96- this . basePlanID = basePlanID ;
94+ this . qonversionId = qonversionId ;
95+ this . storeId = storeId ;
96+ this . basePlanId = basePlanId ;
9797 this . skuDetails = skuDetails ;
9898 this . storeDetails = storeDetails ;
9999 this . skProduct = skProduct ;
@@ -120,7 +120,7 @@ class Product {
120120 * @returns purchase model to pass to the purchase method.
121121 */
122122 toPurchaseModel ( offerId : string | null = null ) : PurchaseModel {
123- return new PurchaseModel ( this . qonversionID , offerId ) ;
123+ return new PurchaseModel ( this . qonversionId , offerId ) ;
124124 }
125125
126126 /**
@@ -152,7 +152,7 @@ class Product {
152152 oldProductId : string ,
153153 updatePolicy : PurchaseUpdatePolicy | null = null
154154 ) : PurchaseUpdateModel {
155- return new PurchaseUpdateModel ( this . qonversionID , oldProductId , updatePolicy ) ;
155+ return new PurchaseUpdateModel ( this . qonversionId , oldProductId , updatePolicy ) ;
156156 }
157157}
158158
0 commit comments