Skip to main content

hanzo_client/models/
invoice_line.rs

1/*
2 * Hanzo Cloud API
3 *
4 * The Hanzo Cloud API as a customer calls it: every operation under /v1/ except the operator's admin product, relay routes, legacy spellings and capabilities still reached by flag. Tagged by product: the first path segment after /v1/.
5 *
6 * The version of the OpenAPI document: v1
7 * 
8 * Generated by: https://openapi-generator.tech
9 */
10
11use crate::models;
12use serde::{Deserialize, Serialize};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct InvoiceLine {
16    /// Amount is the line total in whole cents (250000 is $2,500.00).
17    #[serde(rename = "amount", skip_serializing_if = "Option::is_none")]
18    pub amount: Option<i32>,
19    /// Description is the human-readable line, e.g. \"Advisory retainer — August\".
20    #[serde(rename = "description", skip_serializing_if = "Option::is_none")]
21    pub description: Option<String>,
22    /// Quantity is the number of units, when the line is metered. Optional.
23    #[serde(rename = "quantity", skip_serializing_if = "Option::is_none")]
24    pub quantity: Option<i32>,
25    /// UnitPrice is the per-unit price in cents, when the line is metered. Optional.
26    #[serde(rename = "unitPrice", skip_serializing_if = "Option::is_none")]
27    pub unit_price: Option<i32>,
28}
29
30impl InvoiceLine {
31    pub fn new() -> InvoiceLine {
32        InvoiceLine {
33            amount: None,
34            description: None,
35            quantity: None,
36            unit_price: None,
37        }
38    }
39}
40