forked from Dionakra/webuy-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProductDetailsResponse.ts
57 lines (54 loc) · 1.16 KB
/
ProductDetailsResponse.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
import ErrorResponse from "./ErrorResponse";
export default interface ProductDetailsResponse {
response: {
ack: String,
data: {
boxDetails: ProductDetails,
masterBoxDetails: any
},
error: ErrorResponse
}
}
interface ProductDetails {
boxId: String,
boxName: String,
categoryId: Number,
categoryName: String,
categoryFriendlyName: String,
cannotBuy: 0 | 1,
isNewBox: 0 | 1,
cashPrice: Number,
exchangePrice: Number,
sellPrice: Number,
boxRating: Number,
outOfStock: 0 | 1,
ecomQuantityOnHand: Number,
webSellAllowed: 0 | 1,
webBuyAllowed: 0 | 1,
webShowSellPrice: 0 | 1,
webShowBuyPrice: 0 | 1,
imgUrls: {
large: String,
medium: String,
small: String,
masterBoxLarge: String,
masterBoxMedium: String,
masterBoxSmall: String
},
isMasterBox: 0 | 1,
boxDescription: String,
operatorId: any,
gradeId: any,
productGuide: {
productLineId: Number,
productGuideDescription: String,
globalGuide: any
},
boxRatingText: any,
attributeDetails: any,
attributeInfo: AttributeInfo[]
}
export interface AttributeInfo {
attributeFriendlyName: String,
attributeValue: String
}