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