@revenuecat/purchases-capacitor 7.5.7 → 7.5.9

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/README.md CHANGED
@@ -1065,6 +1065,8 @@ Holds parameters to initialize the SDK.
1065
1065
 
1066
1066
  #### CustomerInfo
1067
1067
 
1068
+ Type containing all information regarding the customer
1069
+
1068
1070
  | Prop | Type | Description |
1069
1071
  | ------------------------------------ | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1070
1072
  | **`entitlements`** | <code><a href="#purchasesentitlementinfos">PurchasesEntitlementInfos</a></code> | Entitlements attached to this customer info |
@@ -1079,7 +1081,7 @@ Holds parameters to initialize the SDK.
1079
1081
  | **`originalApplicationVersion`** | <code>string \| null</code> | Returns the version number for the version of the application when the user bought the app. Use this for grandfathering users when migrating to subscriptions. This corresponds to the value of CFBundleVersion (in iOS) in the Info.plist file when the purchase was originally made. This is always null in Android |
1080
1082
  | **`originalPurchaseDate`** | <code>string \| null</code> | Returns the purchase date for the version of the application when the user bought the app. Use this for grandfathering users when migrating to subscriptions. |
1081
1083
  | **`managementURL`** | <code>string \| null</code> | URL to manage the active subscription of the user. If this user has an active iOS subscription, this will point to the App Store, if the user has an active Play Store subscription it will point there. If there are no active subscriptions it will be null. If there are multiple for different platforms, it will point to the device store. |
1082
- | **`nonSubscriptionTransactions`** | <code>PurchasesStoreTransaction[]</code> | |
1084
+ | **`nonSubscriptionTransactions`** | <code>PurchasesStoreTransaction[]</code> | List of all non subscription transactions. Use this to fetch the history of non-subscription purchases |
1083
1085
 
1084
1086
 
1085
1087
  #### PurchasesEntitlementInfos
@@ -1097,34 +1099,33 @@ Contains all the entitlements associated to the user.
1097
1099
 
1098
1100
  The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.
1099
1101
 
