feat: Add full account representations
Having all details available is useful. For Firefly III some fields like current balance are left out, because they are not strictly account metadata, but are a result of the transactions in the account.
This commit is contained in:
@@ -13,6 +13,42 @@ pub struct Account {
|
||||
#[serde(rename = "type")]
|
||||
pub account_type: String,
|
||||
pub active: Option<bool>,
|
||||
pub order: Option<i32>,
|
||||
pub created_at: Option<String>,
|
||||
pub updated_at: Option<String>,
|
||||
pub account_role: Option<String>,
|
||||
pub object_group_id: Option<String>,
|
||||
pub object_group_title: Option<String>,
|
||||
pub object_group_order: Option<i32>,
|
||||
pub currency_id: Option<String>,
|
||||
pub currency_name: Option<String>,
|
||||
pub currency_code: Option<String>,
|
||||
pub currency_symbol: Option<String>,
|
||||
pub currency_decimal_places: Option<i32>,
|
||||
pub primary_currency_id: Option<String>,
|
||||
pub primary_currency_name: Option<String>,
|
||||
pub primary_currency_code: Option<String>,
|
||||
pub primary_currency_symbol: Option<String>,
|
||||
pub primary_currency_decimal_places: Option<i32>,
|
||||
pub opening_balance: Option<String>,
|
||||
pub pc_opening_balance: Option<String>,
|
||||
pub debt_amount: Option<String>,
|
||||
pub pc_debt_amount: Option<String>,
|
||||
pub notes: Option<String>,
|
||||
pub monthly_payment_date: Option<String>,
|
||||
pub credit_card_type: Option<String>,
|
||||
pub account_number: Option<String>,
|
||||
pub bic: Option<String>,
|
||||
pub opening_balance_date: Option<String>,
|
||||
pub liability_type: Option<String>,
|
||||
pub liability_direction: Option<String>,
|
||||
pub interest: Option<String>,
|
||||
pub interest_period: Option<String>,
|
||||
pub include_net_worth: Option<bool>,
|
||||
pub longitude: Option<f64>,
|
||||
pub latitude: Option<f64>,
|
||||
pub zoom_level: Option<i32>,
|
||||
pub last_activity: Option<String>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
|
||||
Reference in New Issue
Block a user