@capgo/native-purchases 8.3.8 → 8.3.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/CapgoNativePurchases.podspec +31 -0
- package/Package.swift +40 -1
- package/README.md +108 -25
- package/android/src/main/java/ee/forgr/nativepurchases/NativePurchasesPlugin.java +1 -1
- package/dist/docs.json +443 -3
- package/dist/esm/definitions.d.ts +206 -0
- package/dist/esm/definitions.js.map +1 -1
- package/dist/esm/web.d.ts +14 -5
- package/dist/esm/web.js +6 -3
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +3 -3
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +3 -3
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/NativePurchasesPlugin/NativePurchasesPlugin+PurchaseHandling.swift +37 -0
- package/ios/Sources/NativePurchasesPlugin/NativePurchasesPlugin.swift +40 -34
- package/ios/Sources/NativePurchasesPlugin/Product+CapacitorPurchasesPlugin.swift +23 -1
- package/ios/Sources/NativePurchasesPlugin/StoreKitPayloadExtensions.swift +122 -0
- package/ios/Sources/NativePurchasesPlugin/StoreKitPayloadHelpers.swift +374 -0
- package/ios/Sources/NativePurchasesPlugin/TransactionHelpers.swift +50 -0
- package/package.json +1 -1
package/dist/docs.json
CHANGED
|
@@ -95,12 +95,12 @@
|
|
|
95
95
|
},
|
|
96
96
|
{
|
|
97
97
|
"name": "purchaseProduct",
|
|
98
|
-
"signature": "(options: { productIdentifier: string; planIdentifier?: string; productType?: PURCHASE_TYPE; quantity?: number; appAccountToken?: string; isConsumable?: boolean; autoAcknowledgePurchases?: boolean; }) => Promise<Transaction>",
|
|
98
|
+
"signature": "(options: { productIdentifier: string; planIdentifier?: string; productType?: PURCHASE_TYPE; quantity?: number; billingPlanType?: 'monthly' | 'upFront'; appAccountToken?: string; isConsumable?: boolean; autoAcknowledgePurchases?: boolean; }) => Promise<Transaction>",
|
|
99
99
|
"parameters": [
|
|
100
100
|
{
|
|
101
101
|
"name": "options",
|
|
102
102
|
"docs": "- The product to purchase",
|
|
103
|
-
"type": "{ productIdentifier: string; planIdentifier?: string | undefined; productType?: PURCHASE_TYPE | undefined; quantity?: number | undefined; appAccountToken?: string | undefined; isConsumable?: boolean | undefined; autoAcknowledgePurchases?: boolean | undefined; }"
|
|
103
|
+
"type": "{ productIdentifier: string; planIdentifier?: string | undefined; productType?: PURCHASE_TYPE | undefined; quantity?: number | undefined; billingPlanType?: 'upFront' | 'monthly' | undefined; appAccountToken?: string | undefined; isConsumable?: boolean | undefined; autoAcknowledgePurchases?: boolean | undefined; }"
|
|
104
104
|
}
|
|
105
105
|
],
|
|
106
106
|
"returns": "Promise<Transaction>",
|
|
@@ -125,6 +125,10 @@
|
|
|
125
125
|
"name": "param",
|
|
126
126
|
"text": "options.quantity - Only iOS, the number of items you wish to purchase. Will use 1 by default."
|
|
127
127
|
},
|
|
128
|
+
{
|
|
129
|
+
"name": "param",
|
|
130
|
+
"text": "options.billingPlanType - Only iOS, the StoreKit subscription billing plan to purchase. Use `\"monthly\"` for a monthly subscription with a 12-month commitment. Requires iOS 26.4+ and Xcode 26.5 SDK support."
|
|
131
|
+
},
|
|
128
132
|
{
|
|
129
133
|
"name": "param",
|
|
130
134
|
"text": "options.appAccountToken - Optional identifier uniquely associated with the user's account in your app.\n PLATFORM REQUIREMENTS:\n - iOS: Must be a valid UUID format (StoreKit 2 requirement)\n - Android: Can be any obfuscated string (max 64 chars), maps to ObfuscatedAccountId\n SECURITY: DO NOT use PII like emails in cleartext - use UUID or hashed value.\n RECOMMENDED: Use UUID v5 with deterministic generation for cross-platform compatibility."
|
|
@@ -921,6 +925,92 @@
|
|
|
921
925
|
"complexTypes": [],
|
|
922
926
|
"type": "'unknown' | 'subscribed' | 'expired' | 'revoked' | 'inGracePeriod' | 'inBillingRetryPeriod' | undefined"
|
|
923
927
|
},
|
|
928
|
+
{
|
|
929
|
+
"name": "billingPlanType",
|
|
930
|
+
"tags": [
|
|
931
|
+
{
|
|
932
|
+
"text": "8.3.8",
|
|
933
|
+
"name": "since"
|
|
934
|
+
},
|
|
935
|
+
{
|
|
936
|
+
"text": "ios Present for StoreKit transactions that include billing plan metadata.",
|
|
937
|
+
"name": "platform"
|
|
938
|
+
},
|
|
939
|
+
{
|
|
940
|
+
"text": "android Not available",
|
|
941
|
+
"name": "platform"
|
|
942
|
+
}
|
|
943
|
+
],
|
|
944
|
+
"docs": "StoreKit billing plan type for auto-renewable subscriptions.\n\n- `\"upFront\"`: Standard subscription billing for the full billing period.\n- `\"monthly\"`: Monthly billing with a 12-month commitment.\n- `\"unknown\"`: StoreKit returned a future or unsupported value.",
|
|
945
|
+
"complexTypes": [
|
|
946
|
+
"SubscriptionBillingPlanType"
|
|
947
|
+
],
|
|
948
|
+
"type": "SubscriptionBillingPlanType"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
"name": "commitmentInfo",
|
|
952
|
+
"tags": [
|
|
953
|
+
{
|
|
954
|
+
"text": "8.3.8",
|
|
955
|
+
"name": "since"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"text": "ios Present for monthly commitment subscription transactions.",
|
|
959
|
+
"name": "platform"
|
|
960
|
+
},
|
|
961
|
+
{
|
|
962
|
+
"text": "android Not available",
|
|
963
|
+
"name": "platform"
|
|
964
|
+
}
|
|
965
|
+
],
|
|
966
|
+
"docs": "Commitment metadata for monthly subscriptions with a 12-month commitment.\n\nUse `expirationDate` here only to display commitment progress. Continue using\nthe top-level `expirationDate` to decide whether the current billing period\ngrants entitlement access.",
|
|
967
|
+
"complexTypes": [
|
|
968
|
+
"TransactionCommitmentInfo"
|
|
969
|
+
],
|
|
970
|
+
"type": "TransactionCommitmentInfo"
|
|
971
|
+
},
|
|
972
|
+
{
|
|
973
|
+
"name": "renewalInfo",
|
|
974
|
+
"tags": [
|
|
975
|
+
{
|
|
976
|
+
"text": "8.3.8",
|
|
977
|
+
"name": "since"
|
|
978
|
+
},
|
|
979
|
+
{
|
|
980
|
+
"text": "ios Present for verified subscription renewal info.",
|
|
981
|
+
"name": "platform"
|
|
982
|
+
},
|
|
983
|
+
{
|
|
984
|
+
"text": "android Not available",
|
|
985
|
+
"name": "platform"
|
|
986
|
+
}
|
|
987
|
+
],
|
|
988
|
+
"docs": "StoreKit renewal metadata for auto-renewable subscriptions.\n\n`willAutoRenew` here describes the next billing period. For monthly\ncommitment subscriptions, `commitmentInfo.willAutoRenew` describes whether\nthe next 12-month commitment renews after the current commitment ends.",
|
|
989
|
+
"complexTypes": [
|
|
990
|
+
"SubscriptionRenewalInfo"
|
|
991
|
+
],
|
|
992
|
+
"type": "SubscriptionRenewalInfo"
|
|
993
|
+
},
|
|
994
|
+
{
|
|
995
|
+
"name": "currencyCode",
|
|
996
|
+
"tags": [
|
|
997
|
+
{
|
|
998
|
+
"text": "8.3.8",
|
|
999
|
+
"name": "since"
|
|
1000
|
+
},
|
|
1001
|
+
{
|
|
1002
|
+
"text": "ios Present when StoreKit includes currency in the transaction payload.",
|
|
1003
|
+
"name": "platform"
|
|
1004
|
+
},
|
|
1005
|
+
{
|
|
1006
|
+
"text": "android Not available",
|
|
1007
|
+
"name": "platform"
|
|
1008
|
+
}
|
|
1009
|
+
],
|
|
1010
|
+
"docs": "Currency code associated with StoreKit transaction pricing metadata.",
|
|
1011
|
+
"complexTypes": [],
|
|
1012
|
+
"type": "string | undefined"
|
|
1013
|
+
},
|
|
924
1014
|
{
|
|
925
1015
|
"name": "purchaseState",
|
|
926
1016
|
"tags": [
|
|
@@ -1175,6 +1265,151 @@
|
|
|
1175
1265
|
}
|
|
1176
1266
|
]
|
|
1177
1267
|
},
|
|
1268
|
+
{
|
|
1269
|
+
"name": "TransactionCommitmentInfo",
|
|
1270
|
+
"slug": "transactioncommitmentinfo",
|
|
1271
|
+
"docs": "",
|
|
1272
|
+
"tags": [],
|
|
1273
|
+
"methods": [],
|
|
1274
|
+
"properties": [
|
|
1275
|
+
{
|
|
1276
|
+
"name": "billingPeriodNumber",
|
|
1277
|
+
"tags": [],
|
|
1278
|
+
"docs": "Current billing period number within the commitment.",
|
|
1279
|
+
"complexTypes": [],
|
|
1280
|
+
"type": "number | undefined"
|
|
1281
|
+
},
|
|
1282
|
+
{
|
|
1283
|
+
"name": "totalBillingPeriods",
|
|
1284
|
+
"tags": [],
|
|
1285
|
+
"docs": "Total number of billing periods in the commitment.",
|
|
1286
|
+
"complexTypes": [],
|
|
1287
|
+
"type": "number | undefined"
|
|
1288
|
+
},
|
|
1289
|
+
{
|
|
1290
|
+
"name": "expirationDate",
|
|
1291
|
+
"tags": [],
|
|
1292
|
+
"docs": "End of the full commitment, in ISO 8601 format.",
|
|
1293
|
+
"complexTypes": [],
|
|
1294
|
+
"type": "string | undefined"
|
|
1295
|
+
},
|
|
1296
|
+
{
|
|
1297
|
+
"name": "price",
|
|
1298
|
+
"tags": [],
|
|
1299
|
+
"docs": "Total commitment price in the local currency.",
|
|
1300
|
+
"complexTypes": [],
|
|
1301
|
+
"type": "number | undefined"
|
|
1302
|
+
}
|
|
1303
|
+
]
|
|
1304
|
+
},
|
|
1305
|
+
{
|
|
1306
|
+
"name": "SubscriptionRenewalInfo",
|
|
1307
|
+
"slug": "subscriptionrenewalinfo",
|
|
1308
|
+
"docs": "",
|
|
1309
|
+
"tags": [],
|
|
1310
|
+
"methods": [],
|
|
1311
|
+
"properties": [
|
|
1312
|
+
{
|
|
1313
|
+
"name": "willAutoRenew",
|
|
1314
|
+
"tags": [],
|
|
1315
|
+
"docs": "Whether the next billing period will renew.",
|
|
1316
|
+
"complexTypes": [],
|
|
1317
|
+
"type": "boolean | undefined"
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
"name": "autoRenewProductId",
|
|
1321
|
+
"tags": [],
|
|
1322
|
+
"docs": "Product StoreKit will renew into for the next billing period.",
|
|
1323
|
+
"complexTypes": [],
|
|
1324
|
+
"type": "string | undefined"
|
|
1325
|
+
},
|
|
1326
|
+
{
|
|
1327
|
+
"name": "renewalBillingPlanType",
|
|
1328
|
+
"tags": [],
|
|
1329
|
+
"docs": "Billing plan StoreKit will use for the next billing period.",
|
|
1330
|
+
"complexTypes": [
|
|
1331
|
+
"SubscriptionBillingPlanType"
|
|
1332
|
+
],
|
|
1333
|
+
"type": "SubscriptionBillingPlanType"
|
|
1334
|
+
},
|
|
1335
|
+
{
|
|
1336
|
+
"name": "renewalDate",
|
|
1337
|
+
"tags": [],
|
|
1338
|
+
"docs": "Next billing period renewal date, in ISO 8601 format.",
|
|
1339
|
+
"complexTypes": [],
|
|
1340
|
+
"type": "string | undefined"
|
|
1341
|
+
},
|
|
1342
|
+
{
|
|
1343
|
+
"name": "renewalPrice",
|
|
1344
|
+
"tags": [],
|
|
1345
|
+
"docs": "Next billing period renewal price in the local currency.",
|
|
1346
|
+
"complexTypes": [],
|
|
1347
|
+
"type": "number | undefined"
|
|
1348
|
+
},
|
|
1349
|
+
{
|
|
1350
|
+
"name": "currencyCode",
|
|
1351
|
+
"tags": [],
|
|
1352
|
+
"docs": "Currency code for renewal pricing metadata.",
|
|
1353
|
+
"complexTypes": [],
|
|
1354
|
+
"type": "string | undefined"
|
|
1355
|
+
},
|
|
1356
|
+
{
|
|
1357
|
+
"name": "commitmentInfo",
|
|
1358
|
+
"tags": [],
|
|
1359
|
+
"docs": "Commitment renewal metadata for monthly subscriptions with a 12-month commitment.",
|
|
1360
|
+
"complexTypes": [
|
|
1361
|
+
"RenewalCommitmentInfo"
|
|
1362
|
+
],
|
|
1363
|
+
"type": "RenewalCommitmentInfo"
|
|
1364
|
+
}
|
|
1365
|
+
]
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
"name": "RenewalCommitmentInfo",
|
|
1369
|
+
"slug": "renewalcommitmentinfo",
|
|
1370
|
+
"docs": "",
|
|
1371
|
+
"tags": [],
|
|
1372
|
+
"methods": [],
|
|
1373
|
+
"properties": [
|
|
1374
|
+
{
|
|
1375
|
+
"name": "autoRenewProductId",
|
|
1376
|
+
"tags": [],
|
|
1377
|
+
"docs": "Product StoreKit will renew into after the commitment ends.",
|
|
1378
|
+
"complexTypes": [],
|
|
1379
|
+
"type": "string | undefined"
|
|
1380
|
+
},
|
|
1381
|
+
{
|
|
1382
|
+
"name": "willAutoRenew",
|
|
1383
|
+
"tags": [],
|
|
1384
|
+
"docs": "Whether the subscription renews into another commitment after the current commitment ends.",
|
|
1385
|
+
"complexTypes": [],
|
|
1386
|
+
"type": "boolean | undefined"
|
|
1387
|
+
},
|
|
1388
|
+
{
|
|
1389
|
+
"name": "renewalBillingPlanType",
|
|
1390
|
+
"tags": [],
|
|
1391
|
+
"docs": "Billing plan StoreKit will use for the next commitment or renewal.",
|
|
1392
|
+
"complexTypes": [
|
|
1393
|
+
"SubscriptionBillingPlanType"
|
|
1394
|
+
],
|
|
1395
|
+
"type": "SubscriptionBillingPlanType"
|
|
1396
|
+
},
|
|
1397
|
+
{
|
|
1398
|
+
"name": "renewalDate",
|
|
1399
|
+
"tags": [],
|
|
1400
|
+
"docs": "Renewal date for the next commitment or renewal, in ISO 8601 format.",
|
|
1401
|
+
"complexTypes": [],
|
|
1402
|
+
"type": "string | undefined"
|
|
1403
|
+
},
|
|
1404
|
+
{
|
|
1405
|
+
"name": "renewalPrice",
|
|
1406
|
+
"tags": [],
|
|
1407
|
+
"docs": "Renewal price in the local currency.",
|
|
1408
|
+
"complexTypes": [],
|
|
1409
|
+
"type": "number | undefined"
|
|
1410
|
+
}
|
|
1411
|
+
]
|
|
1412
|
+
},
|
|
1178
1413
|
{
|
|
1179
1414
|
"name": "Product",
|
|
1180
1415
|
"slug": "product",
|
|
@@ -1266,6 +1501,28 @@
|
|
|
1266
1501
|
"complexTypes": [],
|
|
1267
1502
|
"type": "string | null | undefined"
|
|
1268
1503
|
},
|
|
1504
|
+
{
|
|
1505
|
+
"name": "pricingTerms",
|
|
1506
|
+
"tags": [
|
|
1507
|
+
{
|
|
1508
|
+
"text": "8.3.8",
|
|
1509
|
+
"name": "since"
|
|
1510
|
+
},
|
|
1511
|
+
{
|
|
1512
|
+
"text": "ios Present on supported StoreKit subscription products.",
|
|
1513
|
+
"name": "platform"
|
|
1514
|
+
},
|
|
1515
|
+
{
|
|
1516
|
+
"text": "android Not available",
|
|
1517
|
+
"name": "platform"
|
|
1518
|
+
}
|
|
1519
|
+
],
|
|
1520
|
+
"docs": "iOS subscriptions only: StoreKit pricing terms by billing plan.\n\nFor subscriptions with a monthly billing plan and 12-month commitment, this\nincludes both the standard up-front plan and the monthly commitment plan.\nDisplay both `billingDisplayPrice` and `commitmentInfo.priceString` before\nstarting a monthly commitment purchase.",
|
|
1521
|
+
"complexTypes": [
|
|
1522
|
+
"SubscriptionPricingTerms"
|
|
1523
|
+
],
|
|
1524
|
+
"type": "SubscriptionPricingTerms[] | undefined"
|
|
1525
|
+
},
|
|
1269
1526
|
{
|
|
1270
1527
|
"name": "subscriptionPeriod",
|
|
1271
1528
|
"tags": [],
|
|
@@ -1295,6 +1552,97 @@
|
|
|
1295
1552
|
}
|
|
1296
1553
|
]
|
|
1297
1554
|
},
|
|
1555
|
+
{
|
|
1556
|
+
"name": "SubscriptionPricingTerms",
|
|
1557
|
+
"slug": "subscriptionpricingterms",
|
|
1558
|
+
"docs": "",
|
|
1559
|
+
"tags": [],
|
|
1560
|
+
"methods": [],
|
|
1561
|
+
"properties": [
|
|
1562
|
+
{
|
|
1563
|
+
"name": "billingPlanType",
|
|
1564
|
+
"tags": [],
|
|
1565
|
+
"docs": "Billing plan represented by this pricing entry.",
|
|
1566
|
+
"complexTypes": [
|
|
1567
|
+
"SubscriptionBillingPlanType"
|
|
1568
|
+
],
|
|
1569
|
+
"type": "SubscriptionBillingPlanType"
|
|
1570
|
+
},
|
|
1571
|
+
{
|
|
1572
|
+
"name": "commitmentInfo",
|
|
1573
|
+
"tags": [],
|
|
1574
|
+
"docs": "Total commitment details for this billing plan.",
|
|
1575
|
+
"complexTypes": [
|
|
1576
|
+
"ProductCommitmentInfo"
|
|
1577
|
+
],
|
|
1578
|
+
"type": "ProductCommitmentInfo"
|
|
1579
|
+
},
|
|
1580
|
+
{
|
|
1581
|
+
"name": "billingDisplayPrice",
|
|
1582
|
+
"tags": [],
|
|
1583
|
+
"docs": "Formatted price for each billing period.",
|
|
1584
|
+
"complexTypes": [],
|
|
1585
|
+
"type": "string | undefined"
|
|
1586
|
+
},
|
|
1587
|
+
{
|
|
1588
|
+
"name": "billingPrice",
|
|
1589
|
+
"tags": [],
|
|
1590
|
+
"docs": "Numeric price for each billing period.",
|
|
1591
|
+
"complexTypes": [],
|
|
1592
|
+
"type": "number | undefined"
|
|
1593
|
+
},
|
|
1594
|
+
{
|
|
1595
|
+
"name": "billingPeriod",
|
|
1596
|
+
"tags": [],
|
|
1597
|
+
"docs": "Duration of each billing period.",
|
|
1598
|
+
"complexTypes": [
|
|
1599
|
+
"SubscriptionPeriod"
|
|
1600
|
+
],
|
|
1601
|
+
"type": "SubscriptionPeriod"
|
|
1602
|
+
},
|
|
1603
|
+
{
|
|
1604
|
+
"name": "subscriptionOffers",
|
|
1605
|
+
"tags": [],
|
|
1606
|
+
"docs": "StoreKit subscription offers that apply to this billing plan.",
|
|
1607
|
+
"complexTypes": [
|
|
1608
|
+
"StoreKitSubscriptionOffer"
|
|
1609
|
+
],
|
|
1610
|
+
"type": "StoreKitSubscriptionOffer[] | undefined"
|
|
1611
|
+
}
|
|
1612
|
+
]
|
|
1613
|
+
},
|
|
1614
|
+
{
|
|
1615
|
+
"name": "ProductCommitmentInfo",
|
|
1616
|
+
"slug": "productcommitmentinfo",
|
|
1617
|
+
"docs": "",
|
|
1618
|
+
"tags": [],
|
|
1619
|
+
"methods": [],
|
|
1620
|
+
"properties": [
|
|
1621
|
+
{
|
|
1622
|
+
"name": "price",
|
|
1623
|
+
"tags": [],
|
|
1624
|
+
"docs": "Total commitment price in the local currency.",
|
|
1625
|
+
"complexTypes": [],
|
|
1626
|
+
"type": "number | undefined"
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
"name": "priceString",
|
|
1630
|
+
"tags": [],
|
|
1631
|
+
"docs": "Formatted total commitment price.",
|
|
1632
|
+
"complexTypes": [],
|
|
1633
|
+
"type": "string | undefined"
|
|
1634
|
+
},
|
|
1635
|
+
{
|
|
1636
|
+
"name": "period",
|
|
1637
|
+
"tags": [],
|
|
1638
|
+
"docs": "Full commitment period.",
|
|
1639
|
+
"complexTypes": [
|
|
1640
|
+
"SubscriptionPeriod"
|
|
1641
|
+
],
|
|
1642
|
+
"type": "SubscriptionPeriod"
|
|
1643
|
+
}
|
|
1644
|
+
]
|
|
1645
|
+
},
|
|
1298
1646
|
{
|
|
1299
1647
|
"name": "SubscriptionPeriod",
|
|
1300
1648
|
"slug": "subscriptionperiod",
|
|
@@ -1315,6 +1663,78 @@
|
|
|
1315
1663
|
"docs": "The Subscription Period unit.",
|
|
1316
1664
|
"complexTypes": [],
|
|
1317
1665
|
"type": "number"
|
|
1666
|
+
},
|
|
1667
|
+
{
|
|
1668
|
+
"name": "unitString",
|
|
1669
|
+
"tags": [
|
|
1670
|
+
{
|
|
1671
|
+
"text": "8.3.8",
|
|
1672
|
+
"name": "since"
|
|
1673
|
+
}
|
|
1674
|
+
],
|
|
1675
|
+
"docs": "Human-readable subscription period unit.",
|
|
1676
|
+
"complexTypes": [],
|
|
1677
|
+
"type": "'unknown' | 'day' | 'week' | 'month' | 'year' | undefined"
|
|
1678
|
+
}
|
|
1679
|
+
]
|
|
1680
|
+
},
|
|
1681
|
+
{
|
|
1682
|
+
"name": "StoreKitSubscriptionOffer",
|
|
1683
|
+
"slug": "storekitsubscriptionoffer",
|
|
1684
|
+
"docs": "",
|
|
1685
|
+
"tags": [],
|
|
1686
|
+
"methods": [],
|
|
1687
|
+
"properties": [
|
|
1688
|
+
{
|
|
1689
|
+
"name": "identifier",
|
|
1690
|
+
"tags": [],
|
|
1691
|
+
"docs": "StoreKit offer identifier.",
|
|
1692
|
+
"complexTypes": [],
|
|
1693
|
+
"type": "string | undefined"
|
|
1694
|
+
},
|
|
1695
|
+
{
|
|
1696
|
+
"name": "type",
|
|
1697
|
+
"tags": [],
|
|
1698
|
+
"docs": "StoreKit offer type.",
|
|
1699
|
+
"complexTypes": [],
|
|
1700
|
+
"type": "string | undefined"
|
|
1701
|
+
},
|
|
1702
|
+
{
|
|
1703
|
+
"name": "price",
|
|
1704
|
+
"tags": [],
|
|
1705
|
+
"docs": "Offer price in the local currency.",
|
|
1706
|
+
"complexTypes": [],
|
|
1707
|
+
"type": "number | undefined"
|
|
1708
|
+
},
|
|
1709
|
+
{
|
|
1710
|
+
"name": "priceString",
|
|
1711
|
+
"tags": [],
|
|
1712
|
+
"docs": "Formatted offer price.",
|
|
1713
|
+
"complexTypes": [],
|
|
1714
|
+
"type": "string | undefined"
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
"name": "period",
|
|
1718
|
+
"tags": [],
|
|
1719
|
+
"docs": "Offer billing period.",
|
|
1720
|
+
"complexTypes": [
|
|
1721
|
+
"SubscriptionPeriod"
|
|
1722
|
+
],
|
|
1723
|
+
"type": "SubscriptionPeriod"
|
|
1724
|
+
},
|
|
1725
|
+
{
|
|
1726
|
+
"name": "periodCount",
|
|
1727
|
+
"tags": [],
|
|
1728
|
+
"docs": "Number of periods the offer applies to.",
|
|
1729
|
+
"complexTypes": [],
|
|
1730
|
+
"type": "number | undefined"
|
|
1731
|
+
},
|
|
1732
|
+
{
|
|
1733
|
+
"name": "paymentMode",
|
|
1734
|
+
"tags": [],
|
|
1735
|
+
"docs": "StoreKit offer payment mode.",
|
|
1736
|
+
"complexTypes": [],
|
|
1737
|
+
"type": "string | undefined"
|
|
1318
1738
|
}
|
|
1319
1739
|
]
|
|
1320
1740
|
},
|
|
@@ -1478,6 +1898,26 @@
|
|
|
1478
1898
|
]
|
|
1479
1899
|
}
|
|
1480
1900
|
],
|
|
1481
|
-
"typeAliases": [
|
|
1901
|
+
"typeAliases": [
|
|
1902
|
+
{
|
|
1903
|
+
"name": "SubscriptionBillingPlanType",
|
|
1904
|
+
"slug": "subscriptionbillingplantype",
|
|
1905
|
+
"docs": "",
|
|
1906
|
+
"types": [
|
|
1907
|
+
{
|
|
1908
|
+
"text": "'upFront'",
|
|
1909
|
+
"complexTypes": []
|
|
1910
|
+
},
|
|
1911
|
+
{
|
|
1912
|
+
"text": "'monthly'",
|
|
1913
|
+
"complexTypes": []
|
|
1914
|
+
},
|
|
1915
|
+
{
|
|
1916
|
+
"text": "'unknown'",
|
|
1917
|
+
"complexTypes": []
|
|
1918
|
+
}
|
|
1919
|
+
]
|
|
1920
|
+
}
|
|
1921
|
+
],
|
|
1482
1922
|
"pluginConfigs": []
|
|
1483
1923
|
}
|