@wix/auto_sdk_pricing-plans_orders 1.0.121 → 1.0.122
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 +706 -588
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +766 -766
- package/build/cjs/index.typings.js +548 -434
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +484 -484
- package/build/cjs/meta.js +483 -369
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +199 -199
- package/build/cjs/schemas.js +891 -891
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +129 -129
- package/build/es/index.mjs +706 -588
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +766 -766
- package/build/es/index.typings.mjs +548 -434
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +484 -484
- package/build/es/meta.mjs +483 -369
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +199 -199
- package/build/es/schemas.mjs +891 -891
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +129 -129
- package/build/internal/cjs/index.js +706 -588
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +794 -794
- package/build/internal/cjs/index.typings.js +548 -434
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +500 -500
- package/build/internal/cjs/meta.js +483 -369
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +199 -199
- package/build/internal/cjs/schemas.js +891 -891
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +129 -129
- package/build/internal/es/index.mjs +706 -588
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +794 -794
- package/build/internal/es/index.typings.mjs +548 -434
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +500 -500
- package/build/internal/es/meta.mjs +483 -369
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +199 -199
- package/build/internal/es/schemas.mjs +891 -891
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/cjs/index.js
CHANGED
|
@@ -108,150 +108,183 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
|
|
|
108
108
|
destPath: "/v2/member/orders"
|
|
109
109
|
}
|
|
110
110
|
],
|
|
111
|
+
"editor.wixapps.net": [
|
|
112
|
+
{
|
|
113
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
114
|
+
destPath: "/v2/member/orders"
|
|
115
|
+
}
|
|
116
|
+
],
|
|
117
|
+
"manage._base_domain_": [
|
|
118
|
+
{
|
|
119
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
120
|
+
destPath: "/v2/member/orders"
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"www._base_domain_": [
|
|
124
|
+
{
|
|
125
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
126
|
+
destPath: "/v2/member/orders"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"www.wixapis.com": [
|
|
130
|
+
{
|
|
131
|
+
srcPath: "/pricing-plans/v2/member/orders",
|
|
132
|
+
destPath: "/v2/member/orders"
|
|
133
|
+
}
|
|
134
|
+
],
|
|
111
135
|
_: [
|
|
112
136
|
{
|
|
113
137
|
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
114
138
|
destPath: "/v2/member/orders"
|
|
115
139
|
}
|
|
116
140
|
],
|
|
117
|
-
"editor.
|
|
141
|
+
"editor._base_domain_": [
|
|
118
142
|
{
|
|
119
143
|
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
120
144
|
destPath: "/v2/member/orders"
|
|
121
145
|
}
|
|
122
146
|
],
|
|
123
|
-
"
|
|
147
|
+
"blocks._base_domain_": [
|
|
124
148
|
{
|
|
125
149
|
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
126
150
|
destPath: "/v2/member/orders"
|
|
127
151
|
}
|
|
128
152
|
],
|
|
129
|
-
"
|
|
153
|
+
"create.editorx": [
|
|
130
154
|
{
|
|
131
155
|
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
132
156
|
destPath: "/v2/member/orders"
|
|
133
157
|
}
|
|
134
158
|
],
|
|
135
|
-
"
|
|
159
|
+
"apps._base_domain_": [
|
|
136
160
|
{
|
|
137
|
-
srcPath: "/pricing-plans/v2/member/orders",
|
|
161
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
162
|
+
destPath: "/v2/member/orders"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"dev._base_domain_": [
|
|
166
|
+
{
|
|
167
|
+
srcPath: "/_api/pricing-plans/v2/member/orders",
|
|
138
168
|
destPath: "/v2/member/orders"
|
|
139
169
|
}
|
|
140
170
|
]
|
|
141
171
|
};
|
|
142
172
|
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
143
173
|
}
|
|
144
|
-
function
|
|
174
|
+
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
145
175
|
const domainToMappings = {
|
|
146
176
|
"api._api_base_domain_": [
|
|
147
177
|
{
|
|
148
|
-
srcPath: "/
|
|
178
|
+
srcPath: "/pricing-plans-checkout-proxy",
|
|
149
179
|
destPath: ""
|
|
150
180
|
}
|
|
151
181
|
],
|
|
152
182
|
"*.dev.wix-code.com": [
|
|
153
183
|
{
|
|
154
|
-
srcPath: "/_api/paid-plans/v2/
|
|
155
|
-
destPath: "/v2/
|
|
156
|
-
}
|
|
157
|
-
],
|
|
158
|
-
"*.pub.wix-code.com": [
|
|
184
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
185
|
+
destPath: "/v2/checkout"
|
|
186
|
+
},
|
|
159
187
|
{
|
|
160
|
-
srcPath: "/_api/
|
|
161
|
-
destPath: "/v2/
|
|
188
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
189
|
+
destPath: "/v2/checkout"
|
|
162
190
|
}
|
|
163
191
|
],
|
|
164
192
|
"*.wixapps.net": [
|
|
165
193
|
{
|
|
166
|
-
srcPath: "/_api/paid-plans/v2/
|
|
167
|
-
destPath: "/v2/
|
|
168
|
-
}
|
|
169
|
-
],
|
|
170
|
-
_: [
|
|
171
|
-
{
|
|
172
|
-
srcPath: "/_api/paid-plans/v2/orders",
|
|
173
|
-
destPath: "/v2/orders"
|
|
194
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
195
|
+
destPath: "/v2/checkout"
|
|
174
196
|
}
|
|
175
197
|
],
|
|
176
198
|
"editor-flow.wixapps.net": [
|
|
177
199
|
{
|
|
178
|
-
srcPath: "/_api/paid-plans/v2/
|
|
179
|
-
destPath: "/v2/
|
|
200
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
201
|
+
destPath: "/v2/checkout"
|
|
180
202
|
}
|
|
181
203
|
],
|
|
182
204
|
"editor._base_domain_": [
|
|
183
205
|
{
|
|
184
|
-
srcPath: "/_api/paid-plans/v2/
|
|
185
|
-
destPath: "/v2/
|
|
206
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
207
|
+
destPath: "/v2/checkout"
|
|
208
|
+
},
|
|
209
|
+
{
|
|
210
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
211
|
+
destPath: "/v2/checkout"
|
|
186
212
|
}
|
|
187
213
|
],
|
|
188
214
|
"blocks._base_domain_": [
|
|
189
215
|
{
|
|
190
|
-
srcPath: "/_api/paid-plans/v2/
|
|
191
|
-
destPath: "/v2/
|
|
216
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
217
|
+
destPath: "/v2/checkout"
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
221
|
+
destPath: "/v2/checkout"
|
|
192
222
|
}
|
|
193
223
|
],
|
|
194
224
|
"create.editorx": [
|
|
195
225
|
{
|
|
196
|
-
srcPath: "/_api/paid-plans/v2/
|
|
197
|
-
destPath: "/v2/
|
|
226
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
227
|
+
destPath: "/v2/checkout"
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
231
|
+
destPath: "/v2/checkout"
|
|
198
232
|
}
|
|
199
233
|
],
|
|
200
234
|
"editor.wixapps.net": [
|
|
201
235
|
{
|
|
202
|
-
srcPath: "/_api/paid-plans/v2/
|
|
203
|
-
destPath: "/v2/
|
|
236
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
237
|
+
destPath: "/v2/checkout"
|
|
238
|
+
},
|
|
239
|
+
{
|
|
240
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
241
|
+
destPath: "/v2/checkout"
|
|
204
242
|
}
|
|
205
243
|
],
|
|
206
244
|
"forums._base_domain_": [
|
|
207
245
|
{
|
|
208
|
-
srcPath: "/_api/paid-plans/v2/
|
|
209
|
-
destPath: "/v2/
|
|
246
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
247
|
+
destPath: "/v2/checkout"
|
|
210
248
|
}
|
|
211
249
|
],
|
|
212
250
|
"forums.wixapps.net": [
|
|
213
251
|
{
|
|
214
|
-
srcPath: "/_api/paid-plans/v2/
|
|
215
|
-
destPath: "/v2/
|
|
252
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
253
|
+
destPath: "/v2/checkout"
|
|
216
254
|
}
|
|
217
255
|
],
|
|
218
256
|
"manage._base_domain_": [
|
|
219
257
|
{
|
|
220
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
221
|
-
destPath: "/v2/
|
|
258
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
259
|
+
destPath: "/v2/checkout"
|
|
222
260
|
},
|
|
223
261
|
{
|
|
224
|
-
srcPath: "/_api/paid-plans/v2/
|
|
225
|
-
destPath: "/v2/
|
|
226
|
-
}
|
|
227
|
-
],
|
|
228
|
-
"www._base_domain_": [
|
|
262
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
263
|
+
destPath: "/v2/checkout"
|
|
264
|
+
},
|
|
229
265
|
{
|
|
230
|
-
srcPath: "/
|
|
231
|
-
destPath: "/v2/
|
|
266
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
267
|
+
destPath: "/v2/checkout"
|
|
232
268
|
}
|
|
233
269
|
],
|
|
234
270
|
"www.wixapis.com": [
|
|
235
271
|
{
|
|
236
|
-
srcPath: "/pricing-plans/v2/
|
|
237
|
-
destPath: "/v2/
|
|
238
|
-
}
|
|
239
|
-
]
|
|
240
|
-
};
|
|
241
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
242
|
-
}
|
|
243
|
-
function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
244
|
-
const domainToMappings = {
|
|
245
|
-
"api._api_base_domain_": [
|
|
246
|
-
{
|
|
247
|
-
srcPath: "/pricing-plans-checkout-proxy",
|
|
248
|
-
destPath: ""
|
|
272
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
273
|
+
destPath: "/v2/checkout"
|
|
249
274
|
}
|
|
250
275
|
],
|
|
251
|
-
|
|
276
|
+
_: [
|
|
277
|
+
{
|
|
278
|
+
srcPath: "/pricing-plans/v2/checkout",
|
|
279
|
+
destPath: "/v2/checkout"
|
|
280
|
+
},
|
|
252
281
|
{
|
|
253
282
|
srcPath: "/_api/paid-plans/v2/checkout",
|
|
254
283
|
destPath: "/v2/checkout"
|
|
284
|
+
},
|
|
285
|
+
{
|
|
286
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
287
|
+
destPath: "/v2/checkout"
|
|
255
288
|
}
|
|
256
289
|
],
|
|
257
290
|
"*.pub.wix-code.com": [
|
|
@@ -260,17 +293,23 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
|
260
293
|
destPath: "/v2/checkout"
|
|
261
294
|
}
|
|
262
295
|
],
|
|
263
|
-
"
|
|
296
|
+
"www._base_domain_": [
|
|
264
297
|
{
|
|
265
298
|
srcPath: "/_api/paid-plans/v2/checkout",
|
|
266
299
|
destPath: "/v2/checkout"
|
|
267
300
|
}
|
|
268
301
|
],
|
|
269
|
-
|
|
302
|
+
"apps._base_domain_": [
|
|
270
303
|
{
|
|
271
|
-
srcPath: "/
|
|
304
|
+
srcPath: "/_api/paid-plans/v2/checkout",
|
|
272
305
|
destPath: "/v2/checkout"
|
|
273
306
|
},
|
|
307
|
+
{
|
|
308
|
+
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
309
|
+
destPath: "/v2/checkout"
|
|
310
|
+
}
|
|
311
|
+
],
|
|
312
|
+
"dev._base_domain_": [
|
|
274
313
|
{
|
|
275
314
|
srcPath: "/_api/paid-plans/v2/checkout",
|
|
276
315
|
destPath: "/v2/checkout"
|
|
@@ -279,79 +318,354 @@ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
|
|
|
279
318
|
srcPath: "/_api/pricing-plans/v2/checkout",
|
|
280
319
|
destPath: "/v2/checkout"
|
|
281
320
|
}
|
|
321
|
+
]
|
|
322
|
+
};
|
|
323
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
324
|
+
}
|
|
325
|
+
function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
|
|
326
|
+
const domainToMappings = {
|
|
327
|
+
"api._api_base_domain_": [
|
|
328
|
+
{
|
|
329
|
+
srcPath: "/order-management-service-proxy",
|
|
330
|
+
destPath: ""
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
"*.dev.wix-code.com": [
|
|
334
|
+
{
|
|
335
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
336
|
+
destPath: "/v2/orders"
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
340
|
+
destPath: "/v2/orders"
|
|
341
|
+
}
|
|
342
|
+
],
|
|
343
|
+
"*.wixapps.net": [
|
|
344
|
+
{
|
|
345
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
346
|
+
destPath: "/v2/orders"
|
|
347
|
+
}
|
|
282
348
|
],
|
|
283
349
|
"editor-flow.wixapps.net": [
|
|
284
350
|
{
|
|
285
|
-
srcPath: "/_api/paid-plans/v2/
|
|
286
|
-
destPath: "/v2/
|
|
351
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
352
|
+
destPath: "/v2/orders"
|
|
287
353
|
}
|
|
288
354
|
],
|
|
289
355
|
"editor._base_domain_": [
|
|
290
356
|
{
|
|
291
|
-
srcPath: "/_api/paid-plans/v2/
|
|
292
|
-
destPath: "/v2/
|
|
357
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
358
|
+
destPath: "/v2/orders"
|
|
359
|
+
},
|
|
360
|
+
{
|
|
361
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
362
|
+
destPath: "/v2/orders"
|
|
293
363
|
}
|
|
294
364
|
],
|
|
295
365
|
"blocks._base_domain_": [
|
|
296
366
|
{
|
|
297
|
-
srcPath: "/_api/paid-plans/v2/
|
|
298
|
-
destPath: "/v2/
|
|
367
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
368
|
+
destPath: "/v2/orders"
|
|
369
|
+
},
|
|
370
|
+
{
|
|
371
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
372
|
+
destPath: "/v2/orders"
|
|
299
373
|
}
|
|
300
374
|
],
|
|
301
375
|
"create.editorx": [
|
|
302
376
|
{
|
|
303
|
-
srcPath: "/_api/paid-plans/v2/
|
|
304
|
-
destPath: "/v2/
|
|
377
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
378
|
+
destPath: "/v2/orders"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
382
|
+
destPath: "/v2/orders"
|
|
305
383
|
}
|
|
306
384
|
],
|
|
307
385
|
"editor.wixapps.net": [
|
|
308
386
|
{
|
|
309
|
-
srcPath: "/_api/paid-plans/v2/
|
|
310
|
-
destPath: "/v2/
|
|
387
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
388
|
+
destPath: "/v2/orders"
|
|
389
|
+
},
|
|
390
|
+
{
|
|
391
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
392
|
+
destPath: "/v2/orders"
|
|
311
393
|
}
|
|
312
394
|
],
|
|
313
395
|
"forums._base_domain_": [
|
|
314
396
|
{
|
|
315
|
-
srcPath: "/_api/paid-plans/v2/
|
|
316
|
-
destPath: "/v2/
|
|
397
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
398
|
+
destPath: "/v2/orders"
|
|
317
399
|
}
|
|
318
400
|
],
|
|
319
401
|
"forums.wixapps.net": [
|
|
320
402
|
{
|
|
321
|
-
srcPath: "/_api/paid-plans/v2/
|
|
322
|
-
destPath: "/v2/
|
|
403
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
404
|
+
destPath: "/v2/orders"
|
|
323
405
|
}
|
|
324
406
|
],
|
|
325
407
|
"manage._base_domain_": [
|
|
326
408
|
{
|
|
327
|
-
srcPath: "/_api/pricing-plans/v2/
|
|
328
|
-
destPath: "/v2/
|
|
409
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
410
|
+
destPath: "/v2/orders"
|
|
329
411
|
},
|
|
330
412
|
{
|
|
331
|
-
srcPath: "/_api/paid-plans/v2/
|
|
332
|
-
destPath: "/v2/
|
|
413
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
414
|
+
destPath: "/v2/orders"
|
|
415
|
+
}
|
|
416
|
+
],
|
|
417
|
+
"www.wixapis.com": [
|
|
418
|
+
{
|
|
419
|
+
srcPath: "/pricing-plans/v2/orders",
|
|
420
|
+
destPath: "/v2/orders"
|
|
421
|
+
}
|
|
422
|
+
],
|
|
423
|
+
_: [
|
|
424
|
+
{
|
|
425
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
426
|
+
destPath: "/v2/orders"
|
|
427
|
+
},
|
|
428
|
+
{
|
|
429
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
430
|
+
destPath: "/v2/orders"
|
|
431
|
+
}
|
|
432
|
+
],
|
|
433
|
+
"*.pub.wix-code.com": [
|
|
434
|
+
{
|
|
435
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
436
|
+
destPath: "/v2/orders"
|
|
437
|
+
}
|
|
438
|
+
],
|
|
439
|
+
"www._base_domain_": [
|
|
440
|
+
{
|
|
441
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
442
|
+
destPath: "/v2/orders"
|
|
443
|
+
}
|
|
444
|
+
],
|
|
445
|
+
"apps._base_domain_": [
|
|
446
|
+
{
|
|
447
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
448
|
+
destPath: "/v2/orders"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
452
|
+
destPath: "/v2/orders"
|
|
453
|
+
}
|
|
454
|
+
],
|
|
455
|
+
"dev._base_domain_": [
|
|
456
|
+
{
|
|
457
|
+
srcPath: "/_api/paid-plans/v2/orders",
|
|
458
|
+
destPath: "/v2/orders"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
srcPath: "/_api/pricing-plans/v2/orders",
|
|
462
|
+
destPath: "/v2/orders"
|
|
463
|
+
}
|
|
464
|
+
]
|
|
465
|
+
};
|
|
466
|
+
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
467
|
+
}
|
|
468
|
+
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
469
|
+
function managementGetOrder(payload) {
|
|
470
|
+
function __managementGetOrder({ host }) {
|
|
471
|
+
const metadata = {
|
|
472
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
473
|
+
method: "GET",
|
|
474
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
475
|
+
packageName: PACKAGE_NAME,
|
|
476
|
+
migrationOptions: {
|
|
477
|
+
optInTransformResponse: true
|
|
478
|
+
},
|
|
479
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
480
|
+
protoPath: "/v2/orders/{id}",
|
|
481
|
+
data: payload,
|
|
482
|
+
host
|
|
483
|
+
}),
|
|
484
|
+
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
485
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
486
|
+
{
|
|
487
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
488
|
+
paths: [
|
|
489
|
+
{ path: "order.startDate" },
|
|
490
|
+
{ path: "order.endDate" },
|
|
491
|
+
{ path: "order.earliestEndDate" },
|
|
492
|
+
{ path: "order.createdDate" },
|
|
493
|
+
{ path: "order.updatedDate" },
|
|
494
|
+
{ path: "order.cancellation.requestedDate" },
|
|
495
|
+
{ path: "order.pausePeriods.pauseDate" },
|
|
496
|
+
{ path: "order.pausePeriods.resumeDate" },
|
|
497
|
+
{ path: "order.currentCycle.startedDate" },
|
|
498
|
+
{ path: "order.currentCycle.endedDate" },
|
|
499
|
+
{ path: "order.cycles.startedDate" },
|
|
500
|
+
{ path: "order.cycles.endedDate" }
|
|
501
|
+
]
|
|
502
|
+
}
|
|
503
|
+
])
|
|
504
|
+
};
|
|
505
|
+
return metadata;
|
|
506
|
+
}
|
|
507
|
+
return __managementGetOrder;
|
|
508
|
+
}
|
|
509
|
+
function managementListOrders(payload) {
|
|
510
|
+
function __managementListOrders({ host }) {
|
|
511
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
512
|
+
{
|
|
513
|
+
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
514
|
+
paths: [
|
|
515
|
+
{ path: "sorting.origin.latitude" },
|
|
516
|
+
{ path: "sorting.origin.longitude" }
|
|
517
|
+
]
|
|
518
|
+
}
|
|
519
|
+
]);
|
|
520
|
+
const metadata = {
|
|
521
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
522
|
+
method: "GET",
|
|
523
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
524
|
+
packageName: PACKAGE_NAME,
|
|
525
|
+
migrationOptions: {
|
|
526
|
+
optInTransformResponse: true
|
|
527
|
+
},
|
|
528
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
529
|
+
protoPath: "/v2/orders",
|
|
530
|
+
data: serializedData,
|
|
531
|
+
host
|
|
532
|
+
}),
|
|
533
|
+
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
534
|
+
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
535
|
+
{
|
|
536
|
+
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
537
|
+
paths: [
|
|
538
|
+
{ path: "orders.startDate" },
|
|
539
|
+
{ path: "orders.endDate" },
|
|
540
|
+
{ path: "orders.earliestEndDate" },
|
|
541
|
+
{ path: "orders.createdDate" },
|
|
542
|
+
{ path: "orders.updatedDate" },
|
|
543
|
+
{ path: "orders.cancellation.requestedDate" },
|
|
544
|
+
{ path: "orders.pausePeriods.pauseDate" },
|
|
545
|
+
{ path: "orders.pausePeriods.resumeDate" },
|
|
546
|
+
{ path: "orders.currentCycle.startedDate" },
|
|
547
|
+
{ path: "orders.currentCycle.endedDate" },
|
|
548
|
+
{ path: "orders.cycles.startedDate" },
|
|
549
|
+
{ path: "orders.cycles.endedDate" }
|
|
550
|
+
]
|
|
551
|
+
}
|
|
552
|
+
])
|
|
553
|
+
};
|
|
554
|
+
return metadata;
|
|
555
|
+
}
|
|
556
|
+
return __managementListOrders;
|
|
557
|
+
}
|
|
558
|
+
function postponeEndDate(payload) {
|
|
559
|
+
function __postponeEndDate({ host }) {
|
|
560
|
+
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
561
|
+
{
|
|
562
|
+
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
563
|
+
paths: [{ path: "endDate" }]
|
|
564
|
+
}
|
|
565
|
+
]);
|
|
566
|
+
const metadata = {
|
|
567
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
568
|
+
method: "PATCH",
|
|
569
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
570
|
+
packageName: PACKAGE_NAME,
|
|
571
|
+
migrationOptions: {
|
|
572
|
+
optInTransformResponse: true
|
|
573
|
+
},
|
|
574
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
575
|
+
protoPath: "/v2/orders/{id}",
|
|
576
|
+
data: serializedData,
|
|
577
|
+
host
|
|
578
|
+
}),
|
|
579
|
+
data: serializedData
|
|
580
|
+
};
|
|
581
|
+
return metadata;
|
|
582
|
+
}
|
|
583
|
+
return __postponeEndDate;
|
|
584
|
+
}
|
|
585
|
+
function cancelOrder(payload) {
|
|
586
|
+
function __cancelOrder({ host }) {
|
|
587
|
+
const metadata = {
|
|
588
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
589
|
+
method: "POST",
|
|
590
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
591
|
+
packageName: PACKAGE_NAME,
|
|
592
|
+
migrationOptions: {
|
|
593
|
+
optInTransformResponse: true
|
|
594
|
+
},
|
|
595
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
596
|
+
protoPath: "/v2/orders/{id}/cancel",
|
|
597
|
+
data: payload,
|
|
598
|
+
host
|
|
599
|
+
}),
|
|
600
|
+
data: payload
|
|
601
|
+
};
|
|
602
|
+
return metadata;
|
|
603
|
+
}
|
|
604
|
+
return __cancelOrder;
|
|
605
|
+
}
|
|
606
|
+
function markAsPaid(payload) {
|
|
607
|
+
function __markAsPaid({ host }) {
|
|
608
|
+
const metadata = {
|
|
609
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
610
|
+
method: "POST",
|
|
611
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
612
|
+
packageName: PACKAGE_NAME,
|
|
613
|
+
migrationOptions: {
|
|
614
|
+
optInTransformResponse: true
|
|
615
|
+
},
|
|
616
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
617
|
+
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
618
|
+
data: payload,
|
|
619
|
+
host
|
|
620
|
+
}),
|
|
621
|
+
data: payload
|
|
622
|
+
};
|
|
623
|
+
return metadata;
|
|
624
|
+
}
|
|
625
|
+
return __markAsPaid;
|
|
626
|
+
}
|
|
627
|
+
function pauseOrder(payload) {
|
|
628
|
+
function __pauseOrder({ host }) {
|
|
629
|
+
const metadata = {
|
|
630
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
631
|
+
method: "POST",
|
|
632
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
633
|
+
packageName: PACKAGE_NAME,
|
|
634
|
+
migrationOptions: {
|
|
635
|
+
optInTransformResponse: true
|
|
636
|
+
},
|
|
637
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
638
|
+
protoPath: "/v2/orders/{id}/pause",
|
|
639
|
+
data: payload,
|
|
640
|
+
host
|
|
641
|
+
}),
|
|
642
|
+
data: payload
|
|
643
|
+
};
|
|
644
|
+
return metadata;
|
|
645
|
+
}
|
|
646
|
+
return __pauseOrder;
|
|
647
|
+
}
|
|
648
|
+
function resumeOrder(payload) {
|
|
649
|
+
function __resumeOrder({ host }) {
|
|
650
|
+
const metadata = {
|
|
651
|
+
entityFqdn: "wix.pricing_plans.v2.order",
|
|
652
|
+
method: "POST",
|
|
653
|
+
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
654
|
+
packageName: PACKAGE_NAME,
|
|
655
|
+
migrationOptions: {
|
|
656
|
+
optInTransformResponse: true
|
|
333
657
|
},
|
|
334
|
-
{
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
],
|
|
345
|
-
"www.wixapis.com": [
|
|
346
|
-
{
|
|
347
|
-
srcPath: "/pricing-plans/v2/checkout",
|
|
348
|
-
destPath: "/v2/checkout"
|
|
349
|
-
}
|
|
350
|
-
]
|
|
351
|
-
};
|
|
352
|
-
return (0, import_rest_modules2.resolveUrl)(Object.assign(opts, { domainToMappings }));
|
|
658
|
+
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
659
|
+
protoPath: "/v2/orders/{id}/resume",
|
|
660
|
+
data: payload,
|
|
661
|
+
host
|
|
662
|
+
}),
|
|
663
|
+
data: payload
|
|
664
|
+
};
|
|
665
|
+
return metadata;
|
|
666
|
+
}
|
|
667
|
+
return __resumeOrder;
|
|
353
668
|
}
|
|
354
|
-
var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
|
|
355
669
|
function createOnlineOrder(payload) {
|
|
356
670
|
function __createOnlineOrder({ host }) {
|
|
357
671
|
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
@@ -557,206 +871,6 @@ function getPricePreview(payload) {
|
|
|
557
871
|
}
|
|
558
872
|
return __getPricePreview;
|
|
559
873
|
}
|
|
560
|
-
function managementGetOrder(payload) {
|
|
561
|
-
function __managementGetOrder({ host }) {
|
|
562
|
-
const metadata = {
|
|
563
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
564
|
-
method: "GET",
|
|
565
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
|
|
566
|
-
packageName: PACKAGE_NAME,
|
|
567
|
-
migrationOptions: {
|
|
568
|
-
optInTransformResponse: true
|
|
569
|
-
},
|
|
570
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
571
|
-
protoPath: "/v2/orders/{id}",
|
|
572
|
-
data: payload,
|
|
573
|
-
host
|
|
574
|
-
}),
|
|
575
|
-
params: (0, import_rest_modules.toURLSearchParams)(payload),
|
|
576
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
577
|
-
{
|
|
578
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
579
|
-
paths: [
|
|
580
|
-
{ path: "order.startDate" },
|
|
581
|
-
{ path: "order.endDate" },
|
|
582
|
-
{ path: "order.earliestEndDate" },
|
|
583
|
-
{ path: "order.createdDate" },
|
|
584
|
-
{ path: "order.updatedDate" },
|
|
585
|
-
{ path: "order.cancellation.requestedDate" },
|
|
586
|
-
{ path: "order.pausePeriods.pauseDate" },
|
|
587
|
-
{ path: "order.pausePeriods.resumeDate" },
|
|
588
|
-
{ path: "order.currentCycle.startedDate" },
|
|
589
|
-
{ path: "order.currentCycle.endedDate" },
|
|
590
|
-
{ path: "order.cycles.startedDate" },
|
|
591
|
-
{ path: "order.cycles.endedDate" }
|
|
592
|
-
]
|
|
593
|
-
}
|
|
594
|
-
])
|
|
595
|
-
};
|
|
596
|
-
return metadata;
|
|
597
|
-
}
|
|
598
|
-
return __managementGetOrder;
|
|
599
|
-
}
|
|
600
|
-
function managementListOrders(payload) {
|
|
601
|
-
function __managementListOrders({ host }) {
|
|
602
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
603
|
-
{
|
|
604
|
-
transformFn: import_float.transformSDKFloatToRESTFloat,
|
|
605
|
-
paths: [
|
|
606
|
-
{ path: "sorting.origin.latitude" },
|
|
607
|
-
{ path: "sorting.origin.longitude" }
|
|
608
|
-
]
|
|
609
|
-
}
|
|
610
|
-
]);
|
|
611
|
-
const metadata = {
|
|
612
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
613
|
-
method: "GET",
|
|
614
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
|
|
615
|
-
packageName: PACKAGE_NAME,
|
|
616
|
-
migrationOptions: {
|
|
617
|
-
optInTransformResponse: true
|
|
618
|
-
},
|
|
619
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
620
|
-
protoPath: "/v2/orders",
|
|
621
|
-
data: serializedData,
|
|
622
|
-
host
|
|
623
|
-
}),
|
|
624
|
-
params: (0, import_rest_modules.toURLSearchParams)(serializedData, true),
|
|
625
|
-
transformResponse: (payload2) => (0, import_transform_paths.transformPaths)(payload2, [
|
|
626
|
-
{
|
|
627
|
-
transformFn: import_timestamp2.transformRESTTimestampToSDKTimestamp,
|
|
628
|
-
paths: [
|
|
629
|
-
{ path: "orders.startDate" },
|
|
630
|
-
{ path: "orders.endDate" },
|
|
631
|
-
{ path: "orders.earliestEndDate" },
|
|
632
|
-
{ path: "orders.createdDate" },
|
|
633
|
-
{ path: "orders.updatedDate" },
|
|
634
|
-
{ path: "orders.cancellation.requestedDate" },
|
|
635
|
-
{ path: "orders.pausePeriods.pauseDate" },
|
|
636
|
-
{ path: "orders.pausePeriods.resumeDate" },
|
|
637
|
-
{ path: "orders.currentCycle.startedDate" },
|
|
638
|
-
{ path: "orders.currentCycle.endedDate" },
|
|
639
|
-
{ path: "orders.cycles.startedDate" },
|
|
640
|
-
{ path: "orders.cycles.endedDate" }
|
|
641
|
-
]
|
|
642
|
-
}
|
|
643
|
-
])
|
|
644
|
-
};
|
|
645
|
-
return metadata;
|
|
646
|
-
}
|
|
647
|
-
return __managementListOrders;
|
|
648
|
-
}
|
|
649
|
-
function postponeEndDate(payload) {
|
|
650
|
-
function __postponeEndDate({ host }) {
|
|
651
|
-
const serializedData = (0, import_transform_paths.transformPaths)(payload, [
|
|
652
|
-
{
|
|
653
|
-
transformFn: import_timestamp.transformSDKTimestampToRESTTimestamp,
|
|
654
|
-
paths: [{ path: "endDate" }]
|
|
655
|
-
}
|
|
656
|
-
]);
|
|
657
|
-
const metadata = {
|
|
658
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
659
|
-
method: "PATCH",
|
|
660
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
|
|
661
|
-
packageName: PACKAGE_NAME,
|
|
662
|
-
migrationOptions: {
|
|
663
|
-
optInTransformResponse: true
|
|
664
|
-
},
|
|
665
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
666
|
-
protoPath: "/v2/orders/{id}",
|
|
667
|
-
data: serializedData,
|
|
668
|
-
host
|
|
669
|
-
}),
|
|
670
|
-
data: serializedData
|
|
671
|
-
};
|
|
672
|
-
return metadata;
|
|
673
|
-
}
|
|
674
|
-
return __postponeEndDate;
|
|
675
|
-
}
|
|
676
|
-
function cancelOrder(payload) {
|
|
677
|
-
function __cancelOrder({ host }) {
|
|
678
|
-
const metadata = {
|
|
679
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
680
|
-
method: "POST",
|
|
681
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
|
|
682
|
-
packageName: PACKAGE_NAME,
|
|
683
|
-
migrationOptions: {
|
|
684
|
-
optInTransformResponse: true
|
|
685
|
-
},
|
|
686
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
687
|
-
protoPath: "/v2/orders/{id}/cancel",
|
|
688
|
-
data: payload,
|
|
689
|
-
host
|
|
690
|
-
}),
|
|
691
|
-
data: payload
|
|
692
|
-
};
|
|
693
|
-
return metadata;
|
|
694
|
-
}
|
|
695
|
-
return __cancelOrder;
|
|
696
|
-
}
|
|
697
|
-
function markAsPaid(payload) {
|
|
698
|
-
function __markAsPaid({ host }) {
|
|
699
|
-
const metadata = {
|
|
700
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
701
|
-
method: "POST",
|
|
702
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
|
|
703
|
-
packageName: PACKAGE_NAME,
|
|
704
|
-
migrationOptions: {
|
|
705
|
-
optInTransformResponse: true
|
|
706
|
-
},
|
|
707
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
708
|
-
protoPath: "/v2/orders/{id}/mark-as-paid",
|
|
709
|
-
data: payload,
|
|
710
|
-
host
|
|
711
|
-
}),
|
|
712
|
-
data: payload
|
|
713
|
-
};
|
|
714
|
-
return metadata;
|
|
715
|
-
}
|
|
716
|
-
return __markAsPaid;
|
|
717
|
-
}
|
|
718
|
-
function pauseOrder(payload) {
|
|
719
|
-
function __pauseOrder({ host }) {
|
|
720
|
-
const metadata = {
|
|
721
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
722
|
-
method: "POST",
|
|
723
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
|
|
724
|
-
packageName: PACKAGE_NAME,
|
|
725
|
-
migrationOptions: {
|
|
726
|
-
optInTransformResponse: true
|
|
727
|
-
},
|
|
728
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
729
|
-
protoPath: "/v2/orders/{id}/pause",
|
|
730
|
-
data: payload,
|
|
731
|
-
host
|
|
732
|
-
}),
|
|
733
|
-
data: payload
|
|
734
|
-
};
|
|
735
|
-
return metadata;
|
|
736
|
-
}
|
|
737
|
-
return __pauseOrder;
|
|
738
|
-
}
|
|
739
|
-
function resumeOrder(payload) {
|
|
740
|
-
function __resumeOrder({ host }) {
|
|
741
|
-
const metadata = {
|
|
742
|
-
entityFqdn: "wix.pricing_plans.v2.order",
|
|
743
|
-
method: "POST",
|
|
744
|
-
methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
|
|
745
|
-
packageName: PACKAGE_NAME,
|
|
746
|
-
migrationOptions: {
|
|
747
|
-
optInTransformResponse: true
|
|
748
|
-
},
|
|
749
|
-
url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
|
|
750
|
-
protoPath: "/v2/orders/{id}/resume",
|
|
751
|
-
data: payload,
|
|
752
|
-
host
|
|
753
|
-
}),
|
|
754
|
-
data: payload
|
|
755
|
-
};
|
|
756
|
-
return metadata;
|
|
757
|
-
}
|
|
758
|
-
return __resumeOrder;
|
|
759
|
-
}
|
|
760
874
|
function memberGetOrder(payload) {
|
|
761
875
|
function __memberGetOrder({ host }) {
|
|
762
876
|
const metadata = {
|
|
@@ -925,20 +1039,12 @@ var PaymentStatus = /* @__PURE__ */ ((PaymentStatus2) => {
|
|
|
925
1039
|
PaymentStatus2["NOT_APPLICABLE"] = "NOT_APPLICABLE";
|
|
926
1040
|
return PaymentStatus2;
|
|
927
1041
|
})(PaymentStatus || {});
|
|
928
|
-
var Status = /* @__PURE__ */ ((Status2) => {
|
|
929
|
-
Status2["UNDEFINED"] = "UNDEFINED";
|
|
930
|
-
Status2["ACTIVE"] = "ACTIVE";
|
|
931
|
-
Status2["ENDED"] = "ENDED";
|
|
932
|
-
return Status2;
|
|
933
|
-
})(Status || {});
|
|
934
|
-
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
935
|
-
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
936
|
-
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
937
|
-
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
938
|
-
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
939
|
-
WebhookIdentityType2["APP"] = "APP";
|
|
940
|
-
return WebhookIdentityType2;
|
|
941
|
-
})(WebhookIdentityType || {});
|
|
1042
|
+
var Status = /* @__PURE__ */ ((Status2) => {
|
|
1043
|
+
Status2["UNDEFINED"] = "UNDEFINED";
|
|
1044
|
+
Status2["ACTIVE"] = "ACTIVE";
|
|
1045
|
+
Status2["ENDED"] = "ENDED";
|
|
1046
|
+
return Status2;
|
|
1047
|
+
})(Status || {});
|
|
942
1048
|
var Set = /* @__PURE__ */ ((Set2) => {
|
|
943
1049
|
Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
|
|
944
1050
|
Set2["BASIC"] = "BASIC";
|
|
@@ -961,16 +1067,21 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
|
|
|
961
1067
|
ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
|
|
962
1068
|
return ReasonNotSuspendable2;
|
|
963
1069
|
})(ReasonNotSuspendable || {});
|
|
964
|
-
|
|
1070
|
+
var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
|
|
1071
|
+
WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
|
|
1072
|
+
WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
|
|
1073
|
+
WebhookIdentityType2["MEMBER"] = "MEMBER";
|
|
1074
|
+
WebhookIdentityType2["WIX_USER"] = "WIX_USER";
|
|
1075
|
+
WebhookIdentityType2["APP"] = "APP";
|
|
1076
|
+
return WebhookIdentityType2;
|
|
1077
|
+
})(WebhookIdentityType || {});
|
|
1078
|
+
async function managementGetOrder2(_id, options) {
|
|
965
1079
|
const { httpClient, sideEffects } = arguments[2];
|
|
966
1080
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
couponCode: options?.couponCode,
|
|
970
|
-
onBehalf: options?.onBehalf,
|
|
971
|
-
submissionId: options?.submissionId
|
|
1081
|
+
id: _id,
|
|
1082
|
+
fieldSet: options?.fieldSet
|
|
972
1083
|
});
|
|
973
|
-
const reqOpts =
|
|
1084
|
+
const reqOpts = managementGetOrder(payload);
|
|
974
1085
|
sideEffects?.onSiteCall?.();
|
|
975
1086
|
try {
|
|
976
1087
|
const result = await httpClient.request(reqOpts);
|
|
@@ -981,32 +1092,29 @@ async function createOnlineOrder2(planId, options) {
|
|
|
981
1092
|
err,
|
|
982
1093
|
{
|
|
983
1094
|
spreadPathsToArguments: {},
|
|
984
|
-
explicitPathsToArguments: {
|
|
985
|
-
planId: "$[0]",
|
|
986
|
-
startDate: "$[1].startDate",
|
|
987
|
-
couponCode: "$[1].couponCode",
|
|
988
|
-
onBehalf: "$[1].onBehalf",
|
|
989
|
-
submissionId: "$[1].submissionId"
|
|
990
|
-
},
|
|
1095
|
+
explicitPathsToArguments: { id: "$[0]", fieldSet: "$[1].fieldSet" },
|
|
991
1096
|
singleArgumentUnchanged: false
|
|
992
1097
|
},
|
|
993
|
-
["
|
|
1098
|
+
["_id", "options"]
|
|
994
1099
|
);
|
|
995
1100
|
sideEffects?.onError?.(err);
|
|
996
1101
|
throw transformedError;
|
|
997
1102
|
}
|
|
998
1103
|
}
|
|
999
|
-
async function
|
|
1000
|
-
const { httpClient, sideEffects } = arguments[
|
|
1104
|
+
async function managementListOrders2(options) {
|
|
1105
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1001
1106
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1107
|
+
buyerIds: options?.buyerIds,
|
|
1108
|
+
planIds: options?.planIds,
|
|
1109
|
+
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1110
|
+
orderStatuses: options?.orderStatuses,
|
|
1111
|
+
paymentStatuses: options?.paymentStatuses,
|
|
1112
|
+
limit: options?.limit,
|
|
1113
|
+
offset: options?.offset,
|
|
1114
|
+
sorting: options?.sorting,
|
|
1115
|
+
fieldSet: options?.fieldSet
|
|
1008
1116
|
});
|
|
1009
|
-
const reqOpts =
|
|
1117
|
+
const reqOpts = managementListOrders(payload);
|
|
1010
1118
|
sideEffects?.onSiteCall?.();
|
|
1011
1119
|
try {
|
|
1012
1120
|
const result = await httpClient.request(reqOpts);
|
|
@@ -1018,294 +1126,300 @@ async function createOfflineOrder2(planId, memberId, options) {
|
|
|
1018
1126
|
{
|
|
1019
1127
|
spreadPathsToArguments: {},
|
|
1020
1128
|
explicitPathsToArguments: {
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1129
|
+
buyerIds: "$[0].buyerIds",
|
|
1130
|
+
planIds: "$[0].planIds",
|
|
1131
|
+
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1132
|
+
orderStatuses: "$[0].orderStatuses",
|
|
1133
|
+
paymentStatuses: "$[0].paymentStatuses",
|
|
1134
|
+
limit: "$[0].limit",
|
|
1135
|
+
offset: "$[0].offset",
|
|
1136
|
+
sorting: "$[0].sorting",
|
|
1137
|
+
fieldSet: "$[0].fieldSet"
|
|
1027
1138
|
},
|
|
1028
1139
|
singleArgumentUnchanged: false
|
|
1029
1140
|
},
|
|
1030
|
-
["
|
|
1141
|
+
["options"]
|
|
1031
1142
|
);
|
|
1032
1143
|
sideEffects?.onError?.(err);
|
|
1033
1144
|
throw transformedError;
|
|
1034
1145
|
}
|
|
1035
1146
|
}
|
|
1036
|
-
async function
|
|
1147
|
+
async function postponeEndDate2(_id, endDate) {
|
|
1037
1148
|
const { httpClient, sideEffects } = arguments[2];
|
|
1038
1149
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
couponCode: options?.couponCode
|
|
1150
|
+
id: _id,
|
|
1151
|
+
endDate
|
|
1042
1152
|
});
|
|
1043
|
-
const reqOpts =
|
|
1153
|
+
const reqOpts = postponeEndDate(payload);
|
|
1044
1154
|
sideEffects?.onSiteCall?.();
|
|
1045
1155
|
try {
|
|
1046
1156
|
const result = await httpClient.request(reqOpts);
|
|
1047
1157
|
sideEffects?.onSuccess?.(result);
|
|
1048
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1049
1158
|
} catch (err) {
|
|
1050
1159
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1051
1160
|
err,
|
|
1052
1161
|
{
|
|
1053
1162
|
spreadPathsToArguments: {},
|
|
1054
|
-
explicitPathsToArguments: {
|
|
1055
|
-
planId: "$[0]",
|
|
1056
|
-
startDate: "$[1].startDate",
|
|
1057
|
-
couponCode: "$[1].couponCode"
|
|
1058
|
-
},
|
|
1163
|
+
explicitPathsToArguments: { id: "$[0]", endDate: "$[1]" },
|
|
1059
1164
|
singleArgumentUnchanged: false
|
|
1060
1165
|
},
|
|
1061
|
-
["
|
|
1166
|
+
["_id", "endDate"]
|
|
1062
1167
|
);
|
|
1063
1168
|
sideEffects?.onError?.(err);
|
|
1064
1169
|
throw transformedError;
|
|
1065
1170
|
}
|
|
1066
1171
|
}
|
|
1067
|
-
async function
|
|
1068
|
-
const { httpClient, sideEffects } = arguments[
|
|
1172
|
+
async function cancelOrder2(_id, effectiveAt) {
|
|
1173
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1069
1174
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
startDate: options?.startDate,
|
|
1073
|
-
couponCode: options?.couponCode
|
|
1175
|
+
id: _id,
|
|
1176
|
+
effectiveAt
|
|
1074
1177
|
});
|
|
1075
|
-
const reqOpts =
|
|
1178
|
+
const reqOpts = cancelOrder(payload);
|
|
1076
1179
|
sideEffects?.onSiteCall?.();
|
|
1077
1180
|
try {
|
|
1078
1181
|
const result = await httpClient.request(reqOpts);
|
|
1079
1182
|
sideEffects?.onSuccess?.(result);
|
|
1080
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1081
1183
|
} catch (err) {
|
|
1082
1184
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1083
1185
|
err,
|
|
1084
1186
|
{
|
|
1085
1187
|
spreadPathsToArguments: {},
|
|
1086
|
-
explicitPathsToArguments: {
|
|
1087
|
-
planId: "$[0]",
|
|
1088
|
-
memberId: "$[1]",
|
|
1089
|
-
startDate: "$[2].startDate",
|
|
1090
|
-
couponCode: "$[2].couponCode"
|
|
1091
|
-
},
|
|
1188
|
+
explicitPathsToArguments: { id: "$[0]", effectiveAt: "$[1]" },
|
|
1092
1189
|
singleArgumentUnchanged: false
|
|
1093
1190
|
},
|
|
1094
|
-
["
|
|
1191
|
+
["_id", "effectiveAt"]
|
|
1095
1192
|
);
|
|
1096
1193
|
sideEffects?.onError?.(err);
|
|
1097
1194
|
throw transformedError;
|
|
1098
1195
|
}
|
|
1099
1196
|
}
|
|
1100
|
-
async function
|
|
1101
|
-
const { httpClient, sideEffects } = arguments[
|
|
1102
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1103
|
-
|
|
1104
|
-
couponCode: options?.couponCode
|
|
1105
|
-
});
|
|
1106
|
-
const reqOpts = getPricePreview(payload);
|
|
1197
|
+
async function markAsPaid2(_id) {
|
|
1198
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1199
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1200
|
+
const reqOpts = markAsPaid(payload);
|
|
1107
1201
|
sideEffects?.onSiteCall?.();
|
|
1108
1202
|
try {
|
|
1109
1203
|
const result = await httpClient.request(reqOpts);
|
|
1110
1204
|
sideEffects?.onSuccess?.(result);
|
|
1111
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1112
1205
|
} catch (err) {
|
|
1113
1206
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1114
1207
|
err,
|
|
1115
1208
|
{
|
|
1116
1209
|
spreadPathsToArguments: {},
|
|
1117
|
-
explicitPathsToArguments: {
|
|
1118
|
-
planId: "$[0]",
|
|
1119
|
-
couponCode: "$[1].couponCode"
|
|
1120
|
-
},
|
|
1210
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1121
1211
|
singleArgumentUnchanged: false
|
|
1122
1212
|
},
|
|
1123
|
-
["
|
|
1213
|
+
["_id"]
|
|
1124
1214
|
);
|
|
1125
1215
|
sideEffects?.onError?.(err);
|
|
1126
1216
|
throw transformedError;
|
|
1127
1217
|
}
|
|
1128
1218
|
}
|
|
1129
|
-
async function
|
|
1130
|
-
const { httpClient, sideEffects } = arguments[
|
|
1131
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1132
|
-
|
|
1133
|
-
fieldSet: options?.fieldSet
|
|
1134
|
-
});
|
|
1135
|
-
const reqOpts = managementGetOrder(payload);
|
|
1219
|
+
async function pauseOrder2(_id) {
|
|
1220
|
+
const { httpClient, sideEffects } = arguments[1];
|
|
1221
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1222
|
+
const reqOpts = pauseOrder(payload);
|
|
1136
1223
|
sideEffects?.onSiteCall?.();
|
|
1137
1224
|
try {
|
|
1138
1225
|
const result = await httpClient.request(reqOpts);
|
|
1139
1226
|
sideEffects?.onSuccess?.(result);
|
|
1140
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1141
1227
|
} catch (err) {
|
|
1142
1228
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1143
1229
|
err,
|
|
1144
1230
|
{
|
|
1145
1231
|
spreadPathsToArguments: {},
|
|
1146
|
-
explicitPathsToArguments: { id: "$[0]"
|
|
1232
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1147
1233
|
singleArgumentUnchanged: false
|
|
1148
1234
|
},
|
|
1149
|
-
["_id"
|
|
1235
|
+
["_id"]
|
|
1150
1236
|
);
|
|
1151
1237
|
sideEffects?.onError?.(err);
|
|
1152
1238
|
throw transformedError;
|
|
1153
1239
|
}
|
|
1154
1240
|
}
|
|
1155
|
-
async function
|
|
1241
|
+
async function resumeOrder2(_id) {
|
|
1156
1242
|
const { httpClient, sideEffects } = arguments[1];
|
|
1157
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1158
|
-
|
|
1159
|
-
planIds: options?.planIds,
|
|
1160
|
-
autoRenewCanceled: options?.autoRenewCanceled,
|
|
1161
|
-
orderStatuses: options?.orderStatuses,
|
|
1162
|
-
paymentStatuses: options?.paymentStatuses,
|
|
1163
|
-
limit: options?.limit,
|
|
1164
|
-
offset: options?.offset,
|
|
1165
|
-
sorting: options?.sorting,
|
|
1166
|
-
fieldSet: options?.fieldSet
|
|
1167
|
-
});
|
|
1168
|
-
const reqOpts = managementListOrders(payload);
|
|
1243
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({ id: _id });
|
|
1244
|
+
const reqOpts = resumeOrder(payload);
|
|
1169
1245
|
sideEffects?.onSiteCall?.();
|
|
1170
1246
|
try {
|
|
1171
1247
|
const result = await httpClient.request(reqOpts);
|
|
1172
1248
|
sideEffects?.onSuccess?.(result);
|
|
1173
|
-
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1174
1249
|
} catch (err) {
|
|
1175
1250
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1176
1251
|
err,
|
|
1177
1252
|
{
|
|
1178
1253
|
spreadPathsToArguments: {},
|
|
1179
|
-
explicitPathsToArguments: {
|
|
1180
|
-
buyerIds: "$[0].buyerIds",
|
|
1181
|
-
planIds: "$[0].planIds",
|
|
1182
|
-
autoRenewCanceled: "$[0].autoRenewCanceled",
|
|
1183
|
-
orderStatuses: "$[0].orderStatuses",
|
|
1184
|
-
paymentStatuses: "$[0].paymentStatuses",
|
|
1185
|
-
limit: "$[0].limit",
|
|
1186
|
-
offset: "$[0].offset",
|
|
1187
|
-
sorting: "$[0].sorting",
|
|
1188
|
-
fieldSet: "$[0].fieldSet"
|
|
1189
|
-
},
|
|
1254
|
+
explicitPathsToArguments: { id: "$[0]" },
|
|
1190
1255
|
singleArgumentUnchanged: false
|
|
1191
1256
|
},
|
|
1192
|
-
["
|
|
1257
|
+
["_id"]
|
|
1193
1258
|
);
|
|
1194
1259
|
sideEffects?.onError?.(err);
|
|
1195
1260
|
throw transformedError;
|
|
1196
1261
|
}
|
|
1197
1262
|
}
|
|
1198
|
-
async function
|
|
1263
|
+
async function createOnlineOrder2(planId, options) {
|
|
1199
1264
|
const { httpClient, sideEffects } = arguments[2];
|
|
1200
1265
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1201
|
-
|
|
1202
|
-
|
|
1266
|
+
planId,
|
|
1267
|
+
startDate: options?.startDate,
|
|
1268
|
+
couponCode: options?.couponCode,
|
|
1269
|
+
onBehalf: options?.onBehalf,
|
|
1270
|
+
submissionId: options?.submissionId
|
|
1203
1271
|
});
|
|
1204
|
-
const reqOpts =
|
|
1272
|
+
const reqOpts = createOnlineOrder(payload);
|
|
1205
1273
|
sideEffects?.onSiteCall?.();
|
|
1206
1274
|
try {
|
|
1207
1275
|
const result = await httpClient.request(reqOpts);
|
|
1208
1276
|
sideEffects?.onSuccess?.(result);
|
|
1277
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1209
1278
|
} catch (err) {
|
|
1210
1279
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1211
1280
|
err,
|
|
1212
1281
|
{
|
|
1213
1282
|
spreadPathsToArguments: {},
|
|
1214
|
-
explicitPathsToArguments: {
|
|
1283
|
+
explicitPathsToArguments: {
|
|
1284
|
+
planId: "$[0]",
|
|
1285
|
+
startDate: "$[1].startDate",
|
|
1286
|
+
couponCode: "$[1].couponCode",
|
|
1287
|
+
onBehalf: "$[1].onBehalf",
|
|
1288
|
+
submissionId: "$[1].submissionId"
|
|
1289
|
+
},
|
|
1215
1290
|
singleArgumentUnchanged: false
|
|
1216
1291
|
},
|
|
1217
|
-
["
|
|
1292
|
+
["planId", "options"]
|
|
1218
1293
|
);
|
|
1219
1294
|
sideEffects?.onError?.(err);
|
|
1220
1295
|
throw transformedError;
|
|
1221
1296
|
}
|
|
1222
1297
|
}
|
|
1223
|
-
async function
|
|
1224
|
-
const { httpClient, sideEffects } = arguments[
|
|
1298
|
+
async function createOfflineOrder2(planId, memberId, options) {
|
|
1299
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1225
1300
|
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1226
|
-
|
|
1227
|
-
|
|
1301
|
+
planId,
|
|
1302
|
+
memberId,
|
|
1303
|
+
startDate: options?.startDate,
|
|
1304
|
+
paid: options?.paid,
|
|
1305
|
+
couponCode: options?.couponCode,
|
|
1306
|
+
submissionId: options?.submissionId
|
|
1228
1307
|
});
|
|
1229
|
-
const reqOpts =
|
|
1308
|
+
const reqOpts = createOfflineOrder(payload);
|
|
1230
1309
|
sideEffects?.onSiteCall?.();
|
|
1231
1310
|
try {
|
|
1232
1311
|
const result = await httpClient.request(reqOpts);
|
|
1233
1312
|
sideEffects?.onSuccess?.(result);
|
|
1313
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1234
1314
|
} catch (err) {
|
|
1235
1315
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1236
1316
|
err,
|
|
1237
1317
|
{
|
|
1238
1318
|
spreadPathsToArguments: {},
|
|
1239
|
-
explicitPathsToArguments: {
|
|
1319
|
+
explicitPathsToArguments: {
|
|
1320
|
+
planId: "$[0]",
|
|
1321
|
+
memberId: "$[1]",
|
|
1322
|
+
startDate: "$[2].startDate",
|
|
1323
|
+
paid: "$[2].paid",
|
|
1324
|
+
couponCode: "$[2].couponCode",
|
|
1325
|
+
submissionId: "$[2].submissionId"
|
|
1326
|
+
},
|
|
1240
1327
|
singleArgumentUnchanged: false
|
|
1241
1328
|
},
|
|
1242
|
-
["
|
|
1329
|
+
["planId", "memberId", "options"]
|
|
1243
1330
|
);
|
|
1244
1331
|
sideEffects?.onError?.(err);
|
|
1245
1332
|
throw transformedError;
|
|
1246
1333
|
}
|
|
1247
1334
|
}
|
|
1248
|
-
async function
|
|
1249
|
-
const { httpClient, sideEffects } = arguments[
|
|
1250
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1251
|
-
|
|
1335
|
+
async function getOnlineOrderPreview2(planId, options) {
|
|
1336
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1337
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1338
|
+
planId,
|
|
1339
|
+
startDate: options?.startDate,
|
|
1340
|
+
couponCode: options?.couponCode
|
|
1341
|
+
});
|
|
1342
|
+
const reqOpts = getOnlineOrderPreview(payload);
|
|
1252
1343
|
sideEffects?.onSiteCall?.();
|
|
1253
1344
|
try {
|
|
1254
1345
|
const result = await httpClient.request(reqOpts);
|
|
1255
1346
|
sideEffects?.onSuccess?.(result);
|
|
1347
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1256
1348
|
} catch (err) {
|
|
1257
1349
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1258
1350
|
err,
|
|
1259
1351
|
{
|
|
1260
1352
|
spreadPathsToArguments: {},
|
|
1261
|
-
explicitPathsToArguments: {
|
|
1353
|
+
explicitPathsToArguments: {
|
|
1354
|
+
planId: "$[0]",
|
|
1355
|
+
startDate: "$[1].startDate",
|
|
1356
|
+
couponCode: "$[1].couponCode"
|
|
1357
|
+
},
|
|
1262
1358
|
singleArgumentUnchanged: false
|
|
1263
1359
|
},
|
|
1264
|
-
["
|
|
1360
|
+
["planId", "options"]
|
|
1265
1361
|
);
|
|
1266
1362
|
sideEffects?.onError?.(err);
|
|
1267
1363
|
throw transformedError;
|
|
1268
1364
|
}
|
|
1269
1365
|
}
|
|
1270
|
-
async function
|
|
1271
|
-
const { httpClient, sideEffects } = arguments[
|
|
1272
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1273
|
-
|
|
1366
|
+
async function getOfflineOrderPreview2(planId, memberId, options) {
|
|
1367
|
+
const { httpClient, sideEffects } = arguments[3];
|
|
1368
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1369
|
+
planId,
|
|
1370
|
+
memberId,
|
|
1371
|
+
startDate: options?.startDate,
|
|
1372
|
+
couponCode: options?.couponCode
|
|
1373
|
+
});
|
|
1374
|
+
const reqOpts = getOfflineOrderPreview(payload);
|
|
1274
1375
|
sideEffects?.onSiteCall?.();
|
|
1275
1376
|
try {
|
|
1276
1377
|
const result = await httpClient.request(reqOpts);
|
|
1277
1378
|
sideEffects?.onSuccess?.(result);
|
|
1379
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1278
1380
|
} catch (err) {
|
|
1279
1381
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1280
1382
|
err,
|
|
1281
1383
|
{
|
|
1282
1384
|
spreadPathsToArguments: {},
|
|
1283
|
-
explicitPathsToArguments: {
|
|
1385
|
+
explicitPathsToArguments: {
|
|
1386
|
+
planId: "$[0]",
|
|
1387
|
+
memberId: "$[1]",
|
|
1388
|
+
startDate: "$[2].startDate",
|
|
1389
|
+
couponCode: "$[2].couponCode"
|
|
1390
|
+
},
|
|
1284
1391
|
singleArgumentUnchanged: false
|
|
1285
1392
|
},
|
|
1286
|
-
["
|
|
1393
|
+
["planId", "memberId", "options"]
|
|
1287
1394
|
);
|
|
1288
1395
|
sideEffects?.onError?.(err);
|
|
1289
1396
|
throw transformedError;
|
|
1290
1397
|
}
|
|
1291
1398
|
}
|
|
1292
|
-
async function
|
|
1293
|
-
const { httpClient, sideEffects } = arguments[
|
|
1294
|
-
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1295
|
-
|
|
1399
|
+
async function getPricePreview2(planId, options) {
|
|
1400
|
+
const { httpClient, sideEffects } = arguments[2];
|
|
1401
|
+
const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)({
|
|
1402
|
+
planId,
|
|
1403
|
+
couponCode: options?.couponCode
|
|
1404
|
+
});
|
|
1405
|
+
const reqOpts = getPricePreview(payload);
|
|
1296
1406
|
sideEffects?.onSiteCall?.();
|
|
1297
1407
|
try {
|
|
1298
1408
|
const result = await httpClient.request(reqOpts);
|
|
1299
1409
|
sideEffects?.onSuccess?.(result);
|
|
1410
|
+
return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(result.data);
|
|
1300
1411
|
} catch (err) {
|
|
1301
1412
|
const transformedError = (0, import_transform_error.transformError)(
|
|
1302
1413
|
err,
|
|
1303
1414
|
{
|
|
1304
1415
|
spreadPathsToArguments: {},
|
|
1305
|
-
explicitPathsToArguments: {
|
|
1416
|
+
explicitPathsToArguments: {
|
|
1417
|
+
planId: "$[0]",
|
|
1418
|
+
couponCode: "$[1].couponCode"
|
|
1419
|
+
},
|
|
1306
1420
|
singleArgumentUnchanged: false
|
|
1307
1421
|
},
|
|
1308
|
-
["
|
|
1422
|
+
["planId", "options"]
|
|
1309
1423
|
);
|
|
1310
1424
|
sideEffects?.onError?.(err);
|
|
1311
1425
|
throw transformedError;
|
|
@@ -1405,48 +1519,6 @@ async function requestCancellation2(_id, effectiveAt) {
|
|
|
1405
1519
|
}
|
|
1406
1520
|
|
|
1407
1521
|
// src/pricing-plans-v2-order-orders.public.ts
|
|
1408
|
-
function createOnlineOrder3(httpClient) {
|
|
1409
|
-
return (planId, options) => createOnlineOrder2(
|
|
1410
|
-
planId,
|
|
1411
|
-
options,
|
|
1412
|
-
// @ts-ignore
|
|
1413
|
-
{ httpClient }
|
|
1414
|
-
);
|
|
1415
|
-
}
|
|
1416
|
-
function createOfflineOrder3(httpClient) {
|
|
1417
|
-
return (planId, memberId, options) => createOfflineOrder2(
|
|
1418
|
-
planId,
|
|
1419
|
-
memberId,
|
|
1420
|
-
options,
|
|
1421
|
-
// @ts-ignore
|
|
1422
|
-
{ httpClient }
|
|
1423
|
-
);
|
|
1424
|
-
}
|
|
1425
|
-
function getOnlineOrderPreview3(httpClient) {
|
|
1426
|
-
return (planId, options) => getOnlineOrderPreview2(
|
|
1427
|
-
planId,
|
|
1428
|
-
options,
|
|
1429
|
-
// @ts-ignore
|
|
1430
|
-
{ httpClient }
|
|
1431
|
-
);
|
|
1432
|
-
}
|
|
1433
|
-
function getOfflineOrderPreview3(httpClient) {
|
|
1434
|
-
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1435
|
-
planId,
|
|
1436
|
-
memberId,
|
|
1437
|
-
options,
|
|
1438
|
-
// @ts-ignore
|
|
1439
|
-
{ httpClient }
|
|
1440
|
-
);
|
|
1441
|
-
}
|
|
1442
|
-
function getPricePreview3(httpClient) {
|
|
1443
|
-
return (planId, options) => getPricePreview2(
|
|
1444
|
-
planId,
|
|
1445
|
-
options,
|
|
1446
|
-
// @ts-ignore
|
|
1447
|
-
{ httpClient }
|
|
1448
|
-
);
|
|
1449
|
-
}
|
|
1450
1522
|
function managementGetOrder3(httpClient) {
|
|
1451
1523
|
return (_id, options) => managementGetOrder2(
|
|
1452
1524
|
_id,
|
|
@@ -1499,6 +1571,48 @@ function resumeOrder3(httpClient) {
|
|
|
1499
1571
|
{ httpClient }
|
|
1500
1572
|
);
|
|
1501
1573
|
}
|
|
1574
|
+
function createOnlineOrder3(httpClient) {
|
|
1575
|
+
return (planId, options) => createOnlineOrder2(
|
|
1576
|
+
planId,
|
|
1577
|
+
options,
|
|
1578
|
+
// @ts-ignore
|
|
1579
|
+
{ httpClient }
|
|
1580
|
+
);
|
|
1581
|
+
}
|
|
1582
|
+
function createOfflineOrder3(httpClient) {
|
|
1583
|
+
return (planId, memberId, options) => createOfflineOrder2(
|
|
1584
|
+
planId,
|
|
1585
|
+
memberId,
|
|
1586
|
+
options,
|
|
1587
|
+
// @ts-ignore
|
|
1588
|
+
{ httpClient }
|
|
1589
|
+
);
|
|
1590
|
+
}
|
|
1591
|
+
function getOnlineOrderPreview3(httpClient) {
|
|
1592
|
+
return (planId, options) => getOnlineOrderPreview2(
|
|
1593
|
+
planId,
|
|
1594
|
+
options,
|
|
1595
|
+
// @ts-ignore
|
|
1596
|
+
{ httpClient }
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
function getOfflineOrderPreview3(httpClient) {
|
|
1600
|
+
return (planId, memberId, options) => getOfflineOrderPreview2(
|
|
1601
|
+
planId,
|
|
1602
|
+
memberId,
|
|
1603
|
+
options,
|
|
1604
|
+
// @ts-ignore
|
|
1605
|
+
{ httpClient }
|
|
1606
|
+
);
|
|
1607
|
+
}
|
|
1608
|
+
function getPricePreview3(httpClient) {
|
|
1609
|
+
return (planId, options) => getPricePreview2(
|
|
1610
|
+
planId,
|
|
1611
|
+
options,
|
|
1612
|
+
// @ts-ignore
|
|
1613
|
+
{ httpClient }
|
|
1614
|
+
);
|
|
1615
|
+
}
|
|
1502
1616
|
function memberGetOrder3(httpClient) {
|
|
1503
1617
|
return (_id, options) => memberGetOrder2(
|
|
1504
1618
|
_id,
|
|
@@ -1522,34 +1636,8 @@ function requestCancellation3(httpClient) {
|
|
|
1522
1636
|
{ httpClient }
|
|
1523
1637
|
);
|
|
1524
1638
|
}
|
|
1525
|
-
var
|
|
1526
|
-
"wix.pricing_plans.v2.
|
|
1527
|
-
true,
|
|
1528
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1529
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
1530
|
-
{
|
|
1531
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1532
|
-
paths: [
|
|
1533
|
-
{ path: "entity.startDate" },
|
|
1534
|
-
{ path: "entity.endDate" },
|
|
1535
|
-
{ path: "entity.earliestEndDate" },
|
|
1536
|
-
{ path: "entity.createdDate" },
|
|
1537
|
-
{ path: "entity.updatedDate" },
|
|
1538
|
-
{ path: "entity.cancellation.requestedDate" },
|
|
1539
|
-
{ path: "entity.pausePeriods.pauseDate" },
|
|
1540
|
-
{ path: "entity.pausePeriods.resumeDate" },
|
|
1541
|
-
{ path: "entity.currentCycle.startedDate" },
|
|
1542
|
-
{ path: "entity.currentCycle.endedDate" },
|
|
1543
|
-
{ path: "entity.cycles.startedDate" },
|
|
1544
|
-
{ path: "entity.cycles.endedDate" },
|
|
1545
|
-
{ path: "metadata.eventTime" }
|
|
1546
|
-
]
|
|
1547
|
-
}
|
|
1548
|
-
])
|
|
1549
|
-
)
|
|
1550
|
-
)();
|
|
1551
|
-
var onOrderStartDateChanged = (0, import_sdk_types.EventDefinition)(
|
|
1552
|
-
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1639
|
+
var onOrderAutoRenewCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1640
|
+
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1553
1641
|
true,
|
|
1554
1642
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1555
1643
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1574,34 +1662,8 @@ var onOrderStartDateChanged = (0, import_sdk_types.EventDefinition)(
|
|
|
1574
1662
|
])
|
|
1575
1663
|
)
|
|
1576
1664
|
)();
|
|
1577
|
-
var
|
|
1578
|
-
"wix.pricing_plans.v2.
|
|
1579
|
-
true,
|
|
1580
|
-
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1581
|
-
(0, import_transform_paths2.transformPaths)(event, [
|
|
1582
|
-
{
|
|
1583
|
-
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1584
|
-
paths: [
|
|
1585
|
-
{ path: "entity.startDate" },
|
|
1586
|
-
{ path: "entity.endDate" },
|
|
1587
|
-
{ path: "entity.earliestEndDate" },
|
|
1588
|
-
{ path: "entity.createdDate" },
|
|
1589
|
-
{ path: "entity.updatedDate" },
|
|
1590
|
-
{ path: "entity.cancellation.requestedDate" },
|
|
1591
|
-
{ path: "entity.pausePeriods.pauseDate" },
|
|
1592
|
-
{ path: "entity.pausePeriods.resumeDate" },
|
|
1593
|
-
{ path: "entity.currentCycle.startedDate" },
|
|
1594
|
-
{ path: "entity.currentCycle.endedDate" },
|
|
1595
|
-
{ path: "entity.cycles.startedDate" },
|
|
1596
|
-
{ path: "entity.cycles.endedDate" },
|
|
1597
|
-
{ path: "metadata.eventTime" }
|
|
1598
|
-
]
|
|
1599
|
-
}
|
|
1600
|
-
])
|
|
1601
|
-
)
|
|
1602
|
-
)();
|
|
1603
|
-
var onOrderAutoRenewCanceled = (0, import_sdk_types.EventDefinition)(
|
|
1604
|
-
"wix.pricing_plans.v2.order_auto_renew_canceled",
|
|
1665
|
+
var onOrderCanceled = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1666
|
+
"wix.pricing_plans.v2.order_canceled",
|
|
1605
1667
|
true,
|
|
1606
1668
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1607
1669
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1626,8 +1688,8 @@ var onOrderAutoRenewCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
1626
1688
|
])
|
|
1627
1689
|
)
|
|
1628
1690
|
)();
|
|
1629
|
-
var
|
|
1630
|
-
"wix.pricing_plans.v2.
|
|
1691
|
+
var onOrderCycleStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1692
|
+
"wix.pricing_plans.v2.order_cycle_started",
|
|
1631
1693
|
true,
|
|
1632
1694
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1633
1695
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1652,8 +1714,8 @@ var onOrderCanceled = (0, import_sdk_types.EventDefinition)(
|
|
|
1652
1714
|
])
|
|
1653
1715
|
)
|
|
1654
1716
|
)();
|
|
1655
|
-
var
|
|
1656
|
-
"wix.pricing_plans.v2.
|
|
1717
|
+
var onOrderEndDatePostponed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1718
|
+
"wix.pricing_plans.v2.order_end_date_postponed",
|
|
1657
1719
|
true,
|
|
1658
1720
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1659
1721
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1678,8 +1740,8 @@ var onOrderCycleStarted = (0, import_sdk_types.EventDefinition)(
|
|
|
1678
1740
|
])
|
|
1679
1741
|
)
|
|
1680
1742
|
)();
|
|
1681
|
-
var
|
|
1682
|
-
"wix.pricing_plans.v2.
|
|
1743
|
+
var onOrderEnded = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1744
|
+
"wix.pricing_plans.v2.order_ended",
|
|
1683
1745
|
true,
|
|
1684
1746
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1685
1747
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1704,8 +1766,8 @@ var onOrderEndDatePostponed = (0, import_sdk_types.EventDefinition)(
|
|
|
1704
1766
|
])
|
|
1705
1767
|
)
|
|
1706
1768
|
)();
|
|
1707
|
-
var
|
|
1708
|
-
"wix.pricing_plans.v2.
|
|
1769
|
+
var onOrderMarkedAsPaid = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1770
|
+
"wix.pricing_plans.v2.order_marked_as_paid",
|
|
1709
1771
|
true,
|
|
1710
1772
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1711
1773
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1730,8 +1792,8 @@ var onOrderEnded = (0, import_sdk_types.EventDefinition)(
|
|
|
1730
1792
|
])
|
|
1731
1793
|
)
|
|
1732
1794
|
)();
|
|
1733
|
-
var
|
|
1734
|
-
"wix.pricing_plans.v2.
|
|
1795
|
+
var onOrderPaused = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1796
|
+
"wix.pricing_plans.v2.order_paused",
|
|
1735
1797
|
true,
|
|
1736
1798
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1737
1799
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1756,8 +1818,8 @@ var onOrderMarkedAsPaid = (0, import_sdk_types.EventDefinition)(
|
|
|
1756
1818
|
])
|
|
1757
1819
|
)
|
|
1758
1820
|
)();
|
|
1759
|
-
var
|
|
1760
|
-
"wix.pricing_plans.v2.
|
|
1821
|
+
var onOrderPurchased = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1822
|
+
"wix.pricing_plans.v2.order_purchased",
|
|
1761
1823
|
true,
|
|
1762
1824
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1763
1825
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1782,8 +1844,8 @@ var onOrderPaused = (0, import_sdk_types.EventDefinition)(
|
|
|
1782
1844
|
])
|
|
1783
1845
|
)
|
|
1784
1846
|
)();
|
|
1785
|
-
var
|
|
1786
|
-
"wix.pricing_plans.v2.
|
|
1847
|
+
var onOrderResumed = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1848
|
+
"wix.pricing_plans.v2.order_resumed",
|
|
1787
1849
|
true,
|
|
1788
1850
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1789
1851
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1808,8 +1870,8 @@ var onOrderPurchased = (0, import_sdk_types.EventDefinition)(
|
|
|
1808
1870
|
])
|
|
1809
1871
|
)
|
|
1810
1872
|
)();
|
|
1811
|
-
var
|
|
1812
|
-
"wix.pricing_plans.v2.
|
|
1873
|
+
var onOrderStarted = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1874
|
+
"wix.pricing_plans.v2.order_started",
|
|
1813
1875
|
true,
|
|
1814
1876
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1815
1877
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1834,8 +1896,60 @@ var onOrderResumed = (0, import_sdk_types.EventDefinition)(
|
|
|
1834
1896
|
])
|
|
1835
1897
|
)
|
|
1836
1898
|
)();
|
|
1837
|
-
var
|
|
1838
|
-
"wix.pricing_plans.v2.
|
|
1899
|
+
var onOrderUpdated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1900
|
+
"wix.pricing_plans.v2.order_updated",
|
|
1901
|
+
true,
|
|
1902
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1903
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1904
|
+
{
|
|
1905
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1906
|
+
paths: [
|
|
1907
|
+
{ path: "entity.startDate" },
|
|
1908
|
+
{ path: "entity.endDate" },
|
|
1909
|
+
{ path: "entity.earliestEndDate" },
|
|
1910
|
+
{ path: "entity.createdDate" },
|
|
1911
|
+
{ path: "entity.updatedDate" },
|
|
1912
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1913
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1914
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1915
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1916
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1917
|
+
{ path: "entity.cycles.startedDate" },
|
|
1918
|
+
{ path: "entity.cycles.endedDate" },
|
|
1919
|
+
{ path: "metadata.eventTime" }
|
|
1920
|
+
]
|
|
1921
|
+
}
|
|
1922
|
+
])
|
|
1923
|
+
)
|
|
1924
|
+
)();
|
|
1925
|
+
var onOrderCreated = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1926
|
+
"wix.pricing_plans.v2.order_created",
|
|
1927
|
+
true,
|
|
1928
|
+
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1929
|
+
(0, import_transform_paths2.transformPaths)(event, [
|
|
1930
|
+
{
|
|
1931
|
+
transformFn: import_timestamp3.transformRESTTimestampToSDKTimestamp,
|
|
1932
|
+
paths: [
|
|
1933
|
+
{ path: "entity.startDate" },
|
|
1934
|
+
{ path: "entity.endDate" },
|
|
1935
|
+
{ path: "entity.earliestEndDate" },
|
|
1936
|
+
{ path: "entity.createdDate" },
|
|
1937
|
+
{ path: "entity.updatedDate" },
|
|
1938
|
+
{ path: "entity.cancellation.requestedDate" },
|
|
1939
|
+
{ path: "entity.pausePeriods.pauseDate" },
|
|
1940
|
+
{ path: "entity.pausePeriods.resumeDate" },
|
|
1941
|
+
{ path: "entity.currentCycle.startedDate" },
|
|
1942
|
+
{ path: "entity.currentCycle.endedDate" },
|
|
1943
|
+
{ path: "entity.cycles.startedDate" },
|
|
1944
|
+
{ path: "entity.cycles.endedDate" },
|
|
1945
|
+
{ path: "metadata.eventTime" }
|
|
1946
|
+
]
|
|
1947
|
+
}
|
|
1948
|
+
])
|
|
1949
|
+
)
|
|
1950
|
+
)();
|
|
1951
|
+
var onOrderStartDateChanged = /* @__PURE__ */ (0, import_sdk_types.EventDefinition)(
|
|
1952
|
+
"wix.pricing_plans.v2.order_start_date_changed",
|
|
1839
1953
|
true,
|
|
1840
1954
|
(event) => (0, import_rename_all_nested_keys2.renameKeysFromRESTResponseToSDKResponse)(
|
|
1841
1955
|
(0, import_transform_paths2.transformPaths)(event, [
|
|
@@ -1864,11 +1978,6 @@ var onOrderStarted = (0, import_sdk_types.EventDefinition)(
|
|
|
1864
1978
|
// src/pricing-plans-v2-order-orders.context.ts
|
|
1865
1979
|
var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
|
|
1866
1980
|
var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
|
|
1867
|
-
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1868
|
-
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1869
|
-
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1870
|
-
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1871
|
-
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1872
1981
|
var managementGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementGetOrder3);
|
|
1873
1982
|
var managementListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(managementListOrders3);
|
|
1874
1983
|
var postponeEndDate4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(postponeEndDate3);
|
|
@@ -1876,32 +1985,41 @@ var cancelOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ca
|
|
|
1876
1985
|
var markAsPaid4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(markAsPaid3);
|
|
1877
1986
|
var pauseOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(pauseOrder3);
|
|
1878
1987
|
var resumeOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(resumeOrder3);
|
|
1988
|
+
var createOnlineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOnlineOrder3);
|
|
1989
|
+
var createOfflineOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createOfflineOrder3);
|
|
1990
|
+
var getOnlineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOnlineOrderPreview3);
|
|
1991
|
+
var getOfflineOrderPreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getOfflineOrderPreview3);
|
|
1992
|
+
var getPricePreview4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getPricePreview3);
|
|
1879
1993
|
var memberGetOrder4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberGetOrder3);
|
|
1880
1994
|
var memberListOrders4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(memberListOrders3);
|
|
1881
1995
|
var requestCancellation4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(requestCancellation3);
|
|
1882
|
-
var
|
|
1883
|
-
var onOrderStartDateChanged2 = (0, import_event_definition_modules.createEventModule)(
|
|
1884
|
-
onOrderStartDateChanged
|
|
1885
|
-
);
|
|
1886
|
-
var onOrderUpdated2 = (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
1887
|
-
var onOrderAutoRenewCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
1996
|
+
var onOrderAutoRenewCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1888
1997
|
onOrderAutoRenewCanceled
|
|
1889
1998
|
);
|
|
1890
|
-
var onOrderCanceled2 = (0, import_event_definition_modules.createEventModule)(
|
|
1891
|
-
|
|
1999
|
+
var onOrderCanceled2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2000
|
+
onOrderCanceled
|
|
2001
|
+
);
|
|
2002
|
+
var onOrderCycleStarted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1892
2003
|
onOrderCycleStarted
|
|
1893
2004
|
);
|
|
1894
|
-
var onOrderEndDatePostponed2 = (0, import_event_definition_modules.createEventModule)(
|
|
2005
|
+
var onOrderEndDatePostponed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1895
2006
|
onOrderEndDatePostponed
|
|
1896
2007
|
);
|
|
1897
|
-
var onOrderEnded2 = (0, import_event_definition_modules.createEventModule)(onOrderEnded);
|
|
1898
|
-
var onOrderMarkedAsPaid2 = (0, import_event_definition_modules.createEventModule)(
|
|
2008
|
+
var onOrderEnded2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderEnded);
|
|
2009
|
+
var onOrderMarkedAsPaid2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
1899
2010
|
onOrderMarkedAsPaid
|
|
1900
2011
|
);
|
|
1901
|
-
var onOrderPaused2 = (0, import_event_definition_modules.createEventModule)(onOrderPaused);
|
|
1902
|
-
var onOrderPurchased2 = (0, import_event_definition_modules.createEventModule)(
|
|
1903
|
-
|
|
1904
|
-
|
|
2012
|
+
var onOrderPaused2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderPaused);
|
|
2013
|
+
var onOrderPurchased2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2014
|
+
onOrderPurchased
|
|
2015
|
+
);
|
|
2016
|
+
var onOrderResumed2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderResumed);
|
|
2017
|
+
var onOrderStarted2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderStarted);
|
|
2018
|
+
var onOrderUpdated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderUpdated);
|
|
2019
|
+
var onOrderCreated2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(onOrderCreated);
|
|
2020
|
+
var onOrderStartDateChanged2 = /* @__PURE__ */ (0, import_event_definition_modules.createEventModule)(
|
|
2021
|
+
onOrderStartDateChanged
|
|
2022
|
+
);
|
|
1905
2023
|
// Annotate the CommonJS export names for ESM import in node:
|
|
1906
2024
|
0 && (module.exports = {
|
|
1907
2025
|
CancellationCause,
|