You've already forked monobank-firefly3-bot
Initial
This commit is contained in:
6
monobank/api/webhook/models/data.go
Normal file
6
monobank/api/webhook/models/data.go
Normal file
@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
type Data struct {
|
||||
Account string `json:"account"`
|
||||
StatementItem StatementItem `json:"statementItem"`
|
||||
}
|
16
monobank/api/webhook/models/statement_item.go
Normal file
16
monobank/api/webhook/models/statement_item.go
Normal file
@ -0,0 +1,16 @@
|
||||
package models
|
||||
|
||||
type StatementItem struct {
|
||||
ID string `json:"id"`
|
||||
Time int `json:"time"`
|
||||
Description string `json:"description"`
|
||||
Mcc int `json:"mcc"`
|
||||
OriginalMcc int `json:"originalMcc"`
|
||||
Amount int `json:"amount"`
|
||||
OperationAmount int `json:"operationAmount"`
|
||||
CurrencyCode int `json:"currencyCode"`
|
||||
CommissionRate int `json:"commissionRate"`
|
||||
CashbackAmount int `json:"cashbackAmount"`
|
||||
Balance int `json:"balance"`
|
||||
Hold bool `json:"hold"`
|
||||
}
|
6
monobank/api/webhook/models/transaction.go
Normal file
6
monobank/api/webhook/models/transaction.go
Normal file
@ -0,0 +1,6 @@
|
||||
package models
|
||||
|
||||
type Transaction struct {
|
||||
Type string `json:"type"`
|
||||
Data Data `json:"data"`
|
||||
}
|
Reference in New Issue
Block a user