@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/es/meta.mjs
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// src/billing-v1-subscription-subscriptions.http.ts
|
|
2
2
|
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
+
import { transformSDKFloatToRESTFloat } from "@wix/sdk-runtime/transformations/float";
|
|
3
4
|
import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
4
5
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
6
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
@@ -86,47 +87,6 @@ function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl(opts
|
|
|
86
87
|
};
|
|
87
88
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
88
89
|
}
|
|
89
|
-
function resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(opts) {
|
|
90
|
-
const domainToMappings = {
|
|
91
|
-
"www._base_domain_": [
|
|
92
|
-
{
|
|
93
|
-
srcPath: "/_api/billing-subscriptions",
|
|
94
|
-
destPath: ""
|
|
95
|
-
}
|
|
96
|
-
],
|
|
97
|
-
_: [
|
|
98
|
-
{
|
|
99
|
-
srcPath: "/_api/billing-subscriptions",
|
|
100
|
-
destPath: ""
|
|
101
|
-
}
|
|
102
|
-
],
|
|
103
|
-
"*.dev.wix-code.com": [
|
|
104
|
-
{
|
|
105
|
-
srcPath: "/_api/billing-subscriptions",
|
|
106
|
-
destPath: ""
|
|
107
|
-
}
|
|
108
|
-
],
|
|
109
|
-
"*.pub.wix-code.com": [
|
|
110
|
-
{
|
|
111
|
-
srcPath: "/_api/billing-subscriptions",
|
|
112
|
-
destPath: ""
|
|
113
|
-
}
|
|
114
|
-
],
|
|
115
|
-
"manage._base_domain_": [
|
|
116
|
-
{
|
|
117
|
-
srcPath: "/_api/billing-subscriptions",
|
|
118
|
-
destPath: ""
|
|
119
|
-
}
|
|
120
|
-
],
|
|
121
|
-
"payments.base44.com": [
|
|
122
|
-
{
|
|
123
|
-
srcPath: "/_api/billing-subscriptions",
|
|
124
|
-
destPath: ""
|
|
125
|
-
}
|
|
126
|
-
]
|
|
127
|
-
};
|
|
128
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
129
|
-
}
|
|
130
90
|
function resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(opts) {
|
|
131
91
|
const domainToMappings = {
|
|
132
92
|
"www._base_domain_": [
|
|
@@ -427,6 +387,15 @@ function customerExtendSubscription(payload) {
|
|
|
427
387
|
}
|
|
428
388
|
function customerQuerySubscriptions(payload) {
|
|
429
389
|
function __customerQuerySubscriptions({ host }) {
|
|
390
|
+
const serializedData = transformPaths(payload, [
|
|
391
|
+
{
|
|
392
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
393
|
+
paths: [
|
|
394
|
+
{ path: "query.sort.origin.latitude" },
|
|
395
|
+
{ path: "query.sort.origin.longitude" }
|
|
396
|
+
]
|
|
397
|
+
}
|
|
398
|
+
]);
|
|
430
399
|
const metadata = {
|
|
431
400
|
entityFqdn: "wix.billing.v1.subscription",
|
|
432
401
|
method: "POST",
|
|
@@ -436,9 +405,13 @@ function customerQuerySubscriptions(payload) {
|
|
|
436
405
|
optInTransformResponse: true
|
|
437
406
|
},
|
|
438
407
|
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
439
|
-
{
|
|
408
|
+
{
|
|
409
|
+
protoPath: "/v1/customer_subscriptions/query",
|
|
410
|
+
data: serializedData,
|
|
411
|
+
host
|
|
412
|
+
}
|
|
440
413
|
),
|
|
441
|
-
data:
|
|
414
|
+
data: serializedData,
|
|
442
415
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
443
416
|
{
|
|
444
417
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -942,58 +915,6 @@ function customerUpdateBillingDate(payload) {
|
|
|
942
915
|
}
|
|
943
916
|
return __customerUpdateBillingDate;
|
|
944
917
|
}
|
|
945
|
-
function payCycle(payload) {
|
|
946
|
-
function __payCycle({ host }) {
|
|
947
|
-
const metadata = {
|
|
948
|
-
entityFqdn: "wix.billing.v1.subscription",
|
|
949
|
-
method: "POST",
|
|
950
|
-
methodFqn: "com.wixpress.billing.subscriptions.api.v1.SubscriptionsBackOfficeService.PayCycle",
|
|
951
|
-
packageName: PACKAGE_NAME,
|
|
952
|
-
migrationOptions: {
|
|
953
|
-
optInTransformResponse: true
|
|
954
|
-
},
|
|
955
|
-
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsBackOfficeServiceUrl(
|
|
956
|
-
{
|
|
957
|
-
protoPath: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
958
|
-
data: payload,
|
|
959
|
-
host
|
|
960
|
-
}
|
|
961
|
-
),
|
|
962
|
-
data: payload,
|
|
963
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
964
|
-
{
|
|
965
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
966
|
-
paths: [
|
|
967
|
-
{ path: "subscription.createdDate" },
|
|
968
|
-
{ path: "subscription.updatedDate" },
|
|
969
|
-
{ path: "subscription.startDate" },
|
|
970
|
-
{ path: "subscription.endDate" },
|
|
971
|
-
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
972
|
-
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
973
|
-
{
|
|
974
|
-
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
975
|
-
},
|
|
976
|
-
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
977
|
-
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
978
|
-
{
|
|
979
|
-
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
980
|
-
},
|
|
981
|
-
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
982
|
-
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
983
|
-
{ path: "subscription.pauseInfo.startDate" },
|
|
984
|
-
{ path: "subscription.pauseInfo.resumeDate" },
|
|
985
|
-
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
986
|
-
{
|
|
987
|
-
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
988
|
-
}
|
|
989
|
-
]
|
|
990
|
-
}
|
|
991
|
-
])
|
|
992
|
-
};
|
|
993
|
-
return metadata;
|
|
994
|
-
}
|
|
995
|
-
return __payCycle;
|
|
996
|
-
}
|
|
997
918
|
function getSubscription(payload) {
|
|
998
919
|
function __getSubscription({ host }) {
|
|
999
920
|
const metadata = {
|
|
@@ -1367,6 +1288,15 @@ function resumeSubscription(payload) {
|
|
|
1367
1288
|
}
|
|
1368
1289
|
function querySubscriptions(payload) {
|
|
1369
1290
|
function __querySubscriptions({ host }) {
|
|
1291
|
+
const serializedData = transformPaths(payload, [
|
|
1292
|
+
{
|
|
1293
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1294
|
+
paths: [
|
|
1295
|
+
{ path: "query.sort.origin.latitude" },
|
|
1296
|
+
{ path: "query.sort.origin.longitude" }
|
|
1297
|
+
]
|
|
1298
|
+
}
|
|
1299
|
+
]);
|
|
1370
1300
|
const metadata = {
|
|
1371
1301
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1372
1302
|
method: "POST",
|
|
@@ -1377,10 +1307,10 @@ function querySubscriptions(payload) {
|
|
|
1377
1307
|
},
|
|
1378
1308
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1379
1309
|
protoPath: "/v1/subscriptions/query",
|
|
1380
|
-
data:
|
|
1310
|
+
data: serializedData,
|
|
1381
1311
|
host
|
|
1382
1312
|
}),
|
|
1383
|
-
data:
|
|
1313
|
+
data: serializedData,
|
|
1384
1314
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1385
1315
|
{
|
|
1386
1316
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -1417,6 +1347,15 @@ function querySubscriptions(payload) {
|
|
|
1417
1347
|
}
|
|
1418
1348
|
function searchSubscriptions(payload) {
|
|
1419
1349
|
function __searchSubscriptions({ host }) {
|
|
1350
|
+
const serializedData = transformPaths(payload, [
|
|
1351
|
+
{
|
|
1352
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
1353
|
+
paths: [
|
|
1354
|
+
{ path: "sorting.sorting.origin.latitude" },
|
|
1355
|
+
{ path: "sorting.sorting.origin.longitude" }
|
|
1356
|
+
]
|
|
1357
|
+
}
|
|
1358
|
+
]);
|
|
1420
1359
|
const metadata = {
|
|
1421
1360
|
entityFqdn: "wix.billing.v1.subscription",
|
|
1422
1361
|
method: "POST",
|
|
@@ -1427,10 +1366,10 @@ function searchSubscriptions(payload) {
|
|
|
1427
1366
|
},
|
|
1428
1367
|
url: resolveComWixpressBillingSubscriptionsApiV1SubscriptionsServiceUrl({
|
|
1429
1368
|
protoPath: "/v1/subscriptions/search",
|
|
1430
|
-
data:
|
|
1369
|
+
data: serializedData,
|
|
1431
1370
|
host
|
|
1432
1371
|
}),
|
|
1433
|
-
data:
|
|
1372
|
+
data: serializedData,
|
|
1434
1373
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
1435
1374
|
{
|
|
1436
1375
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -3440,6 +3379,54 @@ function listSubscriptionHistory(payload) {
|
|
|
3440
3379
|
{
|
|
3441
3380
|
path: "historyEntries.event.futurePriceUpdatesRequested.subscription.specificDatePendingUpdateData.executionDate"
|
|
3442
3381
|
},
|
|
3382
|
+
{
|
|
3383
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.createdDate"
|
|
3384
|
+
},
|
|
3385
|
+
{
|
|
3386
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.updatedDate"
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.startDate"
|
|
3390
|
+
},
|
|
3391
|
+
{
|
|
3392
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.endDate"
|
|
3393
|
+
},
|
|
3394
|
+
{
|
|
3395
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.nextBillingDate"
|
|
3396
|
+
},
|
|
3397
|
+
{
|
|
3398
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.previousBillingDate"
|
|
3399
|
+
},
|
|
3400
|
+
{
|
|
3401
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
3402
|
+
},
|
|
3403
|
+
{
|
|
3404
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.startDate"
|
|
3405
|
+
},
|
|
3406
|
+
{
|
|
3407
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.freeTrialData.endDate"
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
3411
|
+
},
|
|
3412
|
+
{
|
|
3413
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.startDate"
|
|
3414
|
+
},
|
|
3415
|
+
{
|
|
3416
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.billingStatus.gracePeriodData.endDate"
|
|
3417
|
+
},
|
|
3418
|
+
{
|
|
3419
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.startDate"
|
|
3420
|
+
},
|
|
3421
|
+
{
|
|
3422
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.pauseInfo.resumeDate"
|
|
3423
|
+
},
|
|
3424
|
+
{
|
|
3425
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.cancellationInfo.cancellationDate"
|
|
3426
|
+
},
|
|
3427
|
+
{
|
|
3428
|
+
path: "historyEntries.event.offlinePurchaseCompleted.subscription.specificDatePendingUpdateData.executionDate"
|
|
3429
|
+
},
|
|
3443
3430
|
{
|
|
3444
3431
|
path: "historyEntries.event.subscriptionBoAction.subscription.createdDate"
|
|
3445
3432
|
},
|
|
@@ -3587,6 +3574,7 @@ var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
|
3587
3574
|
return SortOrder2;
|
|
3588
3575
|
})(SortOrder || {});
|
|
3589
3576
|
var SubscriptionStatusGroup = /* @__PURE__ */ ((SubscriptionStatusGroup2) => {
|
|
3577
|
+
SubscriptionStatusGroup2["UNKNOWN_STATUS_GROUP"] = "UNKNOWN_STATUS_GROUP";
|
|
3590
3578
|
SubscriptionStatusGroup2["ALL"] = "ALL";
|
|
3591
3579
|
SubscriptionStatusGroup2["LIVE"] = "LIVE";
|
|
3592
3580
|
return SubscriptionStatusGroup2;
|
|
@@ -3608,6 +3596,7 @@ var ActionType = /* @__PURE__ */ ((ActionType2) => {
|
|
|
3608
3596
|
ActionType2["UPDATE_COLLECTION_METHOD"] = "UPDATE_COLLECTION_METHOD";
|
|
3609
3597
|
ActionType2["SKIP_CYCLE"] = "SKIP_CYCLE";
|
|
3610
3598
|
ActionType2["CUSTOMER_UPDATE_BILLING_DATE"] = "CUSTOMER_UPDATE_BILLING_DATE";
|
|
3599
|
+
ActionType2["CHANGE_SUBSCRIPTION"] = "CHANGE_SUBSCRIPTION";
|
|
3611
3600
|
return ActionType2;
|
|
3612
3601
|
})(ActionType || {});
|
|
3613
3602
|
var ExtendPolicyType = /* @__PURE__ */ ((ExtendPolicyType2) => {
|
|
@@ -3635,25 +3624,6 @@ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
|
3635
3624
|
WebhookIdentityType2["APP"] = "APP";
|
|
3636
3625
|
return WebhookIdentityType2;
|
|
3637
3626
|
})(WebhookIdentityType || {});
|
|
3638
|
-
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3639
|
-
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3640
|
-
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3641
|
-
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3642
|
-
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3643
|
-
return PaymentTestMode2;
|
|
3644
|
-
})(PaymentTestMode || {});
|
|
3645
|
-
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3646
|
-
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3647
|
-
RevivePolicy2["RESUME"] = "RESUME";
|
|
3648
|
-
return RevivePolicy2;
|
|
3649
|
-
})(RevivePolicy || {});
|
|
3650
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3651
|
-
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3652
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3653
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3654
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3655
|
-
return ActionInitiator2;
|
|
3656
|
-
})(ActionInitiator || {});
|
|
3657
3627
|
var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
3658
3628
|
UpdateAction2["NONE"] = "NONE";
|
|
3659
3629
|
UpdateAction2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
@@ -3662,6 +3632,19 @@ var UpdateAction = /* @__PURE__ */ ((UpdateAction2) => {
|
|
|
3662
3632
|
UpdateAction2["SPECIFIC_DATE"] = "SPECIFIC_DATE";
|
|
3663
3633
|
return UpdateAction2;
|
|
3664
3634
|
})(UpdateAction || {});
|
|
3635
|
+
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
3636
|
+
ActionInitiator2["UNDEFINED"] = "UNDEFINED";
|
|
3637
|
+
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
3638
|
+
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
3639
|
+
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
3640
|
+
return ActionInitiator2;
|
|
3641
|
+
})(ActionInitiator || {});
|
|
3642
|
+
var MissingPreviousBillingDateResumeStrategy = /* @__PURE__ */ ((MissingPreviousBillingDateResumeStrategy2) => {
|
|
3643
|
+
MissingPreviousBillingDateResumeStrategy2["UNKNOWN"] = "UNKNOWN";
|
|
3644
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_IMMEDIATELY"] = "START_BILLING_IMMEDIATELY";
|
|
3645
|
+
MissingPreviousBillingDateResumeStrategy2["START_BILLING_AFTER_ONE_FULL_CYCLE"] = "START_BILLING_AFTER_ONE_FULL_CYCLE";
|
|
3646
|
+
return MissingPreviousBillingDateResumeStrategy2;
|
|
3647
|
+
})(MissingPreviousBillingDateResumeStrategy || {});
|
|
3665
3648
|
var RequestedFields = /* @__PURE__ */ ((RequestedFields2) => {
|
|
3666
3649
|
RequestedFields2["UNSUPPORTED_ACTION"] = "UNSUPPORTED_ACTION";
|
|
3667
3650
|
return RequestedFields2;
|
|
@@ -3726,14 +3709,14 @@ var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
|
3726
3709
|
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3727
3710
|
return ChangeEffectiveTime2;
|
|
3728
3711
|
})(ChangeEffectiveTime || {});
|
|
3729
|
-
var
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
return
|
|
3736
|
-
})(
|
|
3712
|
+
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3713
|
+
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3714
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3715
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3716
|
+
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3717
|
+
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3718
|
+
return ProrationBehaviorEnumProrationBehavior2;
|
|
3719
|
+
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3737
3720
|
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3738
3721
|
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3739
3722
|
ProrationAction2["CHARGE"] = "CHARGE";
|
|
@@ -3742,6 +3725,22 @@ var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
|
3742
3725
|
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3743
3726
|
return ProrationAction2;
|
|
3744
3727
|
})(ProrationAction || {});
|
|
3728
|
+
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3729
|
+
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3730
|
+
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
3731
|
+
ChangeType2["DOWNGRADE"] = "DOWNGRADE";
|
|
3732
|
+
ChangeType2["CYCLE_CHANGE"] = "CYCLE_CHANGE";
|
|
3733
|
+
ChangeType2["QUANTITY_CHANGE"] = "QUANTITY_CHANGE";
|
|
3734
|
+
return ChangeType2;
|
|
3735
|
+
})(ChangeType || {});
|
|
3736
|
+
var ProrationBehavior = /* @__PURE__ */ ((ProrationBehavior2) => {
|
|
3737
|
+
ProrationBehavior2["PRORATION_BEHAVIOR_UNKNOWN"] = "PRORATION_BEHAVIOR_UNKNOWN";
|
|
3738
|
+
ProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
3739
|
+
ProrationBehavior2["PRORATE_AND_REFUND"] = "PRORATE_AND_REFUND";
|
|
3740
|
+
ProrationBehavior2["PRORATE_AND_EXTEND"] = "PRORATE_AND_EXTEND";
|
|
3741
|
+
ProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3742
|
+
return ProrationBehavior2;
|
|
3743
|
+
})(ProrationBehavior || {});
|
|
3745
3744
|
var IdentityType = /* @__PURE__ */ ((IdentityType2) => {
|
|
3746
3745
|
IdentityType2["UNDEFINED"] = "UNDEFINED";
|
|
3747
3746
|
IdentityType2["MEMBER"] = "MEMBER";
|
|
@@ -3796,6 +3795,18 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
3796
3795
|
Status2["ENDED"] = "ENDED";
|
|
3797
3796
|
return Status2;
|
|
3798
3797
|
})(Status || {});
|
|
3798
|
+
var PaymentTestMode = /* @__PURE__ */ ((PaymentTestMode2) => {
|
|
3799
|
+
PaymentTestMode2["REGULAR"] = "REGULAR";
|
|
3800
|
+
PaymentTestMode2["FAIL_TECHNICAL"] = "FAIL_TECHNICAL";
|
|
3801
|
+
PaymentTestMode2["FAIL_DECLINE"] = "FAIL_DECLINE";
|
|
3802
|
+
PaymentTestMode2["FAIL_RETRYABLE_DECLINE"] = "FAIL_RETRYABLE_DECLINE";
|
|
3803
|
+
return PaymentTestMode2;
|
|
3804
|
+
})(PaymentTestMode || {});
|
|
3805
|
+
var RevivePolicy = /* @__PURE__ */ ((RevivePolicy2) => {
|
|
3806
|
+
RevivePolicy2["SIMPLE"] = "SIMPLE";
|
|
3807
|
+
RevivePolicy2["RESUME"] = "RESUME";
|
|
3808
|
+
return RevivePolicy2;
|
|
3809
|
+
})(RevivePolicy || {});
|
|
3799
3810
|
var HistoryViewMode = /* @__PURE__ */ ((HistoryViewMode2) => {
|
|
3800
3811
|
HistoryViewMode2["UNKNOWN"] = "UNKNOWN";
|
|
3801
3812
|
HistoryViewMode2["BACKOFFICE"] = "BACKOFFICE";
|
|
@@ -4107,24 +4118,6 @@ function customerUpdateBillingDate2() {
|
|
|
4107
4118
|
__originalResponseType: null
|
|
4108
4119
|
};
|
|
4109
4120
|
}
|
|
4110
|
-
function payCycle2() {
|
|
4111
|
-
const payload = { subscriptionId: ":subscriptionId" };
|
|
4112
|
-
const getRequestOptions = payCycle(payload);
|
|
4113
|
-
const getUrl = (context) => {
|
|
4114
|
-
const { url } = getRequestOptions(context);
|
|
4115
|
-
return url;
|
|
4116
|
-
};
|
|
4117
|
-
return {
|
|
4118
|
-
getUrl,
|
|
4119
|
-
httpMethod: "POST",
|
|
4120
|
-
path: "/v1/subscriptions-bo/{subscriptionId}/pay-cycle",
|
|
4121
|
-
pathParams: { subscriptionId: "subscriptionId" },
|
|
4122
|
-
__requestType: null,
|
|
4123
|
-
__originalRequestType: null,
|
|
4124
|
-
__responseType: null,
|
|
4125
|
-
__originalResponseType: null
|
|
4126
|
-
};
|
|
4127
|
-
}
|
|
4128
4121
|
function getSubscription2() {
|
|
4129
4122
|
const payload = { id: ":id" };
|
|
4130
4123
|
const getRequestOptions = getSubscription(payload);
|
|
@@ -4527,6 +4520,7 @@ export {
|
|
|
4527
4520
|
AdditionalFeeTrigger as AdditionalFeeTriggerOriginal,
|
|
4528
4521
|
CancellationInitiator as CancellationInitiatorOriginal,
|
|
4529
4522
|
ChangeEffectiveTime as ChangeEffectiveTimeOriginal,
|
|
4523
|
+
ChangeType as ChangeTypeOriginal,
|
|
4530
4524
|
CollectionMethodEnumCollectionMethod as CollectionMethodEnumCollectionMethodOriginal,
|
|
4531
4525
|
CollectionMethod as CollectionMethodOriginal,
|
|
4532
4526
|
CreationMode as CreationModeOriginal,
|
|
@@ -4537,6 +4531,7 @@ export {
|
|
|
4537
4531
|
IdentityType as IdentityTypeOriginal,
|
|
4538
4532
|
InvoiceStatus as InvoiceStatusOriginal,
|
|
4539
4533
|
ItemCategory as ItemCategoryOriginal,
|
|
4534
|
+
MissingPreviousBillingDateResumeStrategy as MissingPreviousBillingDateResumeStrategyOriginal,
|
|
4540
4535
|
OrderMethod as OrderMethodOriginal,
|
|
4541
4536
|
PauseAt as PauseAtOriginal,
|
|
4542
4537
|
PausePolicy as PausePolicyOriginal,
|
|
@@ -4548,6 +4543,7 @@ export {
|
|
|
4548
4543
|
PaymentTestMode as PaymentTestModeOriginal,
|
|
4549
4544
|
PriceAdjustmentReason as PriceAdjustmentReasonOriginal,
|
|
4550
4545
|
ProrationAction as ProrationActionOriginal,
|
|
4546
|
+
ProrationBehaviorEnumProrationBehavior as ProrationBehaviorEnumProrationBehaviorOriginal,
|
|
4551
4547
|
ProrationBehavior as ProrationBehaviorOriginal,
|
|
4552
4548
|
RefundReason as RefundReasonOriginal,
|
|
4553
4549
|
RequestedFields as RequestedFieldsOriginal,
|
|
@@ -4591,7 +4587,6 @@ export {
|
|
|
4591
4587
|
markBillingCycleAsPaid2 as markBillingCycleAsPaid,
|
|
4592
4588
|
markLatestInvoiceAsPaid2 as markLatestInvoiceAsPaid,
|
|
4593
4589
|
pauseSubscription2 as pauseSubscription,
|
|
4594
|
-
payCycle2 as payCycle,
|
|
4595
4590
|
previewSubscriptionCharges2 as previewSubscriptionCharges,
|
|
4596
4591
|
previewSubscriptionsCharges2 as previewSubscriptionsCharges,
|
|
4597
4592
|
querySubscriptions2 as querySubscriptions,
|