@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/es/meta.mjs CHANGED
@@ -96,317 +96,323 @@ function resolveComWixpressMembershipV2OrdersMemberMemberOrdersServiceUrl(opts)
96
96
  };
97
97
  return resolveUrl(Object.assign(opts, { domainToMappings }));
98
98
  }
99
- function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
99
+ function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
100
100
  const domainToMappings = {
101
101
  "api._api_base_domain_": [
102
102
  {
103
- srcPath: "/pricing-plans-checkout-proxy",
103
+ srcPath: "/order-management-service-proxy",
104
104
  destPath: ""
105
105
  }
106
106
  ],
107
107
  "*.dev.wix-code.com": [
108
108
  {
109
- srcPath: "/_api/paid-plans/v2/checkout",
110
- destPath: "/v2/checkout"
109
+ srcPath: "/_api/paid-plans/v2/orders",
110
+ destPath: "/v2/orders"
111
111
  },
112
112
  {
113
- srcPath: "/_api/pricing-plans/v2/checkout",
114
- destPath: "/v2/checkout"
113
+ srcPath: "/_api/pricing-plans/v2/orders",
114
+ destPath: "/v2/orders"
115
115
  }
116
116
  ],
117
117
  "*.wixapps.net": [
118
118
  {
119
- srcPath: "/_api/paid-plans/v2/checkout",
120
- destPath: "/v2/checkout"
119
+ srcPath: "/_api/paid-plans/v2/orders",
120
+ destPath: "/v2/orders"
121
121
  }
122
122
  ],
123
123
  "editor-flow.wixapps.net": [
124
124
  {
125
- srcPath: "/_api/paid-plans/v2/checkout",
126
- destPath: "/v2/checkout"
125
+ srcPath: "/_api/paid-plans/v2/orders",
126
+ destPath: "/v2/orders"
127
127
  }
128
128
  ],
129
129
  "editor._base_domain_": [
130
130
  {
131
- srcPath: "/_api/paid-plans/v2/checkout",
132
- destPath: "/v2/checkout"
131
+ srcPath: "/_api/paid-plans/v2/orders",
132
+ destPath: "/v2/orders"
133
133
  },
134
134
  {
135
- srcPath: "/_api/pricing-plans/v2/checkout",
136
- destPath: "/v2/checkout"
135
+ srcPath: "/_api/pricing-plans/v2/orders",
136
+ destPath: "/v2/orders"
137
137
  }
138
138
  ],
139
139
  "blocks._base_domain_": [
140
140
  {
141
- srcPath: "/_api/paid-plans/v2/checkout",
142
- destPath: "/v2/checkout"
141
+ srcPath: "/_api/paid-plans/v2/orders",
142
+ destPath: "/v2/orders"
143
143
  },
144
144
  {
145
- srcPath: "/_api/pricing-plans/v2/checkout",
146
- destPath: "/v2/checkout"
145
+ srcPath: "/_api/pricing-plans/v2/orders",
146
+ destPath: "/v2/orders"
147
147
  }
148
148
  ],
149
149
  "create.editorx": [
150
150
  {
151
- srcPath: "/_api/paid-plans/v2/checkout",
152
- destPath: "/v2/checkout"
151
+ srcPath: "/_api/paid-plans/v2/orders",
152
+ destPath: "/v2/orders"
153
153
  },
154
154
  {
155
- srcPath: "/_api/pricing-plans/v2/checkout",
156
- destPath: "/v2/checkout"
155
+ srcPath: "/_api/pricing-plans/v2/orders",
156
+ destPath: "/v2/orders"
157
157
  }
158
158
  ],
159
159
  "editor.wixapps.net": [
160
160
  {
161
- srcPath: "/_api/paid-plans/v2/checkout",
162
- destPath: "/v2/checkout"
161
+ srcPath: "/_api/paid-plans/v2/orders",
162
+ destPath: "/v2/orders"
163
163
  },
164
164
  {
165
- srcPath: "/_api/pricing-plans/v2/checkout",
166
- destPath: "/v2/checkout"
165
+ srcPath: "/_api/pricing-plans/v2/orders",
166
+ destPath: "/v2/orders"
167
167
  }
168
168
  ],
169
169
  "forums._base_domain_": [
170
170
  {
171
- srcPath: "/_api/paid-plans/v2/checkout",
172
- destPath: "/v2/checkout"
171
+ srcPath: "/_api/paid-plans/v2/orders",
172
+ destPath: "/v2/orders"
173
173
  }
174
174
  ],
175
175
  "forums.wixapps.net": [
176
176
  {
177
- srcPath: "/_api/paid-plans/v2/checkout",
178
- destPath: "/v2/checkout"
177
+ srcPath: "/_api/paid-plans/v2/orders",
178
+ destPath: "/v2/orders"
179
179
  }
180
180
  ],
181
181
  "manage._base_domain_": [
182
182
  {
183
- srcPath: "/_api/pricing-plans/v2/checkout",
184
- destPath: "/v2/checkout"
185
- },
186
- {
187
- srcPath: "/_api/paid-plans/v2/checkout",
188
- destPath: "/v2/checkout"
183
+ srcPath: "/_api/pricing-plans/v2/orders",
184
+ destPath: "/v2/orders"
189
185
  },
190
186
  {
191
- srcPath: "/pricing-plans/v2/checkout",
192
- destPath: "/v2/checkout"
187
+ srcPath: "/_api/paid-plans/v2/orders",
188
+ destPath: "/v2/orders"
193
189
  }
194
190
  ],
195
191
  "www.wixapis.com": [
196
192
  {
197
- srcPath: "/pricing-plans/v2/checkout",
198
- destPath: "/v2/checkout"
193
+ srcPath: "/pricing-plans/v2/orders",
194
+ destPath: "/v2/orders"
199
195
  }
200
196
  ],
201
197
  _: [
202
198
  {
203
- srcPath: "/pricing-plans/v2/checkout",
204
- destPath: "/v2/checkout"
205
- },
206
- {
207
- srcPath: "/_api/paid-plans/v2/checkout",
208
- destPath: "/v2/checkout"
199
+ srcPath: "/_api/paid-plans/v2/orders",
200
+ destPath: "/v2/orders"
209
201
  },
210
202
  {
211
- srcPath: "/_api/pricing-plans/v2/checkout",
212
- destPath: "/v2/checkout"
203
+ srcPath: "/_api/pricing-plans/v2/orders",
204
+ destPath: "/v2/orders"
213
205
  }
214
206
  ],
215
207
  "*.pub.wix-code.com": [
216
208
  {
217
- srcPath: "/_api/paid-plans/v2/checkout",
218
- destPath: "/v2/checkout"
209
+ srcPath: "/_api/paid-plans/v2/orders",
210
+ destPath: "/v2/orders"
219
211
  }
220
212
  ],
221
213
  "www._base_domain_": [
222
214
  {
223
- srcPath: "/_api/paid-plans/v2/checkout",
224
- destPath: "/v2/checkout"
215
+ srcPath: "/_api/paid-plans/v2/orders",
216
+ destPath: "/v2/orders"
225
217
  }
226
218
  ],
227
219
  "apps._base_domain_": [
228
220
  {
229
- srcPath: "/_api/paid-plans/v2/checkout",
230
- destPath: "/v2/checkout"
221
+ srcPath: "/_api/paid-plans/v2/orders",
222
+ destPath: "/v2/orders"
231
223
  },
232
224
  {
233
- srcPath: "/_api/pricing-plans/v2/checkout",
234
- destPath: "/v2/checkout"
225
+ srcPath: "/_api/pricing-plans/v2/orders",
226
+ destPath: "/v2/orders"
235
227
  }
236
228
  ],
237
229
  "dev._base_domain_": [
238
230
  {
239
- srcPath: "/_api/paid-plans/v2/checkout",
240
- destPath: "/v2/checkout"
231
+ srcPath: "/_api/paid-plans/v2/orders",
232
+ destPath: "/v2/orders"
241
233
  },
242
234
  {
243
- srcPath: "/_api/pricing-plans/v2/checkout",
244
- destPath: "/v2/checkout"
235
+ srcPath: "/_api/pricing-plans/v2/orders",
236
+ destPath: "/v2/orders"
245
237
  }
246
238
  ]
247
239
  };
