@wix/auto_sdk_subscription_subscriptions 1.0.48 → 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 +1 -1
- package/build/cjs/index.js +299 -14
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +199 -148
- package/build/cjs/index.typings.js +273 -14
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +197 -149
- package/build/cjs/meta.js +216 -14
- package/build/cjs/meta.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs +296 -14
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +199 -148
- package/build/es/index.typings.mjs +270 -14
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +197 -149
- package/build/es/meta.mjs +213 -14
- package/build/es/meta.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +29 -3
- package/build/internal/cjs/index.typings.d.ts +219 -148
- package/build/internal/cjs/meta.d.ts +197 -149
- package/build/internal/es/index.d.mts +29 -3
- package/build/internal/es/index.typings.d.mts +219 -148
- package/build/internal/es/meta.d.mts +197 -149
- package/package.json +2 -2
package/build/cjs/meta.js
CHANGED
|
@@ -68,14 +68,17 @@ __export(meta_exports, {
|
|
|
68
68
|
cancelSubscription: () => cancelSubscription2,
|
|
69
69
|
countSubscriptions: () => countSubscriptions2,
|
|
70
70
|
customerAllowedActions: () => customerAllowedActions2,
|
|
71
|
+
customerCancelPendingChange: () => customerCancelPendingChange2,
|
|
71
72
|
customerCancelScheduledPause: () => customerCancelScheduledPause2,
|
|
72
73
|
customerCancelScheduledSkip: () => customerCancelScheduledSkip2,
|
|
73
74
|
customerCancelSubscription: () => customerCancelSubscription2,
|
|
75
|
+
customerChangeSubscription: () => customerChangeSubscription2,
|
|
74
76
|
customerExtendSubscription: () => customerExtendSubscription2,
|
|
75
77
|
customerGetSubscription: () => customerGetSubscription2,
|
|
76
78
|
customerInitiatePaymentMethodSetup: () => customerInitiatePaymentMethodSetup2,
|
|
77
79
|
customerListUpcomingCharges: () => customerListUpcomingCharges2,
|
|
78
80
|
customerPauseSubscription: () => customerPauseSubscription2,
|
|
81
|
+
customerPreviewChangeSubscription: () => customerPreviewChangeSubscription2,
|
|
79
82
|
customerQuerySubscriptions: () => customerQuerySubscriptions2,
|
|
80
83
|
customerResumeSubscription: () => customerResumeSubscription2,
|
|
81
84
|
customerSkipCycle: () => customerSkipCycle2,
|
|
@@ -1022,6 +1025,146 @@ function customerUpdateBillingDate(payload) {
|
|
|
1022
1025
|
}
|
|
1023
1026
|
return __customerUpdateBillingDate;
|
|
1024
1027
|
}
|
|
1028
|
+
function customerChangeSubscription(payload) {
|
|
1029
|
+
function __customerChangeSubscription({ host }) {
|
|
1030
|
+
const metadata = {
|
|
1031
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1032
|
+
method: "POST",
|
|
1033
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerChangeSubscription",
|
|
1034
|
+
packageName: PACKAGE_NAME,
|
|
1035
|
+
migrationOptions: {
|
|
1036
|
+
optInTransformResponse: true
|
|
1037
|
+
},
|
|
1038
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1039
|
+
{
|
|
1040
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/change",
|
|
1041
|
+
data: payload,
|
|
1042
|
+
host
|
|
1043
|
+
}
|
|
1044
|
+
),
|
|
1045
|
+
data: payload,
|
|
1046
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1047
|
+
{
|
|
1048
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1049
|
+
paths: [
|
|
1050
|
+
{ path: "subscription.createdDate" },
|
|
1051
|
+
{ path: "subscription.updatedDate" },
|
|
1052
|
+
{ path: "subscription.startDate" },
|
|
1053
|
+
{ path: "subscription.endDate" },
|
|
1054
|
+
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
1055
|
+
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
1056
|
+
{
|
|
1057
|
+
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
1058
|
+
},
|
|
1059
|
+
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
1060
|
+
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
1061
|
+
{
|
|
1062
|
+
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
1063
|
+
},
|
|
1064
|
+
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
1065
|
+
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
1066
|
+
{ path: "subscription.pauseInfo.startDate" },
|
|
1067
|
+
{ path: "subscription.pauseInfo.resumeDate" },
|
|
1068
|
+
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
1069
|
+
{
|
|
1070
|
+
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
1071
|
+
}
|
|
1072
|
+
]
|
|
1073
|
+
}
|
|
1074
|
+
])
|
|
1075
|
+
};
|
|
1076
|
+
return metadata;
|
|
1077
|
+
}
|
|
1078
|
+
return __customerChangeSubscription;
|
|
1079
|
+
}
|
|
1080
|
+
function customerPreviewChangeSubscription(payload) {
|
|
1081
|
+
function __customerPreviewChangeSubscription({ host }) {
|
|
1082
|
+
const metadata = {
|
|
1083
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1084
|
+
method: "POST",
|
|
1085
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerPreviewChangeSubscription",
|
|
1086
|
+
packageName: PACKAGE_NAME,
|
|
1087
|
+
migrationOptions: {
|
|
1088
|
+
optInTransformResponse: true
|
|
1089
|
+
},
|
|
1090
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1091
|
+
{
|
|
1092
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
|
|
1093
|
+
data: payload,
|
|
1094
|
+
host
|
|
1095
|
+
}
|
|
1096
|
+
),
|
|
1097
|
+
data: payload,
|
|
1098
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1099
|
+
{
|
|
1100
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1101
|
+
paths: [
|
|
1102
|
+
{ path: "preview.current.periodStart" },
|
|
1103
|
+
{ path: "preview.current.periodEnd" },
|
|
1104
|
+
{ path: "preview.proposed.periodStart" },
|
|
1105
|
+
{ path: "preview.proposed.periodEnd" },
|
|
1106
|
+
{ path: "preview.proration.newPeriodEnd" },
|
|
1107
|
+
{ path: "preview.renewalPreview.nextRenewalDate" }
|
|
1108
|
+
]
|
|
1109
|
+
}
|
|
1110
|
+
])
|
|
1111
|
+
};
|
|
1112
|
+
return metadata;
|
|
1113
|
+
}
|
|
1114
|
+
return __customerPreviewChangeSubscription;
|
|
1115
|
+
}
|
|
1116
|
+
function customerCancelPendingChange(payload) {
|
|
1117
|
+
function __customerCancelPendingChange({ host }) {
|
|
1118
|
+
const metadata = {
|
|
1119
|
+
entityFqdn: "wix.billing.v1.subscription",
|
|
1120
|
+
method: "POST",
|
|
1121
|
+
methodFqn: "com.wixpress.billing.subscriptions.api.v1.CustomerSubscriptionsService.CustomerCancelPendingChange",
|
|
1122
|
+
packageName: PACKAGE_NAME,
|
|
1123
|
+
migrationOptions: {
|
|
1124
|
+
optInTransformResponse: true
|
|
1125
|
+
},
|
|
1126
|
+
url: resolveComWixpressBillingSubscriptionsApiV1CustomerSubscriptionsServiceUrl(
|
|
1127
|
+
{
|
|
1128
|
+
protoPath: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
|
|
1129
|
+
data: payload,
|
|
1130
|
+
host
|
|
1131
|
+
}
|
|
1132
|
+
),
|
|
1133
|
+
data: payload,
|
|
1134
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
1135
|
+
{
|
|
1136
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
1137
|
+
paths: [
|
|
1138
|
+
{ path: "subscription.createdDate" },
|
|
1139
|
+
{ path: "subscription.updatedDate" },
|
|
1140
|
+
{ path: "subscription.startDate" },
|
|
1141
|
+
{ path: "subscription.endDate" },
|
|
1142
|
+
{ path: "subscription.billingStatus.nextBillingDate" },
|
|
1143
|
+
{ path: "subscription.billingStatus.previousBillingDate" },
|
|
1144
|
+
{
|
|
1145
|
+
path: "subscription.billingStatus.latestPaymentData.initialFailedPaymentDate"
|
|
1146
|
+
},
|
|
1147
|
+
{ path: "subscription.billingStatus.freeTrialData.startDate" },
|
|
1148
|
+
{ path: "subscription.billingStatus.freeTrialData.endDate" },
|
|
1149
|
+
{
|
|
1150
|
+
path: "subscription.billingStatus.updateBillingDateData.paidUntil"
|
|
1151
|
+
},
|
|
1152
|
+
{ path: "subscription.billingStatus.gracePeriodData.startDate" },
|
|
1153
|
+
{ path: "subscription.billingStatus.gracePeriodData.endDate" },
|
|
1154
|
+
{ path: "subscription.pauseInfo.startDate" },
|
|
1155
|
+
{ path: "subscription.pauseInfo.resumeDate" },
|
|
1156
|
+
{ path: "subscription.cancellationInfo.cancellationDate" },
|
|
1157
|
+
{
|
|
1158
|
+
path: "subscription.specificDatePendingUpdateData.executionDate"
|
|
1159
|
+
}
|
|
1160
|
+
]
|
|
1161
|
+
}
|
|
1162
|
+
])
|
|
1163
|
+
};
|
|
1164
|
+
return metadata;
|
|
1165
|
+
}
|
|
1166
|
+
return __customerCancelPendingChange;
|
|
1167
|
+
}
|
|
1025
1168
|
function getSubscription(payload) {
|
|
1026
1169
|
function __getSubscription({ host }) {
|
|
1027
1170
|
const metadata = {
|
|
@@ -3723,6 +3866,20 @@ var OrderMethod = /* @__PURE__ */ ((OrderMethod2) => {
|
|
|
3723
3866
|
OrderMethod2["NOT_MOTO"] = "NOT_MOTO";
|
|
3724
3867
|
return OrderMethod2;
|
|
3725
3868
|
})(OrderMethod || {});
|
|
3869
|
+
var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
3870
|
+
ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
|
|
3871
|
+
ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
3872
|
+
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3873
|
+
return ChangeEffectiveTime2;
|
|
3874
|
+
})(ChangeEffectiveTime || {});
|
|
3875
|
+
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3876
|
+
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3877
|
+
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3878
|
+
ProrationAction2["REFUND"] = "REFUND";
|
|
3879
|
+
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3880
|
+
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3881
|
+
return ProrationAction2;
|
|
3882
|
+
})(ProrationAction || {});
|
|
3726
3883
|
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
3727
3884
|
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
3728
3885
|
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
@@ -3810,12 +3967,6 @@ var RefundReason = /* @__PURE__ */ ((RefundReason2) => {
|
|
|
3810
3967
|
RefundReason2["OTHER"] = "OTHER";
|
|
3811
3968
|
return RefundReason2;
|
|
3812
3969
|
})(RefundReason || {});
|
|
3813
|
-
var ChangeEffectiveTime = /* @__PURE__ */ ((ChangeEffectiveTime2) => {
|
|
3814
|
-
ChangeEffectiveTime2["UNKNOWN"] = "UNKNOWN";
|
|
3815
|
-
ChangeEffectiveTime2["IMMEDIATELY"] = "IMMEDIATELY";
|
|
3816
|
-
ChangeEffectiveTime2["AT_NEXT_RENEWAL"] = "AT_NEXT_RENEWAL";
|
|
3817
|
-
return ChangeEffectiveTime2;
|
|
3818
|
-
})(ChangeEffectiveTime || {});
|
|
3819
3970
|
var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehaviorEnumProrationBehavior2) => {
|
|
3820
3971
|
ProrationBehaviorEnumProrationBehavior2["UNKNOWN"] = "UNKNOWN";
|
|
3821
3972
|
ProrationBehaviorEnumProrationBehavior2["PRORATE_AND_CHARGE"] = "PRORATE_AND_CHARGE";
|
|
@@ -3824,14 +3975,6 @@ var ProrationBehaviorEnumProrationBehavior = /* @__PURE__ */ ((ProrationBehavior
|
|
|
3824
3975
|
ProrationBehaviorEnumProrationBehavior2["NO_PRORATION"] = "NO_PRORATION";
|
|
3825
3976
|
return ProrationBehaviorEnumProrationBehavior2;
|
|
3826
3977
|
})(ProrationBehaviorEnumProrationBehavior || {});
|
|
3827
|
-
var ProrationAction = /* @__PURE__ */ ((ProrationAction2) => {
|
|
3828
|
-
ProrationAction2["UNKNOWN"] = "UNKNOWN";
|
|
3829
|
-
ProrationAction2["CHARGE"] = "CHARGE";
|
|
3830
|
-
ProrationAction2["REFUND"] = "REFUND";
|
|
3831
|
-
ProrationAction2["EXTEND_PERIOD"] = "EXTEND_PERIOD";
|
|
3832
|
-
ProrationAction2["NO_CHANGE"] = "NO_CHANGE";
|
|
3833
|
-
return ProrationAction2;
|
|
3834
|
-
})(ProrationAction || {});
|
|
3835
3978
|
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
3836
3979
|
ChangeType2["CHANGE_TYPE_UNKNOWN"] = "CHANGE_TYPE_UNKNOWN";
|
|
3837
3980
|
ChangeType2["UPGRADE"] = "UPGRADE";
|
|
@@ -4225,6 +4368,62 @@ function customerUpdateBillingDate2() {
|
|
|
4225
4368
|
__originalResponseType: null
|
|
4226
4369
|
};
|
|
4227
4370
|
}
|
|
4371
|
+
function customerChangeSubscription2() {
|
|
4372
|
+
const payload = { subscriptionId: ":subscriptionId" };
|
|
4373
|
+
const getRequestOptions = customerChangeSubscription(payload);
|
|
4374
|
+
const getUrl = (context) => {
|
|
4375
|
+
const { url } = getRequestOptions(context);
|
|
4376
|
+
return url;
|
|
4377
|
+
};
|
|
4378
|
+
return {
|
|
4379
|
+
getUrl,
|
|
4380
|
+
httpMethod: "POST",
|
|
4381
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/change",
|
|
4382
|
+
pathParams: { subscriptionId: "subscriptionId" },
|
|
4383
|
+
__requestType: null,
|
|
4384
|
+
__originalRequestType: null,
|
|
4385
|
+
__responseType: null,
|
|
4386
|
+
__originalResponseType: null
|
|
4387
|
+
};
|
|
4388
|
+
}
|
|
4389
|
+
function customerPreviewChangeSubscription2() {
|
|
4390
|
+
const payload = { subscriptionId: ":subscriptionId" };
|
|
4391
|
+
const getRequestOptions = customerPreviewChangeSubscription(
|
|
4392
|
+
payload
|
|
4393
|
+
);
|
|
4394
|
+
const getUrl = (context) => {
|
|
4395
|
+
const { url } = getRequestOptions(context);
|
|
4396
|
+
return url;
|
|
4397
|
+
};
|
|
4398
|
+
return {
|
|
4399
|
+
getUrl,
|
|
4400
|
+
httpMethod: "POST",
|
|
4401
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/preview_change",
|
|
4402
|
+
pathParams: { subscriptionId: "subscriptionId" },
|
|
4403
|
+
__requestType: null,
|
|
4404
|
+
__originalRequestType: null,
|
|
4405
|
+
__responseType: null,
|
|
4406
|
+
__originalResponseType: null
|
|
4407
|
+
};
|
|
4408
|
+
}
|
|
4409
|
+
function customerCancelPendingChange2() {
|
|
4410
|
+
const payload = { subscriptionId: ":subscriptionId" };
|
|
4411
|
+
const getRequestOptions = customerCancelPendingChange(payload);
|
|
4412
|
+
const getUrl = (context) => {
|
|
4413
|
+
const { url } = getRequestOptions(context);
|
|
4414
|
+
return url;
|
|
4415
|
+
};
|
|
4416
|
+
return {
|
|
4417
|
+
getUrl,
|
|
4418
|
+
httpMethod: "POST",
|
|
4419
|
+
path: "/v1/customer_subscriptions/{subscriptionId}/cancel_pending_change",
|
|
4420
|
+
pathParams: { subscriptionId: "subscriptionId" },
|
|
4421
|
+
__requestType: null,
|
|
4422
|
+
__originalRequestType: null,
|
|
4423
|
+
__responseType: null,
|
|
4424
|
+
__originalResponseType: null
|
|
4425
|
+
};
|
|
4426
|
+
}
|
|
4228
4427
|
function getSubscription2() {
|
|
4229
4428
|
const payload = { id: ":id" };
|
|
4230
4429
|
const getRequestOptions = getSubscription(payload);
|
|
@@ -4671,14 +4870,17 @@ function listSubscriptionHistory2() {
|
|
|
4671
4870
|
cancelSubscription,
|
|
4672
4871
|
countSubscriptions,
|
|
4673
4872
|
customerAllowedActions,
|
|
4873
|
+
customerCancelPendingChange,
|
|
4674
4874
|
customerCancelScheduledPause,
|
|
4675
4875
|
customerCancelScheduledSkip,
|
|
4676
4876
|
customerCancelSubscription,
|
|
4877
|
+
customerChangeSubscription,
|
|
4677
4878
|
customerExtendSubscription,
|
|
4678
4879
|
customerGetSubscription,
|
|
4679
4880
|
customerInitiatePaymentMethodSetup,
|
|
4680
4881
|
customerListUpcomingCharges,
|
|
4681
4882
|
customerPauseSubscription,
|
|
4883
|
+
customerPreviewChangeSubscription,
|
|
4682
4884
|
customerQuerySubscriptions,
|
|
4683
4885
|
customerResumeSubscription,
|
|
4684
4886
|
customerSkipCycle,
|