@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
|
@@ -12,7 +12,8 @@ import { transformSDKTimestampToRESTTimestamp } from "@wix/sdk-runtime/transform
|
|
|
12
12
|
import { transformRESTTimestampToSDKTimestamp } from "@wix/sdk-runtime/transformations/timestamp";
|
|
13
13
|
import { transformPaths } from "@wix/sdk-runtime/transformations/transform-paths";
|
|
14
14
|
import { resolveUrl } from "@wix/sdk-runtime/rest-modules";
|
|
15
|
-
var TRANSFORM_PATHS_0 = [
|
|
15
|
+
var TRANSFORM_PATHS_0 = [{ path: "startDate" }];
|
|
16
|
+
var TRANSFORM_PATHS_1 = [
|
|
16
17
|
{ path: "order.startDate" },
|
|
17
18
|
{ path: "order.endDate" },
|
|
18
19
|
{ path: "order.earliestEndDate" },
|
|
@@ -26,11 +27,11 @@ var TRANSFORM_PATHS_0 = [
|
|
|
26
27
|
{ path: "order.cycles.startedDate" },
|
|
27
28
|
{ path: "order.cycles.endedDate" }
|
|
28
29
|
];
|
|
29
|
-
var
|
|
30
|
+
var TRANSFORM_PATHS_2 = [
|
|
30
31
|
{ path: "sorting.origin.latitude" },
|
|
31
32
|
{ path: "sorting.origin.longitude" }
|
|
32
33
|
];
|
|
33
|
-
var
|
|
34
|
+
var TRANSFORM_PATHS_3 = [
|
|
34
35
|
{ path: "orders.startDate" },
|
|
35
36
|
{ path: "orders.endDate" },
|
|
36
37
|
{ path: "orders.earliestEndDate" },
|
|
@@ -44,8 +45,7 @@ var TRANSFORM_PATHS_2 = [
|
|
|
44
45
|
{ path: "orders.cycles.startedDate" },
|
|
45
46
|
{ path: "orders.cycles.endedDate" }
|
|
46
47
|
];
|
|
47
|
-
var
|
|
48
|
-
var TRANSFORM_PATHS_4 = [{ path: "startDate" }];
|
|
48
|
+
var TRANSFORM_PATHS_4 = [{ path: "endDate" }];
|
|
49
49
|
function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts) {
|
|
50
50
|
const domainToMappings = {
|
|
51
51
|
"api._api_base_domain_": [
|
|
@@ -137,421 +137,445 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
137
137
|
};
|
|
138
138
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
139
139
|
}
|
|
140
|
-
function
|
|
140
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
141
141
|
const domainToMappings = {
|
|
142
142
|
"api._api_base_domain_": [
|
|
143
143
|
{
|
|
144
|
-
srcPath: "/
|
|
144
|
+
srcPath: "/order-management-service-proxy",
|
|
145
145
|
destPath: ""
|
|
146
146
|
}
|
|
147
147
|
],
|
|
148
148
|
"*.dev.wix-code.com": [
|
|
149
149
|
{
|
|
150
|
-
srcPath: "/_api/paid-plans/v2/
|
|
151
|
-
destPath: "/v2/
|
|
150
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
151
|
+
destPath: "/v2/orders"
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
155
|
-
destPath: "/v2/
|
|
154
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
155
|
+
destPath: "/v2/orders"
|
|
156
156
|
}
|
|
157
157
|
],
|
|
158
158
|
"*.wixapps.net": [
|
|
159
159
|
{
|
|
160
|
-
srcPath: "/_api/paid-plans/v2/
|
|
161
|
-
destPath: "/v2/
|
|
160
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
161
|
+
destPath: "/v2/orders"
|
|
162
162
|
}
|
|
163
163
|
],
|
|
164
164
|
"editor-flow.wixapps.net": [
|
|
165
165
|
{
|
|
166
|
-
srcPath: "/_api/paid-plans/v2/
|
|
167
|
-
destPath: "/v2/
|
|
166
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
167
|
+
destPath: "/v2/orders"
|
|
168
168
|
}
|
|
169
169
|
],
|
|
170
170
|
"editor._base_domain_": [
|
|
171
171
|
{
|
|
172
|
-
srcPath: "/_api/paid-plans/v2/
|
|
173
|
-
destPath: "/v2/
|
|
172
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
173
|
+
destPath: "/v2/orders"
|
|
174
174
|
},
|
|
175
175
|
{
|
|
176
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
177
|
-
destPath: "/v2/
|
|
176
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
177
|
+
destPath: "/v2/orders"
|
|
178
178
|
}
|
|
179
179
|
],
|
|
180
180
|
"blocks._base_domain_": [
|
|
181
181
|
{
|
|
182
|
-
srcPath: "/_api/paid-plans/v2/
|
|
183
|
-
destPath: "/v2/
|
|
182
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
183
|
+
destPath: "/v2/orders"
|
|
184
184
|
},
|
|
185
185
|
{
|
|
186
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
187
|
-
destPath: "/v2/
|
|
186
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
187
|
+
destPath: "/v2/orders"
|
|
188
188
|
}
|
|
189
189
|
],
|
|
190
190
|
"create.editorx": [
|
|
191
191
|
{
|
|
192
|
-
srcPath: "/_api/paid-plans/v2/
|
|
193
|
-
destPath: "/v2/
|
|
192
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
193
|
+
destPath: "/v2/orders"
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
197
|
-
destPath: "/v2/
|
|
196
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
197
|
+
destPath: "/v2/orders"
|
|
198
198
|
}
|
|
199
199
|
],
|
|
200
200
|
"editor.wixapps.net": [
|
|
201
201
|
{
|
|
202
|
-
srcPath: "/_api/paid-plans/v2/
|
|
203
|
-
destPath: "/v2/
|
|
202
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
203
|
+
destPath: "/v2/orders"
|
|
204
204
|
},
|
|
205
205
|
{
|
|
206
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
207
|
-
destPath: "/v2/
|
|
206
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
207
|
+
destPath: "/v2/orders"
|
|
208
208
|
}
|
|
209
209
|
],
|
|
210
210
|
"forums._base_domain_": [
|
|
211
211
|
{
|
|
212
|
-
srcPath: "/_api/paid-plans/v2/
|
|
213
|
-
destPath: "/v2/
|
|
212
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
213
|
+
destPath: "/v2/orders"
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
216
|
"forums.wixapps.net": [
|
|
217
217
|
{
|
|
218
|
-
srcPath: "/_api/paid-plans/v2/
|
|
219
|
-
destPath: "/v2/
|
|
218
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
219
|
+
destPath: "/v2/orders"
|
|
220
220
|
}
|
|
221
221
|
],
|
|
222
222
|
"manage._base_domain_": [
|
|
223
223
|
{
|
|
224
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
225
|
-
destPath: "/v2/
|
|
226
|
-
},
|
|
227
|
-
{
|
|
228
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
229
|
-
destPath: "/v2/checkout"
|
|
224
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
225
|
+
destPath: "/v2/orders"
|
|
230
226
|
},
|
|
231
227
|
{
|
|
232
|
-
srcPath: "/
|
|
233
|
-
destPath: "/v2/
|
|
228
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
229
|
+
destPath: "/v2/orders"
|
|
234
230
|
}
|
|
235
231
|
],
|
|
236
232
|
"www.wixapis.com": [
|
|
237
233
|
{
|
|
238
|
-
srcPath: "/pricing-plans/v2/
|
|
239
|
-
destPath: "/v2/
|
|
234
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
235
|
+
destPath: "/v2/orders"
|
|
240
236
|
}
|
|
241
237
|
],
|
|
242
238
|
_: [
|
|
243
239
|
{
|
|
244
|
-
srcPath: "/
|
|
245
|
-
destPath: "/v2/
|
|
246
|
-
},
|
|
247
|
-
{
|
|
248
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
249
|
-
destPath: "/v2/checkout"
|
|
240
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
241
|
+
destPath: "/v2/orders"
|
|
250
242
|
},
|
|
251
243
|
{
|
|
252
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
253
|
-
destPath: "/v2/
|
|
244
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
245
|
+
destPath: "/v2/orders"
|
|
254
246
|
}
|
|
255
247
|
],
|
|
256
248
|
"*.pub.wix-code.com": [
|
|
257
249
|
{
|
|
258
|
-
srcPath: "/_api/paid-plans/v2/
|
|
259
|
-
destPath: "/v2/
|
|
250
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
251
|
+
destPath: "/v2/orders"
|
|
260
252
|
}
|
|
261
253
|
],
|
|
262
254
|
"www._base_domain_": [
|
|
263
255
|
{
|
|
264
|
-
srcPath: "/_api/paid-plans/v2/
|
|
265
|
-
destPath: "/v2/
|
|
256
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
257
|
+
destPath: "/v2/orders"
|
|
266
258
|
}
|
|
267
259
|
],
|
|
268
260
|
"apps._base_domain_": [
|
|
269
261
|
{
|
|
270
|
-
srcPath: "/_api/paid-plans/v2/
|
|
271
|
-
destPath: "/v2/
|
|
262
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
263
|
+
destPath: "/v2/orders"
|
|
272
264
|
},
|
|
273
265
|
{
|
|
274
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
275
|
-
destPath: "/v2/
|
|
266
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
267
|
+
destPath: "/v2/orders"
|
|
276
268
|
}
|
|
277
269
|
],
|
|
278
270
|
"dev._base_domain_": [
|
|
279
271
|
{
|
|
280
|
-
srcPath: "/_api/paid-plans/v2/
|
|
281
|
-
destPath: "/v2/
|
|
272
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
273
|
+
destPath: "/v2/orders"
|
|
282
274
|
},
|
|
283
275
|
{
|
|
284
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
285
|
-
destPath: "/v2/
|
|
276
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
277
|
+
destPath: "/v2/orders"
|
|
286
278
|
}
|
|
287
279
|
]
|
|
288
280
|
};
|
|
289
281
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
290
282
|
}
|
|
291
|
-
function
|
|
283
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
292
284
|
const domainToMappings = {
|
|
293
285
|
"api._api_base_domain_": [
|
|
294
286
|
{
|
|
295
|
-
srcPath: "/
|
|
287
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
296
288
|
destPath: ""
|
|
297
289
|
}
|
|
298
290
|
],
|
|
299
291
|
"*.dev.wix-code.com": [
|
|
300
292
|
{
|
|
301
|
-
srcPath: "/_api/paid-plans/v2/
|
|
302
|
-
destPath: "/v2/
|
|
293
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
294
|
+
destPath: "/v2/checkout"
|
|
303
295
|
},
|
|
304
296
|
{
|
|
305
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
306
|
-
destPath: "/v2/
|
|
297
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
298
|
+
destPath: "/v2/checkout"
|
|
307
299
|
}
|
|
308
300
|
],
|
|
309
301
|
"*.wixapps.net": [
|
|
310
302
|
{
|
|
311
|
-
srcPath: "/_api/paid-plans/v2/
|
|
312
|
-
destPath: "/v2/
|
|
303
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
304
|
+
destPath: "/v2/checkout"
|
|
313
305
|
}
|
|
314
306
|
],
|
|
315
307
|
"editor-flow.wixapps.net": [
|
|
316
308
|
{
|
|
317
|
-
srcPath: "/_api/paid-plans/v2/
|
|
318
|
-
destPath: "/v2/
|
|
309
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
310
|
+
destPath: "/v2/checkout"
|
|
319
311
|
}
|
|
320
312
|
],
|
|
321
313
|
"editor._base_domain_": [
|
|
322
314
|
{
|
|
323
|
-
srcPath: "/_api/paid-plans/v2/
|
|
324
|
-
destPath: "/v2/
|
|
315
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
316
|
+
destPath: "/v2/checkout"
|
|
325
317
|
},
|
|
326
318
|
{
|
|
327
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
328
|
-
destPath: "/v2/
|
|
319
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
320
|
+
destPath: "/v2/checkout"
|
|
329
321
|
}
|
|
330
322
|
],
|
|
331
323
|
"blocks._base_domain_": [
|
|
332
324
|
{
|
|
333
|
-
srcPath: "/_api/paid-plans/v2/
|
|
334
|
-
destPath: "/v2/
|
|
325
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
326
|
+
destPath: "/v2/checkout"
|
|
335
327
|
},
|
|
336
328
|
{
|
|
337
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
338
|
-
destPath: "/v2/
|
|
329
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
330
|
+
destPath: "/v2/checkout"
|
|
339
331
|
}
|
|
340
332
|
],
|
|
341
333
|
"create.editorx": [
|
|
342
334
|
{
|
|
343
|
-
srcPath: "/_api/paid-plans/v2/
|
|
344
|
-
destPath: "/v2/
|
|
335
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
336
|
+
destPath: "/v2/checkout"
|
|
345
337
|
},
|
|
346
338
|
{
|
|
347
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
348
|
-
destPath: "/v2/
|
|
339
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
340
|
+
destPath: "/v2/checkout"
|
|
349
341
|
}
|
|
350
342
|
],
|
|
351
343
|
"editor.wixapps.net": [
|
|
352
344
|
{
|
|
353
|
-
srcPath: "/_api/paid-plans/v2/
|
|
354
|
-
destPath: "/v2/
|
|
345
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
346
|
+
destPath: "/v2/checkout"
|
|
355
347
|
},
|
|
356
348
|
{
|
|
357
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
358
|
-
destPath: "/v2/
|
|
349
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
350
|
+
destPath: "/v2/checkout"
|
|
359
351
|
}
|
|
360
352
|
],
|
|
361
353
|
"forums._base_domain_": [
|
|
362
354
|
{
|
|
363
|
-
srcPath: "/_api/paid-plans/v2/
|
|
364
|
-
destPath: "/v2/
|
|
355
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
356
|
+
destPath: "/v2/checkout"
|
|
365
357
|
}
|
|
366
358
|
],
|
|
367
359
|
"forums.wixapps.net": [
|
|
368
360
|
{
|
|
369
|
-
srcPath: "/_api/paid-plans/v2/
|
|
370
|
-
destPath: "/v2/
|
|
361
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
362
|
+
destPath: "/v2/checkout"
|
|
371
363
|
}
|
|
372
364
|
],
|
|
373
365
|
"manage._base_domain_": [
|
|
374
366
|
{
|
|
375
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
376
|
-
destPath: "/v2/
|
|
367
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
368
|
+
destPath: "/v2/checkout"
|
|
377
369
|
},
|
|
378
370
|
{
|
|
379
|
-
srcPath: "/_api/paid-plans/v2/
|
|
380
|
-
destPath: "/v2/
|
|
371
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
372
|
+
destPath: "/v2/checkout"
|
|
373
|
+
},
|
|
374
|
+
{
|
|
375
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
376
|
+
destPath: "/v2/checkout"
|
|
381
377
|
}
|
|
382
378
|
],
|
|
383
379
|
"www.wixapis.com": [
|
|
384
380
|
{
|
|
385
|
-
srcPath: "/pricing-plans/v2/
|
|
386
|
-
destPath: "/v2/
|
|
381
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
382
|
+
destPath: "/v2/checkout"
|
|
387
383
|
}
|
|
388
384
|
],
|
|
389
385
|
_: [
|
|
390
386
|
{
|
|
391
|
-
srcPath: "/
|
|
392
|
-
destPath: "/v2/
|
|
387
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
388
|
+
destPath: "/v2/checkout"
|
|
393
389
|
},
|
|
394
390
|
{
|
|
395
|
-
srcPath: "/_api/
|
|
396
|
-
destPath: "/v2/
|
|
391
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
392
|
+
destPath: "/v2/checkout"
|
|
393
|
+
},
|
|
394
|
+
{
|
|
395
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
396
|
+
destPath: "/v2/checkout"
|
|
397
397
|
}
|
|
398
398
|
],
|
|
399
399
|
"*.pub.wix-code.com": [
|
|
400
400
|
{
|
|
401
|
-
srcPath: "/_api/paid-plans/v2/
|
|
402
|
-
destPath: "/v2/
|
|
401
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
402
|
+
destPath: "/v2/checkout"
|
|
403
403
|
}
|
|
404
404
|
],
|
|
405
405
|
"www._base_domain_": [
|
|
406
406
|
{
|
|
407
|
-
srcPath: "/_api/paid-plans/v2/
|
|
408
|
-
destPath: "/v2/
|
|
407
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
408
|
+
destPath: "/v2/checkout"
|
|
409
409
|
}
|
|
410
410
|
],
|
|
411
411
|
"apps._base_domain_": [
|
|
412
412
|
{
|
|
413
|
-
srcPath: "/_api/paid-plans/v2/
|
|
414
|
-
destPath: "/v2/
|
|
413
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
414
|
+
destPath: "/v2/checkout"
|
|
415
415
|
},
|
|
416
416
|
{
|
|
417
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
418
|
-
destPath: "/v2/
|
|
417
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
418
|
+
destPath: "/v2/checkout"
|
|
419
419
|
}
|
|
420
420
|
],
|
|
421
421
|
"dev._base_domain_": [
|
|
422
422
|
{
|
|
423
|
-
srcPath: "/_api/paid-plans/v2/
|
|
424
|
-
destPath: "/v2/
|
|
423
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
424
|
+
destPath: "/v2/checkout"
|
|
425
425
|
},
|
|
426
426
|
{
|
|
427
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
428
|
-
destPath: "/v2/
|
|
427
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
428
|
+
destPath: "/v2/checkout"
|
|
429
429
|
}
|
|
430
430
|
]
|
|
431
431
|
};
|
|
432
432
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
433
433
|
}
|
|
434
434
|
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
435
|
-
function
|
|
436
|
-
function
|
|
435
|
+
function createOnlineOrder(payload) {
|
|
436
|
+
function __createOnlineOrder({ host }) {
|
|
437
|
+
const serializedData = transformPaths(payload, [
|
|
438
|
+
{
|
|
439
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
440
|
+
paths: TRANSFORM_PATHS_0
|
|
441
|
+
}
|
|
442
|
+
]);
|
|
437
443
|
const metadata = {
|
|
438
444
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
439
|
-
method: "
|
|
440
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
445
|
+
method: "POST",
|
|
446
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
441
447
|
packageName: PACKAGE_NAME,
|
|
442
448
|
migrationOptions: {
|
|
443
449
|
optInTransformResponse: true
|
|
444
450
|
},
|
|
445
|
-
url:
|
|
446
|
-
protoPath: "/v2/orders/
|
|
447
|
-
data:
|
|
451
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
452
|
+
protoPath: "/v2/checkout/orders/online",
|
|
453
|
+
data: serializedData,
|
|
448
454
|
host
|
|
449
455
|
}),
|
|
450
|
-
|
|
456
|
+
data: serializedData,
|
|
451
457
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
452
458
|
{
|
|
453
459
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
454
|
-
paths:
|
|
460
|
+
paths: TRANSFORM_PATHS_1
|
|
455
461
|
}
|
|
456
462
|
])
|
|
457
463
|
};
|
|
458
464
|
return metadata;
|
|
459
465
|
}
|
|
460
|
-
return
|
|
466
|
+
return __createOnlineOrder;
|
|
461
467
|
}
|
|
462
|
-
function
|
|
463
|
-
function
|
|
468
|
+
function createOfflineOrder(payload) {
|
|
469
|
+
function __createOfflineOrder({ host }) {
|
|
464
470
|
const serializedData = transformPaths(payload, [
|
|
465
471
|
{
|
|
466
|
-
transformFn:
|
|
467
|
-
paths:
|
|
472
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
473
|
+
paths: TRANSFORM_PATHS_0
|
|
468
474
|
}
|
|
469
475
|
]);
|
|
470
476
|
const metadata = {
|
|
471
477
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
472
|
-
method: "
|
|
473
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
478
|
+
method: "POST",
|
|
479
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
|
|
474
480
|
packageName: PACKAGE_NAME,
|
|
475
481
|
migrationOptions: {
|
|
476
482
|
optInTransformResponse: true
|
|
477
483
|
},
|
|
478
|
-
url:
|
|
479
|
-
protoPath: "/v2/orders",
|
|
484
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
485
|
+
protoPath: "/v2/checkout/orders/offline",
|
|
480
486
|
data: serializedData,
|
|
481
487
|
host
|
|
482
488
|
}),
|
|
483
|
-
|
|
489
|
+
data: serializedData,
|
|
484
490
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
485
491
|
{
|
|
486
492
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
487
|
-
paths:
|
|
493
|
+
paths: TRANSFORM_PATHS_1
|
|
488
494
|
}
|
|
489
495
|
])
|
|
490
496
|
};
|
|
491
497
|
return metadata;
|
|
492
498
|
}
|
|
493
|
-
return
|
|
499
|
+
return __createOfflineOrder;
|
|
494
500
|
}
|
|
495
|
-
function
|
|
496
|
-
function
|
|
501
|
+
function getOnlineOrderPreview(payload) {
|
|
502
|
+
function __getOnlineOrderPreview({ host }) {
|
|
497
503
|
const serializedData = transformPaths(payload, [
|
|
498
504
|
{
|
|
499
505
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
500
|
-
paths:
|
|
506
|
+
paths: TRANSFORM_PATHS_0
|
|
501
507
|
}
|
|
502
508
|
]);
|
|
503
509
|
const metadata = {
|
|
504
510
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
505
|
-
method: "
|
|
506
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
511
|
+
method: "POST",
|
|
512
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
|
|
507
513
|
packageName: PACKAGE_NAME,
|
|
508
514
|
migrationOptions: {
|
|
509
515
|
optInTransformResponse: true
|
|
510
516
|
},
|
|
511
|
-
url:
|
|
512
|
-
protoPath: "/v2/orders/
|
|
517
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
518
|
+
protoPath: "/v2/checkout/orders/preview-online",
|
|
513
519
|
data: serializedData,
|
|
514
520
|
host
|
|
515
521
|
}),
|
|
516
|
-
data: serializedData
|
|
522
|
+
data: serializedData,
|
|
523
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
524
|
+
{
|
|
525
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
526
|
+
paths: TRANSFORM_PATHS_1
|
|
527
|
+
}
|
|
528
|
+
])
|
|
517
529
|
};
|
|
518
530
|
return metadata;
|
|
519
531
|
}
|
|
520
|
-
return
|
|
532
|
+
return __getOnlineOrderPreview;
|
|
521
533
|
}
|
|
522
|
-
function
|
|
523
|
-
function
|
|
534
|
+
function getOfflineOrderPreview(payload) {
|
|
535
|
+
function __getOfflineOrderPreview({ host }) {
|
|
536
|
+
const serializedData = transformPaths(payload, [
|
|
537
|
+
{
|
|
538
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
539
|
+
paths: TRANSFORM_PATHS_0
|
|
540
|
+
}
|
|
541
|
+
]);
|
|
524
542
|
const metadata = {
|
|
525
543
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
526
544
|
method: "POST",
|
|
527
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
545
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
|
|
528
546
|
packageName: PACKAGE_NAME,
|
|
529
547
|
migrationOptions: {
|
|
530
548
|
optInTransformResponse: true
|
|
531
549
|
},
|
|
532
|
-
url:
|
|
533
|
-
protoPath: "/v2/orders/
|
|
534
|
-
data:
|
|
550
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
551
|
+
protoPath: "/v2/checkout/orders/preview-offline",
|
|
552
|
+
data: serializedData,
|
|
535
553
|
host
|
|
536
554
|
}),
|
|
537
|
-
data:
|
|
555
|
+
data: serializedData,
|
|
556
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
557
|
+
{
|
|
558
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
559
|
+
paths: TRANSFORM_PATHS_1
|
|
560
|
+
}
|
|
561
|
+
])
|
|
538
562
|
};
|
|
539
563
|
return metadata;
|
|
540
564
|
}
|
|
541
|
-
return
|
|
565
|
+
return __getOfflineOrderPreview;
|
|
542
566
|
}
|
|
543
|
-
function
|
|
544
|
-
function
|
|
567
|
+
function getPricePreview(payload) {
|
|
568
|
+
function __getPricePreview({ host }) {
|
|
545
569
|
const metadata = {
|
|
546
570
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
547
571
|
method: "POST",
|
|
548
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
572
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
|
|
549
573
|
packageName: PACKAGE_NAME,
|
|
550
574
|
migrationOptions: {
|
|
551
575
|
optInTransformResponse: true
|
|
552
576
|
},
|
|
553
|
-
url:
|
|
554
|
-
protoPath: "/v2/orders/
|
|
577
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
578
|
+
protoPath: "/v2/checkout/orders/price-preview",
|
|
555
579
|
data: payload,
|
|
556
580
|
host
|
|
557
581
|
}),
|
|
@@ -559,52 +583,70 @@ function markAsPaid(payload) {
|
|
|
559
583
|
};
|
|
560
584
|
return metadata;
|
|
561
585
|
}
|
|
562
|
-
return
|
|
586
|
+
return __getPricePreview;
|
|
563
587
|
}
|
|
564
|
-
function
|
|
565
|
-
function
|
|
588
|
+
function managementGetOrder(payload) {
|
|
589
|
+
function __managementGetOrder({ host }) {
|
|
566
590
|
const metadata = {
|
|
567
591
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
568
|
-
method: "
|
|
569
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
592
|
+
method: "GET",
|
|
593
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
570
594
|
packageName: PACKAGE_NAME,
|
|
571
595
|
migrationOptions: {
|
|
572
596
|
optInTransformResponse: true
|
|
573
597
|
},
|
|
574
598
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
575
|
-
protoPath: "/v2/orders/{id}
|
|
599
|
+
protoPath: "/v2/orders/{id}",
|
|
576
600
|
data: payload,
|
|
577
601
|
host
|
|
578
602
|
}),
|
|
579
|
-
|
|
603
|
+
params: toURLSearchParams(payload),
|
|
604
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
605
|
+
{
|
|
606
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
607
|
+
paths: TRANSFORM_PATHS_1
|
|
608
|
+
}
|
|
609
|
+
])
|
|
580
610
|
};
|
|
581
611
|
return metadata;
|
|
582
612
|
}
|
|
583
|
-
return
|
|
613
|
+
return __managementGetOrder;
|
|
584
614
|
}
|
|
585
|
-
function
|
|
586
|
-
function
|
|
615
|
+
function managementListOrders(payload) {
|
|
616
|
+
function __managementListOrders({ host }) {
|
|
617
|
+
const serializedData = transformPaths(payload, [
|
|
618
|
+
{
|
|
619
|
+
transformFn: transformSDKFloatToRESTFloat,
|
|
620
|
+
paths: TRANSFORM_PATHS_2
|
|
621
|
+
}
|
|
622
|
+
]);
|
|
587
623
|
const metadata = {
|
|
588
624
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
589
|
-
method: "
|
|
590
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.
|
|
625
|
+
method: "GET",
|
|
626
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
591
627
|
packageName: PACKAGE_NAME,
|
|
592
628
|
migrationOptions: {
|
|
593
629
|
optInTransformResponse: true
|
|
594
630
|
},
|
|
595
631
|
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
596
|
-
protoPath: "/v2/orders
|
|
597
|
-
data:
|
|
632
|
+
protoPath: "/v2/orders",
|
|
633
|
+
data: serializedData,
|
|
598
634
|
host
|
|
599
635
|
}),
|
|
600
|
-
|
|
636
|
+
params: toURLSearchParams(serializedData, true),
|
|
637
|
+
transformResponse: (payload2) => transformPaths(payload2, [
|
|
638
|
+
{
|
|
639
|
+
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
640
|
+
paths: TRANSFORM_PATHS_3
|
|
641
|
+
}
|
|
642
|
+
])
|
|
601
643
|
};
|
|
602
644
|
return metadata;
|
|
603
645
|
}
|
|
604
|
-
return
|
|
646
|
+
return __managementListOrders;
|
|
605
647
|
}
|
|
606
|
-
function
|
|
607
|
-
function
|
|
648
|
+
function postponeEndDate(payload) {
|
|
649
|
+
function __postponeEndDate({ host }) {
|
|
608
650
|
const serializedData = transformPaths(payload, [
|
|
609
651
|
{
|
|
610
652
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
@@ -613,140 +655,98 @@ function createOnlineOrder(payload) {
|
|
|
613
655
|
]);
|
|
614
656
|
const metadata = {
|
|
615
657
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
616
|
-
method: "
|
|
617
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
658
|
+
method: "PATCH",
|
|
659
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
618
660
|
packageName: PACKAGE_NAME,
|
|
619
661
|
migrationOptions: {
|
|
620
662
|
optInTransformResponse: true
|
|
621
663
|
},
|
|
622
|
-
url:
|
|
623
|
-
protoPath: "/v2/
|
|
664
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
665
|
+
protoPath: "/v2/orders/{id}",
|
|
624
666
|
data: serializedData,
|
|
625
667
|
host
|
|
626
668
|
}),
|
|
627
|
-
data: serializedData
|
|
628
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
629
|
-
{
|
|
630
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
631
|
-
paths: TRANSFORM_PATHS_0
|
|
632
|
-
}
|
|
633
|
-
])
|
|
669
|
+
data: serializedData
|
|
634
670
|
};
|
|
635
671
|
return metadata;
|
|
636
672
|
}
|
|
637
|
-
return
|
|
673
|
+
return __postponeEndDate;
|
|
638
674
|
}
|
|
639
|
-
function
|
|
640
|
-
function
|
|
641
|
-
const serializedData = transformPaths(payload, [
|
|
642
|
-
{
|
|
643
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
644
|
-
paths: TRANSFORM_PATHS_4
|
|
645
|
-
}
|
|
646
|
-
]);
|
|
675
|
+
function cancelOrder(payload) {
|
|
676
|
+
function __cancelOrder({ host }) {
|
|
647
677
|
const metadata = {
|
|
648
678
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
649
679
|
method: "POST",
|
|
650
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
680
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
651
681
|
packageName: PACKAGE_NAME,
|
|
652
682
|
migrationOptions: {
|
|
653
683
|
optInTransformResponse: true
|
|
654
684
|
},
|
|
655
|
-
url:
|
|
656
|
-
protoPath: "/v2/
|
|
657
|
-
data:
|
|
685
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
686
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
687
|
+
data: payload,
|
|
658
688
|
host
|
|
659
689
|
}),
|
|
660
|
-
data:
|
|
661
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
662
|
-
{
|
|
663
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
664
|
-
paths: TRANSFORM_PATHS_0
|
|
665
|
-
}
|
|
666
|
-
])
|
|
690
|
+
data: payload
|
|
667
691
|
};
|
|
668
692
|
return metadata;
|
|
669
693
|
}
|
|
670
|
-
return
|
|
694
|
+
return __cancelOrder;
|
|
671
695
|
}
|
|
672
|
-
function
|
|
673
|
-
function
|
|
674
|
-
const serializedData = transformPaths(payload, [
|
|
675
|
-
{
|
|
676
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
677
|
-
paths: TRANSFORM_PATHS_4
|
|
678
|
-
}
|
|
679
|
-
]);
|
|
696
|
+
function markAsPaid(payload) {
|
|
697
|
+
function __markAsPaid({ host }) {
|
|
680
698
|
const metadata = {
|
|
681
699
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
682
700
|
method: "POST",
|
|
683
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
701
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
684
702
|
packageName: PACKAGE_NAME,
|
|
685
703
|
migrationOptions: {
|
|
686
704
|
optInTransformResponse: true
|
|
687
705
|
},
|
|
688
|
-
url:
|
|
689
|
-
protoPath: "/v2/
|
|
690
|
-
data:
|
|
706
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
707
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
708
|
+
data: payload,
|
|
691
709
|
host
|
|
692
710
|
}),
|
|
693
|
-
data:
|
|
694
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
695
|
-
{
|
|
696
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
697
|
-
paths: TRANSFORM_PATHS_0
|
|
698
|
-
}
|
|
699
|
-
])
|
|
711
|
+
data: payload
|
|
700
712
|
};
|
|
701
713
|
return metadata;
|
|
702
714
|
}
|
|
703
|
-
return
|
|
715
|
+
return __markAsPaid;
|
|
704
716
|
}
|
|
705
|
-
function
|
|
706
|
-
function
|
|
707
|
-
const serializedData = transformPaths(payload, [
|
|
708
|
-
{
|
|
709
|
-
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
710
|
-
paths: TRANSFORM_PATHS_4
|
|
711
|
-
}
|
|
712
|
-
]);
|
|
717
|
+
function pauseOrder(payload) {
|
|
718
|
+
function __pauseOrder({ host }) {
|
|
713
719
|
const metadata = {
|
|
714
720
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
715
721
|
method: "POST",
|
|
716
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
722
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
717
723
|
packageName: PACKAGE_NAME,
|
|
718
724
|
migrationOptions: {
|
|
719
725
|
optInTransformResponse: true
|
|
720
726
|
},
|
|
721
|
-
url:
|
|
722
|
-
protoPath: "/v2/
|
|
723
|
-
data:
|
|
727
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
728
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
729
|
+
data: payload,
|
|
724
730
|
host
|
|
725
731
|
}),
|
|
726
|
-
data:
|
|
727
|
-
transformResponse: (payload2) => transformPaths(payload2, [
|
|
728
|
-
{
|
|
729
|
-
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
730
|
-
paths: TRANSFORM_PATHS_0
|
|
731
|
-
}
|
|
732
|
-
])
|
|
732
|
+
data: payload
|
|
733
733
|
};
|
|
734
734
|
return metadata;
|
|
735
735
|
}
|
|
736
|
-
return
|
|
736
|
+
return __pauseOrder;
|
|
737
737
|
}
|
|
738
|
-
function
|
|
739
|
-
function
|
|
738
|
+
function resumeOrder(payload) {
|
|
739
|
+
function __resumeOrder({ host }) {
|
|
740
740
|
const metadata = {
|
|
741
741
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
742
742
|
method: "POST",
|
|
743
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
743
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
744
744
|
packageName: PACKAGE_NAME,
|
|
745
745
|
migrationOptions: {
|
|
746
746
|
optInTransformResponse: true
|
|
747
747
|
},
|
|
748
|
-
url:
|
|
749
|
-
protoPath: "/v2/
|
|
748
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
749
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
750
750
|
data: payload,
|
|
751
751
|
host
|
|
752
752
|
}),
|
|
@@ -754,7 +754,7 @@ function getPricePreview(payload) {
|
|
|
754
754
|
};
|
|
755
755
|
return metadata;
|
|
756
756
|
}
|
|
757
|
-
return
|
|
757
|
+
return __resumeOrder;
|
|
758
758
|
}
|
|
759
759
|
function memberGetOrder(payload) {
|
|
760
760
|
function __memberGetOrder({ host }) {
|
|
@@ -775,7 +775,7 @@ function memberGetOrder(payload) {
|
|
|
775
775
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
776
776
|
{
|
|
777
777
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
778
|
-
paths:
|
|
778
|
+
paths: TRANSFORM_PATHS_1
|
|
779
779
|
}
|
|
780
780
|
])
|
|
781
781
|
};
|
|
@@ -788,7 +788,7 @@ function memberListOrders(payload) {
|
|
|
788
788
|
const serializedData = transformPaths(payload, [
|
|
789
789
|
{
|
|
790
790
|
transformFn: transformSDKFloatToRESTFloat,
|
|
791
|
-
paths:
|
|
791
|
+
paths: TRANSFORM_PATHS_2
|
|
792
792
|
}
|
|
793
793
|
]);
|
|
794
794
|
const metadata = {
|
|
@@ -808,7 +808,7 @@ function memberListOrders(payload) {
|
|
|
808
808
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
809
809
|
{
|
|
810
810
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
811
|
-
paths:
|
|
811
|
+
paths: TRANSFORM_PATHS_3
|
|
812
812
|
}
|
|
813
813
|
])
|
|
814
814
|
};
|
|
@@ -901,6 +901,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
|
|
|
901
901
|
Status2["ENDED"] = "ENDED";
|
|
902
902
|
return Status2;
|
|
903
903
|
})(Status || {});
|
|
904
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
905
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
906
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
907
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
908
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
909
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
910
|
+
return WebhookIdentityType2;
|
|
911
|
+
})(WebhookIdentityType || {});
|
|
904
912
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
905
913
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
906
914
|
Set2["BASIC"] = "BASIC";
|
|
@@ -923,21 +931,16 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
923
931
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
924
932
|
return ReasonNotSuspendable2;
|
|
925
933
|
})(ReasonNotSuspendable || {});
|
|
926
|
-
|
|
927
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
928
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
929
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
930
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
931
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
932
|
-
return WebhookIdentityType2;
|
|
933
|
-
})(WebhookIdentityType || {});
|
|
934
|
-
async function managementGetOrder2(_id, options) {
|
|
934
|
+
async function createOnlineOrder2(planId, options) {
|
|
935
935
|
const { httpClient, sideEffects } = arguments[2];
|
|
936
936
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
937
|
-
|
|
938
|
-
|
|
937
|
+
planId,
|
|
938
|
+
startDate: options?.startDate,
|
|
939
|
+
couponCode: options?.couponCode,
|
|
940
|
+
onBehalf: options?.onBehalf,
|
|
941
|
+
submissionId: options?.submissionId
|
|
939
942
|
});
|
|
940
|
-
const reqOpts =
|
|
943
|
+
const reqOpts = createOnlineOrder(payload);
|
|
941
944
|
sideEffects?.onSiteCall?.();
|
|
942
945
|
try {
|
|
943
946
|
const result = await httpClient.request(reqOpts);
|
|
@@ -948,29 +951,32 @@ async function managementGetOrder2(_id, options) {
|
|
|
948
951
|
err,
|
|
949
952
|
{
|
|
950
953
|
spreadPathsToArguments: {},
|
|
951
|
-
explicitPathsToArguments: {
|
|
954
|
+
explicitPathsToArguments: {
|
|
955
|
+
planId: "$[0]",
|
|
956
|
+
startDate: "$[1].startDate",
|
|
957
|
+
couponCode: "$[1].couponCode",
|
|
958
|
+
onBehalf: "$[1].onBehalf",
|
|
959
|
+
submissionId: "$[1].submissionId"
|
|
960
|
+
},
|
|
952
961
|
singleArgumentUnchanged: false
|
|
953
962
|
},
|
|
954
|
-
["
|
|
963
|
+
["planId", "options"]
|
|
955
964
|
);
|
|
956
965
|
sideEffects?.onError?.(err);
|
|
957
966
|
throw transformedError;
|
|
958
967
|
}
|
|
959
968
|
}
|
|
960
|
-
async function
|
|
961
|
-
const { httpClient, sideEffects } = arguments[
|
|
969
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
970
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
962
971
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
offset: options?.offset,
|
|
970
|
-
sorting: options?.sorting,
|
|
971
|
-
fieldSet: options?.fieldSet
|
|
972
|
+
planId,
|
|
973
|
+
memberId,
|
|
974
|
+
startDate: options?.startDate,
|
|
975
|
+
paid: options?.paid,
|
|
976
|
+
couponCode: options?.couponCode,
|
|
977
|
+
submissionId: options?.submissionId
|
|
972
978
|
});
|
|
973
|
-
const reqOpts =
|
|
979
|
+
const reqOpts = createOfflineOrder(payload);
|
|
974
980
|
sideEffects?.onSiteCall?.();
|
|
975
981
|
try {
|
|
976
982
|
const result = await httpClient.request(reqOpts);
|
|
@@ -982,300 +988,294 @@ async function managementListOrders2(options) {
|
|
|
982
988
|
{
|
|
983
989
|
spreadPathsToArguments: {},
|
|
984
990
|
explicitPathsToArguments: {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
offset: "$[0].offset",
|
|
992
|
-
sorting: "$[0].sorting",
|
|
993
|
-
fieldSet: "$[0].fieldSet"
|
|
991
|
+
planId: "$[0]",
|
|
992
|
+
memberId: "$[1]",
|
|
993
|
+
startDate: "$[2].startDate",
|
|
994
|
+
paid: "$[2].paid",
|
|
995
|
+
couponCode: "$[2].couponCode",
|
|
996
|
+
submissionId: "$[2].submissionId"
|
|
994
997
|
},
|
|
995
998
|
singleArgumentUnchanged: false
|
|
996
999
|
},
|
|
997
|
-
["options"]
|
|
1000
|
+
["planId", "memberId", "options"]
|
|
998
1001
|
);
|
|
999
1002
|
sideEffects?.onError?.(err);
|
|
1000
1003
|
throw transformedError;
|
|
1001
1004
|
}
|
|
1002
1005
|
}
|
|
1003
|
-
async function
|
|
1006
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1004
1007
|
const { httpClient, sideEffects } = arguments[2];
|
|
1005
1008
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1006
|
-
|
|
1007
|
-
|
|
1009
|
+
planId,
|
|
1010
|
+
startDate: options?.startDate,
|
|
1011
|
+
couponCode: options?.couponCode
|
|
1008
1012
|
});
|
|
1009
|
-
const reqOpts =
|
|
1013
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1010
1014
|
sideEffects?.onSiteCall?.();
|
|
1011
1015
|
try {
|
|
1012
1016
|
const result = await httpClient.request(reqOpts);
|
|
1013
1017
|
sideEffects?.onSuccess?.(result);
|
|
1018
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1014
1019
|
} catch (err) {
|
|
1015
1020
|
const transformedError = sdkTransformError(
|
|
1016
1021
|
err,
|
|
1017
1022
|
{
|
|
1018
1023
|
spreadPathsToArguments: {},
|
|
1019
|
-
explicitPathsToArguments: {
|
|
1024
|
+
explicitPathsToArguments: {
|
|
1025
|
+
planId: "$[0]",
|
|
1026
|
+
startDate: "$[1].startDate",
|
|
1027
|
+
couponCode: "$[1].couponCode"
|
|
1028
|
+
},
|
|
1020
1029
|
singleArgumentUnchanged: false
|
|
1021
1030
|
},
|
|
1022
|
-
["
|
|
1031
|
+
["planId", "options"]
|
|
1023
1032
|
);
|
|
1024
1033
|
sideEffects?.onError?.(err);
|
|
1025
1034
|
throw transformedError;
|
|
1026
1035
|
}
|
|
1027
1036
|
}
|
|
1028
|
-
async function
|
|
1029
|
-
const { httpClient, sideEffects } = arguments[
|
|
1037
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1038
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1030
1039
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1031
|
-
|
|
1032
|
-
|
|
1040
|
+
planId,
|
|
1041
|
+
memberId,
|
|
1042
|
+
startDate: options?.startDate,
|
|
1043
|
+
couponCode: options?.couponCode
|
|
1033
1044
|
});
|
|
1034
|
-
const reqOpts =
|
|
1045
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1035
1046
|
sideEffects?.onSiteCall?.();
|
|
1036
1047
|
try {
|
|
1037
1048
|
const result = await httpClient.request(reqOpts);
|
|
1038
1049
|
sideEffects?.onSuccess?.(result);
|
|
1050
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1039
1051
|
} catch (err) {
|
|
1040
1052
|
const transformedError = sdkTransformError(
|
|
1041
1053
|
err,
|
|
1042
1054
|
{
|
|
1043
1055
|
spreadPathsToArguments: {},
|
|
1044
|
-
explicitPathsToArguments: {
|
|
1056
|
+
explicitPathsToArguments: {
|
|
1057
|
+
planId: "$[0]",
|
|
1058
|
+
memberId: "$[1]",
|
|
1059
|
+
startDate: "$[2].startDate",
|
|
1060
|
+
couponCode: "$[2].couponCode"
|
|
1061
|
+
},
|
|
1045
1062
|
singleArgumentUnchanged: false
|
|
1046
1063
|
},
|
|
1047
|
-
["
|
|
1064
|
+
["planId", "memberId", "options"]
|
|
1048
1065
|
);
|
|
1049
1066
|
sideEffects?.onError?.(err);
|
|
1050
1067
|
throw transformedError;
|
|
1051
1068
|
}
|
|
1052
1069
|
}
|
|
1053
|
-
async function
|
|
1054
|
-
const { httpClient, sideEffects } = arguments[
|
|
1055
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1056
|
-
|
|
1070
|
+
async function getPricePreview2(planId, options) {
|
|
1071
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1072
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1073
|
+
planId,
|
|
1074
|
+
couponCode: options?.couponCode
|
|
1075
|
+
});
|
|
1076
|
+
const reqOpts = getPricePreview(payload);
|
|
1057
1077
|
sideEffects?.onSiteCall?.();
|
|
1058
1078
|
try {
|
|
1059
1079
|
const result = await httpClient.request(reqOpts);
|
|
1060
1080
|
sideEffects?.onSuccess?.(result);
|
|
1081
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1061
1082
|
} catch (err) {
|
|
1062
1083
|
const transformedError = sdkTransformError(
|
|
1063
1084
|
err,
|
|
1064
1085
|
{
|
|
1065
1086
|
spreadPathsToArguments: {},
|
|
1066
|
-
explicitPathsToArguments: {
|
|
1087
|
+
explicitPathsToArguments: {
|
|
1088
|
+
planId: "$[0]",
|
|
1089
|
+
couponCode: "$[1].couponCode"
|
|
1090
|
+
},
|
|
1067
1091
|
singleArgumentUnchanged: false
|
|
1068
1092
|
},
|
|
1069
|
-
["
|
|
1093
|
+
["planId", "options"]
|
|
1070
1094
|
);
|
|
1071
1095
|
sideEffects?.onError?.(err);
|
|
1072
1096
|
throw transformedError;
|
|
1073
1097
|
}
|
|
1074
1098
|
}
|
|
1075
|
-
async function
|
|
1076
|
-
const { httpClient, sideEffects } = arguments[
|
|
1077
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1078
|
-
|
|
1099
|
+
async function managementGetOrder2(_id, options) {
|
|
1100
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1101
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1102
|
+
id: _id,
|
|
1103
|
+
fieldSet: options?.fieldSet
|
|
1104
|
+
});
|
|
1105
|
+
const reqOpts = managementGetOrder(payload);
|
|
1079
1106
|
sideEffects?.onSiteCall?.();
|
|
1080
1107
|
try {
|
|
1081
1108
|
const result = await httpClient.request(reqOpts);
|
|
1082
1109
|
sideEffects?.onSuccess?.(result);
|
|
1110
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1083
1111
|
} catch (err) {
|
|
1084
1112
|
const transformedError = sdkTransformError(
|
|
1085
1113
|
err,
|
|
1086
1114
|
{
|
|
1087
1115
|
spreadPathsToArguments: {},
|
|
1088
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1116
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1089
1117
|
singleArgumentUnchanged: false
|
|
1090
1118
|
},
|
|
1091
|
-
["_id"]
|
|
1119
|
+
["_id", "options"]
|
|
1092
1120
|
);
|
|
1093
1121
|
sideEffects?.onError?.(err);
|
|
1094
1122
|
throw transformedError;
|
|
1095
1123
|
}
|
|
1096
1124
|
}
|
|
1097
|
-
async function
|
|
1125
|
+
async function managementListOrders2(options) {
|
|
1098
1126
|
const { httpClient, sideEffects } = arguments[1];
|
|
1099
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1100
|
-
|
|
1127
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1128
|
+
buyerIds: options?.buyerIds,
|
|
1129
|
+
planIds: options?.planIds,
|
|
1130
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1131
|
+
orderStatuses: options?.orderStatuses,
|
|
1132
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1133
|
+
limit: options?.limit,
|
|
1134
|
+
offset: options?.offset,
|
|
1135
|
+
sorting: options?.sorting,
|
|
1136
|
+
fieldSet: options?.fieldSet
|
|
1137
|
+
});
|
|
1138
|
+
const reqOpts = managementListOrders(payload);
|
|
1101
1139
|
sideEffects?.onSiteCall?.();
|
|
1102
1140
|
try {
|
|
1103
1141
|
const result = await httpClient.request(reqOpts);
|
|
1104
1142
|
sideEffects?.onSuccess?.(result);
|
|
1143
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1105
1144
|
} catch (err) {
|
|
1106
1145
|
const transformedError = sdkTransformError(
|
|
1107
1146
|
err,
|
|
1108
1147
|
{
|
|
1109
1148
|
spreadPathsToArguments: {},
|
|
1110
|
-
explicitPathsToArguments: {
|
|
1149
|
+
explicitPathsToArguments: {
|
|
1150
|
+
buyerIds: "$[0].buyerIds",
|
|
1151
|
+
planIds: "$[0].planIds",
|
|
1152
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1153
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1154
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1155
|
+
limit: "$[0].limit",
|
|
1156
|
+
offset: "$[0].offset",
|
|
1157
|
+
sorting: "$[0].sorting",
|
|
1158
|
+
fieldSet: "$[0].fieldSet"
|
|
1159
|
+
},
|
|
1111
1160
|
singleArgumentUnchanged: false
|
|
1112
1161
|
},
|
|
1113
|
-
["
|
|
1162
|
+
["options"]
|
|
1114
1163
|
);
|
|
1115
1164
|
sideEffects?.onError?.(err);
|
|
1116
1165
|
throw transformedError;
|
|
1117
1166
|
}
|
|
1118
1167
|
}
|
|
1119
|
-
async function
|
|
1168
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1120
1169
|
const { httpClient, sideEffects } = arguments[2];
|
|
1121
1170
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
couponCode: options?.couponCode,
|
|
1125
|
-
onBehalf: options?.onBehalf,
|
|
1126
|
-
submissionId: options?.submissionId
|
|
1171
|
+
id: _id,
|
|
1172
|
+
endDate
|
|
1127
1173
|
});
|
|
1128
|
-
const reqOpts =
|
|
1174
|
+
const reqOpts = postponeEndDate(payload);
|
|
1129
1175
|
sideEffects?.onSiteCall?.();
|
|
1130
1176
|
try {
|
|
1131
1177
|
const result = await httpClient.request(reqOpts);
|
|
1132
1178
|
sideEffects?.onSuccess?.(result);
|
|
1133
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1134
1179
|
} catch (err) {
|
|
1135
1180
|
const transformedError = sdkTransformError(
|
|
1136
1181
|
err,
|
|
1137
1182
|
{
|
|
1138
1183
|
spreadPathsToArguments: {},
|
|
1139
|
-
explicitPathsToArguments: {
|
|
1140
|
-
planId: "$[0]",
|
|
1141
|
-
startDate: "$[1].startDate",
|
|
1142
|
-
couponCode: "$[1].couponCode",
|
|
1143
|
-
onBehalf: "$[1].onBehalf",
|
|
1144
|
-
submissionId: "$[1].submissionId"
|
|
1145
|
-
},
|
|
1184
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1146
1185
|
singleArgumentUnchanged: false
|
|
1147
1186
|
},
|
|
1148
|
-
["
|
|
1187
|
+
["_id", "endDate"]
|
|
1149
1188
|
);
|
|
1150
1189
|
sideEffects?.onError?.(err);
|
|
1151
1190
|
throw transformedError;
|
|
1152
1191
|
}
|
|
1153
1192
|
}
|
|
1154
|
-
async function
|
|
1155
|
-
const { httpClient, sideEffects } = arguments[
|
|
1193
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1194
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1156
1195
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
startDate: options?.startDate,
|
|
1160
|
-
paid: options?.paid,
|
|
1161
|
-
couponCode: options?.couponCode,
|
|
1162
|
-
submissionId: options?.submissionId
|
|
1196
|
+
id: _id,
|
|
1197
|
+
effectiveAt
|
|
1163
1198
|
});
|
|
1164
|
-
const reqOpts =
|
|
1199
|
+
const reqOpts = cancelOrder(payload);
|
|
1165
1200
|
sideEffects?.onSiteCall?.();
|
|
1166
1201
|
try {
|
|
1167
1202
|
const result = await httpClient.request(reqOpts);
|
|
1168
1203
|
sideEffects?.onSuccess?.(result);
|
|
1169
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1170
1204
|
} catch (err) {
|
|
1171
1205
|
const transformedError = sdkTransformError(
|
|
1172
1206
|
err,
|
|
1173
1207
|
{
|
|
1174
1208
|
spreadPathsToArguments: {},
|
|
1175
|
-
explicitPathsToArguments: {
|
|
1176
|
-
planId: "$[0]",
|
|
1177
|
-
memberId: "$[1]",
|
|
1178
|
-
startDate: "$[2].startDate",
|
|
1179
|
-
paid: "$[2].paid",
|
|
1180
|
-
couponCode: "$[2].couponCode",
|
|
1181
|
-
submissionId: "$[2].submissionId"
|
|
1182
|
-
},
|
|
1209
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1183
1210
|
singleArgumentUnchanged: false
|
|
1184
1211
|
},
|
|
1185
|
-
["
|
|
1212
|
+
["_id", "effectiveAt"]
|
|
1186
1213
|
);
|
|
1187
1214
|
sideEffects?.onError?.(err);
|
|
1188
1215
|
throw transformedError;
|
|
1189
1216
|
}
|
|
1190
1217
|
}
|
|
1191
|
-
async function
|
|
1192
|
-
const { httpClient, sideEffects } = arguments[
|
|
1193
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1194
|
-
|
|
1195
|
-
startDate: options?.startDate,
|
|
1196
|
-
couponCode: options?.couponCode
|
|
1197
|
-
});
|
|
1198
|
-
const reqOpts = getOnlineOrderPreview(payload);
|
|
1218
|
+
async function markAsPaid2(_id) {
|
|
1219
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1220
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1221
|
+
const reqOpts = markAsPaid(payload);
|
|
1199
1222
|
sideEffects?.onSiteCall?.();
|
|
1200
1223
|
try {
|
|
1201
1224
|
const result = await httpClient.request(reqOpts);
|
|
1202
1225
|
sideEffects?.onSuccess?.(result);
|
|
1203
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1204
1226
|
} catch (err) {
|
|
1205
1227
|
const transformedError = sdkTransformError(
|
|
1206
1228
|
err,
|
|
1207
1229
|
{
|
|
1208
1230
|
spreadPathsToArguments: {},
|
|
1209
|
-
explicitPathsToArguments: {
|
|
1210
|
-
planId: "$[0]",
|
|
1211
|
-
startDate: "$[1].startDate",
|
|
1212
|
-
couponCode: "$[1].couponCode"
|
|
1213
|
-
},
|
|
1231
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1214
1232
|
singleArgumentUnchanged: false
|
|
1215
1233
|
},
|
|
1216
|
-
["
|
|
1234
|
+
["_id"]
|
|
1217
1235
|
);
|
|
1218
1236
|
sideEffects?.onError?.(err);
|
|
1219
1237
|
throw transformedError;
|
|
1220
1238
|
}
|
|
1221
1239
|
}
|
|
1222
|
-
async function
|
|
1223
|
-
const { httpClient, sideEffects } = arguments[
|
|
1224
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1225
|
-
|
|
1226
|
-
memberId,
|
|
1227
|
-
startDate: options?.startDate,
|
|
1228
|
-
couponCode: options?.couponCode
|
|
1229
|
-
});
|
|
1230
|
-
const reqOpts = getOfflineOrderPreview(payload);
|
|
1240
|
+
async function pauseOrder2(_id) {
|
|
1241
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1242
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1243
|
+
const reqOpts = pauseOrder(payload);
|
|
1231
1244
|
sideEffects?.onSiteCall?.();
|
|
1232
1245
|
try {
|
|
1233
1246
|
const result = await httpClient.request(reqOpts);
|
|
1234
1247
|
sideEffects?.onSuccess?.(result);
|
|
1235
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1236
1248
|
} catch (err) {
|
|
1237
1249
|
const transformedError = sdkTransformError(
|
|
1238
1250
|
err,
|
|
1239
1251
|
{
|
|
1240
1252
|
spreadPathsToArguments: {},
|
|
1241
|
-
explicitPathsToArguments: {
|
|
1242
|
-
planId: "$[0]",
|
|
1243
|
-
memberId: "$[1]",
|
|
1244
|
-
startDate: "$[2].startDate",
|
|
1245
|
-
couponCode: "$[2].couponCode"
|
|
1246
|
-
},
|
|
1253
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1247
1254
|
singleArgumentUnchanged: false
|
|
1248
1255
|
},
|
|
1249
|
-
["
|
|
1256
|
+
["_id"]
|
|
1250
1257
|
);
|
|
1251
1258
|
sideEffects?.onError?.(err);
|
|
1252
1259
|
throw transformedError;
|
|
1253
1260
|
}
|
|
1254
1261
|
}
|
|
1255
|
-
async function
|
|
1256
|
-
const { httpClient, sideEffects } = arguments[
|
|
1257
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1258
|
-
|
|
1259
|
-
couponCode: options?.couponCode
|
|
1260
|
-
});
|
|
1261
|
-
const reqOpts = getPricePreview(payload);
|
|
1262
|
+
async function resumeOrder2(_id) {
|
|
1263
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1264
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1265
|
+
const reqOpts = resumeOrder(payload);
|
|
1262
1266
|
sideEffects?.onSiteCall?.();
|
|
1263
1267
|
try {
|
|
1264
1268
|
const result = await httpClient.request(reqOpts);
|
|
1265
1269
|
sideEffects?.onSuccess?.(result);
|
|
1266
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1267
1270
|
} catch (err) {
|
|
1268
1271
|
const transformedError = sdkTransformError(
|
|
1269
1272
|
err,
|
|
1270
1273
|
{
|
|
1271
1274
|
spreadPathsToArguments: {},
|
|
1272
|
-
explicitPathsToArguments: {
|
|
1273
|
-
planId: "$[0]",
|
|
1274
|
-
couponCode: "$[1].couponCode"
|
|
1275
|
-
},
|
|
1275
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1276
1276
|
singleArgumentUnchanged: false
|
|
1277
1277
|
},
|
|
1278
|
-
["
|
|
1278
|
+
["_id"]
|
|
1279
1279
|
);
|
|
1280
1280
|
sideEffects?.onError?.(err);
|
|
1281
1281
|
throw transformedError;
|