-
Notifications
You must be signed in to change notification settings - Fork 3
/
requestentities.go
296 lines (295 loc) · 21.3 KB
/
requestentities.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
package iyzigo
type (
ApiTestRequest struct{}
CreateApprovalRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentTransactionId string `opt:"name:paymentTransactionId,omitempty" json:"paymentTransactionId,omitempty"`
}
RetrieveBkmRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Token string `opt:"name:token,omitempty" json:"token,omitempty"`
}
BkmInstallmentPrice struct {
InstallmentNumber int `opt:"name:installmentNumber,omitempty" json:"installmentNumber,omitempty"`
TotalPrice string `opt:"name:totalPrice,omitempty" json:"totalPrice,omitempty"`
}
BkmInstallment struct {
BankId int64 `opt:"name:bankId,omitempty" json:"bankId,omitempty"`
InstallmentPrices []*BkmInstallmentPrice `opt:"name:installmentPrices,omitempty" json:"installmentPrices,omitempty"`
}
CreateBasicBkmInitializeRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
ConnectorName string `opt:"name:connectorName,omitempty" json:"connectorName,omitempty"`
Price string `opt:"name:price,omitempty" json:"price,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
BuyerEmail string `opt:"name:buyerEmail,omitempty" json:"buyerEmail,omitempty"`
BuyerId string `opt:"name:buyerId,omitempty" json:"buyerId,omitempty"`
BuyerIp string `opt:"name:buyerIp,omitempty" json:"buyerIp,omitempty"`
PosOrderId string `opt:"name:posOrderId,omitempty" json:"posOrderId,omitempty"`
InstallmentDetails []*BkmInstallment `opt:"name:installmentDetails,omitempty" json:"installmentDetails,omitempty"`
}
PaymentCard struct {
CardHolderName string `opt:"name:cardHolderName,omitempty" json:"cardHolderName,omitempty"`
CardNumber string `opt:"name:cardNumber,omitempty" json:"cardNumber,omitempty"`
ExpireYear string `opt:"name:expireYear,omitempty" json:"expireYear,omitempty"`
ExpireMonth string `opt:"name:expireMonth,omitempty" json:"expireMonth,omitempty"`
Cvc string `opt:"name:cvc,omitempty" json:"cvc,omitempty"`
RegisterCard int `opt:"name:registerCard,omitempty" json:"registerCard,omitempty"`
CardAlias string `opt:"name:cardAlias,omitempty" json:"cardAlias,omitempty"`
CardToken string `opt:"name:cardToken,omitempty" json:"cardToken,omitempty"`
CardUserKey string `opt:"name:cardUserKey,omitempty" json:"cardUserKey,omitempty"`
}
CreateBasicPaymentRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Price string `opt:"name:price,omitempty" json:"price,omitempty"`
PaidPrice string `opt:"name:paidPrice,omitempty" json:"paidPrice,omitempty"`
Installment int `opt:"name:installment,omitempty" json:"installment,omitempty"`
BuyerEmail string `opt:"name:buyerEmail,omitempty" json:"buyerEmail,omitempty"`
BuyerId string `opt:"name:buyerId,omitempty" json:"buyerId,omitempty"`
BuyerIp string `opt:"name:buyerIp,omitempty" json:"buyerIp,omitempty"`
PosOrderId string `opt:"name:posOrderId,omitempty" json:"posOrderId,omitempty"`
PaymentCard *PaymentCard `opt:"name:paymentCard,omitempty" json:"paymentCard,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
ConnectorName string `opt:"name:connectorName,omitempty" json:"connectorName,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
}
CreatePaymentPostAuthRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentId string `opt:"name:paymentId,omitempty" json:"paymentId,omitempty"`
PaidPrice string `opt:"name:paidPrice,omitempty" json:"paidPrice,omitempty"`
Ip string `opt:"name:ip,omitempty" json:"ip,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
}
CreateThreedsPaymentRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentId string `opt:"name:paymentId,omitempty" json:"paymentId,omitempty"`
ConversationData string `opt:"name:conversationData,omitempty" json:"conversationData,omitempty"`
}
RetrieveBinNumberRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
BinNumber string `opt:"name:binNumber,omitempty" json:"binNumber,omitempty"`
}
Address struct {
Description string `opt:"name:address,omitempty" json:"address,omitempty"`
ZipCode string `opt:"name:zipCode,omitempty" json:"zipCode,omitempty"`
ContactName string `opt:"name:contactName,omitempty" json:"contactName,omitempty"`
City string `opt:"name:city,omitempty" json:"city,omitempty"`
Country string `opt:"name:country,omitempty" json:"country,omitempty"`
}
BasketItem struct {
Id string `opt:"name:id,omitempty" json:"id,omitempty"`
Price string `opt:"name:price,omitempty" json:"price,omitempty"`
Name string `opt:"name:name,omitempty" json:"name,omitempty"`
Category1 string `opt:"name:category1,omitempty" json:"category1,omitempty"`
Category2 string `opt:"name:category2,omitempty" json:"category2,omitempty"`
ItemType string `opt:"name:itemType,omitempty" json:"itemType,omitempty"`
SubMerchantKey string `opt:"name:subMerchantKey,omitempty" json:"subMerchantKey,omitempty"`
SubMerchantPrice string `opt:"name:subMerchantPrice,omitempty" json:"subMerchantPrice,omitempty"`
}
Buyer struct {
Id string `opt:"name:id,omitempty" json:"id,omitempty"`
Name string `opt:"name:name,omitempty" json:"name,omitempty"`
Surname string `opt:"name:surname,omitempty" json:"surname,omitempty"`
IdentityNumber string `opt:"name:identityNumber,omitempty" json:"identityNumber,omitempty"`
Email string `opt:"name:email,omitempty" json:"email,omitempty"`
GsmNumber string `opt:"name:gsmNumber,omitempty" json:"gsmNumber,omitempty"`
RegistrationDate string `opt:"name:registrationDate,omitempty" json:"registrationDate,omitempty"`
LastLoginDate string `opt:"name:lastLoginDate,omitempty" json:"lastLoginDate,omitempty"`
RegistrationAddress string `opt:"name:registrationAddress,omitempty" json:"registrationAddress,omitempty"`
City string `opt:"name:city,omitempty" json:"city,omitempty"`
Country string `opt:"name:country,omitempty" json:"country,omitempty"`
ZipCode string `opt:"name:zipCode,omitempty" json:"zipCode,omitempty"`
Ip string `opt:"name:ip,omitempty" json:"ip,omitempty"`
}
CreateBkmInitializeRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Price float64 `opt:"name:price,omitempty" json:"price,omitempty"`
BasketId string `opt:"name:basketId,omitempty" json:"basketId,omitempty"`
PaymentGroup string `opt:"name:paymentGroup,omitempty" json:"paymentGroup,omitempty"`
PaymentSource string `opt:"name:paymentSource,omitempty" json:"paymentSource,omitempty"`
Buyer *Buyer `opt:"name:buyer,omitempty" json:"buyer,omitempty"`
ShippingAddress *Address `opt:"name:shippingAddress,omitempty" json:"shippingAddress,omitempty"`
BillingAddress *Address `opt:"name:billingAddress,omitempty" json:"billingAddress,omitempty"`
BasketItems []*BasketItem `opt:"name:basketItems,omitempty" json:"basketItems,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
}
CreateCancelRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentId string `opt:"name:paymentId,omitempty" json:"paymentId,omitempty"`
Ip string `opt:"name:ip,omitempty" json:"ip,omitempty"`
}
CardInformation struct {
CardAlias string `opt:"name:cardAlias,omitempty" json:"cardAlias,omitempty"`
CardNumber string `opt:"name:cardNumber,omitempty" json:"cardNumber,omitempty"`
ExpireYear string `opt:"name:expireYear,omitempty" json:"expireYear,omitempty"`
ExpireMonth string `opt:"name:expireMonth,omitempty" json:"expireMonth,omitempty"`
CardHolderName string `opt:"name:cardHolderName,omitempty" json:"cardHolderName,omitempty"`
}
CreateCardRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
ExternalId string `opt:"name:externalId,omitempty" json:"externalId,omitempty"`
Email string `opt:"name:email,omitempty" json:"email,omitempty"`
CardUserKey string `opt:"name:cardUserKey,omitempty" json:"cardUserKey,omitempty"`
Card *CardInformation `opt:"name:card,omitempty" json:"card,omitempty"`
}
DeleteCardRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
CardUserKey string `opt:"name:cardUserKey,omitempty" json:"cardUserKey,omitempty"`
CardToken string `opt:"name:cardToken,omitempty" json:"cardToken,omitempty"`
}
RetrieveCardListRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
CardUserKey string `opt:"name:cardUserKey,omitempty" json:"cardUserKey,omitempty"`
}
RetrieveCheckoutFormRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Token string `opt:"name:token,omitempty" json:"token,omitempty"`
}
CreateCheckoutFormInitializeRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Price float64 `opt:"name:price,omitempty" json:"price,omitempty"`
PaidPrice float64 `opt:"name:paidPrice,omitempty" json:"paidPrice,omitempty"`
BasketId string `opt:"name:basketId,omitempty" json:"basketId,omitempty"`
PaymentGroup string `opt:"name:paymentGroup,omitempty" json:"paymentGroup,omitempty"`
PaymentSource string `opt:"name:paymentSource,omitempty" json:"paymentSource,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
Buyer *Buyer `opt:"name:buyer,omitempty" json:"buyer,omitempty"`
ShippingAddress *Address `opt:"name:shippingAddress,omitempty" json:"shippingAddress,omitempty"`
BillingAddress *Address `opt:"name:billingAddress,omitempty" json:"billingAddress,omitempty"`
BasketItems []*BasketItem `opt:"name:basketItems,omitempty" json:"basketItems,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
ForceThreeDS int `opt:"name:forceThreeDs,omitempty" json:"forceThreeDs,omitempty"`
CardUserKey string `opt:"name:cardUserKey,omitempty" json:"cardUserKey,omitempty"`
PosOrderId string `opt:"name:posOrderId,omitempty" json:"posOrderId,omitempty"`
EnabledInstallments []int `opt:"name:enabledInstallments,omitempty" json:"enabledInstallments,omitempty"`
}
CreateCrossBookingRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
SubMerchantKey string `opt:"name:subMerchantKey,omitempty" json:"subMerchantKey,omitempty"`
Price float64 `opt:"name:price,omitempty" json:"price,omitempty"`
Reason string `opt:"name:reason,omitempty" json:"reason,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
}
RetrieveInstallmentInfoRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
BinNumber string `opt:"name:binNumber,omitempty" json:"binNumber,omitempty"`
Price float64 `opt:"name:price,omitempty" json:"price,omitempty"`
}
CreatePaymentRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Price string `opt:"name:price,omitempty" json:"price,omitempty"`
PaidPrice string `opt:"name:paidPrice,omitempty" json:"paidPrice,omitempty"`
Installment int `opt:"name:installment,omitempty" json:"installment,omitempty"`
PaymentChannel string `opt:"name:paymentChannel,omitempty" json:"paymentChannel,omitempty"`
BasketId string `opt:"name:basketId,omitempty" json:"basketId,omitempty"`
PaymentGroup string `opt:"name:paymentGroup,omitempty" json:"paymentGroup,omitempty"`
PaymentCard *PaymentCard `opt:"name:paymentCard,omitempty" json:"paymentCard,omitempty"`
Buyer *Buyer `opt:"name:buyer,omitempty" json:"buyer,omitempty"`
ShippingAddress *Address `opt:"name:shippingAddress,omitempty" json:"shippingAddress,omitempty"`
BillingAddress *Address `opt:"name:billingAddress,omitempty" json:"billingAddress,omitempty"`
BasketItems []*BasketItem `opt:"name:basketItems,omitempty" json:"basketItems,omitempty"`
PaymentSource string `opt:"name:paymentSource,omitempty" json:"paymentSource,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
PosOrderId string `opt:"name:posOrderId,omitempty" json:"posOrderId,omitempty"`
ConnectorName string `opt:"name:connectorName,omitempty" json:"connectorName,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
}
RetrievePaymentRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentId string `opt:"name:paymentId,omitempty" json:"paymentId,omitempty"`
PaymentConversationId string `opt:"name:paymentConversationId,omitempty" json:"paymentConversationId,omitempty"`
}
RetrieveTransactionsRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Date string `opt:"name:date,omitempty" json:"date,omitempty"`
}
CreatePeccoInitializeRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Price float64 `opt:"name:price,omitempty" json:"price,omitempty"`
PaidPrice float64 `opt:"name:paidPrice,omitempty" json:"paidPrice,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
BasketId string `opt:"name:basketId,omitempty" json:"basketId,omitempty"`
PaymentGroup string `opt:"name:paymentGroup,omitempty" json:"paymentGroup,omitempty"`
PaymentSource string `opt:"name:paymentSource,omitempty" json:"paymentSource,omitempty"`
Buyer *Buyer `opt:"name:buyer,omitempty" json:"buyer,omitempty"`
ShippingAddress *Address `opt:"name:shippingAddress,omitempty" json:"shippingAddress,omitempty"`
BillingAddress *Address `opt:"name:billingAddress,omitempty" json:"billingAddress,omitempty"`
BasketItems []*BasketItem `opt:"name:basketItems,omitempty" json:"basketItems,omitempty"`
CallbackUrl string `opt:"name:callbackUrl,omitempty" json:"callbackUrl,omitempty"`
}
CreatePeccoPaymentRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Token string `opt:"name:token,omitempty" json:"token,omitempty"`
}
CreateRefundRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
PaymentTransactionId string `opt:"name:paymentTransactionId,omitempty" json:"paymentTransactionId,omitempty"`
Price string `opt:"name:price,omitempty" json:"price,omitempty"`
Ip string `opt:"name:ip,omitempty" json:"ip,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
}
CreateSubMerchantRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Name string `opt:"name:name,omitempty" json:"name,omitempty"`
Email string `opt:"name:email,omitempty" json:"email,omitempty"`
GsmNumber string `opt:"name:gsmNumber,omitempty" json:"gsmNumber,omitempty"`
Address string `opt:"name:address,omitempty" json:"address,omitempty"`
Iban string `opt:"name:iban,omitempty" json:"iban,omitempty"`
TaxOffice string `opt:"name:taxOffice,omitempty" json:"taxOffice,omitempty"`
ContactName string `opt:"name:contactName,omitempty" json:"contactName,omitempty"`
ContactSurname string `opt:"name:contactSurname,omitempty" json:"contactSurname,omitempty"`
LegalCompanyTitle string `opt:"name:legalCompanyTitle,omitempty" json:"legalCompanyTitle,omitempty"`
SwiftCode string `opt:"name:swiftCode,omitempty" json:"swiftCode,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
SubMerchantExternalId string `opt:"name:subMerchantExternalId,omitempty" json:"subMerchantExternalId,omitempty"`
IdentityNumber string `opt:"name:identityNumber,omitempty" json:"identityNumber,omitempty"`
TaxNumber string `opt:"name:taxNumber,omitempty" json:"taxNumber,omitempty"`
SubMerchantType string `opt:"name:subMerchantType,omitempty" json:"subMerchantType,omitempty"`
}
UpdateSubMerchantRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
Name string `opt:"name:name,omitempty" json:"name,omitempty"`
Email string `opt:"name:email,omitempty" json:"email,omitempty"`
GsmNumber string `opt:"name:gsmNumber,omitempty" json:"gsmNumber,omitempty"`
Address string `opt:"name:address,omitempty" json:"address,omitempty"`
Iban string `opt:"name:iban,omitempty" json:"iban,omitempty"`
TaxOffice string `opt:"name:taxOffice,omitempty" json:"taxOffice,omitempty"`
ContactName string `opt:"name:contactName,omitempty" json:"contactName,omitempty"`
ContactSurname string `opt:"name:contactSurname,omitempty" json:"contactSurname,omitempty"`
LegalCompanyTitle string `opt:"name:legalCompanyTitle,omitempty" json:"legalCompanyTitle,omitempty"`
SubMerchantKey string `opt:"name:subMerchantKey,omitempty" json:"subMerchantKey,omitempty"`
IdentityNumber string `opt:"name:identityNumber,omitempty" json:"identityNumber,omitempty"`
TaxNumber string `opt:"name:taxNumber,omitempty" json:"taxNumber,omitempty"`
Currency string `opt:"name:currency,omitempty" json:"currency,omitempty"`
SwiftCode string `opt:"name:swiftCode,omitempty" json:"swiftCode,omitempty"`
}
RetrieveSubMerchantRequest struct {
Locale string `opt:"name:locale,omitempty" json:"locale,omitempty"`
ConversationId string `opt:"name:conversationId,omitempty" json:"conversationId,omitempty"`
SubMerchantExternalId string `opt:"name:subMerchantExternalId,omitempty" json:"subMerchantExternalId,omitempty"`
}
)