1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/*
* Hanzo Cloud API
*
* 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/.
*
* The version of the OpenAPI document: v1
*
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct RaiseIn {
/// Currency is the ISO 4217 code, lower-cased. Empty means usd.
#[serde(rename = "currency", skip_serializing_if = "Option::is_none")]
pub currency: Option<String>,
/// CustomerEmail is where the invoice is sent. Optional.
#[serde(rename = "customerEmail", skip_serializing_if = "Option::is_none")]
pub customer_email: Option<String>,
/// Lines are the charges. The invoice subtotal and amount due are COMPUTED from these — there is no total field to send, because a total that disagreed with its own lines would bill a number nobody could derive.
#[serde(rename = "lines", skip_serializing_if = "Option::is_none")]
pub lines: Option<Vec<models::InvoiceLine>>,
/// UserID identifies the customer being billed, within the caller's own org. Required — an invoice with no addressee is not an invoice.
#[serde(rename = "userId", skip_serializing_if = "Option::is_none")]
pub user_id: Option<String>,
}
impl RaiseIn {
pub fn new() -> RaiseIn {
RaiseIn {
currency: None,
customer_email: None,
lines: None,
user_id: None,
}
}
}