pub struct Charge {
pub amount_cents: Option<i32>,
pub as_of: Option<String>,
pub code: Option<String>,
pub label: Option<String>,
pub pass_through: Option<bool>,
pub recurring: Option<String>,
pub source: Option<String>,
pub stale: Option<bool>,
}Fields§
§amount_cents: Option<i32>AmountCents is what this line costs.
as_of: Option<String>AsOf is when a pass-through amount was last checked against its source.
code: Option<String>Code names the line so a caller can branch on it without reading prose.
label: Option<String>Label is what the payer sees on the invoice.
pass_through: Option<bool>PassThrough marks money we collect and remit rather than keep — the state’s fee is not our revenue, and a quote that hides that is a quote that reads as a bigger margin than it is.
recurring: Option<String>Recurring marks a line that repeats. An agent of record is billed every year for as long as the entity stands, and a payer agreeing to a one-time total is not agreeing to that.
source: Option<String>Source names who publishes this amount, for a line we merely pass through. Empty for a price of ours, which needs no external authority.
stale: Option<bool>Stale reports that AsOf is older than the review window — the figure may have moved and nobody has looked. It does not block; it tells.