@wix/auto_sdk_subscription_subscriptions 1.0.46 → 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 +1962 -1734
- package/build/cjs/index.typings.js +153 -171
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +1933 -1722
- 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 +1962 -1734
- package/build/es/index.typings.mjs +150 -170
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +1933 -1722
- 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 +2021 -1732
- package/build/internal/cjs/meta.d.ts +1875 -1552
- package/build/internal/es/index.d.mts +3 -11
- package/build/internal/es/index.typings.d.mts +2021 -1732
- package/build/internal/es/meta.d.mts +1875 -1552
- 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
|
@@ -7,6 +7,7 @@ import {
|
|
|
7
7
|
|
|
8
8
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
9
9
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
10
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
10
11
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
11
12
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
12
13
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -93,47 +94,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
93
94
|
};
|
|
94
95
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
95
96
|
}
|
|
96
|
-
function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
|
|
97
|
-
const domainToMappings = {
|
|
98
|
-
"www._base_domain_": [
|
|
99
|
-
{
|
|
100
|
-
srcPath: "/_api/billing-subscriptions",
|
|
101
|
-
destPath: ""
|
|
102
|
-
}
|
|
103
|
-
],
|
|
104
|
-
_: [
|
|
105
|
-
{
|
|
106
|
-
srcPath: "/_api/billing-subscriptions",
|
|
107
|
-
destPath: ""
|
|
108
|
-
}
|
|
109
|
-
],
|
|
110
|
-
"*.dev.wix-code.com": [
|
|
111
|
-
{
|
|
112
|
-
srcPath: "/_api/billing-subscriptions",
|
|
113
|
-
destPath: ""
|
|
114
|
-
}
|
|
115
|
-
],
|
|
116
|
-
"*.pub.wix-code.com": [
|
|
117
|
-
{
|
|
118
|
-
srcPath: "/_api/billing-subscriptions",
|
|
119
|
-
destPath: ""
|
|
120
|
-
}
|
|
121
|
-
],
|
|
122
|
-
"manage._base_domain_": [
|
|
123
|
-
{
|
|
124
|
-
srcPath: "/_api/billing-subscriptions",
|
|
125
|
-
destPath: ""
|
|
126
|
-
}
|
|
127
|
-
],
|
|
128
|
-
"payments.base44.com": [
|
|
129
|
-
{
|
|
130
|
-
srcPath: "/_api/billing-subscriptions",
|
|
131
|
-
destPath: ""
|
|
132
|
-
}
|
|
133
|
-
]
|
|
134
|
-
};
|
|
135
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
136
|
-
}
|
|
137
97
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
138
98
|
const domainToMappings = {
|
|
139
99
|
"www._base_domain_": [
|
|
@@ -434,6 +394,15 @@ function customerExtendSubscription(payload) {
|
|
|
434
394
|
}
|
|
435
395
|
function customerQuerySubscriptions(payload) {
|
|
436
396
|
function __customerQuerySubscriptions({ host }) {
|
|
397
|
+
const serializedData = transformPaths(payload, [
|
|
398
|
+
{
|
|
399
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
400
|
+
paths: [
|
|
401
|
+
{ path: "query.sort.origin.latitude" },
|
|
402
|
+
{ path: "query.sort.origin.longitude" }
|
|
403
|
+
]
|
|
404
|
+
}
|
|
405
|
+
]);
|
|
437
406
|
const metadata = {
|
|
438
407
|
entityFqdn: "wix.billing.v1.subscription",
|
|
439
408
|
method: "POST",
|
|
@@ -443,9 +412,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
443
412
|
optInTransformResponse: true
|
|
444
413
|
},
|
|
445
414
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
446
|
-
{
|
|
415
|
+
{
|
|
416
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
417
|
+
data: serializedData,
|
|
418
|
+
host
|
|
419
|
+
}
|
|
447
420
|
),
|
|
448
|
-
data:
|
|
421
|
+
data: serializedData,
|
|
449
422
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
450
423
|
{
|
|
451
424
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -949,58 +922,6 @@ function customerUpdateBillingDate(payload) {
|
|
|
949
922
|
}
|
|
950
923
|
return __customerUpdateBillingDate;
|
|
951
924
|
}
|
|
952
|
-
function payCycle(payload) {
|
|
953
|
-
function __payCycle({ host }) {
|
|
954
|
-
const metadata = {
|
|
955
|
-
entityFqdn: "wix.billing.v1.subscription",
|
|
956
|
-
method: "POST",
|
|
957
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
|
|
958
|
-
packageName: PACKAGE_NAME,
|
|
959
|
-
migrationOptions: {
|
|
960
|
-
optInTransformResponse: true
|
|
961
|
-
},
|
|
962
|
-
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
|
|
963
|
-
{
|
|
964
|
-
protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
965
|
-
data: payload,
|
|
966
|
-
host
|
|
967
|
-
}
|
|
968
|
-
),
|
|
969
|
-
data: payload,
|
|
970
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
971
|
-
{
|
|
972
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
973
|
-
paths: [
|
|
974
|
-
{ path: "subscription.createdDate" },
|
|
975
|
-
{ path: "subscription.updatedDate" },
|
|
976
|
-
{ path: "subscription.startDate" },
|
|
977
|
-
{ path: "subscription.endDate" },
|
|
978
|
-
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
979
|
-
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
980
|
-
{
|
|
981
|
-
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
982
|
-
},
|
|
983
|
-
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
984
|
-
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
985
|
-
{
|
|
986
|
-
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
987
|
-
},
|
|
988
|
-
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
989
|
-
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
990
|
-
{ path: "subscription.pauseInfo.startDate" },
|
|
991
|
-
{ path: "subscription.pauseInfo.resumeDate" },
|
|
992
|
-
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
993
|
-
{
|
|
994
|
-
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
995
|
-
}
|
|
996
|
-
]
|
|
997
|
-
}
|
|
998
|
-
])
|
|
999
|
-
};
|
|
1000
|
-
return metadata;
|
|
1001
|
-
}
|
|
1002
|
-
return __payCycle;
|
|
1003
|
-
}
|
|
1004
925
|
function getSubscription(payload) {
|
|
1005
926
|
function __getSubscription({ host }) {
|
|
1006
927
|
const metadata = {
|
|
@@ -1374,6 +1295,15 @@ function resumeSubscription(payload) {
|
|
|
1374
1295
|
}
|
|
1375
1296
|
function querySubscriptions(payload) {
|
|
1376
1297
|
function __querySubscriptions({ host }) {
|
|
1298
|
+
const serializedData = transformPaths(payload, [
|
|
1299
|
+
{
|
|
1300
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1301
|
+
paths: [
|
|
1302
|
+
{ path: "query.sort.origin.latitude" },
|
|
1303
|
+
{ path: "query.sort.origin.longitude" }
|
|
1304
|
+
]
|
|
1305
|
+
}
|
|
1306
|
+
]);
|
|
1377
1307
|
const metadata = {
|
|
1378
1308
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1379
1309
|
method: "POST",
|
|
@@ -1384,10 +1314,10 @@ function querySubscriptions(payload) {
|
|
|
1384
1314
|
},
|
|
1385
1315
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1386
1316
|
protoPath: "/v1/subscriptions/query",
|
|
1387
|
-
data:
|
|
1317
|
+
data: serializedData,
|
|
1388
1318
|
host
|
|
1389
1319
|
}),
|
|
1390
|
-
data:
|
|
1320
|
+
data: serializedData,
|
|
1391
1321
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1392
1322
|
{
|
|
1393
1323
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -1424,6 +1354,15 @@ function querySubscriptions(payload) {
|
|
|
1424
1354
|
}
|
|
1425
1355
|
function searchSubscriptions(payload) {
|
|
1426
1356
|
function __searchSubscriptions({ host }) {
|
|
1357
|
+
const serializedData = transformPaths(payload, [
|
|
1358
|
+
{
|
|
1359
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1360
|
+
paths: [
|
|
1361
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1362
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1363
|
+
]
|
|
1364
|
+
}
|
|
1365
|
+
]);
|
|
1427
1366
|
const metadata = {
|
|
1428
1367
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1429
1368
|
method: "POST",
|
|
@@ -1434,10 +1373,10 @@ function searchSubscriptions(payload) {
|
|
|
1434
1373
|
},
|
|
1435
1374
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1436
1375
|
protoPath: "/v1/subscriptions/search",
|
|
1437
|
-
data:
|
|
1376
|
+
data: serializedData,
|
|
1438
1377
|
host
|
|
1439
1378
|
}),
|
|
1440
|
-
data:
|
|
1379
|
+
data: serializedData,
|
|
1441
1380
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1442
1381
|
{
|
|
1443
1382
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -3447,6 +3386,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3447
3386
|
{
|
|
3448
3387
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3449
3388
|
},
|
|
3389
|
+
{
|
|
3390
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3391
|
+
},
|
|
3392
|
+
{
|
|
3393
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3397
|
+
},
|
|
3398
|
+
{
|
|
3399
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3400
|
+
},
|
|
3401
|
+
{
|
|
3402
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3403
|
+
},
|
|
3404
|
+
{
|
|
3405
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3406
|
+
},
|
|
3407
|
+
{
|
|
3408
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3409
|
+
},
|
|
3410
|
+
{
|
|
3411
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3412
|
+
},
|
|
3413
|
+
{
|
|
3414
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3418
|
+
},
|
|
3419
|
+
{
|
|
3420
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3421
|
+
},
|
|
3422
|
+
{
|
|
3423
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3424
|
+
},
|
|
3425
|
+
{
|
|
3426
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3427
|
+
},
|
|
3428
|
+
{
|
|
3429
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3430
|
+
},
|
|
3431
|
+
{
|
|
3432
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3433
|
+
},
|
|
3434
|
+
{
|
|
3435
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3436
|
+
},
|
|
3450
3437
|
{
|
|
3451
3438
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3452
3439
|
},
|
|
@@ -3597,6 +3584,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3597
3584
|
return SortOrder2;
|
|
3598
3585
|
})(SortOrder || {});
|
|
3599
3586
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3587
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3600
3588
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3601
3589
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3602
3590
|
return SubscriptionStatusGroup2;
|
|
@@ -3618,6 +3606,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3618
3606
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3619
3607
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3620
3608
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3609
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3621
3610
|
return ActionType2;
|
|
3622
3611
|
})(ActionType || {});
|
|
3623
3612
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3645,25 +3634,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3645
3634
|
WebhookIdentityType2["APP"] = "APP";
|
|
3646
3635
|
return WebhookIdentityType2;
|
|
3647
3636
|
})(WebhookIdentityType || {});
|
|
3648
|
-
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3649
|
-
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3650
|
-
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3651
|
-
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3652
|
-
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3653
|
-
return PaymentTestMode2;
|
|
3654
|
-
})(PaymentTestMode || {});
|
|
3655
|
-
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3656
|
-
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3657
|
-
RevivePolicy2["RESUME"] = "RESUME";
|
|
3658
|
-
return RevivePolicy2;
|
|
3659
|
-
})(RevivePolicy || {});
|
|
3660
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3661
|
-
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3662
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3663
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3664
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3665
|
-
return ActionInitiator2;
|
|
3666
|
-
})(ActionInitiator || {});
|
|
3667
3637
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3668
3638
|
UpdateAction2["NONE"] = "NONE";
|
|
3669
3639
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3672,6 +3642,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3672
3642
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3673
3643
|
return UpdateAction2;
|
|
3674
3644
|
})(UpdateAction || {});
|
|
3645
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3646
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3647
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3648
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3649
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3650
|
+
return ActionInitiator2;
|
|
3651
|
+
})(ActionInitiator || {});
|
|
3652
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3653
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3654
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3655
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3656
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3657
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3675
3658
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3676
3659
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3677
3660
|
return RequestedFields2;
|
|
@@ -3736,14 +3719,14 @@ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
|
3736
3719
|
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3737
3720
|
return ChangeEffectiveTime2;
|
|
3738
3721
|
})(ChangeEffectiveTime || {});
|
|
3739
|
-
var
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3745
|
-
return
|
|
3746
|
-
})(
|
|
3722
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3723
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3724
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3725
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3726
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3727
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3728
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3729
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3747
3730
|
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3748
3731
|
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3749
3732
|
ProrationAction2["CHARGE"] = "CHARGE";
|
|
@@ -3752,6 +3735,22 @@ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
|
3752
3735
|
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3753
3736
|
return ProrationAction2;
|
|
3754
3737
|
})(ProrationAction || {});
|
|
3738
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3739
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3740
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3741
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3742
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3743
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3744
|
+
return ChangeType2;
|
|
3745
|
+
})(ChangeType || {});
|
|
3746
|
+
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3747
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3748
|
+
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3749
|
+
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3750
|
+
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3751
|
+
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3752
|
+
return ProrationBehavior2;
|
|
3753
|
+
})(ProrationBehavior || {});
|
|
3755
3754
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3756
3755
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3757
3756
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3806,6 +3805,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3806
3805
|
Status2["ENDED"] = "ENDED";
|
|
3807
3806
|
return Status2;
|
|
3808
3807
|
})(Status || {});
|
|
3808
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3809
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3810
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3811
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3812
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3813
|
+
return PaymentTestMode2;
|
|
3814
|
+
})(PaymentTestMode || {});
|
|
3815
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3816
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3817
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
3818
|
+
return RevivePolicy2;
|
|
3819
|
+
})(RevivePolicy || {});
|
|
3809
3820
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3810
3821
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3811
3822
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4407,47 +4418,6 @@ async function customerUpdateBillingDate2(_id, billingDate, options) {
|
|
|
4407
4418
|
throw transformedError;
|
|
4408
4419
|
}
|
|
4409
4420
|
}
|
|
4410
|
-
async function payCycle2(subscriptionId, options) {
|
|
4411
|
-
const { httpClient, sideEffects } = arguments[2];
|
|
4412
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
4413
|
-
subscriptionId,
|
|
4414
|
-
paymentTestMode: options?.paymentTestMode,
|
|
4415
|
-
tenantId: options?.tenantId
|
|
4416
|
-
});
|
|
4417
|
-
const reqOpts = payCycle(payload);
|
|
4418
|
-
sideEffects?.onSiteCall?.();
|
|
4419
|
-
try {
|
|
4420
|
-
const result = await httpClient.request(reqOpts);
|
|
4421
|
-
sideEffects?.onSuccess?.(result);
|
|
4422
|
-
return renameKeysFromRESTResponseToSDKResponse(
|
|
4423
|
-
transformPaths2(result.data, [
|
|
4424
|
-
{
|
|
4425
|
-
transformFn: transformRESTAddressToSDKAddress,
|
|
4426
|
-
paths: [
|
|
4427
|
-
{ path: "subscription.billingSettings.billingAddress.address" },
|
|
4428
|
-
{ path: "subscription.shippingAddress.address" }
|
|
4429
|
-
]
|
|
4430
|
-
}
|
|
4431
|
-
])
|
|
4432
|
-
);
|
|
4433
|
-
} catch (err) {
|
|
4434
|
-
const transformedError = sdkTransformError(
|
|
4435
|
-
err,
|
|
4436
|
-
{
|
|
4437
|
-
spreadPathsToArguments: {},
|
|
4438
|
-
explicitPathsToArguments: {
|
|
4439
|
-
subscriptionId: "$[0]",
|
|
4440
|
-
paymentTestMode: "$[1].paymentTestMode",
|
|
4441
|
-
tenantId: "$[1].tenantId"
|
|
4442
|
-
},
|
|
4443
|
-
singleArgumentUnchanged: false
|
|
4444
|
-
},
|
|
4445
|
-
["subscriptionId", "options"]
|
|
4446
|
-
);
|
|
4447
|
-
sideEffects?.onError?.(err);
|
|
4448
|
-
throw transformedError;
|
|
4449
|
-
}
|
|
4450
|
-
}
|
|
4451
4421
|
async function getSubscription2(_id) {
|
|
4452
4422
|
const { httpClient, sideEffects } = arguments[1];
|
|
4453
4423
|
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
@@ -4683,7 +4653,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4683
4653
|
id: _id,
|
|
4684
4654
|
resumeAt: options?.resumeAt,
|
|
4685
4655
|
resumeAtSchedule: options?.resumeAtSchedule,
|
|
4686
|
-
actionContext: options?.actionContext
|
|
4656
|
+
actionContext: options?.actionContext,
|
|
4657
|
+
missingPreviousBillingDateResumeStrategy: options?.missingPreviousBillingDateResumeStrategy
|
|
4687
4658
|
});
|
|
4688
4659
|
const reqOpts = resumeSubscription(payload);
|
|
4689
4660
|
sideEffects?.onSiteCall?.();
|
|
@@ -4710,7 +4681,8 @@ async function resumeSubscription2(_id, options) {
|
|
|
4710
4681
|
id: "$[0]",
|
|
4711
4682
|
resumeAt: "$[1].resumeAt",
|
|
4712
4683
|
resumeAtSchedule: "$[1].resumeAtSchedule",
|
|
4713
|
-
actionContext: "$[1].actionContext"
|
|
4684
|
+
actionContext: "$[1].actionContext",
|
|
4685
|
+
missingPreviousBillingDateResumeStrategy: "$[1].missingPreviousBillingDateResumeStrategy"
|
|
4714
4686
|
},
|
|
4715
4687
|
singleArgumentUnchanged: false
|
|
4716
4688
|
},
|
|
@@ -5413,6 +5385,12 @@ async function listSubscriptionHistory2(subscriptionId, options) {
|
|
|
5413
5385
|
{
|
|
5414
5386
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.shippingAddress.address"
|
|
5415
5387
|
},
|
|
5388
|
+
{
|
|
5389
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingSettings.billingAddress.address"
|
|
5390
|
+
},
|
|
5391
|
+
{
|
|
5392
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.shippingAddress.address"
|
|
5393
|
+
},
|
|
5416
5394
|
{
|
|
5417
5395
|
path: "historyEntries.event.subscriptionBoAction.subscription.billingSettings.billingAddress.address"
|
|
5418
5396
|
},
|
|
@@ -5447,6 +5425,7 @@ export {
|
|
|
5447
5425
|
AdditionalFeeTrigger,
|
|
5448
5426
|
CancellationInitiator,
|
|
5449
5427
|
ChangeEffectiveTime,
|
|
5428
|
+
ChangeType,
|
|
5450
5429
|
CollectionMethod,
|
|
5451
5430
|
CollectionMethodEnumCollectionMethod,
|
|
5452
5431
|
CreationMode,
|
|
@@ -5457,6 +5436,7 @@ export {
|
|
|
5457
5436
|
IdentityType,
|
|
5458
5437
|
InvoiceStatus,
|
|
5459
5438
|
ItemCategory,
|
|
5439
|
+
MissingPreviousBillingDateResumeStrategy,
|
|
5460
5440
|
OrderMethod,
|
|
5461
5441
|
PauseAt,
|
|
5462
5442
|
PausePolicy,
|
|
@@ -5469,6 +5449,7 @@ export {
|
|
|
5469
5449
|
PriceAdjustmentReason,
|
|
5470
5450
|
ProrationAction,
|
|
5471
5451
|
ProrationBehavior,
|
|
5452
|
+
ProrationBehaviorEnumProrationBehavior,
|
|
5472
5453
|
RefundReason,
|
|
5473
5454
|
RequestedFields,
|
|
5474
5455
|
ResumeAt,
|
|
@@ -5511,7 +5492,6 @@ export {
|
|
|
5511
5492
|
markBillingCycleAsPaid2 as markBillingCycleAsPaid,
|
|
5512
5493
|
markLatestInvoiceAsPaid2 as markLatestInvoiceAsPaid,
|
|
5513
5494
|
pauseSubscription2 as pauseSubscription,
|
|
5514
|
-
payCycle2 as payCycle,
|
|
5515
5495
|
previewSubscriptionCharges2 as previewSubscriptionCharges,
|
|
5516
5496
|
previewSubscriptionsCharges2 as previewSubscriptionsCharges,
|
|
5517
5497
|
querySubscriptions2 as querySubscriptions,
|