-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrequests.go
55 lines (51 loc) · 2.75 KB
/
requests.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
package moka
type (
//PaymentDealerRequest represents a part of request that you send to moka services.
//For detailed documentation: https://developer.moka.com
PaymentDealerRequest struct {
VirtualPosOrderID string `json:"VirtualPosOrderId,omitempty"`
CardHolderFullName string `json:"CardHolderFullName,omitempty"`
CardNumber string `json:"CardNumber,omitempty"`
ExpMonth string `json:"ExpMonth,omitempty"`
ExpYear string `json:"ExpYear,omitempty"`
CvcNumber string `json:"CvcNumber,omitempty"`
Amount uint `json:"Amount,omitempty"`
Currency string `json:"Currency,omitempty"`
InstallmentNumber int8 `json:"InstallmentNumber,omitempty"`
ClientIP string `json:"ClientIP,omitempty"`
RedirectURL string `json:"RedirectUrl,omitempty"`
RedirectType int8 `json:"RedirectType,omitempty"`
OtherTrxCode string `json:"OtherTrxCode,omitempty"`
IsPreAuth int8 `json:"IsPreAuth,omitempty"`
IsPoolPayment int8 `json:"IsPoolPayment,omitempty"`
IsTokenized int8 `json:"IsTokenized,omitempty"`
IntegratorID int8 `json:"IntegratorId,omitempty"`
Software string `json:"Software,omitempty"`
SubMerchantName string `json:"SubMerchantName,omitempty"`
Description string `json:"Description,omitempty"`
BuyerInformation BuyerInformation `json:"BuyerInformation,omitempty"`
CustomerInformation CustomerInformation `json:"CustomerInformation,omitempty"`
}
//BuyerInformation represents
BuyerInformation struct {
FullName string `json:"BuyerFullName,omitempty"`
EMail string `json:"BuyerEmail,omitempty"`
GSMNumber string `json:"BuyerGsmNumber,omitempty"`
Address string `json:"BuyerAddress,omitempty"`
}
CustomerInformation struct {
DealerCustomerID int `json:"DealerCustomerId,omitempty"`
CustomerCode string `json:"CustomerCode,omitempty"`
FirstName string `json:"FirstName,omitempty"`
LastName string `json:"LastName,omitempty"`
Gender int8 `json:"Gender,omitempty"`
BirthDate string `json:"BirthDate,omitempty"`
GsmNumber string `json:"GsmNumber,omitempty"`
EMail string `json:"Email,omitempty"`
Address string `json:"Address,omitempty"`
}
Request struct {
PaymentDealerAuthentication PaymentDealerAuthentication `json:"PaymentDealrAuthentication"`
PaymentDealerRequest PaymentDealerRequest `json:"PaymentDealerRequest"`
}
)