-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmerchant.go
49 lines (41 loc) · 1.6 KB
/
merchant.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 UpdateMerchantDetailsRequest struct {
Payload UpdateMerchantDetailsPayload `json:"updateMerchantDetailsRequest"`
}
type UpdateMerchantDetailsPayload struct {
ANetApiRequest
IsTestMode bool `json:"isTestMode"`
}
type GetMerchantDetailsRequest struct {
ANetApiRequest `json:"getMerchantDetailsRequest"`
}
// -- response --
type UpdateMerchantDetailsResponse struct {
ANetApiResponse
}
type Processor struct {
Name string `json:"name"`
Id int `json:"id"`
CardTypes []string `json:"cardTypes,omitempty"`
}
type ContactDetail struct {
Email string `json:"email,omitempty"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
}
type GetMerchantDetailsResponse struct {
ANetApiResponse
IsTestMode bool `json:"isTestMode,omitempty"`
Processors []Processor `json:"processors,omitempty"`
MerchantName string `json:"merchantName"`
GatewayId string `json:"gatewayId"`
MarketTypes []string `json:"marketTypes,omitempty"`
ProductCodes []string `json:"productCodes,omitempty"`
PaymentMethods []string `json:"paymentMethods,omitempty"`
Currencies []string `json:"currencies,omitempty"`
PublicClientKey string `json:"publicClientKey,omitempty"`
BusinessInformation *CustomerAddress `json:"businessInformation,omitempty"`
MerchantTimeZone string `json:"merchantTimeZone,omitempty"`
ContactDetails []ContactDetail `json:"contactDetails,omitempty"`
}