pub struct Fee {Show 30 fields
pub lago_id: Uuid,
pub lago_charge_id: Option<Uuid>,
pub lago_invoice_id: Option<Uuid>,
pub lago_subscription_id: Option<Uuid>,
pub lago_customer_id: Option<Uuid>,
pub external_customer_id: Option<String>,
pub external_subscription_id: Option<String>,
pub amount_cents: i64,
pub amount_currency: String,
pub precise_amount: Option<String>,
pub total_amount_cents: i64,
pub total_amount_currency: String,
pub precise_total_amount: Option<String>,
pub taxes_amount_cents: i64,
pub taxes_precise_amount: Option<String>,
pub taxes_rate: f64,
pub units: String,
pub precise_unit_amount: Option<String>,
pub total_aggregated_units: Option<String>,
pub events_count: Option<i64>,
pub payment_status: FeePaymentStatus,
pub pay_in_advance: Option<bool>,
pub invoiceable: Option<bool>,
pub from_date: Option<String>,
pub to_date: Option<String>,
pub created_at: DateTime<Utc>,
pub succeeded_at: Option<DateTime<Utc>>,
pub failed_at: Option<DateTime<Utc>>,
pub refunded_at: Option<DateTime<Utc>>,
pub item: Option<FeeItem>,
}Expand description
Represents a fee line item on an invoice.
Fields§
§lago_id: UuidUnique identifier for the fee in Lago
lago_charge_id: Option<Uuid>Reference to the charge that generated this fee
lago_invoice_id: Option<Uuid>Reference to the invoice this fee belongs to
lago_subscription_id: Option<Uuid>Reference to the subscription
lago_customer_id: Option<Uuid>Reference to the customer
external_customer_id: Option<String>External customer ID
external_subscription_id: Option<String>External subscription ID
amount_cents: i64Fee amount in cents (excluding taxes)
amount_currency: StringCurrency for the amount
precise_amount: Option<String>Precise amount as string for decimal precision
total_amount_cents: i64Total amount including taxes in cents
total_amount_currency: StringCurrency for total amount
precise_total_amount: Option<String>Precise total amount as string
taxes_amount_cents: i64Tax amount in cents
taxes_precise_amount: Option<String>Precise tax amount as string
taxes_rate: f64Tax rate percentage
units: StringNumber of units
precise_unit_amount: Option<String>Precise unit amount as string
total_aggregated_units: Option<String>Total aggregated units
events_count: Option<i64>Number of events that contributed to this fee
payment_status: FeePaymentStatusPayment status of the fee
pay_in_advance: Option<bool>Whether this fee is paid in advance
invoiceable: Option<bool>Whether this fee is invoiceable
from_date: Option<String>Start date of the billing period
to_date: Option<String>End date of the billing period
created_at: DateTime<Utc>When the fee was created
succeeded_at: Option<DateTime<Utc>>When payment succeeded
failed_at: Option<DateTime<Utc>>When payment failed
refunded_at: Option<DateTime<Utc>>When refunded
item: Option<FeeItem>Fee item details