-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpremium.go
71 lines (64 loc) · 3.49 KB
/
premium.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
package gocardless
type PremiumTransactions struct {
Transactions PremiumTransactionList `json:"transactions"`
}
type PremiumTransactionList struct {
Booked []PremiumTransaction `json:"booked"`
Pending []PremiumTransaction `json:"pending"`
}
type PremiumTransaction struct {
TransactionID string `json:"transactionId"`
BookingDate string `json:"bookingDate"`
ValueDate string `json:"valueDate"`
BookingDateTime TimeWithTimeZoneInfo `json:"bookingDateTime"`
ValueDateTime TimeWithTimeZoneInfo `json:"valueDateTime"`
TransactionAmount Amount `json:"transactionAmount"`
CreditorName string `json:"creditorName"`
CreditorAccount Account `json:"creditorAccount"`
DebtorName string `json:"debtorName"`
DebtorAccount Account `json:"debtorAccount"`
BankTransactionCode string `json:"bankTransactionCode"`
RemittanceInformationUnstructured string `json:"remittanceInformationUnstructured"`
RemittanceInformationUnstructuredArray []string `json:"remittanceInformationUnstructuredArray"`
ProprietaryBankTransactionCode string `json:"proprietaryBankTransactionCode"`
InternalTransactionID string `json:"internalTransactionId"`
AdditionalInformation string `json:"additionalInformation"`
AdditionalInformationStructured string `json:"additionalInformationStructured"`
BalanceAfterTransaction Balance `json:"balanceAfterTransaction"`
CheckID string `json:"checkId"`
CreditorID string `json:"creditorId"`
// CurrencyExchange []string `json:"currencyExchange"`
DebtorAgent string `json:"debtorAgent"`
EndToEndID string `json:"endToEndId"`
EntryReference string `json:"entryReference"`
MandateID string `json:"mandateId"`
MerchantCategoryCode string `json:"merchantCategoryCode"`
RemittanceInformationStructured string `json:"remittanceInformationStructured"`
RemittanceInformationStructuredArray []string `json:"remittanceInformationStructuredArray"`
UltimateCollector string `json:"ultimateCreditor"`
UltimateDebtor string `json:"ultimateDebtor"`
Enrichment Enrichment `json:"enrichment"`
}
type Enrichment struct {
DisplayName string `json:"displayName"`
BranchDisplayName string `json:"branchDisplayName"`
Location Location `json:"location"`
URLs URLs `json:"urls"`
TransactionType string `json:"transactionType"`
PurposeCategory []string `json:"purposeCategory"`
PurposeCategoryID string `json:"purposeCategoryID"`
}
type Location struct {
Address string `json:"address"`
City string `json:"city"`
Region string `json:"region"`
PostalCode string `json:"postalCode"`
Country string `json:"country"`
Latitude float64 `json:"lat"`
Longitude float64 `json:"lon"`
}
type URLs struct {
Website string `json:"website"`
Favicon string `json:"favicon"`
Logo string `json:"logo"`
}