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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
/*
* 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 Obligation {
/// AmountCents is what it costs each period.
#[serde(rename = "amountCents", skip_serializing_if = "Option::is_none")]
pub amount_cents: Option<i32>,
/// AsOf is when that amount was last checked against its source, RFC 3339 date.
#[serde(rename = "asOf", skip_serializing_if = "Option::is_none")]
pub as_of: Option<String>,
/// Code names the obligation so a caller can branch without reading prose.
#[serde(rename = "code", skip_serializing_if = "Option::is_none")]
pub code: Option<String>,
/// Every is how often it falls due — \"yearly\" for every obligation known here.
#[serde(rename = "every", skip_serializing_if = "Option::is_none")]
pub every: Option<String>,
/// Label is what the payer sees.
#[serde(rename = "label", skip_serializing_if = "Option::is_none")]
pub label: Option<String>,
/// Minimum marks a floor rather than a fixed price — a franchise tax that scales with shares or assets is quoted at its minimum, and an entity past the threshold owes more. Saying so is the difference between a quote and a number someone later disputes.
#[serde(rename = "minimum", skip_serializing_if = "Option::is_none")]
pub minimum: Option<bool>,
/// PassThrough marks money we collect and remit to the state rather than keep.
#[serde(rename = "passThrough", skip_serializing_if = "Option::is_none")]
pub pass_through: Option<bool>,
/// Source names the authority that publishes a pass-through amount, so the figure can be checked without first working out who would know.
#[serde(rename = "source", skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
/// Stale reports that AsOf is older than the review window. It tells; it does not block.
#[serde(rename = "stale", skip_serializing_if = "Option::is_none")]
pub stale: Option<bool>,
}
impl Obligation {
pub fn new() -> Obligation {
Obligation {
amount_cents: None,
as_of: None,
code: None,
every: None,
label: None,
minimum: None,
pass_through: None,
source: None,
stale: None,
}
}
}