pub struct Payment {Show 19 fields
pub id: Option<String>,
pub sync_token: Option<String>,
pub meta_data: Option<MetaData>,
pub total_amt: Option<f64>,
pub customer_ref: Option<NtRef>,
pub currency_ref: Option<NtRef>,
pub private_note: Option<String>,
pub payment_method_ref: Option<NtRef>,
pub unapplied_amt: Option<f64>,
pub deposit_to_account_ref: Option<NtRef>,
pub exchange_rate: Option<f64>,
pub line: Option<LineField>,
pub txn_source: Option<String>,
pub ar_account_ref: Option<NtRef>,
pub txn_date: Option<NaiveDate>,
pub credit_card_payment: Option<CreditCardPayment>,
pub transaction_location_type: Option<String>,
pub payment_ref_num: Option<String>,
pub tax_exemption_ref: Option<NtRef>,
}Expand description
Payment
Represents receipt or application of funds against customer balances or invoices.
Creation requirements:
QBCreatable::can_create()returns true when bothtotal_amtandcustomer_refare present.
Update semantics:
QBFullUpdatable::can_full_update()returns true whenhas_read()(ID + sync token) andcan_create()are both true.QBDeletableandQBVoidableare implemented; both requirehas_read().
API reference: https://developer.intuit.com/app/developer/qbo/docs/api/accounting/all-entities/payment
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
total_amt: Option<f64>Total amount of the payment
customer_ref: Option<NtRef>Reference to the customer for the payment
currency_ref: Option<NtRef>Reference to the currency for the payment
private_note: Option<String>Private note for the payment
payment_method_ref: Option<NtRef>Reference to the payment method
unapplied_amt: Option<f64>Unapplied amount of the payment
deposit_to_account_ref: Option<NtRef>Reference to the account where the payment is deposited
exchange_rate: Option<f64>Exchange rate for the payment
line: Option<LineField>Line items for the payment
txn_source: Option<String>Source of the transaction
ar_account_ref: Option<NtRef>Reference to the accounts receivable account
txn_date: Option<NaiveDate>Date of the transaction in YYYY-MM-DD format
credit_card_payment: Option<CreditCardPayment>Information about a credit card payment for the transaction
transaction_location_type: Option<String>Type of location for the transaction
payment_ref_num: Option<String>Reference number for the payment
tax_exemption_ref: Option<NtRef>Reference to the tax exemption for the payment