-
Notifications
You must be signed in to change notification settings - Fork 0
/
mobile.go
49 lines (40 loc) · 1.47 KB
/
mobile.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 authorize_net
// -- request --
type MobileDeviceLoginRequest struct {
ANetApiRequest `json:"mobileDeviceLoginRequest"`
}
type MobileDevice struct {
MobileDeviceId string `json:"mobileDeviceId"`
Description string `json:"description,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
DevicePlatform string `json:"devicePlatform,omitempty"`
DeviceActivation string `json:"deviceActivation,omitempty"`
}
type MobileDeviceRegistrationRequest struct {
Payload MobileDeviceRegistrationPayload `json:"mobileDeviceRegistrationRequest"`
}
type MobileDeviceRegistrationPayload struct {
ANetApiRequest
MobileDevice *MobileDevice `json:"mobileDevice,omitempty"`
}
// -- response --
type MerchantContact struct {
MerchantName string `json:"merchantName,omitempty"`
MerchantAddress string `json:"merchantAddress,omitempty"`
MerchantCity string `json:"merchantCity,omitempty"`
MerchantState string `json:"merchantState,omitempty"`
MerchantZip string `json:"merchantZip,omitempty"`
MerchantPhone string `json:"merchantPhone,omitempty"`
}
type Permission struct {
PermissionName string `json:"permissionName,omitempty"`
}
type MobileDeviceLoginResponse struct {
ANetApiResponse
MerchantContact *MerchantContact `json:"merchantContact,omitempty"`
UserPermissions []Permission `json:"userPermissions,omitempty"`
MerchantAccount *TransRetailInfo `json:"merchantAccount,omitempty"`
}
type MobileDeviceRegistrationResponse struct {
ANetApiResponse
}