This repository has been archived by the owner on May 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 15
/
model-public.go
49 lines (43 loc) · 2.2 KB
/
model-public.go
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
package shopeego
type GetShopsByPartnerRequest struct {
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
}
type GetShopsByPartnerResponse struct {
// A list of shops authorized to the partner.
AuthedShops []GetShopsByPartnerResponseShop `json:"authed_shops,omitempty"`
// The identifier for an API request for error tracking
RequestID string `json:"request_id,omitempty"`
}
type GetCategoriesByCountryRequest struct {
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
// Two-digit country code(capital letter).
Country string `json:"country,omitempty"`
// Is cross border or not. 1: cross border; 0: not cross border
IsCB bool `json:"is_cb,omitempty"`
// Indicate the translation language. Language values include: en(English), vi(Vietnamese), id(Indonesian), th(Thai), zh-Hant(Traditional Chinese), zh-Hans(Simplified Chinese), ms-my(Malaysian Malay). If the selected language is not supported in certain shop location, the response will be in default language.
Language string `json:"language,omitempty"`
}
type GetCategoriesByCountryResponse struct {
// List of categories info.
Categories []GetCategoriesByCountryResponseCategory `json:"categories,omitempty"`
// The identifier for an API request for error tracking
RequestID string `json:"request_id,omitempty"`
}
type GetPaymentListRequest struct {
// Partner ID is assigned upon registration is successful. Required for all requests.
PartnerID int64 `json:"partner_id,omitempty"`
// This is to indicate the timestamp of the request. Required for all requests.
Timestamp int `json:"timestamp,omitempty"`
// ID/MY/SG/VN/PH/TH/TW
Country string `json:"country,omitempty"`
}
type GetPaymentListResponse struct {
//
PaymentMethodList []GetPaymentListResponseMethod `json:"payment_method_list,omitempty"`
}