@wix/auto_sdk_pricing-plans_orders 1.0.113 → 1.0.114
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 +155 -155
- package/build/cjs/index.js +452 -452
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/index.typings.d.ts +498 -498
- package/build/cjs/index.typings.js +323 -323
- package/build/cjs/index.typings.js.map +1 -1
- package/build/cjs/meta.d.ts +268 -268
- package/build/cjs/meta.js +334 -334
- package/build/cjs/meta.js.map +1 -1
- package/build/cjs/schemas.d.ts +30 -30
- package/build/cjs/schemas.js +59 -59
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/index.d.mts +155 -155
- package/build/es/index.mjs +452 -452
- package/build/es/index.mjs.map +1 -1
- package/build/es/index.typings.d.mts +498 -498
- package/build/es/index.typings.mjs +323 -323
- package/build/es/index.typings.mjs.map +1 -1
- package/build/es/meta.d.mts +268 -268
- package/build/es/meta.mjs +334 -334
- package/build/es/meta.mjs.map +1 -1
- package/build/es/schemas.d.mts +30 -30
- package/build/es/schemas.mjs +59 -59
- package/build/es/schemas.mjs.map +1 -1
- package/build/internal/cjs/index.d.ts +155 -155
- package/build/internal/cjs/index.js +452 -452
- package/build/internal/cjs/index.js.map +1 -1
- package/build/internal/cjs/index.typings.d.ts +498 -498
- package/build/internal/cjs/index.typings.js +323 -323
- package/build/internal/cjs/index.typings.js.map +1 -1
- package/build/internal/cjs/meta.d.ts +268 -268
- package/build/internal/cjs/meta.js +334 -334
- package/build/internal/cjs/meta.js.map +1 -1
- package/build/internal/cjs/schemas.d.ts +30 -30
- package/build/internal/cjs/schemas.js +59 -59
- package/build/internal/cjs/schemas.js.map +1 -1
- package/build/internal/es/index.d.mts +155 -155
- package/build/internal/es/index.mjs +452 -452
- package/build/internal/es/index.mjs.map +1 -1
- package/build/internal/es/index.typings.d.mts +498 -498
- package/build/internal/es/index.typings.mjs +323 -323
- package/build/internal/es/index.typings.mjs.map +1 -1
- package/build/internal/es/meta.d.mts +268 -268
- package/build/internal/es/meta.mjs +334 -334
- package/build/internal/es/meta.mjs.map +1 -1
- package/build/internal/es/schemas.d.mts +30 -30
- package/build/internal/es/schemas.mjs +59 -59
- package/build/internal/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
package/build/es/schemas.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from 'zod';
|
|
2
2
|
|
|
3
|
-
declare const
|
|
3
|
+
declare const MemberGetOrderRequest: z.ZodObject<{
|
|
4
4
|
_id: z.ZodString;
|
|
5
5
|
options: z.ZodOptional<z.ZodObject<{
|
|
6
6
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
@@ -10,7 +10,7 @@ declare const ManagementGetOrderRequest: z.ZodObject<{
|
|
|
10
10
|
}>>;
|
|
11
11
|
}, z.core.$strip>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
|
-
declare const
|
|
13
|
+
declare const MemberGetOrderResponse: z.ZodObject<{
|
|
14
14
|
order: z.ZodOptional<z.ZodObject<{
|
|
15
15
|
_id: z.ZodOptional<z.ZodString>;
|
|
16
16
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -210,9 +210,8 @@ declare const ManagementGetOrderResponse: z.ZodObject<{
|
|
|
210
210
|
}, z.core.$strip>>;
|
|
211
211
|
}, z.core.$strip>>;
|
|
212
212
|
}, z.core.$strip>;
|
|
213
|
-
declare const
|
|
213
|
+
declare const MemberListOrdersRequest: z.ZodObject<{
|
|
214
214
|
options: z.ZodOptional<z.ZodObject<{
|
|
215
|
-
buyerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
216
215
|
planIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
217
216
|
autoRenewCanceled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
218
217
|
orderStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -249,7 +248,7 @@ declare const ManagementListOrdersRequest: z.ZodObject<{
|
|
|
249
248
|
}>>;
|
|
250
249
|
}, z.core.$strip>>;
|
|
251
250
|
}, z.core.$strip>;
|
|
252
|
-
declare const
|
|
251
|
+
declare const MemberListOrdersResponse: z.ZodObject<{
|
|
253
252
|
orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
254
253
|
_id: z.ZodOptional<z.ZodString>;
|
|
255
254
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -459,12 +458,7 @@ declare const ManagementListOrdersResponse: z.ZodObject<{
|
|
|
459
458
|
}, z.core.$strip>>;
|
|
460
459
|
}, z.core.$strip>>;
|
|
461
460
|
}, z.core.$strip>;
|
|
462
|
-
declare const
|
|
463
|
-
_id: z.ZodString;
|
|
464
|
-
endDate: z.ZodDate;
|
|
465
|
-
}, z.core.$strip>;
|
|
466
|
-
declare const PostponeEndDateResponse: z.ZodObject<{}, z.core.$strip>;
|
|
467
|
-
declare const CancelOrderRequest: z.ZodObject<{
|
|
461
|
+
declare const RequestCancellationRequest: z.ZodObject<{
|
|
468
462
|
_id: z.ZodString;
|
|
469
463
|
effectiveAt: z.ZodEnum<{
|
|
470
464
|
UNDEFINED: "UNDEFINED";
|
|
@@ -472,19 +466,7 @@ declare const CancelOrderRequest: z.ZodObject<{
|
|
|
472
466
|
NEXT_PAYMENT_DATE: "NEXT_PAYMENT_DATE";
|
|
473
467
|
}>;
|
|
474
468
|
}, z.core.$strip>;
|
|
475
|
-
declare const
|
|
476
|
-
declare const MarkAsPaidRequest: z.ZodObject<{
|
|
477
|
-
_id: z.ZodString;
|
|
478
|
-
}, z.core.$strip>;
|
|
479
|
-
declare const MarkAsPaidResponse: z.ZodObject<{}, z.core.$strip>;
|
|
480
|
-
declare const PauseOrderRequest: z.ZodObject<{
|
|
481
|
-
_id: z.ZodString;
|
|
482
|
-
}, z.core.$strip>;
|
|
483
|
-
declare const PauseOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
484
|
-
declare const ResumeOrderRequest: z.ZodObject<{
|
|
485
|
-
_id: z.ZodString;
|
|
486
|
-
}, z.core.$strip>;
|
|
487
|
-
declare const ResumeOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
469
|
+
declare const RequestCancellationResponse: z.ZodObject<{}, z.core.$strip>;
|
|
488
470
|
declare const CreateOnlineOrderRequest: z.ZodObject<{
|
|
489
471
|
planId: z.ZodString;
|
|
490
472
|
options: z.ZodOptional<z.ZodObject<{
|
|
@@ -1416,7 +1398,7 @@ declare const GetPricePreviewResponse: z.ZodObject<{
|
|
|
1416
1398
|
}, z.core.$strip>>;
|
|
1417
1399
|
}, z.core.$strip>>>;
|
|
1418
1400
|
}, z.core.$strip>;
|
|
1419
|
-
declare const
|
|
1401
|
+
declare const ManagementGetOrderRequest: z.ZodObject<{
|
|
1420
1402
|
_id: z.ZodString;
|
|
1421
1403
|
options: z.ZodOptional<z.ZodObject<{
|
|
1422
1404
|
fieldSet: z.ZodOptional<z.ZodEnum<{
|
|
@@ -1426,7 +1408,7 @@ declare const MemberGetOrderRequest: z.ZodObject<{
|
|
|
1426
1408
|
}>>;
|
|
1427
1409
|
}, z.core.$strip>>;
|
|
1428
1410
|
}, z.core.$strip>;
|
|
1429
|
-
declare const
|
|
1411
|
+
declare const ManagementGetOrderResponse: z.ZodObject<{
|
|
1430
1412
|
_id: z.ZodOptional<z.ZodString>;
|
|
1431
1413
|
planId: z.ZodOptional<z.ZodString>;
|
|
1432
1414
|
subscriptionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1624,8 +1606,9 @@ declare const MemberGetOrderResponse: z.ZodObject<{
|
|
|
1624
1606
|
submissionData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1625
1607
|
}, z.core.$strip>>;
|
|
1626
1608
|
}, z.core.$strip>;
|
|
1627
|
-
declare const
|
|
1609
|
+
declare const ManagementListOrdersRequest: z.ZodObject<{
|
|
1628
1610
|
options: z.ZodOptional<z.ZodObject<{
|
|
1611
|
+
buyerIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1629
1612
|
planIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
1630
1613
|
autoRenewCanceled: z.ZodNullable<z.ZodOptional<z.ZodBoolean>>;
|
|
1631
1614
|
orderStatuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
|
|
@@ -1662,7 +1645,7 @@ declare const MemberListOrdersRequest: z.ZodObject<{
|
|
|
1662
1645
|
}>>;
|
|
1663
1646
|
}, z.core.$strip>>;
|
|
1664
1647
|
}, z.core.$strip>;
|
|
1665
|
-
declare const
|
|
1648
|
+
declare const ManagementListOrdersResponse: z.ZodObject<{
|
|
1666
1649
|
orders: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
1667
1650
|
_id: z.ZodOptional<z.ZodString>;
|
|
1668
1651
|
planId: z.ZodOptional<z.ZodString>;
|
|
@@ -1872,7 +1855,12 @@ declare const MemberListOrdersResponse: z.ZodObject<{
|
|
|
1872
1855
|
}, z.core.$strip>>;
|
|
1873
1856
|
}, z.core.$strip>>;
|
|
1874
1857
|
}, z.core.$strip>;
|
|
1875
|
-
declare const
|
|
1858
|
+
declare const PostponeEndDateRequest: z.ZodObject<{
|
|
1859
|
+
_id: z.ZodString;
|
|
1860
|
+
endDate: z.ZodDate;
|
|
1861
|
+
}, z.core.$strip>;
|
|
1862
|
+
declare const PostponeEndDateResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1863
|
+
declare const CancelOrderRequest: z.ZodObject<{
|
|
1876
1864
|
_id: z.ZodString;
|
|
1877
1865
|
effectiveAt: z.ZodEnum<{
|
|
1878
1866
|
UNDEFINED: "UNDEFINED";
|
|
@@ -1880,6 +1868,18 @@ declare const RequestCancellationRequest: z.ZodObject<{
|
|
|
1880
1868
|
NEXT_PAYMENT_DATE: "NEXT_PAYMENT_DATE";
|
|
1881
1869
|
}>;
|
|
1882
1870
|
}, z.core.$strip>;
|
|
1883
|
-
declare const
|
|
1871
|
+
declare const CancelOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1872
|
+
declare const MarkAsPaidRequest: z.ZodObject<{
|
|
1873
|
+
_id: z.ZodString;
|
|
1874
|
+
}, z.core.$strip>;
|
|
1875
|
+
declare const MarkAsPaidResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1876
|
+
declare const PauseOrderRequest: z.ZodObject<{
|
|
1877
|
+
_id: z.ZodString;
|
|
1878
|
+
}, z.core.$strip>;
|
|
1879
|
+
declare const PauseOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1880
|
+
declare const ResumeOrderRequest: z.ZodObject<{
|
|
1881
|
+
_id: z.ZodString;
|
|
1882
|
+
}, z.core.$strip>;
|
|
1883
|
+
declare const ResumeOrderResponse: z.ZodObject<{}, z.core.$strip>;
|
|
1884
1884
|
|
|
1885
1885
|
export { CancelOrderRequest, CancelOrderResponse, CreateOfflineOrderRequest, CreateOfflineOrderResponse, CreateOnlineOrderRequest, CreateOnlineOrderResponse, GetOfflineOrderPreviewRequest, GetOfflineOrderPreviewResponse, GetOnlineOrderPreviewRequest, GetOnlineOrderPreviewResponse, GetPricePreviewRequest, GetPricePreviewResponse, ManagementGetOrderRequest, ManagementGetOrderResponse, ManagementListOrdersRequest, ManagementListOrdersResponse, MarkAsPaidRequest, MarkAsPaidResponse, MemberGetOrderRequest, MemberGetOrderResponse, MemberListOrdersRequest, MemberListOrdersResponse, PauseOrderRequest, PauseOrderResponse, PostponeEndDateRequest, PostponeEndDateResponse, RequestCancellationRequest, RequestCancellationResponse, ResumeOrderRequest, ResumeOrderResponse };
|
package/build/es/schemas.mjs
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
// src/pricing-plans-v2-order-orders.schemas.ts
|
|
2
2
|
import * as z from "zod";
|
|
3
|
-
var
|
|
3
|
+
var MemberGetOrderRequest = z.object({
|
|
4
4
|
_id: z.string().describe("Order ID.").regex(
|
|
5
5
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
6
6
|
"Must be a valid GUID"
|
|
7
7
|
),
|
|
8
|
-
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options
|
|
8
|
+
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options for getting a logged-in member's order. ").optional()
|
|
9
9
|
});
|
|
10
|
-
var
|
|
10
|
+
var MemberGetOrderResponse = z.object({
|
|
11
11
|
order: z.object({
|
|
12
12
|
_id: z.string().describe("Order ID.").regex(
|
|
13
13
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -328,15 +328,12 @@ var ManagementGetOrderResponse = z.object({
|
|
|
328
328
|
}).describe(
|
|
329
329
|
"Information about the form submitted during the plan's checkout."
|
|
330
330
|
).optional()
|
|
331
|
-
}).describe("
|
|
331
|
+
}).describe("Requested order.").optional()
|
|
332
332
|
});
|
|
333
|
-
var
|
|
333
|
+
var MemberListOrdersRequest = z.object({
|
|
334
334
|
options: z.object({
|
|
335
|
-
buyerIds: z.array(z.string()).optional(),
|
|
336
335
|
planIds: z.array(z.string()).optional(),
|
|
337
|
-
autoRenewCanceled: z.boolean().describe(
|
|
338
|
-
"Filter by whether or not the auto-renewal of recurring orders was canceled."
|
|
339
|
-
).optional().nullable(),
|
|
336
|
+
autoRenewCanceled: z.boolean().describe("Filter for orders where auto renewal was canceled.").optional().nullable(),
|
|
340
337
|
orderStatuses: z.array(
|
|
341
338
|
z.enum([
|
|
342
339
|
"UNDEFINED",
|
|
@@ -360,19 +357,17 @@ var ManagementListOrdersRequest = z.object({
|
|
|
360
357
|
])
|
|
361
358
|
).optional(),
|
|
362
359
|
limit: z.number().int().describe(
|
|
363
|
-
"
|
|
360
|
+
"Limit the number of pricing plans returned. Default limit is 50."
|
|
364
361
|
).min(1).max(50).optional().nullable(),
|
|
365
|
-
offset: z.number().int().describe("Number of
|
|
362
|
+
offset: z.number().int().describe("Number of entries to offset.").min(0).optional().nullable(),
|
|
366
363
|
sorting: z.object({
|
|
367
364
|
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
368
365
|
order: z.enum(["ASC", "DESC"]).optional()
|
|
369
|
-
}).describe(
|
|
370
|
-
"Sort order.\n\nUse `ASC` for ascending order or `DESC` for descending order.\n\nDefault: `DESC`."
|
|
371
|
-
).optional(),
|
|
366
|
+
}).describe("Sorting direction (defaults to ASC) and field to sort by.").optional(),
|
|
372
367
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
373
368
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
374
369
|
});
|
|
375
|
-
var
|
|
370
|
+
var MemberListOrdersResponse = z.object({
|
|
376
371
|
orders: z.array(
|
|
377
372
|
z.object({
|
|
378
373
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -723,45 +718,14 @@ var ManagementListOrdersResponse = z.object({
|
|
|
723
718
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
724
719
|
).optional()
|
|
725
720
|
});
|
|
726
|
-
var
|
|
727
|
-
_id: z.string().describe("Order ID.").regex(
|
|
728
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
729
|
-
"Must be a valid GUID"
|
|
730
|
-
),
|
|
731
|
-
endDate: z.date().describe(
|
|
732
|
-
"New end date and time.\n\nMust be later than the current end date and time."
|
|
733
|
-
)
|
|
734
|
-
});
|
|
735
|
-
var PostponeEndDateResponse = z.object({});
|
|
736
|
-
var CancelOrderRequest = z.object({
|
|
721
|
+
var RequestCancellationRequest = z.object({
|
|
737
722
|
_id: z.string().describe("Order ID.").regex(
|
|
738
723
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
739
724
|
"Must be a valid GUID"
|
|
740
725
|
),
|
|
741
726
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
742
727
|
});
|
|
743
|
-
var
|
|
744
|
-
var MarkAsPaidRequest = z.object({
|
|
745
|
-
_id: z.string().describe("Order ID.").regex(
|
|
746
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
747
|
-
"Must be a valid GUID"
|
|
748
|
-
)
|
|
749
|
-
});
|
|
750
|
-
var MarkAsPaidResponse = z.object({});
|
|
751
|
-
var PauseOrderRequest = z.object({
|
|
752
|
-
_id: z.string().describe("Order ID.").regex(
|
|
753
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
754
|
-
"Must be a valid GUID"
|
|
755
|
-
)
|
|
756
|
-
});
|
|
757
|
-
var PauseOrderResponse = z.object({});
|
|
758
|
-
var ResumeOrderRequest = z.object({
|
|
759
|
-
_id: z.string().describe("Order ID.").regex(
|
|
760
|
-
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
761
|
-
"Must be a valid GUID"
|
|
762
|
-
)
|
|
763
|
-
});
|
|
764
|
-
var ResumeOrderResponse = z.object({});
|
|
728
|
+
var RequestCancellationResponse = z.object({});
|
|
765
729
|
var CreateOnlineOrderRequest = z.object({
|
|
766
730
|
planId: z.string().describe("Plan ID.").regex(
|
|
767
731
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -2283,14 +2247,14 @@ var GetPricePreviewResponse = z.object({
|
|
|
2283
2247
|
})
|
|
2284
2248
|
).optional()
|
|
2285
2249
|
});
|
|
2286
|
-
var
|
|
2250
|
+
var ManagementGetOrderRequest = z.object({
|
|
2287
2251
|
_id: z.string().describe("Order ID.").regex(
|
|
2288
2252
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2289
2253
|
"Must be a valid GUID"
|
|
2290
2254
|
),
|
|
2291
|
-
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options
|
|
2255
|
+
options: z.object({ fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional() }).describe("Options to use when getting an order. ").optional()
|
|
2292
2256
|
});
|
|
2293
|
-
var
|
|
2257
|
+
var ManagementGetOrderResponse = z.object({
|
|
2294
2258
|
_id: z.string().describe("Order ID.").regex(
|
|
2295
2259
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2296
2260
|
"Must be a valid GUID"
|
|
@@ -2603,10 +2567,13 @@ var MemberGetOrderResponse = z.object({
|
|
|
2603
2567
|
"Information about the form submitted during the plan's checkout."
|
|
2604
2568
|
).optional()
|
|
2605
2569
|
});
|
|
2606
|
-
var
|
|
2570
|
+
var ManagementListOrdersRequest = z.object({
|
|
2607
2571
|
options: z.object({
|
|
2572
|
+
buyerIds: z.array(z.string()).optional(),
|
|
2608
2573
|
planIds: z.array(z.string()).optional(),
|
|
2609
|
-
autoRenewCanceled: z.boolean().describe(
|
|
2574
|
+
autoRenewCanceled: z.boolean().describe(
|
|
2575
|
+
"Filter by whether or not the auto-renewal of recurring orders was canceled."
|
|
2576
|
+
).optional().nullable(),
|
|
2610
2577
|
orderStatuses: z.array(
|
|
2611
2578
|
z.enum([
|
|
2612
2579
|
"UNDEFINED",
|
|
@@ -2630,17 +2597,19 @@ var MemberListOrdersRequest = z.object({
|
|
|
2630
2597
|
])
|
|
2631
2598
|
).optional(),
|
|
2632
2599
|
limit: z.number().int().describe(
|
|
2633
|
-
"
|
|
2600
|
+
"Number of orders to return. See Sorting and Paging for more information.\n\nMax: `50`"
|
|
2634
2601
|
).min(1).max(50).optional().nullable(),
|
|
2635
|
-
offset: z.number().int().describe("Number of
|
|
2602
|
+
offset: z.number().int().describe("Number of orders to skip in the current sort order.").min(0).optional().nullable(),
|
|
2636
2603
|
sorting: z.object({
|
|
2637
2604
|
fieldName: z.string().describe("Name of the field to sort by.").max(512).optional(),
|
|
2638
2605
|
order: z.enum(["ASC", "DESC"]).optional()
|
|
2639
|
-
}).describe(
|
|
2606
|
+
}).describe(
|
|
2607
|
+
"Sort order.\n\nUse `ASC` for ascending order or `DESC` for descending order.\n\nDefault: `DESC`."
|
|
2608
|
+
).optional(),
|
|
2640
2609
|
fieldSet: z.enum(["UNKNOWN_SET", "BASIC", "FULL"]).optional()
|
|
2641
2610
|
}).describe("Filtering, sorting, and pagination options. ").optional()
|
|
2642
2611
|
});
|
|
2643
|
-
var
|
|
2612
|
+
var ManagementListOrdersResponse = z.object({
|
|
2644
2613
|
orders: z.array(
|
|
2645
2614
|
z.object({
|
|
2646
2615
|
_id: z.string().describe("Order ID.").regex(
|
|
@@ -2991,14 +2960,45 @@ var MemberListOrdersResponse = z.object({
|
|
|
2991
2960
|
"Object containing paging-related data (number of orders returned, offset)."
|
|
2992
2961
|
).optional()
|
|
2993
2962
|
});
|
|
2994
|
-
var
|
|
2963
|
+
var PostponeEndDateRequest = z.object({
|
|
2964
|
+
_id: z.string().describe("Order ID.").regex(
|
|
2965
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2966
|
+
"Must be a valid GUID"
|
|
2967
|
+
),
|
|
2968
|
+
endDate: z.date().describe(
|
|
2969
|
+
"New end date and time.\n\nMust be later than the current end date and time."
|
|
2970
|
+
)
|
|
2971
|
+
});
|
|
2972
|
+
var PostponeEndDateResponse = z.object({});
|
|
2973
|
+
var CancelOrderRequest = z.object({
|
|
2995
2974
|
_id: z.string().describe("Order ID.").regex(
|
|
2996
2975
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2997
2976
|
"Must be a valid GUID"
|
|
2998
2977
|
),
|
|
2999
2978
|
effectiveAt: z.enum(["UNDEFINED", "IMMEDIATELY", "NEXT_PAYMENT_DATE"])
|
|
3000
2979
|
});
|
|
3001
|
-
var
|
|
2980
|
+
var CancelOrderResponse = z.object({});
|
|
2981
|
+
var MarkAsPaidRequest = z.object({
|
|
2982
|
+
_id: z.string().describe("Order ID.").regex(
|
|
2983
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2984
|
+
"Must be a valid GUID"
|
|
2985
|
+
)
|
|
2986
|
+
});
|
|
2987
|
+
var MarkAsPaidResponse = z.object({});
|
|
2988
|
+
var PauseOrderRequest = z.object({
|
|
2989
|
+
_id: z.string().describe("Order ID.").regex(
|
|
2990
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2991
|
+
"Must be a valid GUID"
|
|
2992
|
+
)
|
|
2993
|
+
});
|
|
2994
|
+
var PauseOrderResponse = z.object({});
|
|
2995
|
+
var ResumeOrderRequest = z.object({
|
|
2996
|
+
_id: z.string().describe("Order ID.").regex(
|
|
2997
|
+
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2998
|
+
"Must be a valid GUID"
|
|
2999
|
+
)
|
|
3000
|
+
});
|
|
3001
|
+
var ResumeOrderResponse = z.object({});
|
|
3002
3002
|
export {
|
|
3003
3003
|
CancelOrderRequest,
|
|
3004
3004
|
CancelOrderResponse,
|