Repository navigation
Expand file tree
/
Copy pathtypes.ts
More file actions
77 lines (70 loc) · 1.44 KB
/
Copy pathtypes.ts
File metadata and controls
77 lines (70 loc) · 1.44 KB
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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
/**
* CU 서비스 전용 타입 정의
*/
export interface CuStore {
storeCode: string;
storeName: string;
phone: string;
address: string;
latitude: number;
longitude: number;
distanceM: number;
stock: number;
deliveryYn: boolean;
pickupYn: boolean;
reserveYn: boolean;
}
export interface CuStockItem {
itemCode: string;
onItemNo: string;
itemName: string;
price: number;
pickupYn: boolean;
deliveryYn: boolean;
reserveYn: boolean;
}
interface CuStoreRecord {
storeCd?: string;
storeNm?: string;
storeTelNo?: string | null;
addrFst?: string | null;
addrDetail?: string | null;
doroStoreAddr1?: string | null;
doroStoreAddr2?: string | null;
latVal?: number | string;
longVal?: number | string;
distance?: number | string;
stock?: number | string | null;
deliveryYn?: string;
deliveryPickYn?: string;
jumpoPickYn?: string;
reserveYn?: string;
}
export interface CuStoreResponse {
totalCnt?: number;
storeList?: CuStoreRecord[];
}
interface CuStockFields {
item_cd?: string;
on_item_no?: string;
item_nm?: string;
hyun_maega?: number | string;
pickup_yn?: string;
deliv_yn?: string;
reserv_yn?: string;
}
interface CuStockRow {
fields?: CuStockFields;
}
export interface CuStockMainResponse {
resp_cd?: string;
spellModifyYn?: string;
data?: {
stockResult?: {
result?: {
total_count?: number | string;
rows?: CuStockRow[];
};
};
};
}