pub struct Account {Show 19 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub name: Option<String>,
pub acct_num: Option<String>,
pub currency_ref: Option<NtRef>,
pub parent_ref: Option<NtRef>,
pub descripton: Option<String>,
pub active: Option<bool>,
pub sub_account: Option<bool>,
pub classification: Option<String>,
pub fully_qualified_name: Option<String>,
pub txn_location_type: Option<String>,
pub account_type: Option<AccountType>,
pub current_balance_with_sub_accounts: Option<f64>,
pub account_alias: Option<String>,
pub tax_code_ref: Option<NtRef>,
pub account_sub_type: Option<String>,
pub current_balance: Option<f64>,
}Expand description
Account
Represents a general ledger account in QuickBooks Online (for example: Bank, Income, Expense).
Accounts categorize transactions and track balances. Many entities reference an account via *Ref fields.
Creation requirements:
QBCreatable::can_create()returns true whennameis set and eitheraccount_typeoraccount_sub_typeis set.
Update semantics:
QBFullUpdatable::can_full_update()returns true whenhas_read()(ID + sync token present) andnameare set.
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/account
Fields§
§id: Option<String>The unique ID of the entity
sync_token: Option<String>The unique sync token of the entity, used for concurrency control
meta_data: Option<MetaData>Metadata about the entity
name: Option<String>Name of the account
acct_num: Option<String>Account number
currency_ref: Option<NtRef>Reference to the currency for the account
parent_ref: Option<NtRef>Reference to the parent account if this is a sub-account
descripton: Option<String>Description of the account
active: Option<bool>Indicates if the account is active
sub_account: Option<bool>Indicates if the account is a sub-account
classification: Option<String>Classification of the account
fully_qualified_name: Option<String>Fully qualified name of the account
txn_location_type: Option<String>Location type for transactions in this account
account_type: Option<AccountType>Type of account
current_balance_with_sub_accounts: Option<f64>Current balance including sub-accounts
account_alias: Option<String>Alternative name for the account
tax_code_ref: Option<NtRef>Reference to the tax code associated with the account
account_sub_type: Option<String>Sub-type of the account
current_balance: Option<f64>Current balance of the account