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
use serde::{Deserialize, Serialize};
use crate::{field_access, impl_default, impl_display};
/// Represents billing information of the organization.
///
/// **Changes**: New in Zulip 10.0 (feature level 363).
///
/// Modified from `openapi-generator-cli` output:
///
/// ```shell,no_build,no_run
/// $ openapi-generator-cli generate -g rust -i ./zerver/openapi/zulip.yaml -o zulip-openapi --skip-validate-spec
/// ```
///
/// ```text
/// /*
/// * Zulip REST API
/// *
/// * Powerful open source group chat
/// *
/// * The version of the OpenAPI document: 1.0.0
/// *
/// * Generated by: https://openapi-generator.tech
/// */
/// ```
///
/// See [zerver/openapi/zulip.yaml](https://github.com/zulip/zulip/blob/main/zerver/openapi/zulip.yaml) for the original OpenAPI configuration.
///
/// Configuration slightly modified to work with the Rust generator of [`openapi-generator-cli`](https://openapi-generator.tech).
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
pub struct RealmBilling {
#[serde(skip_serializing_if = "Option::is_none")]
has_pending_sponsorship_request: Option<bool>,
}
impl RealmBilling {
/// Creates a new [RealmBilling].
pub const fn new() -> Self {
Self {
has_pending_sponsorship_request: None,
}
}
}
field_access! {
RealmBilling {
/// Whether there is a pending sponsorship request for the organization.
///
/// Note that this field will always be `false` if the user is not in `can_manage_billing_group`.
///
/// **Changes**: New in Zulip 10.0 (feature level 363).
has_pending_sponsorship_request: option { bool },
}
}
impl_default!(RealmBilling);
impl_display!(RealmBilling);