@wix/auto_sdk_pricing-plans_orders 1.0.120 → 1.0.121
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 +129 -129
- package/build/cjs/index.js +548 -548
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +421 -421
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +352 -352
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +885 -885
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +548 -548
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +421 -421
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +352 -352
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +885 -885
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.js +548 -548
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +845 -786
- package/build/internal/cjs/index.typings.js +421 -421
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +578 -477
- package/build/internal/cjs/meta.js +352 -352
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/cjs/schemas.js +885 -885
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.mjs +548 -548
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +845 -786
- package/build/internal/es/index.typings.mjs +421 -421
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +578 -477
- package/build/internal/es/meta.mjs +352 -352
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +199 -199
- package/build/internal/es/schemas.mjs +885 -885
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +4 -4
package/build/cjs/meta.js
CHANGED
|
@@ -118,233 +118,239 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
118
118
|
};
|
|
119
119
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
120
120
|
}
|
|
121
|
-
function
|
|
121
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
122
122
|
const domainToMappings = {
|
|
123
123
|
"api._api_base_domain_": [
|
|
124
124
|
{
|
|
125
|
-
srcPath: "/
|
|
125
|
+
srcPath: "/order-management-service-proxy",
|
|
126
126
|
destPath: ""
|
|
127
127
|
}
|
|
128
128
|
],
|
|
129
129
|
"*.dev.wix-code.com": [
|
|
130
130
|
{
|
|
131
|
-
srcPath: "/_api/paid-plans/v2/
|
|
132
|
-
destPath: "/v2/
|
|
131
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
132
|
+
destPath: "/v2/orders"
|
|
133
133
|
}
|
|
134
134
|
],
|
|
135
135
|
"*.pub.wix-code.com": [
|
|
136
136
|
{
|
|
137
|
-
srcPath: "/_api/paid-plans/v2/
|
|
138
|
-
destPath: "/v2/
|
|
137
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
138
|
+
destPath: "/v2/orders"
|
|
139
139
|
}
|
|
140
140
|
],
|
|
141
141
|
"*.wixapps.net": [
|
|
142
142
|
{
|
|
143
|
-
srcPath: "/_api/paid-plans/v2/
|
|
144
|
-
destPath: "/v2/
|
|
143
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
144
|
+
destPath: "/v2/orders"
|
|
145
145
|
}
|
|
146
146
|
],
|
|
147
147
|
_: [
|
|
148
148
|
{
|
|
149
|
-
srcPath: "/
|
|
150
|
-
destPath: "/v2/
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
154
|
-
destPath: "/v2/checkout"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
158
|
-
destPath: "/v2/checkout"
|
|
149
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
150
|
+
destPath: "/v2/orders"
|
|
159
151
|
}
|
|
160
152
|
],
|
|
161
153
|
"editor-flow.wixapps.net": [
|
|
162
154
|
{
|
|
163
|
-
srcPath: "/_api/paid-plans/v2/
|
|
164
|
-
destPath: "/v2/
|
|
155
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
156
|
+
destPath: "/v2/orders"
|
|
165
157
|
}
|
|
166
158
|
],
|
|
167
159
|
"editor._base_domain_": [
|
|
168
160
|
{
|
|
169
|
-
srcPath: "/_api/paid-plans/v2/
|
|
170
|
-
destPath: "/v2/
|
|
161
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
162
|
+
destPath: "/v2/orders"
|
|
171
163
|
}
|
|
172
164
|
],
|
|
173
165
|
"blocks._base_domain_": [
|
|
174
166
|
{
|
|
175
|
-
srcPath: "/_api/paid-plans/v2/
|
|
176
|
-
destPath: "/v2/
|
|
167
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
168
|
+
destPath: "/v2/orders"
|
|
177
169
|
}
|
|
178
170
|
],
|
|
179
171
|
"create.editorx": [
|
|
180
172
|
{
|
|
181
|
-
srcPath: "/_api/paid-plans/v2/
|
|
182
|
-
destPath: "/v2/
|
|
173
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
174
|
+
destPath: "/v2/orders"
|
|
183
175
|
}
|
|
184
176
|
],
|
|
185
177
|
"editor.wixapps.net": [
|
|
186
178
|
{
|
|
187
|
-
srcPath: "/_api/paid-plans/v2/
|
|
188
|
-
destPath: "/v2/
|
|
179
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
180
|
+
destPath: "/v2/orders"
|
|
189
181
|
}
|
|
190
182
|
],
|
|
191
183
|
"forums._base_domain_": [
|
|
192
184
|
{
|
|
193
|
-
srcPath: "/_api/paid-plans/v2/
|
|
194
|
-
destPath: "/v2/
|
|
185
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
186
|
+
destPath: "/v2/orders"
|
|
195
187
|
}
|
|
196
188
|
],
|
|
197
189
|
"forums.wixapps.net": [
|
|
198
190
|
{
|
|
199
|
-
srcPath: "/_api/paid-plans/v2/
|
|
200
|
-
destPath: "/v2/
|
|
191
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
192
|
+
destPath: "/v2/orders"
|
|
201
193
|
}
|
|
202
194
|
],
|
|
203
195
|
"manage._base_domain_": [
|
|
204
196
|
{
|
|
205
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
206
|
-
destPath: "/v2/
|
|
207
|
-
},
|
|
208
|
-
{
|
|
209
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
210
|
-
destPath: "/v2/checkout"
|
|
197
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
198
|
+
destPath: "/v2/orders"
|
|
211
199
|
},
|
|
212
200
|
{
|
|
213
|
-
srcPath: "/
|
|
214
|
-
destPath: "/v2/
|
|
201
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
202
|
+
destPath: "/v2/orders"
|
|
215
203
|
}
|
|
216
204
|
],
|
|
217
205
|
"www._base_domain_": [
|
|
218
206
|
{
|
|
219
|
-
srcPath: "/_api/paid-plans/v2/
|
|
220
|
-
destPath: "/v2/
|
|
207
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
208
|
+
destPath: "/v2/orders"
|
|
221
209
|
}
|
|
222
210
|
],
|
|
223
211
|
"www.wixapis.com": [
|
|
224
212
|
{
|
|
225
|
-
srcPath: "/pricing-plans/v2/
|
|
226
|
-
destPath: "/v2/
|
|
213
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
214
|
+
destPath: "/v2/orders"
|
|
227
215
|
}
|
|
228
216
|
]
|
|
229
217
|
};
|
|
230
218
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
231
219
|
}
|
|
232
|
-
function
|
|
220
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
233
221
|
const domainToMappings = {
|
|
234
222
|
"api._api_base_domain_": [
|
|
235
223
|
{
|
|
236
|
-
srcPath: "/
|
|
224
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
237
225
|
destPath: ""
|
|
238
226
|
}
|
|
239
227
|
],
|
|
240
228
|
"*.dev.wix-code.com": [
|
|
241
229
|
{
|
|
242
|
-
srcPath: "/_api/paid-plans/v2/
|
|
243
|
-
destPath: "/v2/
|
|
230
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
231
|
+
destPath: "/v2/checkout"
|
|
244
232
|
}
|
|
245
233
|
],
|
|
246
234
|
"*.pub.wix-code.com": [
|
|
247
235
|
{
|
|
248
|
-
srcPath: "/_api/paid-plans/v2/
|
|
249
|
-
destPath: "/v2/
|
|
236
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
237
|
+
destPath: "/v2/checkout"
|
|
250
238
|
}
|
|
251
239
|
],
|
|
252
240
|
"*.wixapps.net": [
|
|
253
241
|
{
|
|
254
|
-
srcPath: "/_api/paid-plans/v2/
|
|
255
|
-
destPath: "/v2/
|
|
242
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
243
|
+
destPath: "/v2/checkout"
|
|
256
244
|
}
|
|
257
245
|
],
|
|
258
246
|
_: [
|
|
259
247
|
{
|
|
260
|
-
srcPath: "/
|
|
261
|
-
destPath: "/v2/
|
|
248
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
249
|
+
destPath: "/v2/checkout"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
253
|
+
destPath: "/v2/checkout"
|
|
254
|
+
},
|
|
255
|
+
{
|
|
256
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
257
|
+
destPath: "/v2/checkout"
|
|
262
258
|
}
|
|
263
259
|
],
|
|
264
260
|
"editor-flow.wixapps.net": [
|
|
265
261
|
{
|
|
266
|
-
srcPath: "/_api/paid-plans/v2/
|
|
267
|
-
destPath: "/v2/
|
|
262
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
263
|
+
destPath: "/v2/checkout"
|
|
268
264
|
}
|
|
269
265
|
],
|
|
270
266
|
"editor._base_domain_": [
|
|
271
267
|
{
|
|
272
|
-
srcPath: "/_api/paid-plans/v2/
|
|
273
|
-
destPath: "/v2/
|
|
268
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
269
|
+
destPath: "/v2/checkout"
|
|
274
270
|
}
|
|
275
271
|
],
|
|
276
272
|
"blocks._base_domain_": [
|
|
277
273
|
{
|
|
278
|
-
srcPath: "/_api/paid-plans/v2/
|
|
279
|
-
destPath: "/v2/
|
|
274
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
275
|
+
destPath: "/v2/checkout"
|
|
280
276
|
}
|
|
281
277
|
],
|
|
282
278
|
"create.editorx": [
|
|
283
279
|
{
|
|
284
|
-
srcPath: "/_api/paid-plans/v2/
|
|
285
|
-
destPath: "/v2/
|
|
280
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
281
|
+
destPath: "/v2/checkout"
|
|
286
282
|
}
|
|
287
283
|
],
|
|
288
284
|
"editor.wixapps.net": [
|
|
289
285
|
{
|
|
290
|
-
srcPath: "/_api/paid-plans/v2/
|
|
291
|
-
destPath: "/v2/
|
|
286
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
287
|
+
destPath: "/v2/checkout"
|
|
292
288
|
}
|
|
293
289
|
],
|
|
294
290
|
"forums._base_domain_": [
|
|
295
291
|
{
|
|
296
|
-
srcPath: "/_api/paid-plans/v2/
|
|
297
|
-
destPath: "/v2/
|
|
292
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
293
|
+
destPath: "/v2/checkout"
|
|
298
294
|
}
|
|
299
295
|
],
|
|
300
296
|
"forums.wixapps.net": [
|
|
301
297
|
{
|
|
302
|
-
srcPath: "/_api/paid-plans/v2/
|
|
303
|
-
destPath: "/v2/
|
|
298
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
299
|
+
destPath: "/v2/checkout"
|
|
304
300
|
}
|
|
305
301
|
],
|
|
306
302
|
"manage._base_domain_": [
|
|
307
303
|
{
|
|
308
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
309
|
-
destPath: "/v2/
|
|
304
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
305
|
+
destPath: "/v2/checkout"
|
|
310
306
|
},
|
|
311
307
|
{
|
|
312
|
-
srcPath: "/_api/paid-plans/v2/
|
|
313
|
-
destPath: "/v2/
|
|
308
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
309
|
+
destPath: "/v2/checkout"
|
|
310
|
+
},
|
|
311
|
+
{
|
|
312
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
313
|
+
destPath: "/v2/checkout"
|
|
314
314
|
}
|
|
315
315
|
],
|
|
316
316
|
"www._base_domain_": [
|
|
317
317
|
{
|
|
318
|
-
srcPath: "/_api/paid-plans/v2/
|
|
319
|
-
destPath: "/v2/
|
|
318
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
319
|
+
destPath: "/v2/checkout"
|
|
320
320
|
}
|
|
321
321
|
],
|
|
322
322
|
"www.wixapis.com": [
|
|
323
323
|
{
|
|
324
|
-
srcPath: "/pricing-plans/v2/
|
|
325
|
-
destPath: "/v2/
|
|
324
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
325
|
+
destPath: "/v2/checkout"
|
|
326
326
|
}
|
|
327
327
|
]
|
|
328
328
|
};
|
|
329
329
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
330
330
|
}
|
|
331
331
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
332
|
-
function
|
|
333
|
-
function
|
|
332
|
+
function createOnlineOrder(payload) {
|
|
333
|
+
function __createOnlineOrder({ host }) {
|
|
334
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
335
|
+
{
|
|
336
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
337
|
+
paths: [{ path: "startDate" }]
|
|
338
|
+
}
|
|
339
|
+
]);
|
|
334
340
|
const metadata = {
|
|
335
341
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
336
|
-
method: "
|
|
337
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
342
|
+
method: "POST",
|
|
343
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
338
344
|
packageName: PACKAGE_NAME,
|
|
339
345
|
migrationOptions: {
|
|
340
346
|
optInTransformResponse: true
|
|
341
347
|
},
|
|
342
|
-
url:
|
|
343
|
-
protoPath: "/v2/orders/
|
|
344
|
-
data:
|
|
348
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
349
|
+
protoPath: "/v2/checkout/orders/online",
|
|
350
|
+
data: serializedData,
|
|
345
351
|
host
|
|
346
352
|
}),
|
|
347
|
-
|
|
353
|
+
data: serializedData,
|
|
348
354
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
349
355
|
{
|
|
350
356
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -367,138 +373,158 @@ function managementGetOrder(payload) {
|
|
|
367
373
|
};
|
|
368
374
|
return metadata;
|
|
369
375
|
}
|
|
370
|
-
return
|
|
376
|
+
return __createOnlineOrder;
|
|
371
377
|
}
|
|
372
|
-
function
|
|
373
|
-
function
|
|
378
|
+
function createOfflineOrder(payload) {
|
|
379
|
+
function __createOfflineOrder({ host }) {
|
|
374
380
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
375
381
|
{
|
|
376
|
-
transformFn:
|
|
377
|
-
paths: [
|
|
378
|
-
{ path: "sorting.origin.latitude" },
|
|
379
|
-
{ path: "sorting.origin.longitude" }
|
|
380
|
-
]
|
|
382
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
383
|
+
paths: [{ path: "startDate" }]
|
|
381
384
|
}
|
|
382
385
|
]);
|
|
383
386
|
const metadata = {
|
|
384
387
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
385
|
-
method: "
|
|
386
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
388
|
+
method: "POST",
|
|
389
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
387
390
|
packageName: PACKAGE_NAME,
|
|
388
391
|
migrationOptions: {
|
|
389
392
|
optInTransformResponse: true
|
|
390
393
|
},
|
|
391
|
-
url:
|
|
392
|
-
protoPath: "/v2/orders",
|
|
394
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
395
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
393
396
|
data: serializedData,
|
|
394
397
|
host
|
|
395
398
|
}),
|
|
396
|
-
|
|
399
|
+
data: serializedData,
|
|
397
400
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
398
401
|
{
|
|
399
402
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
400
403
|
paths: [
|
|
401
|
-
{ path: "
|
|
402
|
-
{ path: "
|
|
403
|
-
{ path: "
|
|
404
|
-
{ path: "
|
|
405
|
-
{ path: "
|
|
406
|
-
{ path: "
|
|
407
|
-
{ path: "
|
|
408
|
-
{ path: "
|
|
409
|
-
{ path: "
|
|
410
|
-
{ path: "
|
|
411
|
-
{ path: "
|
|
412
|
-
{ path: "
|
|
404
|
+
{ path: "order.startDate" },
|
|
405
|
+
{ path: "order.endDate" },
|
|
406
|
+
{ path: "order.earliestEndDate" },
|
|
407
|
+
{ path: "order.createdDate" },
|
|
408
|
+
{ path: "order.updatedDate" },
|
|
409
|
+
{ path: "order.cancellation.requestedDate" },
|
|
410
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
411
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
412
|
+
{ path: "order.currentCycle.startedDate" },
|
|
413
|
+
{ path: "order.currentCycle.endedDate" },
|
|
414
|
+
{ path: "order.cycles.startedDate" },
|
|
415
|
+
{ path: "order.cycles.endedDate" }
|
|
413
416
|
]
|
|
414
417
|
}
|
|
415
418
|
])
|
|
416
419
|
};
|
|
417
420
|
return metadata;
|
|
418
421
|
}
|
|
419
|
-
return
|
|
422
|
+
return __createOfflineOrder;
|
|
420
423
|
}
|
|
421
|
-
function
|
|
422
|
-
function
|
|
424
|
+
function getOnlineOrderPreview(payload) {
|
|
425
|
+
function __getOnlineOrderPreview({ host }) {
|
|
423
426
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
424
427
|
{
|
|
425
428
|
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
426
|
-
paths: [{ path: "
|
|
429
|
+
paths: [{ path: "startDate" }]
|
|
427
430
|
}
|
|
428
431
|
]);
|
|
429
|
-
const metadata = {
|
|
430
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
431
|
-
method: "PATCH",
|
|
432
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
433
|
-
packageName: PACKAGE_NAME,
|
|
434
|
-
migrationOptions: {
|
|
435
|
-
optInTransformResponse: true
|
|
436
|
-
},
|
|
437
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
438
|
-
protoPath: "/v2/orders/{id}",
|
|
439
|
-
data: serializedData,
|
|
440
|
-
host
|
|
441
|
-
}),
|
|
442
|
-
data: serializedData
|
|
443
|
-
};
|
|
444
|
-
return metadata;
|
|
445
|
-
}
|
|
446
|
-
return __postponeEndDate;
|
|
447
|
-
}
|
|
448
|
-
function cancelOrder(payload) {
|
|
449
|
-
function __cancelOrder({ host }) {
|
|
450
432
|
const metadata = {
|
|
451
433
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
452
434
|
method: "POST",
|
|
453
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
435
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
454
436
|
packageName: PACKAGE_NAME,
|
|
455
437
|
migrationOptions: {
|
|
456
438
|
optInTransformResponse: true
|
|
457
439
|
},
|
|
458
|
-
url:
|
|
459
|
-
protoPath: "/v2/orders/
|
|
460
|
-
data:
|
|
440
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
441
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
442
|
+
data: serializedData,
|
|
461
443
|
host
|
|
462
444
|
}),
|
|
463
|
-
data:
|
|
445
|
+
data: serializedData,
|
|
446
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
447
|
+
{
|
|
448
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
449
|
+
paths: [
|
|
450
|
+
{ path: "order.startDate" },
|
|
451
|
+
{ path: "order.endDate" },
|
|
452
|
+
{ path: "order.earliestEndDate" },
|
|
453
|
+
{ path: "order.createdDate" },
|
|
454
|
+
{ path: "order.updatedDate" },
|
|
455
|
+
{ path: "order.cancellation.requestedDate" },
|
|
456
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
457
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
458
|
+
{ path: "order.currentCycle.startedDate" },
|
|
459
|
+
{ path: "order.currentCycle.endedDate" },
|
|
460
|
+
{ path: "order.cycles.startedDate" },
|
|
461
|
+
{ path: "order.cycles.endedDate" }
|
|
462
|
+
]
|
|
463
|
+
}
|
|
464
|
+
])
|
|
464
465
|
};
|
|
465
466
|
return metadata;
|
|
466
467
|
}
|
|
467
|
-
return
|
|
468
|
+
return __getOnlineOrderPreview;
|
|
468
469
|
}
|
|
469
|
-
function
|
|
470
|
-
function
|
|
470
|
+
function getOfflineOrderPreview(payload) {
|
|
471
|
+
function __getOfflineOrderPreview({ host }) {
|
|
472
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
473
|
+
{
|
|
474
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
475
|
+
paths: [{ path: "startDate" }]
|
|
476
|
+
}
|
|
477
|
+
]);
|
|
471
478
|
const metadata = {
|
|
472
479
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
473
480
|
method: "POST",
|
|
474
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
481
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
475
482
|
packageName: PACKAGE_NAME,
|
|
476
483
|
migrationOptions: {
|
|
477
484
|
optInTransformResponse: true
|
|
478
485
|
},
|
|
479
|
-
url:
|
|
480
|
-
protoPath: "/v2/orders/
|
|
481
|
-
data:
|
|
486
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
487
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
488
|
+
data: serializedData,
|
|
482
489
|
host
|
|
483
490
|
}),
|
|
484
|
-
data:
|
|
491
|
+
data: serializedData,
|
|
492
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
493
|
+
{
|
|
494
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
495
|
+
paths: [
|
|
496
|
+
{ path: "order.startDate" },
|
|
497
|
+
{ path: "order.endDate" },
|
|
498
|
+
{ path: "order.earliestEndDate" },
|
|
499
|
+
{ path: "order.createdDate" },
|
|
500
|
+
{ path: "order.updatedDate" },
|
|
501
|
+
{ path: "order.cancellation.requestedDate" },
|
|
502
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
503
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
504
|
+
{ path: "order.currentCycle.startedDate" },
|
|
505
|
+
{ path: "order.currentCycle.endedDate" },
|
|
506
|
+
{ path: "order.cycles.startedDate" },
|
|
507
|
+
{ path: "order.cycles.endedDate" }
|
|
508
|
+
]
|
|
509
|
+
}
|
|
510
|
+
])
|
|
485
511
|
};
|
|
486
512
|
return metadata;
|
|
487
513
|
}
|
|
488
|
-
return
|
|
514
|
+
return __getOfflineOrderPreview;
|
|
489
515
|
}
|
|
490
|
-
function
|
|
491
|
-
function
|
|
516
|
+
function getPricePreview(payload) {
|
|
517
|
+
function __getPricePreview({ host }) {
|
|
492
518
|
const metadata = {
|
|
493
519
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
494
520
|
method: "POST",
|
|
495
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
521
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
496
522
|
packageName: PACKAGE_NAME,
|
|
497
523
|
migrationOptions: {
|
|
498
524
|
optInTransformResponse: true
|
|
499
525
|
},
|
|
500
|
-
url:
|
|
501
|
-
protoPath: "/v2/orders/
|
|
526
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
527
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
502
528
|
data: payload,
|
|
503
529
|
host
|
|
504
530
|
}),
|
|
@@ -506,51 +532,24 @@ function pauseOrder(payload) {
|
|
|
506
532
|
};
|
|
507
533
|
return metadata;
|
|
508
534
|
}
|
|
509
|
-
return
|
|
535
|
+
return __getPricePreview;
|
|
510
536
|
}
|
|
511
|
-
function
|
|
512
|
-
function
|
|
537
|
+
function managementGetOrder(payload) {
|
|
538
|
+
function __managementGetOrder({ host }) {
|
|
513
539
|
const metadata = {
|
|
514
540
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
515
|
-
method: "
|
|
516
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
541
|
+
method: "GET",
|
|
542
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
517
543
|
packageName: PACKAGE_NAME,
|
|
518
544
|
migrationOptions: {
|
|
519
545
|
optInTransformResponse: true
|
|
520
546
|
},
|
|
521
547
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
522
|
-
protoPath: "/v2/orders/{id}
|
|
548
|
+
protoPath: "/v2/orders/{id}",
|
|
523
549
|
data: payload,
|
|
524
550
|
host
|
|
525
551
|
}),
|
|
526
|
-
|
|
527
|
-
};
|
|
528
|
-
return metadata;
|
|
529
|
-
}
|
|
530
|
-
return __resumeOrder;
|
|
531
|
-
}
|
|
532
|
-
function createOnlineOrder(payload) {
|
|
533
|
-
function __createOnlineOrder({ host }) {
|
|
534
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
535
|
-
{
|
|
536
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
537
|
-
paths: [{ path: "startDate" }]
|
|
538
|
-
}
|
|
539
|
-
]);
|
|
540
|
-
const metadata = {
|
|
541
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
542
|
-
method: "POST",
|
|
543
|
-
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
544
|
-
packageName: PACKAGE_NAME,
|
|
545
|
-
migrationOptions: {
|
|
546
|
-
optInTransformResponse: true
|
|
547
|
-
},
|
|
548
|
-
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
549
|
-
protoPath: "/v2/checkout/orders/online",
|
|
550
|
-
data: serializedData,
|
|
551
|
-
host
|
|
552
|
-
}),
|
|
553
|
-
data: serializedData,
|
|
552
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
554
553
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
555
554
|
{
|
|
556
555
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
@@ -573,158 +572,159 @@ function createOnlineOrder(payload) {
|
|
|
573
572
|
};
|
|
574
573
|
return metadata;
|
|
575
574
|
}
|
|
576
|
-
return
|
|
575
|
+
return __managementGetOrder;
|
|
577
576
|
}
|
|
578
|
-
function
|
|
579
|
-
function
|
|
577
|
+
function managementListOrders(payload) {
|
|
578
|
+
function __managementListOrders({ host }) {
|
|
580
579
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
581
580
|
{
|
|
582
|
-
transformFn:
|
|
583
|
-
paths: [
|
|
581
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
582
|
+
paths: [
|
|
583
|
+
{ path: "sorting.origin.latitude" },
|
|
584
|
+
{ path: "sorting.origin.longitude" }
|
|
585
|
+
]
|
|
584
586
|
}
|
|
585
587
|
]);
|
|
586
588
|
const metadata = {
|
|
587
589
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
588
|
-
method: "
|
|
589
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
590
|
+
method: "GET",
|
|
591
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
590
592
|
packageName: PACKAGE_NAME,
|
|
591
593
|
migrationOptions: {
|
|
592
594
|
optInTransformResponse: true
|
|
593
595
|
},
|
|
594
|
-
url:
|
|
595
|
-
protoPath: "/v2/
|
|
596
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
597
|
+
protoPath: "/v2/orders",
|
|
596
598
|
data: serializedData,
|
|
597
599
|
host
|
|
598
600
|
}),
|
|
599
|
-
|
|
601
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
600
602
|
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
601
603
|
{
|
|
602
604
|
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
603
605
|
paths: [
|
|
604
|
-
{ path: "
|
|
605
|
-
{ path: "
|
|
606
|
-
{ path: "
|
|
607
|
-
{ path: "
|
|
608
|
-
{ path: "
|
|
609
|
-
{ path: "
|
|
610
|
-
{ path: "
|
|
611
|
-
{ path: "
|
|
612
|
-
{ path: "
|
|
613
|
-
{ path: "
|
|
614
|
-
{ path: "
|
|
615
|
-
{ path: "
|
|
606
|
+
{ path: "orders.startDate" },
|
|
607
|
+
{ path: "orders.endDate" },
|
|
608
|
+
{ path: "orders.earliestEndDate" },
|
|
609
|
+
{ path: "orders.createdDate" },
|
|
610
|
+
{ path: "orders.updatedDate" },
|
|
611
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
612
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
613
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
614
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
615
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
616
|
+
{ path: "orders.cycles.startedDate" },
|
|
617
|
+
{ path: "orders.cycles.endedDate" }
|
|
616
618
|
]
|
|
617
619
|
}
|
|
618
620
|
])
|
|
619
621
|
};
|
|
620
622
|
return metadata;
|
|
621
623
|
}
|
|
622
|
-
return
|
|
624
|
+
return __managementListOrders;
|
|
625
|
+
}
|
|
626
|
+
function postponeEndDate(payload) {
|
|
627
|
+
function __postponeEndDate({ host }) {
|
|
628
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
629
|
+
{
|
|
630
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
631
|
+
paths: [{ path: "endDate" }]
|
|
632
|
+
}
|
|
633
|
+
]);
|
|
634
|
+
const metadata = {
|
|
635
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
636
|
+
method: "PATCH",
|
|
637
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
638
|
+
packageName: PACKAGE_NAME,
|
|
639
|
+
migrationOptions: {
|
|
640
|
+
optInTransformResponse: true
|
|
641
|
+
},
|
|
642
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
643
|
+
protoPath: "/v2/orders/{id}",
|
|
644
|
+
data: serializedData,
|
|
645
|
+
host
|
|
646
|
+
}),
|
|
647
|
+
data: serializedData
|
|
648
|
+
};
|
|
649
|
+
return metadata;
|
|
650
|
+
}
|
|
651
|
+
return __postponeEndDate;
|
|
652
|
+
}
|
|
653
|
+
function cancelOrder(payload) {
|
|
654
|
+
function __cancelOrder({ host }) {
|
|
655
|
+
const metadata = {
|
|
656
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
657
|
+
method: "POST",
|
|
658
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
659
|
+
packageName: PACKAGE_NAME,
|
|
660
|
+
migrationOptions: {
|
|
661
|
+
optInTransformResponse: true
|
|
662
|
+
},
|
|
663
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
664
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
665
|
+
data: payload,
|
|
666
|
+
host
|
|
667
|
+
}),
|
|
668
|
+
data: payload
|
|
669
|
+
};
|
|
670
|
+
return metadata;
|
|
671
|
+
}
|
|
672
|
+
return __cancelOrder;
|
|
623
673
|
}
|
|
624
|
-
function
|
|
625
|
-
function
|
|
626
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
627
|
-
{
|
|
628
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
629
|
-
paths: [{ path: "startDate" }]
|
|
630
|
-
}
|
|
631
|
-
]);
|
|
674
|
+
function markAsPaid(payload) {
|
|
675
|
+
function __markAsPaid({ host }) {
|
|
632
676
|
const metadata = {
|
|
633
677
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
634
678
|
method: "POST",
|
|
635
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
679
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
636
680
|
packageName: PACKAGE_NAME,
|
|
637
681
|
migrationOptions: {
|
|
638
682
|
optInTransformResponse: true
|
|
639
683
|
},
|
|
640
|
-
url:
|
|
641
|
-
protoPath: "/v2/
|
|
642
|
-
data:
|
|
684
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
685
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
686
|
+
data: payload,
|
|
643
687
|
host
|
|
644
688
|
}),
|
|
645
|
-
data:
|
|
646
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
647
|
-
{
|
|
648
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
649
|
-
paths: [
|
|
650
|
-
{ path: "order.startDate" },
|
|
651
|
-
{ path: "order.endDate" },
|
|
652
|
-
{ path: "order.earliestEndDate" },
|
|
653
|
-
{ path: "order.createdDate" },
|
|
654
|
-
{ path: "order.updatedDate" },
|
|
655
|
-
{ path: "order.cancellation.requestedDate" },
|
|
656
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
657
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
658
|
-
{ path: "order.currentCycle.startedDate" },
|
|
659
|
-
{ path: "order.currentCycle.endedDate" },
|
|
660
|
-
{ path: "order.cycles.startedDate" },
|
|
661
|
-
{ path: "order.cycles.endedDate" }
|
|
662
|
-
]
|
|
663
|
-
}
|
|
664
|
-
])
|
|
689
|
+
data: payload
|
|
665
690
|
};
|
|
666
691
|
return metadata;
|
|
667
692
|
}
|
|
668
|
-
return
|
|
693
|
+
return __markAsPaid;
|
|
669
694
|
}
|
|
670
|
-
function
|
|
671
|
-
function
|
|
672
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
673
|
-
{
|
|
674
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
675
|
-
paths: [{ path: "startDate" }]
|
|
676
|
-
}
|
|
677
|
-
]);
|
|
695
|
+
function pauseOrder(payload) {
|
|
696
|
+
function __pauseOrder({ host }) {
|
|
678
697
|
const metadata = {
|
|
679
698
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
680
699
|
method: "POST",
|
|
681
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
700
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
682
701
|
packageName: PACKAGE_NAME,
|
|
683
702
|
migrationOptions: {
|
|
684
703
|
optInTransformResponse: true
|
|
685
704
|
},
|
|
686
|
-
url:
|
|
687
|
-
protoPath: "/v2/
|
|
688
|
-
data:
|
|
705
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
706
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
707
|
+
data: payload,
|
|
689
708
|
host
|
|
690
709
|
}),
|
|
691
|
-
data:
|
|
692
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
693
|
-
{
|
|
694
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
695
|
-
paths: [
|
|
696
|
-
{ path: "order.startDate" },
|
|
697
|
-
{ path: "order.endDate" },
|
|
698
|
-
{ path: "order.earliestEndDate" },
|
|
699
|
-
{ path: "order.createdDate" },
|
|
700
|
-
{ path: "order.updatedDate" },
|
|
701
|
-
{ path: "order.cancellation.requestedDate" },
|
|
702
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
703
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
704
|
-
{ path: "order.currentCycle.startedDate" },
|
|
705
|
-
{ path: "order.currentCycle.endedDate" },
|
|
706
|
-
{ path: "order.cycles.startedDate" },
|
|
707
|
-
{ path: "order.cycles.endedDate" }
|
|
708
|
-
]
|
|
709
|
-
}
|
|
710
|
-
])
|
|
710
|
+
data: payload
|
|
711
711
|
};
|
|
712
712
|
return metadata;
|
|
713
713
|
}
|
|
714
|
-
return
|
|
714
|
+
return __pauseOrder;
|
|
715
715
|
}
|
|
716
|
-
function
|
|
717
|
-
function
|
|
716
|
+
function resumeOrder(payload) {
|
|
717
|
+
function __resumeOrder({ host }) {
|
|
718
718
|
const metadata = {
|
|
719
719
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
720
720
|
method: "POST",
|
|
721
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
721
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
722
722
|
packageName: PACKAGE_NAME,
|
|
723
723
|
migrationOptions: {
|
|
724
724
|
optInTransformResponse: true
|
|
725
725
|
},
|
|
726
|
-
url:
|
|
727
|
-
protoPath: "/v2/
|
|
726
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
727
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
728
728
|
data: payload,
|
|
729
729
|
host
|
|
730
730
|
}),
|
|
@@ -732,7 +732,7 @@ function getPricePreview(payload) {
|
|
|
732
732
|
};
|
|
733
733
|
return metadata;
|
|
734
734
|
}
|
|
735
|
-
return
|
|
735
|
+
return __resumeOrder;
|
|
736
736
|
}
|
|
737
737
|
function memberGetOrder(payload) {
|
|
738
738
|
function __memberGetOrder({ host }) {
|
|
@@ -908,6 +908,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
908
908
|
Status2["ENDED"] = "ENDED";
|
|
909
909
|
return Status2;
|
|
910
910
|
})(Status || {});
|
|
911
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
912
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
913
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
914
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
915
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
916
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
917
|
+
return WebhookIdentityType2;
|
|
918
|
+
})(WebhookIdentityType || {});
|
|
911
919
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
912
920
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
913
921
|
Set2["BASIC"] = "BASIC";
|
|
@@ -930,45 +938,37 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
930
938
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
931
939
|
return ReasonNotSuspendable2;
|
|
932
940
|
})(ReasonNotSuspendable || {});
|
|
933
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
934
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
935
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
936
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
937
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
938
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
939
|
-
return WebhookIdentityType2;
|
|
940
|
-
})(WebhookIdentityType || {});
|
|
941
941
|
|
|
942
942
|
// src/pricing-plans-v2-order-orders.meta.ts
|
|
943
|
-
function
|
|
944
|
-
const payload = {
|
|
945
|
-
const getRequestOptions =
|
|
943
|
+
function createOnlineOrder2() {
|
|
944
|
+
const payload = {};
|
|
945
|
+
const getRequestOptions = createOnlineOrder(payload);
|
|
946
946
|
const getUrl = (context) => {
|
|
947
947
|
const { url } = getRequestOptions(context);
|
|
948
948
|
return url;
|
|
949
949
|
};
|
|
950
950
|
return {
|
|
951
951
|
getUrl,
|
|
952
|
-
httpMethod: "
|
|
953
|
-
path: "/v2/orders/
|
|
954
|
-
pathParams: {
|
|
952
|
+
httpMethod: "POST",
|
|
953
|
+
path: "/v2/checkout/orders/online",
|
|
954
|
+
pathParams: {},
|
|
955
955
|
__requestType: null,
|
|
956
956
|
__originalRequestType: null,
|
|
957
957
|
__responseType: null,
|
|
958
958
|
__originalResponseType: null
|
|
959
959
|
};
|
|
960
960
|
}
|
|
961
|
-
function
|
|
961
|
+
function createOfflineOrder2() {
|
|
962
962
|
const payload = {};
|
|
963
|
-
const getRequestOptions =
|
|
963
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
964
964
|
const getUrl = (context) => {
|
|
965
965
|
const { url } = getRequestOptions(context);
|
|
966
966
|
return url;
|
|
967
967
|
};
|
|
968
968
|
return {
|
|
969
969
|
getUrl,
|
|
970
|
-
httpMethod: "
|
|
971
|
-
path: "/v2/orders",
|
|
970
|
+
httpMethod: "POST",
|
|
971
|
+
path: "/v2/checkout/orders/offline",
|
|
972
972
|
pathParams: {},
|
|
973
973
|
__requestType: null,
|
|
974
974
|
__originalRequestType: null,
|
|
@@ -976,27 +976,27 @@ function managementListOrders2() {
|
|
|
976
976
|
__originalResponseType: null
|
|
977
977
|
};
|
|
978
978
|
}
|
|
979
|
-
function
|
|
980
|
-
const payload = {
|
|
981
|
-
const getRequestOptions =
|
|
979
|
+
function getOnlineOrderPreview2() {
|
|
980
|
+
const payload = {};
|
|
981
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
982
982
|
const getUrl = (context) => {
|
|
983
983
|
const { url } = getRequestOptions(context);
|
|
984
984
|
return url;
|
|
985
985
|
};
|
|
986
986
|
return {
|
|
987
987
|
getUrl,
|
|
988
|
-
httpMethod: "
|
|
989
|
-
path: "/v2/orders/
|
|
990
|
-
pathParams: {
|
|
988
|
+
httpMethod: "POST",
|
|
989
|
+
path: "/v2/checkout/orders/preview-online",
|
|
990
|
+
pathParams: {},
|
|
991
991
|
__requestType: null,
|
|
992
992
|
__originalRequestType: null,
|
|
993
993
|
__responseType: null,
|
|
994
994
|
__originalResponseType: null
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
|
-
function
|
|
998
|
-
const payload = {
|
|
999
|
-
const getRequestOptions =
|
|
997
|
+
function getOfflineOrderPreview2() {
|
|
998
|
+
const payload = {};
|
|
999
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1000
1000
|
const getUrl = (context) => {
|
|
1001
1001
|
const { url } = getRequestOptions(context);
|
|
1002
1002
|
return url;
|
|
@@ -1004,17 +1004,17 @@ function cancelOrder2() {
|
|
|
1004
1004
|
return {
|
|
1005
1005
|
getUrl,
|
|
1006
1006
|
httpMethod: "POST",
|
|
1007
|
-
path: "/v2/orders/
|
|
1008
|
-
pathParams: {
|
|
1007
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1008
|
+
pathParams: {},
|
|
1009
1009
|
__requestType: null,
|
|
1010
1010
|
__originalRequestType: null,
|
|
1011
1011
|
__responseType: null,
|
|
1012
1012
|
__originalResponseType: null
|
|
1013
1013
|
};
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
const payload = {
|
|
1017
|
-
const getRequestOptions =
|
|
1015
|
+
function getPricePreview2() {
|
|
1016
|
+
const payload = {};
|
|
1017
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1018
1018
|
const getUrl = (context) => {
|
|
1019
1019
|
const { url } = getRequestOptions(context);
|
|
1020
1020
|
return url;
|
|
@@ -1022,25 +1022,25 @@ function markAsPaid2() {
|
|
|
1022
1022
|
return {
|
|
1023
1023
|
getUrl,
|
|
1024
1024
|
httpMethod: "POST",
|
|
1025
|
-
path: "/v2/orders/
|
|
1026
|
-
pathParams: {
|
|
1025
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1026
|
+
pathParams: {},
|
|
1027
1027
|
__requestType: null,
|
|
1028
1028
|
__originalRequestType: null,
|
|
1029
1029
|
__responseType: null,
|
|
1030
1030
|
__originalResponseType: null
|
|
1031
1031
|
};
|
|
1032
1032
|
}
|
|
1033
|
-
function
|
|
1033
|
+
function managementGetOrder2() {
|
|
1034
1034
|
const payload = { id: ":id" };
|
|
1035
|
-
const getRequestOptions =
|
|
1035
|
+
const getRequestOptions = managementGetOrder(payload);
|
|
1036
1036
|
const getUrl = (context) => {
|
|
1037
1037
|
const { url } = getRequestOptions(context);
|
|
1038
1038
|
return url;
|
|
1039
1039
|
};
|
|
1040
1040
|
return {
|
|
1041
1041
|
getUrl,
|
|
1042
|
-
httpMethod: "
|
|
1043
|
-
path: "/v2/orders/{id}
|
|
1042
|
+
httpMethod: "GET",
|
|
1043
|
+
path: "/v2/orders/{id}",
|
|
1044
1044
|
pathParams: { id: "id" },
|
|
1045
1045
|
__requestType: null,
|
|
1046
1046
|
__originalRequestType: null,
|
|
@@ -1048,45 +1048,45 @@ function pauseOrder2() {
|
|
|
1048
1048
|
__originalResponseType: null
|
|
1049
1049
|
};
|
|
1050
1050
|
}
|
|
1051
|
-
function
|
|
1052
|
-
const payload = {
|
|
1053
|
-
const getRequestOptions =
|
|
1051
|
+
function managementListOrders2() {
|
|
1052
|
+
const payload = {};
|
|
1053
|
+
const getRequestOptions = managementListOrders(payload);
|
|
1054
1054
|
const getUrl = (context) => {
|
|
1055
1055
|
const { url } = getRequestOptions(context);
|
|
1056
1056
|
return url;
|
|
1057
1057
|
};
|
|
1058
1058
|
return {
|
|
1059
1059
|
getUrl,
|
|
1060
|
-
httpMethod: "
|
|
1061
|
-
path: "/v2/orders
|
|
1062
|
-
pathParams: {
|
|
1060
|
+
httpMethod: "GET",
|
|
1061
|
+
path: "/v2/orders",
|
|
1062
|
+
pathParams: {},
|
|
1063
1063
|
__requestType: null,
|
|
1064
1064
|
__originalRequestType: null,
|
|
1065
1065
|
__responseType: null,
|
|
1066
1066
|
__originalResponseType: null
|
|
1067
1067
|
};
|
|
1068
1068
|
}
|
|
1069
|
-
function
|
|
1070
|
-
const payload = {};
|
|
1071
|
-
const getRequestOptions =
|
|
1069
|
+
function postponeEndDate2() {
|
|
1070
|
+
const payload = { id: ":id" };
|
|
1071
|
+
const getRequestOptions = postponeEndDate(payload);
|
|
1072
1072
|
const getUrl = (context) => {
|
|
1073
1073
|
const { url } = getRequestOptions(context);
|
|
1074
1074
|
return url;
|
|
1075
1075
|
};
|
|
1076
1076
|
return {
|
|
1077
1077
|
getUrl,
|
|
1078
|
-
httpMethod: "
|
|
1079
|
-
path: "/v2/
|
|
1080
|
-
pathParams: {},
|
|
1078
|
+
httpMethod: "PATCH",
|
|
1079
|
+
path: "/v2/orders/{id}",
|
|
1080
|
+
pathParams: { id: "id" },
|
|
1081
1081
|
__requestType: null,
|
|
1082
1082
|
__originalRequestType: null,
|
|
1083
1083
|
__responseType: null,
|
|
1084
1084
|
__originalResponseType: null
|
|
1085
1085
|
};
|
|
1086
1086
|
}
|
|
1087
|
-
function
|
|
1088
|
-
const payload = {};
|
|
1089
|
-
const getRequestOptions =
|
|
1087
|
+
function cancelOrder2() {
|
|
1088
|
+
const payload = { id: ":id" };
|
|
1089
|
+
const getRequestOptions = cancelOrder(payload);
|
|
1090
1090
|
const getUrl = (context) => {
|
|
1091
1091
|
const { url } = getRequestOptions(context);
|
|
1092
1092
|
return url;
|
|
@@ -1094,17 +1094,17 @@ function createOfflineOrder2() {
|
|
|
1094
1094
|
return {
|
|
1095
1095
|
getUrl,
|
|
1096
1096
|
httpMethod: "POST",
|
|
1097
|
-
path: "/v2/
|
|
1098
|
-
pathParams: {},
|
|
1097
|
+
path: "/v2/orders/{id}/cancel",
|
|
1098
|
+
pathParams: { id: "id" },
|
|
1099
1099
|
__requestType: null,
|
|
1100
1100
|
__originalRequestType: null,
|
|
1101
1101
|
__responseType: null,
|
|
1102
1102
|
__originalResponseType: null
|
|
1103
1103
|
};
|
|
1104
1104
|
}
|
|
1105
|
-
function
|
|
1106
|
-
const payload = {};
|
|
1107
|
-
const getRequestOptions =
|
|
1105
|
+
function markAsPaid2() {
|
|
1106
|
+
const payload = { id: ":id" };
|
|
1107
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1108
1108
|
const getUrl = (context) => {
|
|
1109
1109
|
const { url } = getRequestOptions(context);
|
|
1110
1110
|
return url;
|
|
@@ -1112,17 +1112,17 @@ function getOnlineOrderPreview2() {
|
|
|
1112
1112
|
return {
|
|
1113
1113
|
getUrl,
|
|
1114
1114
|
httpMethod: "POST",
|
|
1115
|
-
path: "/v2/
|
|
1116
|
-
pathParams: {},
|
|
1115
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1116
|
+
pathParams: { id: "id" },
|
|
1117
1117
|
__requestType: null,
|
|
1118
1118
|
__originalRequestType: null,
|
|
1119
1119
|
__responseType: null,
|
|
1120
1120
|
__originalResponseType: null
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
|
-
function
|
|
1124
|
-
const payload = {};
|
|
1125
|
-
const getRequestOptions =
|
|
1123
|
+
function pauseOrder2() {
|
|
1124
|
+
const payload = { id: ":id" };
|
|
1125
|
+
const getRequestOptions = pauseOrder(payload);
|
|
1126
1126
|
const getUrl = (context) => {
|
|
1127
1127
|
const { url } = getRequestOptions(context);
|
|
1128
1128
|
return url;
|
|
@@ -1130,17 +1130,17 @@ function getOfflineOrderPreview2() {
|
|
|
1130
1130
|
return {
|
|
1131
1131
|
getUrl,
|
|
1132
1132
|
httpMethod: "POST",
|
|
1133
|
-
path: "/v2/
|
|
1134
|
-
pathParams: {},
|
|
1133
|
+
path: "/v2/orders/{id}/pause",
|
|
1134
|
+
pathParams: { id: "id" },
|
|
1135
1135
|
__requestType: null,
|
|
1136
1136
|
__originalRequestType: null,
|
|
1137
1137
|
__responseType: null,
|
|
1138
1138
|
__originalResponseType: null
|
|
1139
1139
|
};
|
|
1140
1140
|
}
|
|
1141
|
-
function
|
|
1142
|
-
const payload = {};
|
|
1143
|
-
const getRequestOptions =
|
|
1141
|
+
function resumeOrder2() {
|
|
1142
|
+
const payload = { id: ":id" };
|
|
1143
|
+
const getRequestOptions = resumeOrder(payload);
|
|
1144
1144
|
const getUrl = (context) => {
|
|
1145
1145
|
const { url } = getRequestOptions(context);
|
|
1146
1146
|
return url;
|
|
@@ -1148,8 +1148,8 @@ function getPricePreview2() {
|
|
|
1148
1148
|
return {
|
|
1149
1149
|
getUrl,
|
|
1150
1150
|
httpMethod: "POST",
|
|
1151
|
-
path: "/v2/
|
|
1152
|
-
pathParams: {},
|
|
1151
|
+
path: "/v2/orders/{id}/resume",
|
|
1152
|
+
pathParams: { id: "id" },
|
|
1153
1153
|
__requestType: null,
|
|
1154
1154
|
__originalRequestType: null,
|
|
1155
1155
|
__responseType: null,
|