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