@wix/auto_sdk_subscription_subscriptions 1.0.47 → 1.0.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cjs/index.d.ts +3 -11
- package/build/cjs/index.js +402 -142
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +2020 -1771
- package/build/cjs/index.typings.js +338 -97
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1991 -1762
- package/build/cjs/meta.js +291 -92
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -11
- package/build/es/index.mjs +396 -141
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +2020 -1771
- package/build/es/index.typings.mjs +332 -96
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1991 -1762
- package/build/es/meta.mjs +285 -91
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +28 -10
- package/build/internal/cjs/index.typings.d.ts +1713 -1383
- package/build/internal/cjs/meta.d.ts +2124 -1783
- package/build/internal/es/index.d.mts +28 -10
- package/build/internal/es/index.typings.d.mts +1713 -1383
- package/build/internal/es/meta.d.mts +2124 -1783
- package/package.json +4 -4
- package/build/internal/cjs/index.js +0 -6659
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -5629
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -4712
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/es/index.mjs +0 -6543
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -5526
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -4606
- package/build/internal/es/meta.mjs.map +0 -1
package/build/cjs/meta.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(meta_exports, {
|
|
|
25
25
|
AdditionalFeeTriggerOriginal: () => AdditionalFeeTrigger,
|
|
26
26
|
CancellationInitiatorOriginal: () => CancellationInitiator,
|
|
27
27
|
ChangeEffectiveTimeOriginal: () => ChangeEffectiveTime,
|
|
28
|
+
ChangeTypeOriginal: () => ChangeType,
|
|
28
29
|
CollectionMethodEnumCollectionMethodOriginal: () => CollectionMethodEnumCollectionMethod,
|
|
29
30
|
CollectionMethodOriginal: () => CollectionMethod,
|
|
30
31
|
CreationModeOriginal: () => CreationMode,
|
|
@@ -35,6 +36,7 @@ __export(meta_exports, {
|
|
|
35
36
|
IdentityTypeOriginal: () => IdentityType,
|
|
36
37
|
InvoiceStatusOriginal: () => InvoiceStatus,
|
|
37
38
|
ItemCategoryOriginal: () => ItemCategory,
|
|
39
|
+
MissingPreviousBillingDateResumeStrategyOriginal: () => MissingPreviousBillingDateResumeStrategy,
|
|
38
40
|
OrderMethodOriginal: () => OrderMethod,
|
|
39
41
|
PauseAtOriginal: () => PauseAt,
|
|
40
42
|
PausePolicyOriginal: () => PausePolicy,
|
|
@@ -46,6 +48,7 @@ __export(meta_exports, {
|
|
|
46
48
|
PaymentTestModeOriginal: () => PaymentTestMode,
|
|
47
49
|
PriceAdjustmentReasonOriginal: () => PriceAdjustmentReason,
|
|
48
50
|
ProrationActionOriginal: () => ProrationAction,
|
|
51
|
+
ProrationBehaviorEnumProrationBehaviorOriginal: () => ProrationBehaviorEnumProrationBehavior,
|
|
49
52
|
ProrationBehaviorOriginal: () => ProrationBehavior,
|
|
50
53
|
RefundReasonOriginal: () => RefundReason,
|
|
51
54
|
RequestedFieldsOriginal: () => RequestedFields,
|
|
@@ -65,14 +68,17 @@ __export(meta_exports, {
|
|
|
65
68
|
cancelSubscription: () => cancelSubscription2,
|
|
66
69
|
countSubscriptions: () => countSubscriptions2,
|
|
67
70
|
customerAllowedActions: () => customerAllowedActions2,
|
|
71
|
+
customerCancelPendingChange: () => customerCancelPendingChange2,
|
|
68
72
|
customerCancelScheduledPause: () => customerCancelScheduledPause2,
|
|
69
73
|
customerCancelScheduledSkip: () => customerCancelScheduledSkip2,
|
|
70
74
|
customerCancelSubscription: () => customerCancelSubscription2,
|
|
75
|
+
customerChangeSubscription: () => customerChangeSubscription2,
|
|
71
76
|
customerExtendSubscription: () => customerExtendSubscription2,
|
|
72
77
|
customerGetSubscription: () => customerGetSubscription2,
|
|
73
78
|
customerInitiatePaymentMethodSetup: () => customerInitiatePaymentMethodSetup2,
|
|
74
79
|
customerListUpcomingCharges: () => customerListUpcomingCharges2,
|
|
75
80
|
customerPauseSubscription: () => customerPauseSubscription2,
|
|
81
|
+
customerPreviewChangeSubscription: () => customerPreviewChangeSubscription2,
|
|
76
82
|
customerQuerySubscriptions: () => customerQuerySubscriptions2,
|
|
77
83
|
customerResumeSubscription: () => customerResumeSubscription2,
|
|
78
84
|
customerSkipCycle: () => customerSkipCycle2,
|
|
@@ -89,7 +95,6 @@ __export(meta_exports, {
|
|
|
89
95
|
markBillingCycleAsPaid: () => markBillingCycleAsPaid2,
|
|
90
96
|
markLatestInvoiceAsPaid: () => markLatestInvoiceAsPaid2,
|
|
91
97
|
pauseSubscription: () => pauseSubscription2,
|
|
92
|
-
payCycle: () => payCycle2,
|
|
93
98
|
previewSubscriptionCharges: () => previewSubscriptionCharges2,
|
|
94
99
|
previewSubscriptionsCharges: () => previewSubscriptionsCharges2,
|
|
95
100
|
querySubscriptions: () => querySubscriptions2,
|
|
@@ -105,6 +110,7 @@ module.exports = __toCommonJS(meta_exports);
|
|
|
105
110
|
|
|
106
111
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
107
112
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
113
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
108
114
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
109
115
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
110
116
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -191,47 +197,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
191
197
|
};
|
|
192
198
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
193
199
|
}
|
|
194
|
-
function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
|
|
195
|
-
const domainToMappings = {
|
|
196
|
-
"www._base_domain_": [
|
|
197
|
-
{
|
|
198
|
-
srcPath: "/_api/billing-subscriptions",
|
|
199
|
-
destPath: ""
|
|
200
|
-
}
|
|
201
|
-
],
|
|
202
|
-
_: [
|
|
203
|
-
{
|
|
204
|
-
srcPath: "/_api/billing-subscriptions",
|
|
205
|
-
destPath: ""
|
|
206
|
-
}
|
|
207
|
-
],
|
|
208
|
-
"*.dev.wix-code.com": [
|
|
209
|
-
{
|
|
210
|
-
srcPath: "/_api/billing-subscriptions",
|
|
211
|
-
destPath: ""
|
|
212
|
-
}
|
|
213
|
-
],
|
|
214
|
-
"*.pub.wix-code.com": [
|
|
215
|
-
{
|
|
216
|
-
srcPath: "/_api/billing-subscriptions",
|
|
217
|
-
destPath: ""
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
"manage._base_domain_": [
|
|
221
|
-
{
|
|
222
|
-
srcPath: "/_api/billing-subscriptions",
|
|
223
|
-
destPath: ""
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
"payments.base44.com": [
|
|
227
|
-
{
|
|
228
|
-
srcPath: "/_api/billing-subscriptions",
|
|
229
|
-
destPath: ""
|
|
230
|
-
}
|
|
231
|
-
]
|
|
232
|
-
};
|
|
233
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
234
|
-
}
|
|
235
200
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
236
201
|
const domainToMappings = {
|
|
237
202
|
"www._base_domain_": [
|
|
@@ -532,6 +497,15 @@ function customerExtendSubscription(payload) {
|
|
|
532
497
|
}
|
|
533
498
|
function customerQuerySubscriptions(payload) {
|
|
534
499
|
function __customerQuerySubscriptions({ host }) {
|
|
500
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
501
|
+
{
|
|
502
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
503
|
+
paths: [
|
|
504
|
+
{ path: "query.sort.origin.latitude" },
|
|
505
|
+
{ path: "query.sort.origin.longitude" }
|
|
506
|
+
]
|
|
507
|
+
}
|
|
508
|
+
]);
|
|
535
509
|
const metadata = {
|
|
536
510
|
entityFqdn: "wix.billing.v1.subscription",
|
|
537
511
|
method: "POST",
|
|
@@ -541,9 +515,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
541
515
|
optInTransformResponse: true
|
|
542
516
|
},
|
|
543
517
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
544
|
-
{
|
|
518
|
+
{
|
|
519
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
520
|
+
data: serializedData,
|
|
521
|
+
host
|
|
522
|
+
}
|
|
545
523
|
),
|
|
546
|
-
data:
|
|
524
|
+
data: serializedData,
|
|
547
525
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
548
526
|
{
|
|
549
527
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1047,19 +1025,107 @@ function customerUpdateBillingDate(payload) {
|
|
|
1047
1025
|
}
|
|
1048
1026
|
return __customerUpdateBillingDate;
|
|
1049
1027
|
}
|
|
1050
|
-
function
|
|
1051
|
-
function
|
|
1028
|
+
function customerChangeSubscription(payload) {
|
|
1029
|
+
function __customerChangeSubscription({ host }) {
|
|
1030
|
+
const metadata = {
|
|
1031
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1032
|
+
method: "POST",
|
|
1033
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerChangeSubscription",
|
|
1034
|
+
packageName: PACKAGE_NAME,
|
|
1035
|
+
migrationOptions: {
|
|
1036
|
+
optInTransformResponse: true
|
|
1037
|
+
},
|
|
1038
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1039
|
+
{
|
|
1040
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/change",
|
|
1041
|
+
data: payload,
|
|
1042
|
+
host
|
|
1043
|
+
}
|
|
1044
|
+
),
|
|
1045
|
+
data: payload,
|
|
1046
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1047
|
+
{
|
|
1048
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1049
|
+
paths: [
|
|
1050
|
+
{ path: "subscription.createdDate" },
|
|
1051
|
+
{ path: "subscription.updatedDate" },
|
|
1052
|
+
{ path: "subscription.startDate" },
|
|
1053
|
+
{ path: "subscription.endDate" },
|
|
1054
|
+
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
1055
|
+
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
1056
|
+
{
|
|
1057
|
+
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
1058
|
+
},
|
|
1059
|
+
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
1060
|
+
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
1061
|
+
{
|
|
1062
|
+
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
1063
|
+
},
|
|
1064
|
+
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
1065
|
+
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
1066
|
+
{ path: "subscription.pauseInfo.startDate" },
|
|
1067
|
+
{ path: "subscription.pauseInfo.resumeDate" },
|
|
1068
|
+
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
1069
|
+
{
|
|
1070
|
+
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
1071
|
+
}
|
|
1072
|
+
]
|
|
1073
|
+
}
|
|
1074
|
+
])
|
|
1075
|
+
};
|
|
1076
|
+
return metadata;
|
|
1077
|
+
}
|
|
1078
|
+
return __customerChangeSubscription;
|
|
1079
|
+
}
|
|
1080
|
+
function customerPreviewChangeSubscription(payload) {
|
|
1081
|
+
function __customerPreviewChangeSubscription({ host }) {
|
|
1052
1082
|
const metadata = {
|
|
1053
1083
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1054
1084
|
method: "POST",
|
|
1055
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.
|
|
1085
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPreviewChangeSubscription",
|
|
1056
1086
|
packageName: PACKAGE_NAME,
|
|
1057
1087
|
migrationOptions: {
|
|
1058
1088
|
optInTransformResponse: true
|
|
1059
1089
|
},
|
|
1060
|
-
url:
|
|
1090
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1061
1091
|
{
|
|
1062
|
-
protoPath: "/v1/
|
|
1092
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
|
|
1093
|
+
data: payload,
|
|
1094
|
+
host
|
|
1095
|
+
}
|
|
1096
|
+
),
|
|
1097
|
+
data: payload,
|
|
1098
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1099
|
+
{
|
|
1100
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1101
|
+
paths: [
|
|
1102
|
+
{ path: "preview.current.periodStart" },
|
|
1103
|
+
{ path: "preview.current.periodEnd" },
|
|
1104
|
+
{ path: "preview.proposed.periodStart" },
|
|
1105
|
+
{ path: "preview.proposed.periodEnd" },
|
|
1106
|
+
{ path: "preview.proration.newPeriodEnd" },
|
|
1107
|
+
{ path: "preview.renewalPreview.nextRenewalDate" }
|
|
1108
|
+
]
|
|
1109
|
+
}
|
|
1110
|
+
])
|
|
1111
|
+
};
|
|
1112
|
+
return metadata;
|
|
1113
|
+
}
|
|
1114
|
+
return __customerPreviewChangeSubscription;
|
|
1115
|
+
}
|
|
1116
|
+
function customerCancelPendingChange(payload) {
|
|
1117
|
+
function __customerCancelPendingChange({ host }) {
|
|
1118
|
+
const metadata = {
|
|
1119
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1120
|
+
method: "POST",
|
|
1121
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelPendingChange",
|
|
1122
|
+
packageName: PACKAGE_NAME,
|
|
1123
|
+
migrationOptions: {
|
|
1124
|
+
optInTransformResponse: true
|
|
1125
|
+
},
|
|
1126
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1127
|
+
{
|
|
1128
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
|
|
1063
1129
|
data: payload,
|
|
1064
1130
|
host
|
|
1065
1131
|
}
|
|
@@ -1097,7 +1163,7 @@ function payCycle(payload) {
|
|
|
1097
1163
|
};
|
|
1098
1164
|
return metadata;
|
|
1099
1165
|
}
|
|
1100
|
-
return
|
|
1166
|
+
return __customerCancelPendingChange;
|
|
1101
1167
|
}
|
|
1102
1168
|
function getSubscription(payload) {
|
|
1103
1169
|
function __getSubscription({ host }) {
|
|
@@ -1472,6 +1538,15 @@ function resumeSubscription(payload) {
|
|
|
1472
1538
|
}
|
|
1473
1539
|
function querySubscriptions(payload) {
|
|
1474
1540
|
function __querySubscriptions({ host }) {
|
|
1541
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1542
|
+
{
|
|
1543
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1544
|
+
paths: [
|
|
1545
|
+
{ path: "query.sort.origin.latitude" },
|
|
1546
|
+
{ path: "query.sort.origin.longitude" }
|
|
1547
|
+
]
|
|
1548
|
+
}
|
|
1549
|
+
]);
|
|
1475
1550
|
const metadata = {
|
|
1476
1551
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1477
1552
|
method: "POST",
|
|
@@ -1482,10 +1557,10 @@ function querySubscriptions(payload) {
|
|
|
1482
1557
|
},
|
|
1483
1558
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1484
1559
|
protoPath: "/v1/subscriptions/query",
|
|
1485
|
-
data:
|
|
1560
|
+
data: serializedData,
|
|
1486
1561
|
host
|
|
1487
1562
|
}),
|
|
1488
|
-
data:
|
|
1563
|
+
data: serializedData,
|
|
1489
1564
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1490
1565
|
{
|
|
1491
1566
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1522,6 +1597,15 @@ function querySubscriptions(payload) {
|
|
|
1522
1597
|
}
|
|
1523
1598
|
function searchSubscriptions(payload) {
|
|
1524
1599
|
function __searchSubscriptions({ host }) {
|
|
1600
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1601
|
+
{
|
|
1602
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1603
|
+
paths: [
|
|
1604
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1605
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1606
|
+
]
|
|
1607
|
+
}
|
|
1608
|
+
]);
|
|
1525
1609
|
const metadata = {
|
|
1526
1610
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1527
1611
|
method: "POST",
|
|
@@ -1532,10 +1616,10 @@ function searchSubscriptions(payload) {
|
|
|
1532
1616
|
},
|
|
1533
1617
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1534
1618
|
protoPath: "/v1/subscriptions/search",
|
|
1535
|
-
data:
|
|
1619
|
+
data: serializedData,
|
|
1536
1620
|
host
|
|
1537
1621
|
}),
|
|
1538
|
-
data:
|
|
1622
|
+
data: serializedData,
|
|
1539
1623
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1540
1624
|
{
|
|
1541
1625
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -3545,6 +3629,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3545
3629
|
{
|
|
3546
3630
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3547
3631
|
},
|
|
3632
|
+
{
|
|
3633
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3634
|
+
},
|
|
3635
|
+
{
|
|
3636
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3637
|
+
},
|
|
3638
|
+
{
|
|
3639
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3640
|
+
},
|
|
3641
|
+
{
|
|
3642
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3646
|
+
},
|
|
3647
|
+
{
|
|
3648
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3649
|
+
},
|
|
3650
|
+
{
|
|
3651
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3652
|
+
},
|
|
3653
|
+
{
|
|
3654
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3658
|
+
},
|
|
3659
|
+
{
|
|
3660
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3661
|
+
},
|
|
3662
|
+
{
|
|
3663
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3664
|
+
},
|
|
3665
|
+
{
|
|
3666
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3670
|
+
},
|
|
3671
|
+
{
|
|
3672
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3673
|
+
},
|
|
3674
|
+
{
|
|
3675
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3676
|
+
},
|
|
3677
|
+
{
|
|
3678
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3679
|
+
},
|
|
3548
3680
|
{
|
|
3549
3681
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3550
3682
|
},
|
|
@@ -3692,6 +3824,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3692
3824
|
return SortOrder2;
|
|
3693
3825
|
})(SortOrder || {});
|
|
3694
3826
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3827
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3695
3828
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3696
3829
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3697
3830
|
return SubscriptionStatusGroup2;
|
|
@@ -3713,6 +3846,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3713
3846
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3714
3847
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3715
3848
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3849
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3716
3850
|
return ActionType2;
|
|
3717
3851
|
})(ActionType || {});
|
|
3718
3852
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3732,6 +3866,20 @@ var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
|
|
|
3732
3866
|
OrderMethod2["NOT_MOTO"] = "NOT_MOTO";
|
|
3733
3867
|
return OrderMethod2;
|
|
3734
3868
|
})(OrderMethod || {});
|
|
3869
|
+
var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
3870
|
+
ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
|
|
3871
|
+
ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
3872
|
+
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3873
|
+
return ChangeEffectiveTime2;
|
|
3874
|
+
})(ChangeEffectiveTime || {});
|
|
3875
|
+
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3876
|
+
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3877
|
+
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3878
|
+
ProrationAction2["REFUND"] = "REFUND";
|
|
3879
|
+
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3880
|
+
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3881
|
+
return ProrationAction2;
|
|
3882
|
+
})(ProrationAction || {});
|
|
3735
3883
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3736
3884
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3737
3885
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -3740,25 +3888,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3740
3888
|
WebhookIdentityType2["APP"] = "APP";
|
|
3741
3889
|
return WebhookIdentityType2;
|
|
3742
3890
|
})(WebhookIdentityType || {});
|
|
3743
|
-
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3744
|
-
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3745
|
-
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3746
|
-
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3747
|
-
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3748
|
-
return PaymentTestMode2;
|
|
3749
|
-
})(PaymentTestMode || {});
|
|
3750
|
-
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3751
|
-
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3752
|
-
RevivePolicy2["RESUME"] = "RESUME";
|
|
3753
|
-
return RevivePolicy2;
|
|
3754
|
-
})(RevivePolicy || {});
|
|
3755
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3756
|
-
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3757
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3758
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3759
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3760
|
-
return ActionInitiator2;
|
|
3761
|
-
})(ActionInitiator || {});
|
|
3762
3891
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3763
3892
|
UpdateAction2["NONE"] = "NONE";
|
|
3764
3893
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3767,6 +3896,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3767
3896
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3768
3897
|
return UpdateAction2;
|
|
3769
3898
|
})(UpdateAction || {});
|
|
3899
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3900
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3901
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3902
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3903
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3904
|
+
return ActionInitiator2;
|
|
3905
|
+
})(ActionInitiator || {});
|
|
3906
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3907
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3908
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3909
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3910
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3911
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3770
3912
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3771
3913
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3772
3914
|
return RequestedFields2;
|
|
@@ -3825,28 +3967,30 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
|
|
|
3825
3967
|
RefundReason2["OTHER"] = "OTHER";
|
|
3826
3968
|
return RefundReason2;
|
|
3827
3969
|
})(RefundReason || {});
|
|
3828
|
-
var
|
|
3829
|
-
|
|
3830
|
-
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
|
|
3970
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3971
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3972
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3973
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3974
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3975
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3976
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3977
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3978
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3979
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3980
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3981
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3982
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3983
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3984
|
+
return ChangeType2;
|
|
3985
|
+
})(ChangeType || {});
|
|
3834
3986
|
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3835
|
-
ProrationBehavior2["
|
|
3987
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3836
3988
|
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3837
3989
|
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3838
3990
|
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3839
3991
|
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3840
3992
|
return ProrationBehavior2;
|
|
3841
3993
|
})(ProrationBehavior || {});
|
|
3842
|
-
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3843
|
-
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3844
|
-
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3845
|
-
ProrationAction2["REFUND"] = "REFUND";
|
|
3846
|
-
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3847
|
-
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3848
|
-
return ProrationAction2;
|
|
3849
|
-
})(ProrationAction || {});
|
|
3850
3994
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3851
3995
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3852
3996
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3901,6 +4045,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3901
4045
|
Status2["ENDED"] = "ENDED";
|
|
3902
4046
|
return Status2;
|
|
3903
4047
|
})(Status || {});
|
|
4048
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
4049
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
4050
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
4051
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
4052
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
4053
|
+
return PaymentTestMode2;
|
|
4054
|
+
})(PaymentTestMode || {});
|
|
4055
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
4056
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
4057
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
4058
|
+
return RevivePolicy2;
|
|
4059
|
+
})(RevivePolicy || {});
|
|
3904
4060
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3905
4061
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3906
4062
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4212,9 +4368,47 @@ function customerUpdateBillingDate2() {
|
|
|
4212
4368
|
__originalResponseType: null
|
|
4213
4369
|
};
|
|
4214
4370
|
}
|
|
4215
|
-
function
|
|
4371
|
+
function customerChangeSubscription2() {
|
|
4372
|
+
const payload = { subscriptionId: ":subscriptionId" };
|
|
4373
|
+
const getRequestOptions = customerChangeSubscription(payload);
|
|
4374
|
+
const getUrl = (context) => {
|
|
4375
|
+
const { url } = getRequestOptions(context);
|
|
4376
|
+
return url;
|
|
4377
|
+
};
|
|
4378
|
+
return {
|
|
4379
|
+
getUrl,
|
|
4380
|
+
httpMethod: "POST",
|
|
4381
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/change",
|
|
4382
|
+
pathParams: { subscriptionId: "subscriptionId" },
|
|
4383
|
+
__requestType: null,
|
|
4384
|
+
__originalRequestType: null,
|
|
4385
|
+
__responseType: null,
|
|
4386
|
+
__originalResponseType: null
|
|
4387
|
+
};
|
|
4388
|
+
}
|
|
4389
|
+
function customerPreviewChangeSubscription2() {
|
|
4390
|
+
const payload = { subscriptionId: ":subscriptionId" };
|
|
4391
|
+
const getRequestOptions = customerPreviewChangeSubscription(
|
|
4392
|
+
payload
|
|
4393
|
+
);
|
|
4394
|
+
const getUrl = (context) => {
|
|
4395
|
+
const { url } = getRequestOptions(context);
|
|
4396
|
+
return url;
|
|
4397
|
+
};
|
|
4398
|
+
return {
|
|
4399
|
+
getUrl,
|
|
4400
|
+
httpMethod: "POST",
|
|
4401
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
|
|
4402
|
+
pathParams: { subscriptionId: "subscriptionId" },
|
|
4403
|
+
__requestType: null,
|
|
4404
|
+
__originalRequestType: null,
|
|
4405
|
+
__responseType: null,
|
|
4406
|
+
__originalResponseType: null
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
function customerCancelPendingChange2() {
|
|
4216
4410
|
const payload = { subscriptionId: ":subscriptionId" };
|
|
4217
|
-
const getRequestOptions =
|
|
4411
|
+
const getRequestOptions = customerCancelPendingChange(payload);
|
|
4218
4412
|
const getUrl = (context) => {
|
|
4219
4413
|
const { url } = getRequestOptions(context);
|
|
4220
4414
|
return url;
|
|
@@ -4222,7 +4416,7 @@ function payCycle2() {
|
|
|
4222
4416
|
return {
|
|
4223
4417
|
getUrl,
|
|
4224
4418
|
httpMethod: "POST",
|
|
4225
|
-
path: "/v1/
|
|
4419
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
|
|
4226
4420
|
pathParams: { subscriptionId: "subscriptionId" },
|
|
4227
4421
|
__requestType: null,
|
|
4228
4422
|
__originalRequestType: null,
|
|
@@ -4633,6 +4827,7 @@ function listSubscriptionHistory2() {
|
|
|
4633
4827
|
AdditionalFeeTriggerOriginal,
|
|
4634
4828
|
CancellationInitiatorOriginal,
|
|
4635
4829
|
ChangeEffectiveTimeOriginal,
|
|
4830
|
+
ChangeTypeOriginal,
|
|
4636
4831
|
CollectionMethodEnumCollectionMethodOriginal,
|
|
4637
4832
|
CollectionMethodOriginal,
|
|
4638
4833
|
CreationModeOriginal,
|
|
@@ -4643,6 +4838,7 @@ function listSubscriptionHistory2() {
|
|
|
4643
4838
|
IdentityTypeOriginal,
|
|
4644
4839
|
InvoiceStatusOriginal,
|
|
4645
4840
|
ItemCategoryOriginal,
|
|
4841
|
+
MissingPreviousBillingDateResumeStrategyOriginal,
|
|
4646
4842
|
OrderMethodOriginal,
|
|
4647
4843
|
PauseAtOriginal,
|
|
4648
4844
|
PausePolicyOriginal,
|
|
@@ -4654,6 +4850,7 @@ function listSubscriptionHistory2() {
|
|
|
4654
4850
|
PaymentTestModeOriginal,
|
|
4655
4851
|
PriceAdjustmentReasonOriginal,
|
|
4656
4852
|
ProrationActionOriginal,
|
|
4853
|
+
ProrationBehaviorEnumProrationBehaviorOriginal,
|
|
4657
4854
|
ProrationBehaviorOriginal,
|
|
4658
4855
|
RefundReasonOriginal,
|
|
4659
4856
|
RequestedFieldsOriginal,
|
|
@@ -4673,14 +4870,17 @@ function listSubscriptionHistory2() {
|
|
|
4673
4870
|
cancelSubscription,
|
|
4674
4871
|
countSubscriptions,
|
|
4675
4872
|
customerAllowedActions,
|
|
4873
|
+
customerCancelPendingChange,
|
|
4676
4874
|
customerCancelScheduledPause,
|
|
4677
4875
|
customerCancelScheduledSkip,
|
|
4678
4876
|
customerCancelSubscription,
|
|
4877
|
+
customerChangeSubscription,
|
|
4679
4878
|
customerExtendSubscription,
|
|
4680
4879
|
customerGetSubscription,
|
|
4681
4880
|
customerInitiatePaymentMethodSetup,
|
|
4682
4881
|
customerListUpcomingCharges,
|
|
4683
4882
|
customerPauseSubscription,
|
|
4883
|
+
customerPreviewChangeSubscription,
|
|
4684
4884
|
customerQuerySubscriptions,
|
|
4685
4885
|
customerResumeSubscription,
|
|
4686
4886
|
customerSkipCycle,
|
|
@@ -4697,7 +4897,6 @@ function listSubscriptionHistory2() {
|
|
|
4697
4897
|
markBillingCycleAsPaid,
|
|
4698
4898
|
markLatestInvoiceAsPaid,
|
|
4699
4899
|
pauseSubscription,
|
|
4700
|
-
payCycle,
|
|
4701
4900
|
previewSubscriptionCharges,
|
|
4702
4901
|
previewSubscriptionsCharges,
|
|
4703
4902
|
querySubscriptions,
|