-
Notifications
You must be signed in to change notification settings - Fork 0
/
shopee.proto
146 lines (123 loc) · 2.86 KB
/
shopee.proto
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
syntax = "proto3";
package shopee;
option go_package = "github.com/subiz/header/shopee";
message ShopeeResponse {
int64 total_count = 4;
bool has_next_page = 5;
int64 next_offset = 6;
repeated ProductItem item = 7;
repeated ProductItem item_list = 8;
repeated TierVariation tier_variation = 9;
repeated Model model = 10;
string shop_logo = 12;
string description = 13;
string shop_name = 14;
}
message Brand {
int64 brand_id = 2;
string original_brand_name = 3;
}
message ProductAttributeValue {
int64 value_id = 4;
string original_value_name = 5;
string value_unit = 6;
}
message ProductAttribute {
int64 attribute_id = 2;
string original_attribute_name = 3;
bool is_mandatory = 4;
repeated ProductAttributeValue attribute_value_list = 5;
}
message Price {
string currency = 2;
float original_price = 3;
float current_price = 4;
float inflated_price_of_current_price = 5;
float inflated_price_of_original_price = 6;
}
message Stock {
int64 stock_type = 3;
int64 current_stock = 4;
int64 normal_stock = 5;
int64 resered_stock = 6;
}
message ProductImage {
repeated string image_url_list = 2;
repeated string image_id_list = 3;
}
message Dimension {
int64 package_length = 2;
int64 package_width = 3;
int64 package_height = 4;
}
message Logistic {
int64 logistic_id = 2;
string logistic_name = 3;
bool enabled = 4;
bool is_free = 5;
int64 estimated_shipping_fee = 6;
}
message PreOrder {
bool is_pre_order = 4;
int64 days_to_ship = 5;
}
message ProductItem {
int64 item_id = 3;
int64 category_id = 4;
string item_name = 5;
string description = 6;
string item_sku = 7;
int64 create_time = 8;
int64 update_time = 9;
string weight = 10;
string condition = 11; // NEW
string item_status = 12; // NORMAL UNLISTED
bool has_model = 13;
int64 promotion_id = 14;
Brand brand = 15;
int64 item_dangerous = 16;
repeated ProductAttribute attribute_list = 17;
repeated Price price_info = 18;
repeated Stock stock_info = 19;
ProductImage image = 20;
Dimension dimension = 21;
repeated Logistic logistic_info = 22;
PreOrder pre_order = 23;
}
message TierVariationOptionImage {
string image_id = 4;
string image_url = 5;
}
message TierVariationOption {
string option = 3;
TierVariationOptionImage image = 4;
}
message TierVariation {
string name = 3;
repeated TierVariationOption option_list = 4;
}
message Response {
string request_id = 4;
string error = 5;
string message = 6;
string warning = 7;
ShopeeResponse response = 8;
int64 expire_in = 9;
string access_token = 10;
string refresh_token = 11;
int64 partner_id = 12;
int64 shop_id = 13;
int64 merchant_id = 14;
string shop_name = 16;
string region = 17;
string status = 18;
}
message Model {
int64 model_id = 2;
int64 promotion_id = 3;
repeated int64 tier_index = 4;
repeated Stock stock_info = 5;
repeated Price price_info = 6;
string model_sku = 7;
PreOrder pre_order = 8;
}