-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlist_transaction.struct.go
43 lines (40 loc) · 1.56 KB
/
list_transaction.struct.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
package gogojudo
import (
"time"
)
type ListTransactions struct {
ResultCount int `json:"resultCount"`
PageSize int `json:"pageSize"`
Offset int `json:"offset"`
Results []TransactionItem `json:"results"`
Sort string `json:"sort"`
}
type TransactionItem struct {
ReceiptID string `json:"receiptId"`
OriginalReceiptID string `json:"originalReceiptId,omitempty"`
YourPaymentReference string `json:"yourPaymentReference"`
Type string `json:"type"`
CreatedAt time.Time `json:"createdAt"`
Result string `json:"result"`
Message string `json:"message"`
JudoID int `json:"judoId"`
MerchantName string `json:"merchantName"`
AppearsOnStatementAs string `json:"appearsOnStatementAs"`
OriginalAmount string `json:"originalAmount,omitempty"`
NetAmount string `json:"netAmount"`
Amount string `json:"amount"`
Currency string `json:"currency"`
CardDetails struct {
CardLastfour string `json:"cardLastfour"`
EndDate string `json:"endDate"`
CardType int `json:"cardType"`
CardQualifier int `json:"cardQualifier"`
} `json:"cardDetails"`
Consumer struct {
ConsumerToken string `json:"consumerToken"`
YourConsumerReference string `json:"yourConsumerReference"`
} `json:"consumer"`
YourPaymentMetaData struct {
} `json:"yourPaymentMetaData"`
PostCodeCheckResult string `json:"postCodeCheckResult"`
}