@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/index.js
CHANGED
|
@@ -25,6 +25,7 @@ __export(index_exports, {
|
|
|
25
25
|
AdditionalFeeTrigger: () => AdditionalFeeTrigger,
|
|
26
26
|
CancellationInitiator: () => CancellationInitiator,
|
|
27
27
|
ChangeEffectiveTime: () => ChangeEffectiveTime,
|
|
28
|
+
ChangeType: () => ChangeType,
|
|
28
29
|
CollectionMethod: () => CollectionMethod,
|
|
29
30
|
CollectionMethodEnumCollectionMethod: () => CollectionMethodEnumCollectionMethod,
|
|
30
31
|
CreationMode: () => CreationMode,
|
|
@@ -35,6 +36,7 @@ __export(index_exports, {
|
|
|
35
36
|
IdentityType: () => IdentityType,
|
|
36
37
|
InvoiceStatus: () => InvoiceStatus,
|
|
37
38
|
ItemCategory: () => ItemCategory,
|
|
39
|
+
MissingPreviousBillingDateResumeStrategy: () => MissingPreviousBillingDateResumeStrategy,
|
|
38
40
|
OrderMethod: () => OrderMethod,
|
|
39
41
|
PauseAt: () => PauseAt,
|
|
40
42
|
PausePolicy: () => PausePolicy,
|
|
@@ -47,6 +49,7 @@ __export(index_exports, {
|
|
|
47
49
|
PriceAdjustmentReason: () => PriceAdjustmentReason,
|
|
48
50
|
ProrationAction: () => ProrationAction,
|
|
49
51
|
ProrationBehavior: () => ProrationBehavior,
|
|
52
|
+
ProrationBehaviorEnumProrationBehavior: () => ProrationBehaviorEnumProrationBehavior,
|
|
50
53
|
RefundReason: () => RefundReason,
|
|
51
54
|
RequestedFields: () => RequestedFields,
|
|
52
55
|
ResumeAt: () => ResumeAt,
|
|
@@ -102,7 +105,6 @@ __export(index_exports, {
|
|
|
102
105
|
onSubscriptionResumed: () => onSubscriptionResumed2,
|
|
103
106
|
onSubscriptionUpdated: () => onSubscriptionUpdated2,
|
|
104
107
|
pauseSubscription: () => pauseSubscription4,
|
|
105
|
-
payCycle: () => payCycle4,
|
|
106
108
|
previewSubscriptionCharges: () => previewSubscriptionCharges4,
|
|
107
109
|
previewSubscriptionsCharges: () => previewSubscriptionsCharges4,
|
|
108
110
|
querySubscriptions: () => querySubscriptions4,
|
|
@@ -129,6 +131,7 @@ var import_rename_all_nested_keys = require("@wix/sdk-runtime/rename-all-nested-
|
|
|
129
131
|
|
|
130
132
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
131
133
|
var import_rest_modules = require("@wix/sdk-runtime/rest-modules");
|
|
134
|
+
var import_float = require("@wix/sdk-runtime/transformations/float");
|
|
132
135
|
var import_timestamp = require("@wix/sdk-runtime/transformations/timestamp");
|
|
133
136
|
var import_timestamp2 = require("@wix/sdk-runtime/transformations/timestamp");
|
|
134
137
|
var import_transform_paths = require("@wix/sdk-runtime/transformations/transform-paths");
|
|
@@ -215,47 +218,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
215
218
|
};
|
|
216
219
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
217
220
|
}
|
|
218
|
-
function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
|
|
219
|
-
const domainToMappings = {
|
|
220
|
-
"www._base_domain_": [
|
|
221
|
-
{
|
|
222
|
-
srcPath: "/_api/billing-subscriptions",
|
|
223
|
-
destPath: ""
|
|
224
|
-
}
|
|
225
|
-
],
|
|
226
|
-
_: [
|
|
227
|
-
{
|
|
228
|
-
srcPath: "/_api/billing-subscriptions",
|
|
229
|
-
destPath: ""
|
|
230
|
-
}
|
|
231
|
-
],
|
|
232
|
-
"*.dev.wix-code.com": [
|
|
233
|
-
{
|
|
234
|
-
srcPath: "/_api/billing-subscriptions",
|
|
235
|
-
destPath: ""
|
|
236
|
-
}
|
|
237
|
-
],
|
|
238
|
-
"*.pub.wix-code.com": [
|
|
239
|
-
{
|
|
240
|
-
srcPath: "/_api/billing-subscriptions",
|
|
241
|
-
destPath: ""
|
|
242
|
-
}
|
|
243
|
-
],
|
|
244
|
-
"manage._base_domain_": [
|
|
245
|
-
{
|
|
246
|
-
srcPath: "/_api/billing-subscriptions",
|
|
247
|
-
destPath: ""
|
|
248
|
-
}
|
|
249
|
-
],
|
|
250
|
-
"payments.base44.com": [
|
|
251
|
-
{
|
|
252
|
-
srcPath: "/_api/billing-subscriptions",
|
|
253
|
-
destPath: ""
|
|
254
|
-
}
|
|
255
|
-
]
|
|
256
|
-
};
|
|
257
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
258
|
-
}
|
|
259
221
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
260
222
|
const domainToMappings = {
|
|
261
223
|
"www._base_domain_": [
|
|
@@ -556,6 +518,15 @@ function customerExtendSubscription(payload) {
|
|
|
556
518
|
}
|
|
557
519
|
function customerQuerySubscriptions(payload) {
|
|
558
520
|
function __customerQuerySubscriptions({ host }) {
|
|
521
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
522
|
+
{
|
|
523
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
524
|
+
paths: [
|
|
525
|
+
{ path: "query.sort.origin.latitude" },
|
|
526
|
+
{ path: "query.sort.origin.longitude" }
|
|
527
|
+
]
|
|
528
|
+
}
|
|
529
|
+
]);
|
|
559
530
|
const metadata = {
|
|
560
531
|
entityFqdn: "wix.billing.v1.subscription",
|
|
561
532
|
method: "POST",
|
|
@@ -565,9 +536,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
565
536
|
optInTransformResponse: true
|
|
566
537
|
},
|
|
567
538
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
568
|
-
{
|
|
539
|
+
{
|
|
540
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
541
|
+
data: serializedData,
|
|
542
|
+
host
|
|
543
|
+
}
|
|
569
544
|
),
|
|
570
|
-
data:
|
|
545
|
+
data: serializedData,
|
|
571
546
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
572
547
|
{
|
|
573
548
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1071,58 +1046,6 @@ function customerUpdateBillingDate(payload) {
|
|
|
1071
1046
|
}
|
|
1072
1047
|
return __customerUpdateBillingDate;
|
|
1073
1048
|
}
|
|
1074
|
-
function payCycle(payload) {
|
|
1075
|
-
function __payCycle({ host }) {
|
|
1076
|
-
const metadata = {
|
|
1077
|
-
entityFqdn: "wix.billing.v1.subscription",
|
|
1078
|
-
method: "POST",
|
|
1079
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
|
|
1080
|
-
packageName: PACKAGE_NAME,
|
|
1081
|
-
migrationOptions: {
|
|
1082
|
-
optInTransformResponse: true
|
|
1083
|
-
},
|
|
1084
|
-
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
|
|
1085
|
-
{
|
|
1086
|
-
protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
1087
|
-
data: payload,
|
|
1088
|
-
host
|
|
1089
|
-
}
|
|
1090
|
-
),
|
|
1091
|
-
data: payload,
|
|
1092
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1093
|
-
{
|
|
1094
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1095
|
-
paths: [
|
|
1096
|
-
{ path: "subscription.createdDate" },
|
|
1097
|
-
{ path: "subscription.updatedDate" },
|
|
1098
|
-
{ path: "subscription.startDate" },
|
|
1099
|
-
{ path: "subscription.endDate" },
|
|
1100
|
-
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
1101
|
-
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
1102
|
-
{
|
|
1103
|
-
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
1104
|
-
},
|
|
1105
|
-
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
1106
|
-
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
1107
|
-
{
|
|
1108
|
-
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
1109
|
-
},
|
|
1110
|
-
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
1111
|
-
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
1112
|
-
{ path: "subscription.pauseInfo.startDate" },
|
|
1113
|
-
{ path: "subscription.pauseInfo.resumeDate" },
|
|
1114
|
-
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
1115
|
-
{
|
|
1116
|
-
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
1117
|
-
}
|
|
1118
|
-
]
|
|
1119
|
-
}
|
|
1120
|
-
])
|
|
1121
|
-
};
|
|
1122
|
-
return metadata;
|
|
1123
|
-
}
|
|
1124
|
-
return __payCycle;
|
|
1125
|
-
}
|
|
1126
1049
|
function getSubscription(payload) {
|
|
1127
1050
|
function __getSubscription({ host }) {
|
|
1128
1051
|
const metadata = {
|
|
@@ -1496,6 +1419,15 @@ function resumeSubscription(payload) {
|
|
|
1496
1419
|
}
|
|
1497
1420
|
function querySubscriptions(payload) {
|
|
1498
1421
|
function __querySubscriptions({ host }) {
|
|
1422
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1423
|
+
{
|
|
1424
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1425
|
+
paths: [
|
|
1426
|
+
{ path: "query.sort.origin.latitude" },
|
|
1427
|
+
{ path: "query.sort.origin.longitude" }
|
|
1428
|
+
]
|
|
1429
|
+
}
|
|
1430
|
+
]);
|
|
1499
1431
|
const metadata = {
|
|
1500
1432
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1501
1433
|
method: "POST",
|
|
@@ -1506,10 +1438,10 @@ function querySubscriptions(payload) {
|
|
|
1506
1438
|
},
|
|
1507
1439
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1508
1440
|
protoPath: "/v1/subscriptions/query",
|
|
1509
|
-
data:
|
|
1441
|
+
data: serializedData,
|
|
1510
1442
|
host
|
|
1511
1443
|
}),
|
|
1512
|
-
data:
|
|
1444
|
+
data: serializedData,
|
|
1513
1445
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1514
1446
|
{
|
|
1515
1447
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -1546,6 +1478,15 @@ function querySubscriptions(payload) {
|
|
|
1546
1478
|
}
|
|
1547
1479
|
function searchSubscriptions(payload) {
|
|
1548
1480
|
function __searchSubscriptions({ host }) {
|
|
1481
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
1482
|
+
{
|
|
1483
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
1484
|
+
paths: [
|
|
1485
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1486
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1487
|
+
]
|
|
1488
|
+
}
|
|
1489
|
+
]);
|
|
1549
1490
|
const metadata = {
|
|
1550
1491
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1551
1492
|
method: "POST",
|
|
@@ -1556,10 +1497,10 @@ function searchSubscriptions(payload) {
|
|
|
1556
1497
|
},
|
|
1557
1498
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1558
1499
|
protoPath: "/v1/subscriptions/search",
|
|
1559
|
-
data:
|
|
1500
|
+
data: serializedData,
|
|
1560
1501
|
host
|
|
1561
1502
|
}),
|
|
1562
|
-
data:
|
|
1503
|
+
data: serializedData,
|
|
1563
1504
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1564
1505
|
{
|
|
1565
1506
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -3569,6 +3510,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3569
3510
|
{
|
|
3570
3511
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3571
3512
|
},
|
|
3513
|
+
{
|
|
3514
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3518
|
+
},
|
|
3519
|
+
{
|
|
3520
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3521
|
+
},
|
|
3522
|
+
{
|
|
3523
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3524
|
+
},
|
|
3525
|
+
{
|
|
3526
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3530
|
+
},
|
|
3531
|
+
{
|
|
3532
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3533
|
+
},
|
|
3534
|
+
{
|
|
3535
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3536
|
+
},
|
|
3537
|
+
{
|
|
3538
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3542
|
+
},
|
|
3543
|
+
{
|
|
3544
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3545
|
+
},
|
|
3546
|
+
{
|
|
3547
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3548
|
+
},
|
|
3549
|
+
{
|
|
3550
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3554
|
+
},
|
|
3555
|
+
{
|
|
3556
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3557
|
+
},
|
|
3558
|
+
{
|
|
3559
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3560
|
+
},
|
|
3572
3561
|
{
|
|
3573
3562
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3574
3563
|
},
|
|
@@ -3719,6 +3708,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3719
3708
|
return SortOrder2;
|
|
3720
3709
|
})(SortOrder || {});
|
|
3721
3710
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3711
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3722
3712
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3723
3713
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3724
3714
|
return SubscriptionStatusGroup2;
|
|
@@ -3740,6 +3730,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3740
3730
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3741
3731
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3742
3732
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3733
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3743
3734
|
return ActionType2;
|
|
3744
3735
|
})(ActionType || {});
|
|
3745
3736
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3767,25 +3758,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3767
3758
|
WebhookIdentityType2["APP"] = "APP";
|
|
3768
3759
|
return WebhookIdentityType2;
|
|
3769
3760
|
})(WebhookIdentityType || {});
|
|
3770
|
-
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3771
|
-
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3772
|
-
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3773
|
-
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3774
|
-
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3775
|
-
return PaymentTestMode2;
|
|
3776
|
-
})(PaymentTestMode || {});
|
|
3777
|
-
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3778
|
-
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3779
|
-
RevivePolicy2["RESUME"] = "RESUME";
|
|
3780
|
-
return RevivePolicy2;
|
|
3781
|
-
})(RevivePolicy || {});
|
|
3782
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3783
|
-
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3784
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3785
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3786
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3787
|
-
return ActionInitiator2;
|
|
3788
|
-
})(ActionInitiator || {});
|
|
3789
3761
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3790
3762
|
UpdateAction2["NONE"] = "NONE";
|
|
3791
3763
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3794,6 +3766,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3794
3766
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3795
3767
|
return UpdateAction2;
|
|
3796
3768
|
})(UpdateAction || {});
|
|
3769
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3770
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3771
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3772
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3773
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3774
|
+
return ActionInitiator2;
|
|
3775
|
+
})(ActionInitiator || {});
|
|
3776
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3777
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3778
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3779
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3780
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3781
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3797
3782
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3798
3783
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3799
3784
|
return RequestedFields2;
|
|
@@ -3858,14 +3843,14 @@ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
|
3858
3843
|
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3859
3844
|
return ChangeEffectiveTime2;
|
|
3860
3845
|
})(ChangeEffectiveTime || {});
|
|
3861
|
-
var
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
return
|
|
3868
|
-
})(
|
|
3846
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3847
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3848
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3849
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3850
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3851
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3852
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3853
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3869
3854
|
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3870
3855
|
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3871
3856
|
ProrationAction2["CHARGE"] = "CHARGE";
|
|
@@ -3874,6 +3859,22 @@ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
|
3874
3859
|
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3875
3860
|
return ProrationAction2;
|
|
3876
3861
|
})(ProrationAction || {});
|
|
3862
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3863
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3864
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3865
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3866
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3867
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3868
|
+
return ChangeType2;
|
|
3869
|
+
})(ChangeType || {});
|
|
3870
|
+
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3871
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3872
|
+
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3873
|
+
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3874
|
+
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3875
|
+
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3876
|
+
return ProrationBehavior2;
|
|
3877
|
+
})(ProrationBehavior || {});
|
|
3877
3878
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3878
3879
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3879
3880
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3928,6 +3929,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3928
3929
|
Status2["ENDED"] = "ENDED";
|
|
3929
3930
|
return Status2;
|
|
3930
3931
|
})(Status || {});
|
|
3932
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3933
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3934
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3935
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3936
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3937
|
+
return PaymentTestMode2;
|
|
3938
|
+
})(PaymentTestMode || {});
|
|
3939
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3940
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3941
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
3942
|
+
return RevivePolicy2;
|
|
3943
|
+
})(RevivePolicy || {});
|
|
3931
3944
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3932
3945
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3933
3946
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4529,47 +4542,6 @@ async function customerUpdateBillingDate2(_id, billingDate, options) {
|
|
|
4529
4542
|
throw transformedError;
|
|
4530
4543
|
}
|
|
4531
4544
|
}
|
|
4532
|
-
async function payCycle2(subscriptionId, options) {
|
|
4533
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
4534
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
4535
|
-
subscriptionId,
|
|
4536
|
-
paymentTestMode: options?.paymentTestMode,
|
|
4537
|
-
tenantId: options?.tenantId
|
|
4538
|
-
});
|
|
4539
|
-
const reqOpts = payCycle(payload);
|
|
4540
|
-
sideEffects?.onSiteCall?.();
|
|
4541
|
-
try {
|
|
4542
|
-
const result = await httpClient.request(reqOpts);
|
|
4543
|
-
sideEffects?.onSuccess?.(result);
|
|
4544
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
|
|
4545
|
-
(0, import_transform_paths2.transformPaths)(result.data, [
|
|
4546
|
-
{
|
|
4547
|
-
transformFn: import_address2.transformRESTAddressToSDKAddress,
|
|
4548
|
-
paths: [
|
|
4549
|
-
{ path: "subscription.billingSettings.billingAddress.address" },
|
|
4550
|
-
{ path: "subscription.shippingAddress.address" }
|
|
4551
|
-
]
|
|
4552
|
-
}
|
|
4553
|
-
])
|
|
4554
|
-
);
|
|
4555
|
-
} catch (err) {
|
|
4556
|
-
const transformedError = (0, import_transform_error.transformError)(
|
|
4557
|
-
err,
|
|
4558
|
-
{
|
|
4559
|
-
spreadPathsToArguments: {},
|
|
4560
|
-
explicitPathsToArguments: {
|
|
4561
|
-
subscriptionId: "$[0]",
|
|
4562
|
-
paymentTestMode: "$[1].paymentTestMode",
|
|
4563
|
-
tenantId: "$[1].tenantId"
|
|
4564
|
-
},
|
|
4565
|
-
singleArgumentUnchanged: false
|
|
4566
|
-
},
|
|
4567
|
-
["subscriptionId", "options"]
|
|
4568
|
-
);
|
|
4569
|
-
sideEffects?.onError?.(err);
|
|
4570
|
-
throw transformedError;
|
|
4571
|
-
}
|
|
4572
|
-
}
|
|
4573
4545
|
async function getSubscription2(_id) {
|
|
4574
4546
|
const { httpClient, sideEffects } = arguments[1];
|
|
4575
4547
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
@@ -4805,7 +4777,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4805
4777
|
id: _id,
|
|
4806
4778
|
resumeAt: options?.resumeAt,
|
|
4807
4779
|
resumeAtSchedule: options?.resumeAtSchedule,
|
|
4808
|
-
actionContext: options?.actionContext
|
|
4780
|
+
actionContext: options?.actionContext,
|
|
4781
|
+
missingPreviousBillingDateResumeStrategy: options?.missingPreviousBillingDateResumeStrategy
|
|
4809
4782
|
});
|
|
4810
4783
|
const reqOpts = resumeSubscription(payload);
|
|
4811
4784
|
sideEffects?.onSiteCall?.();
|
|
@@ -4832,7 +4805,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4832
4805
|
id: "$[0]",
|
|
4833
4806
|
resumeAt: "$[1].resumeAt",
|
|
4834
4807
|
resumeAtSchedule: "$[1].resumeAtSchedule",
|
|
4835
|
-
actionContext: "$[1].actionContext"
|
|
4808
|
+
actionContext: "$[1].actionContext",
|
|
4809
|
+
missingPreviousBillingDateResumeStrategy: "$[1].missingPreviousBillingDateResumeStrategy"
|
|
4836
4810
|
},
|
|
4837
4811
|
singleArgumentUnchanged: false
|
|
4838
4812
|
},
|
|
@@ -5535,6 +5509,12 @@ async function listSubscriptionHistory2(subscriptionId, options) {
|
|
|
5535
5509
|
{
|
|
5536
5510
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.shippingAddress.address"
|
|
5537
5511
|
},
|
|
5512
|
+
{
|
|
5513
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingSettings.billingAddress.address"
|
|
5514
|
+
},
|
|
5515
|
+
{
|
|
5516
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.shippingAddress.address"
|
|
5517
|
+
},
|
|
5538
5518
|
{
|
|
5539
5519
|
path: "historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address"
|
|
5540
5520
|
},
|
|
@@ -5691,14 +5671,6 @@ function customerUpdateBillingDate3(httpClient) {
|
|
|
5691
5671
|
{ httpClient }
|
|
5692
5672
|
);
|
|
5693
5673
|
}
|
|
5694
|
-
function payCycle3(httpClient) {
|
|
5695
|
-
return (subscriptionId, options) => payCycle2(
|
|
5696
|
-
subscriptionId,
|
|
5697
|
-
options,
|
|
5698
|
-
// @ts-ignore
|
|
5699
|
-
{ httpClient }
|
|
5700
|
-
);
|
|
5701
|
-
}
|
|
5702
5674
|
function getSubscription3(httpClient) {
|
|
5703
5675
|
return (_id) => getSubscription2(
|
|
5704
5676
|
_id,
|
|
@@ -5868,7 +5840,7 @@ function listSubscriptionHistory3(httpClient) {
|
|
|
5868
5840
|
{ httpClient }
|
|
5869
5841
|
);
|
|
5870
5842
|
}
|
|
5871
|
-
var onSubscriptionCanceled = (0, import_sdk_types.EventDefinition)(
|
|
5843
|
+
var onSubscriptionCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
5872
5844
|
"wix.billing.v1.subscription_canceled",
|
|
5873
5845
|
true,
|
|
5874
5846
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -5915,7 +5887,7 @@ var onSubscriptionCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
5915
5887
|
])
|
|
5916
5888
|
)
|
|
5917
5889
|
)();
|
|
5918
|
-
var onSubscriptionExtended = (0, import_sdk_types.EventDefinition)(
|
|
5890
|
+
var onSubscriptionExtended = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
5919
5891
|
"wix.billing.v1.subscription_extended",
|
|
5920
5892
|
true,
|
|
5921
5893
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -5962,7 +5934,7 @@ var onSubscriptionExtended = (0, import_sdk_types.EventDefinition)(
|
|
|
5962
5934
|
])
|
|
5963
5935
|
)
|
|
5964
5936
|
)();
|
|
5965
|
-
var onSubscriptionUpdated = (0, import_sdk_types.EventDefinition)(
|
|
5937
|
+
var onSubscriptionUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
5966
5938
|
"wix.billing.v1.subscription_updated",
|
|
5967
5939
|
true,
|
|
5968
5940
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6001,7 +5973,7 @@ var onSubscriptionUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
6001
5973
|
])
|
|
6002
5974
|
)
|
|
6003
5975
|
)();
|
|
6004
|
-
var onSubscriptionAutoRenewalTurnedOff = (0, import_sdk_types.EventDefinition)(
|
|
5976
|
+
var onSubscriptionAutoRenewalTurnedOff = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6005
5977
|
"wix.billing.v1.subscription_auto_renewal_turned_off",
|
|
6006
5978
|
true,
|
|
6007
5979
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6048,7 +6020,7 @@ var onSubscriptionAutoRenewalTurnedOff = (0, import_sdk_types.EventDefinition)(
|
|
|
6048
6020
|
])
|
|
6049
6021
|
)
|
|
6050
6022
|
)();
|
|
6051
|
-
var onSubscriptionAutoRenewalTurnedOn = (0, import_sdk_types.EventDefinition)(
|
|
6023
|
+
var onSubscriptionAutoRenewalTurnedOn = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6052
6024
|
"wix.billing.v1.subscription_auto_renewal_turned_on",
|
|
6053
6025
|
true,
|
|
6054
6026
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6095,7 +6067,7 @@ var onSubscriptionAutoRenewalTurnedOn = (0, import_sdk_types.EventDefinition)(
|
|
|
6095
6067
|
])
|
|
6096
6068
|
)
|
|
6097
6069
|
)();
|
|
6098
|
-
var onSubscriptionBillingDateUpdated = (0, import_sdk_types.EventDefinition)(
|
|
6070
|
+
var onSubscriptionBillingDateUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6099
6071
|
"wix.billing.v1.subscription_billing_date_updated",
|
|
6100
6072
|
true,
|
|
6101
6073
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6143,7 +6115,7 @@ var onSubscriptionBillingDateUpdated = (0, import_sdk_types.EventDefinition)(
|
|
|
6143
6115
|
])
|
|
6144
6116
|
)
|
|
6145
6117
|
)();
|
|
6146
|
-
var onSubscriptionLatestInvoiceMarkedAsPaid = (0, import_sdk_types.EventDefinition)(
|
|
6118
|
+
var onSubscriptionLatestInvoiceMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6147
6119
|
"wix.billing.v1.subscription_latest_invoice_marked_as_paid",
|
|
6148
6120
|
true,
|
|
6149
6121
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6160,7 +6132,9 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = (0, import_sdk_types.EventDefiniti
|
|
|
6160
6132
|
{
|
|
6161
6133
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6162
6134
|
},
|
|
6163
|
-
{
|
|
6135
|
+
{
|
|
6136
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6137
|
+
},
|
|
6164
6138
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6165
6139
|
{
|
|
6166
6140
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6168,7 +6142,9 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = (0, import_sdk_types.EventDefiniti
|
|
|
6168
6142
|
{
|
|
6169
6143
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6170
6144
|
},
|
|
6171
|
-
{
|
|
6145
|
+
{
|
|
6146
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6147
|
+
},
|
|
6172
6148
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6173
6149
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6174
6150
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6190,7 +6166,7 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = (0, import_sdk_types.EventDefiniti
|
|
|
6190
6166
|
])
|
|
6191
6167
|
)
|
|
6192
6168
|
)();
|
|
6193
|
-
var onSubscriptionPauseScheduleCanceled = (0, import_sdk_types.EventDefinition)(
|
|
6169
|
+
var onSubscriptionPauseScheduleCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6194
6170
|
"wix.billing.v1.subscription_pause_schedule_canceled",
|
|
6195
6171
|
true,
|
|
6196
6172
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6207,7 +6183,9 @@ var onSubscriptionPauseScheduleCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
6207
6183
|
{
|
|
6208
6184
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6209
6185
|
},
|
|
6210
|
-
{
|
|
6186
|
+
{
|
|
6187
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6188
|
+
},
|
|
6211
6189
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6212
6190
|
{
|
|
6213
6191
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6215,7 +6193,9 @@ var onSubscriptionPauseScheduleCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
6215
6193
|
{
|
|
6216
6194
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6217
6195
|
},
|
|
6218
|
-
{
|
|
6196
|
+
{
|
|
6197
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6198
|
+
},
|
|
6219
6199
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6220
6200
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6221
6201
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6237,7 +6217,7 @@ var onSubscriptionPauseScheduleCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
6237
6217
|
])
|
|
6238
6218
|
)
|
|
6239
6219
|
)();
|
|
6240
|
-
var onSubscriptionPauseScheduled = (0, import_sdk_types.EventDefinition)(
|
|
6220
|
+
var onSubscriptionPauseScheduled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6241
6221
|
"wix.billing.v1.subscription_pause_scheduled",
|
|
6242
6222
|
true,
|
|
6243
6223
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6284,7 +6264,7 @@ var onSubscriptionPauseScheduled = (0, import_sdk_types.EventDefinition)(
|
|
|
6284
6264
|
])
|
|
6285
6265
|
)
|
|
6286
6266
|
)();
|
|
6287
|
-
var onSubscriptionPaused = (0, import_sdk_types.EventDefinition)(
|
|
6267
|
+
var onSubscriptionPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6288
6268
|
"wix.billing.v1.subscription_paused",
|
|
6289
6269
|
true,
|
|
6290
6270
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6331,7 +6311,7 @@ var onSubscriptionPaused = (0, import_sdk_types.EventDefinition)(
|
|
|
6331
6311
|
])
|
|
6332
6312
|
)
|
|
6333
6313
|
)();
|
|
6334
|
-
var onSubscriptionResumeScheduleCanceled = (0, import_sdk_types.EventDefinition)(
|
|
6314
|
+
var onSubscriptionResumeScheduleCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6335
6315
|
"wix.billing.v1.subscription_resume_schedule_canceled",
|
|
6336
6316
|
true,
|
|
6337
6317
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6348,7 +6328,9 @@ var onSubscriptionResumeScheduleCanceled = (0, import_sdk_types.EventDefinition)
|
|
|
6348
6328
|
{
|
|
6349
6329
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6350
6330
|
},
|
|
6351
|
-
{
|
|
6331
|
+
{
|
|
6332
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6333
|
+
},
|
|
6352
6334
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6353
6335
|
{
|
|
6354
6336
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6356,7 +6338,9 @@ var onSubscriptionResumeScheduleCanceled = (0, import_sdk_types.EventDefinition)
|
|
|
6356
6338
|
{
|
|
6357
6339
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6358
6340
|
},
|
|
6359
|
-
{
|
|
6341
|
+
{
|
|
6342
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6343
|
+
},
|
|
6360
6344
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6361
6345
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6362
6346
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6378,7 +6362,7 @@ var onSubscriptionResumeScheduleCanceled = (0, import_sdk_types.EventDefinition)
|
|
|
6378
6362
|
])
|
|
6379
6363
|
)
|
|
6380
6364
|
)();
|
|
6381
|
-
var onSubscriptionResumeScheduled = (0, import_sdk_types.EventDefinition)(
|
|
6365
|
+
var onSubscriptionResumeScheduled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6382
6366
|
"wix.billing.v1.subscription_resume_scheduled",
|
|
6383
6367
|
true,
|
|
6384
6368
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6425,7 +6409,7 @@ var onSubscriptionResumeScheduled = (0, import_sdk_types.EventDefinition)(
|
|
|
6425
6409
|
])
|
|
6426
6410
|
)
|
|
6427
6411
|
)();
|
|
6428
|
-
var onSubscriptionResumed = (0, import_sdk_types.EventDefinition)(
|
|
6412
|
+
var onSubscriptionResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
6429
6413
|
"wix.billing.v1.subscription_resumed",
|
|
6430
6414
|
true,
|
|
6431
6415
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
@@ -6498,7 +6482,6 @@ var customerPauseSubscription4 = /* @__PURE__ */ (0, import_rest_modules3.create
|
|
|
6498
6482
|
var customerResumeSubscription4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customerResumeSubscription3);
|
|
6499
6483
|
var customerCancelScheduledPause4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customerCancelScheduledPause3);
|
|
6500
6484
|
var customerUpdateBillingDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customerUpdateBillingDate3);
|
|
6501
|
-
var payCycle4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(payCycle3);
|
|
6502
6485
|
var getSubscription4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getSubscription3);
|
|
6503
6486
|
var updateSubscriptionPaymentMethod4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSubscriptionPaymentMethod3);
|
|
6504
6487
|
var updateSubscriptionBillingDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateSubscriptionBillingDate3);
|
|
@@ -6521,43 +6504,33 @@ var previewSubscriptionCharges4 = /* @__PURE__ */ (0, import_rest_modules3.creat
|
|
|
6521
6504
|
var previewSubscriptionsCharges4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(previewSubscriptionsCharges3);
|
|
6522
6505
|
var initiatePaymentMethodSetup4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(initiatePaymentMethodSetup3);
|
|
6523
6506
|
var listSubscriptionHistory4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listSubscriptionHistory3);
|
|
6524
|
-
var onSubscriptionCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
6507
|
+
var onSubscriptionCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6525
6508
|
onSubscriptionCanceled
|
|
6526
6509
|
);
|
|
6527
|
-
var onSubscriptionExtended2 = (0, import_event_definition_modules.createEventModule)(
|
|
6510
|
+
var onSubscriptionExtended2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6528
6511
|
onSubscriptionExtended
|
|
6529
6512
|
);
|
|
6530
|
-
var onSubscriptionUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
6513
|
+
var onSubscriptionUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6531
6514
|
onSubscriptionUpdated
|
|
6532
6515
|
);
|
|
6533
|
-
var onSubscriptionAutoRenewalTurnedOff2 = (0, import_event_definition_modules.createEventModule)(
|
|
6534
|
-
|
|
6535
|
-
);
|
|
6536
|
-
var
|
|
6537
|
-
onSubscriptionAutoRenewalTurnedOn
|
|
6538
|
-
);
|
|
6539
|
-
var onSubscriptionBillingDateUpdated2 = (0, import_event_definition_modules.createEventModule)(
|
|
6540
|
-
onSubscriptionBillingDateUpdated
|
|
6541
|
-
);
|
|
6542
|
-
var onSubscriptionLatestInvoiceMarkedAsPaid2 = (0, import_event_definition_modules.createEventModule)(
|
|
6516
|
+
var onSubscriptionAutoRenewalTurnedOff2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionAutoRenewalTurnedOff);
|
|
6517
|
+
var onSubscriptionAutoRenewalTurnedOn2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionAutoRenewalTurnedOn);
|
|
6518
|
+
var onSubscriptionBillingDateUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionBillingDateUpdated);
|
|
6519
|
+
var onSubscriptionLatestInvoiceMarkedAsPaid2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6543
6520
|
onSubscriptionLatestInvoiceMarkedAsPaid
|
|
6544
6521
|
);
|
|
6545
|
-
var onSubscriptionPauseScheduleCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
6546
|
-
|
|
6547
|
-
);
|
|
6548
|
-
var onSubscriptionPauseScheduled2 = (0, import_event_definition_modules.createEventModule)(
|
|
6522
|
+
var onSubscriptionPauseScheduleCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionPauseScheduleCanceled);
|
|
6523
|
+
var onSubscriptionPauseScheduled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6549
6524
|
onSubscriptionPauseScheduled
|
|
6550
6525
|
);
|
|
6551
|
-
var onSubscriptionPaused2 = (0, import_event_definition_modules.createEventModule)(
|
|
6526
|
+
var onSubscriptionPaused2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6552
6527
|
onSubscriptionPaused
|
|
6553
6528
|
);
|
|
6554
|
-
var onSubscriptionResumeScheduleCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
6555
|
-
|
|
6556
|
-
);
|
|
6557
|
-
var onSubscriptionResumeScheduled2 = (0, import_event_definition_modules.createEventModule)(
|
|
6529
|
+
var onSubscriptionResumeScheduleCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onSubscriptionResumeScheduleCanceled);
|
|
6530
|
+
var onSubscriptionResumeScheduled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6558
6531
|
onSubscriptionResumeScheduled
|
|
6559
6532
|
);
|
|
6560
|
-
var onSubscriptionResumed2 = (0, import_event_definition_modules.createEventModule)(
|
|
6533
|
+
var onSubscriptionResumed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
6561
6534
|
onSubscriptionResumed
|
|
6562
6535
|
);
|
|
6563
6536
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -6567,6 +6540,7 @@ var onSubscriptionResumed2 = (0, import_event_definition_modules.createEventModu
|
|
|
6567
6540
|
AdditionalFeeTrigger,
|
|
6568
6541
|
CancellationInitiator,
|
|
6569
6542
|
ChangeEffectiveTime,
|
|
6543
|
+
ChangeType,
|
|
6570
6544
|
CollectionMethod,
|
|
6571
6545
|
CollectionMethodEnumCollectionMethod,
|
|
6572
6546
|
CreationMode,
|
|
@@ -6577,6 +6551,7 @@ var onSubscriptionResumed2 = (0, import_event_definition_modules.createEventModu
|
|
|
6577
6551
|
IdentityType,
|
|
6578
6552
|
InvoiceStatus,
|
|
6579
6553
|
ItemCategory,
|
|
6554
|
+
MissingPreviousBillingDateResumeStrategy,
|
|
6580
6555
|
OrderMethod,
|
|
6581
6556
|
PauseAt,
|
|
6582
6557
|
PausePolicy,
|
|
@@ -6589,6 +6564,7 @@ var onSubscriptionResumed2 = (0, import_event_definition_modules.createEventModu
|
|
|
6589
6564
|
PriceAdjustmentReason,
|
|
6590
6565
|
ProrationAction,
|
|
6591
6566
|
ProrationBehavior,
|
|
6567
|
+
ProrationBehaviorEnumProrationBehavior,
|
|
6592
6568
|
RefundReason,
|
|
6593
6569
|
RequestedFields,
|
|
6594
6570
|
ResumeAt,
|
|
@@ -6644,7 +6620,6 @@ var onSubscriptionResumed2 = (0, import_event_definition_modules.createEventModu
|
|
|
6644
6620
|
onSubscriptionResumed,
|
|
6645
6621
|
onSubscriptionUpdated,
|
|
6646
6622
|
pauseSubscription,
|
|
6647
|
-
payCycle,
|
|
6648
6623
|
previewSubscriptionCharges,
|
|
6649
6624
|
previewSubscriptionsCharges,
|
|
6650
6625
|
querySubscriptions,
|