blob: 7bc38854e1af2102610f027ec47c9aae64375ca5 (
plain)
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
|
package main
type FireflyAccountSearch struct {
Data []struct {
Type string `json:"accounts"`
Attributes struct {
Name string `json:"name"`
Type string `json:"type"`
Iban string `json:"iban"`
} `json:"attributes"`
} `json:"data"`
Meta struct {
Pagination struct {
Count uint64 `json:"count"`
} `json:"pagination"`
} `json:"meta"`
}
type FireflyTransactionPost struct {
//ErrorIfDuplicateHash bool `json:"error_if_duplicate_hash"`
ApplyRules bool `json:"apply_rules"`
FireWebhooks bool `json:"fire_webhooks"`
//GroupTitle string `json:"group_title"`
Transactions []FireflyTransaction `json:"transactions"`
}
type FireflyTransactionSearch struct {
Meta struct {
Pagination struct {
Count uint64 `json:"count"`
} `json:"pagination"`
} `json:"meta"`
}
type FireflyTransaction struct {
Type string `json:"type"`
Date string `json:"date"`
Amount string `json:"amount"`
Description string `json:"description"`
//Order uint `json:"order"`
//CurrencyId string `json:"currency_id"`
CurrencyCode string `json:"currency_code"`
//BudgetId string `json:"budget_id"`
//CategoryId string `json:"category_id"`
//CategoryName string `json:"category_name"`
//SourceId string `json:"source_id"`
SourceName string `json:"source_name"`
//DestinationId string `json:"destination_id"`
DestinationName string `json:"destination_name"`
//Reconciled bool `json:"reconciled"`
//PiggyBankId uint `json:"piggy_bank_id"`
//PiggyBankName string `json:"piggy_bank_name"`
//BillId string `json:"bill_id"`
//BillName string `json:"bill_name"`
//Tags []string `json:"tags"`
//Notes string `json:"notes"`
//InternalReference string `json:"internal_reference"`
ExternalId string `json:"external_id"`
//ExternalUrl string `json:"external_url"`
//BookDate string `json:"book_date"`
//ProcessDate string `json:"process_date"`
//DueDate string `json:"due_date"`
//PaymentDate string `json:"payment_date"`
//InvoiceDate string `json:"invoice_date"`
}
|