1100
- | Prop | Type | Description |
1101
- | ---------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1102
- | **`identifier`** | <code>string</code> | The entitlement identifier configured in the RevenueCat dashboard |
1103
- | **`isActive`** | <code>boolean</code> | True if the user has access to this entitlement |
1104
- | **`willRenew`** | <code>boolean</code> | True if the underlying subscription is set to renew at the end of the billing period (expirationDate). |
1105
- | **`periodType`** | <code>string</code> | The last period type this entitlement was in. Either: NORMAL, INTRO, TRIAL. |
1106
- | **`latestPurchaseDate`** | <code>string</code> | The latest purchase or renewal date for the entitlement in ISO8601 format. |
1107
- | **`latestPurchaseDateMillis`** | <code>number</code> | The latest purchase or renewal date for the entitlement in milliseconds. |
1108
- | **`originalPurchaseDate`** | <code>string</code> | The first date this entitlement was purchased in ISO8601 format. |
1109
- | **`originalPurchaseDateMillis`** | <code>number</code> | The first date this entitlement was purchased in milliseconds. |
1110
- | **`expirationDate`** | <code>string \| null</code> | The expiration date for the entitlement in ISO8601, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1111
- | **`expirationDateMillis`** | <code>number \| null</code> | The expiration date for the entitlement in milliseconds, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1112
- | **`store`** | <code>'PLAY_STORE' \| 'APP_STORE' \| 'STRIPE' \| 'MAC_APP_STORE' \| 'PROMOTIONAL' \| 'AMAZON' \| 'RC_BILLING' \| 'UNKNOWN_STORE'</code> | The store where this entitlement was unlocked from. |
1113
- | **`productIdentifier`** | <code>string</code> | The product identifier that unlocked this entitlement |
1114
- | **`productPlanIdentifier`** | <code>string \| null</code> | The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS. |
1115
- | **`isSandbox`** | <code>boolean</code> | False if this entitlement is unlocked via a production purchase |
1116
- | **`unsubscribeDetectedAt`** | <code>string \| null</code> | The date an unsubscribe was detected in ISO8601 format. Can be `null`. |
1117
- | **`unsubscribeDetectedAtMillis`** | <code>number \| null</code> | The date an unsubscribe was detected in milliseconds. Can be `null`. |
1118
- | **`billingIssueDetectedAt`** | <code>string \| null</code> | The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an issue has been resolved |
1119
- | **`billingIssueDetectedAtMillis`** | <code>number \| null</code> | The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an issue has been resolved |
1120
- | **`ownershipType`** | <code>'FAMILY_SHARED' \| 'PURCHASED' \| 'UNKNOWN'</code> | Supported ownership types for an entitlement. PURCHASED if the purchase was made directly by this user. FAMILY_SHARED if the purchase has been shared to this user by a family member. UNKNOWN if the purchase has no or an unknown ownership type. |
1121
- | **`verification`** | <code><a href="#verification_result">VERIFICATION_RESULT</a></code> | If entitlement verification was enabled, the result of that verification. If not, VerificationResult.NOT_REQUESTED |
1102
+ | Prop | Type | Description |
1103
+ | ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1104
+ | **`identifier`** | <code>string</code> | The entitlement identifier configured in the RevenueCat dashboard |
1105
+ | **`isActive`** | <code>boolean</code> | True if the user has access to this entitlement |
1106
+ | **`willRenew`** | <code>boolean</code> | True if the underlying subscription is set to renew at the end of the billing period (expirationDate). |
1107
+ | **`periodType`** | <code>string</code> | The last period type this entitlement was in. Either: NORMAL, INTRO, TRIAL. |
1108
+ | **`latestPurchaseDate`** | <code>string</code> | The latest purchase or renewal date for the entitlement in ISO8601 format. |
1109
+ | **`latestPurchaseDateMillis`** | <code>number</code> | The latest purchase or renewal date for the entitlement in milliseconds. |
1110
+ | **`originalPurchaseDate`** | <code>string</code> | The first date this entitlement was purchased in ISO8601 format. |
1111
+ | **`originalPurchaseDateMillis`** | <code>number</code> | The first date this entitlement was purchased in milliseconds. |
1112
+ | **`expirationDate`** | <code>string \| null</code> | The expiration date for the entitlement in ISO8601, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1113
+ | **`expirationDateMillis`** | <code>number \| null</code> | The expiration date for the entitlement in milliseconds, can be `null` for lifetime access. If the `periodType` is `trial`, this is the trial expiration date. |
1114
+ | **`store`** | <code>'PLAY_STORE' \| 'APP_STORE' \| 'STRIPE' \| 'MAC_APP_STORE' \| 'PROMOTIONAL' \| 'AMAZON' \| 'RC_BILLING' \| 'EXTERNAL' \| 'UNKNOWN_STORE'</code> | The store where this entitlement was unlocked from. |
1115
+ | **`productIdentifier`** | <code>string</code> | The product identifier that unlocked this entitlement |
1116
+ | **`productPlanIdentifier`** | <code>string \| null</code> | The product plan identifier that unlocked this entitlement. Android subscriptions only, null on consumables and iOS. |
1117
+ | **`isSandbox`** | <code>boolean</code> | False if this entitlement is unlocked via a production purchase |
1118
+ | **`unsubscribeDetectedAt`** | <code>string \| null</code> | The date an unsubscribe was detected in ISO8601 format. Can be `null`. Entitlement may still be active even if user has unsubscribed. Check the `isActive` property. |
1119
+ | **`unsubscribeDetectedAtMillis`** | <code>number \| null</code> | The date an unsubscribe was detected in milliseconds. Can be `null`. Entitlement may still be active even if user has unsubscribed. Check the `isActive` property. |
1120
+ | **`billingIssueDetectedAt`** | <code>string \| null</code> | The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an issue has been resolved Entitlement may still be active even if there is a billing issue. Check the `isActive` property. |
1121
+ | **`billingIssueDetectedAtMillis`** | <code>number \| null</code> | The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an issue has been resolved Entitlement may still be active even if there is a billing issue. Check the `isActive` property. |
1122
+ | **`ownershipType`** | <code>'FAMILY_SHARED' \| 'PURCHASED' \| 'UNKNOWN'</code> | Supported ownership types for an entitlement. PURCHASED if the purchase was made directly by this user. FAMILY_SHARED if the purchase has been shared to this user by a family member. UNKNOWN if the purchase has no or an unknown ownership type. |
1123
+ | **`verification`** | <code><a href="#verification_result">VERIFICATION_RESULT</a></code> | If entitlement verification was enabled, the result of that verification. If not, VerificationResult.NOT_REQUESTED |
1122
1124
 
