@wix/auto_sdk_ecom_subscription-contracts 1.0.124 → 1.0.126
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.map +1 -1
- package/build/cjs/index.typings.d.ts +17 -2
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +17 -2
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.js +1446 -1400
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +1 -1
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +17 -2
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +17 -2
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.mjs +1446 -1400
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +1 -1
- package/build/internal/cjs/index.typings.d.ts +17 -2
- package/build/internal/cjs/meta.d.ts +17 -2
- package/build/internal/es/index.d.mts +1 -1
- package/build/internal/es/index.typings.d.mts +17 -2
- package/build/internal/es/meta.d.mts +17 -2
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -950
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -717
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -586
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -3041
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -894
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -663
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -531
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -3001
- package/build/internal/es/schemas.mjs.map +0 -1
|
@@ -1,531 +0,0 @@
|
|
|
1
|
-
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.http.ts
|
|
2
|
-
import { toURLSearchParams } from "@wix/sdk-runtime/rest-modules";
|
|
3
|
-
import { transformRESTFloatToSDKFloat } from "@wix/sdk-runtime/transformations/float";
|
|
4
|
-
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
5
|
-
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
6
|
-
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
7
|
-
function resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl(opts) {
|
|
8
|
-
const domainToMappings = {
|
|
9
|
-
"www.wixapis.com": [
|
|
10
|
-
{
|
|
11
|
-
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
12
|
-
destPath: "/v1/subscription-contracts"
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
16
|
-
destPath: "/v1/bulk/subscription-contracts"
|
|
17
|
-
}
|
|
18
|
-
],
|
|
19
|
-
"*.dev.wix-code.com": [
|
|
20
|
-
{
|
|
21
|
-
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
22
|
-
destPath: "/v1/subscription-contracts"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
26
|
-
destPath: "/v1/bulk/subscription-contracts"
|
|
27
|
-
}
|
|
28
|
-
],
|
|
29
|
-
_: [
|
|
30
|
-
{
|
|
31
|
-
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
32
|
-
destPath: "/v1/subscription-contracts"
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
36
|
-
destPath: "/v1/bulk/subscription-contracts"
|
|
37
|
-
}
|
|
38
|
-
],
|
|
39
|
-
"manage._base_domain_": [
|
|
40
|
-
{
|
|
41
|
-
srcPath: "/ecom/subscription-contracts/v1/subscription-contracts",
|
|
42
|
-
destPath: "/v1/subscription-contracts"
|
|
43
|
-
},
|
|
44
|
-
{
|
|
45
|
-
srcPath: "/ecom/subscription-contracts/v1/bulk/subscription-contracts",
|
|
46
|
-
destPath: "/v1/bulk/subscription-contracts"
|
|
47
|
-
}
|
|
48
|
-
]
|
|
49
|
-
};
|
|
50
|
-
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
51
|
-
}
|
|
52
|
-
var PACKAGE_NAME = "@wix/auto_sdk_ecom_subscription-contracts";
|
|
53
|
-
function getSubscriptionContract(payload) {
|
|
54
|
-
function __getSubscriptionContract({ host }) {
|
|
55
|
-
const metadata = {
|
|
56
|
-
entityFqdn: "wix.ecom.subscription_contracts.v1.subscription_contract",
|
|
57
|
-
method: "GET",
|
|
58
|
-
methodFqn: "wix.ecom.subscription_contracts.v1.SubscriptionContracts.GetSubscriptionContract",
|
|
59
|
-
packageName: PACKAGE_NAME,
|
|
60
|
-
migrationOptions: {
|
|
61
|
-
optInTransformResponse: true
|
|
62
|
-
},
|
|
63
|
-
url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({
|
|
64
|
-
protoPath: "/v1/subscription-contracts/{subscriptionContractId}",
|
|
65
|
-
data: payload,
|
|
66
|
-
host
|
|
67
|
-
}),
|
|
68
|
-
params: toURLSearchParams(payload),
|
|
69
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
70
|
-
{
|
|
71
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
72
|
-
paths: [
|
|
73
|
-
{ path: "subscriptionContract.createdDate" },
|
|
74
|
-
{ path: "subscriptionContract.updatedDate" },
|
|
75
|
-
{ path: "subscriptionContract.subscriptionSettings.startDate" },
|
|
76
|
-
{
|
|
77
|
-
path: "subscriptionContract.lineItems.image.urlExpirationDate"
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
path: "subscriptionContract.lineItems.digitalFile.expirationDate"
|
|
81
|
-
},
|
|
82
|
-
{
|
|
83
|
-
path: "subscriptionContract.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
path: "subscriptionContract.lineItems.serviceProperties.scheduledDate"
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
path: "subscriptionContract.lineItems.serviceProperties.endDate"
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
path: "subscriptionContract.shippingInfo.logistics.deliverByDate"
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
path: "subscriptionContract.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
99
|
-
},
|
|
100
|
-
{ path: "subscriptionContract.activities.createdDate" }
|
|
101
|
-
]
|
|
102
|
-
},
|
|
103
|
-
{
|
|
104
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
105
|
-
paths: [
|
|
106
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.x" },
|
|
107
|
-
{ path: "subscriptionContract.lineItems.image.focalPoint.y" },
|
|
108
|
-
{
|
|
109
|
-
path: "subscriptionContract.lineItems.physicalProperties.weight"
|
|
110
|
-
},
|
|
111
|
-
{
|
|
112
|
-
path: "subscriptionContract.billingInfo.address.geocode.latitude"
|
|
113
|
-
},
|
|
114
|
-
{
|
|
115
|
-
path: "subscriptionContract.billingInfo.address.geocode.longitude"
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
path: "subscriptionContract.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
122
|
-
},
|
|
123
|
-
{
|
|
124
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
path: "subscriptionContract.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
path: "subscriptionContract.recipientInfo.address.geocode.latitude"
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
path: "subscriptionContract.recipientInfo.address.geocode.longitude"
|
|
134
|
-
}
|
|
135
|
-
]
|
|
136
|
-
}
|
|
137
|
-
])
|
|
138
|
-
};
|
|
139
|
-
return metadata;
|
|
140
|
-
}
|
|
141
|
-
return __getSubscriptionContract;
|
|
142
|
-
}
|
|
143
|
-
function querySubscriptionContracts(payload) {
|
|
144
|
-
function __querySubscriptionContracts({ host }) {
|
|
145
|
-
const metadata = {
|
|
146
|
-
entityFqdn: "wix.ecom.subscription_contracts.v1.subscription_contract",
|
|
147
|
-
method: "GET",
|
|
148
|
-
methodFqn: "wix.ecom.subscription_contracts.v1.SubscriptionContracts.QuerySubscriptionContracts",
|
|
149
|
-
packageName: PACKAGE_NAME,
|
|
150
|
-
migrationOptions: {
|
|
151
|
-
optInTransformResponse: true
|
|
152
|
-
},
|
|
153
|
-
url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({
|
|
154
|
-
protoPath: "/v1/subscription-contracts/query",
|
|
155
|
-
data: payload,
|
|
156
|
-
host
|
|
157
|
-
}),
|
|
158
|
-
params: toURLSearchParams(payload, true),
|
|
159
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
160
|
-
{
|
|
161
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
162
|
-
paths: [
|
|
163
|
-
{ path: "subscriptionContracts.createdDate" },
|
|
164
|
-
{ path: "subscriptionContracts.updatedDate" },
|
|
165
|
-
{ path: "subscriptionContracts.subscriptionSettings.startDate" },
|
|
166
|
-
{
|
|
167
|
-
path: "subscriptionContracts.lineItems.image.urlExpirationDate"
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
path: "subscriptionContracts.lineItems.digitalFile.expirationDate"
|
|
171
|
-
},
|
|
172
|
-
{
|
|
173
|
-
path: "subscriptionContracts.lineItems.subscriptionInfo.subscriptionSettings.startDate"
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
path: "subscriptionContracts.lineItems.serviceProperties.scheduledDate"
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
path: "subscriptionContracts.lineItems.serviceProperties.endDate"
|
|
180
|
-
},
|
|
181
|
-
{
|
|
182
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliverByDate"
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.from"
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
path: "subscriptionContracts.shippingInfo.logistics.deliveryTimeSlot.to"
|
|
189
|
-
},
|
|
190
|
-
{ path: "subscriptionContracts.activities.createdDate" }
|
|
191
|
-
]
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
transformFn: transformRESTFloatToSDKFloat,
|
|
195
|
-
paths: [
|
|
196
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.x" },
|
|
197
|
-
{ path: "subscriptionContracts.lineItems.image.focalPoint.y" },
|
|
198
|
-
{
|
|
199
|
-
path: "subscriptionContracts.lineItems.physicalProperties.weight"
|
|
200
|
-
},
|
|
201
|
-
{
|
|
202
|
-
path: "subscriptionContracts.billingInfo.address.geocode.latitude"
|
|
203
|
-
},
|
|
204
|
-
{
|
|
205
|
-
path: "subscriptionContracts.billingInfo.address.geocode.longitude"
|
|
206
|
-
},
|
|
207
|
-
{
|
|
208
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.latitude"
|
|
209
|
-
},
|
|
210
|
-
{
|
|
211
|
-
path: "subscriptionContracts.shippingInfo.logistics.shippingDestination.address.geocode.longitude"
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.latitude"
|
|
215
|
-
},
|
|
216
|
-
{
|
|
217
|
-
path: "subscriptionContracts.shippingInfo.logistics.pickupDetails.address.geocode.longitude"
|
|
218
|
-
},
|
|
219
|
-
{
|
|
220
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.latitude"
|
|
221
|
-
},
|
|
222
|
-
{
|
|
223
|
-
path: "subscriptionContracts.recipientInfo.address.geocode.longitude"
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
}
|
|
227
|
-
]),
|
|
228
|
-
fallback: [
|
|
229
|
-
{
|
|
230
|
-
method: "POST",
|
|
231
|
-
url: resolveWixEcomSubscriptionContractsV1SubscriptionContractsUrl({
|
|
232
|
-
protoPath: "/v1/subscription-contracts/query",
|
|
233
|
-
data: payload,
|
|
234
|
-
host
|
|
235
|
-
}),
|
|
236
|
-
data: payload
|
|
237
|
-
}
|
|
238
|
-
]
|
|
239
|
-
};
|
|
240
|
-
return metadata;
|
|
241
|
-
}
|
|
242
|
-
return __querySubscriptionContracts;
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.types.ts
|
|
246
|
-
var SubscriptionFrequency = /* @__PURE__ */ ((SubscriptionFrequency2) => {
|
|
247
|
-
SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
248
|
-
SubscriptionFrequency2["DAY"] = "DAY";
|
|
249
|
-
SubscriptionFrequency2["WEEK"] = "WEEK";
|
|
250
|
-
SubscriptionFrequency2["MONTH"] = "MONTH";
|
|
251
|
-
SubscriptionFrequency2["YEAR"] = "YEAR";
|
|
252
|
-
return SubscriptionFrequency2;
|
|
253
|
-
})(SubscriptionFrequency || {});
|
|
254
|
-
var SubscriptionSettingsProductPeriodAlignment = /* @__PURE__ */ ((SubscriptionSettingsProductPeriodAlignment2) => {
|
|
255
|
-
SubscriptionSettingsProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
|
|
256
|
-
SubscriptionSettingsProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
|
|
257
|
-
return SubscriptionSettingsProductPeriodAlignment2;
|
|
258
|
-
})(SubscriptionSettingsProductPeriodAlignment || {});
|
|
259
|
-
var DescriptionLineType = /* @__PURE__ */ ((DescriptionLineType2) => {
|
|
260
|
-
DescriptionLineType2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
261
|
-
DescriptionLineType2["PLAIN_TEXT"] = "PLAIN_TEXT";
|
|
262
|
-
DescriptionLineType2["COLOR"] = "COLOR";
|
|
263
|
-
return DescriptionLineType2;
|
|
264
|
-
})(DescriptionLineType || {});
|
|
265
|
-
var DimensionsUnit = /* @__PURE__ */ ((DimensionsUnit2) => {
|
|
266
|
-
DimensionsUnit2["UNKNOWN_DIMENSIONS_UNIT"] = "UNKNOWN_DIMENSIONS_UNIT";
|
|
267
|
-
DimensionsUnit2["MM"] = "MM";
|
|
268
|
-
DimensionsUnit2["CM"] = "CM";
|
|
269
|
-
DimensionsUnit2["M"] = "M";
|
|
270
|
-
DimensionsUnit2["IN"] = "IN";
|
|
271
|
-
DimensionsUnit2["FT"] = "FT";
|
|
272
|
-
DimensionsUnit2["YD"] = "YD";
|
|
273
|
-
return DimensionsUnit2;
|
|
274
|
-
})(DimensionsUnit || {});
|
|
275
|
-
var ItemTypePreset = /* @__PURE__ */ ((ItemTypePreset2) => {
|
|
276
|
-
ItemTypePreset2["UNRECOGNISED"] = "UNRECOGNISED";
|
|
277
|
-
ItemTypePreset2["PHYSICAL"] = "PHYSICAL";
|
|
278
|
-
ItemTypePreset2["DIGITAL"] = "DIGITAL";
|
|
279
|
-
ItemTypePreset2["GIFT_CARD"] = "GIFT_CARD";
|
|
280
|
-
ItemTypePreset2["SERVICE"] = "SERVICE";
|
|
281
|
-
return ItemTypePreset2;
|
|
282
|
-
})(ItemTypePreset || {});
|
|
283
|
-
var PaymentOptionType = /* @__PURE__ */ ((PaymentOptionType2) => {
|
|
284
|
-
PaymentOptionType2["FULL_PAYMENT_ONLINE"] = "FULL_PAYMENT_ONLINE";
|
|
285
|
-
PaymentOptionType2["FULL_PAYMENT_OFFLINE"] = "FULL_PAYMENT_OFFLINE";
|
|
286
|
-
PaymentOptionType2["MEMBERSHIP"] = "MEMBERSHIP";
|
|
287
|
-
PaymentOptionType2["DEPOSIT_ONLINE"] = "DEPOSIT_ONLINE";
|
|
288
|
-
PaymentOptionType2["MEMBERSHIP_OFFLINE"] = "MEMBERSHIP_OFFLINE";
|
|
289
|
-
PaymentOptionType2["MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER"] = "MEMBERSHIP_ONLINE_WITH_OFFLINE_REMAINDER";
|
|
290
|
-
return PaymentOptionType2;
|
|
291
|
-
})(PaymentOptionType || {});
|
|
292
|
-
var JurisdictionType = /* @__PURE__ */ ((JurisdictionType2) => {
|
|
293
|
-
JurisdictionType2["UNDEFINED"] = "UNDEFINED";
|
|
294
|
-
JurisdictionType2["COUNTRY"] = "COUNTRY";
|
|
295
|
-
JurisdictionType2["STATE"] = "STATE";
|
|
296
|
-
JurisdictionType2["COUNTY"] = "COUNTY";
|
|
297
|
-
JurisdictionType2["CITY"] = "CITY";
|
|
298
|
-
JurisdictionType2["SPECIAL"] = "SPECIAL";
|
|
299
|
-
return JurisdictionType2;
|
|
300
|
-
})(JurisdictionType || {});
|
|
301
|
-
var V2SubscriptionFrequency = /* @__PURE__ */ ((V2SubscriptionFrequency2) => {
|
|
302
|
-
V2SubscriptionFrequency2["UNDEFINED"] = "UNDEFINED";
|
|
303
|
-
V2SubscriptionFrequency2["DAY"] = "DAY";
|
|
304
|
-
V2SubscriptionFrequency2["WEEK"] = "WEEK";
|
|
305
|
-
V2SubscriptionFrequency2["MONTH"] = "MONTH";
|
|
306
|
-
V2SubscriptionFrequency2["YEAR"] = "YEAR";
|
|
307
|
-
return V2SubscriptionFrequency2;
|
|
308
|
-
})(V2SubscriptionFrequency || {});
|
|
309
|
-
var ProductPeriodAlignment = /* @__PURE__ */ ((ProductPeriodAlignment2) => {
|
|
310
|
-
ProductPeriodAlignment2["ALIGNED_WITH_BILLING_PERIOD"] = "ALIGNED_WITH_BILLING_PERIOD";
|
|
311
|
-
ProductPeriodAlignment2["NOT_ALIGNED_WITH_BILLING_PERIOD"] = "NOT_ALIGNED_WITH_BILLING_PERIOD";
|
|
312
|
-
return ProductPeriodAlignment2;
|
|
313
|
-
})(ProductPeriodAlignment || {});
|
|
314
|
-
var AdjustmentType = /* @__PURE__ */ ((AdjustmentType2) => {
|
|
315
|
-
AdjustmentType2["EXTRA_CHARGE"] = "EXTRA_CHARGE";
|
|
316
|
-
AdjustmentType2["CREDIT"] = "CREDIT";
|
|
317
|
-
return AdjustmentType2;
|
|
318
|
-
})(AdjustmentType || {});
|
|
319
|
-
var TaxableAddressType = /* @__PURE__ */ ((TaxableAddressType2) => {
|
|
320
|
-
TaxableAddressType2["BUSINESS"] = "BUSINESS";
|
|
321
|
-
TaxableAddressType2["BILLING"] = "BILLING";
|
|
322
|
-
TaxableAddressType2["SHIPPING"] = "SHIPPING";
|
|
323
|
-
return TaxableAddressType2;
|
|
324
|
-
})(TaxableAddressType || {});
|
|
325
|
-
var MeasurementUnit = /* @__PURE__ */ ((MeasurementUnit2) => {
|
|
326
|
-
MeasurementUnit2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
327
|
-
MeasurementUnit2["ML"] = "ML";
|
|
328
|
-
MeasurementUnit2["CL"] = "CL";
|
|
329
|
-
MeasurementUnit2["L"] = "L";
|
|
330
|
-
MeasurementUnit2["CBM"] = "CBM";
|
|
331
|
-
MeasurementUnit2["MG"] = "MG";
|
|
332
|
-
MeasurementUnit2["G"] = "G";
|
|
333
|
-
MeasurementUnit2["KG"] = "KG";
|
|
334
|
-
MeasurementUnit2["MM"] = "MM";
|
|
335
|
-
MeasurementUnit2["CM"] = "CM";
|
|
336
|
-
MeasurementUnit2["M"] = "M";
|
|
337
|
-
MeasurementUnit2["SQM"] = "SQM";
|
|
338
|
-
MeasurementUnit2["OZ"] = "OZ";
|
|
339
|
-
MeasurementUnit2["LB"] = "LB";
|
|
340
|
-
MeasurementUnit2["FLOZ"] = "FLOZ";
|
|
341
|
-
MeasurementUnit2["PT"] = "PT";
|
|
342
|
-
MeasurementUnit2["QT"] = "QT";
|
|
343
|
-
MeasurementUnit2["GAL"] = "GAL";
|
|
344
|
-
MeasurementUnit2["IN"] = "IN";
|
|
345
|
-
MeasurementUnit2["FT"] = "FT";
|
|
346
|
-
MeasurementUnit2["YD"] = "YD";
|
|
347
|
-
MeasurementUnit2["SQFT"] = "SQFT";
|
|
348
|
-
return MeasurementUnit2;
|
|
349
|
-
})(MeasurementUnit || {});
|
|
350
|
-
var WeightUnit = /* @__PURE__ */ ((WeightUnit2) => {
|
|
351
|
-
WeightUnit2["UNSPECIFIED_WEIGHT_UNIT"] = "UNSPECIFIED_WEIGHT_UNIT";
|
|
352
|
-
WeightUnit2["KG"] = "KG";
|
|
353
|
-
WeightUnit2["LB"] = "LB";
|
|
354
|
-
return WeightUnit2;
|
|
355
|
-
})(WeightUnit || {});
|
|
356
|
-
var ChargeType = /* @__PURE__ */ ((ChargeType2) => {
|
|
357
|
-
ChargeType2["PASS_ON"] = "PASS_ON";
|
|
358
|
-
ChargeType2["ABSORBED"] = "ABSORBED";
|
|
359
|
-
return ChargeType2;
|
|
360
|
-
})(ChargeType || {});
|
|
361
|
-
var VatType = /* @__PURE__ */ ((VatType2) => {
|
|
362
|
-
VatType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
363
|
-
VatType2["CPF"] = "CPF";
|
|
364
|
-
VatType2["CNPJ"] = "CNPJ";
|
|
365
|
-
return VatType2;
|
|
366
|
-
})(VatType || {});
|
|
367
|
-
var PickupMethod = /* @__PURE__ */ ((PickupMethod2) => {
|
|
368
|
-
PickupMethod2["STORE_PICKUP"] = "STORE_PICKUP";
|
|
369
|
-
PickupMethod2["PICKUP_POINT"] = "PICKUP_POINT";
|
|
370
|
-
return PickupMethod2;
|
|
371
|
-
})(PickupMethod || {});
|
|
372
|
-
var DiscountType = /* @__PURE__ */ ((DiscountType2) => {
|
|
373
|
-
DiscountType2["GLOBAL"] = "GLOBAL";
|
|
374
|
-
DiscountType2["SPECIFIC_ITEMS"] = "SPECIFIC_ITEMS";
|
|
375
|
-
DiscountType2["SHIPPING"] = "SHIPPING";
|
|
376
|
-
return DiscountType2;
|
|
377
|
-
})(DiscountType || {});
|
|
378
|
-
var DiscountReason = /* @__PURE__ */ ((DiscountReason2) => {
|
|
379
|
-
DiscountReason2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
380
|
-
DiscountReason2["EXCHANGED_ITEMS"] = "EXCHANGED_ITEMS";
|
|
381
|
-
DiscountReason2["BILLING_ADJUSTMENT"] = "BILLING_ADJUSTMENT";
|
|
382
|
-
return DiscountReason2;
|
|
383
|
-
})(DiscountReason || {});
|
|
384
|
-
var ChannelType = /* @__PURE__ */ ((ChannelType2) => {
|
|
385
|
-
ChannelType2["UNSPECIFIED"] = "UNSPECIFIED";
|
|
386
|
-
ChannelType2["WEB"] = "WEB";
|
|
387
|
-
ChannelType2["POS"] = "POS";
|
|
388
|
-
ChannelType2["EBAY"] = "EBAY";
|
|
389
|
-
ChannelType2["AMAZON"] = "AMAZON";
|
|
390
|
-
ChannelType2["OTHER_PLATFORM"] = "OTHER_PLATFORM";
|
|
391
|
-
ChannelType2["WIX_APP_STORE"] = "WIX_APP_STORE";
|
|
392
|
-
ChannelType2["WIX_INVOICES"] = "WIX_INVOICES";
|
|
393
|
-
ChannelType2["BACKOFFICE_MERCHANT"] = "BACKOFFICE_MERCHANT";
|
|
394
|
-
ChannelType2["WISH"] = "WISH";
|
|
395
|
-
ChannelType2["CLASS_PASS"] = "CLASS_PASS";
|
|
396
|
-
ChannelType2["GLOBAL_E"] = "GLOBAL_E";
|
|
397
|
-
ChannelType2["FACEBOOK"] = "FACEBOOK";
|
|
398
|
-
ChannelType2["ETSY"] = "ETSY";
|
|
399
|
-
ChannelType2["TIKTOK"] = "TIKTOK";
|
|
400
|
-
ChannelType2["FAIRE_COM"] = "FAIRE_COM";
|
|
401
|
-
ChannelType2["PAYPAL_AGENTIC_CHECKOUT"] = "PAYPAL_AGENTIC_CHECKOUT";
|
|
402
|
-
ChannelType2["STRIPE_AGENTIC_CHECKOUT"] = "STRIPE_AGENTIC_CHECKOUT";
|
|
403
|
-
ChannelType2["WIX_INVOICES_PLATFORM"] = "WIX_INVOICES_PLATFORM";
|
|
404
|
-
ChannelType2["UCP_AGENTIC_CHECKOUT"] = "UCP_AGENTIC_CHECKOUT";
|
|
405
|
-
return ChannelType2;
|
|
406
|
-
})(ChannelType || {});
|
|
407
|
-
var AdditionalFeeSource = /* @__PURE__ */ ((AdditionalFeeSource2) => {
|
|
408
|
-
AdditionalFeeSource2["SERVICE_PLUGIN"] = "SERVICE_PLUGIN";
|
|
409
|
-
AdditionalFeeSource2["ITEM"] = "ITEM";
|
|
410
|
-
AdditionalFeeSource2["MANUAL"] = "MANUAL";
|
|
411
|
-
AdditionalFeeSource2["SHIPPING"] = "SHIPPING";
|
|
412
|
-
AdditionalFeeSource2["PLATFORM"] = "PLATFORM";
|
|
413
|
-
return AdditionalFeeSource2;
|
|
414
|
-
})(AdditionalFeeSource || {});
|
|
415
|
-
var SpecificItemsCouponBehavior = /* @__PURE__ */ ((SpecificItemsCouponBehavior2) => {
|
|
416
|
-
SpecificItemsCouponBehavior2["UNDEFINED_COUPON_BEHAVIOR"] = "UNDEFINED_COUPON_BEHAVIOR";
|
|
417
|
-
SpecificItemsCouponBehavior2["ITEM_SUBTOTAL_INCLUDES_DISCOUNT"] = "ITEM_SUBTOTAL_INCLUDES_DISCOUNT";
|
|
418
|
-
SpecificItemsCouponBehavior2["LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT"] = "LEGACY_ITEM_SUBTOTAL_DOES_NOT_INCLUDE_DISCOUNT";
|
|
419
|
-
return SpecificItemsCouponBehavior2;
|
|
420
|
-
})(SpecificItemsCouponBehavior || {});
|
|
421
|
-
var LineItemQuantityChangeType = /* @__PURE__ */ ((LineItemQuantityChangeType2) => {
|
|
422
|
-
LineItemQuantityChangeType2["QUANTITY_INCREASED"] = "QUANTITY_INCREASED";
|
|
423
|
-
LineItemQuantityChangeType2["QUANTITY_DECREASED"] = "QUANTITY_DECREASED";
|
|
424
|
-
return LineItemQuantityChangeType2;
|
|
425
|
-
})(LineItemQuantityChangeType || {});
|
|
426
|
-
var ActivityType = /* @__PURE__ */ ((ActivityType2) => {
|
|
427
|
-
ActivityType2["UNKNOWN_ACTIVITY_TYPE"] = "UNKNOWN_ACTIVITY_TYPE";
|
|
428
|
-
ActivityType2["CHANGES_APPLIED"] = "CHANGES_APPLIED";
|
|
429
|
-
return ActivityType2;
|
|
430
|
-
})(ActivityType || {});
|
|
431
|
-
var ActionInitiator = /* @__PURE__ */ ((ActionInitiator2) => {
|
|
432
|
-
ActionInitiator2["UNKNOWN_ACTION_INITIATOR"] = "UNKNOWN_ACTION_INITIATOR";
|
|
433
|
-
ActionInitiator2["BUSINESS"] = "BUSINESS";
|
|
434
|
-
ActionInitiator2["CUSTOMER"] = "CUSTOMER";
|
|
435
|
-
ActionInitiator2["SYSTEM"] = "SYSTEM";
|
|
436
|
-
ActionInitiator2["PAYMENT_FAILURE"] = "PAYMENT_FAILURE";
|
|
437
|
-
return ActionInitiator2;
|
|
438
|
-
})(ActionInitiator || {});
|
|
439
|
-
var ChangeType = /* @__PURE__ */ ((ChangeType2) => {
|
|
440
|
-
ChangeType2["ADDED"] = "ADDED";
|
|
441
|
-
ChangeType2["CHANGED"] = "CHANGED";
|
|
442
|
-
ChangeType2["REMOVED"] = "REMOVED";
|
|
443
|
-
return ChangeType2;
|
|
444
|
-
})(ChangeType || {});
|
|
445
|
-
var SortOrder = /* @__PURE__ */ ((SortOrder2) => {
|
|
446
|
-
SortOrder2["ASC"] = "ASC";
|
|
447
|
-
SortOrder2["DESC"] = "DESC";
|
|
448
|
-
return SortOrder2;
|
|
449
|
-
})(SortOrder || {});
|
|
450
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
451
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
452
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
453
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
454
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
455
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
456
|
-
return WebhookIdentityType2;
|
|
457
|
-
})(WebhookIdentityType || {});
|
|
458
|
-
|
|
459
|
-
// src/ecom-subscription-contracts-v1-subscription-contract-subscription-contracts.meta.ts
|
|
460
|
-
function getSubscriptionContract2() {
|
|
461
|
-
const payload = { subscriptionContractId: ":subscriptionContractId" };
|
|
462
|
-
const getRequestOptions = getSubscriptionContract(
|
|
463
|
-
payload
|
|
464
|
-
);
|
|
465
|
-
const getUrl = (context) => {
|
|
466
|
-
const { url } = getRequestOptions(context);
|
|
467
|
-
return url;
|
|
468
|
-
};
|
|
469
|
-
return {
|
|
470
|
-
getUrl,
|
|
471
|
-
httpMethod: "GET",
|
|
472
|
-
path: "/v1/subscription-contracts/{subscriptionContractId}",
|
|
473
|
-
pathParams: { subscriptionContractId: "subscriptionContractId" },
|
|
474
|
-
__requestType: null,
|
|
475
|
-
__originalRequestType: null,
|
|
476
|
-
__responseType: null,
|
|
477
|
-
__originalResponseType: null
|
|
478
|
-
};
|
|
479
|
-
}
|
|
480
|
-
function querySubscriptionContracts2() {
|
|
481
|
-
const payload = {};
|
|
482
|
-
const getRequestOptions = querySubscriptionContracts(
|
|
483
|
-
payload
|
|
484
|
-
);
|
|
485
|
-
const getUrl = (context) => {
|
|
486
|
-
const { url } = getRequestOptions(context);
|
|
487
|
-
return url;
|
|
488
|
-
};
|
|
489
|
-
return {
|
|
490
|
-
getUrl,
|
|
491
|
-
httpMethod: "GET",
|
|
492
|
-
path: "/v1/subscription-contracts/query",
|
|
493
|
-
pathParams: {},
|
|
494
|
-
__requestType: null,
|
|
495
|
-
__originalRequestType: null,
|
|
496
|
-
__responseType: null,
|
|
497
|
-
__originalResponseType: null
|
|
498
|
-
};
|
|
499
|
-
}
|
|
500
|
-
export {
|
|
501
|
-
ActionInitiator as ActionInitiatorOriginal,
|
|
502
|
-
ActivityType as ActivityTypeOriginal,
|
|
503
|
-
AdditionalFeeSource as AdditionalFeeSourceOriginal,
|
|
504
|
-
AdjustmentType as AdjustmentTypeOriginal,
|
|
505
|
-
ChangeType as ChangeTypeOriginal,
|
|
506
|
-
ChannelType as ChannelTypeOriginal,
|
|
507
|
-
ChargeType as ChargeTypeOriginal,
|
|
508
|
-
DescriptionLineType as DescriptionLineTypeOriginal,
|
|
509
|
-
DimensionsUnit as DimensionsUnitOriginal,
|
|
510
|
-
DiscountReason as DiscountReasonOriginal,
|
|
511
|
-
DiscountType as DiscountTypeOriginal,
|
|
512
|
-
ItemTypePreset as ItemTypePresetOriginal,
|
|
513
|
-
JurisdictionType as JurisdictionTypeOriginal,
|
|
514
|
-
LineItemQuantityChangeType as LineItemQuantityChangeTypeOriginal,
|
|
515
|
-
MeasurementUnit as MeasurementUnitOriginal,
|
|
516
|
-
PaymentOptionType as PaymentOptionTypeOriginal,
|
|
517
|
-
PickupMethod as PickupMethodOriginal,
|
|
518
|
-
ProductPeriodAlignment as ProductPeriodAlignmentOriginal,
|
|
519
|
-
SortOrder as SortOrderOriginal,
|
|
520
|
-
SpecificItemsCouponBehavior as SpecificItemsCouponBehaviorOriginal,
|
|
521
|
-
SubscriptionFrequency as SubscriptionFrequencyOriginal,
|
|
522
|
-
SubscriptionSettingsProductPeriodAlignment as SubscriptionSettingsProductPeriodAlignmentOriginal,
|
|
523
|
-
TaxableAddressType as TaxableAddressTypeOriginal,
|
|
524
|
-
V2SubscriptionFrequency as V2SubscriptionFrequencyOriginal,
|
|
525
|
-
VatType as VatTypeOriginal,
|
|
526
|
-
WebhookIdentityType as WebhookIdentityTypeOriginal,
|
|
527
|
-
WeightUnit as WeightUnitOriginal,
|
|
528
|
-
getSubscriptionContract2 as getSubscriptionContract,
|
|
529
|
-
querySubscriptionContracts2 as querySubscriptionContracts
|
|
530
|
-
};
|
|
531
|
-
//# sourceMappingURL=meta.mjs.map
|