pub struct Bill {Show 21 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub domain: Option<String>,
pub ap_account_ref: Option<NtRef>,
pub vendor_ref: Option<NtRef>,
pub txn_date: Option<NaiveDate>,
pub total_amt: Option<f64>,
pub currency_ref: Option<NtRef>,
pub linked_txn: Option<Vec<LinkedTxn>>,
pub sales_term_ref: Option<NtRef>,
pub due_date: Option<NaiveDate>,
pub sparse: Option<bool>,
pub line: Option<LineField>,
pub balance: Option<f64>,
pub doc_number: Option<String>,
pub private_note: Option<String>,
pub exchange_rate: Option<f64>,
pub department_ref: Option<NtRef>,
pub home_balance: Option<f64>,
pub recur_data_ref: Option<NtRef>,
}Expand description
Bill
Represents an accounts payable bill received from a vendor. Records amounts owed to vendors; line items specify products/services and their costs.
Creation requirements:
QBCreatable::can_create()returns true when bothvendor_refand at least one validlineare present.
Update semantics:
QBFullUpdatable::can_full_update()returns true whenhas_read()(ID + sync token) is true and the creation requirements are satisfied (vendor_refandline).
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/bill
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
domain: Option<String>Domain of the transaction. QBO for QuickBooks Online.
ap_account_ref: Option<NtRef>Reference to the Accounts Payable account for the transaction
vendor_ref: Option<NtRef>Reference to the vendor for the transaction
txn_date: Option<NaiveDate>Date of the transaction in YYYY-MM-DD format
total_amt: Option<f64>Total amount of the transaction
currency_ref: Option<NtRef>Reference to the currency for the transaction
linked_txn: Option<Vec<LinkedTxn>>List of transactions linked to this bill
sales_term_ref: Option<NtRef>Reference to the sales terms for the transaction
due_date: Option<NaiveDate>Due date of the bill in YYYY-MM-DD format
sparse: Option<bool>Indicates if the transaction is a sparse object
line: Option<LineField>Line items for the transaction
balance: Option<f64>Remaining balance on the bill
doc_number: Option<String>Document number for the bill
private_note: Option<String>Private note for the transaction
exchange_rate: Option<f64>Exchange rate for the transaction
department_ref: Option<NtRef>Reference to the department for the transaction
home_balance: Option<f64>Home currency balance for the transaction
recur_data_ref: Option<NtRef>Reference to recurring schedule information