-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtypes.go
58 lines (52 loc) · 1.97 KB
/
types.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
package gocielo
type Payment struct {
ServiceTaxAmount int64 `json:"ServiceTaxAmount"`
Installments int64 `json:"Installments"`
Interest int64 `json:"Interest"`
Capture bool `json:"Capture"`
Authenticate bool `json:"Authenticate"`
Recurrent bool `json:"Recurrent"`
CreditCard *CreditCard `json:"CreditCard"`
ProofOfSale string `json:"ProofOfSale"`
Tid string `json:"Tid"`
AuthorizationCode string `json:"AuthorizationCode"`
PaymentID string `json:"PaymentId"`
Type string `json:"Type"`
Amount int64 `json:"Amount"`
SoftDescriptor string `json:"SoftDescriptor"`
Provider string `json:"Provider"`
Currency string `json:"Currency"`
Country string `json:"Country"`
ExtraDataCollection []interface{} `json:"ExtraDataCollection"`
Status int64 `json:"Status"`
ReturnCode string `json:"ReturnCode"`
ReturnMessage string `json:"ReturnMessage"`
Links *[]Link `json:"Links"`
ReceivedDate string `json:"ReceivedDate"`
IsSplitted bool `json:"IsSplitted"`
}
type Link struct {
Method string `json:"Method"`
Rel string `json:"Rel"`
Href string `json:"Href"`
}
type CreditCard struct {
CardNumber string `json:"CardNumber"`
Holder string `json:"Holder"`
ExpirationDate string `json:"ExpirationDate"`
SaveCard bool `json:"SaveCard"`
Brand string `json:"Brand"`
SecurityCode string `json:"SecurityCode"`
}
type Customer struct {
Name string `json:"Name"`
}
type Merchant struct {
Id string
Key string
}
type Order struct {
MerchantOrderID string `json:"MerchantOrderId"`
Customer *Customer `json:"Customer"`
Payment *Payment `json:"Payment"`
}