pub struct Payment {Show 19 fields
pub lago_id: Uuid,
pub lago_customer_id: Uuid,
pub external_customer_id: String,
pub invoice_ids: Vec<Uuid>,
pub lago_payable_id: Uuid,
pub payable_type: PayableType,
pub amount_cents: i64,
pub amount_currency: String,
pub status: String,
pub payment_status: PaymentStatus,
pub payment_type: PaymentType,
pub reference: Option<String>,
pub payment_provider_code: Option<String>,
pub payment_provider_type: Option<PaymentProviderType>,
pub external_payment_id: Option<String>,
pub provider_payment_id: Option<String>,
pub provider_customer_id: Option<String>,
pub next_action: Option<Value>,
pub created_at: DateTime<Utc>,
}Expand description
Represents a payment in the Lago billing system.
A payment records a monetary transaction associated with an invoice or payment request.
Fields§
§lago_id: UuidUnique identifier for the payment in Lago.
lago_customer_id: UuidUnique identifier of the customer in Lago.
external_customer_id: StringThe customer external unique identifier.
invoice_ids: Vec<Uuid>List of invoice IDs associated with the payment.
lago_payable_id: UuidThe unique identifier of the paid resource in Lago.
payable_type: PayableTypeThe type of the paid resource (Invoice or PaymentRequest).
amount_cents: i64The amount of the payment in cents.
amount_currency: StringThe currency of the payment amount.
status: StringThe status of the payment within the payment provider.
payment_status: PaymentStatusThe normalized payment status by Lago.
payment_type: PaymentTypeThe type of payment (manual or provider).
reference: Option<String>Reference for the payment.
payment_provider_code: Option<String>Code of the payment provider.
payment_provider_type: Option<PaymentProviderType>The type of payment provider.
external_payment_id: Option<String>DEPRECATED: use provider_payment_id.
provider_payment_id: Option<String>Unique identifier of the payment within the payment provider.
provider_customer_id: Option<String>Unique identifier of the customer within the payment provider.
next_action: Option<Value>The next action to be taken by the customer to complete the payment.
created_at: DateTime<Utc>When the payment was created.