pub struct Estimate {Show 24 fields
pub notes: Option<String>,
pub number: Option<String>,
pub client: Option<Value>,
pub currency: Option<String>,
pub purchase_order: Option<String>,
pub subject: Option<String>,
pub state: Option<String>,
pub sent_at: Option<String>,
pub client_key: Option<String>,
pub creator: Option<Value>,
pub tax2: Option<f64>,
pub tax2_amount: Option<f64>,
pub discount: Option<f64>,
pub discount_amount: Option<f64>,
pub accepted_at: Option<String>,
pub updated_at: Option<String>,
pub created_at: Option<String>,
pub id: Option<i64>,
pub tax_amount: Option<f64>,
pub issue_date: Option<String>,
pub declined_at: Option<String>,
pub amount: Option<f64>,
pub line_items: Option<Vec<EstimateLineItem>>,
pub tax: Option<f64>,
}Fields§
§notes: Option<String>Any additional notes included on the estimate.
number: Option<String>If no value is set, the number will be automatically generated.
client: Option<Value>An object containing estimate’s client id and name.
currency: Option<String>The currency code associated with this estimate.
purchase_order: Option<String>The purchase order number.
subject: Option<String>The estimate subject.
state: Option<String>The current state of the estimate: draft, sent, accepted, or declined.
sent_at: Option<String>Date and time the estimate was sent.
client_key: Option<String>Used to build a URL to the public web invoice for your client:https://{ACCOUNT_SUBDOMAIN}.harvestapp.com/client/estimates/abc123456
creator: Option<Value>An object containing the id and name of the person that created the estimate.
tax2: Option<f64>This percentage is applied to the subtotal, including line items and discounts.
tax2_amount: Option<f64>The amount calculated from tax2.
discount: Option<f64>This percentage is subtracted from the subtotal.
discount_amount: Option<f64>The amount calcuated from discount.
accepted_at: Option<String>Date and time the estimate was accepted.
updated_at: Option<String>Date and time the estimate was last updated.
created_at: Option<String>Date and time the estimate was created.
id: Option<i64>Unique ID for the estimate.
tax_amount: Option<f64>The first amount of tax included, calculated from tax. If no tax is defined, this value will be null.
issue_date: Option<String>Date the estimate was issued.
declined_at: Option<String>Date and time the estimate was declined.
amount: Option<f64>The total amount for the estimate, including any discounts and taxes.
line_items: Option<Vec<EstimateLineItem>>Array of estimate line items.
tax: Option<f64>This percentage is applied to the subtotal, including line items and discounts.