pub struct SalesReceipt {Show 38 fields
pub id: Option<String>,
pub line: Option<LineField>,
pub customer_ref: Option<NtRef>,
pub sync_token: Option<String>,
pub currency_ref: Option<NtRef>,
pub bill_email: Option<Email>,
pub ship_from_addr: Option<Addr>,
pub custom_field: Option<Vec<CustomField>>,
pub ship_date: Option<NaiveDate>,
pub tracking_num: Option<String>,
pub class_ref: Option<NtRef>,
pub print_status: Option<PrintStatus>,
pub payment_ref_num: Option<String>,
pub txn_source: Option<String>,
pub linked_txn: Option<Vec<LinkedTxn>>,
pub global_tax_calculation: Option<GlobalTaxCalculation>,
pub apply_tax_after_discount: Option<bool>,
pub doc_number: Option<String>,
pub private_note: Option<String>,
pub deposit_to_account_ref: Option<NtRef>,
pub customer_memo: Option<NtRef>,
pub credit_card_payment: Option<CreditCardPayment>,
pub txn_tax_detail: Option<TxnTaxDetail>,
pub payment_method_ref: Option<NtRef>,
pub exchange_rate: Option<f64>,
pub ship_addr: Option<Addr>,
pub sparse: Option<bool>,
pub department_ref: Option<NtRef>,
pub ship_method_ref: Option<NtRef>,
pub bill_addr: Option<Addr>,
pub meta_data: Option<MetaData>,
pub home_balance: Option<f64>,
pub delivery_info: Option<DeliveryInfo>,
pub recur_data_ref: Option<NtRef>,
pub total_amt: Option<f64>,
pub balance: Option<f64>,
pub free_form_address: Option<bool>,
pub txn_date: Option<NaiveDate>,
}Expand description
SalesReceipt
Represents a finalized sale where payment is received at the time of purchase. Unlike an invoice, it does not create an accounts receivable balance.
Update semantics:
QBCreatable::can_create()returns true whenlinecontains at least one valid line.QBFullUpdatable::can_full_update()forSalesReceiptrequireshas_read()(ID + sync token) andcan_create().
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/salesreceipt
Fields§
§id: Option<String>The unique ID of the entity
line: Option<LineField>Line items for the transaction
customer_ref: Option<NtRef>Reference to the customer for the transaction
sync_token: Option<String>The unique sync token of the entity, used for concurrency control
currency_ref: Option<NtRef>Reference to the currency for the transaction
bill_email: Option<Email>Email address for billing
ship_from_addr: Option<Addr>Address from which the items are shipped
custom_field: Option<Vec<CustomField>>Custom fields for the entity
ship_date: Option<NaiveDate>Date when the items are shipped
tracking_num: Option<String>Tracking number for the shipment
class_ref: Option<NtRef>Reference to the class for the transaction
print_status: Option<PrintStatus>Print status of the sales receipt
payment_ref_num: Option<String>Reference number for the payment
txn_source: Option<String>Source of the transaction
linked_txn: Option<Vec<LinkedTxn>>Linked transactions
global_tax_calculation: Option<GlobalTaxCalculation>Global tax calculation method
apply_tax_after_discount: Option<bool>Indicates if tax is applied after discount
doc_number: Option<String>Document number for the sales receipt
private_note: Option<String>Private note for the transaction
deposit_to_account_ref: Option<NtRef>Reference to the account where the deposit is made
customer_memo: Option<NtRef>Memo for the customer
credit_card_payment: Option<CreditCardPayment>Information about a credit card payment for the transaction
txn_tax_detail: Option<TxnTaxDetail>Tax details for the transaction
payment_method_ref: Option<NtRef>Reference to the payment method for the transaction
exchange_rate: Option<f64>Exchange rate for the transaction
ship_addr: Option<Addr>Address to which the items are shipped
sparse: Option<bool>Indicates if the transaction is a sparse object
department_ref: Option<NtRef>Reference to the department for the transaction
ship_method_ref: Option<NtRef>Reference to the shipping method for the transaction
bill_addr: Option<Addr>Address for billing
meta_data: Option<MetaData>Metadata about the transaction
home_balance: Option<f64>Home balance for the transaction
delivery_info: Option<DeliveryInfo>Delivery information for the transaction
recur_data_ref: Option<NtRef>Reference to the recurring data for the transaction
total_amt: Option<f64>Total amount of the transaction
balance: Option<f64>Balance for the transaction
free_form_address: Option<bool>Indicates if the address is a free-form address
txn_date: Option<NaiveDate>Date of the transaction in YYYY-MM-DD format
Trait Implementations§
Source§impl Clone for SalesReceipt
impl Clone for SalesReceipt
Source§fn clone(&self) -> SalesReceipt
fn clone(&self) -> SalesReceipt
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more