pub struct Invoice {Show 45 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub ship_from_addr: Option<Addr>,
pub ship_date: Option<NaiveDate>,
pub tracking_num: Option<String>,
pub class_ref: Option<NtRef>,
pub txn_source: Option<String>,
pub deposit_to_account_ref: Option<NtRef>,
pub allow_online_ach_payment: Option<bool>,
pub line: Option<LineField>,
pub private_note: Option<String>,
pub delivery_info: Option<DeliveryInfo>,
pub bill_email_cc: Option<Email>,
pub bill_email_bcc: Option<Email>,
pub ship_method_reef: Option<NtRef>,
pub apply_tax_after_discount: Option<bool>,
pub customer_memo: Option<NtRef>,
pub customer_ref: Option<NtRef>,
pub txn_date: Option<NaiveDate>,
pub domain: Option<String>,
pub print_status: Option<PrintStatus>,
pub sales_term_ref: Option<NtRef>,
pub exchange_rate: Option<f64>,
pub deposit: Option<f64>,
pub allow_online_credit_card_payment: Option<bool>,
pub department_ref: Option<NtRef>,
pub email_status: Option<EmailStatus>,
pub due_date: Option<NaiveDate>,
pub home_balance: Option<f64>,
pub total_amt: Option<f64>,
pub invoice_link: Option<String>,
pub recur_data_ref: Option<NtRef>,
pub tax_exemption_ref: Option<NtRef>,
pub balance: Option<f64>,
pub home_total_amt: Option<f64>,
pub free_form_address: Option<bool>,
pub sparse: Option<bool>,
pub doc_number: Option<String>,
pub txn_tax_detail: Option<TxnTaxDetail>,
pub linked_txn: Option<Vec<LinkedTxn>>,
pub bill_email: Option<Email>,
pub ship_addr: Option<Addr>,
pub bill_addr: Option<Addr>,
pub custom_field: Option<Vec<CustomField>>,
}Expand description
Invoice
Represents a sales transaction billed to a customer creating an accounts receivable balance; consists of line items, taxes, payment terms, and delivery information.
Update semantics:
QBCreatable::can_create()returns true when bothcustomer_refand at least one valid line are present.QBFullUpdatable::can_full_update()requireshas_read()(ID + sync token) andcan_create().
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/invoice
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
ship_from_addr: Option<Addr>Shipping address for the invoice
ship_date: Option<NaiveDate>Date when the items are shipped
tracking_num: Option<String>Shipping tracking number
class_ref: Option<NtRef>Reference to the class for the invoice
txn_source: Option<String>Source of the transaction
deposit_to_account_ref: Option<NtRef>Reference to the account where the deposit is made
allow_online_ach_payment: Option<bool>Indicates if online ACH payment is allowed
line: Option<LineField>Line items for the invoice
private_note: Option<String>Private note for the invoice
delivery_info: Option<DeliveryInfo>Delivery information for the invoice
bill_email_cc: Option<Email>Carbon copy email address for billing emails
bill_email_bcc: Option<Email>Blind carbon copy email address for billing emails
ship_method_reef: Option<NtRef>Reference to the shipping method used
apply_tax_after_discount: Option<bool>Indicates if tax is applied after discount
customer_memo: Option<NtRef>Customer memo for the invoice
customer_ref: Option<NtRef>Reference to the customer for the invoice
txn_date: Option<NaiveDate>Date of the transaction in YYYY-MM-DD format
domain: Option<String>Domain of the transaction. QBO for QuickBooks Online.
print_status: Option<PrintStatus>Print status of the invoice
sales_term_ref: Option<NtRef>Reference to the sales terms for the invoice
exchange_rate: Option<f64>Exchange rate for the transaction
deposit: Option<f64>Deposit amount for the invoice
allow_online_credit_card_payment: Option<bool>Indicates if online credit card payment is allowed
department_ref: Option<NtRef>Reference to the department for the invoice
email_status: Option<EmailStatus>Email status of the invoice
due_date: Option<NaiveDate>Due date for the invoice
home_balance: Option<f64>Balance amount in home currency
total_amt: Option<f64>Total amount of the invoice
invoice_link: Option<String>URL to the invoice in QuickBooks Online
recur_data_ref: Option<NtRef>Reference to recurring template data
tax_exemption_ref: Option<NtRef>Reference to tax exemption information
balance: Option<f64>Current balance of the invoice
home_total_amt: Option<f64>Total amount in home currency
free_form_address: Option<bool>Indicates if the address is free-form
sparse: Option<bool>Indicates if the entity is a sparse object
doc_number: Option<String>Document number for the invoice
txn_tax_detail: Option<TxnTaxDetail>Tax details for the transaction
linked_txn: Option<Vec<LinkedTxn>>Linked transactions to this invoice
bill_email: Option<Email>Email address for billing
ship_addr: Option<Addr>Shipping address for the invoice
bill_addr: Option<Addr>Billing address for the invoice
custom_field: Option<Vec<CustomField>>Custom fields for the invoice