@wix/subscription 1.0.33 → 1.0.35
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/package.json +3 -3
- package/type-bundles/context.bundle.d.ts +1262 -1241
- package/type-bundles/index.bundle.d.ts +1262 -1241
- package/type-bundles/meta.bundle.d.ts +1347 -1333
|
@@ -567,6 +567,8 @@ interface Subscription {
|
|
|
567
567
|
changesCounter?: string | null;
|
|
568
568
|
/** Billing order id. Optional. */
|
|
569
569
|
orderId?: string | null;
|
|
570
|
+
/** Platform origin subscription is coming from. */
|
|
571
|
+
platformOrigin?: PlatformOrigin;
|
|
570
572
|
/** items, minSize is 1, maxSize is 100 */
|
|
571
573
|
items?: Item[];
|
|
572
574
|
}
|
|
@@ -689,7 +691,9 @@ declare enum CollectionMethodEnumCollectionMethod {
|
|
|
689
691
|
/** Payment will be collected somehow. Billing only issues invoice per cycle. */
|
|
690
692
|
SEND_INVOICE = "SEND_INVOICE",
|
|
691
693
|
/** Payment will be collected externally */
|
|
692
|
-
EXTERNAL = "EXTERNAL"
|
|
694
|
+
EXTERNAL = "EXTERNAL",
|
|
695
|
+
/** Indicates the product has a zero amount, meaning its free with no payment required. */
|
|
696
|
+
FREE = "FREE"
|
|
693
697
|
}
|
|
694
698
|
interface Duration {
|
|
695
699
|
/** Duration unit: DAY, WEEK, MONTH, YEAR */
|
|
@@ -1301,18 +1305,151 @@ interface SpecificDateSubscriptionUpdateData {
|
|
|
1301
1305
|
updateData?: SubscriptionUpdateData;
|
|
1302
1306
|
executionDate?: Date | null;
|
|
1303
1307
|
}
|
|
1304
|
-
interface
|
|
1305
|
-
|
|
1308
|
+
interface PlatformOrigin {
|
|
1309
|
+
appId?: string | null;
|
|
1310
|
+
entityId?: string | null;
|
|
1306
1311
|
}
|
|
1307
|
-
interface
|
|
1312
|
+
interface ListSubscriptionHistoryRequest {
|
|
1313
|
+
subscriptionId: string;
|
|
1314
|
+
/** Determines the type of view for the history: either a comprehensive backoffice view or a user-centric view. */
|
|
1315
|
+
mode?: HistoryViewMode;
|
|
1316
|
+
/** Cursor for efficient paging. If paging through results, pass this field from the previous search response to continue to the next page. */
|
|
1317
|
+
cursor?: CursorPaging;
|
|
1318
|
+
}
|
|
1319
|
+
declare enum HistoryViewMode {
|
|
1320
|
+
UNKNOWN = "UNKNOWN",
|
|
1321
|
+
/** Comprehensive view including all history events. */
|
|
1322
|
+
BACKOFFICE = "BACKOFFICE",
|
|
1323
|
+
/** User-centric view of the history. */
|
|
1324
|
+
USER = "USER"
|
|
1325
|
+
}
|
|
1326
|
+
interface CursorPaging {
|
|
1327
|
+
/** Maximum number of items to return in the results. */
|
|
1328
|
+
limit?: number | null;
|
|
1329
|
+
/**
|
|
1330
|
+
* Pointer to the next or previous page in the list of results.
|
|
1331
|
+
*
|
|
1332
|
+
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
1333
|
+
* Not relevant for the first request.
|
|
1334
|
+
*/
|
|
1335
|
+
cursor?: string | null;
|
|
1336
|
+
}
|
|
1337
|
+
interface ListSubscriptionHistoryResponse {
|
|
1338
|
+
/** List of history entries for the subscription. */
|
|
1339
|
+
historyEntries?: SubscriptionHistoryEntry[];
|
|
1340
|
+
/** Paging metadata. A `next` cursor is returned if there are more results. */
|
|
1341
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1342
|
+
}
|
|
1343
|
+
interface SubscriptionHistoryEntry {
|
|
1344
|
+
entryId?: string;
|
|
1345
|
+
/** TODO: add max length? it is not defined in domainevents, so should we? */
|
|
1346
|
+
slug?: string;
|
|
1347
|
+
entryTime?: Date | null;
|
|
1348
|
+
event?: SubscriptionEvent;
|
|
1349
|
+
}
|
|
1350
|
+
interface SubscriptionEvent extends SubscriptionEventPayloadOneOf {
|
|
1351
|
+
created?: SubscriptionCreated;
|
|
1352
|
+
updated?: SubscriptionUpdated;
|
|
1353
|
+
deleted?: SubscriptionDeleted;
|
|
1354
|
+
activated?: SubscriptionActivated;
|
|
1355
|
+
ended?: SubscriptionEnded;
|
|
1356
|
+
canceled?: SubscriptionCanceled;
|
|
1357
|
+
paused?: SubscriptionPaused;
|
|
1358
|
+
resumed?: SubscriptionResumed;
|
|
1359
|
+
pauseRequested?: PauseSubscriptionRequested;
|
|
1360
|
+
resumeRequested?: ResumeSubscriptionRequested;
|
|
1361
|
+
scheduledPauseCanceled?: ScheduledPauseCanceled;
|
|
1362
|
+
scheduledResumeCanceled?: ScheduledResumeCanceled;
|
|
1363
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
1364
|
+
autoRenewalTurnedOn?: SubscriptionAutoRenewalTurnedOn;
|
|
1365
|
+
autoRenewalTurnedOff?: SubscriptionAutoRenewalTurnedOff;
|
|
1366
|
+
cycleReadyToPay?: SubscriptionCycleReadyToPay;
|
|
1367
|
+
extended?: SubscriptionExtended;
|
|
1368
|
+
initialPurchaseCompleted?: SubscriptionInitialPurchaseCompleted;
|
|
1369
|
+
latestInvoiceMarkedAsPaid?: LatestInvoiceMarkedAsPaid;
|
|
1370
|
+
revived?: SubscriptionRevived;
|
|
1371
|
+
billingDateUpdated?: SubscriptionBillingDateUpdated;
|
|
1372
|
+
futureUpdatesRequested?: FutureUpdatesRequested;
|
|
1373
|
+
updatesApplied?: UpdatesApplied;
|
|
1374
|
+
resetPendingUpdates?: ResetPendingUpdates;
|
|
1375
|
+
gracePeriodStarted?: GracePeriodStarted;
|
|
1376
|
+
gracePeriodEnded?: GracePeriodEnded;
|
|
1377
|
+
paymentMethodUpdated?: PaymentMethodUpdated;
|
|
1378
|
+
collectionMethodUpdated?: SubscriptionCollectionMethodUpdated;
|
|
1379
|
+
freeTrailStarted?: FreeTrailStarted;
|
|
1380
|
+
freeTrailEnded?: FreeTrailEnded;
|
|
1381
|
+
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
1382
|
+
unknown?: UnknownSubscriptionEvent;
|
|
1383
|
+
}
|
|
1384
|
+
/** @oneof */
|
|
1385
|
+
interface SubscriptionEventPayloadOneOf {
|
|
1386
|
+
created?: SubscriptionCreated;
|
|
1387
|
+
updated?: SubscriptionUpdated;
|
|
1388
|
+
deleted?: SubscriptionDeleted;
|
|
1389
|
+
activated?: SubscriptionActivated;
|
|
1390
|
+
ended?: SubscriptionEnded;
|
|
1391
|
+
canceled?: SubscriptionCanceled;
|
|
1392
|
+
paused?: SubscriptionPaused;
|
|
1393
|
+
resumed?: SubscriptionResumed;
|
|
1394
|
+
pauseRequested?: PauseSubscriptionRequested;
|
|
1395
|
+
resumeRequested?: ResumeSubscriptionRequested;
|
|
1396
|
+
scheduledPauseCanceled?: ScheduledPauseCanceled;
|
|
1397
|
+
scheduledResumeCanceled?: ScheduledResumeCanceled;
|
|
1398
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
1399
|
+
autoRenewalTurnedOn?: SubscriptionAutoRenewalTurnedOn;
|
|
1400
|
+
autoRenewalTurnedOff?: SubscriptionAutoRenewalTurnedOff;
|
|
1401
|
+
cycleReadyToPay?: SubscriptionCycleReadyToPay;
|
|
1402
|
+
extended?: SubscriptionExtended;
|
|
1403
|
+
initialPurchaseCompleted?: SubscriptionInitialPurchaseCompleted;
|
|
1404
|
+
latestInvoiceMarkedAsPaid?: LatestInvoiceMarkedAsPaid;
|
|
1405
|
+
revived?: SubscriptionRevived;
|
|
1406
|
+
billingDateUpdated?: SubscriptionBillingDateUpdated;
|
|
1407
|
+
futureUpdatesRequested?: FutureUpdatesRequested;
|
|
1408
|
+
updatesApplied?: UpdatesApplied;
|
|
1409
|
+
resetPendingUpdates?: ResetPendingUpdates;
|
|
1410
|
+
gracePeriodStarted?: GracePeriodStarted;
|
|
1411
|
+
gracePeriodEnded?: GracePeriodEnded;
|
|
1412
|
+
paymentMethodUpdated?: PaymentMethodUpdated;
|
|
1413
|
+
collectionMethodUpdated?: SubscriptionCollectionMethodUpdated;
|
|
1414
|
+
freeTrailStarted?: FreeTrailStarted;
|
|
1415
|
+
freeTrailEnded?: FreeTrailEnded;
|
|
1416
|
+
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
1417
|
+
unknown?: UnknownSubscriptionEvent;
|
|
1418
|
+
}
|
|
1419
|
+
interface SubscriptionCreated {
|
|
1308
1420
|
subscription?: Subscription;
|
|
1309
1421
|
}
|
|
1310
|
-
interface
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1422
|
+
interface SubscriptionUpdated {
|
|
1423
|
+
current?: Subscription;
|
|
1424
|
+
previous?: Subscription;
|
|
1425
|
+
diff?: SubscriptionDiff;
|
|
1314
1426
|
}
|
|
1315
|
-
interface
|
|
1427
|
+
interface SubscriptionDiff {
|
|
1428
|
+
added?: string | null;
|
|
1429
|
+
changed?: string | null;
|
|
1430
|
+
deleted?: string | null;
|
|
1431
|
+
}
|
|
1432
|
+
interface SubscriptionDeleted {
|
|
1433
|
+
subscriptionId?: string;
|
|
1434
|
+
}
|
|
1435
|
+
/**
|
|
1436
|
+
* Sent each time a subscription status has been set to Active
|
|
1437
|
+
* Active shows that a subscription is live and operational.
|
|
1438
|
+
* For example:
|
|
1439
|
+
* * For subscription with free trial, free trial start date is also the activation date.
|
|
1440
|
+
* * For a subscription with future start date, the start date is also the activation date.
|
|
1441
|
+
* * When a subscription is resumed from a pause status, the resume date is also the activation date.
|
|
1442
|
+
*/
|
|
1443
|
+
interface SubscriptionActivated {
|
|
1444
|
+
subscription?: Subscription;
|
|
1445
|
+
}
|
|
1446
|
+
/**
|
|
1447
|
+
* Sent each time a subscription status has been set to Ended
|
|
1448
|
+
* Ended shows that a subscription reached its end date and ended its life cycle as a result of the agreement.
|
|
1449
|
+
* This is different from a Canceled subscription which ends the subscription before a designated end date.
|
|
1450
|
+
* Therefore, Ended and Canceled are mutually exclusive.
|
|
1451
|
+
*/
|
|
1452
|
+
interface SubscriptionEnded {
|
|
1316
1453
|
subscription?: Subscription;
|
|
1317
1454
|
}
|
|
1318
1455
|
/**
|
|
@@ -1330,32 +1467,48 @@ interface ActionDetails {
|
|
|
1330
1467
|
initiator?: HistoryActionInitiator;
|
|
1331
1468
|
reason?: string | null;
|
|
1332
1469
|
}
|
|
1333
|
-
interface
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1470
|
+
interface SubscriptionPaused {
|
|
1471
|
+
subscription?: Subscription;
|
|
1472
|
+
pausePolicy?: PausePolicy;
|
|
1473
|
+
actionDetails?: ActionDetails;
|
|
1337
1474
|
}
|
|
1338
|
-
interface
|
|
1475
|
+
interface SubscriptionResumed {
|
|
1339
1476
|
subscription?: Subscription;
|
|
1477
|
+
actionDetails?: ActionDetails;
|
|
1340
1478
|
}
|
|
1341
|
-
interface
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1479
|
+
interface PauseSubscriptionRequested {
|
|
1480
|
+
subscription?: Subscription;
|
|
1481
|
+
pauseAt?: PauseAt;
|
|
1482
|
+
pausePolicy?: PausePolicy;
|
|
1483
|
+
actionDetails?: ActionDetails;
|
|
1345
1484
|
}
|
|
1346
|
-
interface
|
|
1485
|
+
interface ResumeSubscriptionRequested {
|
|
1347
1486
|
subscription?: Subscription;
|
|
1487
|
+
resumeAt?: ResumeAt;
|
|
1488
|
+
actionDetails?: ActionDetails;
|
|
1348
1489
|
}
|
|
1349
|
-
interface
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
/** Optional action reason message */
|
|
1353
|
-
reason?: string | null;
|
|
1354
|
-
/** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
|
|
1355
|
-
billingCyclesToAdd: number | null;
|
|
1490
|
+
interface ScheduledPauseCanceled {
|
|
1491
|
+
subscription?: Subscription;
|
|
1492
|
+
actionDetails?: ActionDetails;
|
|
1356
1493
|
}
|
|
1357
|
-
interface
|
|
1358
|
-
|
|
1494
|
+
interface ScheduledResumeCanceled {
|
|
1495
|
+
subscription?: Subscription;
|
|
1496
|
+
actionDetails?: ActionDetails;
|
|
1497
|
+
}
|
|
1498
|
+
interface SubscriptionBillingCycleStarted {
|
|
1499
|
+
subscription?: Subscription;
|
|
1500
|
+
/** Wix Pay transaction id, optional. Exists if event was triggered by a payment. */
|
|
1501
|
+
paymentTransactionId?: string | null;
|
|
1502
|
+
}
|
|
1503
|
+
interface SubscriptionAutoRenewalTurnedOn {
|
|
1504
|
+
subscription?: Subscription;
|
|
1505
|
+
actionDetails?: ActionDetails;
|
|
1506
|
+
}
|
|
1507
|
+
interface SubscriptionAutoRenewalTurnedOff {
|
|
1508
|
+
subscription?: Subscription;
|
|
1509
|
+
actionDetails?: ActionDetails;
|
|
1510
|
+
}
|
|
1511
|
+
interface SubscriptionCycleReadyToPay {
|
|
1359
1512
|
subscription?: Subscription;
|
|
1360
1513
|
}
|
|
1361
1514
|
interface SubscriptionExtended extends SubscriptionExtendedExtendPolicyOneOf {
|
|
@@ -1369,68 +1522,95 @@ interface SubscriptionExtendedExtendPolicyOneOf {
|
|
|
1369
1522
|
extensionPeriod?: Duration;
|
|
1370
1523
|
extensionBillingCycles?: number;
|
|
1371
1524
|
}
|
|
1372
|
-
interface
|
|
1373
|
-
|
|
1525
|
+
interface SubscriptionInitialPurchaseCompleted {
|
|
1526
|
+
subscription?: Subscription;
|
|
1527
|
+
actionDetails?: ActionDetails;
|
|
1528
|
+
paymentTransactionId?: string | null;
|
|
1374
1529
|
}
|
|
1375
|
-
interface
|
|
1376
|
-
|
|
1377
|
-
paging?: Paging;
|
|
1378
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1379
|
-
cursorPaging?: CursorPaging;
|
|
1380
|
-
/**
|
|
1381
|
-
* Filter object.
|
|
1382
|
-
*
|
|
1383
|
-
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1384
|
-
*/
|
|
1385
|
-
filter?: Record<string, any> | null;
|
|
1386
|
-
/**
|
|
1387
|
-
* Sort object.
|
|
1388
|
-
*
|
|
1389
|
-
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1390
|
-
*/
|
|
1391
|
-
sort?: Sorting[];
|
|
1392
|
-
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1393
|
-
fields?: string[];
|
|
1394
|
-
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1395
|
-
fieldsets?: string[];
|
|
1530
|
+
interface LatestInvoiceMarkedAsPaid {
|
|
1531
|
+
subscription?: Subscription;
|
|
1396
1532
|
}
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
/** Paging options to limit and skip the number of items. */
|
|
1400
|
-
paging?: Paging;
|
|
1401
|
-
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1402
|
-
cursorPaging?: CursorPaging;
|
|
1533
|
+
interface SubscriptionRevived {
|
|
1534
|
+
subscription?: Subscription;
|
|
1403
1535
|
}
|
|
1404
|
-
interface
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
order?: SortOrder;
|
|
1536
|
+
interface SubscriptionBillingDateUpdated {
|
|
1537
|
+
subscription?: Subscription;
|
|
1538
|
+
billingDate?: Date | null;
|
|
1539
|
+
proration?: Proration;
|
|
1409
1540
|
}
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1541
|
+
interface FutureUpdatesRequested {
|
|
1542
|
+
subscription?: Subscription;
|
|
1543
|
+
requestedUpdateData?: SubscriptionUpdateData;
|
|
1413
1544
|
}
|
|
1414
|
-
interface
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
offset?: number | null;
|
|
1545
|
+
interface UpdatesApplied {
|
|
1546
|
+
subscription?: Subscription;
|
|
1547
|
+
updateAction?: UpdateAction;
|
|
1548
|
+
appliedUpdateData?: SubscriptionUpdateData;
|
|
1419
1549
|
}
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1550
|
+
declare enum UpdateAction {
|
|
1551
|
+
NONE = "NONE",
|
|
1552
|
+
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
1553
|
+
IMMEDIATELY = "IMMEDIATELY",
|
|
1554
|
+
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
1555
|
+
NEXT_BILLING_CYCLE = "NEXT_BILLING_CYCLE",
|
|
1556
|
+
/** Reset all pending updates */
|
|
1557
|
+
RESET_PENDING_UPDATES = "RESET_PENDING_UPDATES",
|
|
1558
|
+
/** Request updates that will take affect only at a specific date. */
|
|
1559
|
+
SPECIFIC_DATE = "SPECIFIC_DATE"
|
|
1430
1560
|
}
|
|
1431
|
-
interface
|
|
1432
|
-
|
|
1433
|
-
|
|
1561
|
+
interface ResetPendingUpdates {
|
|
1562
|
+
subscription?: Subscription;
|
|
1563
|
+
}
|
|
1564
|
+
interface GracePeriodStarted {
|
|
1565
|
+
subscription?: Subscription;
|
|
1566
|
+
}
|
|
1567
|
+
interface GracePeriodEnded {
|
|
1568
|
+
subscription?: Subscription;
|
|
1569
|
+
/** Indication for the payment settlement method. */
|
|
1570
|
+
paymentSettlementMethod?: PaymentSettlementMethod;
|
|
1571
|
+
}
|
|
1572
|
+
declare enum PaymentSettlementMethod {
|
|
1573
|
+
UNKNOWN = "UNKNOWN",
|
|
1574
|
+
/** System-defined payment settlement. */
|
|
1575
|
+
SYSTEM = "SYSTEM",
|
|
1576
|
+
/** Manually mark the payment as paid. */
|
|
1577
|
+
MARK_AS_PAID = "MARK_AS_PAID",
|
|
1578
|
+
/** Require the customer to pay immediately, by insert a new payment method. */
|
|
1579
|
+
CUSTOMER_PAY_NOW = "CUSTOMER_PAY_NOW"
|
|
1580
|
+
}
|
|
1581
|
+
interface PaymentMethodUpdated {
|
|
1582
|
+
subscription?: Subscription;
|
|
1583
|
+
initiator?: HistoryActionInitiator;
|
|
1584
|
+
paymentMode?: PaymentMode;
|
|
1585
|
+
}
|
|
1586
|
+
declare enum PaymentMode {
|
|
1587
|
+
NONE = "NONE",
|
|
1588
|
+
/** The latest invoice of the subscription will be charged. */
|
|
1589
|
+
CHARGE = "CHARGE",
|
|
1590
|
+
/** An authorization invoice with zero amount will be created. */
|
|
1591
|
+
AUTHORIZATION = "AUTHORIZATION"
|
|
1592
|
+
}
|
|
1593
|
+
interface SubscriptionCollectionMethodUpdated {
|
|
1594
|
+
subscription?: Subscription;
|
|
1595
|
+
newCollectionMethod?: CollectionMethodEnumCollectionMethod;
|
|
1596
|
+
previousCollectionMethod?: CollectionMethodEnumCollectionMethod;
|
|
1597
|
+
}
|
|
1598
|
+
interface FreeTrailStarted {
|
|
1599
|
+
subscription?: Subscription;
|
|
1600
|
+
}
|
|
1601
|
+
interface FreeTrailEnded {
|
|
1602
|
+
subscription?: Subscription;
|
|
1603
|
+
}
|
|
1604
|
+
interface SubscriptionBackOfficeAction {
|
|
1605
|
+
subscription?: Subscription;
|
|
1606
|
+
/** The backoffice method name */
|
|
1607
|
+
name?: string;
|
|
1608
|
+
/** json as string format, to store the flatted request object */
|
|
1609
|
+
params?: string;
|
|
1610
|
+
}
|
|
1611
|
+
/** Defines unknown events restored from the logs */
|
|
1612
|
+
interface UnknownSubscriptionEvent {
|
|
1613
|
+
subscriptionAsString?: string | null;
|
|
1434
1614
|
}
|
|
1435
1615
|
interface PagingMetadataV2 {
|
|
1436
1616
|
/** Number of items returned in the response. */
|
|
@@ -1450,6 +1630,100 @@ interface Cursors {
|
|
|
1450
1630
|
/** Cursor pointing to the previous page in the list of results. */
|
|
1451
1631
|
prev?: string | null;
|
|
1452
1632
|
}
|
|
1633
|
+
interface GetSubscriptionRequest {
|
|
1634
|
+
_id: string;
|
|
1635
|
+
}
|
|
1636
|
+
interface GetSubscriptionResponse {
|
|
1637
|
+
subscription?: Subscription;
|
|
1638
|
+
}
|
|
1639
|
+
interface CustomerCancelSubscriptionRequest {
|
|
1640
|
+
_id: string;
|
|
1641
|
+
/** Optional action reason message */
|
|
1642
|
+
reason?: string | null;
|
|
1643
|
+
}
|
|
1644
|
+
interface CustomerCancelSubscriptionResponse {
|
|
1645
|
+
subscription?: Subscription;
|
|
1646
|
+
}
|
|
1647
|
+
interface CustomerTurnOnAutoRenewalRequest {
|
|
1648
|
+
_id: string;
|
|
1649
|
+
/** Optional action reason message */
|
|
1650
|
+
reason?: string | null;
|
|
1651
|
+
}
|
|
1652
|
+
interface CustomerTurnOnAutoRenewalResponse {
|
|
1653
|
+
subscription?: Subscription;
|
|
1654
|
+
}
|
|
1655
|
+
interface CustomerTurnOffAutoRenewalRequest {
|
|
1656
|
+
_id: string;
|
|
1657
|
+
/** Optional action reason message */
|
|
1658
|
+
reason?: string | null;
|
|
1659
|
+
}
|
|
1660
|
+
interface CustomerTurnOffAutoRenewalResponse {
|
|
1661
|
+
subscription?: Subscription;
|
|
1662
|
+
}
|
|
1663
|
+
interface CustomerExtendSubscriptionRequest {
|
|
1664
|
+
/** The ID of the subscription to be extended */
|
|
1665
|
+
_id: string;
|
|
1666
|
+
/** Optional action reason message */
|
|
1667
|
+
reason?: string | null;
|
|
1668
|
+
/** For termed - Subscription end date will be updated with the extension period and number of cycles will be added */
|
|
1669
|
+
billingCyclesToAdd: number | null;
|
|
1670
|
+
}
|
|
1671
|
+
interface CustomerExtendSubscriptionResponse {
|
|
1672
|
+
/** The now extended subscription */
|
|
1673
|
+
subscription?: Subscription;
|
|
1674
|
+
}
|
|
1675
|
+
interface QuerySubscriptionsRequest {
|
|
1676
|
+
query?: QueryV2;
|
|
1677
|
+
}
|
|
1678
|
+
interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
1679
|
+
/** Paging options to limit and skip the number of items. */
|
|
1680
|
+
paging?: Paging;
|
|
1681
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1682
|
+
cursorPaging?: CursorPaging;
|
|
1683
|
+
/**
|
|
1684
|
+
* Filter object.
|
|
1685
|
+
*
|
|
1686
|
+
* Learn more about the [filter section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-filter-section).
|
|
1687
|
+
*/
|
|
1688
|
+
filter?: Record<string, any> | null;
|
|
1689
|
+
/**
|
|
1690
|
+
* Sort object.
|
|
1691
|
+
*
|
|
1692
|
+
* Learn more about the [sort section](https://dev.wix.com/docs/rest/articles/getting-started/api-query-language#the-sort-section).
|
|
1693
|
+
*/
|
|
1694
|
+
sort?: Sorting[];
|
|
1695
|
+
/** Array of projected fields. A list of specific field names to return. If `fieldsets` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1696
|
+
fields?: string[];
|
|
1697
|
+
/** Array of named, predefined sets of projected fields. A array of predefined named sets of fields to be returned. Specifying multiple `fieldsets` will return the union of fields from all sets. If `fields` are also specified, the union of `fieldsets` and `fields` is returned. */
|
|
1698
|
+
fieldsets?: string[];
|
|
1699
|
+
}
|
|
1700
|
+
/** @oneof */
|
|
1701
|
+
interface QueryV2PagingMethodOneOf {
|
|
1702
|
+
/** Paging options to limit and skip the number of items. */
|
|
1703
|
+
paging?: Paging;
|
|
1704
|
+
/** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort`. */
|
|
1705
|
+
cursorPaging?: CursorPaging;
|
|
1706
|
+
}
|
|
1707
|
+
interface Sorting {
|
|
1708
|
+
/** Name of the field to sort by. */
|
|
1709
|
+
fieldName?: string;
|
|
1710
|
+
/** Sort order. */
|
|
1711
|
+
order?: SortOrder;
|
|
1712
|
+
}
|
|
1713
|
+
declare enum SortOrder {
|
|
1714
|
+
ASC = "ASC",
|
|
1715
|
+
DESC = "DESC"
|
|
1716
|
+
}
|
|
1717
|
+
interface Paging {
|
|
1718
|
+
/** Number of items to load. */
|
|
1719
|
+
limit?: number | null;
|
|
1720
|
+
/** Number of items to skip in the current sort order. */
|
|
1721
|
+
offset?: number | null;
|
|
1722
|
+
}
|
|
1723
|
+
interface QuerySubscriptionsResponse {
|
|
1724
|
+
subscriptions?: Subscription[];
|
|
1725
|
+
metadata?: PagingMetadataV2;
|
|
1726
|
+
}
|
|
1453
1727
|
interface CountSubscriptionsRequest {
|
|
1454
1728
|
/** Filters to specify which subscriptions are counted. */
|
|
1455
1729
|
filter?: CountSubscriptionFilter;
|
|
@@ -1497,7 +1771,6 @@ interface SubscriptionStatus {
|
|
|
1497
1771
|
statuses?: SubscriptionStatusEnumSubscriptionStatus[];
|
|
1498
1772
|
}
|
|
1499
1773
|
declare enum SubscriptionStatusGroup {
|
|
1500
|
-
UNKNOWN_STATUS_GROUP = "UNKNOWN_STATUS_GROUP",
|
|
1501
1774
|
ALL = "ALL",
|
|
1502
1775
|
/** Union of ACTIVE, PAUSED and PENDING */
|
|
1503
1776
|
LIVE = "LIVE"
|
|
@@ -1753,13 +2026,6 @@ interface InitiatePaymentMethodSetupRequest {
|
|
|
1753
2026
|
paymentMode?: PaymentMode;
|
|
1754
2027
|
paymentSettings?: PaymentSettings;
|
|
1755
2028
|
}
|
|
1756
|
-
declare enum PaymentMode {
|
|
1757
|
-
NONE = "NONE",
|
|
1758
|
-
/** The latest invoice of the subscription will be charged. */
|
|
1759
|
-
CHARGE = "CHARGE",
|
|
1760
|
-
/** An authorization invoice with zero amount will be created. */
|
|
1761
|
-
AUTHORIZATION = "AUTHORIZATION"
|
|
1762
|
-
}
|
|
1763
2029
|
interface PaymentSettings {
|
|
1764
2030
|
/** Allowed payment providers for Subscriptions, for example to limit subscriptions to be created only with "Wix Payments" provider. */
|
|
1765
2031
|
allowedProviderIds?: string[];
|
|
@@ -1912,12 +2178,21 @@ declare enum WebhookIdentityType {
|
|
|
1912
2178
|
WIX_USER = "WIX_USER",
|
|
1913
2179
|
APP = "APP"
|
|
1914
2180
|
}
|
|
1915
|
-
interface
|
|
1916
|
-
|
|
2181
|
+
interface SetIsMigratedEvent {
|
|
2182
|
+
subscriptionId?: string;
|
|
2183
|
+
}
|
|
2184
|
+
interface SubscriptionDelayedSyncEvent {
|
|
2185
|
+
subscriptionId?: string;
|
|
2186
|
+
}
|
|
2187
|
+
interface InvoiceAction extends InvoiceActionActionTypeOneOf {
|
|
2188
|
+
payRecurring?: PayRecurringInvoice;
|
|
1917
2189
|
}
|
|
1918
2190
|
/** @oneof */
|
|
1919
|
-
interface
|
|
1920
|
-
|
|
2191
|
+
interface InvoiceActionActionTypeOneOf {
|
|
2192
|
+
payRecurring?: PayRecurringInvoice;
|
|
2193
|
+
}
|
|
2194
|
+
interface PayRecurringInvoice {
|
|
2195
|
+
invoiceId?: string;
|
|
1921
2196
|
}
|
|
1922
2197
|
interface CreateSubscriptionRequest {
|
|
1923
2198
|
subscription?: Subscription;
|
|
@@ -1932,801 +2207,434 @@ interface OriginOverride {
|
|
|
1932
2207
|
appId?: string;
|
|
1933
2208
|
instanceId?: string;
|
|
1934
2209
|
}
|
|
1935
|
-
interface
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
subscriptionId: string;
|
|
1940
|
-
paymentTestMode?: PaymentTestMode;
|
|
1941
|
-
tenantId: string;
|
|
2210
|
+
interface CreateSubscriptionResponse {
|
|
2211
|
+
subscription?: Subscription;
|
|
2212
|
+
/** Payments order that should be paid (or authorize card) in order to activate subscription. Empty for free subscriptions. */
|
|
2213
|
+
paymentOrderId?: string | null;
|
|
1942
2214
|
}
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
FAIL_DECLINE = "FAIL_DECLINE",
|
|
1947
|
-
FAIL_RETRYABLE_DECLINE = "FAIL_RETRYABLE_DECLINE"
|
|
2215
|
+
interface UpdateSubscriptionRequest {
|
|
2216
|
+
/** Revision is validated if Subscription.revision is set */
|
|
2217
|
+
subscription?: Subscription;
|
|
1948
2218
|
}
|
|
1949
|
-
interface
|
|
1950
|
-
invoiceId?: string;
|
|
1951
|
-
paymentOrderId?: string | null;
|
|
2219
|
+
interface UpdateSubscriptionResponse {
|
|
1952
2220
|
subscription?: Subscription;
|
|
1953
2221
|
}
|
|
1954
|
-
interface
|
|
2222
|
+
interface UpdateSubscriptionStartDateRequest {
|
|
2223
|
+
/** Subscription ID */
|
|
1955
2224
|
_id?: string;
|
|
2225
|
+
/**
|
|
2226
|
+
* Can be updated only if Subscription is in Draft state
|
|
2227
|
+
* By setting start_date in the future, end_date will be recalculated for termed Subscriptions
|
|
2228
|
+
* cycles_to_pay_on_creation will be set to 1 if no free trial is set
|
|
2229
|
+
*/
|
|
2230
|
+
startDate?: Date | null;
|
|
1956
2231
|
}
|
|
1957
|
-
interface
|
|
2232
|
+
interface UpdateSubscriptionStartDateResponse {
|
|
1958
2233
|
subscription?: Subscription;
|
|
1959
|
-
internalSubscriptionData?: InternalSubscriptionData;
|
|
1960
|
-
}
|
|
1961
|
-
interface InternalSubscriptionData {
|
|
1962
|
-
originInstanceId?: string;
|
|
1963
|
-
source?: string | null;
|
|
1964
|
-
billingType?: string;
|
|
1965
|
-
isOneTime?: boolean;
|
|
1966
|
-
migrationDetails?: MigrationDetails;
|
|
1967
|
-
pausePaidDuration?: string | null;
|
|
1968
|
-
authorizationPaymentData?: PaymentData;
|
|
1969
|
-
currentCyclePausePeriods?: PausePeriod[];
|
|
1970
2234
|
}
|
|
1971
|
-
interface
|
|
1972
|
-
/**
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
shiftManagementDate?: Date | null;
|
|
2235
|
+
interface UpdateSubscriptionPoliciesRequest {
|
|
2236
|
+
/** Subscription ID */
|
|
2237
|
+
_id?: string;
|
|
2238
|
+
cancellableByCustomer?: boolean | null;
|
|
1976
2239
|
}
|
|
1977
|
-
interface
|
|
1978
|
-
|
|
1979
|
-
|
|
2240
|
+
interface UpdateSubscriptionPoliciesResponse {
|
|
2241
|
+
/** Updated policies of the subscription */
|
|
2242
|
+
policies?: SubscriptionPolicies;
|
|
1980
2243
|
}
|
|
1981
|
-
interface
|
|
1982
|
-
|
|
1983
|
-
|
|
2244
|
+
interface UpdateSubscriptionBillingDateRequest {
|
|
2245
|
+
/** ID of the subscription to update the billing date for. */
|
|
2246
|
+
_id: string;
|
|
2247
|
+
/** New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format. */
|
|
2248
|
+
billingDate: Date | null;
|
|
2249
|
+
/**
|
|
2250
|
+
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
2251
|
+
* the current billing cycle results in a higher payment, while shortening it
|
|
2252
|
+
* leads to a lower payment. BASS offers automatic calculation of the proration
|
|
2253
|
+
* amount based on the number of days added to or removed from the current billing
|
|
2254
|
+
* cycle. Alternatively, you can use your own custom method to calculate the
|
|
2255
|
+
* proration amount. The custom proration amount can't exceed the total of the
|
|
2256
|
+
* current billing cycle.
|
|
2257
|
+
*/
|
|
2258
|
+
proration?: Proration;
|
|
1984
2259
|
}
|
|
1985
|
-
interface
|
|
2260
|
+
interface UpdateSubscriptionBillingDateResponse {
|
|
2261
|
+
/** Updated subscription. */
|
|
1986
2262
|
subscription?: Subscription;
|
|
1987
|
-
internalSubscriptionData?: InternalSubscriptionData;
|
|
1988
2263
|
}
|
|
1989
|
-
interface
|
|
2264
|
+
interface UpdateSubscriptionOriginRequest {
|
|
2265
|
+
/** ID of the subscription to update origin. */
|
|
1990
2266
|
_id?: string;
|
|
1991
|
-
|
|
2267
|
+
/** Origin entity ID of the subscription to update. */
|
|
2268
|
+
entityId?: string;
|
|
1992
2269
|
}
|
|
1993
|
-
interface
|
|
2270
|
+
interface UpdateSubscriptionOriginResponse {
|
|
2271
|
+
/** Updated subscription. */
|
|
1994
2272
|
subscription?: Subscription;
|
|
1995
2273
|
}
|
|
1996
|
-
interface
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
interface UpdatePausePaidDurationResponse {
|
|
2002
|
-
}
|
|
2003
|
-
interface UpdateStatusRequest {
|
|
2004
|
-
subscriptionId?: string;
|
|
2005
|
-
tenantId?: string;
|
|
2006
|
-
status?: SubscriptionStatusEnumSubscriptionStatus;
|
|
2274
|
+
interface ReviseSubscriptionRequest {
|
|
2275
|
+
/** Subscription ID */
|
|
2276
|
+
_id?: string;
|
|
2277
|
+
/** 0 for no revision, maxSize is 100 */
|
|
2278
|
+
items?: Item[];
|
|
2007
2279
|
}
|
|
2008
|
-
interface
|
|
2280
|
+
interface ReviseSubscriptionResponse {
|
|
2009
2281
|
subscription?: Subscription;
|
|
2010
2282
|
}
|
|
2011
|
-
interface
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2283
|
+
interface UpdateSubscriptionItemsRequest {
|
|
2284
|
+
/** Subscription ID */
|
|
2285
|
+
_id?: string;
|
|
2286
|
+
/** Update action. For RESET_PENDING_UPDATES, nothing but the subscription ID should be defined in the request. */
|
|
2287
|
+
updateAction?: UpdateAction;
|
|
2288
|
+
/** Updates execution date. Relevant only for UpdateAction.SPECIFIC_DATE. Only specific date is supported. */
|
|
2289
|
+
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2290
|
+
/** Existing items to update */
|
|
2291
|
+
itemsToUpdate?: ItemChange[];
|
|
2292
|
+
/** Items to add */
|
|
2293
|
+
itemsToAdd?: Item[];
|
|
2294
|
+
/** Existing items to delete */
|
|
2295
|
+
itemsToDelete?: string[] | null;
|
|
2018
2296
|
}
|
|
2019
|
-
interface
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2297
|
+
interface ScheduleAdditionalInfo extends ScheduleAdditionalInfoParamOneOf {
|
|
2298
|
+
/**
|
|
2299
|
+
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2300
|
+
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2301
|
+
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2302
|
+
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2303
|
+
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2304
|
+
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2305
|
+
*/
|
|
2306
|
+
specificDate?: Date | null;
|
|
2307
|
+
/**
|
|
2308
|
+
* When the update becomes effective, as number of billing cycles from now.
|
|
2309
|
+
* The use of this field may be restricted in various BASS endpoints.
|
|
2310
|
+
* For example, in _Pause Subscription_ it's only available in
|
|
2311
|
+
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2312
|
+
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2313
|
+
*/
|
|
2314
|
+
numberOfCycles?: number;
|
|
2024
2315
|
}
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2316
|
+
/** @oneof */
|
|
2317
|
+
interface ScheduleAdditionalInfoParamOneOf {
|
|
2318
|
+
/**
|
|
2319
|
+
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2320
|
+
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2321
|
+
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2322
|
+
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2323
|
+
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2324
|
+
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2325
|
+
*/
|
|
2326
|
+
specificDate?: Date | null;
|
|
2327
|
+
/**
|
|
2328
|
+
* When the update becomes effective, as number of billing cycles from now.
|
|
2329
|
+
* The use of this field may be restricted in various BASS endpoints.
|
|
2330
|
+
* For example, in _Pause Subscription_ it's only available in
|
|
2331
|
+
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2332
|
+
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2333
|
+
*/
|
|
2334
|
+
numberOfCycles?: number;
|
|
2028
2335
|
}
|
|
2029
|
-
interface
|
|
2336
|
+
interface UpdateSubscriptionItemsResponse {
|
|
2030
2337
|
subscription?: Subscription;
|
|
2031
2338
|
}
|
|
2032
|
-
interface
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2339
|
+
interface BulkUpdateSubscriptionItemsByFilterRequest {
|
|
2340
|
+
/**
|
|
2341
|
+
* Filter to identify the subscriptions for which items are updated. For
|
|
2342
|
+
* supported fields see
|
|
2343
|
+
* [Search and Query: Bulk Update Subscription Items By Filter](https://bo.wix.com/wix-docs/rest/drafts/subscriptions-by-billing-by-wix/search-and-query#drafts_subscriptions-by-billing-by-wix_search-and-query_bulk-update-subscription-items-by-filter).
|
|
2344
|
+
* Sending an empty subscription filter results in a validation error.
|
|
2345
|
+
* In case you pass `{"updateAction": "RESET_PENDING_UPDATES"}`, use only the
|
|
2346
|
+
* `subscriptionId` field inside this filter. Passing any other filter results
|
|
2347
|
+
* in a failed validation error.
|
|
2348
|
+
*/
|
|
2349
|
+
subscriptionFilter?: Record<string, any> | null;
|
|
2350
|
+
/**
|
|
2351
|
+
* Filter to specify which subscription items are updated. Make sure to use
|
|
2352
|
+
* the catalog item ID and not the item's unique ID. All subscription items
|
|
2353
|
+
* with matching `items.catalogReference.catalogItemId` are updated.
|
|
2354
|
+
*
|
|
2355
|
+
* Max: `100` reference catalog item IDs
|
|
2356
|
+
*/
|
|
2357
|
+
catalogReferenceIds?: string[] | null;
|
|
2358
|
+
/**
|
|
2359
|
+
* Information about the update timing and update type.
|
|
2360
|
+
*
|
|
2361
|
+
* + `"IMMEDIATELY"`: The updates become effective immediately.
|
|
2362
|
+
* + `"NEXT_BILLING_CYCLE"`: The updates are scheduled for the beginning of the next billing cycle.
|
|
2363
|
+
* + `"SPECIFIC_DATE"`: The updates are scheduled for the date specified in `scheduleAdditionalInfo.specificDate`.
|
|
2364
|
+
* + `"RESET_PENDING_UPDATES"`: All currently scheduled updates for the specified supcriptions are canceled. Use only the `subscriptionId` field inside `subscriptionFilter`, all other filters result in failed validation errors.
|
|
2365
|
+
*/
|
|
2366
|
+
updateAction?: UpdateAction;
|
|
2367
|
+
/**
|
|
2368
|
+
* Additional information for updates. Currently, only supported for
|
|
2369
|
+
* `{"updateAction": "SPECIFIC_DATE"}`.
|
|
2370
|
+
*/
|
|
2371
|
+
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2372
|
+
/**
|
|
2373
|
+
* Update details for the susbcription items that match the filtering.
|
|
2374
|
+
* Currently, you can update only the item price, quantity, and tax. Note
|
|
2375
|
+
* that all item properties are updated to the same values. In case you want set
|
|
2376
|
+
* different values for individual items, you must call
|
|
2377
|
+
* _Bulk Update Subscription Items By Filter_ multiple times, once per unique update.
|
|
2378
|
+
*/
|
|
2379
|
+
bulkItemUpdateData?: BulkItemChange;
|
|
2380
|
+
/** __Not implemented yet__. Items to add to the subscriptions matching the filtering. */
|
|
2381
|
+
itemsToAdd?: Item[];
|
|
2037
2382
|
}
|
|
2038
|
-
interface
|
|
2039
|
-
|
|
2383
|
+
interface BulkItemChange {
|
|
2384
|
+
/** Information about the new item price. */
|
|
2385
|
+
pricingModel?: PricingModel;
|
|
2386
|
+
/**
|
|
2387
|
+
* New item quantity.
|
|
2388
|
+
*
|
|
2389
|
+
* Min: `1`
|
|
2390
|
+
*/
|
|
2391
|
+
quantity?: number | null;
|
|
2392
|
+
/** Information about the new item tax. */
|
|
2393
|
+
tax?: Tax;
|
|
2040
2394
|
}
|
|
2041
|
-
interface
|
|
2042
|
-
|
|
2395
|
+
interface BulkUpdateSubscriptionItemsByFilterResponse {
|
|
2396
|
+
/**
|
|
2397
|
+
* ID of your bulk job. You can use
|
|
2398
|
+
* [this Async Infra call](https://pbo.wix.com/fire-console/?artifact=com.wixpress.asyncinfra.async-job-service&service=wix.infra.asyncjobs.v1.AsyncJobService&method=ListAsyncJobItems&body=eyJqb2JfaWQiOiIifQ%3D%3D)
|
|
2399
|
+
* to retrieve information about the job status.
|
|
2400
|
+
*/
|
|
2401
|
+
jobId?: string;
|
|
2043
2402
|
}
|
|
2044
|
-
interface
|
|
2403
|
+
interface DeleteSubscriptionRequest {
|
|
2045
2404
|
_id?: string;
|
|
2046
|
-
|
|
2047
|
-
_createdDate?: Date | null;
|
|
2405
|
+
revision?: string;
|
|
2048
2406
|
}
|
|
2049
|
-
interface
|
|
2050
|
-
subscriptionId?: string;
|
|
2051
|
-
tenantId?: string;
|
|
2407
|
+
interface DeleteSubscriptionResponse {
|
|
2052
2408
|
}
|
|
2053
|
-
interface
|
|
2054
|
-
|
|
2409
|
+
interface CancelSubscriptionRequest {
|
|
2410
|
+
_id: string;
|
|
2411
|
+
actionContext: ActionContext;
|
|
2055
2412
|
}
|
|
2056
|
-
interface
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2413
|
+
interface ActionContext {
|
|
2414
|
+
initiator?: ActionInitiator;
|
|
2415
|
+
/** Optional action reason message */
|
|
2416
|
+
reason?: string | null;
|
|
2060
2417
|
}
|
|
2061
|
-
|
|
2418
|
+
declare enum ActionInitiator {
|
|
2419
|
+
UNDEFINED = "UNDEFINED",
|
|
2420
|
+
BUSINESS = "BUSINESS",
|
|
2421
|
+
CUSTOMER = "CUSTOMER",
|
|
2422
|
+
SYSTEM = "SYSTEM"
|
|
2062
2423
|
}
|
|
2063
|
-
interface
|
|
2064
|
-
|
|
2065
|
-
taskType?: string;
|
|
2066
|
-
executionTime?: Date | null;
|
|
2067
|
-
tenantId?: string;
|
|
2424
|
+
interface CancelSubscriptionResponse {
|
|
2425
|
+
subscription?: Subscription;
|
|
2068
2426
|
}
|
|
2069
|
-
interface
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2427
|
+
interface PauseSubscriptionRequest {
|
|
2428
|
+
_id: string;
|
|
2429
|
+
pausePolicy?: PausePolicy;
|
|
2430
|
+
pauseAt?: PauseAt;
|
|
2431
|
+
/** contains additional scheduling information for certain pause_at options (for example: SPECIFIC_DATE & NUMBER_OF_CYCLES_FROM_TODAY) */
|
|
2432
|
+
pauseAtSchedule?: ScheduleAdditionalInfo;
|
|
2433
|
+
/** contains additional scheduling information for certain auto_resume_at either specific date */
|
|
2434
|
+
autoResumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2435
|
+
actionContext: ActionContext;
|
|
2073
2436
|
}
|
|
2074
|
-
interface
|
|
2075
|
-
tenantId?: string;
|
|
2437
|
+
interface PauseSubscriptionResponse {
|
|
2076
2438
|
subscription?: Subscription;
|
|
2077
2439
|
}
|
|
2078
|
-
interface
|
|
2440
|
+
interface ResumeSubscriptionRequest {
|
|
2441
|
+
_id: string;
|
|
2442
|
+
resumeAt?: ResumeAt;
|
|
2443
|
+
/** contains additional scheduling information for certain resume_at options (for example: SPECIFIC_DATE) */
|
|
2444
|
+
resumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2445
|
+
actionContext: ActionContext;
|
|
2446
|
+
}
|
|
2447
|
+
interface ResumeSubscriptionResponse {
|
|
2079
2448
|
subscription?: Subscription;
|
|
2080
2449
|
}
|
|
2081
|
-
interface
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
|
|
2450
|
+
interface SearchSubscriptionsRequest extends SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2451
|
+
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2452
|
+
paging?: Paging;
|
|
2453
|
+
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2454
|
+
cursor?: CursorPaging;
|
|
2455
|
+
/** A filter object */
|
|
2456
|
+
filter?: any;
|
|
2457
|
+
/** A Sorting option by field name and order. */
|
|
2458
|
+
sorting?: SortingClauses;
|
|
2089
2459
|
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2460
|
+
/** @oneof */
|
|
2461
|
+
interface SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2462
|
+
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2463
|
+
paging?: Paging;
|
|
2464
|
+
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2465
|
+
cursor?: CursorPaging;
|
|
2095
2466
|
}
|
|
2096
|
-
interface
|
|
2097
|
-
|
|
2467
|
+
interface SortingClauses {
|
|
2468
|
+
sorting?: Sorting[];
|
|
2098
2469
|
}
|
|
2099
|
-
interface
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
taskType?: string;
|
|
2470
|
+
interface SearchSubscriptionsResponse {
|
|
2471
|
+
subscriptions?: Subscription[];
|
|
2472
|
+
cursor?: CursorPaging;
|
|
2103
2473
|
}
|
|
2104
|
-
interface
|
|
2105
|
-
|
|
2106
|
-
|
|
2107
|
-
cycleNumber?: number;
|
|
2474
|
+
interface TurnOnSubscriptionAutoRenewalRequest {
|
|
2475
|
+
_id: string;
|
|
2476
|
+
actionContext: ActionContext;
|
|
2108
2477
|
}
|
|
2109
|
-
interface
|
|
2110
|
-
|
|
2478
|
+
interface TurnOnSubscriptionAutoRenewalResponse {
|
|
2479
|
+
subscription?: Subscription;
|
|
2111
2480
|
}
|
|
2112
|
-
interface
|
|
2113
|
-
|
|
2114
|
-
|
|
2115
|
-
isBassManaged?: boolean;
|
|
2116
|
-
shiftManagementDate?: Date | null;
|
|
2481
|
+
interface TurnOffSubscriptionAutoRenewalRequest {
|
|
2482
|
+
_id: string;
|
|
2483
|
+
actionContext: ActionContext;
|
|
2117
2484
|
}
|
|
2118
|
-
interface
|
|
2485
|
+
interface TurnOffSubscriptionAutoRenewalResponse {
|
|
2119
2486
|
subscription?: Subscription;
|
|
2120
2487
|
}
|
|
2121
|
-
interface
|
|
2122
|
-
|
|
2123
|
-
|
|
2124
|
-
tenantId?: string;
|
|
2125
|
-
subscriptionId?: string;
|
|
2126
|
-
}
|
|
2127
|
-
/** @oneof */
|
|
2128
|
-
interface FixSubscriptionInvoicesRequestModeOneOf {
|
|
2129
|
-
attachInvoice?: AttachInvoice;
|
|
2130
|
-
detachInvoice?: DetachInvoice;
|
|
2488
|
+
interface MarkLatestInvoiceAsPaidRequest {
|
|
2489
|
+
/** The ID of the offline subscription to mark as paid its latest invoice */
|
|
2490
|
+
subscriptionId: string;
|
|
2131
2491
|
}
|
|
2132
|
-
interface
|
|
2133
|
-
|
|
2492
|
+
interface MarkLatestInvoiceAsPaidResponse {
|
|
2493
|
+
subscription?: Subscription;
|
|
2134
2494
|
}
|
|
2135
|
-
interface
|
|
2136
|
-
invoiceId?: string;
|
|
2495
|
+
interface GetSubscriptionsStatsRequest {
|
|
2137
2496
|
}
|
|
2138
|
-
interface
|
|
2139
|
-
|
|
2497
|
+
interface GetSubscriptionsStatsResponse {
|
|
2498
|
+
amountByStatuses?: AmountByStatus[];
|
|
2499
|
+
total?: number;
|
|
2140
2500
|
}
|
|
2141
|
-
interface
|
|
2142
|
-
|
|
2143
|
-
|
|
2501
|
+
interface AmountByStatus {
|
|
2502
|
+
status?: SubscriptionStatusEnumSubscriptionStatus;
|
|
2503
|
+
amount?: number;
|
|
2144
2504
|
}
|
|
2145
|
-
interface
|
|
2146
|
-
subscription
|
|
2505
|
+
interface ExtendSubscriptionRequest extends ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2506
|
+
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2507
|
+
extensionPeriod?: Duration;
|
|
2508
|
+
/** user will be charged for billing cycles added */
|
|
2509
|
+
extensionBillingCycles?: number;
|
|
2510
|
+
/** The ID of the subscription to be extended */
|
|
2511
|
+
_id: string;
|
|
2512
|
+
actionContext: ActionContext;
|
|
2147
2513
|
}
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2514
|
+
/** @oneof */
|
|
2515
|
+
interface ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2516
|
+
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2517
|
+
extensionPeriod?: Duration;
|
|
2518
|
+
/** user will be charged for billing cycles added */
|
|
2519
|
+
extensionBillingCycles?: number;
|
|
2151
2520
|
}
|
|
2152
|
-
interface
|
|
2521
|
+
interface ExtendSubscriptionResponse {
|
|
2522
|
+
/** The now extended subscription */
|
|
2153
2523
|
subscription?: Subscription;
|
|
2154
2524
|
}
|
|
2155
|
-
interface
|
|
2156
|
-
|
|
2157
|
-
|
|
2525
|
+
interface AllowedActionsRequest {
|
|
2526
|
+
_id: string;
|
|
2527
|
+
/** List of additional fields to be included in the response. */
|
|
2528
|
+
fields?: RequestedFields[];
|
|
2158
2529
|
}
|
|
2159
|
-
|
|
2160
|
-
|
|
2530
|
+
declare enum RequestedFields {
|
|
2531
|
+
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
2532
|
+
/** Include unsupported action list, including the reasons for the lack of support */
|
|
2533
|
+
UNSUPPORTED_ACTION = "UNSUPPORTED_ACTION"
|
|
2161
2534
|
}
|
|
2162
|
-
interface
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2535
|
+
interface AllowedActionsResponse {
|
|
2536
|
+
/** List of actions that are allowed. */
|
|
2537
|
+
actions?: Action[];
|
|
2538
|
+
/** List of actions that are not supported, included only if requested. Provides reasons for each unsupported action. */
|
|
2539
|
+
unsupportedActions?: UnsupportedAction[];
|
|
2167
2540
|
}
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
SYSTEM = "SYSTEM"
|
|
2541
|
+
interface UnsupportedAction {
|
|
2542
|
+
actionType?: ActionType;
|
|
2543
|
+
/** Provides detailed reasons for the unsupported action. Each `UnsupportedReason` includes a code and a message explaining why the action is not allowed. */
|
|
2544
|
+
reasons?: UnsupportedReason[];
|
|
2173
2545
|
}
|
|
2174
|
-
interface
|
|
2175
|
-
|
|
2546
|
+
interface UnsupportedReason {
|
|
2547
|
+
code?: string;
|
|
2548
|
+
description?: string | null;
|
|
2176
2549
|
}
|
|
2177
|
-
interface
|
|
2178
|
-
|
|
2179
|
-
subscriptionId
|
|
2180
|
-
|
|
2550
|
+
interface ListUpcomingChargesRequest {
|
|
2551
|
+
/** Subscription id charges to be previewed for */
|
|
2552
|
+
subscriptionId: string;
|
|
2553
|
+
/** Period of time to provide charged for. If not provided,then only next charge will be returned. */
|
|
2554
|
+
customDuration?: Duration;
|
|
2555
|
+
/**
|
|
2556
|
+
* Date of the next billing cycle so that the upcoming charges will be calculated accordingly.
|
|
2557
|
+
* If not provided, the upcoming charges will be calculated according to the existing next billing date.
|
|
2558
|
+
*/
|
|
2559
|
+
nextBillingDate?: Date | null;
|
|
2181
2560
|
}
|
|
2182
|
-
interface
|
|
2183
|
-
|
|
2561
|
+
interface ListUpcomingChargesResponse {
|
|
2562
|
+
upcomingCharges?: SubscriptionCharge[];
|
|
2184
2563
|
}
|
|
2185
|
-
interface
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
subscriptionId?: string;
|
|
2564
|
+
interface PreviewSubscriptionChargesRequest extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2565
|
+
/** Information about a non-existing subscription. */
|
|
2566
|
+
subscriptionInfo?: SubscriptionInfo;
|
|
2189
2567
|
}
|
|
2190
2568
|
/** @oneof */
|
|
2191
|
-
interface
|
|
2192
|
-
|
|
2569
|
+
interface PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2570
|
+
/** Information about a non-existing subscription. */
|
|
2571
|
+
subscriptionInfo?: SubscriptionInfo;
|
|
2193
2572
|
}
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2573
|
+
/** Subscription information to use for calculating the preview of charges for a subscription. */
|
|
2574
|
+
interface SubscriptionInfo {
|
|
2575
|
+
billingSettings?: BillingSettings;
|
|
2576
|
+
items?: Item[];
|
|
2577
|
+
startDate?: Date | null;
|
|
2198
2578
|
}
|
|
2199
|
-
interface
|
|
2579
|
+
interface PreviewSubscriptionChargesResponse {
|
|
2580
|
+
/** Charges for subscription. */
|
|
2581
|
+
charges?: Charge[];
|
|
2200
2582
|
}
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2583
|
+
/** Represents a charge applicable to a subscription. */
|
|
2584
|
+
interface Charge {
|
|
2585
|
+
/** The cycle number from which the charge starts. */
|
|
2586
|
+
cycleFrom?: number;
|
|
2587
|
+
/** The number of cycles for which the charge is applicable. */
|
|
2588
|
+
cycleCount?: number | null;
|
|
2589
|
+
/** The breakdown of the charge */
|
|
2590
|
+
totals?: Totals;
|
|
2591
|
+
/** The billing date from which the charge starts */
|
|
2592
|
+
cycleBillingDate?: Date | null;
|
|
2205
2593
|
}
|
|
2206
|
-
interface
|
|
2207
|
-
|
|
2594
|
+
interface PreviewSubscriptionsChargesRequest {
|
|
2595
|
+
/** Information required to calculate the preview charges for the subscriptions, including an identifier. */
|
|
2596
|
+
subscriptionsBillingDetails?: SubscriptionBillingDetails[];
|
|
2597
|
+
/**
|
|
2598
|
+
* Specifies the number of upcoming billing charges to preview for all subscriptions in the order.
|
|
2599
|
+
* For instance, if a subscription costs $10 for the first 3 cycles, $12 for cycles 4 through 7,
|
|
2600
|
+
* $15 for cycles 8 through 10, and $20 for cycle 11 onwards:
|
|
2601
|
+
* - Sending "1" will calculate and return charges for cycles 4 through 7 since it's the first charge in the future.
|
|
2602
|
+
* - Sending "2" will provide a response with charges for cycles 4 through 7 and cycles 8 through 10.
|
|
2603
|
+
* - Sending "3" or more will include totals for cycles 4 through 7, cycles 8 through 10, and from cycle 11 onwards.
|
|
2604
|
+
* If no value is provided, the response will include charges for all upcoming cycles, including the existing one,
|
|
2605
|
+
* in this case, charges for cycle 1 through 3.
|
|
2606
|
+
* If there is a single charge for a subscription, meaning that subscription price remains consistent across all cycles,
|
|
2607
|
+
* then even if future_charges_count is set, it will be ignored and the only charge this subscription has will be returned.
|
|
2608
|
+
*/
|
|
2609
|
+
numberOfNextRecurringCharges?: number | null;
|
|
2208
2610
|
}
|
|
2209
|
-
interface
|
|
2210
|
-
|
|
2611
|
+
interface SubscriptionBillingDetails {
|
|
2612
|
+
/** External identifier of the subscription */
|
|
2613
|
+
externalId?: string | null;
|
|
2614
|
+
/** Billing details parameters including schedule, currency, etc. */
|
|
2615
|
+
billingSettings?: BillingSettings;
|
|
2616
|
+
/** Items, minSize is 1, maxSize is 100 */
|
|
2617
|
+
items?: Item[];
|
|
2618
|
+
/** Subscription start date, now if not set */
|
|
2619
|
+
startDate?: Date | null;
|
|
2620
|
+
/** Shipping address associated with subscription. At the moment used only for payments. Optional. */
|
|
2621
|
+
shippingAddress?: FullAddressDetails;
|
|
2211
2622
|
}
|
|
2212
|
-
interface
|
|
2213
|
-
|
|
2623
|
+
interface PreviewSubscriptionsChargesResponse {
|
|
2624
|
+
/** Charges for the subscriptions, including an identifier. */
|
|
2625
|
+
subscriptionsCharges?: SubscriptionCharges[];
|
|
2214
2626
|
}
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2627
|
+
interface SubscriptionCharges {
|
|
2628
|
+
/** External identifier of the subscription */
|
|
2629
|
+
externalId?: string | null;
|
|
2630
|
+
/** Charges for subscription. */
|
|
2631
|
+
charges?: Charge[];
|
|
2218
2632
|
}
|
|
2219
|
-
interface
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
/**
|
|
2223
|
-
|
|
2224
|
-
* Active shows that a subscription is live and operational.
|
|
2225
|
-
* For example:
|
|
2226
|
-
* * For subscription with free trial, free trial start date is also the activation date.
|
|
2227
|
-
* * For a subscription with future start date, the start date is also the activation date.
|
|
2228
|
-
* * When a subscription is resumed from a pause status, the resume date is also the activation date.
|
|
2229
|
-
*/
|
|
2230
|
-
interface SubscriptionActivated {
|
|
2231
|
-
subscription?: Subscription;
|
|
2232
|
-
}
|
|
2233
|
-
/**
|
|
2234
|
-
* Sent each time a subscription status has been set to Ended
|
|
2235
|
-
* Ended shows that a subscription reached its end date and ended its life cycle as a result of the agreement.
|
|
2236
|
-
* This is different from a Canceled subscription which ends the subscription before a designated end date.
|
|
2237
|
-
* Therefore, Ended and Canceled are mutually exclusive.
|
|
2238
|
-
*/
|
|
2239
|
-
interface SubscriptionEnded {
|
|
2240
|
-
subscription?: Subscription;
|
|
2241
|
-
}
|
|
2242
|
-
interface SubscriptionInitialPurchaseCompleted {
|
|
2243
|
-
subscription?: Subscription;
|
|
2244
|
-
actionDetails?: ActionDetails;
|
|
2245
|
-
paymentTransactionId?: string | null;
|
|
2246
|
-
}
|
|
2247
|
-
interface SubscriptionCycleReadyToPay {
|
|
2248
|
-
subscription?: Subscription;
|
|
2249
|
-
}
|
|
2250
|
-
interface SubscriptionRevived {
|
|
2251
|
-
subscription?: Subscription;
|
|
2252
|
-
}
|
|
2253
|
-
interface CreateSubscriptionResponse {
|
|
2254
|
-
subscription?: Subscription;
|
|
2255
|
-
/** Payments order that should be paid (or authorize card) in order to activate subscription. Empty for free subscriptions. */
|
|
2256
|
-
paymentOrderId?: string | null;
|
|
2257
|
-
}
|
|
2258
|
-
interface UpdateSubscriptionRequest {
|
|
2259
|
-
/** Revision is validated if Subscription.revision is set */
|
|
2260
|
-
subscription?: Subscription;
|
|
2261
|
-
}
|
|
2262
|
-
interface UpdateSubscriptionResponse {
|
|
2263
|
-
subscription?: Subscription;
|
|
2264
|
-
}
|
|
2265
|
-
interface UpdateSubscriptionStartDateRequest {
|
|
2266
|
-
/** Subscription ID */
|
|
2267
|
-
_id?: string;
|
|
2268
|
-
/**
|
|
2269
|
-
* Can be updated only if Subscription is in Draft state
|
|
2270
|
-
* By setting start_date in the future, end_date will be recalculated for termed Subscriptions
|
|
2271
|
-
* cycles_to_pay_on_creation will be set to 1 if no free trial is set
|
|
2272
|
-
*/
|
|
2273
|
-
startDate?: Date | null;
|
|
2274
|
-
}
|
|
2275
|
-
interface UpdateSubscriptionStartDateResponse {
|
|
2276
|
-
subscription?: Subscription;
|
|
2277
|
-
}
|
|
2278
|
-
interface UpdateSubscriptionPoliciesRequest {
|
|
2279
|
-
/** Subscription ID */
|
|
2280
|
-
_id?: string;
|
|
2281
|
-
cancellableByCustomer?: boolean | null;
|
|
2282
|
-
}
|
|
2283
|
-
interface UpdateSubscriptionPoliciesResponse {
|
|
2284
|
-
/** Updated policies of the subscription */
|
|
2285
|
-
policies?: SubscriptionPolicies;
|
|
2286
|
-
}
|
|
2287
|
-
interface UpdateSubscriptionBillingDateRequest {
|
|
2288
|
-
/** ID of the subscription to update the billing date for. */
|
|
2289
|
-
_id: string;
|
|
2290
|
-
/** New billing date in `YYYY-MM-DDThh:mm:ss:sssZ` format. */
|
|
2291
|
-
billingDate: Date | null;
|
|
2292
|
-
/**
|
|
2293
|
-
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
2294
|
-
* the current billing cycle results in a higher payment, while shortening it
|
|
2295
|
-
* leads to a lower payment. BASS offers automatic calculation of the proration
|
|
2296
|
-
* amount based on the number of days added to or removed from the current billing
|
|
2297
|
-
* cycle. Alternatively, you can use your own custom method to calculate the
|
|
2298
|
-
* proration amount. The custom proration amount can't exceed the total of the
|
|
2299
|
-
* current billing cycle.
|
|
2300
|
-
*/
|
|
2301
|
-
proration?: Proration;
|
|
2302
|
-
}
|
|
2303
|
-
interface UpdateSubscriptionBillingDateResponse {
|
|
2304
|
-
/** Updated subscription. */
|
|
2305
|
-
subscription?: Subscription;
|
|
2306
|
-
}
|
|
2307
|
-
interface SubscriptionBillingDateUpdated {
|
|
2308
|
-
subscription?: Subscription;
|
|
2309
|
-
billingDate?: Date | null;
|
|
2310
|
-
proration?: Proration;
|
|
2311
|
-
}
|
|
2312
|
-
interface UpdateSubscriptionOriginRequest {
|
|
2313
|
-
/** ID of the subscription to update origin. */
|
|
2314
|
-
_id?: string;
|
|
2315
|
-
/** Origin entity ID of the subscription to update. */
|
|
2316
|
-
entityId?: string;
|
|
2317
|
-
}
|
|
2318
|
-
interface UpdateSubscriptionOriginResponse {
|
|
2319
|
-
/** Updated subscription. */
|
|
2320
|
-
subscription?: Subscription;
|
|
2321
|
-
}
|
|
2322
|
-
interface ReviseSubscriptionRequest {
|
|
2323
|
-
/** Subscription ID */
|
|
2324
|
-
_id?: string;
|
|
2325
|
-
/** 0 for no revision, maxSize is 100 */
|
|
2326
|
-
items?: Item[];
|
|
2327
|
-
}
|
|
2328
|
-
interface ReviseSubscriptionResponse {
|
|
2329
|
-
subscription?: Subscription;
|
|
2330
|
-
}
|
|
2331
|
-
interface UpdateSubscriptionItemsRequest {
|
|
2332
|
-
/** Subscription ID */
|
|
2333
|
-
_id?: string;
|
|
2334
|
-
/** Update action. For RESET_PENDING_UPDATES, nothing but the subscription ID should be defined in the request. */
|
|
2335
|
-
updateAction?: UpdateAction;
|
|
2336
|
-
/** Updates execution date. Relevant only for UpdateAction.SPECIFIC_DATE. Only specific date is supported. */
|
|
2337
|
-
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2338
|
-
/** Existing items to update */
|
|
2339
|
-
itemsToUpdate?: ItemChange[];
|
|
2340
|
-
/** Items to add */
|
|
2341
|
-
itemsToAdd?: Item[];
|
|
2342
|
-
/** Existing items to delete */
|
|
2343
|
-
itemsToDelete?: string[] | null;
|
|
2344
|
-
}
|
|
2345
|
-
declare enum UpdateAction {
|
|
2346
|
-
NONE = "NONE",
|
|
2347
|
-
/** Update subscription immediately, please note proration for updates changing price are not yet supported */
|
|
2348
|
-
IMMEDIATELY = "IMMEDIATELY",
|
|
2349
|
-
/** Request updates that will take affect only at the start of the next billing cycle. */
|
|
2350
|
-
NEXT_BILLING_CYCLE = "NEXT_BILLING_CYCLE",
|
|
2351
|
-
/** Reset all pending updates */
|
|
2352
|
-
RESET_PENDING_UPDATES = "RESET_PENDING_UPDATES",
|
|
2353
|
-
/** Request updates that will take affect only at a specific date. */
|
|
2354
|
-
SPECIFIC_DATE = "SPECIFIC_DATE"
|
|
2355
|
-
}
|
|
2356
|
-
interface ScheduleAdditionalInfo extends ScheduleAdditionalInfoParamOneOf {
|
|
2357
|
-
/**
|
|
2358
|
-
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2359
|
-
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2360
|
-
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2361
|
-
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2362
|
-
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2363
|
-
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2364
|
-
*/
|
|
2365
|
-
specificDate?: Date | null;
|
|
2366
|
-
/**
|
|
2367
|
-
* When the update becomes effective, as number of billing cycles from now.
|
|
2368
|
-
* The use of this field may be restricted in various BASS endpoints.
|
|
2369
|
-
* For example, in _Pause Subscription_ it's only available in
|
|
2370
|
-
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2371
|
-
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2372
|
-
*/
|
|
2373
|
-
numberOfCycles?: number;
|
|
2374
|
-
}
|
|
2375
|
-
/** @oneof */
|
|
2376
|
-
interface ScheduleAdditionalInfoParamOneOf {
|
|
2377
|
-
/**
|
|
2378
|
-
* Future date when the update becomes effective in `YYYY-MM-DDThh:mm:ss.sssZ`
|
|
2379
|
-
* format. The use of this field may be restricted in various BASS endpoints.
|
|
2380
|
-
* For example, in _Bulk Update Subscription Items_ it's only available in
|
|
2381
|
-
* combination with `{"updateAction": "SPECIFIC_DATE"}`, in _Resume Subscription_
|
|
2382
|
-
* only in combination with `{"resumeAt": "SPECIFIC_DATE"}`, and in
|
|
2383
|
-
* _Pause Subscription_ only in combination with `{"pauseAt": "SPECIFIC_DATE"}`.
|
|
2384
|
-
*/
|
|
2385
|
-
specificDate?: Date | null;
|
|
2386
|
-
/**
|
|
2387
|
-
* When the update becomes effective, as number of billing cycles from now.
|
|
2388
|
-
* The use of this field may be restricted in various BASS endpoints.
|
|
2389
|
-
* For example, in _Pause Subscription_ it's only available in
|
|
2390
|
-
* combination with `{"pauseAt": "NUMBER_OF_CYCLES_FROM_TODAY"}`.
|
|
2391
|
-
* __Note__: Currently not supported in _Bulk Update Subscription Items by Filter_.
|
|
2392
|
-
*/
|
|
2393
|
-
numberOfCycles?: number;
|
|
2394
|
-
}
|
|
2395
|
-
interface UpdateSubscriptionItemsResponse {
|
|
2396
|
-
subscription?: Subscription;
|
|
2397
|
-
}
|
|
2398
|
-
interface BulkUpdateSubscriptionItemsByFilterRequest {
|
|
2399
|
-
/**
|
|
2400
|
-
* Filter to identify the subscriptions for which items are updated. For
|
|
2401
|
-
* supported fields see
|
|
2402
|
-
* [Search and Query: Bulk Update Subscription Items By Filter](https://bo.wix.com/wix-docs/rest/drafts/subscriptions-by-billing-by-wix/search-and-query#drafts_subscriptions-by-billing-by-wix_search-and-query_bulk-update-subscription-items-by-filter).
|
|
2403
|
-
* Sending an empty subscription filter results in a validation error.
|
|
2404
|
-
* In case you pass `{"updateAction": "RESET_PENDING_UPDATES"}`, use only the
|
|
2405
|
-
* `subscriptionId` field inside this filter. Passing any other filter results
|
|
2406
|
-
* in a failed validation error.
|
|
2407
|
-
*/
|
|
2408
|
-
subscriptionFilter?: Record<string, any> | null;
|
|
2409
|
-
/**
|
|
2410
|
-
* Filter to specify which subscription items are updated. Make sure to use
|
|
2411
|
-
* the catalog item ID and not the item's unique ID. All subscription items
|
|
2412
|
-
* with matching `items.catalogReference.catalogItemId` are updated.
|
|
2413
|
-
*
|
|
2414
|
-
* Max: `100` reference catalog item IDs
|
|
2415
|
-
*/
|
|
2416
|
-
catalogReferenceIds?: string[] | null;
|
|
2417
|
-
/**
|
|
2418
|
-
* Information about the update timing and update type.
|
|
2419
|
-
*
|
|
2420
|
-
* + `"IMMEDIATELY"`: The updates become effective immediately.
|
|
2421
|
-
* + `"NEXT_BILLING_CYCLE"`: The updates are scheduled for the beginning of the next billing cycle.
|
|
2422
|
-
* + `"SPECIFIC_DATE"`: The updates are scheduled for the date specified in `scheduleAdditionalInfo.specificDate`.
|
|
2423
|
-
* + `"RESET_PENDING_UPDATES"`: All currently scheduled updates for the specified supcriptions are canceled. Use only the `subscriptionId` field inside `subscriptionFilter`, all other filters result in failed validation errors.
|
|
2424
|
-
*/
|
|
2425
|
-
updateAction?: UpdateAction;
|
|
2426
|
-
/**
|
|
2427
|
-
* Additional information for updates. Currently, only supported for
|
|
2428
|
-
* `{"updateAction": "SPECIFIC_DATE"}`.
|
|
2429
|
-
*/
|
|
2430
|
-
scheduleAdditionalInfo?: ScheduleAdditionalInfo;
|
|
2431
|
-
/**
|
|
2432
|
-
* Update details for the susbcription items that match the filtering.
|
|
2433
|
-
* Currently, you can update only the item price, quantity, and tax. Note
|
|
2434
|
-
* that all item properties are updated to the same values. In case you want set
|
|
2435
|
-
* different values for individual items, you must call
|
|
2436
|
-
* _Bulk Update Subscription Items By Filter_ multiple times, once per unique update.
|
|
2437
|
-
*/
|
|
2438
|
-
bulkItemUpdateData?: BulkItemChange;
|
|
2439
|
-
/** __Not implemented yet__. Items to add to the subscriptions matching the filtering. */
|
|
2440
|
-
itemsToAdd?: Item[];
|
|
2441
|
-
}
|
|
2442
|
-
interface BulkItemChange {
|
|
2443
|
-
/** Information about the new item price. */
|
|
2444
|
-
pricingModel?: PricingModel;
|
|
2445
|
-
/**
|
|
2446
|
-
* New item quantity.
|
|
2447
|
-
*
|
|
2448
|
-
* Min: `1`
|
|
2449
|
-
*/
|
|
2450
|
-
quantity?: number | null;
|
|
2451
|
-
/** Information about the new item tax. */
|
|
2452
|
-
tax?: Tax;
|
|
2453
|
-
}
|
|
2454
|
-
interface BulkUpdateSubscriptionItemsByFilterResponse {
|
|
2455
|
-
/**
|
|
2456
|
-
* ID of your bulk job. You can use
|
|
2457
|
-
* [this Async Infra call](https://pbo.wix.com/fire-console/?artifact=com.wixpress.asyncinfra.async-job-service&service=wix.infra.asyncjobs.v1.AsyncJobService&method=ListAsyncJobItems&body=eyJqb2JfaWQiOiIifQ%3D%3D)
|
|
2458
|
-
* to retrieve information about the job status.
|
|
2459
|
-
*/
|
|
2460
|
-
jobId?: string;
|
|
2461
|
-
}
|
|
2462
|
-
interface DeleteSubscriptionRequest {
|
|
2463
|
-
_id?: string;
|
|
2464
|
-
revision?: string;
|
|
2465
|
-
}
|
|
2466
|
-
interface DeleteSubscriptionResponse {
|
|
2467
|
-
}
|
|
2468
|
-
interface CancelSubscriptionRequest {
|
|
2469
|
-
_id: string;
|
|
2470
|
-
actionContext: ActionContext;
|
|
2471
|
-
}
|
|
2472
|
-
interface ActionContext {
|
|
2473
|
-
initiator?: ActionInitiator;
|
|
2474
|
-
/** Optional action reason message */
|
|
2475
|
-
reason?: string | null;
|
|
2476
|
-
}
|
|
2477
|
-
interface CancelSubscriptionResponse {
|
|
2478
|
-
subscription?: Subscription;
|
|
2479
|
-
}
|
|
2480
|
-
interface PauseSubscriptionRequest {
|
|
2481
|
-
_id: string;
|
|
2482
|
-
pausePolicy?: PausePolicy;
|
|
2483
|
-
pauseAt?: PauseAt;
|
|
2484
|
-
/** contains additional scheduling information for certain pause_at options (for example: SPECIFIC_DATE & NUMBER_OF_CYCLES_FROM_TODAY) */
|
|
2485
|
-
pauseAtSchedule?: ScheduleAdditionalInfo;
|
|
2486
|
-
/** contains additional scheduling information for certain auto_resume_at either specific date */
|
|
2487
|
-
autoResumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2488
|
-
actionContext: ActionContext;
|
|
2489
|
-
}
|
|
2490
|
-
interface PauseSubscriptionResponse {
|
|
2491
|
-
subscription?: Subscription;
|
|
2492
|
-
}
|
|
2493
|
-
interface SubscriptionPaused {
|
|
2494
|
-
subscription?: Subscription;
|
|
2495
|
-
pausePolicy?: PausePolicy;
|
|
2496
|
-
actionDetails?: ActionDetails;
|
|
2497
|
-
}
|
|
2498
|
-
interface PauseSubscriptionRequested {
|
|
2499
|
-
subscription?: Subscription;
|
|
2500
|
-
pauseAt?: PauseAt;
|
|
2501
|
-
pausePolicy?: PausePolicy;
|
|
2502
|
-
actionDetails?: ActionDetails;
|
|
2503
|
-
}
|
|
2504
|
-
interface ScheduledPauseCanceled {
|
|
2505
|
-
subscription?: Subscription;
|
|
2506
|
-
actionDetails?: ActionDetails;
|
|
2507
|
-
}
|
|
2508
|
-
interface ResumeSubscriptionRequest {
|
|
2509
|
-
_id: string;
|
|
2510
|
-
resumeAt?: ResumeAt;
|
|
2511
|
-
/** contains additional scheduling information for certain resume_at options (for example: SPECIFIC_DATE) */
|
|
2512
|
-
resumeAtSchedule?: ScheduleAdditionalInfo;
|
|
2513
|
-
actionContext: ActionContext;
|
|
2514
|
-
}
|
|
2515
|
-
interface ResumeSubscriptionResponse {
|
|
2516
|
-
subscription?: Subscription;
|
|
2517
|
-
}
|
|
2518
|
-
interface SubscriptionResumed {
|
|
2519
|
-
subscription?: Subscription;
|
|
2520
|
-
actionDetails?: ActionDetails;
|
|
2521
|
-
}
|
|
2522
|
-
interface ResumeSubscriptionRequested {
|
|
2523
|
-
subscription?: Subscription;
|
|
2524
|
-
resumeAt?: ResumeAt;
|
|
2525
|
-
actionDetails?: ActionDetails;
|
|
2526
|
-
}
|
|
2527
|
-
interface ScheduledResumeCanceled {
|
|
2528
|
-
subscription?: Subscription;
|
|
2529
|
-
actionDetails?: ActionDetails;
|
|
2530
|
-
}
|
|
2531
|
-
interface SearchSubscriptionsRequest extends SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2532
|
-
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2533
|
-
paging?: Paging;
|
|
2534
|
-
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2535
|
-
cursor?: CursorPaging;
|
|
2536
|
-
/** A filter object */
|
|
2537
|
-
filter?: any;
|
|
2538
|
-
/** A Sorting option by field name and order. */
|
|
2539
|
-
sorting?: SortingClauses;
|
|
2540
|
-
}
|
|
2541
|
-
/** @oneof */
|
|
2542
|
-
interface SearchSubscriptionsRequestPagingMethodOneOf {
|
|
2543
|
-
/** Limit number of results and enable to skip rows. The default limit is 25. */
|
|
2544
|
-
paging?: Paging;
|
|
2545
|
-
/** A Cursor option for efficient paging. Pass this field from the previous search response to continue to the next page. */
|
|
2546
|
-
cursor?: CursorPaging;
|
|
2547
|
-
}
|
|
2548
|
-
interface SortingClauses {
|
|
2549
|
-
sorting?: Sorting[];
|
|
2550
|
-
}
|
|
2551
|
-
interface SearchSubscriptionsResponse {
|
|
2552
|
-
subscriptions?: Subscription[];
|
|
2553
|
-
cursor?: CursorPaging;
|
|
2554
|
-
}
|
|
2555
|
-
interface TurnOnSubscriptionAutoRenewalRequest {
|
|
2556
|
-
_id: string;
|
|
2557
|
-
actionContext: ActionContext;
|
|
2558
|
-
}
|
|
2559
|
-
interface TurnOnSubscriptionAutoRenewalResponse {
|
|
2560
|
-
subscription?: Subscription;
|
|
2561
|
-
}
|
|
2562
|
-
interface SubscriptionAutoRenewalTurnedOn {
|
|
2563
|
-
subscription?: Subscription;
|
|
2564
|
-
actionDetails?: ActionDetails;
|
|
2565
|
-
}
|
|
2566
|
-
interface TurnOffSubscriptionAutoRenewalRequest {
|
|
2567
|
-
_id: string;
|
|
2568
|
-
actionContext: ActionContext;
|
|
2569
|
-
}
|
|
2570
|
-
interface TurnOffSubscriptionAutoRenewalResponse {
|
|
2571
|
-
subscription?: Subscription;
|
|
2572
|
-
}
|
|
2573
|
-
interface SubscriptionAutoRenewalTurnedOff {
|
|
2574
|
-
subscription?: Subscription;
|
|
2575
|
-
actionDetails?: ActionDetails;
|
|
2576
|
-
}
|
|
2577
|
-
interface MarkLatestInvoiceAsPaidRequest {
|
|
2578
|
-
/** The ID of the offline subscription to mark as paid its latest invoice */
|
|
2579
|
-
subscriptionId: string;
|
|
2580
|
-
}
|
|
2581
|
-
interface MarkLatestInvoiceAsPaidResponse {
|
|
2582
|
-
subscription?: Subscription;
|
|
2583
|
-
}
|
|
2584
|
-
interface LatestInvoiceMarkedAsPaid {
|
|
2585
|
-
subscription?: Subscription;
|
|
2586
|
-
}
|
|
2587
|
-
interface GetSubscriptionsStatsRequest {
|
|
2588
|
-
}
|
|
2589
|
-
interface GetSubscriptionsStatsResponse {
|
|
2590
|
-
amountByStatuses?: AmountByStatus[];
|
|
2591
|
-
total?: number;
|
|
2592
|
-
}
|
|
2593
|
-
interface AmountByStatus {
|
|
2594
|
-
status?: SubscriptionStatusEnumSubscriptionStatus;
|
|
2595
|
-
amount?: number;
|
|
2596
|
-
}
|
|
2597
|
-
interface ExtendSubscriptionRequest extends ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2598
|
-
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2599
|
-
extensionPeriod?: Duration;
|
|
2600
|
-
/** user will be charged for billing cycles added */
|
|
2601
|
-
extensionBillingCycles?: number;
|
|
2602
|
-
/** The ID of the subscription to be extended */
|
|
2603
|
-
_id: string;
|
|
2604
|
-
actionContext: ActionContext;
|
|
2605
|
-
}
|
|
2606
|
-
/** @oneof */
|
|
2607
|
-
interface ExtendSubscriptionRequestExtendPolicyOneOf {
|
|
2608
|
-
/** User won't be charged for additional period added on top of subscription end date. */
|
|
2609
|
-
extensionPeriod?: Duration;
|
|
2610
|
-
/** user will be charged for billing cycles added */
|
|
2611
|
-
extensionBillingCycles?: number;
|
|
2612
|
-
}
|
|
2613
|
-
interface ExtendSubscriptionResponse {
|
|
2614
|
-
/** The now extended subscription */
|
|
2615
|
-
subscription?: Subscription;
|
|
2616
|
-
}
|
|
2617
|
-
interface AllowedActionsRequest {
|
|
2618
|
-
_id: string;
|
|
2619
|
-
/** List of additional fields to be included in the response. */
|
|
2620
|
-
fields?: RequestedFields[];
|
|
2621
|
-
}
|
|
2622
|
-
declare enum RequestedFields {
|
|
2623
|
-
UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
|
|
2624
|
-
/** Include unsupported action list, including the reasons for the lack of support */
|
|
2625
|
-
UNSUPPORTED_ACTION = "UNSUPPORTED_ACTION"
|
|
2626
|
-
}
|
|
2627
|
-
interface AllowedActionsResponse {
|
|
2628
|
-
/** List of actions that are allowed. */
|
|
2629
|
-
actions?: Action[];
|
|
2630
|
-
/** List of actions that are not supported, included only if requested. Provides reasons for each unsupported action. */
|
|
2631
|
-
unsupportedActions?: UnsupportedAction[];
|
|
2632
|
-
}
|
|
2633
|
-
interface UnsupportedAction {
|
|
2634
|
-
actionType?: ActionType;
|
|
2635
|
-
/** Provides detailed reasons for the unsupported action. Each `UnsupportedReason` includes a code and a message explaining why the action is not allowed. */
|
|
2636
|
-
reasons?: UnsupportedReason[];
|
|
2637
|
-
}
|
|
2638
|
-
interface UnsupportedReason {
|
|
2639
|
-
code?: string;
|
|
2640
|
-
description?: string | null;
|
|
2641
|
-
}
|
|
2642
|
-
interface ListUpcomingChargesRequest {
|
|
2643
|
-
/** Subscription id charges to be previewed for */
|
|
2644
|
-
subscriptionId: string;
|
|
2645
|
-
/** Period of time to provide charged for. If not provided,then only next charge will be returned. */
|
|
2646
|
-
customDuration?: Duration;
|
|
2647
|
-
/**
|
|
2648
|
-
* Date of the next billing cycle so that the upcoming charges will be calculated accordingly.
|
|
2649
|
-
* If not provided, the upcoming charges will be calculated according to the existing next billing date.
|
|
2650
|
-
*/
|
|
2651
|
-
nextBillingDate?: Date | null;
|
|
2652
|
-
}
|
|
2653
|
-
interface ListUpcomingChargesResponse {
|
|
2654
|
-
upcomingCharges?: SubscriptionCharge[];
|
|
2655
|
-
}
|
|
2656
|
-
interface PreviewSubscriptionChargesRequest extends PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2657
|
-
/** Information about a non-existing subscription. */
|
|
2658
|
-
subscriptionInfo?: SubscriptionInfo;
|
|
2659
|
-
}
|
|
2660
|
-
/** @oneof */
|
|
2661
|
-
interface PreviewSubscriptionChargesRequestSubscriptionOneOf {
|
|
2662
|
-
/** Information about a non-existing subscription. */
|
|
2663
|
-
subscriptionInfo?: SubscriptionInfo;
|
|
2664
|
-
}
|
|
2665
|
-
/** Subscription information to use for calculating the preview of charges for a subscription. */
|
|
2666
|
-
interface SubscriptionInfo {
|
|
2667
|
-
billingSettings?: BillingSettings;
|
|
2668
|
-
items?: Item[];
|
|
2669
|
-
startDate?: Date | null;
|
|
2670
|
-
}
|
|
2671
|
-
interface PreviewSubscriptionChargesResponse {
|
|
2672
|
-
/** Charges for subscription. */
|
|
2673
|
-
charges?: Charge[];
|
|
2674
|
-
}
|
|
2675
|
-
/** Represents a charge applicable to a subscription. */
|
|
2676
|
-
interface Charge {
|
|
2677
|
-
/** The cycle number from which the charge starts. */
|
|
2678
|
-
cycleFrom?: number;
|
|
2679
|
-
/** The number of cycles for which the charge is applicable. */
|
|
2680
|
-
cycleCount?: number | null;
|
|
2681
|
-
/** The breakdown of the charge */
|
|
2682
|
-
totals?: Totals;
|
|
2683
|
-
/** The billing date from which the charge starts */
|
|
2684
|
-
cycleBillingDate?: Date | null;
|
|
2685
|
-
}
|
|
2686
|
-
interface PreviewSubscriptionsChargesRequest {
|
|
2687
|
-
/** Information required to calculate the preview charges for the subscriptions, including an identifier. */
|
|
2688
|
-
subscriptionsBillingDetails?: SubscriptionBillingDetails[];
|
|
2689
|
-
/**
|
|
2690
|
-
* Specifies the number of upcoming billing charges to preview for all subscriptions in the order.
|
|
2691
|
-
* For instance, if a subscription costs $10 for the first 3 cycles, $12 for cycles 4 through 7,
|
|
2692
|
-
* $15 for cycles 8 through 10, and $20 for cycle 11 onwards:
|
|
2693
|
-
* - Sending "1" will calculate and return charges for cycles 4 through 7 since it's the first charge in the future.
|
|
2694
|
-
* - Sending "2" will provide a response with charges for cycles 4 through 7 and cycles 8 through 10.
|
|
2695
|
-
* - Sending "3" or more will include totals for cycles 4 through 7, cycles 8 through 10, and from cycle 11 onwards.
|
|
2696
|
-
* If no value is provided, the response will include charges for all upcoming cycles, including the existing one,
|
|
2697
|
-
* in this case, charges for cycle 1 through 3.
|
|
2698
|
-
* If there is a single charge for a subscription, meaning that subscription price remains consistent across all cycles,
|
|
2699
|
-
* then even if future_charges_count is set, it will be ignored and the only charge this subscription has will be returned.
|
|
2700
|
-
*/
|
|
2701
|
-
numberOfNextRecurringCharges?: number | null;
|
|
2702
|
-
}
|
|
2703
|
-
interface SubscriptionBillingDetails {
|
|
2704
|
-
/** External identifier of the subscription */
|
|
2705
|
-
externalId?: string | null;
|
|
2706
|
-
/** Billing details parameters including schedule, currency, etc. */
|
|
2707
|
-
billingSettings?: BillingSettings;
|
|
2708
|
-
/** Items, minSize is 1, maxSize is 100 */
|
|
2709
|
-
items?: Item[];
|
|
2710
|
-
/** Subscription start date, now if not set */
|
|
2711
|
-
startDate?: Date | null;
|
|
2712
|
-
/** Shipping address associated with subscription. At the moment used only for payments. Optional. */
|
|
2713
|
-
shippingAddress?: FullAddressDetails;
|
|
2714
|
-
}
|
|
2715
|
-
interface PreviewSubscriptionsChargesResponse {
|
|
2716
|
-
/** Charges for the subscriptions, including an identifier. */
|
|
2717
|
-
subscriptionsCharges?: SubscriptionCharges[];
|
|
2718
|
-
}
|
|
2719
|
-
interface SubscriptionCharges {
|
|
2720
|
-
/** External identifier of the subscription */
|
|
2721
|
-
externalId?: string | null;
|
|
2722
|
-
/** Charges for subscription. */
|
|
2723
|
-
charges?: Charge[];
|
|
2724
|
-
}
|
|
2725
|
-
interface CreateSubscriptionForOrderRequest {
|
|
2726
|
-
/** Subscription needs to be created */
|
|
2727
|
-
subscription?: Subscription;
|
|
2728
|
-
/** Optional unique identifier for this request in order to prevent subscription duplications */
|
|
2729
|
-
idempotencyKey?: string | null;
|
|
2633
|
+
interface CreateSubscriptionForOrderRequest {
|
|
2634
|
+
/** Subscription needs to be created */
|
|
2635
|
+
subscription?: Subscription;
|
|
2636
|
+
/** Optional unique identifier for this request in order to prevent subscription duplications */
|
|
2637
|
+
idempotencyKey?: string | null;
|
|
2730
2638
|
}
|
|
2731
2639
|
interface CreateSubscriptionForOrderResponse {
|
|
2732
2640
|
/** Created subscription */
|
|
@@ -3046,6 +2954,8 @@ interface Reschedule {
|
|
|
3046
2954
|
executeAt?: Date | null;
|
|
3047
2955
|
payload?: string | null;
|
|
3048
2956
|
}
|
|
2957
|
+
interface Empty {
|
|
2958
|
+
}
|
|
3049
2959
|
interface V1SubscriptionEvent extends V1SubscriptionEventEventOneOf {
|
|
3050
2960
|
/** A subscriptions was created */
|
|
3051
2961
|
created?: V1SubscriptionCreated;
|
|
@@ -3260,254 +3170,362 @@ declare enum SubscriptionFrequency {
|
|
|
3260
3170
|
MONTH = "MONTH",
|
|
3261
3171
|
YEAR = "YEAR"
|
|
3262
3172
|
}
|
|
3263
|
-
/** Trial period of subscription */
|
|
3264
|
-
interface SubscriptionTrialPeriod {
|
|
3265
|
-
/** trial period in units (required) */
|
|
3266
|
-
period?: number;
|
|
3267
|
-
/** units in which trial period is described (optional, default DAY) */
|
|
3268
|
-
unit?: SubscriptionFrequency;
|
|
3173
|
+
/** Trial period of subscription */
|
|
3174
|
+
interface SubscriptionTrialPeriod {
|
|
3175
|
+
/** trial period in units (required) */
|
|
3176
|
+
period?: number;
|
|
3177
|
+
/** units in which trial period is described (optional, default DAY) */
|
|
3178
|
+
unit?: SubscriptionFrequency;
|
|
3179
|
+
}
|
|
3180
|
+
declare enum CancellationInitiator {
|
|
3181
|
+
/** Cancellation initiator undefined */
|
|
3182
|
+
UNDEFINED = "UNDEFINED",
|
|
3183
|
+
/** Subscription was canceled by site owner (default if canceled by user or service identity) */
|
|
3184
|
+
OWNER = "OWNER",
|
|
3185
|
+
/** Subscription was canceled by member (default if canceled by member identity) */
|
|
3186
|
+
MEMBER = "MEMBER",
|
|
3187
|
+
/** Subscription was canceled because of payment failure */
|
|
3188
|
+
PAYMENT_FAILURE = "PAYMENT_FAILURE",
|
|
3189
|
+
/** Subscription was canceled because of payment setup failure */
|
|
3190
|
+
SETUP_FAILURE = "SETUP_FAILURE"
|
|
3191
|
+
}
|
|
3192
|
+
interface SubscriptionPolicy {
|
|
3193
|
+
/** Subscription expiration date can be updated */
|
|
3194
|
+
expiryDateChangeable?: boolean;
|
|
3195
|
+
/** Subscription can be cancelled by the member who bought it (when memberId == subscriberId) */
|
|
3196
|
+
cancellableByMember?: boolean;
|
|
3197
|
+
/** Subscription expiration date on cancellation can be set to next payment date */
|
|
3198
|
+
cancellableAtNextPaymentCycle?: boolean;
|
|
3199
|
+
}
|
|
3200
|
+
interface Suspension {
|
|
3201
|
+
status?: Status;
|
|
3202
|
+
/** Beginning of the suspended period */
|
|
3203
|
+
startsAt?: Date | null;
|
|
3204
|
+
/** End of the suspended period */
|
|
3205
|
+
endsAt?: Date | null;
|
|
3206
|
+
}
|
|
3207
|
+
declare enum Status {
|
|
3208
|
+
UNDEFINED = "UNDEFINED",
|
|
3209
|
+
ACTIVE = "ACTIVE",
|
|
3210
|
+
ENDED = "ENDED"
|
|
3211
|
+
}
|
|
3212
|
+
/** A duration expressed in amount of time units. */
|
|
3213
|
+
interface V1Duration {
|
|
3214
|
+
/** Amount of the unit */
|
|
3215
|
+
amount?: number;
|
|
3216
|
+
/** Day, Week, Month, Year. */
|
|
3217
|
+
unit?: SubscriptionFrequency;
|
|
3218
|
+
}
|
|
3219
|
+
interface V1SubscriptionActivated {
|
|
3220
|
+
subscription?: V1Subscription;
|
|
3221
|
+
}
|
|
3222
|
+
interface V1SubscriptionCanceled {
|
|
3223
|
+
subscription?: V1Subscription;
|
|
3224
|
+
}
|
|
3225
|
+
interface V1SubscriptionUpdated {
|
|
3226
|
+
subscription?: V1Subscription;
|
|
3227
|
+
}
|
|
3228
|
+
interface SubscriptionCycleTriggered {
|
|
3229
|
+
subscription?: V1Subscription;
|
|
3230
|
+
billingCycle?: number;
|
|
3231
|
+
/** Wix Pay transaction id, optional. Exists if event was triggered by a payment. */
|
|
3232
|
+
transactionId?: string | null;
|
|
3233
|
+
}
|
|
3234
|
+
interface SubscriptionMarkedAsPaid {
|
|
3235
|
+
subscription?: V1Subscription;
|
|
3236
|
+
/** A number indicating which payment (cycle) was marked as paid. For recurring subscriptions only. */
|
|
3237
|
+
billingCycle?: number | null;
|
|
3238
|
+
}
|
|
3239
|
+
interface SubscriptionCancellationRequested {
|
|
3240
|
+
subscription?: V1Subscription;
|
|
3241
|
+
}
|
|
3242
|
+
interface SubscriptionSuspended {
|
|
3243
|
+
subscription?: V1Subscription;
|
|
3244
|
+
}
|
|
3245
|
+
interface V1SubscriptionResumed {
|
|
3246
|
+
subscription?: V1Subscription;
|
|
3247
|
+
}
|
|
3248
|
+
interface SubscriptionExpired {
|
|
3249
|
+
subscription?: V1Subscription;
|
|
3250
|
+
}
|
|
3251
|
+
interface V1SubscriptionInitialPurchaseCompleted {
|
|
3252
|
+
subscription?: V1Subscription;
|
|
3253
|
+
}
|
|
3254
|
+
interface CreateSubscriptionInStateRequest extends CreateSubscriptionInStateRequestModeOneOf {
|
|
3255
|
+
activeSubscription?: CreateSubscriptionRequest;
|
|
3256
|
+
}
|
|
3257
|
+
/** @oneof */
|
|
3258
|
+
interface CreateSubscriptionInStateRequestModeOneOf {
|
|
3259
|
+
activeSubscription?: CreateSubscriptionRequest;
|
|
3260
|
+
}
|
|
3261
|
+
interface CreateSubscriptionInStateResponse {
|
|
3262
|
+
subscriptionId?: string;
|
|
3263
|
+
}
|
|
3264
|
+
interface PayCycleRequest {
|
|
3265
|
+
subscriptionId: string;
|
|
3266
|
+
paymentTestMode?: PaymentTestMode;
|
|
3267
|
+
tenantId: string;
|
|
3268
|
+
}
|
|
3269
|
+
declare enum PaymentTestMode {
|
|
3270
|
+
REGULAR = "REGULAR",
|
|
3271
|
+
FAIL_TECHNICAL = "FAIL_TECHNICAL",
|
|
3272
|
+
FAIL_DECLINE = "FAIL_DECLINE",
|
|
3273
|
+
FAIL_RETRYABLE_DECLINE = "FAIL_RETRYABLE_DECLINE"
|
|
3274
|
+
}
|
|
3275
|
+
interface PayCycleResponse {
|
|
3276
|
+
invoiceId?: string;
|
|
3277
|
+
paymentOrderId?: string | null;
|
|
3278
|
+
subscription?: Subscription;
|
|
3279
|
+
}
|
|
3280
|
+
interface GetFullSubscriptionDataRequest {
|
|
3281
|
+
_id?: string;
|
|
3282
|
+
}
|
|
3283
|
+
interface GetFullSubscriptionDataResponse {
|
|
3284
|
+
subscription?: Subscription;
|
|
3285
|
+
internalSubscriptionData?: InternalSubscriptionData;
|
|
3286
|
+
}
|
|
3287
|
+
interface InternalSubscriptionData {
|
|
3288
|
+
originInstanceId?: string;
|
|
3289
|
+
source?: string | null;
|
|
3290
|
+
billingType?: string;
|
|
3291
|
+
isOneTime?: boolean;
|
|
3292
|
+
migrationDetails?: MigrationDetails;
|
|
3293
|
+
pausePaidDuration?: string | null;
|
|
3294
|
+
authorizationPaymentData?: PaymentData;
|
|
3295
|
+
currentCyclePausePeriods?: PausePeriod[];
|
|
3296
|
+
}
|
|
3297
|
+
interface MigrationDetails {
|
|
3298
|
+
/** system (application) where the Subscription has been created */
|
|
3299
|
+
originSystem?: string;
|
|
3300
|
+
/** date when the Subscription started to be managed in BASS */
|
|
3301
|
+
shiftManagementDate?: Date | null;
|
|
3302
|
+
}
|
|
3303
|
+
interface PausePeriod {
|
|
3304
|
+
startDate?: Date | null;
|
|
3305
|
+
endDate?: Date | null;
|
|
3306
|
+
}
|
|
3307
|
+
interface GetSubscriptionAndInternalDataRequest {
|
|
3308
|
+
subscriptionId?: string;
|
|
3309
|
+
tenantId?: string;
|
|
3310
|
+
}
|
|
3311
|
+
interface GetSubscriptionAndInternalDataResponse {
|
|
3312
|
+
subscription?: Subscription;
|
|
3313
|
+
internalSubscriptionData?: InternalSubscriptionData;
|
|
3314
|
+
}
|
|
3315
|
+
interface SearchSubscriptionRequest {
|
|
3316
|
+
_id?: string;
|
|
3317
|
+
tenantId?: string;
|
|
3318
|
+
}
|
|
3319
|
+
interface SearchSubscriptionResponse {
|
|
3320
|
+
subscription?: Subscription;
|
|
3321
|
+
}
|
|
3322
|
+
interface UpdatePausePaidDurationRequest {
|
|
3323
|
+
subscriptionId?: string;
|
|
3324
|
+
pausePaidDurationSeconds?: string;
|
|
3325
|
+
tenantId?: string;
|
|
3326
|
+
}
|
|
3327
|
+
interface UpdatePausePaidDurationResponse {
|
|
3328
|
+
}
|
|
3329
|
+
interface UpdateStatusRequest {
|
|
3330
|
+
subscriptionId?: string;
|
|
3331
|
+
tenantId?: string;
|
|
3332
|
+
status?: SubscriptionStatusEnumSubscriptionStatus;
|
|
3333
|
+
}
|
|
3334
|
+
interface UpdateStatusResponse {
|
|
3335
|
+
subscription?: Subscription;
|
|
3336
|
+
}
|
|
3337
|
+
interface UpdatePaymentStatusRequest {
|
|
3338
|
+
subscriptionId?: string;
|
|
3339
|
+
tenantId?: string;
|
|
3340
|
+
paymentStatus?: PaymentStatus;
|
|
3341
|
+
}
|
|
3342
|
+
interface UpdatePaymentStatusResponse {
|
|
3343
|
+
subscription?: Subscription;
|
|
3344
|
+
}
|
|
3345
|
+
interface ReviveSubscriptionRequest {
|
|
3346
|
+
tenantId?: string;
|
|
3347
|
+
subscriptionId?: string;
|
|
3348
|
+
revivePolicy?: RevivePolicy;
|
|
3349
|
+
isTestRun?: boolean;
|
|
3350
|
+
}
|
|
3351
|
+
declare enum RevivePolicy {
|
|
3352
|
+
SIMPLE = "SIMPLE",
|
|
3353
|
+
RESUME = "RESUME"
|
|
3354
|
+
}
|
|
3355
|
+
interface ReviveSubscriptionResponse {
|
|
3356
|
+
subscription?: Subscription;
|
|
3357
|
+
}
|
|
3358
|
+
interface ConvertSapiRequest {
|
|
3359
|
+
subscriptionId?: string;
|
|
3360
|
+
}
|
|
3361
|
+
interface ConvertSapiResponse {
|
|
3362
|
+
subscription?: Subscription;
|
|
3269
3363
|
}
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
UNDEFINED = "UNDEFINED",
|
|
3273
|
-
/** Subscription was canceled by site owner (default if canceled by user or service identity) */
|
|
3274
|
-
OWNER = "OWNER",
|
|
3275
|
-
/** Subscription was canceled by member (default if canceled by member identity) */
|
|
3276
|
-
MEMBER = "MEMBER",
|
|
3277
|
-
/** Subscription was canceled because of payment failure */
|
|
3278
|
-
PAYMENT_FAILURE = "PAYMENT_FAILURE",
|
|
3279
|
-
/** Subscription was canceled because of payment setup failure */
|
|
3280
|
-
SETUP_FAILURE = "SETUP_FAILURE"
|
|
3364
|
+
interface GetSubscriptionInvoicesRequest {
|
|
3365
|
+
_id?: string;
|
|
3281
3366
|
}
|
|
3282
|
-
interface
|
|
3283
|
-
|
|
3284
|
-
expiryDateChangeable?: boolean;
|
|
3285
|
-
/** Subscription can be cancelled by the member who bought it (when memberId == subscriberId) */
|
|
3286
|
-
cancellableByMember?: boolean;
|
|
3287
|
-
/** Subscription expiration date on cancellation can be set to next payment date */
|
|
3288
|
-
cancellableAtNextPaymentCycle?: boolean;
|
|
3367
|
+
interface GetSubscriptionInvoicesResponse {
|
|
3368
|
+
invoices?: SubscriptionInvoice[];
|
|
3289
3369
|
}
|
|
3290
|
-
interface
|
|
3291
|
-
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
/** End of the suspended period */
|
|
3295
|
-
endsAt?: Date | null;
|
|
3370
|
+
interface SubscriptionInvoice {
|
|
3371
|
+
_id?: string;
|
|
3372
|
+
subscriptionCycle?: number;
|
|
3373
|
+
_createdDate?: Date | null;
|
|
3296
3374
|
}
|
|
3297
|
-
|
|
3298
|
-
|
|
3299
|
-
|
|
3300
|
-
ENDED = "ENDED"
|
|
3375
|
+
interface FinishFreeTrialNowRequest {
|
|
3376
|
+
subscriptionId?: string;
|
|
3377
|
+
tenantId?: string;
|
|
3301
3378
|
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
/** Amount of the unit */
|
|
3305
|
-
amount?: number;
|
|
3306
|
-
/** Day, Week, Month, Year. */
|
|
3307
|
-
unit?: SubscriptionFrequency;
|
|
3379
|
+
interface FinishFreeTrialNowResponse {
|
|
3380
|
+
subscription?: Subscription;
|
|
3308
3381
|
}
|
|
3309
|
-
interface
|
|
3310
|
-
|
|
3382
|
+
interface SendTimeCapsuleTaskCanceledBIRequest {
|
|
3383
|
+
tenantId?: string;
|
|
3384
|
+
subscriptionId?: string;
|
|
3385
|
+
taskType?: string;
|
|
3311
3386
|
}
|
|
3312
|
-
interface
|
|
3313
|
-
|
|
3387
|
+
interface ScheduleTimeCapsuleTaskRequest {
|
|
3388
|
+
subscriptionId?: string;
|
|
3389
|
+
taskType?: string;
|
|
3390
|
+
executionTime?: Date | null;
|
|
3391
|
+
tenantId?: string;
|
|
3314
3392
|
}
|
|
3315
|
-
interface
|
|
3316
|
-
|
|
3393
|
+
interface CancelTimeCapsuleTaskRequest {
|
|
3394
|
+
tenantId?: string;
|
|
3395
|
+
subscriptionId?: string;
|
|
3396
|
+
taskType?: string;
|
|
3317
3397
|
}
|
|
3318
|
-
interface
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
/** Wix Pay transaction id, optional. Exists if event was triggered by a payment. */
|
|
3322
|
-
transactionId?: string | null;
|
|
3398
|
+
interface UpdateFullSubscriptionRequest {
|
|
3399
|
+
tenantId?: string;
|
|
3400
|
+
subscription?: Subscription;
|
|
3323
3401
|
}
|
|
3324
|
-
interface
|
|
3325
|
-
subscription?:
|
|
3326
|
-
/** A number indicating which payment (cycle) was marked as paid. For recurring subscriptions only. */
|
|
3327
|
-
billingCycle?: number | null;
|
|
3402
|
+
interface UpdateFullSubscriptionResponse {
|
|
3403
|
+
subscription?: Subscription;
|
|
3328
3404
|
}
|
|
3329
|
-
interface
|
|
3330
|
-
|
|
3405
|
+
interface UpdateSubscriptionInvoiceCycleRequest {
|
|
3406
|
+
subscriptionId?: string;
|
|
3407
|
+
tenantId?: string;
|
|
3408
|
+
invoiceId?: string;
|
|
3409
|
+
subscriptionCycle?: number;
|
|
3331
3410
|
}
|
|
3332
|
-
interface
|
|
3333
|
-
|
|
3411
|
+
interface UpdateSubscriptionInvoiceCycleResponse {
|
|
3412
|
+
subscriptionInvoice?: SubscriptionInvoice;
|
|
3334
3413
|
}
|
|
3335
|
-
interface
|
|
3336
|
-
|
|
3414
|
+
interface AddPausePeriodRequest {
|
|
3415
|
+
tenantId?: string;
|
|
3416
|
+
subscriptionId?: string;
|
|
3417
|
+
pauseStartDate?: Date | null;
|
|
3418
|
+
pauseEndDate?: Date | null;
|
|
3337
3419
|
}
|
|
3338
|
-
interface
|
|
3339
|
-
subscription?:
|
|
3420
|
+
interface AddPausePeriodResponse {
|
|
3421
|
+
subscription?: Subscription;
|
|
3340
3422
|
}
|
|
3341
|
-
interface
|
|
3342
|
-
|
|
3423
|
+
interface RunTimeCapsuleTaskNowRequest {
|
|
3424
|
+
tenantId?: string;
|
|
3425
|
+
subscriptionId?: string;
|
|
3426
|
+
taskType?: string;
|
|
3343
3427
|
}
|
|
3344
|
-
interface
|
|
3345
|
-
subscriptionId
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
/** Cursor for efficient paging. If paging through results, pass this field from the previous search response to continue to the next page. */
|
|
3349
|
-
cursor?: CursorPaging;
|
|
3428
|
+
interface CreateRecurringInvoiceBORequest {
|
|
3429
|
+
subscriptionId?: string;
|
|
3430
|
+
tenantId?: string;
|
|
3431
|
+
cycleNumber?: number;
|
|
3350
3432
|
}
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
/** Comprehensive view including all history events. */
|
|
3354
|
-
BACKOFFICE = "BACKOFFICE",
|
|
3355
|
-
/** User-centric view of the history. */
|
|
3356
|
-
USER = "USER"
|
|
3433
|
+
interface CreateRecurringInvoiceBOResponse {
|
|
3434
|
+
invoiceId?: string;
|
|
3357
3435
|
}
|
|
3358
|
-
interface
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3436
|
+
interface SetShiftingDataRequest {
|
|
3437
|
+
subscriptionId?: string;
|
|
3438
|
+
tenantId?: string;
|
|
3439
|
+
isBassManaged?: boolean;
|
|
3440
|
+
shiftManagementDate?: Date | null;
|
|
3363
3441
|
}
|
|
3364
|
-
interface
|
|
3365
|
-
|
|
3366
|
-
/** TODO: add max length? it is not defined in domainevents, so should we? */
|
|
3367
|
-
slug?: string;
|
|
3368
|
-
entryTime?: Date | null;
|
|
3369
|
-
event?: SubscriptionEvent;
|
|
3442
|
+
interface SetShiftingDataResponse {
|
|
3443
|
+
subscription?: Subscription;
|
|
3370
3444
|
}
|
|
3371
|
-
interface
|
|
3372
|
-
|
|
3373
|
-
|
|
3374
|
-
|
|
3375
|
-
|
|
3376
|
-
ended?: SubscriptionEnded;
|
|
3377
|
-
canceled?: SubscriptionCanceled;
|
|
3378
|
-
paused?: SubscriptionPaused;
|
|
3379
|
-
resumed?: SubscriptionResumed;
|
|
3380
|
-
pauseRequested?: PauseSubscriptionRequested;
|
|
3381
|
-
resumeRequested?: ResumeSubscriptionRequested;
|
|
3382
|
-
scheduledPauseCanceled?: ScheduledPauseCanceled;
|
|
3383
|
-
scheduledResumeCanceled?: ScheduledResumeCanceled;
|
|
3384
|
-
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
3385
|
-
autoRenewalTurnedOn?: SubscriptionAutoRenewalTurnedOn;
|
|
3386
|
-
autoRenewalTurnedOff?: SubscriptionAutoRenewalTurnedOff;
|
|
3387
|
-
cycleReadyToPay?: SubscriptionCycleReadyToPay;
|
|
3388
|
-
extended?: SubscriptionExtended;
|
|
3389
|
-
initialPurchaseCompleted?: SubscriptionInitialPurchaseCompleted;
|
|
3390
|
-
latestInvoiceMarkedAsPaid?: LatestInvoiceMarkedAsPaid;
|
|
3391
|
-
revived?: SubscriptionRevived;
|
|
3392
|
-
billingDateUpdated?: SubscriptionBillingDateUpdated;
|
|
3393
|
-
futureUpdatesRequested?: FutureUpdatesRequested;
|
|
3394
|
-
updatesApplied?: UpdatesApplied;
|
|
3395
|
-
resetPendingUpdates?: ResetPendingUpdates;
|
|
3396
|
-
gracePeriodStarted?: GracePeriodStarted;
|
|
3397
|
-
gracePeriodEnded?: GracePeriodEnded;
|
|
3398
|
-
paymentMethodUpdated?: PaymentMethodUpdated;
|
|
3399
|
-
collectionMethodUpdated?: SubscriptionCollectionMethodUpdated;
|
|
3400
|
-
freeTrailStarted?: FreeTrailStarted;
|
|
3401
|
-
freeTrailEnded?: FreeTrailEnded;
|
|
3402
|
-
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
3403
|
-
unknown?: UnknownSubscriptionEvent;
|
|
3445
|
+
interface FixSubscriptionInvoicesRequest extends FixSubscriptionInvoicesRequestModeOneOf {
|
|
3446
|
+
attachInvoice?: AttachInvoice;
|
|
3447
|
+
detachInvoice?: DetachInvoice;
|
|
3448
|
+
tenantId?: string;
|
|
3449
|
+
subscriptionId?: string;
|
|
3404
3450
|
}
|
|
3405
3451
|
/** @oneof */
|
|
3406
|
-
interface
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
deleted?: SubscriptionDeleted;
|
|
3410
|
-
activated?: SubscriptionActivated;
|
|
3411
|
-
ended?: SubscriptionEnded;
|
|
3412
|
-
canceled?: SubscriptionCanceled;
|
|
3413
|
-
paused?: SubscriptionPaused;
|
|
3414
|
-
resumed?: SubscriptionResumed;
|
|
3415
|
-
pauseRequested?: PauseSubscriptionRequested;
|
|
3416
|
-
resumeRequested?: ResumeSubscriptionRequested;
|
|
3417
|
-
scheduledPauseCanceled?: ScheduledPauseCanceled;
|
|
3418
|
-
scheduledResumeCanceled?: ScheduledResumeCanceled;
|
|
3419
|
-
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
3420
|
-
autoRenewalTurnedOn?: SubscriptionAutoRenewalTurnedOn;
|
|
3421
|
-
autoRenewalTurnedOff?: SubscriptionAutoRenewalTurnedOff;
|
|
3422
|
-
cycleReadyToPay?: SubscriptionCycleReadyToPay;
|
|
3423
|
-
extended?: SubscriptionExtended;
|
|
3424
|
-
initialPurchaseCompleted?: SubscriptionInitialPurchaseCompleted;
|
|
3425
|
-
latestInvoiceMarkedAsPaid?: LatestInvoiceMarkedAsPaid;
|
|
3426
|
-
revived?: SubscriptionRevived;
|
|
3427
|
-
billingDateUpdated?: SubscriptionBillingDateUpdated;
|
|
3428
|
-
futureUpdatesRequested?: FutureUpdatesRequested;
|
|
3429
|
-
updatesApplied?: UpdatesApplied;
|
|
3430
|
-
resetPendingUpdates?: ResetPendingUpdates;
|
|
3431
|
-
gracePeriodStarted?: GracePeriodStarted;
|
|
3432
|
-
gracePeriodEnded?: GracePeriodEnded;
|
|
3433
|
-
paymentMethodUpdated?: PaymentMethodUpdated;
|
|
3434
|
-
collectionMethodUpdated?: SubscriptionCollectionMethodUpdated;
|
|
3435
|
-
freeTrailStarted?: FreeTrailStarted;
|
|
3436
|
-
freeTrailEnded?: FreeTrailEnded;
|
|
3437
|
-
subscriptionBoAction?: SubscriptionBackOfficeAction;
|
|
3438
|
-
unknown?: UnknownSubscriptionEvent;
|
|
3452
|
+
interface FixSubscriptionInvoicesRequestModeOneOf {
|
|
3453
|
+
attachInvoice?: AttachInvoice;
|
|
3454
|
+
detachInvoice?: DetachInvoice;
|
|
3439
3455
|
}
|
|
3440
|
-
interface
|
|
3456
|
+
interface AttachInvoice {
|
|
3457
|
+
invoiceId?: string;
|
|
3458
|
+
}
|
|
3459
|
+
interface DetachInvoice {
|
|
3460
|
+
invoiceId?: string;
|
|
3461
|
+
}
|
|
3462
|
+
interface FixSubscriptionInvoicesResponse {
|
|
3463
|
+
invoices?: SubscriptionInvoice[];
|
|
3464
|
+
}
|
|
3465
|
+
interface RestoreDraftSubscriptionRequest {
|
|
3466
|
+
tenantId?: string;
|
|
3467
|
+
subscriptionId?: string;
|
|
3468
|
+
}
|
|
3469
|
+
interface RestoreDraftSubscriptionResponse {
|
|
3441
3470
|
subscription?: Subscription;
|
|
3442
3471
|
}
|
|
3443
|
-
interface
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
diff?: SubscriptionDiff;
|
|
3472
|
+
interface DeleteDraftSubscriptionRequest {
|
|
3473
|
+
tenantId?: string;
|
|
3474
|
+
subscriptionId?: string;
|
|
3447
3475
|
}
|
|
3448
|
-
interface
|
|
3449
|
-
|
|
3450
|
-
changed?: string | null;
|
|
3451
|
-
deleted?: string | null;
|
|
3476
|
+
interface DeleteDraftSubscriptionResponse {
|
|
3477
|
+
subscription?: Subscription;
|
|
3452
3478
|
}
|
|
3453
|
-
interface
|
|
3479
|
+
interface DeleteSubscriptionBORequest {
|
|
3480
|
+
tenantId?: string;
|
|
3454
3481
|
subscriptionId?: string;
|
|
3455
3482
|
}
|
|
3456
|
-
interface
|
|
3483
|
+
interface DeleteSubscriptionBOResponse {
|
|
3457
3484
|
subscription?: Subscription;
|
|
3458
|
-
requestedUpdateData?: SubscriptionUpdateData;
|
|
3459
3485
|
}
|
|
3460
|
-
interface
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3486
|
+
interface CancelSubscriptionBORequest {
|
|
3487
|
+
tenantId?: string;
|
|
3488
|
+
subscriptionId?: string;
|
|
3489
|
+
initiator?: ActionInitiator;
|
|
3490
|
+
reason?: string | null;
|
|
3464
3491
|
}
|
|
3465
|
-
interface
|
|
3492
|
+
interface CancelSubscriptionBOResponse {
|
|
3466
3493
|
subscription?: Subscription;
|
|
3467
3494
|
}
|
|
3468
|
-
interface
|
|
3469
|
-
|
|
3495
|
+
interface UpdatePaymentMethodBORequest {
|
|
3496
|
+
tenantId?: string;
|
|
3497
|
+
subscriptionId?: string;
|
|
3498
|
+
paymentMethodId?: string;
|
|
3470
3499
|
}
|
|
3471
|
-
interface
|
|
3500
|
+
interface UpdatePaymentMethodBOResponse {
|
|
3472
3501
|
subscription?: Subscription;
|
|
3473
|
-
/** Indication for the payment settlement method. */
|
|
3474
|
-
paymentSettlementMethod?: PaymentSettlementMethod;
|
|
3475
3502
|
}
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
/** Manually mark the payment as paid. */
|
|
3481
|
-
MARK_AS_PAID = "MARK_AS_PAID",
|
|
3482
|
-
/** Require the customer to pay immediately, by insert a new payment method. */
|
|
3483
|
-
CUSTOMER_PAY_NOW = "CUSTOMER_PAY_NOW"
|
|
3503
|
+
interface SendSubscriptionActionEventBORequest extends SendSubscriptionActionEventBORequestEventOneOf {
|
|
3504
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
3505
|
+
tenantId?: string;
|
|
3506
|
+
subscriptionId?: string;
|
|
3484
3507
|
}
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
paymentMode?: PaymentMode;
|
|
3508
|
+
/** @oneof */
|
|
3509
|
+
interface SendSubscriptionActionEventBORequestEventOneOf {
|
|
3510
|
+
billingCycleStarted?: SubscriptionBillingCycleStarted;
|
|
3489
3511
|
}
|
|
3490
|
-
interface
|
|
3491
|
-
subscription?: Subscription;
|
|
3492
|
-
newCollectionMethod?: CollectionMethodEnumCollectionMethod;
|
|
3493
|
-
previousCollectionMethod?: CollectionMethodEnumCollectionMethod;
|
|
3512
|
+
interface SendSubscriptionActionEventResponse {
|
|
3494
3513
|
}
|
|
3495
|
-
interface
|
|
3496
|
-
|
|
3514
|
+
interface HandleSubscriptionAfterInvoiceMarkedAsPaidRequest {
|
|
3515
|
+
tenantId?: string;
|
|
3516
|
+
subscriptionId?: string;
|
|
3517
|
+
transactionId?: string;
|
|
3497
3518
|
}
|
|
3498
|
-
interface
|
|
3499
|
-
|
|
3519
|
+
interface PauseSubscriptionBORequest {
|
|
3520
|
+
tenantId?: string;
|
|
3521
|
+
subscriptionId?: string;
|
|
3522
|
+
pausePolicy?: PausePolicy;
|
|
3523
|
+
pauseAt?: PauseAt;
|
|
3524
|
+
initiator?: ActionInitiator;
|
|
3525
|
+
reason?: string | null;
|
|
3500
3526
|
}
|
|
3501
|
-
interface
|
|
3527
|
+
interface PauseSubscriptionBOResponse {
|
|
3502
3528
|
subscription?: Subscription;
|
|
3503
|
-
/** The backoffice method name */
|
|
3504
|
-
name?: string;
|
|
3505
|
-
/** json as string format, to store the flatted request object */
|
|
3506
|
-
params?: string;
|
|
3507
|
-
}
|
|
3508
|
-
/** Defines unknown events restored from the logs */
|
|
3509
|
-
interface UnknownSubscriptionEvent {
|
|
3510
|
-
subscriptionAsString?: string | null;
|
|
3511
3529
|
}
|
|
3512
3530
|
interface CustomerNonNullableFields {
|
|
3513
3531
|
visitorId: string;
|
|
@@ -3637,210 +3655,50 @@ interface FixedPriceNonNullableFields {
|
|
|
3637
3655
|
interface PricingModelNonNullableFields {
|
|
3638
3656
|
fixedPrice?: FixedPriceNonNullableFields;
|
|
3639
3657
|
}
|
|
3640
|
-
interface ItemChangeNonNullableFields {
|
|
3641
|
-
_id: string;
|
|
3642
|
-
pricingModel?: PricingModelNonNullableFields;
|
|
3643
|
-
tax?: TaxNonNullableFields;
|
|
3644
|
-
}
|
|
3645
|
-
interface CatalogReferenceNonNullableFields {
|
|
3646
|
-
catalogItemId: string;
|
|
3647
|
-
}
|
|
3648
|
-
interface ApplicationFeeNonNullableFields {
|
|
3649
|
-
amount: string;
|
|
3650
|
-
discounts: DiscountNonNullableFields[];
|
|
3651
|
-
}
|
|
3652
|
-
interface ItemNonNullableFields {
|
|
3653
|
-
name: string;
|
|
3654
|
-
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3655
|
-
category: ItemCategory;
|
|
3656
|
-
quantity: number;
|
|
3657
|
-
pricingModel?: PricingModelNonNullableFields;
|
|
3658
|
-
tax?: TaxNonNullableFields;
|
|
3659
|
-
discounts: DiscountNonNullableFields[];
|
|
3660
|
-
applicationFee?: ApplicationFeeNonNullableFields;
|
|
3661
|
-
}
|
|
3662
|
-
interface SubscriptionUpdateDataNonNullableFields {
|
|
3663
|
-
itemsToUpdate: ItemChangeNonNullableFields[];
|
|
3664
|
-
itemsToAdd: ItemNonNullableFields[];
|
|
3665
|
-
numberOfRequests: number;
|
|
3666
|
-
}
|
|
3667
|
-
interface SpecificDateSubscriptionUpdateDataNonNullableFields {
|
|
3668
|
-
updateData?: SubscriptionUpdateDataNonNullableFields;
|
|
3669
|
-
}
|
|
3670
|
-
interface SubscriptionNonNullableFields {
|
|
3671
|
-
name: string;
|
|
3672
|
-
customer?: CustomerNonNullableFields;
|
|
3673
|
-
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3674
|
-
billingSettings?: BillingSettingsNonNullableFields;
|
|
3675
|
-
billingStatus?: BillingStatusNonNullableFields;
|
|
3676
|
-
shippingAddress?: FullAddressDetailsNonNullableFields;
|
|
3677
|
-
policies?: SubscriptionPoliciesNonNullableFields;
|
|
3678
|
-
pauseInfo?: PauseInfoNonNullableFields;
|
|
3679
|
-
cancellationInfo?: CancellationInfoNonNullableFields;
|
|
3680
|
-
pendingUpdateData?: SubscriptionUpdateDataNonNullableFields;
|
|
3681
|
-
bassManaged: boolean;
|
|
3682
|
-
specificDatePendingUpdateData?: SpecificDateSubscriptionUpdateDataNonNullableFields;
|
|
3683
|
-
items: ItemNonNullableFields[];
|
|
3684
|
-
}
|
|
3685
|
-
interface GetSubscriptionResponseNonNullableFields {
|
|
3686
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3687
|
-
}
|
|
3688
|
-
interface CustomerCancelSubscriptionResponseNonNullableFields {
|
|
3689
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3690
|
-
}
|
|
3691
|
-
interface CustomerTurnOnAutoRenewalResponseNonNullableFields {
|
|
3692
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3693
|
-
}
|
|
3694
|
-
interface CustomerTurnOffAutoRenewalResponseNonNullableFields {
|
|
3695
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3696
|
-
}
|
|
3697
|
-
interface CustomerExtendSubscriptionResponseNonNullableFields {
|
|
3698
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3699
|
-
}
|
|
3700
|
-
interface QuerySubscriptionsResponseNonNullableFields {
|
|
3701
|
-
subscriptions: SubscriptionNonNullableFields[];
|
|
3702
|
-
}
|
|
3703
|
-
interface UpdateSubscriptionPaymentMethodResponseNonNullableFields {
|
|
3704
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3705
|
-
}
|
|
3706
|
-
interface ActionNonNullableFields {
|
|
3707
|
-
actionType: ActionType;
|
|
3708
|
-
pausePolicies: PausePolicy[];
|
|
3709
|
-
pauseAt: PauseAt[];
|
|
3710
|
-
resumeAt: ResumeAt[];
|
|
3711
|
-
extendPolicies: ExtendPolicyType[];
|
|
3712
|
-
}
|
|
3713
|
-
interface CustomerAllowedActionsResponseNonNullableFields {
|
|
3714
|
-
actions: ActionNonNullableFields[];
|
|
3715
|
-
}
|
|
3716
|
-
interface RecurringNonNullableFields {
|
|
3717
|
-
cycleNumber: number;
|
|
3718
|
-
}
|
|
3719
|
-
interface InvoiceDiscountNonNullableFields {
|
|
3720
|
-
amount: string;
|
|
3721
|
-
percentage: string;
|
|
3722
|
-
origin?: DiscountOriginNonNullableFields;
|
|
3723
|
-
}
|
|
3724
|
-
interface InvoiceApplicationFeeNonNullableFields {
|
|
3725
|
-
amount: string;
|
|
3726
|
-
discount?: InvoiceDiscountNonNullableFields;
|
|
3727
|
-
}
|
|
3728
|
-
interface PriceDetailsNonNullableFields {
|
|
3729
|
-
price: string;
|
|
3730
|
-
tax?: TaxNonNullableFields;
|
|
3731
|
-
discount?: InvoiceDiscountNonNullableFields;
|
|
3732
|
-
applicationFeeDetails?: InvoiceApplicationFeeNonNullableFields;
|
|
3733
|
-
}
|
|
3734
|
-
interface LineItemTaxSummaryNonNullableFields {
|
|
3735
|
-
aggregatedTaxAmount: string;
|
|
3736
|
-
aggregatedTaxRate: string;
|
|
3737
|
-
taxableAmount: string;
|
|
3738
|
-
}
|
|
3739
|
-
interface TaxBreakdownNonNullableFields {
|
|
3740
|
-
taxType: string;
|
|
3741
|
-
taxRate: string;
|
|
3742
|
-
jurisdictionType: string;
|
|
3743
|
-
}
|
|
3744
|
-
interface ItemTaxDataNonNullableFields {
|
|
3745
|
-
lineItemTaxSummary?: LineItemTaxSummaryNonNullableFields;
|
|
3746
|
-
taxBreakdowns: TaxBreakdownNonNullableFields[];
|
|
3747
|
-
}
|
|
3748
|
-
interface InvoiceItemNonNullableFields {
|
|
3749
|
-
recurring?: RecurringNonNullableFields;
|
|
3750
|
-
_id: string;
|
|
3751
|
-
name: string;
|
|
3752
|
-
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3753
|
-
category: ItemCategory;
|
|
3754
|
-
quantity: number;
|
|
3755
|
-
priceDetails?: PriceDetailsNonNullableFields;
|
|
3756
|
-
totals?: TotalsNonNullableFields;
|
|
3757
|
-
taxData?: ItemTaxDataNonNullableFields;
|
|
3758
|
-
}
|
|
3759
|
-
interface SubscriptionChargeNonNullableFields {
|
|
3760
|
-
cycle: number;
|
|
3761
|
-
totals?: TotalsNonNullableFields;
|
|
3762
|
-
invoiceItems: InvoiceItemNonNullableFields[];
|
|
3763
|
-
discount?: InvoiceDiscountNonNullableFields;
|
|
3764
|
-
}
|
|
3765
|
-
interface CustomerListUpcomingChargesResponseNonNullableFields {
|
|
3766
|
-
upcomingCharge?: SubscriptionChargeNonNullableFields;
|
|
3767
|
-
}
|
|
3768
|
-
interface InitiatePaymentMethodSetupResponseNonNullableFields {
|
|
3769
|
-
paymentOrderId: string;
|
|
3770
|
-
}
|
|
3771
|
-
interface PayCycleResponseNonNullableFields {
|
|
3772
|
-
invoiceId: string;
|
|
3773
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3774
|
-
}
|
|
3775
|
-
interface UpdateSubscriptionBillingDateResponseNonNullableFields {
|
|
3776
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3777
|
-
}
|
|
3778
|
-
interface CancelSubscriptionResponseNonNullableFields {
|
|
3779
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3780
|
-
}
|
|
3781
|
-
interface PauseSubscriptionResponseNonNullableFields {
|
|
3782
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3783
|
-
}
|
|
3784
|
-
interface ResumeSubscriptionResponseNonNullableFields {
|
|
3785
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3786
|
-
}
|
|
3787
|
-
interface SearchSubscriptionsResponseNonNullableFields {
|
|
3788
|
-
subscriptions: SubscriptionNonNullableFields[];
|
|
3789
|
-
}
|
|
3790
|
-
interface CountByStatusNonNullableFields {
|
|
3791
|
-
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3792
|
-
count: number;
|
|
3793
|
-
}
|
|
3794
|
-
interface CountSubscriptionsResponseNonNullableFields {
|
|
3795
|
-
countByStatus: CountByStatusNonNullableFields[];
|
|
3796
|
-
total: number;
|
|
3797
|
-
}
|
|
3798
|
-
interface TurnOnSubscriptionAutoRenewalResponseNonNullableFields {
|
|
3799
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3800
|
-
}
|
|
3801
|
-
interface TurnOffSubscriptionAutoRenewalResponseNonNullableFields {
|
|
3802
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3803
|
-
}
|
|
3804
|
-
interface MarkLatestInvoiceAsPaidResponseNonNullableFields {
|
|
3805
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3806
|
-
}
|
|
3807
|
-
interface AmountByStatusNonNullableFields {
|
|
3808
|
-
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3809
|
-
amount: number;
|
|
3810
|
-
}
|
|
3811
|
-
interface GetSubscriptionsStatsResponseNonNullableFields {
|
|
3812
|
-
amountByStatuses: AmountByStatusNonNullableFields[];
|
|
3813
|
-
total: number;
|
|
3814
|
-
}
|
|
3815
|
-
interface ExtendSubscriptionResponseNonNullableFields {
|
|
3816
|
-
subscription?: SubscriptionNonNullableFields;
|
|
3817
|
-
}
|
|
3818
|
-
interface UnsupportedReasonNonNullableFields {
|
|
3819
|
-
code: string;
|
|
3820
|
-
}
|
|
3821
|
-
interface UnsupportedActionNonNullableFields {
|
|
3822
|
-
actionType: ActionType;
|
|
3823
|
-
reasons: UnsupportedReasonNonNullableFields[];
|
|
3658
|
+
interface ItemChangeNonNullableFields {
|
|
3659
|
+
_id: string;
|
|
3660
|
+
pricingModel?: PricingModelNonNullableFields;
|
|
3661
|
+
tax?: TaxNonNullableFields;
|
|
3824
3662
|
}
|
|
3825
|
-
interface
|
|
3826
|
-
|
|
3827
|
-
unsupportedActions: UnsupportedActionNonNullableFields[];
|
|
3663
|
+
interface CatalogReferenceNonNullableFields {
|
|
3664
|
+
catalogItemId: string;
|
|
3828
3665
|
}
|
|
3829
|
-
interface
|
|
3830
|
-
|
|
3666
|
+
interface ApplicationFeeNonNullableFields {
|
|
3667
|
+
amount: string;
|
|
3668
|
+
discounts: DiscountNonNullableFields[];
|
|
3831
3669
|
}
|
|
3832
|
-
interface
|
|
3833
|
-
|
|
3834
|
-
|
|
3670
|
+
interface ItemNonNullableFields {
|
|
3671
|
+
name: string;
|
|
3672
|
+
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3673
|
+
category: ItemCategory;
|
|
3674
|
+
quantity: number;
|
|
3675
|
+
pricingModel?: PricingModelNonNullableFields;
|
|
3676
|
+
tax?: TaxNonNullableFields;
|
|
3677
|
+
discounts: DiscountNonNullableFields[];
|
|
3678
|
+
applicationFee?: ApplicationFeeNonNullableFields;
|
|
3835
3679
|
}
|
|
3836
|
-
interface
|
|
3837
|
-
|
|
3680
|
+
interface SubscriptionUpdateDataNonNullableFields {
|
|
3681
|
+
itemsToUpdate: ItemChangeNonNullableFields[];
|
|
3682
|
+
itemsToAdd: ItemNonNullableFields[];
|
|
3683
|
+
numberOfRequests: number;
|
|
3838
3684
|
}
|
|
3839
|
-
interface
|
|
3840
|
-
|
|
3685
|
+
interface SpecificDateSubscriptionUpdateDataNonNullableFields {
|
|
3686
|
+
updateData?: SubscriptionUpdateDataNonNullableFields;
|
|
3841
3687
|
}
|
|
3842
|
-
interface
|
|
3843
|
-
|
|
3688
|
+
interface SubscriptionNonNullableFields {
|
|
3689
|
+
name: string;
|
|
3690
|
+
customer?: CustomerNonNullableFields;
|
|
3691
|
+
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3692
|
+
billingSettings?: BillingSettingsNonNullableFields;
|
|
3693
|
+
billingStatus?: BillingStatusNonNullableFields;
|
|
3694
|
+
shippingAddress?: FullAddressDetailsNonNullableFields;
|
|
3695
|
+
policies?: SubscriptionPoliciesNonNullableFields;
|
|
3696
|
+
pauseInfo?: PauseInfoNonNullableFields;
|
|
3697
|
+
cancellationInfo?: CancellationInfoNonNullableFields;
|
|
3698
|
+
pendingUpdateData?: SubscriptionUpdateDataNonNullableFields;
|
|
3699
|
+
bassManaged: boolean;
|
|
3700
|
+
specificDatePendingUpdateData?: SpecificDateSubscriptionUpdateDataNonNullableFields;
|
|
3701
|
+
items: ItemNonNullableFields[];
|
|
3844
3702
|
}
|
|
3845
3703
|
interface SubscriptionCreatedNonNullableFields {
|
|
3846
3704
|
subscription?: SubscriptionNonNullableFields;
|
|
@@ -4008,6 +3866,166 @@ interface SubscriptionHistoryEntryNonNullableFields {
|
|
|
4008
3866
|
interface ListSubscriptionHistoryResponseNonNullableFields {
|
|
4009
3867
|
historyEntries: SubscriptionHistoryEntryNonNullableFields[];
|
|
4010
3868
|
}
|
|
3869
|
+
interface GetSubscriptionResponseNonNullableFields {
|
|
3870
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3871
|
+
}
|
|
3872
|
+
interface CustomerCancelSubscriptionResponseNonNullableFields {
|
|
3873
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3874
|
+
}
|
|
3875
|
+
interface CustomerTurnOnAutoRenewalResponseNonNullableFields {
|
|
3876
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3877
|
+
}
|
|
3878
|
+
interface CustomerTurnOffAutoRenewalResponseNonNullableFields {
|
|
3879
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3880
|
+
}
|
|
3881
|
+
interface CustomerExtendSubscriptionResponseNonNullableFields {
|
|
3882
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3883
|
+
}
|
|
3884
|
+
interface QuerySubscriptionsResponseNonNullableFields {
|
|
3885
|
+
subscriptions: SubscriptionNonNullableFields[];
|
|
3886
|
+
}
|
|
3887
|
+
interface UpdateSubscriptionPaymentMethodResponseNonNullableFields {
|
|
3888
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3889
|
+
}
|
|
3890
|
+
interface ActionNonNullableFields {
|
|
3891
|
+
actionType: ActionType;
|
|
3892
|
+
pausePolicies: PausePolicy[];
|
|
3893
|
+
pauseAt: PauseAt[];
|
|
3894
|
+
resumeAt: ResumeAt[];
|
|
3895
|
+
extendPolicies: ExtendPolicyType[];
|
|
3896
|
+
}
|
|
3897
|
+
interface CustomerAllowedActionsResponseNonNullableFields {
|
|
3898
|
+
actions: ActionNonNullableFields[];
|
|
3899
|
+
}
|
|
3900
|
+
interface RecurringNonNullableFields {
|
|
3901
|
+
cycleNumber: number;
|
|
3902
|
+
}
|
|
3903
|
+
interface InvoiceDiscountNonNullableFields {
|
|
3904
|
+
amount: string;
|
|
3905
|
+
percentage: string;
|
|
3906
|
+
origin?: DiscountOriginNonNullableFields;
|
|
3907
|
+
}
|
|
3908
|
+
interface InvoiceApplicationFeeNonNullableFields {
|
|
3909
|
+
amount: string;
|
|
3910
|
+
discount?: InvoiceDiscountNonNullableFields;
|
|
3911
|
+
}
|
|
3912
|
+
interface PriceDetailsNonNullableFields {
|
|
3913
|
+
price: string;
|
|
3914
|
+
tax?: TaxNonNullableFields;
|
|
3915
|
+
discount?: InvoiceDiscountNonNullableFields;
|
|
3916
|
+
applicationFeeDetails?: InvoiceApplicationFeeNonNullableFields;
|
|
3917
|
+
}
|
|
3918
|
+
interface LineItemTaxSummaryNonNullableFields {
|
|
3919
|
+
aggregatedTaxAmount: string;
|
|
3920
|
+
aggregatedTaxRate: string;
|
|
3921
|
+
taxableAmount: string;
|
|
3922
|
+
}
|
|
3923
|
+
interface TaxBreakdownNonNullableFields {
|
|
3924
|
+
taxType: string;
|
|
3925
|
+
taxRate: string;
|
|
3926
|
+
jurisdictionType: string;
|
|
3927
|
+
}
|
|
3928
|
+
interface ItemTaxDataNonNullableFields {
|
|
3929
|
+
lineItemTaxSummary?: LineItemTaxSummaryNonNullableFields;
|
|
3930
|
+
taxBreakdowns: TaxBreakdownNonNullableFields[];
|
|
3931
|
+
}
|
|
3932
|
+
interface InvoiceItemNonNullableFields {
|
|
3933
|
+
recurring?: RecurringNonNullableFields;
|
|
3934
|
+
_id: string;
|
|
3935
|
+
name: string;
|
|
3936
|
+
catalogReference?: CatalogReferenceNonNullableFields;
|
|
3937
|
+
category: ItemCategory;
|
|
3938
|
+
quantity: number;
|
|
3939
|
+
priceDetails?: PriceDetailsNonNullableFields;
|
|
3940
|
+
totals?: TotalsNonNullableFields;
|
|
3941
|
+
taxData?: ItemTaxDataNonNullableFields;
|
|
3942
|
+
}
|
|
3943
|
+
interface SubscriptionChargeNonNullableFields {
|
|
3944
|
+
cycle: number;
|
|
3945
|
+
totals?: TotalsNonNullableFields;
|
|
3946
|
+
invoiceItems: InvoiceItemNonNullableFields[];
|
|
3947
|
+
discount?: InvoiceDiscountNonNullableFields;
|
|
3948
|
+
}
|
|
3949
|
+
interface CustomerListUpcomingChargesResponseNonNullableFields {
|
|
3950
|
+
upcomingCharge?: SubscriptionChargeNonNullableFields;
|
|
3951
|
+
}
|
|
3952
|
+
interface InitiatePaymentMethodSetupResponseNonNullableFields {
|
|
3953
|
+
paymentOrderId: string;
|
|
3954
|
+
}
|
|
3955
|
+
interface UpdateSubscriptionBillingDateResponseNonNullableFields {
|
|
3956
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3957
|
+
}
|
|
3958
|
+
interface CancelSubscriptionResponseNonNullableFields {
|
|
3959
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3960
|
+
}
|
|
3961
|
+
interface PauseSubscriptionResponseNonNullableFields {
|
|
3962
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3963
|
+
}
|
|
3964
|
+
interface ResumeSubscriptionResponseNonNullableFields {
|
|
3965
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3966
|
+
}
|
|
3967
|
+
interface SearchSubscriptionsResponseNonNullableFields {
|
|
3968
|
+
subscriptions: SubscriptionNonNullableFields[];
|
|
3969
|
+
}
|
|
3970
|
+
interface CountByStatusNonNullableFields {
|
|
3971
|
+
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3972
|
+
count: number;
|
|
3973
|
+
}
|
|
3974
|
+
interface CountSubscriptionsResponseNonNullableFields {
|
|
3975
|
+
countByStatus: CountByStatusNonNullableFields[];
|
|
3976
|
+
total: number;
|
|
3977
|
+
}
|
|
3978
|
+
interface TurnOnSubscriptionAutoRenewalResponseNonNullableFields {
|
|
3979
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3980
|
+
}
|
|
3981
|
+
interface TurnOffSubscriptionAutoRenewalResponseNonNullableFields {
|
|
3982
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3983
|
+
}
|
|
3984
|
+
interface MarkLatestInvoiceAsPaidResponseNonNullableFields {
|
|
3985
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3986
|
+
}
|
|
3987
|
+
interface AmountByStatusNonNullableFields {
|
|
3988
|
+
status: SubscriptionStatusEnumSubscriptionStatus;
|
|
3989
|
+
amount: number;
|
|
3990
|
+
}
|
|
3991
|
+
interface GetSubscriptionsStatsResponseNonNullableFields {
|
|
3992
|
+
amountByStatuses: AmountByStatusNonNullableFields[];
|
|
3993
|
+
total: number;
|
|
3994
|
+
}
|
|
3995
|
+
interface ExtendSubscriptionResponseNonNullableFields {
|
|
3996
|
+
subscription?: SubscriptionNonNullableFields;
|
|
3997
|
+
}
|
|
3998
|
+
interface UnsupportedReasonNonNullableFields {
|
|
3999
|
+
code: string;
|
|
4000
|
+
}
|
|
4001
|
+
interface UnsupportedActionNonNullableFields {
|
|
4002
|
+
actionType: ActionType;
|
|
4003
|
+
reasons: UnsupportedReasonNonNullableFields[];
|
|
4004
|
+
}
|
|
4005
|
+
interface AllowedActionsResponseNonNullableFields {
|
|
4006
|
+
actions: ActionNonNullableFields[];
|
|
4007
|
+
unsupportedActions: UnsupportedActionNonNullableFields[];
|
|
4008
|
+
}
|
|
4009
|
+
interface ListUpcomingChargesResponseNonNullableFields {
|
|
4010
|
+
upcomingCharges: SubscriptionChargeNonNullableFields[];
|
|
4011
|
+
}
|
|
4012
|
+
interface ChargeNonNullableFields {
|
|
4013
|
+
cycleFrom: number;
|
|
4014
|
+
totals?: TotalsNonNullableFields;
|
|
4015
|
+
}
|
|
4016
|
+
interface PreviewSubscriptionChargesResponseNonNullableFields {
|
|
4017
|
+
charges: ChargeNonNullableFields[];
|
|
4018
|
+
}
|
|
4019
|
+
interface SubscriptionChargesNonNullableFields {
|
|
4020
|
+
charges: ChargeNonNullableFields[];
|
|
4021
|
+
}
|
|
4022
|
+
interface PreviewSubscriptionsChargesResponseNonNullableFields {
|
|
4023
|
+
subscriptionsCharges: SubscriptionChargesNonNullableFields[];
|
|
4024
|
+
}
|
|
4025
|
+
interface PayCycleResponseNonNullableFields {
|
|
4026
|
+
invoiceId: string;
|
|
4027
|
+
subscription?: SubscriptionNonNullableFields;
|
|
4028
|
+
}
|
|
4011
4029
|
interface BaseEventMetadata {
|
|
4012
4030
|
/** App instance ID. */
|
|
4013
4031
|
instanceId?: string | null;
|
|
@@ -4106,6 +4124,12 @@ interface SubscriptionResumedEnvelope {
|
|
|
4106
4124
|
data: SubscriptionResumed;
|
|
4107
4125
|
metadata: EventMetadata;
|
|
4108
4126
|
}
|
|
4127
|
+
interface ListSubscriptionHistoryOptions {
|
|
4128
|
+
/** Determines the type of view for the history: either a comprehensive backoffice view or a user-centric view. */
|
|
4129
|
+
mode?: HistoryViewMode;
|
|
4130
|
+
/** Cursor for efficient paging. If paging through results, pass this field from the previous search response to continue to the next page. */
|
|
4131
|
+
cursor?: CursorPaging;
|
|
4132
|
+
}
|
|
4109
4133
|
interface CustomerCancelSubscriptionOptions {
|
|
4110
4134
|
/** Optional action reason message */
|
|
4111
4135
|
reason?: string | null;
|
|
@@ -4131,10 +4155,6 @@ interface CustomerInitiatePaymentMethodSetupOptions {
|
|
|
4131
4155
|
paymentMode?: PaymentMode;
|
|
4132
4156
|
paymentSettings?: PaymentSettings;
|
|
4133
4157
|
}
|
|
4134
|
-
interface PayCycleOptions {
|
|
4135
|
-
paymentTestMode?: PaymentTestMode;
|
|
4136
|
-
tenantId: string;
|
|
4137
|
-
}
|
|
4138
4158
|
interface UpdateSubscriptionBillingDateOptions {
|
|
4139
4159
|
/**
|
|
4140
4160
|
* Information about how BASS adjusts the total of the next invoice. Extending
|
|
@@ -4220,13 +4240,16 @@ interface InitiatePaymentMethodSetupOptions {
|
|
|
4220
4240
|
paymentMode?: PaymentMode;
|
|
4221
4241
|
paymentSettings?: PaymentSettings;
|
|
4222
4242
|
}
|
|
4223
|
-
interface
|
|
4224
|
-
|
|
4225
|
-
|
|
4226
|
-
/** Cursor for efficient paging. If paging through results, pass this field from the previous search response to continue to the next page. */
|
|
4227
|
-
cursor?: CursorPaging;
|
|
4243
|
+
interface PayCycleOptions {
|
|
4244
|
+
paymentTestMode?: PaymentTestMode;
|
|
4245
|
+
tenantId: string;
|
|
4228
4246
|
}
|
|
4229
4247
|
|
|
4248
|
+
declare function listSubscriptionHistory$1(httpClient: HttpClient): ListSubscriptionHistorySignature;
|
|
4249
|
+
interface ListSubscriptionHistorySignature {
|
|
4250
|
+
/** */
|
|
4251
|
+
(subscriptionId: string, options?: ListSubscriptionHistoryOptions | undefined): Promise<ListSubscriptionHistoryResponse & ListSubscriptionHistoryResponseNonNullableFields>;
|
|
4252
|
+
}
|
|
4230
4253
|
declare function customerGetSubscription$1(httpClient: HttpClient): CustomerGetSubscriptionSignature;
|
|
4231
4254
|
interface CustomerGetSubscriptionSignature {
|
|
4232
4255
|
/**
|
|
@@ -4296,13 +4319,6 @@ interface CustomerInitiatePaymentMethodSetupSignature {
|
|
|
4296
4319
|
*/
|
|
4297
4320
|
(_id: string, options?: CustomerInitiatePaymentMethodSetupOptions | undefined): Promise<InitiatePaymentMethodSetupResponse & InitiatePaymentMethodSetupResponseNonNullableFields>;
|
|
4298
4321
|
}
|
|
4299
|
-
declare function payCycle$1(httpClient: HttpClient): PayCycleSignature;
|
|
4300
|
-
interface PayCycleSignature {
|
|
4301
|
-
/**
|
|
4302
|
-
* This used only for automation and permitted tenants (QA & testing)
|
|
4303
|
-
*/
|
|
4304
|
-
(subscriptionId: string, options?: PayCycleOptions | undefined): Promise<PayCycleResponse & PayCycleResponseNonNullableFields>;
|
|
4305
|
-
}
|
|
4306
4322
|
declare function getSubscription$1(httpClient: HttpClient): GetSubscriptionSignature;
|
|
4307
4323
|
interface GetSubscriptionSignature {
|
|
4308
4324
|
/**
|
|
@@ -4475,10 +4491,12 @@ interface InitiatePaymentMethodSetupSignature {
|
|
|
4475
4491
|
*/
|
|
4476
4492
|
(_id: string, options?: InitiatePaymentMethodSetupOptions | undefined): Promise<InitiatePaymentMethodSetupResponse & InitiatePaymentMethodSetupResponseNonNullableFields>;
|
|
4477
4493
|
}
|
|
4478
|
-
declare function
|
|
4479
|
-
interface
|
|
4480
|
-
/**
|
|
4481
|
-
|
|
4494
|
+
declare function payCycle$1(httpClient: HttpClient): PayCycleSignature;
|
|
4495
|
+
interface PayCycleSignature {
|
|
4496
|
+
/**
|
|
4497
|
+
* This used only for automation and permitted tenants (QA & testing)
|
|
4498
|
+
*/
|
|
4499
|
+
(subscriptionId: string, options?: PayCycleOptions | undefined): Promise<PayCycleResponse & PayCycleResponseNonNullableFields>;
|
|
4482
4500
|
}
|
|
4483
4501
|
declare const onSubscriptionCanceled$1: EventDefinition<SubscriptionCanceledEnvelope, "wix.billing.v1.subscription_canceled">;
|
|
4484
4502
|
declare const onSubscriptionExtended$1: EventDefinition<SubscriptionExtendedEnvelope, "wix.billing.v1.subscription_extended">;
|
|
@@ -4496,6 +4514,7 @@ declare const onSubscriptionResumed$1: EventDefinition<SubscriptionResumedEnvelo
|
|
|
4496
4514
|
|
|
4497
4515
|
declare function createEventModule<T extends EventDefinition<any, string>>(eventDefinition: T): BuildEventDefinition<T> & T;
|
|
4498
4516
|
|
|
4517
|
+
declare const listSubscriptionHistory: MaybeContext<BuildRESTFunction<typeof listSubscriptionHistory$1> & typeof listSubscriptionHistory$1>;
|
|
4499
4518
|
declare const customerGetSubscription: MaybeContext<BuildRESTFunction<typeof customerGetSubscription$1> & typeof customerGetSubscription$1>;
|
|
4500
4519
|
declare const customerCancelSubscription: MaybeContext<BuildRESTFunction<typeof customerCancelSubscription$1> & typeof customerCancelSubscription$1>;
|
|
4501
4520
|
declare const customerTurnOnSubscriptionAutoRenewal: MaybeContext<BuildRESTFunction<typeof customerTurnOnSubscriptionAutoRenewal$1> & typeof customerTurnOnSubscriptionAutoRenewal$1>;
|
|
@@ -4506,7 +4525,6 @@ declare const customerUpdateSubscriptionPaymentMethod: MaybeContext<BuildRESTFun
|
|
|
4506
4525
|
declare const customerAllowedActions: MaybeContext<BuildRESTFunction<typeof customerAllowedActions$1> & typeof customerAllowedActions$1>;
|
|
4507
4526
|
declare const customerListUpcomingCharges: MaybeContext<BuildRESTFunction<typeof customerListUpcomingCharges$1> & typeof customerListUpcomingCharges$1>;
|
|
4508
4527
|
declare const customerInitiatePaymentMethodSetup: MaybeContext<BuildRESTFunction<typeof customerInitiatePaymentMethodSetup$1> & typeof customerInitiatePaymentMethodSetup$1>;
|
|
4509
|
-
declare const payCycle: MaybeContext<BuildRESTFunction<typeof payCycle$1> & typeof payCycle$1>;
|
|
4510
4528
|
declare const getSubscription: MaybeContext<BuildRESTFunction<typeof getSubscription$1> & typeof getSubscription$1>;
|
|
4511
4529
|
declare const updateSubscriptionPaymentMethod: MaybeContext<BuildRESTFunction<typeof updateSubscriptionPaymentMethod$1> & typeof updateSubscriptionPaymentMethod$1>;
|
|
4512
4530
|
declare const updateSubscriptionBillingDate: MaybeContext<BuildRESTFunction<typeof updateSubscriptionBillingDate$1> & typeof updateSubscriptionBillingDate$1>;
|
|
@@ -4526,7 +4544,7 @@ declare const listUpcomingCharges: MaybeContext<BuildRESTFunction<typeof listUpc
|
|
|
4526
4544
|
declare const previewSubscriptionCharges: MaybeContext<BuildRESTFunction<typeof previewSubscriptionCharges$1> & typeof previewSubscriptionCharges$1>;
|
|
4527
4545
|
declare const previewSubscriptionsCharges: MaybeContext<BuildRESTFunction<typeof previewSubscriptionsCharges$1> & typeof previewSubscriptionsCharges$1>;
|
|
4528
4546
|
declare const initiatePaymentMethodSetup: MaybeContext<BuildRESTFunction<typeof initiatePaymentMethodSetup$1> & typeof initiatePaymentMethodSetup$1>;
|
|
4529
|
-
declare const
|
|
4547
|
+
declare const payCycle: MaybeContext<BuildRESTFunction<typeof payCycle$1> & typeof payCycle$1>;
|
|
4530
4548
|
|
|
4531
4549
|
type _publicOnSubscriptionCanceledType = typeof onSubscriptionCanceled$1;
|
|
4532
4550
|
/**
|
|
@@ -4823,6 +4841,8 @@ type context_PauseInfo = PauseInfo;
|
|
|
4823
4841
|
type context_PausePeriod = PausePeriod;
|
|
4824
4842
|
type context_PausePolicy = PausePolicy;
|
|
4825
4843
|
declare const context_PausePolicy: typeof PausePolicy;
|
|
4844
|
+
type context_PauseSubscriptionBORequest = PauseSubscriptionBORequest;
|
|
4845
|
+
type context_PauseSubscriptionBOResponse = PauseSubscriptionBOResponse;
|
|
4826
4846
|
type context_PauseSubscriptionOptions = PauseSubscriptionOptions;
|
|
4827
4847
|
type context_PauseSubscriptionRequest = PauseSubscriptionRequest;
|
|
4828
4848
|
type context_PauseSubscriptionRequested = PauseSubscriptionRequested;
|
|
@@ -4850,6 +4870,7 @@ type context_PaymentStatusEnumPaymentStatus = PaymentStatusEnumPaymentStatus;
|
|
|
4850
4870
|
declare const context_PaymentStatusEnumPaymentStatus: typeof PaymentStatusEnumPaymentStatus;
|
|
4851
4871
|
type context_PaymentTestMode = PaymentTestMode;
|
|
4852
4872
|
declare const context_PaymentTestMode: typeof PaymentTestMode;
|
|
4873
|
+
type context_PlatformOrigin = PlatformOrigin;
|
|
4853
4874
|
type context_PreviewSubscriptionChargesOptions = PreviewSubscriptionChargesOptions;
|
|
4854
4875
|
type context_PreviewSubscriptionChargesRequest = PreviewSubscriptionChargesRequest;
|
|
4855
4876
|
type context_PreviewSubscriptionChargesRequestSubscriptionOneOf = PreviewSubscriptionChargesRequestSubscriptionOneOf;
|
|
@@ -5116,7 +5137,7 @@ declare const context_turnOnSubscriptionAutoRenewal: typeof turnOnSubscriptionAu
|
|
|
5116
5137
|
declare const context_updateSubscriptionBillingDate: typeof updateSubscriptionBillingDate;
|
|
5117
5138
|
declare const context_updateSubscriptionPaymentMethod: typeof updateSubscriptionPaymentMethod;
|
|
5118
5139
|
declare namespace context {
|
|
5119
|
-
export { type context_Action as Action, type context_ActionContext as ActionContext, type context_ActionDetails as ActionDetails, type context_ActionEvent as ActionEvent, context_ActionInitiator as ActionInitiator, context_ActionType as ActionType, type context_AddPausePeriodRequest as AddPausePeriodRequest, type context_AddPausePeriodResponse as AddPausePeriodResponse, type context_AdditionalFee as AdditionalFee, context_AdditionalFeeTrigger as AdditionalFeeTrigger, type context_Address as Address, type context_AddressStreetOneOf as AddressStreetOneOf, type context_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type context_AllowedActionsOptions as AllowedActionsOptions, type context_AllowedActionsRequest as AllowedActionsRequest, type context_AllowedActionsResponse as AllowedActionsResponse, type context_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type context_AmountByStatus as AmountByStatus, type context_ApplicationFee as ApplicationFee, type context_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type context_AttachInvoice as AttachInvoice, type context_AutomaticRetryData as AutomaticRetryData, type context_BaseEventMetadata as BaseEventMetadata, type context_BillingSettings as BillingSettings, type context_BillingStatus as BillingStatus, type context_BulkItemChange as BulkItemChange, type context_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type context_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type context_BusinessOrigin as BusinessOrigin, type context_BusinessOriginData as BusinessOriginData, type context_Cancel as Cancel, type context_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type context_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type context_CancelSubscriptionRequest as CancelSubscriptionRequest, type context_CancelSubscriptionResponse as CancelSubscriptionResponse, type context_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type context_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type context_CancellationInfo as CancellationInfo, context_CancellationInitiator as CancellationInitiator, type context_CatalogReference as CatalogReference, type context_Charge as Charge, context_CollectionMethod as CollectionMethod, context_CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethod, type context_Complete as Complete, type context_ConvertSapiRequest as ConvertSapiRequest, type context_ConvertSapiResponse as ConvertSapiResponse, type context_CountByStatus as CountByStatus, type context_CountSubscriptionFilter as CountSubscriptionFilter, type context_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type context_CountSubscriptionsOptions as CountSubscriptionsOptions, type context_CountSubscriptionsRequest as CountSubscriptionsRequest, type context_CountSubscriptionsResponse as CountSubscriptionsResponse, type context_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type context_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type context_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type context_CreateSubscriptionForOrderRequest as CreateSubscriptionForOrderRequest, type context_CreateSubscriptionForOrderResponse as CreateSubscriptionForOrderResponse, type context_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type context_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type context_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type context_CreateSubscriptionRequest as CreateSubscriptionRequest, type context_CreateSubscriptionResponse as CreateSubscriptionResponse, context_CreationMode as CreationMode, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_CustomBillingSchedule as CustomBillingSchedule, type context_CustomProration as CustomProration, type context_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type context_Customer as Customer, type context_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type context_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type context_CustomerAllowedActionsResponseNonNullableFields as CustomerAllowedActionsResponseNonNullableFields, type context_CustomerCancelSubscriptionOptions as CustomerCancelSubscriptionOptions, type context_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type context_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type context_CustomerCancelSubscriptionResponseNonNullableFields as CustomerCancelSubscriptionResponseNonNullableFields, type context_CustomerExtendSubscriptionOptions as CustomerExtendSubscriptionOptions, type context_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type context_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type context_CustomerExtendSubscriptionResponseNonNullableFields as CustomerExtendSubscriptionResponseNonNullableFields, type context_CustomerIdOneOf as CustomerIdOneOf, type context_CustomerInitiatePaymentMethodSetupOptions as CustomerInitiatePaymentMethodSetupOptions, type context_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type context_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type context_CustomerListUpcomingChargesResponseNonNullableFields as CustomerListUpcomingChargesResponseNonNullableFields, type context_CustomerQuerySubscriptionsOptions as CustomerQuerySubscriptionsOptions, type context_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type context_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type context_CustomerTurnOffAutoRenewalResponseNonNullableFields as CustomerTurnOffAutoRenewalResponseNonNullableFields, type context_CustomerTurnOffSubscriptionAutoRenewalOptions as CustomerTurnOffSubscriptionAutoRenewalOptions, type context_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type context_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type context_CustomerTurnOnAutoRenewalResponseNonNullableFields as CustomerTurnOnAutoRenewalResponseNonNullableFields, type context_CustomerTurnOnSubscriptionAutoRenewalOptions as CustomerTurnOnSubscriptionAutoRenewalOptions, type context_Cycles as Cycles, type context_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type context_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type context_DeleteSubscriptionBORequest as DeleteSubscriptionBORequest, type context_DeleteSubscriptionBOResponse as DeleteSubscriptionBOResponse, type context_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type context_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type context_DetachInvoice as DetachInvoice, type context_Discount as Discount, type context_DiscountCycles as DiscountCycles, type context_DiscountOrigin as DiscountOrigin, type context_DiscountValueOneOf as DiscountValueOneOf, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Duration as Duration, context_DurationUnit as DurationUnit, type context_DynamicTax as DynamicTax, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, context_ExtendPolicyType as ExtendPolicyType, type context_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type context_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type context_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type context_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type context_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type context_ExternalCollectionDetails as ExternalCollectionDetails, type context_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type context_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type context_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type context_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type context_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type context_FixedPrice as FixedPrice, type context_FreeTrailEnded as FreeTrailEnded, type context_FreeTrailStarted as FreeTrailStarted, type context_FreeTrialData as FreeTrialData, type context_FullAddressContactDetails as FullAddressContactDetails, type context_FullAddressDetails as FullAddressDetails, type context_FutureUpdatesRequested as FutureUpdatesRequested, type context_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type context_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type context_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type context_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type context_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type context_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type context_GetSubscriptionRequest as GetSubscriptionRequest, type context_GetSubscriptionResponse as GetSubscriptionResponse, type context_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type context_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type context_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type context_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type context_GracePeriodData as GracePeriodData, type context_GracePeriodEnded as GracePeriodEnded, type context_GracePeriodStarted as GracePeriodStarted, type context_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, context_HistoryActionInitiator as HistoryActionInitiator, context_HistoryViewMode as HistoryViewMode, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type context_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type context_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type context_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type context_InternalSubscriptionData as InternalSubscriptionData, type context_Invoice as Invoice, type context_InvoiceAction as InvoiceAction, type context_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type context_InvoiceApplicationFee as InvoiceApplicationFee, type context_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type context_InvoiceDiscount as InvoiceDiscount, type context_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type context_InvoiceItem as InvoiceItem, type context_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, type context_InvoiceShippingCharges as InvoiceShippingCharges, context_InvoiceStatus as InvoiceStatus, type context_Item as Item, context_ItemCategory as ItemCategory, type context_ItemChange as ItemChange, type context_ItemTaxData as ItemTaxData, type context_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type context_LatestPaymentAttempt as LatestPaymentAttempt, type context_LineItemTaxSummary as LineItemTaxSummary, type context_ListSubscriptionHistoryOptions as ListSubscriptionHistoryOptions, type context_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type context_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type context_ListSubscriptionHistoryResponseNonNullableFields as ListSubscriptionHistoryResponseNonNullableFields, type context_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type context_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type context_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type context_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type context_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type context_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type context_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MigrationDetails as MigrationDetails, type context_Money as Money, type context_OneTime as OneTime, context_OrderMethod as OrderMethod, type context_OriginOverride as OriginOverride, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PauseAt as PauseAt, type context_PauseInfo as PauseInfo, type context_PausePeriod as PausePeriod, context_PausePolicy as PausePolicy, type context_PauseSubscriptionOptions as PauseSubscriptionOptions, type context_PauseSubscriptionRequest as PauseSubscriptionRequest, type context_PauseSubscriptionRequested as PauseSubscriptionRequested, type context_PauseSubscriptionResponse as PauseSubscriptionResponse, type context_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type context_PayCycleOptions as PayCycleOptions, type context_PayCycleRequest as PayCycleRequest, type context_PayCycleResponse as PayCycleResponse, type context_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type context_PayRecurringInvoice as PayRecurringInvoice, context_PaymentAttemptStatus as PaymentAttemptStatus, type context_PaymentData as PaymentData, type context_PaymentMethod as PaymentMethod, type context_PaymentMethodUpdated as PaymentMethodUpdated, context_PaymentMode as PaymentMode, type context_PaymentOrigin as PaymentOrigin, type context_PaymentSettings as PaymentSettings, context_PaymentSettlementMethod as PaymentSettlementMethod, context_PaymentStatus as PaymentStatus, context_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, context_PaymentTestMode as PaymentTestMode, type context_PreviewSubscriptionChargesOptions as PreviewSubscriptionChargesOptions, type context_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type context_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type context_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type context_PreviewSubscriptionChargesResponseNonNullableFields as PreviewSubscriptionChargesResponseNonNullableFields, type context_PreviewSubscriptionsChargesOptions as PreviewSubscriptionsChargesOptions, type context_PreviewSubscriptionsChargesRequest as PreviewSubscriptionsChargesRequest, type context_PreviewSubscriptionsChargesResponse as PreviewSubscriptionsChargesResponse, type context_PreviewSubscriptionsChargesResponseNonNullableFields as PreviewSubscriptionsChargesResponseNonNullableFields, type context_PriceAdjustment as PriceAdjustment, type context_PriceAdjustmentAdjustmentTypeOneOf as PriceAdjustmentAdjustmentTypeOneOf, type context_PriceAdjustmentValue as PriceAdjustmentValue, type context_PriceAdjustmentValueAdjustmentValueTypeOneOf as PriceAdjustmentValueAdjustmentValueTypeOneOf, type context_PriceDetails as PriceDetails, type context_PricingModel as PricingModel, type context_PricingModelModelOneOf as PricingModelModelOneOf, type context_Proration as Proration, type context_ProrationTypeOneOf as ProrationTypeOneOf, type context_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type context_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type context_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_Recurring as Recurring, type context_RedirectUrls as RedirectUrls, context_RequestedFields as RequestedFields, type context_Reschedule as Reschedule, type context_ResetPendingUpdates as ResetPendingUpdates, type context_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type context_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type context_RestoreInfo as RestoreInfo, context_ResumeAt as ResumeAt, type context_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type context_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type context_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type context_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type context_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type context_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type context_ReviseSubscriptionResponse as ReviseSubscriptionResponse, context_RevivePolicy as RevivePolicy, type context_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type context_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type context_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type context_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type context_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type context_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type context_ScheduledPauseCanceled as ScheduledPauseCanceled, type context_ScheduledResumeCanceled as ScheduledResumeCanceled, type context_SearchSubscriptionRequest as SearchSubscriptionRequest, type context_SearchSubscriptionResponse as SearchSubscriptionResponse, type context_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type context_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type context_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type context_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type context_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type context_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type context_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type context_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type context_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type context_SetIsMigratedEvent as SetIsMigratedEvent, type context_SetShiftingDataRequest as SetShiftingDataRequest, type context_SetShiftingDataResponse as SetShiftingDataResponse, type context_ShippingCharges as ShippingCharges, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_SortingClauses as SortingClauses, type context_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, context_Status as Status, type context_StreetAddress as StreetAddress, type context_Subscriber as Subscriber, type context_Subscription as Subscription, type context_SubscriptionActivated as SubscriptionActivated, type context_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type context_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type context_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type context_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type context_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type context_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type context_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type context_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type context_SubscriptionBillingDetails as SubscriptionBillingDetails, type context_SubscriptionCanceled as SubscriptionCanceled, type context_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type context_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type context_SubscriptionCharge as SubscriptionCharge, type context_SubscriptionCharges as SubscriptionCharges, type context_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type context_SubscriptionCreated as SubscriptionCreated, type context_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type context_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type context_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type context_SubscriptionDeleted as SubscriptionDeleted, type context_SubscriptionDiff as SubscriptionDiff, type context_SubscriptionEnded as SubscriptionEnded, type context_SubscriptionEvent as SubscriptionEvent, type context_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type context_SubscriptionExpired as SubscriptionExpired, type context_SubscriptionExtended as SubscriptionExtended, type context_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type context_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, context_SubscriptionFrequency as SubscriptionFrequency, type context_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type context_SubscriptionInfo as SubscriptionInfo, type context_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type context_SubscriptionInvoice as SubscriptionInvoice, type context_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type context_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type context_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type context_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type context_SubscriptionPaused as SubscriptionPaused, type context_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type context_SubscriptionPolicies as SubscriptionPolicies, type context_SubscriptionPolicy as SubscriptionPolicy, type context_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type context_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type context_SubscriptionResumed as SubscriptionResumed, type context_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type context_SubscriptionRevived as SubscriptionRevived, type context_SubscriptionStatus as SubscriptionStatus, context_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, context_SubscriptionStatusGroup as SubscriptionStatusGroup, type context_SubscriptionSuspended as SubscriptionSuspended, type context_SubscriptionTrialPeriod as SubscriptionTrialPeriod, context_SubscriptionType as SubscriptionType, type context_SubscriptionUpdateData as SubscriptionUpdateData, type context_SubscriptionUpdated as SubscriptionUpdated, type context_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type context_Suspension as Suspension, type context_Task as Task, type context_TaskAction as TaskAction, type context_TaskActionActionOneOf as TaskActionActionOneOf, type context_TaskKey as TaskKey, type context_Tax as Tax, type context_TaxBreakdown as TaxBreakdown, type context_TaxData as TaxData, type context_TaxSettings as TaxSettings, type context_TaxSummary as TaxSummary, type context_TaxValueOneOf as TaxValueOneOf, context_TaxableAddressType as TaxableAddressType, type context_TimeBasedProration as TimeBasedProration, type context_Totals as Totals, type context_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type context_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type context_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type context_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type context_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type context_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type context_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type context_UnsupportedAction as UnsupportedAction, type context_UnsupportedReason as UnsupportedReason, context_UpdateAction as UpdateAction, type context_UpdateBillingDateData as UpdateBillingDateData, type context_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type context_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type context_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type context_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type context_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type context_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type context_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type context_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type context_UpdateStatusRequest as UpdateStatusRequest, type context_UpdateStatusResponse as UpdateStatusResponse, type context_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type context_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type context_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type context_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type context_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type context_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type context_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type context_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type context_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type context_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type context_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type context_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type context_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type context_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type context_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type context_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type context_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type context_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type context_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type context_UpdatesApplied as UpdatesApplied, type context_V1Duration as V1Duration, type context_V1Subscription as V1Subscription, type context_V1SubscriptionActivated as V1SubscriptionActivated, type context_V1SubscriptionCanceled as V1SubscriptionCanceled, type context_V1SubscriptionCreated as V1SubscriptionCreated, type context_V1SubscriptionEvent as V1SubscriptionEvent, type context_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type context_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type context_V1SubscriptionResumed as V1SubscriptionResumed, context_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type context_V1SubscriptionUpdated as V1SubscriptionUpdated, type context_V2Subscription as V2Subscription, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSubscriptionAutoRenewalTurnedOffType as _publicOnSubscriptionAutoRenewalTurnedOffType, type context__publicOnSubscriptionAutoRenewalTurnedOnType as _publicOnSubscriptionAutoRenewalTurnedOnType, type context__publicOnSubscriptionBillingDateUpdatedType as _publicOnSubscriptionBillingDateUpdatedType, type context__publicOnSubscriptionCanceledType as _publicOnSubscriptionCanceledType, type context__publicOnSubscriptionExtendedType as _publicOnSubscriptionExtendedType, type context__publicOnSubscriptionLatestInvoiceMarkedAsPaidType as _publicOnSubscriptionLatestInvoiceMarkedAsPaidType, type context__publicOnSubscriptionPauseScheduleCanceledType as _publicOnSubscriptionPauseScheduleCanceledType, type context__publicOnSubscriptionPauseScheduledType as _publicOnSubscriptionPauseScheduledType, type context__publicOnSubscriptionPausedType as _publicOnSubscriptionPausedType, type context__publicOnSubscriptionResumeScheduleCanceledType as _publicOnSubscriptionResumeScheduleCanceledType, type context__publicOnSubscriptionResumeScheduledType as _publicOnSubscriptionResumeScheduledType, type context__publicOnSubscriptionResumedType as _publicOnSubscriptionResumedType, type context__publicOnSubscriptionUpdatedType as _publicOnSubscriptionUpdatedType, context_allowedActions as allowedActions, context_cancelSubscription as cancelSubscription, context_countSubscriptions as countSubscriptions, context_customerAllowedActions as customerAllowedActions, context_customerCancelSubscription as customerCancelSubscription, context_customerExtendSubscription as customerExtendSubscription, context_customerGetSubscription as customerGetSubscription, context_customerInitiatePaymentMethodSetup as customerInitiatePaymentMethodSetup, context_customerListUpcomingCharges as customerListUpcomingCharges, context_customerQuerySubscriptions as customerQuerySubscriptions, context_customerTurnOffSubscriptionAutoRenewal as customerTurnOffSubscriptionAutoRenewal, context_customerTurnOnSubscriptionAutoRenewal as customerTurnOnSubscriptionAutoRenewal, context_customerUpdateSubscriptionPaymentMethod as customerUpdateSubscriptionPaymentMethod, context_extendSubscription as extendSubscription, context_getSubscription as getSubscription, context_getSubscriptionsStats as getSubscriptionsStats, context_initiatePaymentMethodSetup as initiatePaymentMethodSetup, context_listSubscriptionHistory as listSubscriptionHistory, context_listUpcomingCharges as listUpcomingCharges, context_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, context_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, context_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, context_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, context_onSubscriptionCanceled as onSubscriptionCanceled, context_onSubscriptionExtended as onSubscriptionExtended, context_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, context_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, context_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, context_onSubscriptionPaused as onSubscriptionPaused, context_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, context_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, context_onSubscriptionResumed as onSubscriptionResumed, context_onSubscriptionUpdated as onSubscriptionUpdated, context_pauseSubscription as pauseSubscription, context_payCycle as payCycle, context_previewSubscriptionCharges as previewSubscriptionCharges, context_previewSubscriptionsCharges as previewSubscriptionsCharges, onSubscriptionAutoRenewalTurnedOff$1 as publicOnSubscriptionAutoRenewalTurnedOff, onSubscriptionAutoRenewalTurnedOn$1 as publicOnSubscriptionAutoRenewalTurnedOn, onSubscriptionBillingDateUpdated$1 as publicOnSubscriptionBillingDateUpdated, onSubscriptionCanceled$1 as publicOnSubscriptionCanceled, onSubscriptionExtended$1 as publicOnSubscriptionExtended, onSubscriptionLatestInvoiceMarkedAsPaid$1 as publicOnSubscriptionLatestInvoiceMarkedAsPaid, onSubscriptionPauseScheduleCanceled$1 as publicOnSubscriptionPauseScheduleCanceled, onSubscriptionPauseScheduled$1 as publicOnSubscriptionPauseScheduled, onSubscriptionPaused$1 as publicOnSubscriptionPaused, onSubscriptionResumeScheduleCanceled$1 as publicOnSubscriptionResumeScheduleCanceled, onSubscriptionResumeScheduled$1 as publicOnSubscriptionResumeScheduled, onSubscriptionResumed$1 as publicOnSubscriptionResumed, onSubscriptionUpdated$1 as publicOnSubscriptionUpdated, context_querySubscriptions as querySubscriptions, context_resumeSubscription as resumeSubscription, context_searchSubscriptions as searchSubscriptions, context_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, context_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, context_updateSubscriptionBillingDate as updateSubscriptionBillingDate, context_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
|
|
5140
|
+
export { type context_Action as Action, type context_ActionContext as ActionContext, type context_ActionDetails as ActionDetails, type context_ActionEvent as ActionEvent, context_ActionInitiator as ActionInitiator, context_ActionType as ActionType, type context_AddPausePeriodRequest as AddPausePeriodRequest, type context_AddPausePeriodResponse as AddPausePeriodResponse, type context_AdditionalFee as AdditionalFee, context_AdditionalFeeTrigger as AdditionalFeeTrigger, type context_Address as Address, type context_AddressStreetOneOf as AddressStreetOneOf, type context_AggregatedTaxBreakdown as AggregatedTaxBreakdown, type context_AllowedActionsOptions as AllowedActionsOptions, type context_AllowedActionsRequest as AllowedActionsRequest, type context_AllowedActionsResponse as AllowedActionsResponse, type context_AllowedActionsResponseNonNullableFields as AllowedActionsResponseNonNullableFields, type context_AmountByStatus as AmountByStatus, type context_ApplicationFee as ApplicationFee, type context_ApplicationFeeValueOneOf as ApplicationFeeValueOneOf, type context_AttachInvoice as AttachInvoice, type context_AutomaticRetryData as AutomaticRetryData, type context_BaseEventMetadata as BaseEventMetadata, type context_BillingSettings as BillingSettings, type context_BillingStatus as BillingStatus, type context_BulkItemChange as BulkItemChange, type context_BulkUpdateSubscriptionItemsByFilterRequest as BulkUpdateSubscriptionItemsByFilterRequest, type context_BulkUpdateSubscriptionItemsByFilterResponse as BulkUpdateSubscriptionItemsByFilterResponse, type context_BusinessOrigin as BusinessOrigin, type context_BusinessOriginData as BusinessOriginData, type context_Cancel as Cancel, type context_CancelSubscriptionBORequest as CancelSubscriptionBORequest, type context_CancelSubscriptionBOResponse as CancelSubscriptionBOResponse, type context_CancelSubscriptionRequest as CancelSubscriptionRequest, type context_CancelSubscriptionResponse as CancelSubscriptionResponse, type context_CancelSubscriptionResponseNonNullableFields as CancelSubscriptionResponseNonNullableFields, type context_CancelTimeCapsuleTaskRequest as CancelTimeCapsuleTaskRequest, type context_CancellationInfo as CancellationInfo, context_CancellationInitiator as CancellationInitiator, type context_CatalogReference as CatalogReference, type context_Charge as Charge, context_CollectionMethod as CollectionMethod, context_CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethod, type context_Complete as Complete, type context_ConvertSapiRequest as ConvertSapiRequest, type context_ConvertSapiResponse as ConvertSapiResponse, type context_CountByStatus as CountByStatus, type context_CountSubscriptionFilter as CountSubscriptionFilter, type context_CountSubscriptionFilterStatusOneOf as CountSubscriptionFilterStatusOneOf, type context_CountSubscriptionsOptions as CountSubscriptionsOptions, type context_CountSubscriptionsRequest as CountSubscriptionsRequest, type context_CountSubscriptionsResponse as CountSubscriptionsResponse, type context_CountSubscriptionsResponseNonNullableFields as CountSubscriptionsResponseNonNullableFields, type context_CreateRecurringInvoiceBORequest as CreateRecurringInvoiceBORequest, type context_CreateRecurringInvoiceBOResponse as CreateRecurringInvoiceBOResponse, type context_CreateSubscriptionForOrderRequest as CreateSubscriptionForOrderRequest, type context_CreateSubscriptionForOrderResponse as CreateSubscriptionForOrderResponse, type context_CreateSubscriptionInStateRequest as CreateSubscriptionInStateRequest, type context_CreateSubscriptionInStateRequestModeOneOf as CreateSubscriptionInStateRequestModeOneOf, type context_CreateSubscriptionInStateResponse as CreateSubscriptionInStateResponse, type context_CreateSubscriptionRequest as CreateSubscriptionRequest, type context_CreateSubscriptionResponse as CreateSubscriptionResponse, context_CreationMode as CreationMode, type context_CursorPaging as CursorPaging, type context_Cursors as Cursors, type context_CustomBillingSchedule as CustomBillingSchedule, type context_CustomProration as CustomProration, type context_CustomProrationAmountOneOf as CustomProrationAmountOneOf, type context_Customer as Customer, type context_CustomerAllowedActionsRequest as CustomerAllowedActionsRequest, type context_CustomerAllowedActionsResponse as CustomerAllowedActionsResponse, type context_CustomerAllowedActionsResponseNonNullableFields as CustomerAllowedActionsResponseNonNullableFields, type context_CustomerCancelSubscriptionOptions as CustomerCancelSubscriptionOptions, type context_CustomerCancelSubscriptionRequest as CustomerCancelSubscriptionRequest, type context_CustomerCancelSubscriptionResponse as CustomerCancelSubscriptionResponse, type context_CustomerCancelSubscriptionResponseNonNullableFields as CustomerCancelSubscriptionResponseNonNullableFields, type context_CustomerExtendSubscriptionOptions as CustomerExtendSubscriptionOptions, type context_CustomerExtendSubscriptionRequest as CustomerExtendSubscriptionRequest, type context_CustomerExtendSubscriptionResponse as CustomerExtendSubscriptionResponse, type context_CustomerExtendSubscriptionResponseNonNullableFields as CustomerExtendSubscriptionResponseNonNullableFields, type context_CustomerIdOneOf as CustomerIdOneOf, type context_CustomerInitiatePaymentMethodSetupOptions as CustomerInitiatePaymentMethodSetupOptions, type context_CustomerListUpcomingChargesRequest as CustomerListUpcomingChargesRequest, type context_CustomerListUpcomingChargesResponse as CustomerListUpcomingChargesResponse, type context_CustomerListUpcomingChargesResponseNonNullableFields as CustomerListUpcomingChargesResponseNonNullableFields, type context_CustomerQuerySubscriptionsOptions as CustomerQuerySubscriptionsOptions, type context_CustomerTurnOffAutoRenewalRequest as CustomerTurnOffAutoRenewalRequest, type context_CustomerTurnOffAutoRenewalResponse as CustomerTurnOffAutoRenewalResponse, type context_CustomerTurnOffAutoRenewalResponseNonNullableFields as CustomerTurnOffAutoRenewalResponseNonNullableFields, type context_CustomerTurnOffSubscriptionAutoRenewalOptions as CustomerTurnOffSubscriptionAutoRenewalOptions, type context_CustomerTurnOnAutoRenewalRequest as CustomerTurnOnAutoRenewalRequest, type context_CustomerTurnOnAutoRenewalResponse as CustomerTurnOnAutoRenewalResponse, type context_CustomerTurnOnAutoRenewalResponseNonNullableFields as CustomerTurnOnAutoRenewalResponseNonNullableFields, type context_CustomerTurnOnSubscriptionAutoRenewalOptions as CustomerTurnOnSubscriptionAutoRenewalOptions, type context_Cycles as Cycles, type context_DeleteDraftSubscriptionRequest as DeleteDraftSubscriptionRequest, type context_DeleteDraftSubscriptionResponse as DeleteDraftSubscriptionResponse, type context_DeleteSubscriptionBORequest as DeleteSubscriptionBORequest, type context_DeleteSubscriptionBOResponse as DeleteSubscriptionBOResponse, type context_DeleteSubscriptionRequest as DeleteSubscriptionRequest, type context_DeleteSubscriptionResponse as DeleteSubscriptionResponse, type context_DetachInvoice as DetachInvoice, type context_Discount as Discount, type context_DiscountCycles as DiscountCycles, type context_DiscountOrigin as DiscountOrigin, type context_DiscountValueOneOf as DiscountValueOneOf, type context_DomainEvent as DomainEvent, type context_DomainEventBodyOneOf as DomainEventBodyOneOf, type context_Duration as Duration, context_DurationUnit as DurationUnit, type context_DynamicTax as DynamicTax, type context_Empty as Empty, type context_EntityCreatedEvent as EntityCreatedEvent, type context_EntityDeletedEvent as EntityDeletedEvent, type context_EntityUpdatedEvent as EntityUpdatedEvent, type context_EventMetadata as EventMetadata, context_ExtendPolicyType as ExtendPolicyType, type context_ExtendSubscriptionOptions as ExtendSubscriptionOptions, type context_ExtendSubscriptionRequest as ExtendSubscriptionRequest, type context_ExtendSubscriptionRequestExtendPolicyOneOf as ExtendSubscriptionRequestExtendPolicyOneOf, type context_ExtendSubscriptionResponse as ExtendSubscriptionResponse, type context_ExtendSubscriptionResponseNonNullableFields as ExtendSubscriptionResponseNonNullableFields, type context_ExternalCollectionDetails as ExternalCollectionDetails, type context_FinishFreeTrialNowRequest as FinishFreeTrialNowRequest, type context_FinishFreeTrialNowResponse as FinishFreeTrialNowResponse, type context_FixSubscriptionInvoicesRequest as FixSubscriptionInvoicesRequest, type context_FixSubscriptionInvoicesRequestModeOneOf as FixSubscriptionInvoicesRequestModeOneOf, type context_FixSubscriptionInvoicesResponse as FixSubscriptionInvoicesResponse, type context_FixedPrice as FixedPrice, type context_FreeTrailEnded as FreeTrailEnded, type context_FreeTrailStarted as FreeTrailStarted, type context_FreeTrialData as FreeTrialData, type context_FullAddressContactDetails as FullAddressContactDetails, type context_FullAddressDetails as FullAddressDetails, type context_FutureUpdatesRequested as FutureUpdatesRequested, type context_GetFullSubscriptionDataRequest as GetFullSubscriptionDataRequest, type context_GetFullSubscriptionDataResponse as GetFullSubscriptionDataResponse, type context_GetSubscriptionAndInternalDataRequest as GetSubscriptionAndInternalDataRequest, type context_GetSubscriptionAndInternalDataResponse as GetSubscriptionAndInternalDataResponse, type context_GetSubscriptionInvoicesRequest as GetSubscriptionInvoicesRequest, type context_GetSubscriptionInvoicesResponse as GetSubscriptionInvoicesResponse, type context_GetSubscriptionRequest as GetSubscriptionRequest, type context_GetSubscriptionResponse as GetSubscriptionResponse, type context_GetSubscriptionResponseNonNullableFields as GetSubscriptionResponseNonNullableFields, type context_GetSubscriptionsStatsRequest as GetSubscriptionsStatsRequest, type context_GetSubscriptionsStatsResponse as GetSubscriptionsStatsResponse, type context_GetSubscriptionsStatsResponseNonNullableFields as GetSubscriptionsStatsResponseNonNullableFields, type context_GracePeriodData as GracePeriodData, type context_GracePeriodEnded as GracePeriodEnded, type context_GracePeriodStarted as GracePeriodStarted, type context_HandleSubscriptionAfterInvoiceMarkedAsPaidRequest as HandleSubscriptionAfterInvoiceMarkedAsPaidRequest, context_HistoryActionInitiator as HistoryActionInitiator, context_HistoryViewMode as HistoryViewMode, type context_IdentificationData as IdentificationData, type context_IdentificationDataIdOneOf as IdentificationDataIdOneOf, context_IdentityType as IdentityType, type context_InitiatePaymentMethodSetupOptions as InitiatePaymentMethodSetupOptions, type context_InitiatePaymentMethodSetupRequest as InitiatePaymentMethodSetupRequest, type context_InitiatePaymentMethodSetupResponse as InitiatePaymentMethodSetupResponse, type context_InitiatePaymentMethodSetupResponseNonNullableFields as InitiatePaymentMethodSetupResponseNonNullableFields, type context_InternalSubscriptionData as InternalSubscriptionData, type context_Invoice as Invoice, type context_InvoiceAction as InvoiceAction, type context_InvoiceActionActionTypeOneOf as InvoiceActionActionTypeOneOf, type context_InvoiceApplicationFee as InvoiceApplicationFee, type context_InvoiceApplicationFeeValueOneOf as InvoiceApplicationFeeValueOneOf, type context_InvoiceDiscount as InvoiceDiscount, type context_InvoiceDiscountValueOneOf as InvoiceDiscountValueOneOf, type context_InvoiceItem as InvoiceItem, type context_InvoiceItemPaymentTypeOneOf as InvoiceItemPaymentTypeOneOf, type context_InvoiceShippingCharges as InvoiceShippingCharges, context_InvoiceStatus as InvoiceStatus, type context_Item as Item, context_ItemCategory as ItemCategory, type context_ItemChange as ItemChange, type context_ItemTaxData as ItemTaxData, type context_LatestInvoiceMarkedAsPaid as LatestInvoiceMarkedAsPaid, type context_LatestPaymentAttempt as LatestPaymentAttempt, type context_LineItemTaxSummary as LineItemTaxSummary, type context_ListSubscriptionHistoryOptions as ListSubscriptionHistoryOptions, type context_ListSubscriptionHistoryRequest as ListSubscriptionHistoryRequest, type context_ListSubscriptionHistoryResponse as ListSubscriptionHistoryResponse, type context_ListSubscriptionHistoryResponseNonNullableFields as ListSubscriptionHistoryResponseNonNullableFields, type context_ListUpcomingChargesOptions as ListUpcomingChargesOptions, type context_ListUpcomingChargesRequest as ListUpcomingChargesRequest, type context_ListUpcomingChargesResponse as ListUpcomingChargesResponse, type context_ListUpcomingChargesResponseNonNullableFields as ListUpcomingChargesResponseNonNullableFields, type context_MarkLatestInvoiceAsPaidRequest as MarkLatestInvoiceAsPaidRequest, type context_MarkLatestInvoiceAsPaidResponse as MarkLatestInvoiceAsPaidResponse, type context_MarkLatestInvoiceAsPaidResponseNonNullableFields as MarkLatestInvoiceAsPaidResponseNonNullableFields, type context_MessageEnvelope as MessageEnvelope, type context_MigrationDetails as MigrationDetails, type context_Money as Money, type context_OneTime as OneTime, context_OrderMethod as OrderMethod, type context_OriginOverride as OriginOverride, type context_Paging as Paging, type context_PagingMetadataV2 as PagingMetadataV2, context_PauseAt as PauseAt, type context_PauseInfo as PauseInfo, type context_PausePeriod as PausePeriod, context_PausePolicy as PausePolicy, type context_PauseSubscriptionBORequest as PauseSubscriptionBORequest, type context_PauseSubscriptionBOResponse as PauseSubscriptionBOResponse, type context_PauseSubscriptionOptions as PauseSubscriptionOptions, type context_PauseSubscriptionRequest as PauseSubscriptionRequest, type context_PauseSubscriptionRequested as PauseSubscriptionRequested, type context_PauseSubscriptionResponse as PauseSubscriptionResponse, type context_PauseSubscriptionResponseNonNullableFields as PauseSubscriptionResponseNonNullableFields, type context_PayCycleOptions as PayCycleOptions, type context_PayCycleRequest as PayCycleRequest, type context_PayCycleResponse as PayCycleResponse, type context_PayCycleResponseNonNullableFields as PayCycleResponseNonNullableFields, type context_PayRecurringInvoice as PayRecurringInvoice, context_PaymentAttemptStatus as PaymentAttemptStatus, type context_PaymentData as PaymentData, type context_PaymentMethod as PaymentMethod, type context_PaymentMethodUpdated as PaymentMethodUpdated, context_PaymentMode as PaymentMode, type context_PaymentOrigin as PaymentOrigin, type context_PaymentSettings as PaymentSettings, context_PaymentSettlementMethod as PaymentSettlementMethod, context_PaymentStatus as PaymentStatus, context_PaymentStatusEnumPaymentStatus as PaymentStatusEnumPaymentStatus, context_PaymentTestMode as PaymentTestMode, type context_PlatformOrigin as PlatformOrigin, type context_PreviewSubscriptionChargesOptions as PreviewSubscriptionChargesOptions, type context_PreviewSubscriptionChargesRequest as PreviewSubscriptionChargesRequest, type context_PreviewSubscriptionChargesRequestSubscriptionOneOf as PreviewSubscriptionChargesRequestSubscriptionOneOf, type context_PreviewSubscriptionChargesResponse as PreviewSubscriptionChargesResponse, type context_PreviewSubscriptionChargesResponseNonNullableFields as PreviewSubscriptionChargesResponseNonNullableFields, type context_PreviewSubscriptionsChargesOptions as PreviewSubscriptionsChargesOptions, type context_PreviewSubscriptionsChargesRequest as PreviewSubscriptionsChargesRequest, type context_PreviewSubscriptionsChargesResponse as PreviewSubscriptionsChargesResponse, type context_PreviewSubscriptionsChargesResponseNonNullableFields as PreviewSubscriptionsChargesResponseNonNullableFields, type context_PriceAdjustment as PriceAdjustment, type context_PriceAdjustmentAdjustmentTypeOneOf as PriceAdjustmentAdjustmentTypeOneOf, type context_PriceAdjustmentValue as PriceAdjustmentValue, type context_PriceAdjustmentValueAdjustmentValueTypeOneOf as PriceAdjustmentValueAdjustmentValueTypeOneOf, type context_PriceDetails as PriceDetails, type context_PricingModel as PricingModel, type context_PricingModelModelOneOf as PricingModelModelOneOf, type context_Proration as Proration, type context_ProrationTypeOneOf as ProrationTypeOneOf, type context_QuerySubscriptionsRequest as QuerySubscriptionsRequest, type context_QuerySubscriptionsResponse as QuerySubscriptionsResponse, type context_QuerySubscriptionsResponseNonNullableFields as QuerySubscriptionsResponseNonNullableFields, type context_QueryV2 as QueryV2, type context_QueryV2PagingMethodOneOf as QueryV2PagingMethodOneOf, type context_Recurring as Recurring, type context_RedirectUrls as RedirectUrls, context_RequestedFields as RequestedFields, type context_Reschedule as Reschedule, type context_ResetPendingUpdates as ResetPendingUpdates, type context_RestoreDraftSubscriptionRequest as RestoreDraftSubscriptionRequest, type context_RestoreDraftSubscriptionResponse as RestoreDraftSubscriptionResponse, type context_RestoreInfo as RestoreInfo, context_ResumeAt as ResumeAt, type context_ResumeSubscriptionOptions as ResumeSubscriptionOptions, type context_ResumeSubscriptionRequest as ResumeSubscriptionRequest, type context_ResumeSubscriptionRequested as ResumeSubscriptionRequested, type context_ResumeSubscriptionResponse as ResumeSubscriptionResponse, type context_ResumeSubscriptionResponseNonNullableFields as ResumeSubscriptionResponseNonNullableFields, type context_ReviseSubscriptionRequest as ReviseSubscriptionRequest, type context_ReviseSubscriptionResponse as ReviseSubscriptionResponse, context_RevivePolicy as RevivePolicy, type context_ReviveSubscriptionRequest as ReviveSubscriptionRequest, type context_ReviveSubscriptionResponse as ReviveSubscriptionResponse, type context_RunTimeCapsuleTaskNowRequest as RunTimeCapsuleTaskNowRequest, type context_ScheduleAdditionalInfo as ScheduleAdditionalInfo, type context_ScheduleAdditionalInfoParamOneOf as ScheduleAdditionalInfoParamOneOf, type context_ScheduleTimeCapsuleTaskRequest as ScheduleTimeCapsuleTaskRequest, type context_ScheduledPauseCanceled as ScheduledPauseCanceled, type context_ScheduledResumeCanceled as ScheduledResumeCanceled, type context_SearchSubscriptionRequest as SearchSubscriptionRequest, type context_SearchSubscriptionResponse as SearchSubscriptionResponse, type context_SearchSubscriptionsOptions as SearchSubscriptionsOptions, type context_SearchSubscriptionsRequest as SearchSubscriptionsRequest, type context_SearchSubscriptionsRequestPagingMethodOneOf as SearchSubscriptionsRequestPagingMethodOneOf, type context_SearchSubscriptionsResponse as SearchSubscriptionsResponse, type context_SearchSubscriptionsResponseNonNullableFields as SearchSubscriptionsResponseNonNullableFields, type context_SendSubscriptionActionEventBORequest as SendSubscriptionActionEventBORequest, type context_SendSubscriptionActionEventBORequestEventOneOf as SendSubscriptionActionEventBORequestEventOneOf, type context_SendSubscriptionActionEventResponse as SendSubscriptionActionEventResponse, type context_SendTimeCapsuleTaskCanceledBIRequest as SendTimeCapsuleTaskCanceledBIRequest, type context_SetIsMigratedEvent as SetIsMigratedEvent, type context_SetShiftingDataRequest as SetShiftingDataRequest, type context_SetShiftingDataResponse as SetShiftingDataResponse, type context_ShippingCharges as ShippingCharges, context_SortOrder as SortOrder, type context_Sorting as Sorting, type context_SortingClauses as SortingClauses, type context_SpecificDateSubscriptionUpdateData as SpecificDateSubscriptionUpdateData, context_Status as Status, type context_StreetAddress as StreetAddress, type context_Subscriber as Subscriber, type context_Subscription as Subscription, type context_SubscriptionActivated as SubscriptionActivated, type context_SubscriptionAutoRenewalTurnedOff as SubscriptionAutoRenewalTurnedOff, type context_SubscriptionAutoRenewalTurnedOffEnvelope as SubscriptionAutoRenewalTurnedOffEnvelope, type context_SubscriptionAutoRenewalTurnedOn as SubscriptionAutoRenewalTurnedOn, type context_SubscriptionAutoRenewalTurnedOnEnvelope as SubscriptionAutoRenewalTurnedOnEnvelope, type context_SubscriptionBackOfficeAction as SubscriptionBackOfficeAction, type context_SubscriptionBillingCycleStarted as SubscriptionBillingCycleStarted, type context_SubscriptionBillingDateUpdated as SubscriptionBillingDateUpdated, type context_SubscriptionBillingDateUpdatedEnvelope as SubscriptionBillingDateUpdatedEnvelope, type context_SubscriptionBillingDetails as SubscriptionBillingDetails, type context_SubscriptionCanceled as SubscriptionCanceled, type context_SubscriptionCanceledEnvelope as SubscriptionCanceledEnvelope, type context_SubscriptionCancellationRequested as SubscriptionCancellationRequested, type context_SubscriptionCharge as SubscriptionCharge, type context_SubscriptionCharges as SubscriptionCharges, type context_SubscriptionCollectionMethodUpdated as SubscriptionCollectionMethodUpdated, type context_SubscriptionCreated as SubscriptionCreated, type context_SubscriptionCycleReadyToPay as SubscriptionCycleReadyToPay, type context_SubscriptionCycleTriggered as SubscriptionCycleTriggered, type context_SubscriptionDelayedSyncEvent as SubscriptionDelayedSyncEvent, type context_SubscriptionDeleted as SubscriptionDeleted, type context_SubscriptionDiff as SubscriptionDiff, type context_SubscriptionEnded as SubscriptionEnded, type context_SubscriptionEvent as SubscriptionEvent, type context_SubscriptionEventPayloadOneOf as SubscriptionEventPayloadOneOf, type context_SubscriptionExpired as SubscriptionExpired, type context_SubscriptionExtended as SubscriptionExtended, type context_SubscriptionExtendedEnvelope as SubscriptionExtendedEnvelope, type context_SubscriptionExtendedExtendPolicyOneOf as SubscriptionExtendedExtendPolicyOneOf, context_SubscriptionFrequency as SubscriptionFrequency, type context_SubscriptionHistoryEntry as SubscriptionHistoryEntry, type context_SubscriptionInfo as SubscriptionInfo, type context_SubscriptionInitialPurchaseCompleted as SubscriptionInitialPurchaseCompleted, type context_SubscriptionInvoice as SubscriptionInvoice, type context_SubscriptionLatestInvoiceMarkedAsPaidEnvelope as SubscriptionLatestInvoiceMarkedAsPaidEnvelope, type context_SubscriptionMarkedAsPaid as SubscriptionMarkedAsPaid, type context_SubscriptionPauseScheduleCanceledEnvelope as SubscriptionPauseScheduleCanceledEnvelope, type context_SubscriptionPauseScheduledEnvelope as SubscriptionPauseScheduledEnvelope, type context_SubscriptionPaused as SubscriptionPaused, type context_SubscriptionPausedEnvelope as SubscriptionPausedEnvelope, type context_SubscriptionPolicies as SubscriptionPolicies, type context_SubscriptionPolicy as SubscriptionPolicy, type context_SubscriptionResumeScheduleCanceledEnvelope as SubscriptionResumeScheduleCanceledEnvelope, type context_SubscriptionResumeScheduledEnvelope as SubscriptionResumeScheduledEnvelope, type context_SubscriptionResumed as SubscriptionResumed, type context_SubscriptionResumedEnvelope as SubscriptionResumedEnvelope, type context_SubscriptionRevived as SubscriptionRevived, type context_SubscriptionStatus as SubscriptionStatus, context_SubscriptionStatusEnumSubscriptionStatus as SubscriptionStatusEnumSubscriptionStatus, context_SubscriptionStatusGroup as SubscriptionStatusGroup, type context_SubscriptionSuspended as SubscriptionSuspended, type context_SubscriptionTrialPeriod as SubscriptionTrialPeriod, context_SubscriptionType as SubscriptionType, type context_SubscriptionUpdateData as SubscriptionUpdateData, type context_SubscriptionUpdated as SubscriptionUpdated, type context_SubscriptionUpdatedEnvelope as SubscriptionUpdatedEnvelope, type context_Suspension as Suspension, type context_Task as Task, type context_TaskAction as TaskAction, type context_TaskActionActionOneOf as TaskActionActionOneOf, type context_TaskKey as TaskKey, type context_Tax as Tax, type context_TaxBreakdown as TaxBreakdown, type context_TaxData as TaxData, type context_TaxSettings as TaxSettings, type context_TaxSummary as TaxSummary, type context_TaxValueOneOf as TaxValueOneOf, context_TaxableAddressType as TaxableAddressType, type context_TimeBasedProration as TimeBasedProration, type context_Totals as Totals, type context_TurnOffSubscriptionAutoRenewalRequest as TurnOffSubscriptionAutoRenewalRequest, type context_TurnOffSubscriptionAutoRenewalResponse as TurnOffSubscriptionAutoRenewalResponse, type context_TurnOffSubscriptionAutoRenewalResponseNonNullableFields as TurnOffSubscriptionAutoRenewalResponseNonNullableFields, type context_TurnOnSubscriptionAutoRenewalRequest as TurnOnSubscriptionAutoRenewalRequest, type context_TurnOnSubscriptionAutoRenewalResponse as TurnOnSubscriptionAutoRenewalResponse, type context_TurnOnSubscriptionAutoRenewalResponseNonNullableFields as TurnOnSubscriptionAutoRenewalResponseNonNullableFields, type context_UnknownSubscriptionEvent as UnknownSubscriptionEvent, type context_UnsupportedAction as UnsupportedAction, type context_UnsupportedReason as UnsupportedReason, context_UpdateAction as UpdateAction, type context_UpdateBillingDateData as UpdateBillingDateData, type context_UpdateFullSubscriptionRequest as UpdateFullSubscriptionRequest, type context_UpdateFullSubscriptionResponse as UpdateFullSubscriptionResponse, type context_UpdatePausePaidDurationRequest as UpdatePausePaidDurationRequest, type context_UpdatePausePaidDurationResponse as UpdatePausePaidDurationResponse, type context_UpdatePaymentMethodBORequest as UpdatePaymentMethodBORequest, type context_UpdatePaymentMethodBOResponse as UpdatePaymentMethodBOResponse, type context_UpdatePaymentStatusRequest as UpdatePaymentStatusRequest, type context_UpdatePaymentStatusResponse as UpdatePaymentStatusResponse, type context_UpdateStatusRequest as UpdateStatusRequest, type context_UpdateStatusResponse as UpdateStatusResponse, type context_UpdateSubscriptionBillingDateOptions as UpdateSubscriptionBillingDateOptions, type context_UpdateSubscriptionBillingDateRequest as UpdateSubscriptionBillingDateRequest, type context_UpdateSubscriptionBillingDateResponse as UpdateSubscriptionBillingDateResponse, type context_UpdateSubscriptionBillingDateResponseNonNullableFields as UpdateSubscriptionBillingDateResponseNonNullableFields, type context_UpdateSubscriptionInvoiceCycleRequest as UpdateSubscriptionInvoiceCycleRequest, type context_UpdateSubscriptionInvoiceCycleResponse as UpdateSubscriptionInvoiceCycleResponse, type context_UpdateSubscriptionItemsRequest as UpdateSubscriptionItemsRequest, type context_UpdateSubscriptionItemsResponse as UpdateSubscriptionItemsResponse, type context_UpdateSubscriptionOriginRequest as UpdateSubscriptionOriginRequest, type context_UpdateSubscriptionOriginResponse as UpdateSubscriptionOriginResponse, type context_UpdateSubscriptionPaymentMethodRequest as UpdateSubscriptionPaymentMethodRequest, type context_UpdateSubscriptionPaymentMethodResponse as UpdateSubscriptionPaymentMethodResponse, type context_UpdateSubscriptionPaymentMethodResponseNonNullableFields as UpdateSubscriptionPaymentMethodResponseNonNullableFields, type context_UpdateSubscriptionPoliciesRequest as UpdateSubscriptionPoliciesRequest, type context_UpdateSubscriptionPoliciesResponse as UpdateSubscriptionPoliciesResponse, type context_UpdateSubscriptionRequest as UpdateSubscriptionRequest, type context_UpdateSubscriptionResponse as UpdateSubscriptionResponse, type context_UpdateSubscriptionStartDateRequest as UpdateSubscriptionStartDateRequest, type context_UpdateSubscriptionStartDateResponse as UpdateSubscriptionStartDateResponse, type context_UpdatesApplied as UpdatesApplied, type context_V1Duration as V1Duration, type context_V1Subscription as V1Subscription, type context_V1SubscriptionActivated as V1SubscriptionActivated, type context_V1SubscriptionCanceled as V1SubscriptionCanceled, type context_V1SubscriptionCreated as V1SubscriptionCreated, type context_V1SubscriptionEvent as V1SubscriptionEvent, type context_V1SubscriptionEventEventOneOf as V1SubscriptionEventEventOneOf, type context_V1SubscriptionInitialPurchaseCompleted as V1SubscriptionInitialPurchaseCompleted, type context_V1SubscriptionResumed as V1SubscriptionResumed, context_V1SubscriptionStatusEnumSubscriptionStatus as V1SubscriptionStatusEnumSubscriptionStatus, type context_V1SubscriptionUpdated as V1SubscriptionUpdated, type context_V2Subscription as V2Subscription, context_WebhookIdentityType as WebhookIdentityType, type context__publicOnSubscriptionAutoRenewalTurnedOffType as _publicOnSubscriptionAutoRenewalTurnedOffType, type context__publicOnSubscriptionAutoRenewalTurnedOnType as _publicOnSubscriptionAutoRenewalTurnedOnType, type context__publicOnSubscriptionBillingDateUpdatedType as _publicOnSubscriptionBillingDateUpdatedType, type context__publicOnSubscriptionCanceledType as _publicOnSubscriptionCanceledType, type context__publicOnSubscriptionExtendedType as _publicOnSubscriptionExtendedType, type context__publicOnSubscriptionLatestInvoiceMarkedAsPaidType as _publicOnSubscriptionLatestInvoiceMarkedAsPaidType, type context__publicOnSubscriptionPauseScheduleCanceledType as _publicOnSubscriptionPauseScheduleCanceledType, type context__publicOnSubscriptionPauseScheduledType as _publicOnSubscriptionPauseScheduledType, type context__publicOnSubscriptionPausedType as _publicOnSubscriptionPausedType, type context__publicOnSubscriptionResumeScheduleCanceledType as _publicOnSubscriptionResumeScheduleCanceledType, type context__publicOnSubscriptionResumeScheduledType as _publicOnSubscriptionResumeScheduledType, type context__publicOnSubscriptionResumedType as _publicOnSubscriptionResumedType, type context__publicOnSubscriptionUpdatedType as _publicOnSubscriptionUpdatedType, context_allowedActions as allowedActions, context_cancelSubscription as cancelSubscription, context_countSubscriptions as countSubscriptions, context_customerAllowedActions as customerAllowedActions, context_customerCancelSubscription as customerCancelSubscription, context_customerExtendSubscription as customerExtendSubscription, context_customerGetSubscription as customerGetSubscription, context_customerInitiatePaymentMethodSetup as customerInitiatePaymentMethodSetup, context_customerListUpcomingCharges as customerListUpcomingCharges, context_customerQuerySubscriptions as customerQuerySubscriptions, context_customerTurnOffSubscriptionAutoRenewal as customerTurnOffSubscriptionAutoRenewal, context_customerTurnOnSubscriptionAutoRenewal as customerTurnOnSubscriptionAutoRenewal, context_customerUpdateSubscriptionPaymentMethod as customerUpdateSubscriptionPaymentMethod, context_extendSubscription as extendSubscription, context_getSubscription as getSubscription, context_getSubscriptionsStats as getSubscriptionsStats, context_initiatePaymentMethodSetup as initiatePaymentMethodSetup, context_listSubscriptionHistory as listSubscriptionHistory, context_listUpcomingCharges as listUpcomingCharges, context_markLatestInvoiceAsPaid as markLatestInvoiceAsPaid, context_onSubscriptionAutoRenewalTurnedOff as onSubscriptionAutoRenewalTurnedOff, context_onSubscriptionAutoRenewalTurnedOn as onSubscriptionAutoRenewalTurnedOn, context_onSubscriptionBillingDateUpdated as onSubscriptionBillingDateUpdated, context_onSubscriptionCanceled as onSubscriptionCanceled, context_onSubscriptionExtended as onSubscriptionExtended, context_onSubscriptionLatestInvoiceMarkedAsPaid as onSubscriptionLatestInvoiceMarkedAsPaid, context_onSubscriptionPauseScheduleCanceled as onSubscriptionPauseScheduleCanceled, context_onSubscriptionPauseScheduled as onSubscriptionPauseScheduled, context_onSubscriptionPaused as onSubscriptionPaused, context_onSubscriptionResumeScheduleCanceled as onSubscriptionResumeScheduleCanceled, context_onSubscriptionResumeScheduled as onSubscriptionResumeScheduled, context_onSubscriptionResumed as onSubscriptionResumed, context_onSubscriptionUpdated as onSubscriptionUpdated, context_pauseSubscription as pauseSubscription, context_payCycle as payCycle, context_previewSubscriptionCharges as previewSubscriptionCharges, context_previewSubscriptionsCharges as previewSubscriptionsCharges, onSubscriptionAutoRenewalTurnedOff$1 as publicOnSubscriptionAutoRenewalTurnedOff, onSubscriptionAutoRenewalTurnedOn$1 as publicOnSubscriptionAutoRenewalTurnedOn, onSubscriptionBillingDateUpdated$1 as publicOnSubscriptionBillingDateUpdated, onSubscriptionCanceled$1 as publicOnSubscriptionCanceled, onSubscriptionExtended$1 as publicOnSubscriptionExtended, onSubscriptionLatestInvoiceMarkedAsPaid$1 as publicOnSubscriptionLatestInvoiceMarkedAsPaid, onSubscriptionPauseScheduleCanceled$1 as publicOnSubscriptionPauseScheduleCanceled, onSubscriptionPauseScheduled$1 as publicOnSubscriptionPauseScheduled, onSubscriptionPaused$1 as publicOnSubscriptionPaused, onSubscriptionResumeScheduleCanceled$1 as publicOnSubscriptionResumeScheduleCanceled, onSubscriptionResumeScheduled$1 as publicOnSubscriptionResumeScheduled, onSubscriptionResumed$1 as publicOnSubscriptionResumed, onSubscriptionUpdated$1 as publicOnSubscriptionUpdated, context_querySubscriptions as querySubscriptions, context_resumeSubscription as resumeSubscription, context_searchSubscriptions as searchSubscriptions, context_turnOffSubscriptionAutoRenewal as turnOffSubscriptionAutoRenewal, context_turnOnSubscriptionAutoRenewal as turnOnSubscriptionAutoRenewal, context_updateSubscriptionBillingDate as updateSubscriptionBillingDate, context_updateSubscriptionPaymentMethod as updateSubscriptionPaymentMethod };
|
|
5120
5141
|
}
|
|
5121
5142
|
|
|
5122
5143
|
export { context as subscriptions };
|