-
Notifications
You must be signed in to change notification settings - Fork 3
/
responseentities.go
301 lines (300 loc) · 11.5 KB
/
responseentities.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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
package iyzigo
type (
IyzipayResource struct {
Status string `json:"status"`
ErrorCode string `json:"errorCode"`
ErrorMessage string `json:"errorMessage"`
ErrorGroup string `json:"errorGroup"`
Locale string `json:"locale"`
SystemTime int64 `json:"systemTime"`
ConversationId string `json:"conversationId"`
}
ApiTest struct {
IyzipayResource
}
Approval struct {
IyzipayResource
PaymentTransactionId string `json:"paymentTransactionId"`
}
ConvertedPayout struct {
PaidPrice float64 `json:"paidPrice"`
IyziCommissionRateAmount float64 `json:"iyziCommissionRateAmount"`
IyziCommissionFee float64 `json:"iyziCommissionFee"`
BlockageRateAmountMerchant float64 `json:"blockageRateAmountMerchant"`
BlockageRateAmountSubMerchant float64 `json:"blockageRateAmountSubMerchant"`
SubMerchantPayoutAmount float64 `json:"subMerchantPayoutAmount"`
MerchantPayoutAmount float64 `json:"merchantPayoutAmount"`
IyziConversionRate float64 `json:"iyziConversionRate"`
IyziConversionRateAmount float64 `json:"iyziConversionRateAmount"`
Currency string `json:"currency"`
}
PaymentItem struct {
ItemId string `json:"itemId"`
PaymentTransactionId string `json:"paymentTransactionId"`
TransactionStatus int `json:"transactionStatus"`
Price float64 `json:"price"`
PaidPrice float64 `json:"paidPrice"`
MerchantCommissionRate float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount float64 `json:"merchantCommissionRateAmount"`
IyziCommissionRateAmount float64 `json:"iyziCommissionRateAmount"`
IyziCommissionFee float64 `json:"iyziCommissionFee"`
BlockageRate float64 `json:"blockageRate"`
BlockageRateAmountMerchant float64 `json:"blockageRateAmountMerchant"`
BlockageRateAmountSubMerchant float64 `json:"blockageRateAmountSubMerchant"`
BlockageResolvedDate string `json:"blockageResolvedDate"`
SubMerchantKey string `json:"subMerchantKey"`
SubMerchantPrice float64 `json:"subMerchantPrice"`
SubMerchantPayoutRate float64 `json:"subMerchantPayoutRate"`
SubMerchantPayoutAmount float64 `json:"subMerchantPayoutAmount"`
MerchantPayoutAmount float64 `json:"merchantPayoutAmount"`
ConvertedPayout ConvertedPayout `json:"convertedPayout"`
}
BasicPaymentResource struct {
IyzipayResource
Price float64 `json:"price"`
PaidPrice float64 `json:"paidPrice"`
Installment int `json:"installment"`
Currency string `json:"currency"`
PaymentId string `json:"paymentId"`
MerchantCommissionRate float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount float64 `json:"merchantCommissionRateAmount"`
IyziCommissionFee float64 `json:"iyziCommissionFee"`
CardType string `json:"cardType"`
CardAssociation string `json:"cardAssociation"`
CardFamily string `json:"cardFamily"`
CardToken string `json:"cardToken"`
CardUserKey string `json:"cardUserKey"`
BinNumber string `json:"binNumber"`
PaymentTransactionId string `json:"paymentTransactionId"`
AuthCode string `json:"authCode"`
ConnectorName string `json:"connectorName"`
Phase string `json:"phase"`
}
BasicBkm struct {
BasicPaymentResource
Token string `json:"token"`
CallbackUrl string `json:"callbackUrl"`
PaymentStatus string `json:"paymentStatus"`
}
BasicBkmInitialize struct {
IyzipayResource
HtmlContent string `json:"htmlContent"`
Token string `json:"token"`
}
BasicPayment struct {
BasicPaymentResource
}
BasicPaymentPostAuth struct {
BasicPaymentResource
}
BasicPaymentPreAuth struct {
BasicPaymentResource
}
BasicThreedsInitialize struct {
IyzipayResource
HtmlContent string `json:"threeDSHtmlContent"`
}
BasicThreedsInitializePreAuth struct {
IyzipayResource
HtmlContent string `json:"threeDSHtmlContent"`
}
BasicThreedsPayment struct {
BasicPaymentResource
}
BinNumber struct {
IyzipayResource
Bin string `json:"binNumber"`
CardType string `json:"cardType"`
CardAssociation string `json:"cardAssociation"`
CardFamily string `json:"cardFamily"`
BankName string `json:"bankName"`
BankCode int64 `json:"bankCode"`
}
PaymentResource struct {
IyzipayResource
Price float64 `json:"price"`
PaidPrice float64 `json:"paidPrice"`
Installment int `json:"installment"`
Currency string `json:"currency"`
PaymentId string `json:"paymentId"`
PaymentStatus string `json:"paymentStatus"`
FraudStatus int `json:"fraudStatus"`
MerchantCommissionRate float64 `json:"merchantCommissionRate"`
MerchantCommissionRateAmount float64 `json:"merchantCommissionRateAmount"`
IyziCommissionRateAmount float64 `json:"iyziCommissionRateAmount"`
IyziCommissionFee float64 `json:"iyziCommissionFee"`
CardType string `json:"cardType"`
CardAssociation string `json:"cardAssociation"`
CardFamily string `json:"cardFamily"`
CardToken string `json:"cardToken"`
CardUserKey string `json:"cardUserKey"`
BinNumber string `json:"binNumber"`
BasketId string `json:"basketId"`
PaymentItems []PaymentItem `json:"itemTransactions"`
ConnectorName string `json:"connectorName"`
AuthCode string `json:"authCode"`
Phase string `json:"phase"`
}
Bkm struct {
PaymentResource
Token string `json:"token"`
CallbackUrl string `json:"callbackUrl"`
}
BkmInitialize struct {
IyzipayResource
HtmlContent string `json:"htmlContent"`
Token string `json:"token"`
}
BankTransfer struct {
SubMerchantKey string `json:"subMerchantKey"`
Iban string `json:"iban"`
ContactName string `json:"contactName"`
ContactSurname string `json:"contactSurname"`
LegalCompanyTitle string `json:"legalCompanyTitle"`
MarketplaceSubMerchantType string `json:"marketplaceSubmerchantType"`
}
BouncedBankTransferList struct {
IyzipayResource
BankTransfers []BankTransfer `json:"bankTransfers"`
}
Cancel struct {
IyzipayResource
PaymentId string `json:"paymentId"`
Price float64 `json:"price"`
Currency string `json:"currency"`
ConnectorName string `json:"connectorName"`
}
Card struct {
IyzipayResource
ExternalId string `json:"externalId"`
Email string `json:"email"`
CardUserKey string `json:"cardUserKey"`
CardToken string `json:"cardToken"`
CardAlias string `json:"cardAlias"`
BinNumber string `json:"binNumber"`
CardType string `json:"cardType"`
CardAssociation string `json:"cardAssociation"`
CardFamily string `json:"cardFamily"`
CardBankCode int64 `json:"cardBankCode"`
CardBankName string `json:"cardBankName"`
}
CardList struct {
IyzipayResource
CardUserKey string `json:"cardUserKey"`
CardDetails []Card `json:"cardDetails"`
}
CheckoutForm struct {
PaymentResource
Token string `json:"token"`
CallbackUrl string `json:"callbackUrl"`
}
CheckoutFormInitializeResource struct {
IyzipayResource
Token string `json:"token"`
CheckoutFormContent string `json:"checkoutFormContent"`
TokenExpireTime int64 `json:"tokenExpireTime"`
PaymentPageUrl string `json:"paymentPageUrl"`
}
CheckoutFormInitialize struct {
CheckoutFormInitializeResource
}
CheckoutFormInitializePreAuth struct {
CheckoutFormInitializeResource
}
CrossBookingFromSubMerchant struct {
IyzipayResource
}
CrossBookingToSubMerchant struct {
IyzipayResource
}
Disapproval struct {
IyzipayResource
}
InstallmentPrice struct {
Price float64 `json:"InstallmentPrice"`
TotalPrice float64 `json:"totalPrice"`
InstallmentNumber int `json:"installmentNumber"`
}
InstallmentDetail struct {
BinNumber string `json:"binNumber"`
Price float64 `json:"price"`
CardType string `json:"cardType"`
CardAssociation string `json:"cardAssociation"`
CardFamilyName string `json:"cardFamilyName"`
Force3Ds int `json:"force3Ds"`
BankCode int64 `json:"bankCode"`
BankName string `json:"bankName"`
ForceCvc int `json:"forceCvc"`
InstallmentPrices []InstallmentPrice `json:"installmentPrices"`
}
InstallmentInfo struct {
IyzipayResource
InstallmentDetails []InstallmentDetail `json:"installmentDetails"`
}
Payment struct {
PaymentResource
}
PaymentPostAuth struct {
PaymentResource
}
PaymentPreAuth struct {
PaymentResource
}
PayoutCompletedTransactionList struct {
IyzipayResource
}
PeccoInitialize struct {
IyzipayResource
HtmlContent string `json:"htmlContent"`
RedirectUrl string `json:"redirectUrl"`
Token string `json:"token"`
TokenExpireTime int64 `json:"tokenExpireTime"`
}
PeccoPayment struct {
PaymentResource
}
Refund struct {
IyzipayResource
PaymentId string `json:"paymentId"`
PaymentTransactionId string `json:"paymentTransactionId"`
Price float64 `json:"price"`
Currency string `json:"currency"`
ConnectorName string `json:"connectorName"`
}
RefundChargedFromMerchant struct {
IyzipayResource
PaymentId string `json:"paymentId"`
PaymentTransactionId string `json:"paymentTransactionId"`
Price string `json:"price"`
}
SubMerchant struct {
IyzipayResource
Name string `json:"name"`
Email string `json:"email"`
GsmNumber string `json:"gsmNumber"`
Address string `json:"address"`
Iban string `json:"iban"`
SwiftCode string `json:"swiftCode"`
Currency string `json:"currency"`
TaxOffice string `json:"taxOffice"`
ContactName string `json:"contactName"`
ContactSurname string `json:"contactSurname"`
LegalCompanyTitle string `json:"legalCompanyTitle"`
SubMerchantExternalId string `json:"subMerchantExternalId"`
IdentityNumber string `json:"identityNumber"`
TaxNumber string `json:"taxNumber"`
SubMerchantType string `json:"subMerchantType"`
SubMerchantKey string `json:"subMerchantKey"`
}
ThreedsInitialize struct {
IyzipayResource
HtmlContent string `json:"threeDSHtmlContent"`
}
ThreedsInitializePreAuth struct {
IyzipayResource
HtmlContent string `json:"threeDSHtmlContent"`
}
ThreedsPayment struct {
PaymentResource
}
)