-
Notifications
You must be signed in to change notification settings - Fork 0
/
other.go
238 lines (201 loc) · 7.37 KB
/
other.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
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
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
package authorize_net
type GetSettledBatchListResponse struct {
ANetApiResponse
BatchList []BatchDetails `json:"batchList,omitempty"`
}
type UpdateSplitTenderGroupResponse struct {
ANetApiResponse
}
type UpdateSplitTenderGroupRequest struct {
Payload UpdateSplitTenderGroupPayload `json:"updateSplitTenderGroupRequest"`
}
type UpdateSplitTenderGroupPayload struct {
ANetApiRequest
SplitTenderId string `json:"splitTenderId"`
SplitTenderStatus string `json:"splitTenderStatus"`
}
type AuUpdate struct {
AuDetails
NewCreditCard *CreditCardMasked `json:"newCreditCard,omitempty"`
OldCreditCard *CreditCardMasked `json:"oldCreditCard,omitempty"`
}
type AuDetails struct {
CustomerProfileID uint `json:"customerProfileID"`
CustomerPaymentProfileID uint `json:"customerPaymentProfileID"`
FirstName string `json:"firstName,omitempty"`
LastName string `json:"lastName,omitempty"`
UpdateTimeUTC string `json:"updateTimeUTC"`
AuReasonCode string `json:"auReasonCode"`
ReasonDescription string `json:"reasonDescription"`
}
type KeyManagementSchemeDUKPT struct {
Operation string `json:"operation"`
Mode *KeyManagementSchemeDUKPTMode `json:"mode,omitempty"`
DeviceInfo *KeyManagementSchemeDUKPTDeviceInfo `json:"deviceInfo,omitempty"`
EncryptedData *KeyManagementSchemeDUKPTEncryptedData `json:"encryptedData,omitempty"`
}
type GetBatchStatisticsRequest struct {
Payload GetBatchStatisticsPayload `json:"getBatchStatisticsRequest"`
}
type GetBatchStatisticsPayload struct {
ANetApiRequest
BatchId string `json:"batchId"`
}
type WebCheckOutData struct {
Type string `json:"type"`
Id string `json:"id"`
Token *WebCheckOutDataTypeToken `json:"token,omitempty"`
BankToken *BankAccount `json:"bankToken,omitempty"`
}
type Customer struct {
Type string `json:"type,omitempty"`
Id string `json:"id,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
FaxNumber string `json:"faxNumber,omitempty"`
DriversLicense *DriversLicense `json:"driversLicense,omitempty"`
TaxId string `json:"taxId,omitempty"`
}
type GetHostedProfilePageResponse struct {
ANetApiResponse
Token string `json:"token"`
}
type SecurePaymentContainerRequest struct {
Payload SecurePaymentContainerPayload `json:"securePaymentContainerRequest"`
}
type SecurePaymentContainerPayload struct {
ANetApiRequest
Data *WebCheckOutData `json:"data,omitempty"`
}
type IsAliveRequest struct {
RefId string `json:"refId,omitempty"`
}
type ValidateCustomerPaymentProfileResponse struct {
ANetApiResponse
DirectResponse string `json:"directResponse,omitempty"`
}
type GetSettledBatchListRequest struct {
Payload GetSettledBatchListPayload `json:"getSettledBatchListRequest"`
}
type GetSettledBatchListPayload struct {
ANetApiRequest
IncludeStatistics bool `json:"includeStatistics,omitempty"`
FirstSettlementDate Date `json:"firstSettlementDate,omitempty"`
LastSettlementDate Date `json:"lastSettlementDate,omitempty"`
}
type LogoutRequest struct {
ANetApiRequest `json:"logoutRequest"`
}
type PaymentSimple struct {
CreditCard struct {
CardNumber string `json:"cardNumber"`
ExpirationDate string `json:"expirationDate"`
} `json:"creditCard"`
BankAccount *BankAccount `json:"bankAccount,omitempty"`
}
type SecurePaymentContainerResponse struct {
ANetApiResponse
OpaqueData OpaqueData `json:"opaqueData"`
}
type AuDelete struct {
AuDetails
CreditCard *CreditCardMasked `json:"creditCard,omitempty"`
}
type CustomerProfileInfoEx struct {
CustomerProfileEx
ProfileType CustomerProfileTypeEnum `json:"profileType,omitempty"`
}
type KeyManagementScheme struct {
Dukpt *KeyManagementSchemeDUKPT `json:"dukpt,omitempty"`
}
type KeyManagementSchemeDUKPTEncryptedData struct {
Value string `json:"value"`
}
type HeldTransactionRequest struct {
Payload HeldTransactionPayload `json:"heldTransactionRequest"`
}
type HeldTransactionPayload struct {
Action string `json:"action"`
RefTransId string `json:"refTransId"`
}
type GetBatchStatisticsResponse struct {
ANetApiResponse
Batch *BatchDetails `json:"batch,omitempty"`
}
type UpdateCustomerShippingAddressResponse struct {
ANetApiResponse
}
type CustomerProfileSummary struct {
CustomerProfileId string `json:"customerProfileId,omitempty"`
Description string `json:"description,omitempty"`
MerchantCustomerId string `json:"merchantCustomerId"`
Email string `json:"email,omitempty"`
CreatedDate Date `json:"createdDate"`
}
type UpdateHeldTransactionRequest struct {
Payload UpdateHeldTransactionPayload `json:"updateHeldTransactionRequest"`
}
type UpdateHeldTransactionPayload struct {
ANetApiRequest
HeldTransactionRequest *HeldTransactionRequest `json:"heldTransactionRequest,omitempty"`
}
type KeyManagementSchemeDUKPTMode struct {
Pin string `json:"pin,omitempty"`
Data string `json:"data,omitempty"`
}
type WebCheckOutDataTypeToken struct {
CardNumber string `json:"cardNumber"`
ExpirationDate string `json:"expirationDate"`
CardCode string `json:"cardCode,omitempty"`
Zip string `json:"zip,omitempty"`
FullName string `json:"fullName,omitempty"`
}
type GetHostedProfilePageRequest struct {
Payload GetHostedProfilePagePayload `json:"getHostedProfilePageRequest"`
}
type GetHostedProfilePagePayload struct {
ANetApiRequest
CustomerProfileId string `json:"customerProfileId"`
HostedProfileSettings []Setting `json:"hostedProfileSettings,omitempty"`
}
type IsAliveResponse struct {
ANetApiResponse
}
type UpdateHeldTransactionResponse struct {
ANetApiResponse
TransactionResponse *TransactionResponse `json:"transactionResponse,omitempty"`
}
type EnumCollection struct {
CustomerProfileSummaryType *CustomerProfileSummary `json:"customerProfileSummaryType,omitempty"`
PaymentSimpleType *PaymentSimple `json:"paymentSimpleType,omitempty"`
AccountTypeEnum string `json:"accountTypeEnum"`
CardTypeEnum string `json:"cardTypeEnum"`
FdsFilterActionEnum string `json:"fdsFilterActionEnum"`
PermissionsEnum string `json:"permissionsEnum"`
SettingNameEnum string `json:"settingNameEnum"`
SettlementStateEnum string `json:"settlementStateEnum"`
TransactionStatusEnum string `json:"transactionStatusEnum"`
TransactionTypeEnum string `json:"transactionTypeEnum"`
}
type GetHostedPaymentPageRequest struct {
Payload GetHostedPaymentPagePayload `json:"getHostedPaymentPageRequest"`
}
type GetHostedPaymentPagePayload struct {
ANetApiRequest
TransactionRequest *Transaction `json:"transactionRequest,omitempty"`
HostedPaymentSettings []Setting `json:"hostedPaymentSettings,omitempty"`
}
type KeyManagementSchemeDUKPTDeviceInfo struct {
Description string `json:"description"`
}
type GetHostedPaymentPageResponse struct {
ANetApiResponse
Token string `json:"token"`
}
type UpdateCustomerProfileResponse struct {
ANetApiResponse
}
type UpdateCustomerPaymentProfileResponse struct {
ANetApiResponse
ValidationDirectResponse string `json:"validationDirectResponse,omitempty"`
}