248
240
  return resolveUrl(Object.assign(opts, { domainToMappings }));
249
241
  }
250
- function resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl(opts) {
242
+ function resolveComWixpressMembershipV2OrdersCheckoutServiceUrl(opts) {
251
243
  const domainToMappings = {
252
244
  "api._api_base_domain_": [
253
245
  {
254
- srcPath: "/order-management-service-proxy",
246
+ srcPath: "/pricing-plans-checkout-proxy",
255
247
  destPath: ""
256
248
  }
257
249
  ],
258
250
  "*.dev.wix-code.com": [
259
251
  {
260
- srcPath: "/_api/paid-plans/v2/orders",
261
- destPath: "/v2/orders"
252
+ srcPath: "/_api/paid-plans/v2/checkout",
253
+ destPath: "/v2/checkout"
262
254
  },
263
255
  {
264
- srcPath: "/_api/pricing-plans/v2/orders",
265
- destPath: "/v2/orders"
256
+ srcPath: "/_api/pricing-plans/v2/checkout",
257
+ destPath: "/v2/checkout"
266
258
  }
267
259
  ],
268
260
  "*.wixapps.net": [
269
261
  {
270
- srcPath: "/_api/paid-plans/v2/orders",
271
- destPath: "/v2/orders"
262
+ srcPath: "/_api/paid-plans/v2/checkout",
263
+ destPath: "/v2/checkout"
272
264
  }
273
265
  ],
274
266
  "editor-flow.wixapps.net": [
275
267
  {
276
- srcPath: "/_api/paid-plans/v2/orders",
277
- destPath: "/v2/orders"
268
+ srcPath: "/_api/paid-plans/v2/checkout",
269
+ destPath: "/v2/checkout"
278
270
  }
279
271
  ],
280
272
  "editor._base_domain_": [
281
273
  {
282
- srcPath: "/_api/paid-plans/v2/orders",
283
- destPath: "/v2/orders"
274
+ srcPath: "/_api/paid-plans/v2/checkout",
275
+ destPath: "/v2/checkout"
284
276
  },
285
277
  {
286
- srcPath: "/_api/pricing-plans/v2/orders",
287
- destPath: "/v2/orders"
278
+ srcPath: "/_api/pricing-plans/v2/checkout",
279
+ destPath: "/v2/checkout"
288
280
  }
289
281
  ],
290
282
  "blocks._base_domain_": [
291
283
  {
292
- srcPath: "/_api/paid-plans/v2/orders",
293
- destPath: "/v2/orders"
284
+ srcPath: "/_api/paid-plans/v2/checkout",
285
+ destPath: "/v2/checkout"
294
286
  },
295
287
  {
296
- srcPath: "/_api/pricing-plans/v2/orders",
297
- destPath: "/v2/orders"
288
+ srcPath: "/_api/pricing-plans/v2/checkout",
289
+ destPath: "/v2/checkout"
298
290
  }
299
291
  ],
300
292
  "create.editorx": [
301
293
  {
302
- srcPath: "/_api/paid-plans/v2/orders",
303
- destPath: "/v2/orders"
294
+ srcPath: "/_api/paid-plans/v2/checkout",
295
+ destPath: "/v2/checkout"
304
296
  },
305
297
  {
306
- srcPath: "/_api/pricing-plans/v2/orders",
307
- destPath: "/v2/orders"
298
+ srcPath: "/_api/pricing-plans/v2/checkout",
299
+ destPath: "/v2/checkout"
308
300
  }
309
301
  ],
310
302
  "editor.wixapps.net": [
311
303
  {
312
- srcPath: "/_api/paid-plans/v2/orders",
313
- destPath: "/v2/orders"
304
+ srcPath: "/_api/paid-plans/v2/checkout",
305
+ destPath: "/v2/checkout"
314
306
  },
315
307
  {
316
- srcPath: "/_api/pricing-plans/v2/orders",
317
- destPath: "/v2/orders"
308
+ srcPath: "/_api/pricing-plans/v2/checkout",
309
+ destPath: "/v2/checkout"
318
310
  }
319
311
  ],
320
312
  "forums._base_domain_": [
321
313
  {
322
- srcPath: "/_api/paid-plans/v2/orders",
323
- destPath: "/v2/orders"
314
+ srcPath: "/_api/paid-plans/v2/checkout",
315
+ destPath: "/v2/checkout"
324
316
  }
325
317
  ],
326
318
  "forums.wixapps.net": [
327
319
  {
328
- srcPath: "/_api/paid-plans/v2/orders",
329
- destPath: "/v2/orders"
320
+ srcPath: "/_api/paid-plans/v2/checkout",
321
+ destPath: "/v2/checkout"
330
322
  }
331
323
  ],
332
324
  "manage._base_domain_": [
333
325
  {
334
- srcPath: "/_api/pricing-plans/v2/orders",
335
- destPath: "/v2/orders"
326
+ srcPath: "/_api/pricing-plans/v2/checkout",
327
+ destPath: "/v2/checkout"
336
328
  },
337
329
  {
338
- srcPath: "/_api/paid-plans/v2/orders",
339
- destPath: "/v2/orders"
330
+ srcPath: "/_api/paid-plans/v2/checkout",
331
+ destPath: "/v2/checkout"
332
+ },
333
+ {
334
+ srcPath: "/pricing-plans/v2/checkout",
335
+ destPath: "/v2/checkout"
340
336
  }
341
337
  ],
342
338
  "www.wixapis.com": [
343
339
  {
344
- srcPath: "/pricing-plans/v2/orders",
345
- destPath: "/v2/orders"
340
+ srcPath: "/pricing-plans/v2/checkout",
341
+ destPath: "/v2/checkout"
346
342
  }
347
343
  ],
348
344
  _: [
349
345
  {
350
- srcPath: "/_api/paid-plans/v2/orders",
351
- destPath: "/v2/orders"
346
+ srcPath: "/pricing-plans/v2/checkout",
347
+ destPath: "/v2/checkout"
352
348
  },
353
349
  {
354
- srcPath: "/_api/pricing-plans/v2/orders",
355
- destPath: "/v2/orders"
350
+ srcPath: "/_api/paid-plans/v2/checkout",
351
+ destPath: "/v2/checkout"
352
+ },
353
+ {
354
+ srcPath: "/_api/pricing-plans/v2/checkout",
355
+ destPath: "/v2/checkout"
356
356
  }
357
357
  ],
358
358
  "*.pub.wix-code.com": [
359
359
  {
360
- srcPath: "/_api/paid-plans/v2/orders",
361
- destPath: "/v2/orders"
360
+ srcPath: "/_api/paid-plans/v2/checkout",
361
+ destPath: "/v2/checkout"
362
362
  }
363
363
  ],
364
364
  "www._base_domain_": [
365
365
  {
366
- srcPath: "/_api/paid-plans/v2/orders",
367
- destPath: "/v2/orders"
366
+ srcPath: "/_api/paid-plans/v2/checkout",
367
+ destPath: "/v2/checkout"
368
368
  }
369
369
  ],
370
370
  "apps._base_domain_": [
371
371
  {
372
- srcPath: "/_api/paid-plans/v2/orders",
373
- destPath: "/v2/orders"
372
+ srcPath: "/_api/paid-plans/v2/checkout",
373
+ destPath: "/v2/checkout"
374
374
  },
375
375
  {
376
- srcPath: "/_api/pricing-plans/v2/orders",
377
- destPath: "/v2/orders"
376
+ srcPath: "/_api/pricing-plans/v2/checkout",
377
+ destPath: "/v2/checkout"
378
378
  }
379
379
  ],
380
380
  "dev._base_domain_": [
381
381
  {
382
- srcPath: "/_api/paid-plans/v2/orders",
383
- destPath: "/v2/orders"
382
+ srcPath: "/_api/paid-plans/v2/checkout",
383
+ destPath: "/v2/checkout"
384
384
  },
385
385
  {
386
- srcPath: "/_api/pricing-plans/v2/orders",
387
- destPath: "/v2/orders"
386
+ srcPath: "/_api/pricing-plans/v2/checkout",
387
+ destPath: "/v2/checkout"
388
388
  }
389
389
  ]
390
390
  };
391
391
  return resolveUrl(Object.assign(opts, { domainToMappings }));
392
392
  }
393
393
  var PACKAGE_NAME = "@wix/auto_sdk_pricing-plans_orders";
394
- function managementGetOrder(payload) {
395
- function __managementGetOrder({ host }) {
394
+ function createOnlineOrder(payload) {
395
+ function __createOnlineOrder({ host }) {
396
+ const serializedData = transformPaths(payload, [
397
+ {
398
+ transformFn: transformSDKTimestampToRESTTimestamp,
399
+ paths: [{ path: "startDate" }]
400
+ }
401
+ ]);
396
402
  const metadata = {
397
403
  entityFqdn: "wix.pricing_plans.v2.order",
398
- method: "GET",
399
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
404
+ method: "POST",
405
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
400
406
  packageName: PACKAGE_NAME,
401
407
  migrationOptions: {
402
408
  optInTransformResponse: true
403
409
  },
404
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
405
- protoPath: "/v2/orders/{id}",
406
- data: payload,
410
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
411
+ protoPath: "/v2/checkout/orders/online",
412
+ data: serializedData,
407
413
  host
408
414
  }),
409
- params: toURLSearchParams(payload),
415
+ data: serializedData,
410
416
  transformResponse: (payload2) => transformPaths(payload2, [
411
417
  {
412
418
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -429,138 +435,158 @@ function managementGetOrder(payload) {
429
435
  };
430
436
  return metadata;
431
437
  }
432
- return __managementGetOrder;
438
+ return __createOnlineOrder;
433
439
  }
434
- function managementListOrders(payload) {
435
- function __managementListOrders({ host }) {
440
+ function createOfflineOrder(payload) {
441
+ function __createOfflineOrder({ host }) {
436
442
  const serializedData = transformPaths(payload, [
437
443
  {
438
- transformFn: transformSDKFloatToRESTFloat,
439
- paths: [
440
- { path: "sorting.origin.latitude" },
441
- { path: "sorting.origin.longitude" }
442
- ]
444
+ transformFn: transformSDKTimestampToRESTTimestamp,
445
+ paths: [{ path: "startDate" }]
443
446
  }
444
447
  ]);
445
448
  const metadata = {
446
449
  entityFqdn: "wix.pricing_plans.v2.order",
447
- method: "GET",
448
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
450
+ method: "POST",
451
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
449
452
  packageName: PACKAGE_NAME,
450
453
  migrationOptions: {
451
454
  optInTransformResponse: true
452
455
  },
453
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
454
- protoPath: "/v2/orders",
456
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
457
+ protoPath: "/v2/checkout/orders/offline",
455
458
  data: serializedData,
456
459
  host
457
460
  }),
458
- params: toURLSearchParams(serializedData, true),
461
+ data: serializedData,
459
462
  transformResponse: (payload2) => transformPaths(payload2, [
460
463
  {
461
464
  transformFn: transformRESTTimestampToSDKTimestamp,
462
465
  paths: [
463
- { path: "orders.startDate" },
464
- { path: "orders.endDate" },
465
- { path: "orders.earliestEndDate" },
466
- { path: "orders.createdDate" },
467
- { path: "orders.updatedDate" },
468
- { path: "orders.cancellation.requestedDate" },
469
- { path: "orders.pausePeriods.pauseDate" },
470
- { path: "orders.pausePeriods.resumeDate" },
471
- { path: "orders.currentCycle.startedDate" },
472
- { path: "orders.currentCycle.endedDate" },
473
- { path: "orders.cycles.startedDate" },
474
- { path: "orders.cycles.endedDate" }
466
+ { path: "order.startDate" },
467
+ { path: "order.endDate" },
468
+ { path: "order.earliestEndDate" },
469
+ { path: "order.createdDate" },
470
+ { path: "order.updatedDate" },
471
+ { path: "order.cancellation.requestedDate" },
472
+ { path: "order.pausePeriods.pauseDate" },
473
+ { path: "order.pausePeriods.resumeDate" },
474
+ { path: "order.currentCycle.startedDate" },
475
+ { path: "order.currentCycle.endedDate" },
476
+ { path: "order.cycles.startedDate" },
477
+ { path: "order.cycles.endedDate" }
475
478
  ]
476
479
  }
477
480
  ])
478
481
  };
479
482
  return metadata;
480
483
  }
481
- return __managementListOrders;
484
+ return __createOfflineOrder;
482
485
  }
483
- function postponeEndDate(payload) {
484
- function __postponeEndDate({ host }) {
486
+ function getOnlineOrderPreview(payload) {
487
+ function __getOnlineOrderPreview({ host }) {
485
488
  const serializedData = transformPaths(payload, [
486
489
  {
487
490
  transformFn: transformSDKTimestampToRESTTimestamp,
488
- paths: [{ path: "endDate" }]
491
+ paths: [{ path: "startDate" }]
489
492
  }
490
493
  ]);
491
- const metadata = {
492
- entityFqdn: "wix.pricing_plans.v2.order",
493
- method: "PATCH",
494
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
495
- packageName: PACKAGE_NAME,
496
- migrationOptions: {
497
- optInTransformResponse: true
498
- },
499
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
500
- protoPath: "/v2/orders/{id}",
501
- data: serializedData,
502
- host
503
- }),
504
- data: serializedData
505
- };
506
- return metadata;
507
- }
508
- return __postponeEndDate;
509
- }
510
- function cancelOrder(payload) {
511
- function __cancelOrder({ host }) {
512
494
  const metadata = {
513
495
  entityFqdn: "wix.pricing_plans.v2.order",
514
496
  method: "POST",
515
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
497
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
516
498
  packageName: PACKAGE_NAME,
517
499
  migrationOptions: {
518
500
  optInTransformResponse: true
519
501
  },
520
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
521
- protoPath: "/v2/orders/{id}/cancel",
522
- data: payload,
502
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
503
+ protoPath: "/v2/checkout/orders/preview-online",
504
+ data: serializedData,
523
505
  host
524
506
  }),
525
- data: payload
507
+ data: serializedData,
508
+ transformResponse: (payload2) => transformPaths(payload2, [
509
+ {
510
+ transformFn: transformRESTTimestampToSDKTimestamp,
511
+ paths: [
512
+ { path: "order.startDate" },
513
+ { path: "order.endDate" },
514
+ { path: "order.earliestEndDate" },
515
+ { path: "order.createdDate" },
516
+ { path: "order.updatedDate" },
517
+ { path: "order.cancellation.requestedDate" },
518
+ { path: "order.pausePeriods.pauseDate" },
519
+ { path: "order.pausePeriods.resumeDate" },
520
+ { path: "order.currentCycle.startedDate" },
521
+ { path: "order.currentCycle.endedDate" },
522
+ { path: "order.cycles.startedDate" },
523
+ { path: "order.cycles.endedDate" }
524
+ ]
525
+ }
526
+ ])
526
527
  };
527
528
  return metadata;
528
529
  }
529
- return __cancelOrder;
530
+ return __getOnlineOrderPreview;
530
531
  }
531
- function markAsPaid(payload) {
532
- function __markAsPaid({ host }) {
532
+ function getOfflineOrderPreview(payload) {
533
+ function __getOfflineOrderPreview({ host }) {
534
+ const serializedData = transformPaths(payload, [
535
+ {
536
+ transformFn: transformSDKTimestampToRESTTimestamp,
537
+ paths: [{ path: "startDate" }]
538
+ }
539
+ ]);
533
540
  const metadata = {
534
541
  entityFqdn: "wix.pricing_plans.v2.order",
535
542
  method: "POST",
536
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
543
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
537
544
  packageName: PACKAGE_NAME,
538
545
  migrationOptions: {
539
546
  optInTransformResponse: true
540
547
  },
541
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
542
- protoPath: "/v2/orders/{id}/mark-as-paid",
543
- data: payload,
548
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
549
+ protoPath: "/v2/checkout/orders/preview-offline",
550
+ data: serializedData,
544
551
  host
545
552
  }),
546
- data: payload
553
+ data: serializedData,
554
+ transformResponse: (payload2) => transformPaths(payload2, [
555
+ {
556
+ transformFn: transformRESTTimestampToSDKTimestamp,
557
+ paths: [
558
+ { path: "order.startDate" },
559
+ { path: "order.endDate" },
560
+ { path: "order.earliestEndDate" },
561
+ { path: "order.createdDate" },
562
+ { path: "order.updatedDate" },
563
+ { path: "order.cancellation.requestedDate" },
564
+ { path: "order.pausePeriods.pauseDate" },
565
+ { path: "order.pausePeriods.resumeDate" },
566
+ { path: "order.currentCycle.startedDate" },
567
+ { path: "order.currentCycle.endedDate" },
568
+ { path: "order.cycles.startedDate" },
569
+ { path: "order.cycles.endedDate" }
570
+ ]
571
+ }
572
+ ])
547
573
  };
548
574
  return metadata;
549
575
  }
550
- return __markAsPaid;
576
+ return __getOfflineOrderPreview;
551
577
  }
552
- function pauseOrder(payload) {
553
- function __pauseOrder({ host }) {
578
+ function getPricePreview(payload) {
579
+ function __getPricePreview({ host }) {
554
580
  const metadata = {
555
581
  entityFqdn: "wix.pricing_plans.v2.order",
556
582
  method: "POST",
557
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
583
+ methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
558
584
  packageName: PACKAGE_NAME,
559
585
  migrationOptions: {
560
586
  optInTransformResponse: true
561
587
  },
562
- url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
563
- protoPath: "/v2/orders/{id}/pause",
588
+ url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
589
+ protoPath: "/v2/checkout/orders/price-preview",
564
590
  data: payload,
565
591
  host
566
592
  }),
@@ -568,51 +594,24 @@ function pauseOrder(payload) {
568
594
  };
569
595
  return metadata;
570
596
  }
571
- return __pauseOrder;
597
+ return __getPricePreview;
572
598
  }
573
- function resumeOrder(payload) {
574
- function __resumeOrder({ host }) {
599
+ function managementGetOrder(payload) {
600
+ function __managementGetOrder({ host }) {
575
601
  const metadata = {
576
602
  entityFqdn: "wix.pricing_plans.v2.order",
577
- method: "POST",
578
- methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
603
+ method: "GET",
604
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.GetOrder",
579
605
  packageName: PACKAGE_NAME,
580
606
  migrationOptions: {
581
607
  optInTransformResponse: true
582
608
  },
583
609
  url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
584
- protoPath: "/v2/orders/{id}/resume",
610
+ protoPath: "/v2/orders/{id}",
585
611
  data: payload,
586
612
  host
587
613
  }),
588
- data: payload
589
- };
590
- return metadata;
591
- }
592
- return __resumeOrder;
593
- }
594
- function createOnlineOrder(payload) {
595
- function __createOnlineOrder({ host }) {
596
- const serializedData = transformPaths(payload, [
597
- {
598
- transformFn: transformSDKTimestampToRESTTimestamp,
599
- paths: [{ path: "startDate" }]
600
- }
601
- ]);
602
- const metadata = {
603
- entityFqdn: "wix.pricing_plans.v2.order",
604
- method: "POST",
605
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOnlineOrder",
606
- packageName: PACKAGE_NAME,
607
- migrationOptions: {
608
- optInTransformResponse: true
609
- },
610
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
611
- protoPath: "/v2/checkout/orders/online",
612
- data: serializedData,
613
- host
614
- }),
615
- data: serializedData,
614
+ params: toURLSearchParams(payload),
616
615
  transformResponse: (payload2) => transformPaths(payload2, [
617
616
  {
618
617
  transformFn: transformRESTTimestampToSDKTimestamp,
@@ -635,158 +634,159 @@ function createOnlineOrder(payload) {
635
634
  };
636
635
  return metadata;
637
636
  }
638
- return __createOnlineOrder;
637
+ return __managementGetOrder;
639
638
  }
640
- function createOfflineOrder(payload) {
641
- function __createOfflineOrder({ host }) {
639
+ function managementListOrders(payload) {
640
+ function __managementListOrders({ host }) {
642
641
  const serializedData = transformPaths(payload, [
643
642
  {
644
- transformFn: transformSDKTimestampToRESTTimestamp,
645
- paths: [{ path: "startDate" }]
643
+ transformFn: transformSDKFloatToRESTFloat,
644
+ paths: [
645
+ { path: "sorting.origin.latitude" },
646
+ { path: "sorting.origin.longitude" }
647
+ ]
646
648
  }
647
649
  ]);
648
650
  const metadata = {
649
651
  entityFqdn: "wix.pricing_plans.v2.order",
650
- method: "POST",
651
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.CreateOfflineOrder",
652
+ method: "GET",
653
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ListOrders",
652
654
  packageName: PACKAGE_NAME,
653
655
  migrationOptions: {
654
656
  optInTransformResponse: true
655
657
  },
656
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
657
- protoPath: "/v2/checkout/orders/offline",
658
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
659
+ protoPath: "/v2/orders",
658
660
  data: serializedData,
659
661
  host
660
662
  }),
661
- data: serializedData,
663
+ params: toURLSearchParams(serializedData, true),
662
664
  transformResponse: (payload2) => transformPaths(payload2, [
663
665
  {
664
666
  transformFn: transformRESTTimestampToSDKTimestamp,
665
667
  paths: [
666
- { path: "order.startDate" },
667
- { path: "order.endDate" },
668
- { path: "order.earliestEndDate" },
669
- { path: "order.createdDate" },
670
- { path: "order.updatedDate" },
671
- { path: "order.cancellation.requestedDate" },
672
- { path: "order.pausePeriods.pauseDate" },
673
- { path: "order.pausePeriods.resumeDate" },
674
- { path: "order.currentCycle.startedDate" },
675
- { path: "order.currentCycle.endedDate" },
676
- { path: "order.cycles.startedDate" },
677
- { path: "order.cycles.endedDate" }
668
+ { path: "orders.startDate" },
669
+ { path: "orders.endDate" },
670
+ { path: "orders.earliestEndDate" },
671
+ { path: "orders.createdDate" },
672
+ { path: "orders.updatedDate" },
673
+ { path: "orders.cancellation.requestedDate" },
674
+ { path: "orders.pausePeriods.pauseDate" },
675
+ { path: "orders.pausePeriods.resumeDate" },
676
+ { path: "orders.currentCycle.startedDate" },
677
+ { path: "orders.currentCycle.endedDate" },
678
+ { path: "orders.cycles.startedDate" },
679
+ { path: "orders.cycles.endedDate" }
678
680
  ]
679
681
  }
680
682
  ])
681
683
  };
682
684
  return metadata;
683
685
  }
684
- return __createOfflineOrder;
686
+ return __managementListOrders;
687
+ }
688
+ function postponeEndDate(payload) {
689
+ function __postponeEndDate({ host }) {
690
+ const serializedData = transformPaths(payload, [
691
+ {
692
+ transformFn: transformSDKTimestampToRESTTimestamp,
693
+ paths: [{ path: "endDate" }]
694
+ }
695
+ ]);
696
+ const metadata = {
697
+ entityFqdn: "wix.pricing_plans.v2.order",
698
+ method: "PATCH",
699
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PostponeEndDate",
700
+ packageName: PACKAGE_NAME,
701
+ migrationOptions: {
702
+ optInTransformResponse: true
703
+ },
704
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
705
+ protoPath: "/v2/orders/{id}",
706
+ data: serializedData,
707
+ host
708
+ }),
709
+ data: serializedData
710
+ };
711
+ return metadata;
712
+ }
713
+ return __postponeEndDate;
714
+ }
715
+ function cancelOrder(payload) {
716
+ function __cancelOrder({ host }) {
717
+ const metadata = {
718
+ entityFqdn: "wix.pricing_plans.v2.order",
719
+ method: "POST",
720
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.CancelOrder",
721
+ packageName: PACKAGE_NAME,
722
+ migrationOptions: {
723
+ optInTransformResponse: true
724
+ },
725
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
726
+ protoPath: "/v2/orders/{id}/cancel",
727
+ data: payload,
728
+ host
729
+ }),
730
+ data: payload
731
+ };
732
+ return metadata;
733
+ }
734
+ return __cancelOrder;
685
735
  }
686
- function getOnlineOrderPreview(payload) {
687
- function __getOnlineOrderPreview({ host }) {
688
- const serializedData = transformPaths(payload, [
689
- {
690
- transformFn: transformSDKTimestampToRESTTimestamp,
691
- paths: [{ path: "startDate" }]
692
- }
693
- ]);
736
+ function markAsPaid(payload) {
737
+ function __markAsPaid({ host }) {
694
738
  const metadata = {
695
739
  entityFqdn: "wix.pricing_plans.v2.order",
696
740
  method: "POST",
697
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOnlineOrderPreview",
741
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.MarkAsPaid",
698
742
  packageName: PACKAGE_NAME,
699
743
  migrationOptions: {
700
744
  optInTransformResponse: true
701
745
  },
702
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
703
- protoPath: "/v2/checkout/orders/preview-online",
704
- data: serializedData,
746
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
747
+ protoPath: "/v2/orders/{id}/mark-as-paid",
748
+ data: payload,
705
749
  host
706
750
  }),
707
- data: serializedData,
708
- transformResponse: (payload2) => transformPaths(payload2, [
709
- {
710
- transformFn: transformRESTTimestampToSDKTimestamp,
711
- paths: [
712
- { path: "order.startDate" },
713
- { path: "order.endDate" },
714
- { path: "order.earliestEndDate" },
715
- { path: "order.createdDate" },
716
- { path: "order.updatedDate" },
717
- { path: "order.cancellation.requestedDate" },
718
- { path: "order.pausePeriods.pauseDate" },
719
- { path: "order.pausePeriods.resumeDate" },
720
- { path: "order.currentCycle.startedDate" },
721
- { path: "order.currentCycle.endedDate" },
722
- { path: "order.cycles.startedDate" },
723
- { path: "order.cycles.endedDate" }
724
- ]
725
- }
726
- ])
751
+ data: payload
727
752
  };
728
753
  return metadata;
729
754
  }
730
- return __getOnlineOrderPreview;
755
+ return __markAsPaid;
731
756
  }
732
- function getOfflineOrderPreview(payload) {
733
- function __getOfflineOrderPreview({ host }) {
734
- const serializedData = transformPaths(payload, [
735
- {
736
- transformFn: transformSDKTimestampToRESTTimestamp,
737
- paths: [{ path: "startDate" }]
738
- }
739
- ]);
757
+ function pauseOrder(payload) {
758
+ function __pauseOrder({ host }) {
740
759
  const metadata = {
741
760
  entityFqdn: "wix.pricing_plans.v2.order",
742
761
  method: "POST",
743
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetOfflineOrderPreview",
762
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.PauseOrder",
744
763
  packageName: PACKAGE_NAME,
745
764
  migrationOptions: {
746
765
  optInTransformResponse: true
747
766
  },
748
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
749
- protoPath: "/v2/checkout/orders/preview-offline",
750
- data: serializedData,
767
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
768
+ protoPath: "/v2/orders/{id}/pause",
769
+ data: payload,
751
770
  host
752
771
  }),
753
- data: serializedData,
754
- transformResponse: (payload2) => transformPaths(payload2, [
755
- {
756
- transformFn: transformRESTTimestampToSDKTimestamp,
757
- paths: [
758
- { path: "order.startDate" },
759
- { path: "order.endDate" },
760
- { path: "order.earliestEndDate" },
761
- { path: "order.createdDate" },
762
- { path: "order.updatedDate" },
763
- { path: "order.cancellation.requestedDate" },
764
- { path: "order.pausePeriods.pauseDate" },
765
- { path: "order.pausePeriods.resumeDate" },
766
- { path: "order.currentCycle.startedDate" },
767
- { path: "order.currentCycle.endedDate" },
768
- { path: "order.cycles.startedDate" },
769
- { path: "order.cycles.endedDate" }
770
- ]
771
- }
772
- ])
772
+ data: payload
773
773
  };
774
774
  return metadata;
775
775
  }
776
- return __getOfflineOrderPreview;
776
+ return __pauseOrder;
777
777
  }
778
- function getPricePreview(payload) {
779
- function __getPricePreview({ host }) {
778
+ function resumeOrder(payload) {
779
+ function __resumeOrder({ host }) {
780
780
  const metadata = {
781
781
  entityFqdn: "wix.pricing_plans.v2.order",
782
782
  method: "POST",
783
- methodFqn: "com.wixpress.membership.v2.orders.CheckoutService.GetPricePreview",
783
+ methodFqn: "com.wixpress.membership.v2.orders.OrderManagementService.ResumeOrder",
784
784
  packageName: PACKAGE_NAME,
785
785
  migrationOptions: {
786
786
  optInTransformResponse: true
787
787
  },
788
- url: resolveComWixpressMembershipV2OrdersCheckoutServiceUrl({
789
- protoPath: "/v2/checkout/orders/price-preview",
788
+ url: resolveComWixpressMembershipV2OrdersOrderManagementServiceUrl({
789
+ protoPath: "/v2/orders/{id}/resume",
790
790
  data: payload,
791
791
  host
792
792
  }),
@@ -794,7 +794,7 @@ function getPricePreview(payload) {
794
794
  };
795
795
  return metadata;
796
796
  }
797
- return __getPricePreview;
797
+ return __resumeOrder;
798
798
  }
799
799
  function memberGetOrder(payload) {
800
800
  function __memberGetOrder({ host }) {
@@ -970,6 +970,14 @@ var Status = /* @__PURE__ */ ((Status2) => {
970
970
  Status2["ENDED"] = "ENDED";
971
971
  return Status2;
972
972
  })(Status || {});
973
+ var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
974
+ WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
975
+ WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
976
+ WebhookIdentityType2["MEMBER"] = "MEMBER";
977
+ WebhookIdentityType2["WIX_USER"] = "WIX_USER";
978
+ WebhookIdentityType2["APP"] = "APP";
979
+ return WebhookIdentityType2;
980
+ })(WebhookIdentityType || {});
973
981
  var Set = /* @__PURE__ */ ((Set2) => {
974
982
  Set2["UNKNOWN_SET"] = "UNKNOWN_SET";
975
983
  Set2["BASIC"] = "BASIC";
@@ -992,45 +1000,37 @@ var ReasonNotSuspendable = /* @__PURE__ */ ((ReasonNotSuspendable2) => {
992
1000
  ReasonNotSuspendable2["OLD_STRIPE"] = "OLD_STRIPE";
993
1001
  return ReasonNotSuspendable2;
994
1002
  })(ReasonNotSuspendable || {});
995
- var WebhookIdentityType = /* @__PURE__ */ ((WebhookIdentityType2) => {
996
- WebhookIdentityType2["UNKNOWN"] = "UNKNOWN";
997
- WebhookIdentityType2["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
998
- WebhookIdentityType2["MEMBER"] = "MEMBER";
999
- WebhookIdentityType2["WIX_USER"] = "WIX_USER";
1000
- WebhookIdentityType2["APP"] = "APP";
1001
- return WebhookIdentityType2;
1002
- })(WebhookIdentityType || {});
1003
1003
 
1004
1004
  // src/pricing-plans-v2-order-orders.meta.ts
1005
- function managementGetOrder2() {
1006
- const payload = { id: ":id" };
1007
- const getRequestOptions = managementGetOrder(payload);
1005
+ function createOnlineOrder2() {
1006
+ const payload = {};
1007
+ const getRequestOptions = createOnlineOrder(payload);
1008
1008
  const getUrl = (context) => {
1009
1009
  const { url } = getRequestOptions(context);
1010
1010
  return url;
1011
1011
  };
1012
1012
  return {
1013
1013
  getUrl,
1014
- httpMethod: "GET",
1015
- path: "/v2/orders/{id}",
1016
- pathParams: { id: "id" },
1014
+ httpMethod: "POST",
1015
+ path: "/v2/checkout/orders/online",
1016
+ pathParams: {},
1017
1017
  __requestType: null,
1018
1018
  __originalRequestType: null,
1019
1019
  __responseType: null,
1020
1020
  __originalResponseType: null
1021
1021
  };
1022
1022
  }
1023
- function managementListOrders2() {
1023
+ function createOfflineOrder2() {
1024
1024
  const payload = {};
1025
- const getRequestOptions = managementListOrders(payload);
1025
+ const getRequestOptions = createOfflineOrder(payload);
1026
1026
  const getUrl = (context) => {
1027
1027
  const { url } = getRequestOptions(context);
1028
1028
  return url;
1029
1029
  };
1030
1030
  return {
1031
1031
  getUrl,
1032
- httpMethod: "GET",
1033
- path: "/v2/orders",
1032
+ httpMethod: "POST",
1033
+ path: "/v2/checkout/orders/offline",
1034
1034
  pathParams: {},
1035
1035
  __requestType: null,
1036
1036
  __originalRequestType: null,
@@ -1038,27 +1038,27 @@ function managementListOrders2() {
1038
1038
  __originalResponseType: null
1039
1039
  };
1040
1040
  }
1041
- function postponeEndDate2() {
1042
- const payload = { id: ":id" };
1043
- const getRequestOptions = postponeEndDate(payload);
1041
+ function getOnlineOrderPreview2() {
1042
+ const payload = {};
1043
+ const getRequestOptions = getOnlineOrderPreview(payload);
1044
1044
  const getUrl = (context) => {
1045
1045
  const { url } = getRequestOptions(context);
1046
1046
  return url;
1047
1047
  };
1048
1048
  return {
1049
1049
  getUrl,
1050
- httpMethod: "PATCH",
1051
- path: "/v2/orders/{id}",
1052
- pathParams: { id: "id" },
1050
+ httpMethod: "POST",
1051
+ path: "/v2/checkout/orders/preview-online",
1052
+ pathParams: {},
1053
1053
  __requestType: null,
1054
1054
  __originalRequestType: null,
1055
1055
  __responseType: null,
1056
1056
  __originalResponseType: null
1057
1057
  };
1058
1058
  }
1059
- function cancelOrder2() {
1060
- const payload = { id: ":id" };
1061
- const getRequestOptions = cancelOrder(payload);
1059
+ function getOfflineOrderPreview2() {
1060
+ const payload = {};
1061
+ const getRequestOptions = getOfflineOrderPreview(payload);
1062
1062
  const getUrl = (context) => {
1063
1063
  const { url } = getRequestOptions(context);
1064
1064
  return url;
@@ -1066,17 +1066,17 @@ function cancelOrder2() {
1066
1066
  return {
1067
1067
  getUrl,
1068
1068
  httpMethod: "POST",
1069
- path: "/v2/orders/{id}/cancel",
1070
- pathParams: { id: "id" },
1069
+ path: "/v2/checkout/orders/preview-offline",
1070
+ pathParams: {},
1071
1071
  __requestType: null,
1072
1072
  __originalRequestType: null,
1073
1073
  __responseType: null,
1074
1074
  __originalResponseType: null
1075
1075
  };
1076
1076
  }
1077
- function markAsPaid2() {
1078
- const payload = { id: ":id" };
1079
- const getRequestOptions = markAsPaid(payload);
1077
+ function getPricePreview2() {
1078
+ const payload = {};
1079
+ const getRequestOptions = getPricePreview(payload);
1080
1080
  const getUrl = (context) => {
1081
1081
  const { url } = getRequestOptions(context);
1082
1082
  return url;
@@ -1084,25 +1084,25 @@ function markAsPaid2() {
1084
1084
  return {
1085
1085
  getUrl,
1086
1086
  httpMethod: "POST",
1087
- path: "/v2/orders/{id}/mark-as-paid",
1088
- pathParams: { id: "id" },
1087
+ path: "/v2/checkout/orders/price-preview",
1088
+ pathParams: {},
1089
1089
  __requestType: null,
1090
1090
  __originalRequestType: null,
1091
1091
  __responseType: null,
1092
1092
  __originalResponseType: null
1093
1093
  };
1094
1094
  }
1095
- function pauseOrder2() {
1095
+ function managementGetOrder2() {
1096
1096
  const payload = { id: ":id" };
1097
- const getRequestOptions = pauseOrder(payload);
1097
+ const getRequestOptions = managementGetOrder(payload);
1098
1098
  const getUrl = (context) => {
1099
1099
  const { url } = getRequestOptions(context);
1100
1100
  return url;
1101
1101
  };
1102
1102
  return {
1103
1103
  getUrl,
1104
- httpMethod: "POST",
1105
- path: "/v2/orders/{id}/pause",
1104
+ httpMethod: "GET",
1105
+ path: "/v2/orders/{id}",
1106
1106
  pathParams: { id: "id" },
1107
1107
  __requestType: null,
1108
1108
  __originalRequestType: null,
@@ -1110,45 +1110,45 @@ function pauseOrder2() {
1110
1110
  __originalResponseType: null
1111
1111
  };
1112
1112
  }
1113
- function resumeOrder2() {
1114
- const payload = { id: ":id" };
1115
- const getRequestOptions = resumeOrder(payload);
1113
+ function managementListOrders2() {
1114
+ const payload = {};
1115
+ const getRequestOptions = managementListOrders(payload);
1116
1116
  const getUrl = (context) => {
1117
1117
  const { url } = getRequestOptions(context);
1118
1118
  return url;
1119
1119
  };
1120
1120
  return {
1121
1121
  getUrl,
1122
- httpMethod: "POST",
1123
- path: "/v2/orders/{id}/resume",
1124
- pathParams: { id: "id" },
1122
+ httpMethod: "GET",
1123
+ path: "/v2/orders",
1124
+ pathParams: {},
1125
1125
  __requestType: null,
1126
1126
  __originalRequestType: null,
1127
1127
  __responseType: null,
1128
1128
  __originalResponseType: null
1129
1129
  };
1130
1130
  }
1131
- function createOnlineOrder2() {
1132
- const payload = {};
1133
- const getRequestOptions = createOnlineOrder(payload);
1131
+ function postponeEndDate2() {
1132
+ const payload = { id: ":id" };
1133
+ const getRequestOptions = postponeEndDate(payload);
1134
1134
  const getUrl = (context) => {
1135
1135
  const { url } = getRequestOptions(context);
1136
1136
  return url;
1137
1137
  };
1138
1138
  return {
1139
1139
  getUrl,
1140
- httpMethod: "POST",
1141
- path: "/v2/checkout/orders/online",
1142
- pathParams: {},
1140
+ httpMethod: "PATCH",
1141
+ path: "/v2/orders/{id}",
1142
+ pathParams: { id: "id" },
1143
1143
  __requestType: null,
1144
1144
  __originalRequestType: null,
1145
1145
  __responseType: null,
1146
1146
  __originalResponseType: null
1147
1147
  };
1148
1148
  }
1149
- function createOfflineOrder2() {
1150
- const payload = {};
1151
- const getRequestOptions = createOfflineOrder(payload);
1149
+ function cancelOrder2() {
1150
+ const payload = { id: ":id" };
1151
+ const getRequestOptions = cancelOrder(payload);
1152
1152
  const getUrl = (context) => {
1153
1153
  const { url } = getRequestOptions(context);
1154
1154
  return url;
@@ -1156,17 +1156,17 @@ function createOfflineOrder2() {
1156
1156
  return {
1157
1157
  getUrl,
1158
1158
  httpMethod: "POST",
1159
- path: "/v2/checkout/orders/offline",
1160
- pathParams: {},
1159
+ path: "/v2/orders/{id}/cancel",
1160
+ pathParams: { id: "id" },
1161
1161
  __requestType: null,
1162
1162
  __originalRequestType: null,
1163
1163
  __responseType: null,
1164
1164
  __originalResponseType: null
1165
1165
  };
1166
1166
  }
1167
- function getOnlineOrderPreview2() {
1168
- const payload = {};
1169
- const getRequestOptions = getOnlineOrderPreview(payload);
1167
+ function markAsPaid2() {
1168
+ const payload = { id: ":id" };
1169
+ const getRequestOptions = markAsPaid(payload);
1170
1170
  const getUrl = (context) => {
1171
1171
  const { url } = getRequestOptions(context);
1172
1172
  return url;
@@ -1174,17 +1174,17 @@ function getOnlineOrderPreview2() {
1174
1174
  return {
1175
1175
  getUrl,
1176
1176
  httpMethod: "POST",
1177
- path: "/v2/checkout/orders/preview-online",
1178
- pathParams: {},
1177
+ path: "/v2/orders/{id}/mark-as-paid",
1178
+ pathParams: { id: "id" },
1179
1179
  __requestType: null,
1180
1180
  __originalRequestType: null,
1181
1181
  __responseType: null,
1182
1182
  __originalResponseType: null
1183
1183
  };
1184
1184
  }
1185
- function getOfflineOrderPreview2() {
1186
- const payload = {};
1187
- const getRequestOptions = getOfflineOrderPreview(payload);
1185
+ function pauseOrder2() {
1186
+ const payload = { id: ":id" };
1187
+ const getRequestOptions = pauseOrder(payload);
1188
1188
  const getUrl = (context) => {
1189
1189
  const { url } = getRequestOptions(context);
1190
1190
  return url;
@@ -1192,17 +1192,17 @@ function getOfflineOrderPreview2() {
1192
1192
  return {
1193
1193
  getUrl,
1194
1194
  httpMethod: "POST",
1195
- path: "/v2/checkout/orders/preview-offline",
1196
- pathParams: {},
1195
+ path: "/v2/orders/{id}/pause",
1196
+ pathParams: { id: "id" },
1197
1197
  __requestType: null,
1198
1198
  __originalRequestType: null,
1199
1199
  __responseType: null,
1200
1200
  __originalResponseType: null
1201
1201
  };
1202
1202
  }
1203
- function getPricePreview2() {
1204
- const payload = {};
1205
- const getRequestOptions = getPricePreview(payload);
1203
+ function resumeOrder2() {
1204
+ const payload = { id: ":id" };
1205
+ const getRequestOptions = resumeOrder(payload);
1206
1206
  const getUrl = (context) => {
1207
1207
  const { url } = getRequestOptions(context);
1208
1208
  return url;
@@ -1210,8 +1210,8 @@ function getPricePreview2() {
1210
1210
  return {
1211
1211
  getUrl,
1212
1212
  httpMethod: "POST",
1213
- path: "/v2/checkout/orders/price-preview",
1214
- pathParams: {},
1213
+ path: "/v2/orders/{id}/resume",
1214
+ pathParams: { id: "id" },
1215
1215
  __requestType: null,
1216
1216
  __originalRequestType: null,
1217
1217
  __responseType: null,