generated from stijnvanhulle/template
-
-
Notifications
You must be signed in to change notification settings - Fork 88
/
Copy pathOrder.ts
57 lines (57 loc) · 1.24 KB
/
Order.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
export const OrderOrderTypeEnum = {
foo: 'foo',
bar: 'bar',
} as const
export type OrderOrderTypeEnum = (typeof OrderOrderTypeEnum)[keyof typeof OrderOrderTypeEnum]
export const OrderStatusEnum = {
placed: 'placed',
approved: 'approved',
delivered: 'delivered',
} as const
export type OrderStatusEnum = (typeof OrderStatusEnum)[keyof typeof OrderStatusEnum]
export const OrderHttpStatusEnum = {
ok: 200,
not_found: 400,
} as const
export type OrderHttpStatusEnum = (typeof OrderHttpStatusEnum)[keyof typeof OrderHttpStatusEnum]
export type Order = {
/**
* @type integer | undefined, int64
*/
id?: number
/**
* @type integer | undefined, int64
*/
petId?: number
/**
* @type integer | undefined, int32
*/
quantity?: number
/**
* @type string | undefined
*/
orderType?: OrderOrderTypeEnum
/**
* @description Order Status
* @type string | undefined
*/
type?: string
/**
* @type string | undefined, date-time
*/
shipDate?: Date
/**
* @description Order Status
* @type string | undefined
*/
status?: OrderStatusEnum
/**
* @description HTTP Status
* @type number | undefined
*/
http_status?: OrderHttpStatusEnum
/**
* @type boolean | undefined
*/
complete?: boolean
}