@wix/auto_sdk_subscription_subscriptions 1.0.47 → 1.0.48
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 +197 -222
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +1816 -1618
- package/build/cjs/index.typings.js +153 -171
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1793 -1612
- package/build/cjs/meta.js +143 -146
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +3 -11
- package/build/es/index.mjs +194 -221
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +1816 -1618
- package/build/es/index.typings.mjs +150 -170
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1793 -1612
- package/build/es/meta.mjs +140 -145
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +3 -11
- package/build/internal/cjs/index.typings.d.ts +1862 -1603
- package/build/internal/cjs/meta.d.ts +1878 -1585
- package/build/internal/es/index.d.mts +3 -11
- package/build/internal/es/index.typings.d.mts +1862 -1603
- package/build/internal/es/meta.d.mts +1878 -1585
- 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,
|
|
@@ -89,7 +92,6 @@ __export(meta_exports, {
|
|
|
89
92
|
markBillingCycleAsPaid: () => markBillingCycleAsPaid2,
|
|
90
93
|
markLatestInvoiceAsPaid: () => markLatestInvoiceAsPaid2,
|
|
91
94
|
pauseSubscription: () => pauseSubscription2,
|
|
92
|
-
payCycle: () => payCycle2,
|
|
93
95
|
previewSubscriptionCharges: () => previewSubscriptionCharges2,
|
|
94
96
|
previewSubscriptionsCharges: () => previewSubscriptionsCharges2,
|
|
95
97
|
querySubscriptions: () => querySubscriptions2,
|
|
@@ -105,6 +107,7 @@ module.exports = __toCommonJS(meta_exports);
|
|
|
105
107
|
|
|
106
108
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
107
109
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
110
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
108
111
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
109
112
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
110
113
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -191,47 +194,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
191
194
|
};
|
|
192
195
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
193
196
|
}
|
|
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
197
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
236
198
|
const domainToMappings = {
|
|
237
199
|
"www._base_domain_": [
|
|
@@ -532,6 +494,15 @@ function customerExtendSubscription(payload) {
|
|
|
532
494
|
}
|
|
533
495
|
function customerQuerySubscriptions(payload) {
|
|
534
496
|
function __customerQuerySubscriptions({ host }) {
|
|
497
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
498
|
+
{
|
|
499
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
500
|
+
paths: [
|
|
501
|
+
{ path: "query.sort.origin.latitude" },
|
|
502
|
+
{ path: "query.sort.origin.longitude" }
|
|
503
|
+
]
|
|
504
|
+
}
|
|
505
|
+
]);
|
|
535
506
|
const metadata = {
|
|
536
507
|
entityFqdn: "wix.billing.v1.subscription",
|
|
537
508
|
method: "POST",
|
|
@@ -541,9 +512,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
541
512
|
optInTransformResponse: true
|
|
542
513
|
},
|
|
543
514
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
544
|
-
{
|
|
515
|
+
{
|
|
516
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
517
|
+
data: serializedData,
|
|
518
|
+
host
|
|
519
|
+
}
|
|
545
520
|
),
|
|
546
|
-
data:
|
|
521
|
+
data: serializedData,
|
|
547
522
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
548
523
|
{
|
|
549
524
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1047,58 +1022,6 @@ function customerUpdateBillingDate(payload) {
|
|
|
1047
1022
|
}
|
|
1048
1023
|
return __customerUpdateBillingDate;
|
|
1049
1024
|
}
|
|
1050
|
-
function payCycle(payload) {
|
|
1051
|
-
function __payCycle({ host }) {
|
|
1052
|
-
const metadata = {
|
|
1053
|
-
entityFqdn: "wix.billing.v1.subscription",
|
|
1054
|
-
method: "POST",
|
|
1055
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
|
|
1056
|
-
packageName: PACKAGE_NAME,
|
|
1057
|
-
migrationOptions: {
|
|
1058
|
-
optInTransformResponse: true
|
|
1059
|
-
},
|
|
1060
|
-
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
|
|
1061
|
-
{
|
|
1062
|
-
protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
1063
|
-
data: payload,
|
|
1064
|
-
host
|
|
1065
|
-
}
|
|
1066
|
-
),
|
|
1067
|
-
data: payload,
|
|
1068
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1069
|
-
{
|
|
1070
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1071
|
-
paths: [
|
|
1072
|
-
{ path: "subscription.createdDate" },
|
|
1073
|
-
{ path: "subscription.updatedDate" },
|
|
1074
|
-
{ path: "subscription.startDate" },
|
|
1075
|
-
{ path: "subscription.endDate" },
|
|
1076
|
-
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
1077
|
-
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
1078
|
-
{
|
|
1079
|
-
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
1080
|
-
},
|
|
1081
|
-
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
1082
|
-
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
1083
|
-
{
|
|
1084
|
-
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
1085
|
-
},
|
|
1086
|
-
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
1087
|
-
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
1088
|
-
{ path: "subscription.pauseInfo.startDate" },
|
|
1089
|
-
{ path: "subscription.pauseInfo.resumeDate" },
|
|
1090
|
-
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
1091
|
-
{
|
|
1092
|
-
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
1093
|
-
}
|
|
1094
|
-
]
|
|
1095
|
-
}
|
|
1096
|
-
])
|
|
1097
|
-
};
|
|
1098
|
-
return metadata;
|
|
1099
|
-
}
|
|
1100
|
-
return __payCycle;
|
|
1101
|
-
}
|
|
1102
1025
|
function getSubscription(payload) {
|
|
1103
1026
|
function __getSubscription({ host }) {
|
|
1104
1027
|
const metadata = {
|
|
@@ -1472,6 +1395,15 @@ function resumeSubscription(payload) {
|
|
|
1472
1395
|
}
|
|
1473
1396
|
function querySubscriptions(payload) {
|
|
1474
1397
|
function __querySubscriptions({ host }) {
|
|
1398
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1399
|
+
{
|
|
1400
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1401
|
+
paths: [
|
|
1402
|
+
{ path: "query.sort.origin.latitude" },
|
|
1403
|
+
{ path: "query.sort.origin.longitude" }
|
|
1404
|
+
]
|
|
1405
|
+
}
|
|
1406
|
+
]);
|
|
1475
1407
|
const metadata = {
|
|
1476
1408
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1477
1409
|
method: "POST",
|
|
@@ -1482,10 +1414,10 @@ function querySubscriptions(payload) {
|
|
|
1482
1414
|
},
|
|
1483
1415
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1484
1416
|
protoPath: "/v1/subscriptions/query",
|
|
1485
|
-
data:
|
|
1417
|
+
data: serializedData,
|
|
1486
1418
|
host
|
|
1487
1419
|
}),
|
|
1488
|
-
data:
|
|
1420
|
+
data: serializedData,
|
|
1489
1421
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1490
1422
|
{
|
|
1491
1423
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1522,6 +1454,15 @@ function querySubscriptions(payload) {
|
|
|
1522
1454
|
}
|
|
1523
1455
|
function searchSubscriptions(payload) {
|
|
1524
1456
|
function __searchSubscriptions({ host }) {
|
|
1457
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1458
|
+
{
|
|
1459
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1460
|
+
paths: [
|
|
1461
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1462
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1463
|
+
]
|
|
1464
|
+
}
|
|
1465
|
+
]);
|
|
1525
1466
|
const metadata = {
|
|
1526
1467
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1527
1468
|
method: "POST",
|
|
@@ -1532,10 +1473,10 @@ function searchSubscriptions(payload) {
|
|
|
1532
1473
|
},
|
|
1533
1474
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1534
1475
|
protoPath: "/v1/subscriptions/search",
|
|
1535
|
-
data:
|
|
1476
|
+
data: serializedData,
|
|
1536
1477
|
host
|
|
1537
1478
|
}),
|
|
1538
|
-
data:
|
|
1479
|
+
data: serializedData,
|
|
1539
1480
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1540
1481
|
{
|
|
1541
1482
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -3545,6 +3486,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3545
3486
|
{
|
|
3546
3487
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3547
3488
|
},
|
|
3489
|
+
{
|
|
3490
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3494
|
+
},
|
|
3495
|
+
{
|
|
3496
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3497
|
+
},
|
|
3498
|
+
{
|
|
3499
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3500
|
+
},
|
|
3501
|
+
{
|
|
3502
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3506
|
+
},
|
|
3507
|
+
{
|
|
3508
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3509
|
+
},
|
|
3510
|
+
{
|
|
3511
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3512
|
+
},
|
|
3513
|
+
{
|
|
3514
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3536
|
+
},
|
|
3548
3537
|
{
|
|
3549
3538
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3550
3539
|
},
|
|
@@ -3692,6 +3681,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3692
3681
|
return SortOrder2;
|
|
3693
3682
|
})(SortOrder || {});
|
|
3694
3683
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3684
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3695
3685
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3696
3686
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3697
3687
|
return SubscriptionStatusGroup2;
|
|
@@ -3713,6 +3703,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3713
3703
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3714
3704
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3715
3705
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3706
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3716
3707
|
return ActionType2;
|
|
3717
3708
|
})(ActionType || {});
|
|
3718
3709
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3740,25 +3731,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3740
3731
|
WebhookIdentityType2["APP"] = "APP";
|
|
3741
3732
|
return WebhookIdentityType2;
|
|
3742
3733
|
})(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
3734
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3763
3735
|
UpdateAction2["NONE"] = "NONE";
|
|
3764
3736
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3767,6 +3739,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3767
3739
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3768
3740
|
return UpdateAction2;
|
|
3769
3741
|
})(UpdateAction || {});
|
|
3742
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3743
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3744
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3745
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3746
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3747
|
+
return ActionInitiator2;
|
|
3748
|
+
})(ActionInitiator || {});
|
|
3749
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3750
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3751
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3752
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3753
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3754
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3770
3755
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3771
3756
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3772
3757
|
return RequestedFields2;
|
|
@@ -3831,14 +3816,14 @@ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
|
3831
3816
|
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3832
3817
|
return ChangeEffectiveTime2;
|
|
3833
3818
|
})(ChangeEffectiveTime || {});
|
|
3834
|
-
var
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
return
|
|
3841
|
-
})(
|
|
3819
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3820
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3821
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3822
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3823
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3824
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3825
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3826
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3842
3827
|
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3843
3828
|
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3844
3829
|
ProrationAction2["CHARGE"] = "CHARGE";
|
|
@@ -3847,6 +3832,22 @@ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
|
3847
3832
|
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3848
3833
|
return ProrationAction2;
|
|
3849
3834
|
})(ProrationAction || {});
|
|
3835
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3836
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3837
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3838
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3839
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3840
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3841
|
+
return ChangeType2;
|
|
3842
|
+
})(ChangeType || {});
|
|
3843
|
+
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3844
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3845
|
+
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3846
|
+
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3847
|
+
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3848
|
+
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3849
|
+
return ProrationBehavior2;
|
|
3850
|
+
})(ProrationBehavior || {});
|
|
3850
3851
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3851
3852
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3852
3853
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3901,6 +3902,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3901
3902
|
Status2["ENDED"] = "ENDED";
|
|
3902
3903
|
return Status2;
|
|
3903
3904
|
})(Status || {});
|
|
3905
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3906
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3907
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3908
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3909
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3910
|
+
return PaymentTestMode2;
|
|
3911
|
+
})(PaymentTestMode || {});
|
|
3912
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3913
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3914
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
3915
|
+
return RevivePolicy2;
|
|
3916
|
+
})(RevivePolicy || {});
|
|
3904
3917
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3905
3918
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3906
3919
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4212,24 +4225,6 @@ function customerUpdateBillingDate2() {
|
|
|
4212
4225
|
__originalResponseType: null
|
|
4213
4226
|
};
|
|
4214
4227
|
}
|
|
4215
|
-
function payCycle2() {
|
|
4216
|
-
const payload = { subscriptionId: ":subscriptionId" };
|
|
4217
|
-
const getRequestOptions = payCycle(payload);
|
|
4218
|
-
const getUrl = (context) => {
|
|
4219
|
-
const { url } = getRequestOptions(context);
|
|
4220
|
-
return url;
|
|
4221
|
-
};
|
|
4222
|
-
return {
|
|
4223
|
-
getUrl,
|
|
4224
|
-
httpMethod: "POST",
|
|
4225
|
-
path: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
4226
|
-
pathParams: { subscriptionId: "subscriptionId" },
|
|
4227
|
-
__requestType: null,
|
|
4228
|
-
__originalRequestType: null,
|
|
4229
|
-
__responseType: null,
|
|
4230
|
-
__originalResponseType: null
|
|
4231
|
-
};
|
|
4232
|
-
}
|
|
4233
4228
|
function getSubscription2() {
|
|
4234
4229
|
const payload = { id: ":id" };
|
|
4235
4230
|
const getRequestOptions = getSubscription(payload);
|
|
@@ -4633,6 +4628,7 @@ function listSubscriptionHistory2() {
|
|
|
4633
4628
|
AdditionalFeeTriggerOriginal,
|
|
4634
4629
|
CancellationInitiatorOriginal,
|
|
4635
4630
|
ChangeEffectiveTimeOriginal,
|
|
4631
|
+
ChangeTypeOriginal,
|
|
4636
4632
|
CollectionMethodEnumCollectionMethodOriginal,
|
|
4637
4633
|
CollectionMethodOriginal,
|
|
4638
4634
|
CreationModeOriginal,
|
|
@@ -4643,6 +4639,7 @@ function listSubscriptionHistory2() {
|
|
|
4643
4639
|
IdentityTypeOriginal,
|
|
4644
4640
|
InvoiceStatusOriginal,
|
|
4645
4641
|
ItemCategoryOriginal,
|
|
4642
|
+
MissingPreviousBillingDateResumeStrategyOriginal,
|
|
4646
4643
|
OrderMethodOriginal,
|
|
4647
4644
|
PauseAtOriginal,
|
|
4648
4645
|
PausePolicyOriginal,
|
|
@@ -4654,6 +4651,7 @@ function listSubscriptionHistory2() {
|
|
|
4654
4651
|
PaymentTestModeOriginal,
|
|
4655
4652
|
PriceAdjustmentReasonOriginal,
|
|
4656
4653
|
ProrationActionOriginal,
|
|
4654
|
+
ProrationBehaviorEnumProrationBehaviorOriginal,
|
|
4657
4655
|
ProrationBehaviorOriginal,
|
|
4658
4656
|
RefundReasonOriginal,
|
|
4659
4657
|
RequestedFieldsOriginal,
|
|
@@ -4697,7 +4695,6 @@ function listSubscriptionHistory2() {
|
|
|
4697
4695
|
markBillingCycleAsPaid,
|
|
4698
4696
|
markLatestInvoiceAsPaid,
|
|
4699
4697
|
pauseSubscription,
|
|
4700
|
-
payCycle,
|
|
4701
4698
|
previewSubscriptionCharges,
|
|
4702
4699
|
previewSubscriptionsCharges,
|
|
4703
4700
|
querySubscriptions,
|