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