@wix/auto_sdk_pricing-plans_orders 1.0.124 → 1.0.125
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 +629 -629
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +787 -787
- package/build/cjs/index.typings.js +502 -502
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +388 -388
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +889 -889
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +629 -629
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +787 -787
- package/build/es/index.typings.mjs +502 -502
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +388 -388
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +889 -889
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.typings.d.ts +813 -813
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.typings.d.mts +813 -813
- package/build/internal/es/meta.d.mts +500 -500
- package/build/internal/es/schemas.d.mts +199 -199
- package/package.json +2 -2
|
@@ -103,317 +103,323 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
103
103
|
};
|
|
104
104
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
105
105
|
}
|
|
106
|
-
function
|
|
106
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
107
107
|
const domainToMappings = {
|
|
108
108
|
"api._api_base_domain_": [
|
|
109
109
|
{
|
|
110
|
-
srcPath: "/
|
|
110
|
+
srcPath: "/order-management-service-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/orders",
|
|
117
|
+
destPath: "/v2/orders"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
121
|
-
destPath: "/v2/
|
|
120
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
121
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
127
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
133
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
139
|
+
destPath: "/v2/orders"
|
|
140
140
|
},
|
|
141
141
|
{
|
|
142
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
143
|
-
destPath: "/v2/
|
|
142
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
143
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
149
|
+
destPath: "/v2/orders"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
153
|
-
destPath: "/v2/
|
|
152
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
153
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
159
|
+
destPath: "/v2/orders"
|
|
160
160
|
},
|
|
161
161
|
{
|
|
162
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
163
|
-
destPath: "/v2/
|
|
162
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
163
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
169
|
+
destPath: "/v2/orders"
|
|
170
170
|
},
|
|
171
171
|
{
|
|
172
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
173
|
-
destPath: "/v2/
|
|
172
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
173
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
179
|
+
destPath: "/v2/orders"
|
|
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/orders",
|
|
185
|
+
destPath: "/v2/orders"
|
|
186
186
|
}
|
|
187
187
|
],
|
|
188
188
|
"manage._base_domain_": [
|
|
189
189
|
{
|
|
190
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
191
|
-
destPath: "/v2/
|
|
192
|
-
},
|
|
193
|
-
{
|
|
194
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
195
|
-
destPath: "/v2/checkout"
|
|
190
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
191
|
+
destPath: "/v2/orders"
|
|
196
192
|
},
|
|
197
193
|
{
|
|
198
|
-
srcPath: "/
|
|
199
|
-
destPath: "/v2/
|
|
194
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
195
|
+
destPath: "/v2/orders"
|
|
200
196
|
}
|
|
201
197
|
],
|
|
202
198
|
"www.wixapis.com": [
|
|
203
199
|
{
|
|
204
|
-
srcPath: "/pricing-plans/v2/
|
|
205
|
-
destPath: "/v2/
|
|
200
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
201
|
+
destPath: "/v2/orders"
|
|
206
202
|
}
|
|
207
203
|
],
|
|
208
204
|
_: [
|
|
209
205
|
{
|
|
210
|
-
srcPath: "/
|
|
211
|
-
destPath: "/v2/
|
|
212
|
-
},
|
|
213
|
-
{
|
|
214
|
-
srcPath: "/_api/paid-plans/v2/checkout",
|
|
215
|
-
destPath: "/v2/checkout"
|
|
206
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
207
|
+
destPath: "/v2/orders"
|
|
216
208
|
},
|
|
217
209
|
{
|
|
218
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
219
|
-
destPath: "/v2/
|
|
210
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
211
|
+
destPath: "/v2/orders"
|
|
220
212
|
}
|
|
221
213
|
],
|
|
222
214
|
"*.pub.wix-code.com": [
|
|
223
215
|
{
|
|
224
|
-
srcPath: "/_api/paid-plans/v2/
|
|
225
|
-
destPath: "/v2/
|
|
216
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
217
|
+
destPath: "/v2/orders"
|
|
226
218
|
}
|
|
227
219
|
],
|
|
228
220
|
"www._base_domain_": [
|
|
229
221
|
{
|
|
230
|
-
srcPath: "/_api/paid-plans/v2/
|
|
231
|
-
destPath: "/v2/
|
|
222
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
223
|
+
destPath: "/v2/orders"
|
|
232
224
|
}
|
|
233
225
|
],
|
|
234
226
|
"apps._base_domain_": [
|
|
235
227
|
{
|
|
236
|
-
srcPath: "/_api/paid-plans/v2/
|
|
237
|
-
destPath: "/v2/
|
|
228
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
229
|
+
destPath: "/v2/orders"
|
|
238
230
|
},
|
|
239
231
|
{
|
|
240
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
241
|
-
destPath: "/v2/
|
|
232
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
233
|
+
destPath: "/v2/orders"
|
|
242
234
|
}
|
|
243
235
|
],
|
|
244
236
|
"dev._base_domain_": [
|
|
245
237
|
{
|
|
246
|
-
srcPath: "/_api/paid-plans/v2/
|
|
247
|
-
destPath: "/v2/
|
|
238
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
239
|
+
destPath: "/v2/orders"
|
|
248
240
|
},
|
|
249
241
|
{
|
|
250
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
251
|
-
destPath: "/v2/
|
|
242
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
243
|
+
destPath: "/v2/orders"
|
|
252
244
|
}
|
|
253
245
|
]
|
|
254
246
|
};
|
|
255
247
|
return resolveUrl(Object.assign(opts, { domainToMappings }));
|
|
256
248
|
}
|
|
257
|
-
function
|
|
249
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
258
250
|
const domainToMappings = {
|
|
259
251
|
"api._api_base_domain_": [
|
|
260
252
|
{
|
|
261
|
-
srcPath: "/
|
|
253
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
262
254
|
destPath: ""
|
|
263
255
|
}
|
|
264
256
|
],
|
|
265
257
|
"*.dev.wix-code.com": [
|
|
266
258
|
{
|
|
267
|
-
srcPath: "/_api/paid-plans/v2/
|
|
268
|
-
destPath: "/v2/
|
|
259
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
260
|
+
destPath: "/v2/checkout"
|
|
269
261
|
},
|
|
270
262
|
{
|
|
271
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
272
|
-
destPath: "/v2/
|
|
263
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
264
|
+
destPath: "/v2/checkout"
|
|
273
265
|
}
|
|
274
266
|
],
|
|
275
267
|
"*.wixapps.net": [
|
|
276
268
|
{
|
|
277
|
-
srcPath: "/_api/paid-plans/v2/
|
|
278
|
-
destPath: "/v2/
|
|
269
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
270
|
+
destPath: "/v2/checkout"
|
|
279
271
|
}
|
|
280
272
|
],
|
|
281
273
|
"editor-flow.wixapps.net": [
|
|
282
274
|
{
|
|
283
|
-
srcPath: "/_api/paid-plans/v2/
|
|
284
|
-
destPath: "/v2/
|
|
275
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
276
|
+
destPath: "/v2/checkout"
|
|
285
277
|
}
|
|
286
278
|
],
|
|
287
279
|
"editor._base_domain_": [
|
|
288
280
|
{
|
|
289
|
-
srcPath: "/_api/paid-plans/v2/
|
|
290
|
-
destPath: "/v2/
|
|
281
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
282
|
+
destPath: "/v2/checkout"
|
|
291
283
|
},
|
|
292
284
|
{
|
|
293
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
294
|
-
destPath: "/v2/
|
|
285
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
286
|
+
destPath: "/v2/checkout"
|
|
295
287
|
}
|
|
296
288
|
],
|
|
297
289
|
"blocks._base_domain_": [
|
|
298
290
|
{
|
|
299
|
-
srcPath: "/_api/paid-plans/v2/
|
|
300
|
-
destPath: "/v2/
|
|
291
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
292
|
+
destPath: "/v2/checkout"
|
|
301
293
|
},
|
|
302
294
|
{
|
|
303
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
304
|
-
destPath: "/v2/
|
|
295
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
296
|
+
destPath: "/v2/checkout"
|
|
305
297
|
}
|
|
306
298
|
],
|
|
307
299
|
"create.editorx": [
|
|
308
300
|
{
|
|
309
|
-
srcPath: "/_api/paid-plans/v2/
|
|
310
|
-
destPath: "/v2/
|
|
301
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
302
|
+
destPath: "/v2/checkout"
|
|
311
303
|
},
|
|
312
304
|
{
|
|
313
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
314
|
-
destPath: "/v2/
|
|
305
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
306
|
+
destPath: "/v2/checkout"
|
|
315
307
|
}
|
|
316
308
|
],
|
|
317
309
|
"editor.wixapps.net": [
|
|
318
310
|
{
|
|
319
|
-
srcPath: "/_api/paid-plans/v2/
|
|
320
|
-
destPath: "/v2/
|
|
311
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
312
|
+
destPath: "/v2/checkout"
|
|
321
313
|
},
|
|
322
314
|
{
|
|
323
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
324
|
-
destPath: "/v2/
|
|
315
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
316
|
+
destPath: "/v2/checkout"
|
|
325
317
|
}
|
|
326
318
|
],
|
|
327
319
|
"forums._base_domain_": [
|
|
328
320
|
{
|
|
329
|
-
srcPath: "/_api/paid-plans/v2/
|
|
330
|
-
destPath: "/v2/
|
|
321
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
322
|
+
destPath: "/v2/checkout"
|
|
331
323
|
}
|
|
332
324
|
],
|
|
333
325
|
"forums.wixapps.net": [
|
|
334
326
|
{
|
|
335
|
-
srcPath: "/_api/paid-plans/v2/
|
|
336
|
-
destPath: "/v2/
|
|
327
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
328
|
+
destPath: "/v2/checkout"
|
|
337
329
|
}
|
|
338
330
|
],
|
|
339
331
|
"manage._base_domain_": [
|
|
340
332
|
{
|
|
341
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
342
|
-
destPath: "/v2/
|
|
333
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
334
|
+
destPath: "/v2/checkout"
|
|
343
335
|
},
|
|
344
336
|
{
|
|
345
|
-
srcPath: "/_api/paid-plans/v2/
|
|
346
|
-
destPath: "/v2/
|
|
337
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
338
|
+
destPath: "/v2/checkout"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
342
|
+
destPath: "/v2/checkout"
|
|
347
343
|
}
|
|
348
344
|
],
|
|
349
345
|
"www.wixapis.com": [
|
|
350
346
|
{
|
|
351
|
-
srcPath: "/pricing-plans/v2/
|
|
352
|
-
destPath: "/v2/
|
|
347
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
348
|
+
destPath: "/v2/checkout"
|
|
353
349
|
}
|
|
354
350
|
],
|
|
355
351
|
_: [
|
|
356
352
|
{
|
|
357
|
-
srcPath: "/
|
|
358
|
-
destPath: "/v2/
|
|
353
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
354
|
+
destPath: "/v2/checkout"
|
|
359
355
|
},
|
|
360
356
|
{
|
|
361
|
-
srcPath: "/_api/
|
|
362
|
-
destPath: "/v2/
|
|
357
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
358
|
+
destPath: "/v2/checkout"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
362
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
368
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
374
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
380
|
+
destPath: "/v2/checkout"
|
|
381
381
|
},
|
|
382
382
|
{
|
|
383
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
384
|
-
destPath: "/v2/
|
|
383
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
384
|
+
destPath: "/v2/checkout"
|
|
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/checkout",
|
|
390
|
+
destPath: "/v2/checkout"
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
394
|
-
destPath: "/v2/
|
|
393
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
394
|
+
destPath: "/v2/checkout"
|
|
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
|
|
401
|
+
function createOnlineOrder(payload) {
|
|
402
|
+
function __createOnlineOrder({ host }) {
|
|
403
|
+
const serializedData = transformPaths(payload, [
|
|
404
|
+
{
|
|
405
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
406
|
+
paths: [{ path: "startDate" }]
|
|
407
|
+
}
|
|
408
|
+
]);
|
|
403
409
|
const metadata = {
|
|
404
410
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
405
|
-
method: "
|
|
406
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
411
|
+
method: "POST",
|
|
412
|
+
methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
|
|
407
413
|
packageName: PACKAGE_NAME,
|
|
408
414
|
migrationOptions: {
|
|
409
415
|
optInTransformResponse: true
|
|
410
416
|
},
|
|
411
|
-
url:
|
|
412
|
-
protoPath: "/v2/orders/
|
|
413
|
-
data:
|
|
417
|
+
url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
|
|
418
|
+
protoPath: "/v2/checkout/orders/online",
|
|
419
|
+
data: serializedData,
|
|
414
420
|
host
|
|
415
421
|
}),
|
|
416
|
-
|
|
422
|
+
data: serializedData,
|
|
417
423
|
transformResponse: (payload2) => transformPaths(payload2, [
|
|
418
424
|
{
|
|
419
425
|
transformFn: transformRESTTimestampToSDKTimestamp,
|
|
@@ -436,216 +442,10 @@ function managementGetOrder(payload) {
|
|
|
436
442
|
};
|
|
437
443
|
return metadata;
|
|
438
444
|
}
|
|
439
|
-
return
|
|
445
|
+
return __createOnlineOrder;
|
|
440
446
|
}
|
|
441
|
-
function
|
|
442
|
-
function
|
|
443
|
-
const serializedData = transformPaths(payload, [
|
|
444
|
-
{
|
|
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 }) {
|
|
447
|
+
function createOfflineOrder(payload) {
|
|
448
|
+
function __createOfflineOrder({ host }) {
|
|
649
449
|
const serializedData = transformPaths(payload, [
|
|
650
450
|
{
|
|
651
451
|
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
@@ -803,18 +603,18 @@ function getPricePreview(payload) {
|
|
|
803
603
|
}
|
|
804
604
|
return __getPricePreview;
|
|
805
605
|
}
|
|
806
|
-
function
|
|
807
|
-
function
|
|
606
|
+
function managementGetOrder(payload) {
|
|
607
|
+
function __managementGetOrder({ host }) {
|
|
808
608
|
const metadata = {
|
|
809
609
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
810
610
|
method: "GET",
|
|
811
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
611
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
812
612
|
packageName: PACKAGE_NAME,
|
|
813
613
|
migrationOptions: {
|
|
814
614
|
optInTransformResponse: true
|
|
815
615
|
},
|
|
816
|
-
url:
|
|
817
|
-
protoPath: "/v2/
|
|
616
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
617
|
+
protoPath: "/v2/orders/{id}",
|
|
818
618
|
data: payload,
|
|
819
619
|
host
|
|
820
620
|
}),
|
|
@@ -841,10 +641,10 @@ function memberGetOrder(payload) {
|
|
|
841
641
|
};
|
|
842
642
|
return metadata;
|
|
843
643
|
}
|
|
844
|
-
return
|
|
644
|
+
return __managementGetOrder;
|
|
845
645
|
}
|
|
846
|
-
function
|
|
847
|
-
function
|
|
646
|
+
function managementListOrders(payload) {
|
|
647
|
+
function __managementListOrders({ host }) {
|
|
848
648
|
const serializedData = transformPaths(payload, [
|
|
849
649
|
{
|
|
850
650
|
transformFn: transformSDKFloatToRESTFloat,
|
|
@@ -857,13 +657,13 @@ function memberListOrders(payload) {
|
|
|
857
657
|
const metadata = {
|
|
858
658
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
859
659
|
method: "GET",
|
|
860
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
660
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
861
661
|
packageName: PACKAGE_NAME,
|
|
862
662
|
migrationOptions: {
|
|
863
663
|
optInTransformResponse: true
|
|
864
664
|
},
|
|
865
|
-
url:
|
|
866
|
-
protoPath: "/v2/
|
|
665
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
666
|
+
protoPath: "/v2/orders",
|
|
867
667
|
data: serializedData,
|
|
868
668
|
host
|
|
869
669
|
}),
|
|
@@ -890,35 +690,235 @@ function memberListOrders(payload) {
|
|
|
890
690
|
};
|
|
891
691
|
return metadata;
|
|
892
692
|
}
|
|
893
|
-
return
|
|
693
|
+
return __managementListOrders;
|
|
894
694
|
}
|
|
895
|
-
function
|
|
896
|
-
function
|
|
695
|
+
function postponeEndDate(payload) {
|
|
696
|
+
function __postponeEndDate({ host }) {
|
|
697
|
+
const serializedData = transformPaths(payload, [
|
|
698
|
+
{
|
|
699
|
+
transformFn: transformSDKTimestampToRESTTimestamp,
|
|
700
|
+
paths: [{ path: "endDate" }]
|
|
701
|
+
}
|
|
702
|
+
]);
|
|
897
703
|
const metadata = {
|
|
898
704
|
entityFqdn: "wix.pricing_plans.v2.order",
|
|
899
|
-
method: "
|
|
900
|
-
methodFqn: "com.wixpress.membership.v2.orders.
|
|
705
|
+
method: "PATCH",
|
|
706
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
901
707
|
packageName: PACKAGE_NAME,
|
|
902
708
|
migrationOptions: {
|
|
903
709
|
optInTransformResponse: true
|
|
904
710
|
},
|
|
905
|
-
url:
|
|
906
|
-
protoPath: "/v2/
|
|
907
|
-
data:
|
|
711
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
712
|
+
protoPath: "/v2/orders/{id}",
|
|
713
|
+
data: serializedData,
|
|
908
714
|
host
|
|
909
715
|
}),
|
|
910
|
-
data:
|
|
716
|
+
data: serializedData
|
|
911
717
|
};
|
|
912
718
|
return metadata;
|
|
913
719
|
}
|
|
914
|
-
return
|
|
720
|
+
return __postponeEndDate;
|
|
915
721
|
}
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
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
|
|
911
|
+
};
|
|
912
|
+
return metadata;
|
|
913
|
+
}
|
|
914
|
+
return __requestCancellation;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
// src/pricing-plans-v2-order-orders.universal.ts
|
|
918
|
+
var PeriodUnit = /* @__PURE__ */ ((PeriodUnit2) => {
|
|
919
|
+
PeriodUnit2["UNDEFINED"] = "UNDEFINED";
|
|
920
|
+
PeriodUnit2["DAY"] = "DAY";
|
|
921
|
+
PeriodUnit2["WEEK"] = "WEEK";
|
|
922
922
|
PeriodUnit2["MONTH"] = "MONTH";
|
|
923
923
|
PeriodUnit2["YEAR"] = "YEAR";
|
|
924
924
|
return PeriodUnit2;
|
|
@@ -977,6 +977,14 @@ 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 || {});
|
|
980
988
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
981
989
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
982
990
|
Set2["BASIC"] = "BASIC";
|
|
@@ -999,21 +1007,16 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
999
1007
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
1000
1008
|
return ReasonNotSuspendable2;
|
|
1001
1009
|
})(ReasonNotSuspendable || {});
|
|
1002
|
-
|
|
1003
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1004
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1005
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1006
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1007
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
1008
|
-
return WebhookIdentityType2;
|
|
1009
|
-
})(WebhookIdentityType || {});
|
|
1010
|
-
async function managementGetOrder2(_id, options) {
|
|
1010
|
+
async function createOnlineOrder2(planId, options) {
|
|
1011
1011
|
const { httpClient, sideEffects } = arguments[2];
|
|
1012
1012
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1013
|
-
|
|
1014
|
-
|
|
1013
|
+
planId,
|
|
1014
|
+
startDate: options?.startDate,
|
|
1015
|
+
couponCode: options?.couponCode,
|
|
1016
|
+
onBehalf: options?.onBehalf,
|
|
1017
|
+
submissionId: options?.submissionId
|
|
1015
1018
|
});
|
|
1016
|
-
const reqOpts =
|
|
1019
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1017
1020
|
sideEffects?.onSiteCall?.();
|
|
1018
1021
|
try {
|
|
1019
1022
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1024,29 +1027,32 @@ async function managementGetOrder2(_id, options) {
|
|
|
1024
1027
|
err,
|
|
1025
1028
|
{
|
|
1026
1029
|
spreadPathsToArguments: {},
|
|
1027
|
-
explicitPathsToArguments: {
|
|
1030
|
+
explicitPathsToArguments: {
|
|
1031
|
+
planId: "$[0]",
|
|
1032
|
+
startDate: "$[1].startDate",
|
|
1033
|
+
couponCode: "$[1].couponCode",
|
|
1034
|
+
onBehalf: "$[1].onBehalf",
|
|
1035
|
+
submissionId: "$[1].submissionId"
|
|
1036
|
+
},
|
|
1028
1037
|
singleArgumentUnchanged: false
|
|
1029
1038
|
},
|
|
1030
|
-
["
|
|
1039
|
+
["planId", "options"]
|
|
1031
1040
|
);
|
|
1032
1041
|
sideEffects?.onError?.(err);
|
|
1033
1042
|
throw transformedError;
|
|
1034
1043
|
}
|
|
1035
1044
|
}
|
|
1036
|
-
async function
|
|
1037
|
-
const { httpClient, sideEffects } = arguments[
|
|
1045
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1046
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1038
1047
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
offset: options?.offset,
|
|
1046
|
-
sorting: options?.sorting,
|
|
1047
|
-
fieldSet: options?.fieldSet
|
|
1048
|
+
planId,
|
|
1049
|
+
memberId,
|
|
1050
|
+
startDate: options?.startDate,
|
|
1051
|
+
paid: options?.paid,
|
|
1052
|
+
couponCode: options?.couponCode,
|
|
1053
|
+
submissionId: options?.submissionId
|
|
1048
1054
|
});
|
|
1049
|
-
const reqOpts =
|
|
1055
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1050
1056
|
sideEffects?.onSiteCall?.();
|
|
1051
1057
|
try {
|
|
1052
1058
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1058,300 +1064,294 @@ async function managementListOrders2(options) {
|
|
|
1058
1064
|
{
|
|
1059
1065
|
spreadPathsToArguments: {},
|
|
1060
1066
|
explicitPathsToArguments: {
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
offset: "$[0].offset",
|
|
1068
|
-
sorting: "$[0].sorting",
|
|
1069
|
-
fieldSet: "$[0].fieldSet"
|
|
1067
|
+
planId: "$[0]",
|
|
1068
|
+
memberId: "$[1]",
|
|
1069
|
+
startDate: "$[2].startDate",
|
|
1070
|
+
paid: "$[2].paid",
|
|
1071
|
+
couponCode: "$[2].couponCode",
|
|
1072
|
+
submissionId: "$[2].submissionId"
|
|
1070
1073
|
},
|
|
1071
1074
|
singleArgumentUnchanged: false
|
|
1072
1075
|
},
|
|
1073
|
-
["options"]
|
|
1076
|
+
["planId", "memberId", "options"]
|
|
1074
1077
|
);
|
|
1075
1078
|
sideEffects?.onError?.(err);
|
|
1076
1079
|
throw transformedError;
|
|
1077
1080
|
}
|
|
1078
1081
|
}
|
|
1079
|
-
async function
|
|
1082
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1080
1083
|
const { httpClient, sideEffects } = arguments[2];
|
|
1081
1084
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1082
|
-
|
|
1083
|
-
|
|
1085
|
+
planId,
|
|
1086
|
+
startDate: options?.startDate,
|
|
1087
|
+
couponCode: options?.couponCode
|
|
1084
1088
|
});
|
|
1085
|
-
const reqOpts =
|
|
1089
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1086
1090
|
sideEffects?.onSiteCall?.();
|
|
1087
1091
|
try {
|
|
1088
1092
|
const result = await httpClient.request(reqOpts);
|
|
1089
1093
|
sideEffects?.onSuccess?.(result);
|
|
1094
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1090
1095
|
} catch (err) {
|
|
1091
1096
|
const transformedError = sdkTransformError(
|
|
1092
1097
|
err,
|
|
1093
1098
|
{
|
|
1094
1099
|
spreadPathsToArguments: {},
|
|
1095
|
-
explicitPathsToArguments: {
|
|
1100
|
+
explicitPathsToArguments: {
|
|
1101
|
+
planId: "$[0]",
|
|
1102
|
+
startDate: "$[1].startDate",
|
|
1103
|
+
couponCode: "$[1].couponCode"
|
|
1104
|
+
},
|
|
1096
1105
|
singleArgumentUnchanged: false
|
|
1097
1106
|
},
|
|
1098
|
-
["
|
|
1107
|
+
["planId", "options"]
|
|
1099
1108
|
);
|
|
1100
1109
|
sideEffects?.onError?.(err);
|
|
1101
1110
|
throw transformedError;
|
|
1102
1111
|
}
|
|
1103
1112
|
}
|
|
1104
|
-
async function
|
|
1105
|
-
const { httpClient, sideEffects } = arguments[
|
|
1113
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1114
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1106
1115
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1107
|
-
|
|
1108
|
-
|
|
1116
|
+
planId,
|
|
1117
|
+
memberId,
|
|
1118
|
+
startDate: options?.startDate,
|
|
1119
|
+
couponCode: options?.couponCode
|
|
1109
1120
|
});
|
|
1110
|
-
const reqOpts =
|
|
1121
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1111
1122
|
sideEffects?.onSiteCall?.();
|
|
1112
1123
|
try {
|
|
1113
1124
|
const result = await httpClient.request(reqOpts);
|
|
1114
1125
|
sideEffects?.onSuccess?.(result);
|
|
1126
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1115
1127
|
} catch (err) {
|
|
1116
1128
|
const transformedError = sdkTransformError(
|
|
1117
1129
|
err,
|
|
1118
1130
|
{
|
|
1119
1131
|
spreadPathsToArguments: {},
|
|
1120
|
-
explicitPathsToArguments: {
|
|
1132
|
+
explicitPathsToArguments: {
|
|
1133
|
+
planId: "$[0]",
|
|
1134
|
+
memberId: "$[1]",
|
|
1135
|
+
startDate: "$[2].startDate",
|
|
1136
|
+
couponCode: "$[2].couponCode"
|
|
1137
|
+
},
|
|
1121
1138
|
singleArgumentUnchanged: false
|
|
1122
1139
|
},
|
|
1123
|
-
["
|
|
1140
|
+
["planId", "memberId", "options"]
|
|
1124
1141
|
);
|
|
1125
1142
|
sideEffects?.onError?.(err);
|
|
1126
1143
|
throw transformedError;
|
|
1127
1144
|
}
|
|
1128
1145
|
}
|
|
1129
|
-
async function
|
|
1130
|
-
const { httpClient, sideEffects } = arguments[
|
|
1131
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1132
|
-
|
|
1146
|
+
async function getPricePreview2(planId, options) {
|
|
1147
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1148
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1149
|
+
planId,
|
|
1150
|
+
couponCode: options?.couponCode
|
|
1151
|
+
});
|
|
1152
|
+
const reqOpts = getPricePreview(payload);
|
|
1133
1153
|
sideEffects?.onSiteCall?.();
|
|
1134
1154
|
try {
|
|
1135
1155
|
const result = await httpClient.request(reqOpts);
|
|
1136
1156
|
sideEffects?.onSuccess?.(result);
|
|
1157
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1137
1158
|
} catch (err) {
|
|
1138
1159
|
const transformedError = sdkTransformError(
|
|
1139
1160
|
err,
|
|
1140
1161
|
{
|
|
1141
1162
|
spreadPathsToArguments: {},
|
|
1142
|
-
explicitPathsToArguments: {
|
|
1163
|
+
explicitPathsToArguments: {
|
|
1164
|
+
planId: "$[0]",
|
|
1165
|
+
couponCode: "$[1].couponCode"
|
|
1166
|
+
},
|
|
1143
1167
|
singleArgumentUnchanged: false
|
|
1144
1168
|
},
|
|
1145
|
-
["
|
|
1169
|
+
["planId", "options"]
|
|
1146
1170
|
);
|
|
1147
1171
|
sideEffects?.onError?.(err);
|
|
1148
1172
|
throw transformedError;
|
|
1149
1173
|
}
|
|
1150
1174
|
}
|
|
1151
|
-
async function
|
|
1152
|
-
const { httpClient, sideEffects } = arguments[
|
|
1153
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1154
|
-
|
|
1175
|
+
async function managementGetOrder2(_id, options) {
|
|
1176
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1177
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1178
|
+
id: _id,
|
|
1179
|
+
fieldSet: options?.fieldSet
|
|
1180
|
+
});
|
|
1181
|
+
const reqOpts = managementGetOrder(payload);
|
|
1155
1182
|
sideEffects?.onSiteCall?.();
|
|
1156
1183
|
try {
|
|
1157
1184
|
const result = await httpClient.request(reqOpts);
|
|
1158
1185
|
sideEffects?.onSuccess?.(result);
|
|
1186
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1159
1187
|
} catch (err) {
|
|
1160
1188
|
const transformedError = sdkTransformError(
|
|
1161
1189
|
err,
|
|
1162
1190
|
{
|
|
1163
1191
|
spreadPathsToArguments: {},
|
|
1164
|
-
explicitPathsToArguments: { id: "$[0]" },
|
|
1192
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
1165
1193
|
singleArgumentUnchanged: false
|
|
1166
1194
|
},
|
|
1167
|
-
["_id"]
|
|
1195
|
+
["_id", "options"]
|
|
1168
1196
|
);
|
|
1169
1197
|
sideEffects?.onError?.(err);
|
|
1170
1198
|
throw transformedError;
|
|
1171
1199
|
}
|
|
1172
1200
|
}
|
|
1173
|
-
async function
|
|
1201
|
+
async function managementListOrders2(options) {
|
|
1174
1202
|
const { httpClient, sideEffects } = arguments[1];
|
|
1175
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1176
|
-
|
|
1203
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1204
|
+
buyerIds: options?.buyerIds,
|
|
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);
|
|
1177
1215
|
sideEffects?.onSiteCall?.();
|
|
1178
1216
|
try {
|
|
1179
1217
|
const result = await httpClient.request(reqOpts);
|
|
1180
1218
|
sideEffects?.onSuccess?.(result);
|
|
1219
|
+
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1181
1220
|
} catch (err) {
|
|
1182
1221
|
const transformedError = sdkTransformError(
|
|
1183
1222
|
err,
|
|
1184
1223
|
{
|
|
1185
1224
|
spreadPathsToArguments: {},
|
|
1186
|
-
explicitPathsToArguments: {
|
|
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
|
+
},
|
|
1187
1236
|
singleArgumentUnchanged: false
|
|
1188
1237
|
},
|
|
1189
|
-
["
|
|
1238
|
+
["options"]
|
|
1190
1239
|
);
|
|
1191
1240
|
sideEffects?.onError?.(err);
|
|
1192
1241
|
throw transformedError;
|
|
1193
1242
|
}
|
|
1194
1243
|
}
|
|
1195
|
-
async function
|
|
1244
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1196
1245
|
const { httpClient, sideEffects } = arguments[2];
|
|
1197
1246
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
couponCode: options?.couponCode,
|
|
1201
|
-
onBehalf: options?.onBehalf,
|
|
1202
|
-
submissionId: options?.submissionId
|
|
1247
|
+
id: _id,
|
|
1248
|
+
endDate
|
|
1203
1249
|
});
|
|
1204
|
-
const reqOpts =
|
|
1250
|
+
const reqOpts = postponeEndDate(payload);
|
|
1205
1251
|
sideEffects?.onSiteCall?.();
|
|
1206
1252
|
try {
|
|
1207
1253
|
const result = await httpClient.request(reqOpts);
|
|
1208
1254
|
sideEffects?.onSuccess?.(result);
|
|
1209
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1210
1255
|
} catch (err) {
|
|
1211
1256
|
const transformedError = sdkTransformError(
|
|
1212
1257
|
err,
|
|
1213
1258
|
{
|
|
1214
1259
|
spreadPathsToArguments: {},
|
|
1215
|
-
explicitPathsToArguments: {
|
|
1216
|
-
planId: "$[0]",
|
|
1217
|
-
startDate: "$[1].startDate",
|
|
1218
|
-
couponCode: "$[1].couponCode",
|
|
1219
|
-
onBehalf: "$[1].onBehalf",
|
|
1220
|
-
submissionId: "$[1].submissionId"
|
|
1221
|
-
},
|
|
1260
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1222
1261
|
singleArgumentUnchanged: false
|
|
1223
1262
|
},
|
|
1224
|
-
["
|
|
1263
|
+
["_id", "endDate"]
|
|
1225
1264
|
);
|
|
1226
1265
|
sideEffects?.onError?.(err);
|
|
1227
1266
|
throw transformedError;
|
|
1228
1267
|
}
|
|
1229
1268
|
}
|
|
1230
|
-
async function
|
|
1231
|
-
const { httpClient, sideEffects } = arguments[
|
|
1269
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1270
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1232
1271
|
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
startDate: options?.startDate,
|
|
1236
|
-
paid: options?.paid,
|
|
1237
|
-
couponCode: options?.couponCode,
|
|
1238
|
-
submissionId: options?.submissionId
|
|
1272
|
+
id: _id,
|
|
1273
|
+
effectiveAt
|
|
1239
1274
|
});
|
|
1240
|
-
const reqOpts =
|
|
1275
|
+
const reqOpts = cancelOrder(payload);
|
|
1241
1276
|
sideEffects?.onSiteCall?.();
|
|
1242
1277
|
try {
|
|
1243
1278
|
const result = await httpClient.request(reqOpts);
|
|
1244
1279
|
sideEffects?.onSuccess?.(result);
|
|
1245
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1246
1280
|
} catch (err) {
|
|
1247
1281
|
const transformedError = sdkTransformError(
|
|
1248
1282
|
err,
|
|
1249
1283
|
{
|
|
1250
1284
|
spreadPathsToArguments: {},
|
|
1251
|
-
explicitPathsToArguments: {
|
|
1252
|
-
planId: "$[0]",
|
|
1253
|
-
memberId: "$[1]",
|
|
1254
|
-
startDate: "$[2].startDate",
|
|
1255
|
-
paid: "$[2].paid",
|
|
1256
|
-
couponCode: "$[2].couponCode",
|
|
1257
|
-
submissionId: "$[2].submissionId"
|
|
1258
|
-
},
|
|
1285
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1259
1286
|
singleArgumentUnchanged: false
|
|
1260
1287
|
},
|
|
1261
|
-
["
|
|
1288
|
+
["_id", "effectiveAt"]
|
|
1262
1289
|
);
|
|
1263
1290
|
sideEffects?.onError?.(err);
|
|
1264
1291
|
throw transformedError;
|
|
1265
1292
|
}
|
|
1266
1293
|
}
|
|
1267
|
-
async function
|
|
1268
|
-
const { httpClient, sideEffects } = arguments[
|
|
1269
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1270
|
-
|
|
1271
|
-
startDate: options?.startDate,
|
|
1272
|
-
couponCode: options?.couponCode
|
|
1273
|
-
});
|
|
1274
|
-
const reqOpts = getOnlineOrderPreview(payload);
|
|
1294
|
+
async function markAsPaid2(_id) {
|
|
1295
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1296
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1297
|
+
const reqOpts = markAsPaid(payload);
|
|
1275
1298
|
sideEffects?.onSiteCall?.();
|
|
1276
1299
|
try {
|
|
1277
1300
|
const result = await httpClient.request(reqOpts);
|
|
1278
1301
|
sideEffects?.onSuccess?.(result);
|
|
1279
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1280
1302
|
} catch (err) {
|
|
1281
1303
|
const transformedError = sdkTransformError(
|
|
1282
1304
|
err,
|
|
1283
1305
|
{
|
|
1284
1306
|
spreadPathsToArguments: {},
|
|
1285
|
-
explicitPathsToArguments: {
|
|
1286
|
-
planId: "$[0]",
|
|
1287
|
-
startDate: "$[1].startDate",
|
|
1288
|
-
couponCode: "$[1].couponCode"
|
|
1289
|
-
},
|
|
1307
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1290
1308
|
singleArgumentUnchanged: false
|
|
1291
1309
|
},
|
|
1292
|
-
["
|
|
1310
|
+
["_id"]
|
|
1293
1311
|
);
|
|
1294
1312
|
sideEffects?.onError?.(err);
|
|
1295
1313
|
throw transformedError;
|
|
1296
1314
|
}
|
|
1297
1315
|
}
|
|
1298
|
-
async function
|
|
1299
|
-
const { httpClient, sideEffects } = arguments[
|
|
1300
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1301
|
-
|
|
1302
|
-
memberId,
|
|
1303
|
-
startDate: options?.startDate,
|
|
1304
|
-
couponCode: options?.couponCode
|
|
1305
|
-
});
|
|
1306
|
-
const reqOpts = getOfflineOrderPreview(payload);
|
|
1316
|
+
async function pauseOrder2(_id) {
|
|
1317
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1318
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1319
|
+
const reqOpts = pauseOrder(payload);
|
|
1307
1320
|
sideEffects?.onSiteCall?.();
|
|
1308
1321
|
try {
|
|
1309
1322
|
const result = await httpClient.request(reqOpts);
|
|
1310
1323
|
sideEffects?.onSuccess?.(result);
|
|
1311
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1312
1324
|
} catch (err) {
|
|
1313
1325
|
const transformedError = sdkTransformError(
|
|
1314
1326
|
err,
|
|
1315
1327
|
{
|
|
1316
1328
|
spreadPathsToArguments: {},
|
|
1317
|
-
explicitPathsToArguments: {
|
|
1318
|
-
planId: "$[0]",
|
|
1319
|
-
memberId: "$[1]",
|
|
1320
|
-
startDate: "$[2].startDate",
|
|
1321
|
-
couponCode: "$[2].couponCode"
|
|
1322
|
-
},
|
|
1329
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1323
1330
|
singleArgumentUnchanged: false
|
|
1324
1331
|
},
|
|
1325
|
-
["
|
|
1332
|
+
["_id"]
|
|
1326
1333
|
);
|
|
1327
1334
|
sideEffects?.onError?.(err);
|
|
1328
1335
|
throw transformedError;
|
|
1329
1336
|
}
|
|
1330
1337
|
}
|
|
1331
|
-
async function
|
|
1332
|
-
const { httpClient, sideEffects } = arguments[
|
|
1333
|
-
const payload = renameKeysFromSDKRequestToRESTRequest({
|
|
1334
|
-
|
|
1335
|
-
couponCode: options?.couponCode
|
|
1336
|
-
});
|
|
1337
|
-
const reqOpts = getPricePreview(payload);
|
|
1338
|
+
async function resumeOrder2(_id) {
|
|
1339
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1340
|
+
const payload = renameKeysFromSDKRequestToRESTRequest({ id: _id });
|
|
1341
|
+
const reqOpts = resumeOrder(payload);
|
|
1338
1342
|
sideEffects?.onSiteCall?.();
|
|
1339
1343
|
try {
|
|
1340
1344
|
const result = await httpClient.request(reqOpts);
|
|
1341
1345
|
sideEffects?.onSuccess?.(result);
|
|
1342
|
-
return renameKeysFromRESTResponseToSDKResponse(result.data);
|
|
1343
1346
|
} catch (err) {
|
|
1344
1347
|
const transformedError = sdkTransformError(
|
|
1345
1348
|
err,
|
|
1346
1349
|
{
|
|
1347
1350
|
spreadPathsToArguments: {},
|
|
1348
|
-
explicitPathsToArguments: {
|
|
1349
|
-
planId: "$[0]",
|
|
1350
|
-
couponCode: "$[1].couponCode"
|
|
1351
|
-
},
|
|
1351
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1352
1352
|
singleArgumentUnchanged: false
|
|
1353
1353
|
},
|
|
1354
|
-
["
|
|
1354
|
+
["_id"]
|
|
1355
1355
|
);
|
|
1356
1356
|
sideEffects?.onError?.(err);
|
|
1357
1357
|
throw transformedError;
|