@wix/pricing-plans 1.0.29 → 1.0.31
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/build/cjs/src/pricing-plans-v2-order.http.d.ts +8 -8
- package/build/cjs/src/pricing-plans-v2-order.http.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.public.d.ts +92 -9
- package/build/cjs/src/pricing-plans-v2-order.public.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.types.d.ts +641 -11
- package/build/cjs/src/pricing-plans-v2-order.types.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-order.universal.d.ts +590 -20
- package/build/cjs/src/pricing-plans-v2-order.universal.js +0 -2
- package/build/cjs/src/pricing-plans-v2-order.universal.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.http.d.ts +11 -11
- package/build/cjs/src/pricing-plans-v2-plan.http.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.public.d.ts +76 -10
- package/build/cjs/src/pricing-plans-v2-plan.types.d.ts +293 -2
- package/build/cjs/src/pricing-plans-v2-plan.types.js.map +1 -1
- package/build/cjs/src/pricing-plans-v2-plan.universal.d.ts +239 -11
- package/build/cjs/src/pricing-plans-v2-plan.universal.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.http.d.ts +8 -8
- package/build/es/src/pricing-plans-v2-order.http.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.public.d.ts +92 -9
- package/build/es/src/pricing-plans-v2-order.public.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.types.d.ts +641 -11
- package/build/es/src/pricing-plans-v2-order.types.js.map +1 -1
- package/build/es/src/pricing-plans-v2-order.universal.d.ts +590 -20
- package/build/es/src/pricing-plans-v2-order.universal.js +0 -2
- package/build/es/src/pricing-plans-v2-order.universal.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.http.d.ts +11 -11
- package/build/es/src/pricing-plans-v2-plan.http.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.public.d.ts +76 -10
- package/build/es/src/pricing-plans-v2-plan.types.d.ts +293 -2
- package/build/es/src/pricing-plans-v2-plan.types.js.map +1 -1
- package/build/es/src/pricing-plans-v2-plan.universal.d.ts +239 -11
- package/build/es/src/pricing-plans-v2-plan.universal.js.map +1 -1
- package/package.json +2 -2
@@ -167,6 +167,11 @@ export interface Order {
|
|
167
167
|
* @readonly
|
168
168
|
*/
|
169
169
|
_updatedDate?: Date;
|
170
|
+
/**
|
171
|
+
* Information about the form submitted during the plan's checkout.
|
172
|
+
* @readonly
|
173
|
+
*/
|
174
|
+
formData?: FormData;
|
170
175
|
}
|
171
176
|
export interface Buyer {
|
172
177
|
/**
|
@@ -349,13 +354,7 @@ export interface Fee {
|
|
349
354
|
/** Fee name */
|
350
355
|
name?: string;
|
351
356
|
/** Amount of fee to be charged */
|
352
|
-
amount?:
|
353
|
-
}
|
354
|
-
export interface Money {
|
355
|
-
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). */
|
356
|
-
value?: string;
|
357
|
-
/** Currency code. Must be valid ISO 4217 currency code (e.g., USD). */
|
358
|
-
currency?: string;
|
357
|
+
amount?: string;
|
359
358
|
}
|
360
359
|
export declare enum OrderType {
|
361
360
|
UNDEFINED = "UNDEFINED",
|
@@ -497,13 +496,18 @@ export interface OrderCycle {
|
|
497
496
|
endedDate?: Date;
|
498
497
|
}
|
499
498
|
export interface FormData {
|
500
|
-
/**
|
499
|
+
/**
|
500
|
+
* ID of a plan's checkout form.
|
501
|
+
*
|
502
|
+
* Learn more about [forms](https://dev.wix.com/docs/rest/api-reference/wix-forms/form-submissions/introduction).
|
503
|
+
*/
|
501
504
|
formId?: string | null;
|
502
|
-
/**
|
505
|
+
/** ID of a submission to the plan's checkout form. Every time a visitor completes the checkout process for a plan, a new submission is created. */
|
503
506
|
submissionId?: string | null;
|
504
507
|
/**
|
505
|
-
* Data submitted to the
|
506
|
-
*
|
508
|
+
* Data submitted to the plan's checkout form.
|
509
|
+
*
|
510
|
+
* This field is returned when a method's `fieldset` is set to `FULL`.
|
507
511
|
* @readonly
|
508
512
|
*/
|
509
513
|
submissionData?: Record<string, any>;
|
@@ -1175,6 +1179,574 @@ export interface BulkResumeOrderResponse {
|
|
1175
1179
|
results?: BulkOrderResult[];
|
1176
1180
|
bulkActionMetadata?: BulkActionMetadata;
|
1177
1181
|
}
|
1182
|
+
export interface MemberGetOrderResponseNonNullableFields {
|
1183
|
+
order?: {
|
1184
|
+
_id: string;
|
1185
|
+
planId: string;
|
1186
|
+
subscriptionId: string;
|
1187
|
+
buyer?: {
|
1188
|
+
memberId: string;
|
1189
|
+
contactId: string;
|
1190
|
+
};
|
1191
|
+
priceDetails?: {
|
1192
|
+
subscription?: {
|
1193
|
+
cycleDuration?: {
|
1194
|
+
unit: PeriodUnit;
|
1195
|
+
};
|
1196
|
+
};
|
1197
|
+
singlePaymentForDuration?: {
|
1198
|
+
unit: PeriodUnit;
|
1199
|
+
};
|
1200
|
+
subtotal: string;
|
1201
|
+
discount: string;
|
1202
|
+
tax?: {
|
1203
|
+
name: string;
|
1204
|
+
includedInPrice: boolean;
|
1205
|
+
rate: string;
|
1206
|
+
amount: string;
|
1207
|
+
};
|
1208
|
+
total: string;
|
1209
|
+
planPrice: string;
|
1210
|
+
currency: string;
|
1211
|
+
coupon?: {
|
1212
|
+
code: string;
|
1213
|
+
amount: string;
|
1214
|
+
_id: string;
|
1215
|
+
};
|
1216
|
+
};
|
1217
|
+
pricing?: {
|
1218
|
+
subscription?: {
|
1219
|
+
cycleDuration?: {
|
1220
|
+
unit: PeriodUnit;
|
1221
|
+
};
|
1222
|
+
};
|
1223
|
+
singlePaymentForDuration?: {
|
1224
|
+
unit: PeriodUnit;
|
1225
|
+
};
|
1226
|
+
prices: {
|
1227
|
+
duration?: {
|
1228
|
+
cycleFrom: number;
|
1229
|
+
};
|
1230
|
+
price?: {
|
1231
|
+
subtotal: string;
|
1232
|
+
coupon?: {
|
1233
|
+
code: string;
|
1234
|
+
amount: string;
|
1235
|
+
_id: string;
|
1236
|
+
};
|
1237
|
+
discount: string;
|
1238
|
+
tax?: {
|
1239
|
+
name: string;
|
1240
|
+
includedInPrice: boolean;
|
1241
|
+
rate: string;
|
1242
|
+
amount: string;
|
1243
|
+
};
|
1244
|
+
total: string;
|
1245
|
+
currency: string;
|
1246
|
+
proration: string;
|
1247
|
+
};
|
1248
|
+
}[];
|
1249
|
+
};
|
1250
|
+
type: OrderType;
|
1251
|
+
status: OrderStatus;
|
1252
|
+
cancellation?: {
|
1253
|
+
cause: CancellationCause;
|
1254
|
+
effectiveAt: CancellationEffectiveAt;
|
1255
|
+
};
|
1256
|
+
lastPaymentStatus: PaymentStatus;
|
1257
|
+
pausePeriods: {
|
1258
|
+
status: Status;
|
1259
|
+
}[];
|
1260
|
+
currentCycle?: {
|
1261
|
+
index: number;
|
1262
|
+
};
|
1263
|
+
planName: string;
|
1264
|
+
planDescription: string;
|
1265
|
+
planPrice: string;
|
1266
|
+
};
|
1267
|
+
}
|
1268
|
+
export interface MemberListOrdersResponseNonNullableFields {
|
1269
|
+
orders: {
|
1270
|
+
_id: string;
|
1271
|
+
planId: string;
|
1272
|
+
subscriptionId: string;
|
1273
|
+
buyer?: {
|
1274
|
+
memberId: string;
|
1275
|
+
contactId: string;
|
1276
|
+
};
|
1277
|
+
priceDetails?: {
|
1278
|
+
subscription?: {
|
1279
|
+
cycleDuration?: {
|
1280
|
+
unit: PeriodUnit;
|
1281
|
+
};
|
1282
|
+
};
|
1283
|
+
singlePaymentForDuration?: {
|
1284
|
+
unit: PeriodUnit;
|
1285
|
+
};
|
1286
|
+
subtotal: string;
|
1287
|
+
discount: string;
|
1288
|
+
tax?: {
|
1289
|
+
name: string;
|
1290
|
+
includedInPrice: boolean;
|
1291
|
+
rate: string;
|
1292
|
+
amount: string;
|
1293
|
+
};
|
1294
|
+
total: string;
|
1295
|
+
planPrice: string;
|
1296
|
+
currency: string;
|
1297
|
+
coupon?: {
|
1298
|
+
code: string;
|
1299
|
+
amount: string;
|
1300
|
+
_id: string;
|
1301
|
+
};
|
1302
|
+
};
|
1303
|
+
pricing?: {
|
1304
|
+
subscription?: {
|
1305
|
+
cycleDuration?: {
|
1306
|
+
unit: PeriodUnit;
|
1307
|
+
};
|
1308
|
+
};
|
1309
|
+
singlePaymentForDuration?: {
|
1310
|
+
unit: PeriodUnit;
|
1311
|
+
};
|
1312
|
+
prices: {
|
1313
|
+
duration?: {
|
1314
|
+
cycleFrom: number;
|
1315
|
+
};
|
1316
|
+
price?: {
|
1317
|
+
subtotal: string;
|
1318
|
+
coupon?: {
|
1319
|
+
code: string;
|
1320
|
+
amount: string;
|
1321
|
+
_id: string;
|
1322
|
+
};
|
1323
|
+
discount: string;
|
1324
|
+
tax?: {
|
1325
|
+
name: string;
|
1326
|
+
includedInPrice: boolean;
|
1327
|
+
rate: string;
|
1328
|
+
amount: string;
|
1329
|
+
};
|
1330
|
+
total: string;
|
1331
|
+
currency: string;
|
1332
|
+
proration: string;
|
1333
|
+
};
|
1334
|
+
}[];
|
1335
|
+
};
|
1336
|
+
type: OrderType;
|
1337
|
+
status: OrderStatus;
|
1338
|
+
cancellation?: {
|
1339
|
+
cause: CancellationCause;
|
1340
|
+
effectiveAt: CancellationEffectiveAt;
|
1341
|
+
};
|
1342
|
+
lastPaymentStatus: PaymentStatus;
|
1343
|
+
pausePeriods: {
|
1344
|
+
status: Status;
|
1345
|
+
}[];
|
1346
|
+
currentCycle?: {
|
1347
|
+
index: number;
|
1348
|
+
};
|
1349
|
+
planName: string;
|
1350
|
+
planDescription: string;
|
1351
|
+
planPrice: string;
|
1352
|
+
}[];
|
1353
|
+
}
|
1354
|
+
export interface CreateOfflineOrderResponseNonNullableFields {
|
1355
|
+
order?: {
|
1356
|
+
_id: string;
|
1357
|
+
planId: string;
|
1358
|
+
subscriptionId: string;
|
1359
|
+
buyer?: {
|
1360
|
+
memberId: string;
|
1361
|
+
contactId: string;
|
1362
|
+
};
|
1363
|
+
priceDetails?: {
|
1364
|
+
subscription?: {
|
1365
|
+
cycleDuration?: {
|
1366
|
+
unit: PeriodUnit;
|
1367
|
+
};
|
1368
|
+
};
|
1369
|
+
singlePaymentForDuration?: {
|
1370
|
+
unit: PeriodUnit;
|
1371
|
+
};
|
1372
|
+
subtotal: string;
|
1373
|
+
discount: string;
|
1374
|
+
tax?: {
|
1375
|
+
name: string;
|
1376
|
+
includedInPrice: boolean;
|
1377
|
+
rate: string;
|
1378
|
+
amount: string;
|
1379
|
+
};
|
1380
|
+
total: string;
|
1381
|
+
planPrice: string;
|
1382
|
+
currency: string;
|
1383
|
+
coupon?: {
|
1384
|
+
code: string;
|
1385
|
+
amount: string;
|
1386
|
+
_id: string;
|
1387
|
+
};
|
1388
|
+
};
|
1389
|
+
pricing?: {
|
1390
|
+
subscription?: {
|
1391
|
+
cycleDuration?: {
|
1392
|
+
unit: PeriodUnit;
|
1393
|
+
};
|
1394
|
+
};
|
1395
|
+
singlePaymentForDuration?: {
|
1396
|
+
unit: PeriodUnit;
|
1397
|
+
};
|
1398
|
+
prices: {
|
1399
|
+
duration?: {
|
1400
|
+
cycleFrom: number;
|
1401
|
+
};
|
1402
|
+
price?: {
|
1403
|
+
subtotal: string;
|
1404
|
+
coupon?: {
|
1405
|
+
code: string;
|
1406
|
+
amount: string;
|
1407
|
+
_id: string;
|
1408
|
+
};
|
1409
|
+
discount: string;
|
1410
|
+
tax?: {
|
1411
|
+
name: string;
|
1412
|
+
includedInPrice: boolean;
|
1413
|
+
rate: string;
|
1414
|
+
amount: string;
|
1415
|
+
};
|
1416
|
+
total: string;
|
1417
|
+
currency: string;
|
1418
|
+
proration: string;
|
1419
|
+
};
|
1420
|
+
}[];
|
1421
|
+
};
|
1422
|
+
type: OrderType;
|
1423
|
+
status: OrderStatus;
|
1424
|
+
cancellation?: {
|
1425
|
+
cause: CancellationCause;
|
1426
|
+
effectiveAt: CancellationEffectiveAt;
|
1427
|
+
};
|
1428
|
+
lastPaymentStatus: PaymentStatus;
|
1429
|
+
pausePeriods: {
|
1430
|
+
status: Status;
|
1431
|
+
}[];
|
1432
|
+
currentCycle?: {
|
1433
|
+
index: number;
|
1434
|
+
};
|
1435
|
+
planName: string;
|
1436
|
+
planDescription: string;
|
1437
|
+
planPrice: string;
|
1438
|
+
};
|
1439
|
+
}
|
1440
|
+
export interface GetOfflineOrderPreviewResponseNonNullableFields {
|
1441
|
+
order?: {
|
1442
|
+
_id: string;
|
1443
|
+
planId: string;
|
1444
|
+
subscriptionId: string;
|
1445
|
+
buyer?: {
|
1446
|
+
memberId: string;
|
1447
|
+
contactId: string;
|
1448
|
+
};
|
1449
|
+
priceDetails?: {
|
1450
|
+
subscription?: {
|
1451
|
+
cycleDuration?: {
|
1452
|
+
unit: PeriodUnit;
|
1453
|
+
};
|
1454
|
+
};
|
1455
|
+
singlePaymentForDuration?: {
|
1456
|
+
unit: PeriodUnit;
|
1457
|
+
};
|
1458
|
+
subtotal: string;
|
1459
|
+
discount: string;
|
1460
|
+
tax?: {
|
1461
|
+
name: string;
|
1462
|
+
includedInPrice: boolean;
|
1463
|
+
rate: string;
|
1464
|
+
amount: string;
|
1465
|
+
};
|
1466
|
+
total: string;
|
1467
|
+
planPrice: string;
|
1468
|
+
currency: string;
|
1469
|
+
coupon?: {
|
1470
|
+
code: string;
|
1471
|
+
amount: string;
|
1472
|
+
_id: string;
|
1473
|
+
};
|
1474
|
+
};
|
1475
|
+
pricing?: {
|
1476
|
+
subscription?: {
|
1477
|
+
cycleDuration?: {
|
1478
|
+
unit: PeriodUnit;
|
1479
|
+
};
|
1480
|
+
};
|
1481
|
+
singlePaymentForDuration?: {
|
1482
|
+
unit: PeriodUnit;
|
1483
|
+
};
|
1484
|
+
prices: {
|
1485
|
+
duration?: {
|
1486
|
+
cycleFrom: number;
|
1487
|
+
};
|
1488
|
+
price?: {
|
1489
|
+
subtotal: string;
|
1490
|
+
coupon?: {
|
1491
|
+
code: string;
|
1492
|
+
amount: string;
|
1493
|
+
_id: string;
|
1494
|
+
};
|
1495
|
+
discount: string;
|
1496
|
+
tax?: {
|
1497
|
+
name: string;
|
1498
|
+
includedInPrice: boolean;
|
1499
|
+
rate: string;
|
1500
|
+
amount: string;
|
1501
|
+
};
|
1502
|
+
total: string;
|
1503
|
+
currency: string;
|
1504
|
+
proration: string;
|
1505
|
+
};
|
1506
|
+
}[];
|
1507
|
+
};
|
1508
|
+
type: OrderType;
|
1509
|
+
status: OrderStatus;
|
1510
|
+
cancellation?: {
|
1511
|
+
cause: CancellationCause;
|
1512
|
+
effectiveAt: CancellationEffectiveAt;
|
1513
|
+
};
|
1514
|
+
lastPaymentStatus: PaymentStatus;
|
1515
|
+
pausePeriods: {
|
1516
|
+
status: Status;
|
1517
|
+
}[];
|
1518
|
+
currentCycle?: {
|
1519
|
+
index: number;
|
1520
|
+
};
|
1521
|
+
planName: string;
|
1522
|
+
planDescription: string;
|
1523
|
+
planPrice: string;
|
1524
|
+
};
|
1525
|
+
purchaseLimitExceeded: boolean;
|
1526
|
+
}
|
1527
|
+
export interface GetPricePreviewResponseNonNullableFields {
|
1528
|
+
price?: {
|
1529
|
+
subscription?: {
|
1530
|
+
cycleDuration?: {
|
1531
|
+
unit: PeriodUnit;
|
1532
|
+
};
|
1533
|
+
};
|
1534
|
+
singlePaymentForDuration?: {
|
1535
|
+
unit: PeriodUnit;
|
1536
|
+
};
|
1537
|
+
subtotal: string;
|
1538
|
+
discount: string;
|
1539
|
+
tax?: {
|
1540
|
+
name: string;
|
1541
|
+
includedInPrice: boolean;
|
1542
|
+
rate: string;
|
1543
|
+
amount: string;
|
1544
|
+
};
|
1545
|
+
total: string;
|
1546
|
+
planPrice: string;
|
1547
|
+
currency: string;
|
1548
|
+
coupon?: {
|
1549
|
+
code: string;
|
1550
|
+
amount: string;
|
1551
|
+
_id: string;
|
1552
|
+
};
|
1553
|
+
};
|
1554
|
+
prices: {
|
1555
|
+
duration?: {
|
1556
|
+
cycleFrom: number;
|
1557
|
+
};
|
1558
|
+
price?: {
|
1559
|
+
subtotal: string;
|
1560
|
+
coupon?: {
|
1561
|
+
code: string;
|
1562
|
+
amount: string;
|
1563
|
+
_id: string;
|
1564
|
+
};
|
1565
|
+
discount: string;
|
1566
|
+
tax?: {
|
1567
|
+
name: string;
|
1568
|
+
includedInPrice: boolean;
|
1569
|
+
rate: string;
|
1570
|
+
amount: string;
|
1571
|
+
};
|
1572
|
+
total: string;
|
1573
|
+
currency: string;
|
1574
|
+
proration: string;
|
1575
|
+
};
|
1576
|
+
}[];
|
1577
|
+
}
|
1578
|
+
export interface GetOrderResponseNonNullableFields {
|
1579
|
+
order?: {
|
1580
|
+
_id: string;
|
1581
|
+
planId: string;
|
1582
|
+
subscriptionId: string;
|
1583
|
+
buyer?: {
|
1584
|
+
memberId: string;
|
1585
|
+
contactId: string;
|
1586
|
+
};
|
1587
|
+
priceDetails?: {
|
1588
|
+
subscription?: {
|
1589
|
+
cycleDuration?: {
|
1590
|
+
unit: PeriodUnit;
|
1591
|
+
};
|
1592
|
+
};
|
1593
|
+
singlePaymentForDuration?: {
|
1594
|
+
unit: PeriodUnit;
|
1595
|
+
};
|
1596
|
+
subtotal: string;
|
1597
|
+
discount: string;
|
1598
|
+
tax?: {
|
1599
|
+
name: string;
|
1600
|
+
includedInPrice: boolean;
|
1601
|
+
rate: string;
|
1602
|
+
amount: string;
|
1603
|
+
};
|
1604
|
+
total: string;
|
1605
|
+
planPrice: string;
|
1606
|
+
currency: string;
|
1607
|
+
coupon?: {
|
1608
|
+
code: string;
|
1609
|
+
amount: string;
|
1610
|
+
_id: string;
|
1611
|
+
};
|
1612
|
+
};
|
1613
|
+
pricing?: {
|
1614
|
+
subscription?: {
|
1615
|
+
cycleDuration?: {
|
1616
|
+
unit: PeriodUnit;
|
1617
|
+
};
|
1618
|
+
};
|
1619
|
+
singlePaymentForDuration?: {
|
1620
|
+
unit: PeriodUnit;
|
1621
|
+
};
|
1622
|
+
prices: {
|
1623
|
+
duration?: {
|
1624
|
+
cycleFrom: number;
|
1625
|
+
};
|
1626
|
+
price?: {
|
1627
|
+
subtotal: string;
|
1628
|
+
coupon?: {
|
1629
|
+
code: string;
|
1630
|
+
amount: string;
|
1631
|
+
_id: string;
|
1632
|
+
};
|
1633
|
+
discount: string;
|
1634
|
+
tax?: {
|
1635
|
+
name: string;
|
1636
|
+
includedInPrice: boolean;
|
1637
|
+
rate: string;
|
1638
|
+
amount: string;
|
1639
|
+
};
|
1640
|
+
total: string;
|
1641
|
+
currency: string;
|
1642
|
+
proration: string;
|
1643
|
+
};
|
1644
|
+
}[];
|
1645
|
+
};
|
1646
|
+
type: OrderType;
|
1647
|
+
status: OrderStatus;
|
1648
|
+
cancellation?: {
|
1649
|
+
cause: CancellationCause;
|
1650
|
+
effectiveAt: CancellationEffectiveAt;
|
1651
|
+
};
|
1652
|
+
lastPaymentStatus: PaymentStatus;
|
1653
|
+
pausePeriods: {
|
1654
|
+
status: Status;
|
1655
|
+
}[];
|
1656
|
+
currentCycle?: {
|
1657
|
+
index: number;
|
1658
|
+
};
|
1659
|
+
planName: string;
|
1660
|
+
planDescription: string;
|
1661
|
+
planPrice: string;
|
1662
|
+
};
|
1663
|
+
}
|
1664
|
+
export interface ListOrdersResponseNonNullableFields {
|
1665
|
+
orders: {
|
1666
|
+
_id: string;
|
1667
|
+
planId: string;
|
1668
|
+
subscriptionId: string;
|
1669
|
+
buyer?: {
|
1670
|
+
memberId: string;
|
1671
|
+
contactId: string;
|
1672
|
+
};
|
1673
|
+
priceDetails?: {
|
1674
|
+
subscription?: {
|
1675
|
+
cycleDuration?: {
|
1676
|
+
unit: PeriodUnit;
|
1677
|
+
};
|
1678
|
+
};
|
1679
|
+
singlePaymentForDuration?: {
|
1680
|
+
unit: PeriodUnit;
|
1681
|
+
};
|
1682
|
+
subtotal: string;
|
1683
|
+
discount: string;
|
1684
|
+
tax?: {
|
1685
|
+
name: string;
|
1686
|
+
includedInPrice: boolean;
|
1687
|
+
rate: string;
|
1688
|
+
amount: string;
|
1689
|
+
};
|
1690
|
+
total: string;
|
1691
|
+
planPrice: string;
|
1692
|
+
currency: string;
|
1693
|
+
coupon?: {
|
1694
|
+
code: string;
|
1695
|
+
amount: string;
|
1696
|
+
_id: string;
|
1697
|
+
};
|
1698
|
+
};
|
1699
|
+
pricing?: {
|
1700
|
+
subscription?: {
|
1701
|
+
cycleDuration?: {
|
1702
|
+
unit: PeriodUnit;
|
1703
|
+
};
|
1704
|
+
};
|
1705
|
+
singlePaymentForDuration?: {
|
1706
|
+
unit: PeriodUnit;
|
1707
|
+
};
|
1708
|
+
prices: {
|
1709
|
+
duration?: {
|
1710
|
+
cycleFrom: number;
|
1711
|
+
};
|
1712
|
+
price?: {
|
1713
|
+
subtotal: string;
|
1714
|
+
coupon?: {
|
1715
|
+
code: string;
|
1716
|
+
amount: string;
|
1717
|
+
_id: string;
|
1718
|
+
};
|
1719
|
+
discount: string;
|
1720
|
+
tax?: {
|
1721
|
+
name: string;
|
1722
|
+
includedInPrice: boolean;
|
1723
|
+
rate: string;
|
1724
|
+
amount: string;
|
1725
|
+
};
|
1726
|
+
total: string;
|
1727
|
+
currency: string;
|
1728
|
+
proration: string;
|
1729
|
+
};
|
1730
|
+
}[];
|
1731
|
+
};
|
1732
|
+
type: OrderType;
|
1733
|
+
status: OrderStatus;
|
1734
|
+
cancellation?: {
|
1735
|
+
cause: CancellationCause;
|
1736
|
+
effectiveAt: CancellationEffectiveAt;
|
1737
|
+
};
|
1738
|
+
lastPaymentStatus: PaymentStatus;
|
1739
|
+
pausePeriods: {
|
1740
|
+
status: Status;
|
1741
|
+
}[];
|
1742
|
+
currentCycle?: {
|
1743
|
+
index: number;
|
1744
|
+
};
|
1745
|
+
planName: string;
|
1746
|
+
planDescription: string;
|
1747
|
+
planPrice: string;
|
1748
|
+
}[];
|
1749
|
+
}
|
1178
1750
|
/**
|
1179
1751
|
* Gets an order by ID for the currently logged-in member.
|
1180
1752
|
*
|
@@ -1186,7 +1758,7 @@ export interface BulkResumeOrderResponse {
|
|
1186
1758
|
* @applicableIdentity MEMBER
|
1187
1759
|
* @returns Requested order.
|
1188
1760
|
*/
|
1189
|
-
export declare function memberGetOrder(_id: string, options?: MemberGetOrderOptions): Promise<Order>;
|
1761
|
+
export declare function memberGetOrder(_id: string, options?: MemberGetOrderOptions): Promise<Order & NonNullable<MemberGetOrderResponseNonNullableFields>['order']>;
|
1190
1762
|
export interface MemberGetOrderOptions {
|
1191
1763
|
fieldSet?: Set;
|
1192
1764
|
}
|
@@ -1198,7 +1770,7 @@ export interface MemberGetOrderOptions {
|
|
1198
1770
|
* @param options - Filtering, sorting, and pagination options.
|
1199
1771
|
* @applicableIdentity MEMBER
|
1200
1772
|
*/
|
1201
|
-
export declare function memberListOrders(options?: MemberListOrdersOptions): Promise<MemberListOrdersResponse>;
|
1773
|
+
export declare function memberListOrders(options?: MemberListOrdersOptions): Promise<MemberListOrdersResponse & MemberListOrdersResponseNonNullableFields>;
|
1202
1774
|
export interface MemberListOrdersOptions {
|
1203
1775
|
/** Filter by plan IDs. */
|
1204
1776
|
planIds?: string[];
|
@@ -1302,7 +1874,6 @@ export declare function requestCancellation(_id: string, effectiveAt: Cancellati
|
|
1302
1874
|
* - The order's status is set to `"PENDING"` if the start date is in the future. Otherwise, the status is set to `"ACTIVE"`.
|
1303
1875
|
* - The order's last payment status is set to `"NOT_APPLICABLE"`.
|
1304
1876
|
* @public
|
1305
|
-
* @requiredField options
|
1306
1877
|
* @requiredField options.memberId
|
1307
1878
|
* @requiredField planId
|
1308
1879
|
* @param options - Options for creating an offline order.
|
@@ -1311,7 +1882,7 @@ export declare function requestCancellation(_id: string, effectiveAt: Cancellati
|
|
1311
1882
|
* @applicableIdentity APP
|
1312
1883
|
* @returns Fulfilled - The order of the plan.
|
1313
1884
|
*/
|
1314
|
-
export declare function createOfflineOrder(planId: string, options
|
1885
|
+
export declare function createOfflineOrder(planId: string, options?: CreateOfflineOrderOptions): Promise<CreateOfflineOrderResponse & CreateOfflineOrderResponseNonNullableFields>;
|
1315
1886
|
export interface CreateOfflineOrderOptions {
|
1316
1887
|
/**
|
1317
1888
|
* ID of the member ordering the plan.
|
@@ -1347,7 +1918,6 @@ export interface CreateOfflineOrderOptions {
|
|
1347
1918
|
*
|
1348
1919
|
* You can preview the order to check purchase limitations, but the limitations are not enforced for the preview. If a pricing plan has a limit on the amount of purchases per buyer, that limit is not considered for generating the preview. But, if that limit has been reached and this order would then exceed the amount of purchases permitted for this buyer, then `purchaseLimitExceeded` will return as `true`. Thus function is not available to the buyer. You specify the member ID for the buyer whose order should be previewed. To get a general price preview for a plan that's not buyer-specific, use the [`getPricePreview()`](#getpricepreview) function.
|
1349
1920
|
* @public
|
1350
|
-
* @requiredField options
|
1351
1921
|
* @requiredField options.memberId
|
1352
1922
|
* @requiredField planId
|
1353
1923
|
* @param options - Options for previewing the offline order.
|
@@ -1356,7 +1926,7 @@ export interface CreateOfflineOrderOptions {
|
|
1356
1926
|
* @applicableIdentity APP
|
1357
1927
|
* @returns Fulfilled - A preview of the order.
|
1358
1928
|
*/
|
1359
|
-
export declare function getOfflineOrderPreview(planId: string, options
|
1929
|
+
export declare function getOfflineOrderPreview(planId: string, options?: GetOfflineOrderPreviewOptions): Promise<GetOfflineOrderPreviewResponse & GetOfflineOrderPreviewResponseNonNullableFields>;
|
1360
1930
|
export interface GetOfflineOrderPreviewOptions {
|
1361
1931
|
/**
|
1362
1932
|
* Member ID for the buyer who might order the plan offline.
|
@@ -1391,7 +1961,7 @@ export interface GetOfflineOrderPreviewOptions {
|
|
1391
1961
|
* @applicableIdentity VISITOR
|
1392
1962
|
* @returns Fulfilled - A preview of the pricing for the order.
|
1393
1963
|
*/
|
1394
|
-
export declare function getPricePreview(planId: string, options?: GetPricePreviewOptions): Promise<GetPricePreviewResponse>;
|
1964
|
+
export declare function getPricePreview(planId: string, options?: GetPricePreviewOptions): Promise<GetPricePreviewResponse & GetPricePreviewResponseNonNullableFields>;
|
1395
1965
|
export interface GetPricePreviewOptions {
|
1396
1966
|
/** Coupon code to apply. */
|
1397
1967
|
couponCode?: string | null;
|
@@ -1408,7 +1978,7 @@ export interface GetPricePreviewOptions {
|
|
1408
1978
|
* @permissionScope SCOPE.PRICING-PLANS.READ-ORDERS
|
1409
1979
|
* @applicableIdentity APP
|
1410
1980
|
*/
|
1411
|
-
export declare function managementGetOrder(_id: string, options?: ManagementGetOrderOptions): Promise<GetOrderResponse>;
|
1981
|
+
export declare function managementGetOrder(_id: string, options?: ManagementGetOrderOptions): Promise<GetOrderResponse & GetOrderResponseNonNullableFields>;
|
1412
1982
|
export interface ManagementGetOrderOptions {
|
1413
1983
|
fieldSet?: Set;
|
1414
1984
|
}
|
@@ -1424,7 +1994,7 @@ export interface ManagementGetOrderOptions {
|
|
1424
1994
|
* @permissionScope SCOPE.PRICING-PLANS.READ-ORDERS
|
1425
1995
|
* @applicableIdentity APP
|
1426
1996
|
*/
|
1427
|
-
export declare function managementListOrders(options?: ManagementListOrdersOptions): Promise<ListOrdersResponse>;
|
1997
|
+
export declare function managementListOrders(options?: ManagementListOrdersOptions): Promise<ListOrdersResponse & ListOrdersResponseNonNullableFields>;
|
1428
1998
|
export interface ManagementListOrdersOptions {
|
1429
1999
|
/** Filter by specific member IDs of buyers who ordered a pricing plan. */
|
1430
2000
|
buyerIds?: string[];
|
@@ -379,7 +379,6 @@ export function requestCancellation(_id, effectiveAt) {
|
|
379
379
|
* - The order's status is set to `"PENDING"` if the start date is in the future. Otherwise, the status is set to `"ACTIVE"`.
|
380
380
|
* - The order's last payment status is set to `"NOT_APPLICABLE"`.
|
381
381
|
* @public
|
382
|
-
* @requiredField options
|
383
382
|
* @requiredField options.memberId
|
384
383
|
* @requiredField planId
|
385
384
|
* @param options - Options for creating an offline order.
|
@@ -450,7 +449,6 @@ export function createOfflineOrder(planId, options) {
|
|
450
449
|
*
|
451
450
|
* You can preview the order to check purchase limitations, but the limitations are not enforced for the preview. If a pricing plan has a limit on the amount of purchases per buyer, that limit is not considered for generating the preview. But, if that limit has been reached and this order would then exceed the amount of purchases permitted for this buyer, then `purchaseLimitExceeded` will return as `true`. Thus function is not available to the buyer. You specify the member ID for the buyer whose order should be previewed. To get a general price preview for a plan that's not buyer-specific, use the [`getPricePreview()`](#getpricepreview) function.
|
452
451
|
* @public
|
453
|
-
* @requiredField options
|
454
452
|
* @requiredField options.memberId
|
455
453
|
* @requiredField planId
|
456
454
|
* @param options - Options for previewing the offline order.
|