@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/es/index.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
|
|
15
15
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
16
16
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
17
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
17
18
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
18
19
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
19
20
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -100,47 +101,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
100
101
|
};
|
|
101
102
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
102
103
|
}
|
|
103
|
-
function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
|
|
104
|
-
const domainToMappings = {
|
|
105
|
-
"www._base_domain_": [
|
|
106
|
-
{
|
|
107
|
-
srcPath: "/_api/billing-subscriptions",
|
|
108
|
-
destPath: ""
|
|
109
|
-
}
|
|
110
|
-
],
|
|
111
|
-
_: [
|
|
112
|
-
{
|
|
113
|
-
srcPath: "/_api/billing-subscriptions",
|
|
114
|
-
destPath: ""
|
|
115
|
-
}
|
|
116
|
-
],
|
|
117
|
-
"*.dev.wix-code.com": [
|
|
118
|
-
{
|
|
119
|
-
srcPath: "/_api/billing-subscriptions",
|
|
120
|
-
destPath: ""
|
|
121
|
-
}
|
|
122
|
-
],
|
|
123
|
-
"*.pub.wix-code.com": [
|
|
124
|
-
{
|
|
125
|
-
srcPath: "/_api/billing-subscriptions",
|
|
126
|
-
destPath: ""
|
|
127
|
-
}
|
|
128
|
-
],
|
|
129
|
-
"manage._base_domain_": [
|
|
130
|
-
{
|
|
131
|
-
srcPath: "/_api/billing-subscriptions",
|
|
132
|
-
destPath: ""
|
|
133
|
-
}
|
|
134
|
-
],
|
|
135
|
-
"payments.base44.com": [
|
|
136
|
-
{
|
|
137
|
-
srcPath: "/_api/billing-subscriptions",
|
|
138
|
-
destPath: ""
|
|
139
|
-
}
|
|
140
|
-
]
|
|
141
|
-
};
|
|
142
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
143
|
-
}
|
|
144
104
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
145
105
|
const domainToMappings = {
|
|
146
106
|
"www._base_domain_": [
|
|
@@ -441,6 +401,15 @@ function customerExtendSubscription(payload) {
|
|
|
441
401
|
}
|
|
442
402
|
function customerQuerySubscriptions(payload) {
|
|
443
403
|
function __customerQuerySubscriptions({ host }) {
|
|
404
|
+
const serializedData = transformPaths(payload, [
|
|
405
|
+
{
|
|
406
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
407
|
+
paths: [
|
|
408
|
+
{ path: "query.sort.origin.latitude" },
|
|
409
|
+
{ path: "query.sort.origin.longitude" }
|
|
410
|
+
]
|
|
411
|
+
}
|
|
412
|
+
]);
|
|
444
413
|
const metadata = {
|
|
445
414
|
entityFqdn: "wix.billing.v1.subscription",
|
|
446
415
|
method: "POST",
|
|
@@ -450,9 +419,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
450
419
|
optInTransformResponse: true
|
|
451
420
|
},
|
|
452
421
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
453
|
-
{
|
|
422
|
+
{
|
|
423
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
424
|
+
data: serializedData,
|
|
425
|
+
host
|
|
426
|
+
}
|
|
454
427
|
),
|
|
455
|
-
data:
|
|
428
|
+
data: serializedData,
|
|
456
429
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
457
430
|
{
|
|
458
431
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -956,19 +929,107 @@ function customerUpdateBillingDate(payload) {
|
|
|
956
929
|
}
|
|
957
930
|
return __customerUpdateBillingDate;
|
|
958
931
|
}
|
|
959
|
-
function
|
|
960
|
-
function
|
|
932
|
+
function customerChangeSubscription(payload) {
|
|
933
|
+
function __customerChangeSubscription({ host }) {
|
|
934
|
+
const metadata = {
|
|
935
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
936
|
+
method: "POST",
|
|
937
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerChangeSubscription",
|
|
938
|
+
packageName: PACKAGE_NAME,
|
|
939
|
+
migrationOptions: {
|
|
940
|
+
optInTransformResponse: true
|
|
941
|
+
},
|
|
942
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
943
|
+
{
|
|
944
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/change",
|
|
945
|
+
data: payload,
|
|
946
|
+
host
|
|
947
|
+
}
|
|
948
|
+
),
|
|
949
|
+
data: payload,
|
|
950
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
951
|
+
{
|
|
952
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
953
|
+
paths: [
|
|
954
|
+
{ path: "subscription.createdDate" },
|
|
955
|
+
{ path: "subscription.updatedDate" },
|
|
956
|
+
{ path: "subscription.startDate" },
|
|
957
|
+
{ path: "subscription.endDate" },
|
|
958
|
+
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
959
|
+
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
960
|
+
{
|
|
961
|
+
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
962
|
+
},
|
|
963
|
+
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
964
|
+
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
965
|
+
{
|
|
966
|
+
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
967
|
+
},
|
|
968
|
+
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
969
|
+
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
970
|
+
{ path: "subscription.pauseInfo.startDate" },
|
|
971
|
+
{ path: "subscription.pauseInfo.resumeDate" },
|
|
972
|
+
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
973
|
+
{
|
|
974
|
+
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
975
|
+
}
|
|
976
|
+
]
|
|
977
|
+
}
|
|
978
|
+
])
|
|
979
|
+
};
|
|
980
|
+
return metadata;
|
|
981
|
+
}
|
|
982
|
+
return __customerChangeSubscription;
|
|
983
|
+
}
|
|
984
|
+
function customerPreviewChangeSubscription(payload) {
|
|
985
|
+
function __customerPreviewChangeSubscription({ host }) {
|
|
961
986
|
const metadata = {
|
|
962
987
|
entityFqdn: "wix.billing.v1.subscription",
|
|
963
988
|
method: "POST",
|
|
964
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.
|
|
989
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPreviewChangeSubscription",
|
|
965
990
|
packageName: PACKAGE_NAME,
|
|
966
991
|
migrationOptions: {
|
|
967
992
|
optInTransformResponse: true
|
|
968
993
|
},
|
|
969
|
-
url:
|
|
994
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
970
995
|
{
|
|
971
|
-
protoPath: "/v1/
|
|
996
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
|
|
997
|
+
data: payload,
|
|
998
|
+
host
|
|
999
|
+
}
|
|
1000
|
+
),
|
|
1001
|
+
data: payload,
|
|
1002
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1003
|
+
{
|
|
1004
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
1005
|
+
paths: [
|
|
1006
|
+
{ path: "preview.current.periodStart" },
|
|
1007
|
+
{ path: "preview.current.periodEnd" },
|
|
1008
|
+
{ path: "preview.proposed.periodStart" },
|
|
1009
|
+
{ path: "preview.proposed.periodEnd" },
|
|
1010
|
+
{ path: "preview.proration.newPeriodEnd" },
|
|
1011
|
+
{ path: "preview.renewalPreview.nextRenewalDate" }
|
|
1012
|
+
]
|
|
1013
|
+
}
|
|
1014
|
+
])
|
|
1015
|
+
};
|
|
1016
|
+
return metadata;
|
|
1017
|
+
}
|
|
1018
|
+
return __customerPreviewChangeSubscription;
|
|
1019
|
+
}
|
|
1020
|
+
function customerCancelPendingChange(payload) {
|
|
1021
|
+
function __customerCancelPendingChange({ host }) {
|
|
1022
|
+
const metadata = {
|
|
1023
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1024
|
+
method: "POST",
|
|
1025
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelPendingChange",
|
|
1026
|
+
packageName: PACKAGE_NAME,
|
|
1027
|
+
migrationOptions: {
|
|
1028
|
+
optInTransformResponse: true
|
|
1029
|
+
},
|
|
1030
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1031
|
+
{
|
|
1032
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
|
|
972
1033
|
data: payload,
|
|
973
1034
|
host
|
|
974
1035
|
}
|
|
@@ -1006,7 +1067,7 @@ function payCycle(payload) {
|
|
|
1006
1067
|
};
|
|
1007
1068
|
return metadata;
|
|
1008
1069
|
}
|
|
1009
|
-
return
|
|
1070
|
+
return __customerCancelPendingChange;
|
|
1010
1071
|
}
|
|
1011
1072
|
function getSubscription(payload) {
|
|
1012
1073
|
function __getSubscription({ host }) {
|
|
@@ -1381,6 +1442,15 @@ function resumeSubscription(payload) {
|
|
|
1381
1442
|
}
|
|
1382
1443
|
function querySubscriptions(payload) {
|
|
1383
1444
|
function __querySubscriptions({ host }) {
|
|
1445
|
+
const serializedData = transformPaths(payload, [
|
|
1446
|
+
{
|
|
1447
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1448
|
+
paths: [
|
|
1449
|
+
{ path: "query.sort.origin.latitude" },
|
|
1450
|
+
{ path: "query.sort.origin.longitude" }
|
|
1451
|
+
]
|
|
1452
|
+
}
|
|
1453
|
+
]);
|
|
1384
1454
|
const metadata = {
|
|
1385
1455
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1386
1456
|
method: "POST",
|
|
@@ -1391,10 +1461,10 @@ function querySubscriptions(payload) {
|
|
|
1391
1461
|
},
|
|
1392
1462
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1393
1463
|
protoPath: "/v1/subscriptions/query",
|
|
1394
|
-
data:
|
|
1464
|
+
data: serializedData,
|
|
1395
1465
|
host
|
|
1396
1466
|
}),
|
|
1397
|
-
data:
|
|
1467
|
+
data: serializedData,
|
|
1398
1468
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1399
1469
|
{
|
|
1400
1470
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -1431,6 +1501,15 @@ function querySubscriptions(payload) {
|
|
|
1431
1501
|
}
|
|
1432
1502
|
function searchSubscriptions(payload) {
|
|
1433
1503
|
function __searchSubscriptions({ host }) {
|
|
1504
|
+
const serializedData = transformPaths(payload, [
|
|
1505
|
+
{
|
|
1506
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1507
|
+
paths: [
|
|
1508
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1509
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1510
|
+
]
|
|
1511
|
+
}
|
|
1512
|
+
]);
|
|
1434
1513
|
const metadata = {
|
|
1435
1514
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1436
1515
|
method: "POST",
|
|
@@ -1441,10 +1520,10 @@ function searchSubscriptions(payload) {
|
|
|
1441
1520
|
},
|
|
1442
1521
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1443
1522
|
protoPath: "/v1/subscriptions/search",
|
|
1444
|
-
data:
|
|
1523
|
+
data: serializedData,
|
|
1445
1524
|
host
|
|
1446
1525
|
}),
|
|
1447
|
-
data:
|
|
1526
|
+
data: serializedData,
|
|
1448
1527
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1449
1528
|
{
|
|
1450
1529
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -3454,6 +3533,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3454
3533
|
{
|
|
3455
3534
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3456
3535
|
},
|
|
3536
|
+
{
|
|
3537
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3538
|
+
},
|
|
3539
|
+
{
|
|
3540
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3541
|
+
},
|
|
3542
|
+
{
|
|
3543
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3544
|
+
},
|
|
3545
|
+
{
|
|
3546
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3550
|
+
},
|
|
3551
|
+
{
|
|
3552
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3553
|
+
},
|
|
3554
|
+
{
|
|
3555
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3556
|
+
},
|
|
3557
|
+
{
|
|
3558
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3562
|
+
},
|
|
3563
|
+
{
|
|
3564
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3565
|
+
},
|
|
3566
|
+
{
|
|
3567
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3568
|
+
},
|
|
3569
|
+
{
|
|
3570
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3574
|
+
},
|
|
3575
|
+
{
|
|
3576
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3577
|
+
},
|
|
3578
|
+
{
|
|
3579
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3580
|
+
},
|
|
3581
|
+
{
|
|
3582
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3583
|
+
},
|
|
3457
3584
|
{
|
|
3458
3585
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3459
3586
|
},
|
|
@@ -3604,6 +3731,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3604
3731
|
return SortOrder2;
|
|
3605
3732
|
})(SortOrder || {});
|
|
3606
3733
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3734
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3607
3735
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3608
3736
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3609
3737
|
return SubscriptionStatusGroup2;
|
|
@@ -3625,6 +3753,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3625
3753
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3626
3754
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3627
3755
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3756
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3628
3757
|
return ActionType2;
|
|
3629
3758
|
})(ActionType || {});
|
|
3630
3759
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3644,6 +3773,20 @@ var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
|
|
|
3644
3773
|
OrderMethod2["NOT_MOTO"] = "NOT_MOTO";
|
|
3645
3774
|
return OrderMethod2;
|
|
3646
3775
|
})(OrderMethod || {});
|
|
3776
|
+
var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
3777
|
+
ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
|
|
3778
|
+
ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
3779
|
+
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3780
|
+
return ChangeEffectiveTime2;
|
|
3781
|
+
})(ChangeEffectiveTime || {});
|
|
3782
|
+
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3783
|
+
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3784
|
+
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3785
|
+
ProrationAction2["REFUND"] = "REFUND";
|
|
3786
|
+
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3787
|
+
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3788
|
+
return ProrationAction2;
|
|
3789
|
+
})(ProrationAction || {});
|
|
3647
3790
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3648
3791
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3649
3792
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -3652,25 +3795,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3652
3795
|
WebhookIdentityType2["APP"] = "APP";
|
|
3653
3796
|
return WebhookIdentityType2;
|
|
3654
3797
|
})(WebhookIdentityType || {});
|
|
3655
|
-
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3656
|
-
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3657
|
-
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3658
|
-
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3659
|
-
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3660
|
-
return PaymentTestMode2;
|
|
3661
|
-
})(PaymentTestMode || {});
|
|
3662
|
-
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3663
|
-
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3664
|
-
RevivePolicy2["RESUME"] = "RESUME";
|
|
3665
|
-
return RevivePolicy2;
|
|
3666
|
-
})(RevivePolicy || {});
|
|
3667
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3668
|
-
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3669
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3670
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3671
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3672
|
-
return ActionInitiator2;
|
|
3673
|
-
})(ActionInitiator || {});
|
|
3674
3798
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3675
3799
|
UpdateAction2["NONE"] = "NONE";
|
|
3676
3800
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3679,6 +3803,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3679
3803
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3680
3804
|
return UpdateAction2;
|
|
3681
3805
|
})(UpdateAction || {});
|
|
3806
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3807
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3808
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3809
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3810
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3811
|
+
return ActionInitiator2;
|
|
3812
|
+
})(ActionInitiator || {});
|
|
3813
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3814
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3815
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3816
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3817
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3818
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3682
3819
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3683
3820
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3684
3821
|
return RequestedFields2;
|
|
@@ -3737,28 +3874,30 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
|
|
|
3737
3874
|
RefundReason2["OTHER"] = "OTHER";
|
|
3738
3875
|
return RefundReason2;
|
|
3739
3876
|
})(RefundReason || {});
|
|
3740
|
-
var
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
|
|
3877
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3878
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3879
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3880
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3881
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3882
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3883
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3884
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3885
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3886
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3887
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3888
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3889
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3890
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3891
|
+
return ChangeType2;
|
|
3892
|
+
})(ChangeType || {});
|
|
3746
3893
|
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3747
|
-
ProrationBehavior2["
|
|
3894
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3748
3895
|
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3749
3896
|
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3750
3897
|
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3751
3898
|
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3752
3899
|
return ProrationBehavior2;
|
|
3753
3900
|
})(ProrationBehavior || {});
|
|
3754
|
-
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3755
|
-
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3756
|
-
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3757
|
-
ProrationAction2["REFUND"] = "REFUND";
|
|
3758
|
-
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3759
|
-
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3760
|
-
return ProrationAction2;
|
|
3761
|
-
})(ProrationAction || {});
|
|
3762
3901
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3763
3902
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3764
3903
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3813,6 +3952,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3813
3952
|
Status2["ENDED"] = "ENDED";
|
|
3814
3953
|
return Status2;
|
|
3815
3954
|
})(Status || {});
|
|
3955
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3956
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3957
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3958
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3959
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3960
|
+
return PaymentTestMode2;
|
|
3961
|
+
})(PaymentTestMode || {});
|
|
3962
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3963
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3964
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
3965
|
+
return RevivePolicy2;
|
|
3966
|
+
})(RevivePolicy || {});
|
|
3816
3967
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3817
3968
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3818
3969
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4414,14 +4565,15 @@ async function customerUpdateBillingDate2(_id, billingDate, options) {
|
|
|
4414
4565
|
throw transformedError;
|
|
4415
4566
|
}
|
|
4416
4567
|
}
|
|
4417
|
-
async function
|
|
4568
|
+
async function customerChangeSubscription2(subscriptionId, options) {
|
|
4418
4569
|
const { httpClient, sideEffects } = arguments[2];
|
|
4419
4570
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4420
4571
|
subscriptionId,
|
|
4421
|
-
|
|
4422
|
-
|
|
4572
|
+
itemChanges: options?.itemChanges,
|
|
4573
|
+
newCycle: options?.newCycle,
|
|
4574
|
+
effectiveTime: options?.effectiveTime
|
|
4423
4575
|
});
|
|
4424
|
-
const reqOpts =
|
|
4576
|
+
const reqOpts = customerChangeSubscription(payload);
|
|
4425
4577
|
sideEffects?.onSiteCall?.();
|
|
4426
4578
|
try {
|
|
4427
4579
|
const result = await httpClient.request(reqOpts);
|
|
@@ -4444,8 +4596,9 @@ async function payCycle2(subscriptionId, options) {
|
|
|
4444
4596
|
spreadPathsToArguments: {},
|
|
4445
4597
|
explicitPathsToArguments: {
|
|
4446
4598
|
subscriptionId: "$[0]",
|
|
4447
|
-
|
|
4448
|
-
|
|
4599
|
+
itemChanges: "$[1].itemChanges",
|
|
4600
|
+
newCycle: "$[1].newCycle",
|
|
4601
|
+
effectiveTime: "$[1].effectiveTime"
|
|
4449
4602
|
},
|
|
4450
4603
|
singleArgumentUnchanged: false
|
|
4451
4604
|
},
|
|
@@ -4455,6 +4608,76 @@ async function payCycle2(subscriptionId, options) {
|
|
|
4455
4608
|
throw transformedError;
|
|
4456
4609
|
}
|
|
4457
4610
|
}
|
|
4611
|
+
async function customerPreviewChangeSubscription2(subscriptionId, options) {
|
|
4612
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
4613
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4614
|
+
subscriptionId,
|
|
4615
|
+
itemChanges: options?.itemChanges,
|
|
4616
|
+
newCycle: options?.newCycle,
|
|
4617
|
+
effectiveTime: options?.effectiveTime
|
|
4618
|
+
});
|
|
4619
|
+
const reqOpts = customerPreviewChangeSubscription(
|
|
4620
|
+
payload
|
|
4621
|
+
);
|
|
4622
|
+
sideEffects?.onSiteCall?.();
|
|
4623
|
+
try {
|
|
4624
|
+
const result = await httpClient.request(reqOpts);
|
|
4625
|
+
sideEffects?.onSuccess?.(result);
|
|
4626
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
4627
|
+
} catch (err) {
|
|
4628
|
+
const transformedError = sdkTransformError(
|
|
4629
|
+
err,
|
|
4630
|
+
{
|
|
4631
|
+
spreadPathsToArguments: {},
|
|
4632
|
+
explicitPathsToArguments: {
|
|
4633
|
+
subscriptionId: "$[0]",
|
|
4634
|
+
itemChanges: "$[1].itemChanges",
|
|
4635
|
+
newCycle: "$[1].newCycle",
|
|
4636
|
+
effectiveTime: "$[1].effectiveTime"
|
|
4637
|
+
},
|
|
4638
|
+
singleArgumentUnchanged: false
|
|
4639
|
+
},
|
|
4640
|
+
["subscriptionId", "options"]
|
|
4641
|
+
);
|
|
4642
|
+
sideEffects?.onError?.(err);
|
|
4643
|
+
throw transformedError;
|
|
4644
|
+
}
|
|
4645
|
+
}
|
|
4646
|
+
async function customerCancelPendingChange2(subscriptionId) {
|
|
4647
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
4648
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4649
|
+
subscriptionId
|
|
4650
|
+
});
|
|
4651
|
+
const reqOpts = customerCancelPendingChange(payload);
|
|
4652
|
+
sideEffects?.onSiteCall?.();
|
|
4653
|
+
try {
|
|
4654
|
+
const result = await httpClient.request(reqOpts);
|
|
4655
|
+
sideEffects?.onSuccess?.(result);
|
|
4656
|
+
return renameKeysFromRESTResponseToSDKResponse(
|
|
4657
|
+
transformPaths2(result.data, [
|
|
4658
|
+
{
|
|
4659
|
+
transformFn: transformRESTAddressToSDKAddress,
|
|
4660
|
+
paths: [
|
|
4661
|
+
{ path: "subscription.billingSettings.billingAddress.address" },
|
|
4662
|
+
{ path: "subscription.shippingAddress.address" }
|
|
4663
|
+
]
|
|
4664
|
+
}
|
|
4665
|
+
])
|
|
4666
|
+
);
|
|
4667
|
+
} catch (err) {
|
|
4668
|
+
const transformedError = sdkTransformError(
|
|
4669
|
+
err,
|
|
4670
|
+
{
|
|
4671
|
+
spreadPathsToArguments: {},
|
|
4672
|
+
explicitPathsToArguments: { subscriptionId: "$[0]" },
|
|
4673
|
+
singleArgumentUnchanged: false
|
|
4674
|
+
},
|
|
4675
|
+
["subscriptionId"]
|
|
4676
|
+
);
|
|
4677
|
+
sideEffects?.onError?.(err);
|
|
4678
|
+
throw transformedError;
|
|
4679
|
+
}
|
|
4680
|
+
}
|
|
4458
4681
|
async function getSubscription2(_id) {
|
|
4459
4682
|
const { httpClient, sideEffects } = arguments[1];
|
|
4460
4683
|
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
@@ -4690,7 +4913,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4690
4913
|
id: _id,
|
|
4691
4914
|
resumeAt: options?.resumeAt,
|
|
4692
4915
|
resumeAtSchedule: options?.resumeAtSchedule,
|
|
4693
|
-
actionContext: options?.actionContext
|
|
4916
|
+
actionContext: options?.actionContext,
|
|
4917
|
+
missingPreviousBillingDateResumeStrategy: options?.missingPreviousBillingDateResumeStrategy
|
|
4694
4918
|
});
|
|
4695
4919
|
const reqOpts = resumeSubscription(payload);
|
|
4696
4920
|
sideEffects?.onSiteCall?.();
|
|
@@ -4717,7 +4941,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4717
4941
|
id: "$[0]",
|
|
4718
4942
|
resumeAt: "$[1].resumeAt",
|
|
4719
4943
|
resumeAtSchedule: "$[1].resumeAtSchedule",
|
|
4720
|
-
actionContext: "$[1].actionContext"
|
|
4944
|
+
actionContext: "$[1].actionContext",
|
|
4945
|
+
missingPreviousBillingDateResumeStrategy: "$[1].missingPreviousBillingDateResumeStrategy"
|
|
4721
4946
|
},
|
|
4722
4947
|
singleArgumentUnchanged: false
|
|
4723
4948
|
},
|
|
@@ -5420,6 +5645,12 @@ async function listSubscriptionHistory2(subscriptionId, options) {
|
|
|
5420
5645
|
{
|
|
5421
5646
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.shippingAddress.address"
|
|
5422
5647
|
},
|
|
5648
|
+
{
|
|
5649
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingSettings.billingAddress.address"
|
|
5650
|
+
},
|
|
5651
|
+
{
|
|
5652
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.shippingAddress.address"
|
|
5653
|
+
},
|
|
5423
5654
|
{
|
|
5424
5655
|
path: "historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address"
|
|
5425
5656
|
},
|
|
@@ -5576,14 +5807,29 @@ function customerUpdateBillingDate3(httpClient) {
|
|
|
5576
5807
|
{ httpClient }
|
|
5577
5808
|
);
|
|
5578
5809
|
}
|
|
5579
|
-
function
|
|
5580
|
-
return (subscriptionId, options) =>
|
|
5810
|
+
function customerChangeSubscription3(httpClient) {
|
|
5811
|
+
return (subscriptionId, options) => customerChangeSubscription2(
|
|
5581
5812
|
subscriptionId,
|
|
5582
5813
|
options,
|
|
5583
5814
|
// @ts-ignore
|
|
5584
5815
|
{ httpClient }
|
|
5585
5816
|
);
|
|
5586
5817
|
}
|
|
5818
|
+
function customerPreviewChangeSubscription3(httpClient) {
|
|
5819
|
+
return (subscriptionId, options) => customerPreviewChangeSubscription2(
|
|
5820
|
+
subscriptionId,
|
|
5821
|
+
options,
|
|
5822
|
+
// @ts-ignore
|
|
5823
|
+
{ httpClient }
|
|
5824
|
+
);
|
|
5825
|
+
}
|
|
5826
|
+
function customerCancelPendingChange3(httpClient) {
|
|
5827
|
+
return (subscriptionId) => customerCancelPendingChange2(
|
|
5828
|
+
subscriptionId,
|
|
5829
|
+
// @ts-ignore
|
|
5830
|
+
{ httpClient }
|
|
5831
|
+
);
|
|
5832
|
+
}
|
|
5587
5833
|
function getSubscription3(httpClient) {
|
|
5588
5834
|
return (_id) => getSubscription2(
|
|
5589
5835
|
_id,
|
|
@@ -5753,7 +5999,7 @@ function listSubscriptionHistory3(httpClient) {
|
|
|
5753
5999
|
{ httpClient }
|
|
5754
6000
|
);
|
|
5755
6001
|
}
|
|
5756
|
-
var onSubscriptionCanceled = EventDefinition(
|
|
6002
|
+
var onSubscriptionCanceled = /* @__PURE__ */ EventDefinition(
|
|
5757
6003
|
"wix.billing.v1.subscription_canceled",
|
|
5758
6004
|
true,
|
|
5759
6005
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -5800,7 +6046,7 @@ var onSubscriptionCanceled = EventDefinition(
|
|
|
5800
6046
|
])
|
|
5801
6047
|
)
|
|
5802
6048
|
)();
|
|
5803
|
-
var onSubscriptionExtended = EventDefinition(
|
|
6049
|
+
var onSubscriptionExtended = /* @__PURE__ */ EventDefinition(
|
|
5804
6050
|
"wix.billing.v1.subscription_extended",
|
|
5805
6051
|
true,
|
|
5806
6052
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -5847,7 +6093,7 @@ var onSubscriptionExtended = EventDefinition(
|
|
|
5847
6093
|
])
|
|
5848
6094
|
)
|
|
5849
6095
|
)();
|
|
5850
|
-
var onSubscriptionUpdated = EventDefinition(
|
|
6096
|
+
var onSubscriptionUpdated = /* @__PURE__ */ EventDefinition(
|
|
5851
6097
|
"wix.billing.v1.subscription_updated",
|
|
5852
6098
|
true,
|
|
5853
6099
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -5886,7 +6132,7 @@ var onSubscriptionUpdated = EventDefinition(
|
|
|
5886
6132
|
])
|
|
5887
6133
|
)
|
|
5888
6134
|
)();
|
|
5889
|
-
var onSubscriptionAutoRenewalTurnedOff = EventDefinition(
|
|
6135
|
+
var onSubscriptionAutoRenewalTurnedOff = /* @__PURE__ */ EventDefinition(
|
|
5890
6136
|
"wix.billing.v1.subscription_auto_renewal_turned_off",
|
|
5891
6137
|
true,
|
|
5892
6138
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -5933,7 +6179,7 @@ var onSubscriptionAutoRenewalTurnedOff = EventDefinition(
|
|
|
5933
6179
|
])
|
|
5934
6180
|
)
|
|
5935
6181
|
)();
|
|
5936
|
-
var onSubscriptionAutoRenewalTurnedOn = EventDefinition(
|
|
6182
|
+
var onSubscriptionAutoRenewalTurnedOn = /* @__PURE__ */ EventDefinition(
|
|
5937
6183
|
"wix.billing.v1.subscription_auto_renewal_turned_on",
|
|
5938
6184
|
true,
|
|
5939
6185
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -5980,7 +6226,7 @@ var onSubscriptionAutoRenewalTurnedOn = EventDefinition(
|
|
|
5980
6226
|
])
|
|
5981
6227
|
)
|
|
5982
6228
|
)();
|
|
5983
|
-
var onSubscriptionBillingDateUpdated = EventDefinition(
|
|
6229
|
+
var onSubscriptionBillingDateUpdated = /* @__PURE__ */ EventDefinition(
|
|
5984
6230
|
"wix.billing.v1.subscription_billing_date_updated",
|
|
5985
6231
|
true,
|
|
5986
6232
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6028,7 +6274,7 @@ var onSubscriptionBillingDateUpdated = EventDefinition(
|
|
|
6028
6274
|
])
|
|
6029
6275
|
)
|
|
6030
6276
|
)();
|
|
6031
|
-
var onSubscriptionLatestInvoiceMarkedAsPaid = EventDefinition(
|
|
6277
|
+
var onSubscriptionLatestInvoiceMarkedAsPaid = /* @__PURE__ */ EventDefinition(
|
|
6032
6278
|
"wix.billing.v1.subscription_latest_invoice_marked_as_paid",
|
|
6033
6279
|
true,
|
|
6034
6280
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6045,7 +6291,9 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = EventDefinition(
|
|
|
6045
6291
|
{
|
|
6046
6292
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6047
6293
|
},
|
|
6048
|
-
{
|
|
6294
|
+
{
|
|
6295
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6296
|
+
},
|
|
6049
6297
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6050
6298
|
{
|
|
6051
6299
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6053,7 +6301,9 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = EventDefinition(
|
|
|
6053
6301
|
{
|
|
6054
6302
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6055
6303
|
},
|
|
6056
|
-
{
|
|
6304
|
+
{
|
|
6305
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6306
|
+
},
|
|
6057
6307
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6058
6308
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6059
6309
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6075,7 +6325,7 @@ var onSubscriptionLatestInvoiceMarkedAsPaid = EventDefinition(
|
|
|
6075
6325
|
])
|
|
6076
6326
|
)
|
|
6077
6327
|
)();
|
|
6078
|
-
var onSubscriptionPauseScheduleCanceled = EventDefinition(
|
|
6328
|
+
var onSubscriptionPauseScheduleCanceled = /* @__PURE__ */ EventDefinition(
|
|
6079
6329
|
"wix.billing.v1.subscription_pause_schedule_canceled",
|
|
6080
6330
|
true,
|
|
6081
6331
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6092,7 +6342,9 @@ var onSubscriptionPauseScheduleCanceled = EventDefinition(
|
|
|
6092
6342
|
{
|
|
6093
6343
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6094
6344
|
},
|
|
6095
|
-
{
|
|
6345
|
+
{
|
|
6346
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6347
|
+
},
|
|
6096
6348
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6097
6349
|
{
|
|
6098
6350
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6100,7 +6352,9 @@ var onSubscriptionPauseScheduleCanceled = EventDefinition(
|
|
|
6100
6352
|
{
|
|
6101
6353
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6102
6354
|
},
|
|
6103
|
-
{
|
|
6355
|
+
{
|
|
6356
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6357
|
+
},
|
|
6104
6358
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6105
6359
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6106
6360
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6122,7 +6376,7 @@ var onSubscriptionPauseScheduleCanceled = EventDefinition(
|
|
|
6122
6376
|
])
|
|
6123
6377
|
)
|
|
6124
6378
|
)();
|
|
6125
|
-
var onSubscriptionPauseScheduled = EventDefinition(
|
|
6379
|
+
var onSubscriptionPauseScheduled = /* @__PURE__ */ EventDefinition(
|
|
6126
6380
|
"wix.billing.v1.subscription_pause_scheduled",
|
|
6127
6381
|
true,
|
|
6128
6382
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6169,7 +6423,7 @@ var onSubscriptionPauseScheduled = EventDefinition(
|
|
|
6169
6423
|
])
|
|
6170
6424
|
)
|
|
6171
6425
|
)();
|
|
6172
|
-
var onSubscriptionPaused = EventDefinition(
|
|
6426
|
+
var onSubscriptionPaused = /* @__PURE__ */ EventDefinition(
|
|
6173
6427
|
"wix.billing.v1.subscription_paused",
|
|
6174
6428
|
true,
|
|
6175
6429
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6216,7 +6470,7 @@ var onSubscriptionPaused = EventDefinition(
|
|
|
6216
6470
|
])
|
|
6217
6471
|
)
|
|
6218
6472
|
)();
|
|
6219
|
-
var onSubscriptionResumeScheduleCanceled = EventDefinition(
|
|
6473
|
+
var onSubscriptionResumeScheduleCanceled = /* @__PURE__ */ EventDefinition(
|
|
6220
6474
|
"wix.billing.v1.subscription_resume_schedule_canceled",
|
|
6221
6475
|
true,
|
|
6222
6476
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6233,7 +6487,9 @@ var onSubscriptionResumeScheduleCanceled = EventDefinition(
|
|
|
6233
6487
|
{
|
|
6234
6488
|
path: "data.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
6235
6489
|
},
|
|
6236
|
-
{
|
|
6490
|
+
{
|
|
6491
|
+
path: "data.subscription.billingStatus.freeTrialData.startDate"
|
|
6492
|
+
},
|
|
6237
6493
|
{ path: "data.subscription.billingStatus.freeTrialData.endDate" },
|
|
6238
6494
|
{
|
|
6239
6495
|
path: "data.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
@@ -6241,7 +6497,9 @@ var onSubscriptionResumeScheduleCanceled = EventDefinition(
|
|
|
6241
6497
|
{
|
|
6242
6498
|
path: "data.subscription.billingStatus.gracePeriodData.startDate"
|
|
6243
6499
|
},
|
|
6244
|
-
{
|
|
6500
|
+
{
|
|
6501
|
+
path: "data.subscription.billingStatus.gracePeriodData.endDate"
|
|
6502
|
+
},
|
|
6245
6503
|
{ path: "data.subscription.pauseInfo.startDate" },
|
|
6246
6504
|
{ path: "data.subscription.pauseInfo.resumeDate" },
|
|
6247
6505
|
{ path: "data.subscription.cancellationInfo.cancellationDate" },
|
|
@@ -6263,7 +6521,7 @@ var onSubscriptionResumeScheduleCanceled = EventDefinition(
|
|
|
6263
6521
|
])
|
|
6264
6522
|
)
|
|
6265
6523
|
)();
|
|
6266
|
-
var onSubscriptionResumeScheduled = EventDefinition(
|
|
6524
|
+
var onSubscriptionResumeScheduled = /* @__PURE__ */ EventDefinition(
|
|
6267
6525
|
"wix.billing.v1.subscription_resume_scheduled",
|
|
6268
6526
|
true,
|
|
6269
6527
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6310,7 +6568,7 @@ var onSubscriptionResumeScheduled = EventDefinition(
|
|
|
6310
6568
|
])
|
|
6311
6569
|
)
|
|
6312
6570
|
)();
|
|
6313
|
-
var onSubscriptionResumed = EventDefinition(
|
|
6571
|
+
var onSubscriptionResumed = /* @__PURE__ */ EventDefinition(
|
|
6314
6572
|
"wix.billing.v1.subscription_resumed",
|
|
6315
6573
|
true,
|
|
6316
6574
|
(event) => renameKeysFromRESTResponseToSDKResponse2(
|
|
@@ -6383,7 +6641,9 @@ var customerPauseSubscription4 = /* @__PURE__ */ createRESTModule(customerPauseS
|
|
|
6383
6641
|
var customerResumeSubscription4 = /* @__PURE__ */ createRESTModule(customerResumeSubscription3);
|
|
6384
6642
|
var customerCancelScheduledPause4 = /* @__PURE__ */ createRESTModule(customerCancelScheduledPause3);
|
|
6385
6643
|
var customerUpdateBillingDate4 = /* @__PURE__ */ createRESTModule(customerUpdateBillingDate3);
|
|
6386
|
-
var
|
|
6644
|
+
var customerChangeSubscription4 = /* @__PURE__ */ createRESTModule(customerChangeSubscription3);
|
|
6645
|
+
var customerPreviewChangeSubscription4 = /* @__PURE__ */ createRESTModule(customerPreviewChangeSubscription3);
|
|
6646
|
+
var customerCancelPendingChange4 = /* @__PURE__ */ createRESTModule(customerCancelPendingChange3);
|
|
6387
6647
|
var getSubscription4 = /* @__PURE__ */ createRESTModule(getSubscription3);
|
|
6388
6648
|
var updateSubscriptionPaymentMethod4 = /* @__PURE__ */ createRESTModule(updateSubscriptionPaymentMethod3);
|
|
6389
6649
|
var updateSubscriptionBillingDate4 = /* @__PURE__ */ createRESTModule(updateSubscriptionBillingDate3);
|
|
@@ -6406,43 +6666,33 @@ var previewSubscriptionCharges4 = /* @__PURE__ */ createRESTModule(previewSubscr
|
|
|
6406
6666
|
var previewSubscriptionsCharges4 = /* @__PURE__ */ createRESTModule(previewSubscriptionsCharges3);
|
|
6407
6667
|
var initiatePaymentMethodSetup4 = /* @__PURE__ */ createRESTModule(initiatePaymentMethodSetup3);
|
|
6408
6668
|
var listSubscriptionHistory4 = /* @__PURE__ */ createRESTModule(listSubscriptionHistory3);
|
|
6409
|
-
var onSubscriptionCanceled2 = createEventModule(
|
|
6669
|
+
var onSubscriptionCanceled2 = /* @__PURE__ */ createEventModule(
|
|
6410
6670
|
onSubscriptionCanceled
|
|
6411
6671
|
);
|
|
6412
|
-
var onSubscriptionExtended2 = createEventModule(
|
|
6672
|
+
var onSubscriptionExtended2 = /* @__PURE__ */ createEventModule(
|
|
6413
6673
|
onSubscriptionExtended
|
|
6414
6674
|
);
|
|
6415
|
-
var onSubscriptionUpdated2 = createEventModule(
|
|
6675
|
+
var onSubscriptionUpdated2 = /* @__PURE__ */ createEventModule(
|
|
6416
6676
|
onSubscriptionUpdated
|
|
6417
6677
|
);
|
|
6418
|
-
var onSubscriptionAutoRenewalTurnedOff2 = createEventModule(
|
|
6419
|
-
|
|
6420
|
-
);
|
|
6421
|
-
var
|
|
6422
|
-
onSubscriptionAutoRenewalTurnedOn
|
|
6423
|
-
);
|
|
6424
|
-
var onSubscriptionBillingDateUpdated2 = createEventModule(
|
|
6425
|
-
onSubscriptionBillingDateUpdated
|
|
6426
|
-
);
|
|
6427
|
-
var onSubscriptionLatestInvoiceMarkedAsPaid2 = createEventModule(
|
|
6678
|
+
var onSubscriptionAutoRenewalTurnedOff2 = /* @__PURE__ */ createEventModule(onSubscriptionAutoRenewalTurnedOff);
|
|
6679
|
+
var onSubscriptionAutoRenewalTurnedOn2 = /* @__PURE__ */ createEventModule(onSubscriptionAutoRenewalTurnedOn);
|
|
6680
|
+
var onSubscriptionBillingDateUpdated2 = /* @__PURE__ */ createEventModule(onSubscriptionBillingDateUpdated);
|
|
6681
|
+
var onSubscriptionLatestInvoiceMarkedAsPaid2 = /* @__PURE__ */ createEventModule(
|
|
6428
6682
|
onSubscriptionLatestInvoiceMarkedAsPaid
|
|
6429
6683
|
);
|
|
6430
|
-
var onSubscriptionPauseScheduleCanceled2 = createEventModule(
|
|
6431
|
-
|
|
6432
|
-
);
|
|
6433
|
-
var onSubscriptionPauseScheduled2 = createEventModule(
|
|
6684
|
+
var onSubscriptionPauseScheduleCanceled2 = /* @__PURE__ */ createEventModule(onSubscriptionPauseScheduleCanceled);
|
|
6685
|
+
var onSubscriptionPauseScheduled2 = /* @__PURE__ */ createEventModule(
|
|
6434
6686
|
onSubscriptionPauseScheduled
|
|
6435
6687
|
);
|
|
6436
|
-
var onSubscriptionPaused2 = createEventModule(
|
|
6688
|
+
var onSubscriptionPaused2 = /* @__PURE__ */ createEventModule(
|
|
6437
6689
|
onSubscriptionPaused
|
|
6438
6690
|
);
|
|
6439
|
-
var onSubscriptionResumeScheduleCanceled2 = createEventModule(
|
|
6440
|
-
|
|
6441
|
-
);
|
|
6442
|
-
var onSubscriptionResumeScheduled2 = createEventModule(
|
|
6691
|
+
var onSubscriptionResumeScheduleCanceled2 = /* @__PURE__ */ createEventModule(onSubscriptionResumeScheduleCanceled);
|
|
6692
|
+
var onSubscriptionResumeScheduled2 = /* @__PURE__ */ createEventModule(
|
|
6443
6693
|
onSubscriptionResumeScheduled
|
|
6444
6694
|
);
|
|
6445
|
-
var onSubscriptionResumed2 = createEventModule(
|
|
6695
|
+
var onSubscriptionResumed2 = /* @__PURE__ */ createEventModule(
|
|
6446
6696
|
onSubscriptionResumed
|
|
6447
6697
|
);
|
|
6448
6698
|
export {
|
|
@@ -6451,6 +6701,7 @@ export {
|
|
|
6451
6701
|
AdditionalFeeTrigger,
|
|
6452
6702
|
CancellationInitiator,
|
|
6453
6703
|
ChangeEffectiveTime,
|
|
6704
|
+
ChangeType,
|
|
6454
6705
|
CollectionMethod,
|
|
6455
6706
|
CollectionMethodEnumCollectionMethod,
|
|
6456
6707
|
CreationMode,
|
|
@@ -6461,6 +6712,7 @@ export {
|
|
|
6461
6712
|
IdentityType,
|
|
6462
6713
|
InvoiceStatus,
|
|
6463
6714
|
ItemCategory,
|
|
6715
|
+
MissingPreviousBillingDateResumeStrategy,
|
|
6464
6716
|
OrderMethod,
|
|
6465
6717
|
PauseAt,
|
|
6466
6718
|
PausePolicy,
|
|
@@ -6473,6 +6725,7 @@ export {
|
|
|
6473
6725
|
PriceAdjustmentReason,
|
|
6474
6726
|
ProrationAction,
|
|
6475
6727
|
ProrationBehavior,
|
|
6728
|
+
ProrationBehaviorEnumProrationBehavior,
|
|
6476
6729
|
RefundReason,
|
|
6477
6730
|
RequestedFields,
|
|
6478
6731
|
ResumeAt,
|
|
@@ -6491,14 +6744,17 @@ export {
|
|
|
6491
6744
|
cancelSubscription4 as cancelSubscription,
|
|
6492
6745
|
countSubscriptions4 as countSubscriptions,
|
|
6493
6746
|
customerAllowedActions4 as customerAllowedActions,
|
|
6747
|
+
customerCancelPendingChange4 as customerCancelPendingChange,
|
|
6494
6748
|
customerCancelScheduledPause4 as customerCancelScheduledPause,
|
|
6495
6749
|
customerCancelScheduledSkip4 as customerCancelScheduledSkip,
|
|
6496
6750
|
customerCancelSubscription4 as customerCancelSubscription,
|
|
6751
|
+
customerChangeSubscription4 as customerChangeSubscription,
|
|
6497
6752
|
customerExtendSubscription4 as customerExtendSubscription,
|
|
6498
6753
|
customerGetSubscription4 as customerGetSubscription,
|
|
6499
6754
|
customerInitiatePaymentMethodSetup4 as customerInitiatePaymentMethodSetup,
|
|
6500
6755
|
customerListUpcomingCharges4 as customerListUpcomingCharges,
|
|
6501
6756
|
customerPauseSubscription4 as customerPauseSubscription,
|
|
6757
|
+
customerPreviewChangeSubscription4 as customerPreviewChangeSubscription,
|
|
6502
6758
|
customerQuerySubscriptions4 as customerQuerySubscriptions,
|
|
6503
6759
|
customerResumeSubscription4 as customerResumeSubscription,
|
|
6504
6760
|
customerSkipCycle4 as customerSkipCycle,
|
|
@@ -6528,7 +6784,6 @@ export {
|
|
|
6528
6784
|
onSubscriptionResumed2 as onSubscriptionResumed,
|
|
6529
6785
|
onSubscriptionUpdated2 as onSubscriptionUpdated,
|
|
6530
6786
|
pauseSubscription4 as pauseSubscription,
|
|
6531
|
-
payCycle4 as payCycle,
|
|
6532
6787
|
previewSubscriptionCharges4 as previewSubscriptionCharges,
|
|
6533
6788
|
previewSubscriptionsCharges4 as previewSubscriptionsCharges,
|
|
6534
6789
|
querySubscriptions4 as querySubscriptions,
|