1123
1125
 
1124
1126
  #### PurchasesStoreTransaction
1125
1127
 
1126
- List of all non subscription transactions. Use this to fetch the history of
1127
- non-subscription purchases
1128
+ Represents a non-subscription transaction in the Store.
1128
1129
 
1129
1130
  | Prop | Type | Description |
1130
1131
  | --------------------------- | ------------------- | ---------------------------------------------------- |
@@ -1180,6 +1181,8 @@ For more info see https://docs.revenuecat.com/docs/entitlements
1180
1181
 
1181
1182
  #### PurchasesStoreProduct
1182
1183
 
1184
+ Type representing a product from the Store.
1185
+
1183
1186
  | Prop | Type | Description |
1184
1187
  | --------------------------------- | ------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
1185
1188
  | **`identifier`** | <code>string</code> | Product Id. |
@@ -1201,6 +1204,8 @@ For more info see https://docs.revenuecat.com/docs/entitlements
1201
1204
 
1202
1205
  #### PurchasesIntroPrice
1203
1206
 
1207
+ Contains information about the introductory price for a product
1208
+
1204
1209
  | Prop | Type | Description |
1205
1210
  | ------------------------- | ------------------- | ------------------------------------------------------------------------------------------------ |
1206
1211
  | **`price`** | <code>number</code> | <a href="#price">Price</a> in the local currency. |
@@ -1213,6 +1218,8 @@ For more info see https://docs.revenuecat.com/docs/entitlements
1213
1218
 
1214
1219
  #### PurchasesStoreProductDiscount
1215
1220
 
1221
+ Contains information about a discount offer for a product
1222
+
1216
1223
  | Prop | Type | Description |
1217
1224
  | ------------------------- | ------------------- | ------------------------------------------------------------------------------------------------ |
1218
1225
  | **`identifier`** | <code>string</code> | Identifier of the discount. |
@@ -1231,9 +1238,9 @@ Used only for Google
1231
1238
 
1232
1239
  | Prop | Type | Description |
1233
1240
  | --------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
1234
- | **`id`** | <code>string</code> | Identifier of the subscription option If this <a href="#subscriptionoption">SubscriptionOption</a> represents a base plan, this will be the basePlanId. If it represents an offer, it will be {basePlanId}:{offerId} |
1235
- | **`storeProductId`** | <code>string</code> | Identifier of the StoreProduct associated with this SubscriptionOption This will be {subId}:{basePlanId} |
1236
- | **`productId`** | <code>string</code> | Identifer of the subscription associated with this SubscriptionOption This will be {subId} |
1241
+ | **`id`** | <code>string</code> | Identifier of the subscription option If this <a href="#subscriptionoption">SubscriptionOption</a> represents a base plan, this will be the basePlanId. If it represents an offer, it will be basePlanId:offerId |
1242
+ | **`storeProductId`** | <code>string</code> | Identifier of the StoreProduct associated with this SubscriptionOption This will be subId:basePlanId |
1243
+ | **`productId`** | <code>string</code> | Identifer of the subscription associated with this SubscriptionOption This will be subId |
1237
1244
  | **`pricingPhases`** | <code>PricingPhase[]</code> | Pricing phases defining a user's payment plan for the product over time. |
1238
1245
  | **`tags`** | <code>string[]</code> | Tags defined on the base plan or offer. Empty for Amazon. |
1239
1246
  | **`isBasePlan`** | <code>boolean</code> | True if this <a href="#subscriptionoption">SubscriptionOption</a> represents a subscription base plan (rather than an offer). |
@@ -1339,6 +1346,8 @@ Holds the information used when upgrading from another sku. For Android use only
1339
1346
 
1340
1347
  #### PurchasesPromotionalOffer
1341
1348
 
1349
+ Holds the information about a PromotionalOffer in Apple's App Store.
1350
+
1342
1351
  | Prop | Type |
1343
1352
  | ------------------- | ------------------- |
1344
1353
  | **`identifier`** | <code>string</code> |
@@ -1430,11 +1439,15 @@ Listener used on updated customer info
1430
1439
 
1431
1440
  #### MakePurchaseResult
1432
1441
 
