@wix/auto_sdk_pricing-plans_orders 1.0.138 → 1.0.139
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 +507 -507
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +766 -766
- 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 +507 -507
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +766 -766
- 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 +794 -794
- 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 +794 -794
- package/build/internal/es/meta.d.mts +500 -500
- package/package.json +2 -2
package/build/es/meta.mjs
CHANGED
|
@@ -5,8 +5,7 @@ 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 = [
|
|
9
|
-
var TRANSFORM_PATHS_1 = [
|
|
8
|
+
var TRANSFORM_PATHS_0 = [
|
|
10
9
|
{ path: "order.startDate" },
|
|
11
10
|
{ path: "order.endDate" },
|
|
12
11
|
{ path: "order.earliestEndDate" },
|
|
@@ -20,11 +19,11 @@ var TRANSFORM_PATHS_1 = [
|
|
|
20
19
|
{ path: "order.cycles.startedDate" },
|
|
21
20
|
{ path: "order.cycles.endedDate" }
|
|
22
21
|
];
|
|
23
|
-
var
|
|
22
|
+
var TRANSFORM_PATHS_1 = [
|
|
24
23
|
{ path: "sorting.origin.latitude" },
|
|
25
24
|
{ path: "sorting.origin.longitude" }
|
|
26
25
|
];
|
|
27
|
-
var
|
|
26
|
+
var TRANSFORM_PATHS_2 = [
|
|
28
27
|
{ path: "orders.startDate" },
|
|
29
28
|
{ path: "orders.endDate" },
|
|
30
29
|
{ path: "orders.earliestEndDate" },
|
|
@@ -38,7 +37,8 @@ var TRANSFORM_PATHS_3 = [
|
|
|
38
37
|
{ path: "orders.cycles.startedDate" },
|
|
39
38
|
{ path: "orders.cycles.endedDate" }
|
|
40
39
|
];
|
|
41
|
-
var
|
|
40
|
+
var TRANSFORM_PATHS_3 = [{ path: "endDate" }];
|
|
41
|
+
var TRANSFORM_PATHS_4 = [{ path: "startDate" }];
|
|
42
42
|
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
43
43
|
const domainToMappings = {
|
|
44
44
|
"api._api_base_domain_": [
|
|
@@ -130,445 +130,421 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
130
130
|
};
|
|
131
131
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
132
132
|
}
|
|
133
|
-
function
|
|
133
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
134
134
|
const domainToMappings = {
|
|
135
135
|
"api._api_base_domain_": [
|
|
136
136
|
{
|
|
137
|
-
srcPath: "/
|
|
137
|
+
srcPath: "/pricing-plans-checkout-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/checkout",
|
|
144
|
+
destPath: "/v2/checkout"
|
|
145
145
|
},
|
|
146
146
|
{
|
|
147
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
148
|
-
destPath: "/v2/
|
|
147
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
148
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
154
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
160
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
166
|
+
destPath: "/v2/checkout"
|
|
167
167
|
},
|
|
168
168
|
{
|
|
169
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
170
|
-
destPath: "/v2/
|
|
169
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
170
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
176
|
+
destPath: "/v2/checkout"
|
|
177
177
|
},
|
|
178
178
|
{
|
|
179
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
180
|
-
destPath: "/v2/
|
|
179
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
180
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
186
|
+
destPath: "/v2/checkout"
|
|
187
187
|
},
|
|
188
188
|
{
|
|
189
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
190
|
-
destPath: "/v2/
|
|
189
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
190
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
196
|
+
destPath: "/v2/checkout"
|
|
197
197
|
},
|
|
198
198
|
{
|
|
199
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
200
|
-
destPath: "/v2/
|
|
199
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
200
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
206
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
212
|
+
destPath: "/v2/checkout"
|
|
213
213
|
}
|
|
214
214
|
],
|
|
215
215
|
"manage._base_domain_": [
|
|
216
216
|
{
|
|
217
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
218
|
-
destPath: "/v2/
|
|
217
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
218
|
+
destPath: "/v2/checkout"
|
|
219
219
|
},
|
|
220
220
|
{
|
|
221
|
-
srcPath: "/_api/paid-plans/v2/
|
|
222
|
-
destPath: "/v2/
|
|
221
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
222
|
+
destPath: "/v2/checkout"
|
|
223
|
+
},
|
|
224
|
+
{
|
|
225
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
226
|
+
destPath: "/v2/checkout"
|
|
223
227
|
}
|
|
224
228
|
],
|
|
225
229
|
"www.wixapis.com": [
|
|
226
230
|
{
|
|
227
|
-
srcPath: "/pricing-plans/v2/
|
|
228
|
-
destPath: "/v2/
|
|
231
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
232
|
+
destPath: "/v2/checkout"
|
|
229
233
|
}
|
|
230
234
|
],
|
|
231
235
|
_: [
|
|
232
236
|
{
|
|
233
|
-
srcPath: "/
|
|
234
|
-
destPath: "/v2/
|
|
237
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
238
|
+
destPath: "/v2/checkout"
|
|
235
239
|
},
|
|
236
240
|
{
|
|
237
|
-
srcPath: "/_api/
|
|
238
|
-
destPath: "/v2/
|
|
241
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
242
|
+
destPath: "/v2/checkout"
|
|
243
|
+
},
|
|
244
|
+
{
|
|
245
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
246
|
+
destPath: "/v2/checkout"
|
|
239
247
|
}
|
|
240
248
|
],
|
|
241
249
|
"*.pub.wix-code.com": [
|
|
242
250
|
{
|
|
243
|
-
srcPath: "/_api/paid-plans/v2/
|
|
244
|
-
destPath: "/v2/
|
|
251
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
252
|
+
destPath: "/v2/checkout"
|
|
245
253
|
}
|
|
246
254
|
],
|
|
247
255
|
"www._base_domain_": [
|
|
248
256
|
{
|
|
249
|
-
srcPath: "/_api/paid-plans/v2/
|
|
250
|
-
destPath: "/v2/
|
|
257
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
258
|
+
destPath: "/v2/checkout"
|
|
251
259
|
}
|
|
252
260
|
],
|
|
253
261
|
"apps._base_domain_": [
|
|
254
262
|
{
|
|
255
|
-
srcPath: "/_api/paid-plans/v2/
|
|
256
|
-
destPath: "/v2/
|
|
263
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
264
|
+
destPath: "/v2/checkout"
|
|
257
265
|
},
|
|
258
266
|
{
|
|
259
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
260
|
-
destPath: "/v2/
|
|
267
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
268
|
+
destPath: "/v2/checkout"
|
|
261
269
|
}
|
|
262
270
|
],
|
|
263
271
|
"dev._base_domain_": [
|
|
264
272
|
{
|
|
265
|
-
srcPath: "/_api/paid-plans/v2/
|
|
266
|
-
destPath: "/v2/
|
|
273
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
274
|
+
destPath: "/v2/checkout"
|
|
267
275
|
},
|
|
268
276
|
{
|
|
269
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
270
|
-
destPath: "/v2/
|
|
277
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
278
|
+
destPath: "/v2/checkout"
|
|
271
279
|
}
|
|
272
280
|
]
|
|
273
281
|
};
|
|
274
282
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
275
283
|
}
|
|
276
|
-
function
|
|
284
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
277
285
|
const domainToMappings = {
|
|
278
286
|
"api._api_base_domain_": [
|
|
279
287
|
{
|
|
280
|
-
srcPath: "/
|
|
288
|
+
srcPath: "/order-management-service-proxy",
|
|
281
289
|
destPath: ""
|
|
282
290
|
}
|
|
283
291
|
],
|
|
284
292
|
"*.dev.wix-code.com": [
|
|
285
293
|
{
|
|
286
|
-
srcPath: "/_api/paid-plans/v2/
|
|
287
|
-
destPath: "/v2/
|
|
294
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
295
|
+
destPath: "/v2/orders"
|
|
288
296
|
},
|
|
289
297
|
{
|
|
290
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
291
|
-
destPath: "/v2/
|
|
298
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
299
|
+
destPath: "/v2/orders"
|
|
292
300
|
}
|
|
293
301
|
],
|
|
294
302
|
"*.wixapps.net": [
|
|
295
303
|
{
|
|
296
|
-
srcPath: "/_api/paid-plans/v2/
|
|
297
|
-
destPath: "/v2/
|
|
304
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
305
|
+
destPath: "/v2/orders"
|
|
298
306
|
}
|
|
299
307
|
],
|
|
300
308
|
"editor-flow.wixapps.net": [
|
|
301
309
|
{
|
|
302
|
-
srcPath: "/_api/paid-plans/v2/
|
|
303
|
-
destPath: "/v2/
|
|
310
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
311
|
+
destPath: "/v2/orders"
|
|
304
312
|
}
|
|
305
313
|
],
|
|
306
314
|
"editor._base_domain_": [
|
|
307
315
|
{
|
|
308
|
-
srcPath: "/_api/paid-plans/v2/
|
|
309
|
-
destPath: "/v2/
|
|
316
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
317
|
+
destPath: "/v2/orders"
|
|
310
318
|
},
|
|
311
319
|
{
|
|
312
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
313
|
-
destPath: "/v2/
|
|
320
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
321
|
+
destPath: "/v2/orders"
|
|
314
322
|
}
|
|
315
323
|
],
|
|
316
324
|
"blocks._base_domain_": [
|
|
317
325
|
{
|
|
318
|
-
srcPath: "/_api/paid-plans/v2/
|
|
319
|
-
destPath: "/v2/
|
|
326
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
327
|
+
destPath: "/v2/orders"
|
|
320
328
|
},
|
|
321
329
|
{
|
|
322
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
323
|
-
destPath: "/v2/
|
|
330
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
331
|
+
destPath: "/v2/orders"
|
|
324
332
|
}
|
|
325
333
|
],
|
|
326
334
|
"create.editorx": [
|
|
327
335
|
{
|
|
328
|
-
srcPath: "/_api/paid-plans/v2/
|
|
329
|
-
destPath: "/v2/
|
|
336
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
337
|
+
destPath: "/v2/orders"
|
|
330
338
|
},
|
|
331
339
|
{
|
|
332
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
333
|
-
destPath: "/v2/
|
|
340
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
341
|
+
destPath: "/v2/orders"
|
|
334
342
|
}
|
|
335
343
|
],
|
|
336
344
|
"editor.wixapps.net": [
|
|
337
345
|
{
|
|
338
|
-
srcPath: "/_api/paid-plans/v2/
|
|
339
|
-
destPath: "/v2/
|
|
346
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
347
|
+
destPath: "/v2/orders"
|
|
340
348
|
},
|
|
341
349
|
{
|
|
342
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
343
|
-
destPath: "/v2/
|
|
350
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
351
|
+
destPath: "/v2/orders"
|
|
344
352
|
}
|
|
345
353
|
],
|
|
346
354
|
"forums._base_domain_": [
|
|
347
355
|
{
|
|
348
|
-
srcPath: "/_api/paid-plans/v2/
|
|
349
|
-
destPath: "/v2/
|
|
356
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
357
|
+
destPath: "/v2/orders"
|
|
350
358
|
}
|
|
351
359
|
],
|
|
352
360
|
"forums.wixapps.net": [
|
|
353
361
|
{
|
|
354
|
-
srcPath: "/_api/paid-plans/v2/
|
|
355
|
-
destPath: "/v2/
|
|
362
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
363
|
+
destPath: "/v2/orders"
|
|
356
364
|
}
|
|
357
365
|
],
|
|
358
366
|
"manage._base_domain_": [
|
|
359
367
|
{
|
|
360
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
361
|
-
destPath: "/v2/
|
|
362
|
-
},
|
|
363
|
-
{
|
|
364
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
365
|
-
destPath: "/v2/checkout"
|
|
368
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
369
|
+
destPath: "/v2/orders"
|
|
366
370
|
},
|
|
367
371
|
{
|
|
368
|
-
srcPath: "/
|
|
369
|
-
destPath: "/v2/
|
|
372
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
373
|
+
destPath: "/v2/orders"
|
|
370
374
|
}
|
|
371
375
|
],
|
|
372
376
|
"www.wixapis.com": [
|
|
373
377
|
{
|
|
374
|
-
srcPath: "/pricing-plans/v2/
|
|
375
|
-
destPath: "/v2/
|
|
378
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
379
|
+
destPath: "/v2/orders"
|
|
376
380
|
}
|
|
377
381
|
],
|
|
378
382
|
_: [
|
|
379
383
|
{
|
|
380
|
-
srcPath: "/
|
|
381
|
-
destPath: "/v2/
|
|
382
|
-
},
|
|
383
|
-
{
|
|
384
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
385
|
-
destPath: "/v2/checkout"
|
|
384
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
385
|
+
destPath: "/v2/orders"
|
|
386
386
|
},
|
|
387
387
|
{
|
|
388
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
389
|
-
destPath: "/v2/
|
|
388
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
389
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
395
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
401
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
407
|
+
destPath: "/v2/orders"
|
|
408
408
|
},
|
|
409
409
|
{
|
|
410
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
411
|
-
destPath: "/v2/
|
|
410
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
411
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
417
|
+
destPath: "/v2/orders"
|
|
418
418
|
},
|
|
419
419
|
{
|
|
420
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
421
|
-
destPath: "/v2/
|
|
420
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
421
|
+
destPath: "/v2/orders"
|
|
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
|
|
430
|
-
const serializedData = transformPaths(payload, [
|
|
431
|
-
{
|
|
432
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
433
|
-
paths: TRANSFORM_PATHS_0
|
|
434
|
-
}
|
|
435
|
-
]);
|
|
428
|
+
function managementGetOrder(payload) {
|
|
429
|
+
function __managementGetOrder({ host }) {
|
|
436
430
|
const metadata = {
|
|
437
431
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
438
|
-
method: "
|
|
439
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
432
|
+
method: "GET",
|
|
433
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
440
434
|
packageName: PACKAGE_NAME,
|
|
441
435
|
migrationOptions: {
|
|
442
436
|
optInTransformResponse: true
|
|
443
437
|
},
|
|
444
|
-
url:
|
|
445
|
-
protoPath: "/v2/
|
|
446
|
-
data:
|
|
438
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
439
|
+
protoPath: "/v2/orders/{id}",
|
|
440
|
+
data: payload,
|
|
447
441
|
host
|
|
448
442
|
}),
|
|
449
|
-
|
|
443
|
+
params: toURLSearchParams(payload),
|
|
450
444
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
451
445
|
{
|
|
452
446
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
453
|
-
paths:
|
|
447
|
+
paths: TRANSFORM_PATHS_0
|
|
454
448
|
}
|
|
455
449
|
])
|
|
456
450
|
};
|
|
457
451
|
return metadata;
|
|
458
452
|
}
|
|
459
|
-
return
|
|
453
|
+
return __managementGetOrder;
|
|
460
454
|
}
|
|
461
|
-
function
|
|
462
|
-
function
|
|
455
|
+
function managementListOrders(payload) {
|
|
456
|
+
function __managementListOrders({ host }) {
|
|
463
457
|
const serializedData = transformPaths(payload, [
|
|
464
458
|
{
|
|
465
|
-
transformFn:
|
|
466
|
-
paths:
|
|
459
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
460
|
+
paths: TRANSFORM_PATHS_1
|
|
467
461
|
}
|
|
468
462
|
]);
|
|
469
463
|
const metadata = {
|
|
470
464
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
471
|
-
method: "
|
|
472
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
465
|
+
method: "GET",
|
|
466
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
473
467
|
packageName: PACKAGE_NAME,
|
|
474
468
|
migrationOptions: {
|
|
475
469
|
optInTransformResponse: true
|
|
476
470
|
},
|
|
477
|
-
url:
|
|
478
|
-
protoPath: "/v2/
|
|
471
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
472
|
+
protoPath: "/v2/orders",
|
|
479
473
|
data: serializedData,
|
|
480
474
|
host
|
|
481
475
|
}),
|
|
482
|
-
|
|
476
|
+
params: toURLSearchParams(serializedData, true),
|
|
483
477
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
484
478
|
{
|
|
485
479
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
486
|
-
paths:
|
|
480
|
+
paths: TRANSFORM_PATHS_2
|
|
487
481
|
}
|
|
488
482
|
])
|
|
489
483
|
};
|
|
490
484
|
return metadata;
|
|
491
485
|
}
|
|
492
|
-
return
|
|
486
|
+
return __managementListOrders;
|
|
493
487
|
}
|
|
494
|
-
function
|
|
495
|
-
function
|
|
488
|
+
function postponeEndDate(payload) {
|
|
489
|
+
function __postponeEndDate({ host }) {
|
|
496
490
|
const serializedData = transformPaths(payload, [
|
|
497
491
|
{
|
|
498
492
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
499
|
-
paths:
|
|
493
|
+
paths: TRANSFORM_PATHS_3
|
|
500
494
|
}
|
|
501
495
|
]);
|
|
502
496
|
const metadata = {
|
|
503
497
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
504
|
-
method: "
|
|
505
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
498
|
+
method: "PATCH",
|
|
499
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
506
500
|
packageName: PACKAGE_NAME,
|
|
507
501
|
migrationOptions: {
|
|
508
502
|
optInTransformResponse: true
|
|
509
503
|
},
|
|
510
|
-
url:
|
|
511
|
-
protoPath: "/v2/
|
|
504
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
505
|
+
protoPath: "/v2/orders/{id}",
|
|
512
506
|
data: serializedData,
|
|
513
507
|
host
|
|
514
508
|
}),
|
|
515
|
-
data: serializedData
|
|
516
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
517
|
-
{
|
|
518
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
519
|
-
paths: TRANSFORM_PATHS_1
|
|
520
|
-
}
|
|
521
|
-
])
|
|
509
|
+
data: serializedData
|
|
522
510
|
};
|
|
523
511
|
return metadata;
|
|
524
512
|
}
|
|
525
|
-
return
|
|
513
|
+
return __postponeEndDate;
|
|
526
514
|
}
|
|
527
|
-
function
|
|
528
|
-
function
|
|
529
|
-
const serializedData = transformPaths(payload, [
|
|
530
|
-
{
|
|
531
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
532
|
-
paths: TRANSFORM_PATHS_0
|
|
533
|
-
}
|
|
534
|
-
]);
|
|
515
|
+
function cancelOrder(payload) {
|
|
516
|
+
function __cancelOrder({ host }) {
|
|
535
517
|
const metadata = {
|
|
536
518
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
537
519
|
method: "POST",
|
|
538
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
520
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
539
521
|
packageName: PACKAGE_NAME,
|
|
540
522
|
migrationOptions: {
|
|
541
523
|
optInTransformResponse: true
|
|
542
524
|
},
|
|
543
|
-
url:
|
|
544
|
-
protoPath: "/v2/
|
|
545
|
-
data:
|
|
525
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
526
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
527
|
+
data: payload,
|
|
546
528
|
host
|
|
547
529
|
}),
|
|
548
|
-
data:
|
|
549
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
550
|
-
{
|
|
551
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
552
|
-
paths: TRANSFORM_PATHS_1
|
|
553
|
-
}
|
|
554
|
-
])
|
|
530
|
+
data: payload
|
|
555
531
|
};
|
|
556
532
|
return metadata;
|
|
557
533
|
}
|
|
558
|
-
return
|
|
534
|
+
return __cancelOrder;
|
|
559
535
|
}
|
|
560
|
-
function
|
|
561
|
-
function
|
|
536
|
+
function markAsPaid(payload) {
|
|
537
|
+
function __markAsPaid({ host }) {
|
|
562
538
|
const metadata = {
|
|
563
539
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
564
540
|
method: "POST",
|
|
565
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
541
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
566
542
|
packageName: PACKAGE_NAME,
|
|
567
543
|
migrationOptions: {
|
|
568
544
|
optInTransformResponse: true
|
|
569
545
|
},
|
|
570
|
-
url:
|
|
571
|
-
protoPath: "/v2/
|
|
546
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
547
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
572
548
|
data: payload,
|
|
573
549
|
host
|
|
574
550
|
}),
|
|
@@ -576,70 +552,52 @@ function getPricePreview(payload) {
|
|
|
576
552
|
};
|
|
577
553
|
return metadata;
|
|
578
554
|
}
|
|
579
|
-
return
|
|
555
|
+
return __markAsPaid;
|
|
580
556
|
}
|
|
581
|
-
function
|
|
582
|
-
function
|
|
557
|
+
function pauseOrder(payload) {
|
|
558
|
+
function __pauseOrder({ host }) {
|
|
583
559
|
const metadata = {
|
|
584
560
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
585
|
-
method: "
|
|
586
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
561
|
+
method: "POST",
|
|
562
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
587
563
|
packageName: PACKAGE_NAME,
|
|
588
564
|
migrationOptions: {
|
|
589
565
|
optInTransformResponse: true
|
|
590
566
|
},
|
|
591
567
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
592
|
-
protoPath: "/v2/orders/{id}",
|
|
568
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
593
569
|
data: payload,
|
|
594
570
|
host
|
|
595
571
|
}),
|
|
596
|
-
|
|
597
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
598
|
-
{
|
|
599
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
600
|
-
paths: TRANSFORM_PATHS_1
|
|
601
|
-
}
|
|
602
|
-
])
|
|
572
|
+
data: payload
|
|
603
573
|
};
|
|
604
574
|
return metadata;
|
|
605
575
|
}
|
|
606
|
-
return
|
|
576
|
+
return __pauseOrder;
|
|
607
577
|
}
|
|
608
|
-
function
|
|
609
|
-
function
|
|
610
|
-
const serializedData = transformPaths(payload, [
|
|
611
|
-
{
|
|
612
|
-
transformFn: transformSDKFloatToRESTFloat,
|
|
613
|
-
paths: TRANSFORM_PATHS_2
|
|
614
|
-
}
|
|
615
|
-
]);
|
|
578
|
+
function resumeOrder(payload) {
|
|
579
|
+
function __resumeOrder({ host }) {
|
|
616
580
|
const metadata = {
|
|
617
581
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
618
|
-
method: "
|
|
619
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
582
|
+
method: "POST",
|
|
583
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
620
584
|
packageName: PACKAGE_NAME,
|
|
621
585
|
migrationOptions: {
|
|
622
586
|
optInTransformResponse: true
|
|
623
587
|
},
|
|
624
588
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
625
|
-
protoPath: "/v2/orders",
|
|
626
|
-
data:
|
|
589
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
590
|
+
data: payload,
|
|
627
591
|
host
|
|
628
592
|
}),
|
|
629
|
-
|
|
630
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
631
|
-
{
|
|
632
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
633
|
-
paths: TRANSFORM_PATHS_3
|
|
634
|
-
}
|
|
635
|
-
])
|
|
593
|
+
data: payload
|
|
636
594
|
};
|
|
637
595
|
return metadata;
|
|
638
596
|
}
|
|
639
|
-
return
|
|
597
|
+
return __resumeOrder;
|
|
640
598
|
}
|
|
641
|
-
function
|
|
642
|
-
function
|
|
599
|
+
function createOnlineOrder(payload) {
|
|
600
|
+
function __createOnlineOrder({ host }) {
|
|
643
601
|
const serializedData = transformPaths(payload, [
|
|
644
602
|
{
|
|
645
603
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
@@ -648,98 +606,140 @@ function postponeEndDate(payload) {
|
|
|
648
606
|
]);
|
|
649
607
|
const metadata = {
|
|
650
608
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
651
|
-
method: "
|
|
652
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
609
|
+
method: "POST",
|
|
610
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
653
611
|
packageName: PACKAGE_NAME,
|
|
654
612
|
migrationOptions: {
|
|
655
613
|
optInTransformResponse: true
|
|
656
614
|
},
|
|
657
|
-
url:
|
|
658
|
-
protoPath: "/v2/orders/
|
|
615
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
616
|
+
protoPath: "/v2/checkout/orders/online",
|
|
659
617
|
data: serializedData,
|
|
660
618
|
host
|
|
661
619
|
}),
|
|
662
|
-
data: serializedData
|
|
620
|
+
data: serializedData,
|
|
621
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
622
|
+
{
|
|
623
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
624
|
+
paths: TRANSFORM_PATHS_0
|
|
625
|
+
}
|
|
626
|
+
])
|
|
663
627
|
};
|
|
664
628
|
return metadata;
|
|
665
629
|
}
|
|
666
|
-
return
|
|
630
|
+
return __createOnlineOrder;
|
|
667
631
|
}
|
|
668
|
-
function
|
|
669
|
-
function
|
|
632
|
+
function createOfflineOrder(payload) {
|
|
633
|
+
function __createOfflineOrder({ host }) {
|
|
634
|
+
const serializedData = transformPaths(payload, [
|
|
635
|
+
{
|
|
636
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
637
|
+
paths: TRANSFORM_PATHS_4
|
|
638
|
+
}
|
|
639
|
+
]);
|
|
670
640
|
const metadata = {
|
|
671
641
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
672
642
|
method: "POST",
|
|
673
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
643
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
674
644
|
packageName: PACKAGE_NAME,
|
|
675
645
|
migrationOptions: {
|
|
676
646
|
optInTransformResponse: true
|
|
677
647
|
},
|
|
678
|
-
url:
|
|
679
|
-
protoPath: "/v2/orders/
|
|
680
|
-
data:
|
|
648
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
649
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
650
|
+
data: serializedData,
|
|
681
651
|
host
|
|
682
652
|
}),
|
|
683
|
-
data:
|
|
653
|
+
data: serializedData,
|
|
654
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
655
|
+
{
|
|
656
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
657
|
+
paths: TRANSFORM_PATHS_0
|
|
658
|
+
}
|
|
659
|
+
])
|
|
684
660
|
};
|
|
685
661
|
return metadata;
|
|
686
662
|
}
|
|
687
|
-
return
|
|
663
|
+
return __createOfflineOrder;
|
|
688
664
|
}
|
|
689
|
-
function
|
|
690
|
-
function
|
|
665
|
+
function getOnlineOrderPreview(payload) {
|
|
666
|
+
function __getOnlineOrderPreview({ host }) {
|
|
667
|
+
const serializedData = transformPaths(payload, [
|
|
668
|
+
{
|
|
669
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
670
|
+
paths: TRANSFORM_PATHS_4
|
|
671
|
+
}
|
|
672
|
+
]);
|
|
691
673
|
const metadata = {
|
|
692
674
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
693
675
|
method: "POST",
|
|
694
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
676
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
695
677
|
packageName: PACKAGE_NAME,
|
|
696
678
|
migrationOptions: {
|
|
697
679
|
optInTransformResponse: true
|
|
698
680
|
},
|
|
699
|
-
url:
|
|
700
|
-
protoPath: "/v2/orders/
|
|
701
|
-
data:
|
|
681
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
682
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
683
|
+
data: serializedData,
|
|
702
684
|
host
|
|
703
685
|
}),
|
|
704
|
-
data:
|
|
686
|
+
data: serializedData,
|
|
687
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
688
|
+
{
|
|
689
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
690
|
+
paths: TRANSFORM_PATHS_0
|
|
691
|
+
}
|
|
692
|
+
])
|
|
705
693
|
};
|
|
706
694
|
return metadata;
|
|
707
695
|
}
|
|
708
|
-
return
|
|
696
|
+
return __getOnlineOrderPreview;
|
|
709
697
|
}
|
|
710
|
-
function
|
|
711
|
-
function
|
|
698
|
+
function getOfflineOrderPreview(payload) {
|
|
699
|
+
function __getOfflineOrderPreview({ host }) {
|
|
700
|
+
const serializedData = transformPaths(payload, [
|
|
701
|
+
{
|
|
702
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
703
|
+
paths: TRANSFORM_PATHS_4
|
|
704
|
+
}
|
|
705
|
+
]);
|
|
712
706
|
const metadata = {
|
|
713
707
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
714
708
|
method: "POST",
|
|
715
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
709
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
716
710
|
packageName: PACKAGE_NAME,
|
|
717
711
|
migrationOptions: {
|
|
718
712
|
optInTransformResponse: true
|
|
719
713
|
},
|
|
720
|
-
url:
|
|
721
|
-
protoPath: "/v2/orders/
|
|
722
|
-
data:
|
|
714
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
715
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
716
|
+
data: serializedData,
|
|
723
717
|
host
|
|
724
718
|
}),
|
|
725
|
-
data:
|
|
719
|
+
data: serializedData,
|
|
720
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
721
|
+
{
|
|
722
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
723
|
+
paths: TRANSFORM_PATHS_0
|
|
724
|
+
}
|
|
725
|
+
])
|
|
726
726
|
};
|
|
727
727
|
return metadata;
|
|
728
728
|
}
|
|
729
|
-
return
|
|
729
|
+
return __getOfflineOrderPreview;
|
|
730
730
|
}
|
|
731
|
-
function
|
|
732
|
-
function
|
|
731
|
+
function getPricePreview(payload) {
|
|
732
|
+
function __getPricePreview({ 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.CheckoutService.GetPricePreview",
|
|
737
737
|
packageName: PACKAGE_NAME,
|
|
738
738
|
migrationOptions: {
|
|
739
739
|
optInTransformResponse: true
|
|
740
740
|
},
|
|
741
|
-
url:
|
|
742
|
-
protoPath: "/v2/orders/
|
|
741
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
742
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
743
743
|
data: payload,
|
|
744
744
|
host
|
|
745
745
|
}),
|
|
@@ -747,7 +747,7 @@ function resumeOrder(payload) {
|
|
|
747
747
|
};
|
|
748
748
|
return metadata;
|
|
749
749
|
}
|
|
750
|
-
return
|
|
750
|
+
return __getPricePreview;
|
|
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_0
|
|
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_1
|
|
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_2
|
|
805
805
|
}
|
|
806
806
|
])
|
|
807
807
|
};
|
|
@@ -894,14 +894,6 @@ 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 || {});
|
|
905
897
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
906
898
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
907
899
|
Set2["BASIC"] = "BASIC";
|
|
@@ -924,37 +916,45 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
924
916
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
925
917
|
return ReasonNotSuspendable2;
|
|
926
918
|
})(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 managementGetOrder2() {
|
|
930
|
+
const payload = { id: ":id" };
|
|
931
|
+
const getRequestOptions = managementGetOrder(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/
|
|
940
|
-
pathParams: {},
|
|
938
|
+
httpMethod: "GET",
|
|
939
|
+
path: "/v2/orders/{id}",
|
|
940
|
+
pathParams: { id: "id" },
|
|
941
941
|
__requestType: null,
|
|
942
942
|
__originalRequestType: null,
|
|
943
943
|
__responseType: null,
|
|
944
944
|
__originalResponseType: null
|
|
945
945
|
};
|
|
946
946
|
}
|
|
947
|
-
function
|
|
947
|
+
function managementListOrders2() {
|
|
948
948
|
const payload = {};
|
|
949
|
-
const getRequestOptions =
|
|
949
|
+
const getRequestOptions = managementListOrders(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/
|
|
956
|
+
httpMethod: "GET",
|
|
957
|
+
path: "/v2/orders",
|
|
958
958
|
pathParams: {},
|
|
959
959
|
__requestType: null,
|
|
960
960
|
__originalRequestType: null,
|
|
@@ -962,27 +962,27 @@ function createOfflineOrder2() {
|
|
|
962
962
|
__originalResponseType: null
|
|
963
963
|
};
|
|
964
964
|
}
|
|
965
|
-
function
|
|
966
|
-
const payload = {};
|
|
967
|
-
const getRequestOptions =
|
|
965
|
+
function postponeEndDate2() {
|
|
966
|
+
const payload = { id: ":id" };
|
|
967
|
+
const getRequestOptions = postponeEndDate(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/
|
|
976
|
-
pathParams: {},
|
|
974
|
+
httpMethod: "PATCH",
|
|
975
|
+
path: "/v2/orders/{id}",
|
|
976
|
+
pathParams: { id: "id" },
|
|
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 cancelOrder2() {
|
|
984
|
+
const payload = { id: ":id" };
|
|
985
|
+
const getRequestOptions = cancelOrder(payload);
|
|
986
986
|
const getUrl = (context) => {
|
|
987
987
|
const { url } = getRequestOptions(context);
|
|
988
988
|
return url;
|
|
@@ -990,17 +990,17 @@ function getOfflineOrderPreview2() {
|
|
|
990
990
|
return {
|
|
991
991
|
getUrl,
|
|
992
992
|
httpMethod: "POST",
|
|
993
|
-
path: "/v2/
|
|
994
|
-
pathParams: {},
|
|
993
|
+
path: "/v2/orders/{id}/cancel",
|
|
994
|
+
pathParams: { id: "id" },
|
|
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 markAsPaid2() {
|
|
1002
|
+
const payload = { id: ":id" };
|
|
1003
|
+
const getRequestOptions = markAsPaid(payload);
|
|
1004
1004
|
const getUrl = (context) => {
|
|
1005
1005
|
const { url } = getRequestOptions(context);
|
|
1006
1006
|
return url;
|
|
@@ -1008,25 +1008,25 @@ function getPricePreview2() {
|
|
|
1008
1008
|
return {
|
|
1009
1009
|
getUrl,
|
|
1010
1010
|
httpMethod: "POST",
|
|
1011
|
-
path: "/v2/
|
|
1012
|
-
pathParams: {},
|
|
1011
|
+
path: "/v2/orders/{id}/mark-as-paid",
|
|
1012
|
+
pathParams: { id: "id" },
|
|
1013
1013
|
__requestType: null,
|
|
1014
1014
|
__originalRequestType: null,
|
|
1015
1015
|
__responseType: null,
|
|
1016
1016
|
__originalResponseType: null
|
|
1017
1017
|
};
|
|
1018
1018
|
}
|
|
1019
|
-
function
|
|
1019
|
+
function pauseOrder2() {
|
|
1020
1020
|
const payload = { id: ":id" };
|
|
1021
|
-
const getRequestOptions =
|
|
1021
|
+
const getRequestOptions = pauseOrder(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: "POST",
|
|
1029
|
+
path: "/v2/orders/{id}/pause",
|
|
1030
1030
|
pathParams: { id: "id" },
|
|
1031
1031
|
__requestType: null,
|
|
1032
1032
|
__originalRequestType: null,
|
|
@@ -1034,45 +1034,45 @@ function managementGetOrder2() {
|
|
|
1034
1034
|
__originalResponseType: null
|
|
1035
1035
|
};
|
|
1036
1036
|
}
|
|
1037
|
-
function
|
|
1038
|
-
const payload = {};
|
|
1039
|
-
const getRequestOptions =
|
|
1037
|
+
function resumeOrder2() {
|
|
1038
|
+
const payload = { id: ":id" };
|
|
1039
|
+
const getRequestOptions = resumeOrder(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: "POST",
|
|
1047
|
+
path: "/v2/orders/{id}/resume",
|
|
1048
|
+
pathParams: { id: "id" },
|
|
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 createOnlineOrder2() {
|
|
1056
|
+
const payload = {};
|
|
1057
|
+
const getRequestOptions = createOnlineOrder(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/orders/
|
|
1066
|
-
pathParams: {
|
|
1064
|
+
httpMethod: "POST",
|
|
1065
|
+
path: "/v2/checkout/orders/online",
|
|
1066
|
+
pathParams: {},
|
|
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 createOfflineOrder2() {
|
|
1074
|
+
const payload = {};
|
|
1075
|
+
const getRequestOptions = createOfflineOrder(payload);
|
|
1076
1076
|
const getUrl = (context) => {
|
|
1077
1077
|
const { url } = getRequestOptions(context);
|
|
1078
1078
|
return url;
|
|
@@ -1080,17 +1080,17 @@ function cancelOrder2() {
|
|
|
1080
1080
|
return {
|
|
1081
1081
|
getUrl,
|
|
1082
1082
|
httpMethod: "POST",
|
|
1083
|
-
path: "/v2/orders/
|
|
1084
|
-
pathParams: {
|
|
1083
|
+
path: "/v2/checkout/orders/offline",
|
|
1084
|
+
pathParams: {},
|
|
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 getOnlineOrderPreview2() {
|
|
1092
|
+
const payload = {};
|
|
1093
|
+
const getRequestOptions = getOnlineOrderPreview(payload);
|
|
1094
1094
|
const getUrl = (context) => {
|
|
1095
1095
|
const { url } = getRequestOptions(context);
|
|
1096
1096
|
return url;
|
|
@@ -1098,17 +1098,17 @@ function markAsPaid2() {
|
|
|
1098
1098
|
return {
|
|
1099
1099
|
getUrl,
|
|
1100
1100
|
httpMethod: "POST",
|
|
1101
|
-
path: "/v2/orders/
|
|
1102
|
-
pathParams: {
|
|
1101
|
+
path: "/v2/checkout/orders/preview-online",
|
|
1102
|
+
pathParams: {},
|
|
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 getOfflineOrderPreview2() {
|
|
1110
|
+
const payload = {};
|
|
1111
|
+
const getRequestOptions = getOfflineOrderPreview(payload);
|
|
1112
1112
|
const getUrl = (context) => {
|
|
1113
1113
|
const { url } = getRequestOptions(context);
|
|
1114
1114
|
return url;
|
|
@@ -1116,17 +1116,17 @@ function pauseOrder2() {
|
|
|
1116
1116
|
return {
|
|
1117
1117
|
getUrl,
|
|
1118
1118
|
httpMethod: "POST",
|
|
1119
|
-
path: "/v2/orders/
|
|
1120
|
-
pathParams: {
|
|
1119
|
+
path: "/v2/checkout/orders/preview-offline",
|
|
1120
|
+
pathParams: {},
|
|
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 getPricePreview2() {
|
|
1128
|
+
const payload = {};
|
|
1129
|
+
const getRequestOptions = getPricePreview(payload);
|
|
1130
1130
|
const getUrl = (context) => {
|
|
1131
1131
|
const { url } = getRequestOptions(context);
|
|
1132
1132
|
return url;
|
|
@@ -1134,8 +1134,8 @@ function resumeOrder2() {
|
|
|
1134
1134
|
return {
|
|
1135
1135
|
getUrl,
|
|
1136
1136
|
httpMethod: "POST",
|
|
1137
|
-
path: "/v2/orders/
|
|
1138
|
-
pathParams: {
|
|
1137
|
+
path: "/v2/checkout/orders/price-preview",
|
|
1138
|
+
pathParams: {},
|
|
1139
1139
|
__requestType: null,
|
|
1140
1140
|
__originalRequestType: null,
|
|
1141
1141
|
__responseType: null,
|