Skip to content

Commit f49c880

Browse files
authored
Comments (#33)
1 parent 456547a commit f49c880

File tree

1 file changed

+24
-17
lines changed

1 file changed

+24
-17
lines changed

types.go

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -51,23 +51,30 @@ type Jars []Jar
5151

5252
// Transaction - bank account statement
5353
type Transaction struct {
54-
ID string `json:"id"`
55-
Time epoch.Seconds `json:"time"`
56-
Description string `json:"description"`
57-
MCC int32 `json:"mcc"`
58-
OriginalMCC int32 `json:"originalMcc"`
59-
Hold bool `json:"hold"`
60-
Amount int64 `json:"amount"`
61-
OperationAmount int64 `json:"operationAmount"`
62-
CurrencyCode int `json:"currencyCode"`
63-
CommissionRate int64 `json:"commissionRate"`
64-
CashbackAmount int64 `json:"cashbackAmount"`
65-
Balance int64 `json:"balance"`
66-
Comment string `json:"comment"`
67-
ReceiptID string `json:"receiptId"`
68-
InvoiceID string `json:"invoiceId"`
69-
EDRPOU string `json:"counterEdrpou"`
70-
IBAN string `json:"counterIban"`
54+
ID string `json:"id"`
55+
Time epoch.Seconds `json:"time"`
56+
Description string `json:"description"`
57+
MCC int32 `json:"mcc"`
58+
OriginalMCC int32 `json:"originalMcc"`
59+
Hold bool `json:"hold"`
60+
// Amount in the account currency
61+
Amount int64 `json:"amount"`
62+
// OperationAmount in the transaction currency or amount after double conversion
63+
OperationAmount int64 `json:"operationAmount"`
64+
// ISO 4217 numeric code
65+
CurrencyCode int `json:"currencyCode"`
66+
CommissionRate int64 `json:"commissionRate"`
67+
CashbackAmount int64 `json:"cashbackAmount"`
68+
Balance int64 `json:"balance"`
69+
Comment string `json:"comment"`
70+
// For withdrawal only.
71+
ReceiptID string `json:"receiptId"`
72+
// For fop(ФОП) accounts only.
73+
InvoiceID string `json:"invoiceId"`
74+
// For fop(ФОП) accounts only.
75+
EDRPOU string `json:"counterEdrpou"`
76+
// For fop(ФОП) accounts only.
77+
IBAN string `json:"counterIban"`
7178
}
7279

7380
// Transactions - transactions

0 commit comments

Comments
 (0)