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