1433
- <code>{ productIdentifier: string; customerInfo: <a href="#customerinfo">CustomerInfo</a>; transaction: <a href="#purchasesstoretransaction">PurchasesStoreTransaction</a>; }</code>
1442
+ Result of a successful purchase
1443
+
1444
+ <code>{ /** * The product identifier of the purchased product */ productIdentifier: string; /** * The Customer Info for the user. */ customerInfo: <a href="#customerinfo">CustomerInfo</a>; /** * The transaction object for the purchase */ transaction: <a href="#purchasesstoretransaction">PurchasesStoreTransaction</a>; }</code>
1434
1445
 
1435
1446
 
1436
1447
  #### LogHandler
1437
1448
 
1449
+ Listener used to receive log messages from the SDK.
1450
+
1438
1451
  <code>(logLevel: <a href="#log_level">LOG_LEVEL</a>, message: string): void</code>
1439
1452
 
1440
1453
 
@@ -13,6 +13,6 @@ Pod::Spec.new do |s|
13
13
  s.source_files = 'ios/Plugin/**/*.{swift,h,m,c,cc,mm,cpp}'
14
14
  s.ios.deployment_target = '13.0'
15
15
  s.dependency 'Capacitor'
16
- s.dependency 'PurchasesHybridCommon', '10.4.0'
16
+ s.dependency 'PurchasesHybridCommon', '10.6.1'
17
17
  s.swift_version = '5.1'
18
18
  end
@@ -53,7 +53,7 @@ dependencies {
53
53
  implementation fileTree(dir: 'libs', include: ['*.jar'])
54
54
  implementation project(':capacitor-android')
55
55
  implementation "androidx.appcompat:appcompat:$androidxAppCompatVersion"
56
- implementation 'com.revenuecat.purchases:purchases-hybrid-common:10.4.0'
56
+ implementation 'com.revenuecat.purchases:purchases-hybrid-common:10.6.1'
57
57
  testImplementation "junit:junit:$junitVersion"
58
58
  androidTestImplementation "androidx.test.ext:junit:$androidxJunitVersion"
59
59
  androidTestImplementation "androidx.test.espresso:espresso-core:$androidxEspressoCoreVersion"
@@ -76,7 +76,7 @@ class PurchasesPlugin : Plugin() {
76
76
 
77
77
  companion object {
78
78
  private const val PLATFORM_NAME = "capacitor"
79
- private const val PLUGIN_VERSION = "7.5.7"
79
+ private const val PLUGIN_VERSION = "7.5.9"
80
80
 
81
81
  private const val CUSTOMER_INFO_KEY = "customerInfo"
82
82
  }
package/dist/docs.json CHANGED
@@ -1333,7 +1333,11 @@
1333
1333
  "name": "PurchasesConfiguration",
1334
1334
  "slug": "purchasesconfiguration",
1335
1335
  "docs": "Holds parameters to initialize the SDK.",
1336
- "tags": [],
1336
+ "tags": [
1337
+ {
1338
+ "name": "public"
1339
+ }
1340
+ ],
1337
1341
  "methods": [],
1338
1342
  "properties": [
1339
1343
  {
@@ -1404,8 +1408,12 @@
1404
1408
  {
1405
1409
  "name": "CustomerInfo",
1406
1410
  "slug": "customerinfo",
1407
- "docs": "",
1408
- "tags": [],
1411
+ "docs": "Type containing all information regarding the customer",
1412
+ "tags": [
1413
+ {
1414
+ "name": "public"
1415
+ }
1416
+ ],
1409
1417
  "methods": [],
1410
1418
  "properties": [
1411
1419
  {
@@ -1497,7 +1505,7 @@
1497
1505
  {
1498
1506
  "name": "nonSubscriptionTransactions",
1499
1507
  "tags": [],
1500
- "docs": "",
1508
+ "docs": "List of all non subscription transactions. Use this to fetch the history of\nnon-subscription purchases",
1501
1509
  "complexTypes": [
1502
1510
  "PurchasesStoreTransaction"
1503
1511
  ],
@@ -1509,7 +1517,11 @@
1509
1517
  "name": "PurchasesEntitlementInfos",
1510
1518
  "slug": "purchasesentitlementinfos",
1511
1519
  "docs": "Contains all the entitlements associated to the user.",
1512
- "tags": [],
1520
+ "tags": [
1521
+ {
1522
+ "name": "public"
1523
+ }
1524
+ ],
1513
1525
  "methods": [],
1514
1526
  "properties": [
1515
1527
  {
@@ -1545,7 +1557,11 @@
1545
1557
  "name": "PurchasesEntitlementInfo",
1546
1558
  "slug": "purchasesentitlementinfo",
1547
1559
  "docs": "The EntitlementInfo object gives you access to all of the information about the status of a user entitlement.",
1548
- "tags": [],
1560
+ "tags": [
1561
+ {
1562
+ "name": "public"
1563
+ }
1564
+ ],
1549
1565
  "methods": [],
1550
1566
  "properties": [
1551
1567
  {
@@ -1623,7 +1639,7 @@
1623
1639
  "tags": [],
1624
1640
  "docs": "The store where this entitlement was unlocked from.",
1625
1641
  "complexTypes": [],
1626
- "type": "'PLAY_STORE' | 'APP_STORE' | 'STRIPE' | 'MAC_APP_STORE' | 'PROMOTIONAL' | 'AMAZON' | 'RC_BILLING' | 'UNKNOWN_STORE'"
1642
+ "type": "'PLAY_STORE' | 'APP_STORE' | 'STRIPE' | 'MAC_APP_STORE' | 'PROMOTIONAL' | 'AMAZON' | 'RC_BILLING' | 'EXTERNAL' | 'UNKNOWN_STORE'"
1627
1643
  },
1628
1644
  {
1629
1645
  "name": "productIdentifier",
@@ -1648,49 +1664,29 @@
1648
1664
  },
1649
1665
  {
1650
1666
  "name": "unsubscribeDetectedAt",
1651
- "tags": [
1652
- {
1653
- "text": ": Entitlement may still be active even if user has unsubscribed. Check the `isActive` property.",
1654
- "name": "note"
1655
- }
1656
- ],
1657
- "docs": "The date an unsubscribe was detected in ISO8601 format. Can be `null`.",
1667
+ "tags": [],
1668
+ "docs": "The date an unsubscribe was detected in ISO8601 format. Can be `null`.\n\nEntitlement may still be active even if user has unsubscribed. Check the `isActive` property.",
1658
1669
  "complexTypes": [],
1659
1670
  "type": "string | null"
1660
1671
  },
1661
1672
  {
1662
1673
  "name": "unsubscribeDetectedAtMillis",
1663
- "tags": [
1664
- {
1665
- "text": ": Entitlement may still be active even if user has unsubscribed. Check the `isActive` property.",
1666
- "name": "note"
1667
- }
1668
- ],
1669
- "docs": "The date an unsubscribe was detected in milliseconds. Can be `null`.",
1674
+ "tags": [],
1675
+ "docs": "The date an unsubscribe was detected in milliseconds. Can be `null`.\n\nEntitlement may still be active even if user has unsubscribed. Check the `isActive` property.",
1670
1676
  "complexTypes": [],
1671
1677
  "type": "number | null"
1672
1678
  },
1673
1679
  {
1674
1680
  "name": "billingIssueDetectedAt",
1675
- "tags": [
1676
- {
1677
- "text": ": Entitlement may still be active even if there is a billing issue. Check the `isActive` property.",
1678
- "name": "note"
1679
- }
1680
- ],
1681
- "docs": "The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an\nissue has been resolved",
1681
+ "tags": [],
1682
+ "docs": "The date a billing issue was detected in ISO8601 format. Can be `null` if there is no billing issue or an\nissue has been resolved\n\nEntitlement may still be active even if there is a billing issue. Check the `isActive` property.",
1682
1683
  "complexTypes": [],
1683
1684
  "type": "string | null"
1684
1685
  },
1685
1686
  {
1686
1687
  "name": "billingIssueDetectedAtMillis",
1687
- "tags": [
1688
- {
1689
- "text": ": Entitlement may still be active even if there is a billing issue. Check the `isActive` property.",
1690
- "name": "note"
1691
- }
1692
- ],
1693
- "docs": "The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an\nissue has been resolved",
1688
+ "tags": [],
1689
+ "docs": "The date a billing issue was detected in milliseconds. Can be `null` if there is no billing issue or an\nissue has been resolved\n\nEntitlement may still be active even if there is a billing issue. Check the `isActive` property.",
1694
1690
  "complexTypes": [],
1695
1691
  "type": "number | null"
1696
1692
  },
@@ -1715,8 +1711,12 @@
1715
1711
  {
1716
1712
  "name": "PurchasesStoreTransaction",
1717
1713
  "slug": "purchasesstoretransaction",
1718
- "docs": "List of all non subscription transactions. Use this to fetch the history of\nnon-subscription purchases",
1719
- "tags": [],
1714
+ "docs": "Represents a non-subscription transaction in the Store.",
1715
+ "tags": [
1716
+ {
1717
+ "name": "public"
1718
+ }
1719
+ ],
1720
1720
  "methods": [],
1721
1721
  "properties": [
1722
1722
  {
@@ -1746,7 +1746,11 @@
1746
1746
  "name": "PurchasesOfferings",
1747
1747
  "slug": "purchasesofferings",
1748
1748
  "docs": "Contains all the offerings configured in RevenueCat dashboard.\nFor more info see https://docs.revenuecat.com/docs/entitlements",
1749
- "tags": [],
1749
+ "tags": [
1750
+ {
1751
+ "name": "public"
1752
+ }
1753
+ ],
1750
1754
  "methods": [],
1751
1755
  "properties": [
1752
1756
  {
@@ -1773,7 +1777,11 @@
1773
1777
  "name": "PurchasesOffering",
1774
1778
  "slug": "purchasesoffering",
1775
1779
  "docs": "An offering is a collection of Packages (`PurchasesPackage`) available for the user to purchase.\nFor more info see https://docs.revenuecat.com/docs/entitlements",
1776
- "tags": [],
1780
+ "tags": [
1781
+ {
1782
+ "name": "public"
1783
+ }
1784
+ ],
1777
1785
  "methods": [],
1778
1786
  "properties": [
1779
1787
  {
@@ -1875,7 +1883,11 @@
1875
1883
  "name": "PurchasesPackage",
1876
1884
  "slug": "purchasespackage",
1877
1885
  "docs": "Contains information about the product available for the user to purchase.\nFor more info see https://docs.revenuecat.com/docs/entitlements",
1878
- "tags": [],
1886
+ "tags": [
1887
+ {
1888
+ "name": "public"
1889
+ }
1890
+ ],
1879
1891
  "methods": [],
1880
1892
  "properties": [
1881
1893
  {
@@ -1907,7 +1919,7 @@
1907
1919
  "name": "offeringIdentifier",
1908
1920
  "tags": [
1909
1921
  {
1910
- "text": ", use presentedOfferingContext",
1922
+ "text": "Use presentedOfferingContext",
1911
1923
  "name": "deprecated"
1912
1924
  }
1913
1925
  ],
@@ -1929,8 +1941,12 @@
1929
1941
  {
1930
1942
  "name": "PurchasesStoreProduct",
1931
1943
  "slug": "purchasesstoreproduct",
1932
- "docs": "",
1933
- "tags": [],
1944
+ "docs": "Type representing a product from the Store.",
1945
+ "tags": [
1946
+ {
1947
+ "name": "public"
1948
+ }
1949
+ ],
1934
1950
  "methods": [],
1935
1951
  "properties": [
1936
1952
  {
@@ -2040,7 +2056,7 @@
2040
2056
  "name": "presentedOfferingIdentifier",
2041
2057
  "tags": [
2042
2058
  {
2043
- "text": ", use presentedOfferingContext",
2059
+ "text": "Use presentedOfferingContext",
2044
2060
  "name": "deprecated"
2045
2061
  }
2046
2062
  ],
@@ -2062,8 +2078,12 @@
2062
2078
  {
2063
2079
  "name": "PurchasesIntroPrice",
2064
2080
  "slug": "purchasesintroprice",
2065
- "docs": "",
2066
- "tags": [],
2081
+ "docs": "Contains information about the introductory price for a product",
2082
+ "tags": [
2083
+ {
2084
+ "name": "public"
2085
+ }
2086
+ ],
2067
2087
  "methods": [],
2068
2088
  "properties": [
2069
2089
  {
@@ -2113,8 +2133,12 @@
2113
2133
  {
2114
2134
  "name": "PurchasesStoreProductDiscount",
2115
2135
  "slug": "purchasesstoreproductdiscount",
2116
- "docs": "",
2117
- "tags": [],
2136
+ "docs": "Contains information about a discount offer for a product",
2137
+ "tags": [
2138
+ {
2139
+ "name": "public"
2140
+ }
2141
+ ],
2118
2142
  "methods": [],
2119
2143
  "properties": [
2120
2144
  {
@@ -2172,27 +2196,31 @@
2172
2196
  "name": "SubscriptionOption",
2173
2197
  "slug": "subscriptionoption",
2174
2198
  "docs": "Contains all details associated with a SubscriptionOption\nUsed only for Google",
2175
- "tags": [],
2199
+ "tags": [
2200
+ {
2201
+ "name": "public"
2202
+ }
2203
+ ],
2176
2204
  "methods": [],
2177
2205
  "properties": [
2178
2206
  {
2179
2207
  "name": "id",
2180
2208
  "tags": [],
2181
- "docs": "Identifier of the subscription option\nIf this SubscriptionOption represents a base plan, this will be the basePlanId.\nIf it represents an offer, it will be {basePlanId}:{offerId}",
2209
+ "docs": "Identifier of the subscription option\nIf this SubscriptionOption represents a base plan, this will be the basePlanId.\nIf it represents an offer, it will be basePlanId:offerId",
2182
2210
  "complexTypes": [],
2183
2211
  "type": "string"
2184
2212
  },
2185
2213
  {
2186
2214
  "name": "storeProductId",
2187
2215
  "tags": [],
2188
- "docs": "Identifier of the StoreProduct associated with this SubscriptionOption\nThis will be {subId}:{basePlanId}",
2216
+ "docs": "Identifier of the StoreProduct associated with this SubscriptionOption\nThis will be subId:basePlanId",
2189
2217
  "complexTypes": [],
2190
2218
  "type": "string"
2191
2219
  },
2192
2220
  {
2193
2221
  "name": "productId",
2194
2222
  "tags": [],
2195
- "docs": "Identifer of the subscription associated with this SubscriptionOption\nThis will be {subId}",
2223
+ "docs": "Identifer of the subscription associated with this SubscriptionOption\nThis will be subId",
2196
2224
  "complexTypes": [],
2197
2225
  "type": "string"
2198
2226
  },
@@ -2266,7 +2294,7 @@
2266
2294
  "name": "presentedOfferingIdentifier",
2267
2295
  "tags": [
2268
2296
  {
2269
- "text": ", use presentedOfferingContext",
2297
+ "text": "Use presentedOfferingContext",
2270
2298
  "name": "deprecated"
2271
2299
  }
2272
2300
  ],
@@ -2289,7 +2317,11 @@
2289
2317
  "name": "PricingPhase",
2290
2318
  "slug": "pricingphase",
2291
2319
  "docs": "Contains all the details associated with a PricingPhase",
2292
- "tags": [],
2320
+ "tags": [
2321
+ {
2322
+ "name": "public"
2323
+ }
2324
+ ],
2293
2325
  "methods": [],
2294
2326
  "properties": [
2295
2327
  {
@@ -2341,7 +2373,11 @@
2341
2373
  "name": "Period",
2342
2374
  "slug": "period",
2343
2375
  "docs": "Contains all the details associated with a Period",
2344
- "tags": [],
2376
+ "tags": [
2377
+ {
2378
+ "name": "public"
2379
+ }
2380
+ ],
2345
2381
  "methods": [],
2346
2382
  "properties": [
2347
2383
  {
@@ -2373,7 +2409,11 @@
2373
2409
  "name": "Price",
2374
2410
  "slug": "price",
2375
2411
  "docs": "Contains all the details associated with a Price",
2376
- "tags": [],
2412
+ "tags": [
2413
+ {
2414
+ "name": "public"
2415
+ }
2416
+ ],
2377
2417
  "methods": [],
2378
2418
  "properties": [
2379
2419
  {
@@ -2403,7 +2443,11 @@
2403
2443
  "name": "PresentedOfferingContext",
2404
2444
  "slug": "presentedofferingcontext",
2405
2445
  "docs": "Contains data about the context in which an offering was presented.",
2406
- "tags": [],
2446
+ "tags": [
2447
+ {
2448
+ "name": "public"
2449
+ }
2450
+ ],
2407
2451
  "methods": [],
2408
2452
  "properties": [
2409
2453
  {
@@ -2435,7 +2479,11 @@
2435
2479
  "name": "PresentedOfferingTargetingContext",
2436
2480
  "slug": "presentedofferingtargetingcontext",
2437
2481
  "docs": "Contains data about the context in which an offering was presented.",
2438
- "tags": [],
2482
+ "tags": [
2483
+ {
2484
+ "name": "public"
2485
+ }
2486
+ ],
2439
2487
  "methods": [],
2440
2488
  "properties": [
2441
2489
  {
@@ -2517,7 +2565,11 @@
2517
2565
  "name": "GoogleProductChangeInfo",
2518
2566
  "slug": "googleproductchangeinfo",
2519
2567
  "docs": "Holds the information used when upgrading from another sku. For Android use only.",
2520
- "tags": [],
2568
+ "tags": [
2569
+ {
2570
+ "name": "public"
2571
+ }
2572
+ ],
2521
2573
  "methods": [],
2522
2574
  "properties": [
2523
2575
  {
@@ -2568,8 +2620,12 @@
2568
2620
  {
2569
2621
  "name": "PurchasesPromotionalOffer",
2570
2622
  "slug": "purchasespromotionaloffer",
2571
- "docs": "",
2572
- "tags": [],
2623
+ "docs": "Holds the information about a PromotionalOffer in Apple's App Store.",
2624
+ "tags": [
2625
+ {
2626
+ "name": "public"
2627
+ }
2628
+ ],
2573
2629
  "methods": [],
2574
2630
  "properties": [
2575
2631
  {
@@ -2708,7 +2764,11 @@
2708
2764
  "name": "LogInResult",
2709
2765
  "slug": "loginresult",
2710
2766
  "docs": "Holds the logIn result",
2711
- "tags": [],
2767
+ "tags": [
2768
+ {
2769
+ "name": "public"
2770
+ }
2771
+ ],
2712
2772
  "methods": [],
2713
2773
  "properties": [
2714
2774
  {
@@ -2777,7 +2837,11 @@
2777
2837
  "name": "IntroEligibility",
2778
2838
  "slug": "introeligibility",
2779
2839
  "docs": "Holds the introductory price status",
2780
- "tags": [],
2840
+ "tags": [
2841
+ {
2842
+ "name": "public"
2843
+ }
2844
+ ],
2781
2845
  "methods": [],
2782
2846
  "properties": [
2783
2847
  {
@@ -3300,10 +3364,10 @@
3300
3364
  {
3301
3365
  "name": "MakePurchaseResult",
3302
3366
  "slug": "makepurchaseresult",
3303
- "docs": "",
3367
+ "docs": "Result of a successful purchase",
3304
3368
  "types": [
3305
3369
  {
3306
- "text": "{\n productIdentifier: string;\n customerInfo: CustomerInfo;\n transaction: PurchasesStoreTransaction;\n}",
3370
+ "text": "{\n /**\n * The product identifier of the purchased product\n */\n productIdentifier: string;\n /**\n * The Customer Info for the user.\n */\n customerInfo: CustomerInfo;\n /**\n * The transaction object for the purchase\n */\n transaction: PurchasesStoreTransaction;\n}",
3307
3371
  "complexTypes": [
3308
3372
  "CustomerInfo",
3309
3373
  "PurchasesStoreTransaction"
@@ -3314,7 +3378,7 @@
3314
3378
  {
3315
3379
  "name": "LogHandler",
3316
3380
  "slug": "loghandler",
3317
- "docs": "",
3381
+ "docs": "Listener used to receive log messages from the SDK.",
3318
3382
  "types": [
3319
3383
  {
3320
3384
  "text": "(logLevel: LOG_LEVEL, message: string): void",
@@ -12,7 +12,7 @@ import RevenueCat
12
12
  @objc(PurchasesPlugin)
13
13
  public class PurchasesPlugin: CAPPlugin, PurchasesDelegate {
14
14
  private let platformFlavor = "capacitor"
15
- private let platformVersion = "7.5.7"
15
+ private let platformVersion = "7.5.9"
16
16
 
17
17
  private let customerInfoKey = "customerInfo"
18
18
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenuecat/purchases-capacitor",
3
- "version": "7.5.7",
3
+ "version": "7.5.9",
4
4
  "description": "Capacitor in-app purchases and subscriptions made easy. Support for iOS and Android.",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",
@@ -72,6 +72,6 @@
72
72
  }
73
73
  },
74
74
  "dependencies": {
75
- "@revenuecat/purchases-typescript-internal-esm": "10.4.0"
75
+ "@revenuecat/purchases-typescript-internal-esm": "10.6.1"
76
76
  }
77
77
  }