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
/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api
*
* The version of the OpenAPI document: 1.0.4
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// InlineObject2Details : Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct InlineObject2Details {
/// How many accounts the free tier allows. Only set when reason=free_tier_exceeded.
#[serde(
rename = "free_tier_account_limit",
skip_serializing_if = "Option::is_none"
)]
pub free_tier_account_limit: Option<i32>,
/// How many accounts the team currently has connected. Set when reason=free_tier_exceeded or reason=enterprise_required.
#[serde(
rename = "current_account_count",
skip_serializing_if = "Option::is_none"
)]
pub current_account_count: Option<i32>,
/// Whether the team currently has a card on file in Stripe. Set when reason=free_tier_exceeded or reason=twitter_passthrough.
#[serde(rename = "has_payment_method", skip_serializing_if = "Option::is_none")]
pub has_payment_method: Option<bool>,
/// Public pricing ceiling (the published cap beyond which an enterprise contract is required). Only set when reason=enterprise_required.
#[serde(
rename = "public_account_limit",
skip_serializing_if = "Option::is_none"
)]
pub public_account_limit: Option<i32>,
/// The cap actually applied to this team. Equals `public_account_limit` for organic teams; for teams with a per-customer override (grandfathered legacy customers, signed enterprise contracts) this can be higher. Only set when reason=enterprise_required.
#[serde(
rename = "effective_account_limit",
skip_serializing_if = "Option::is_none"
)]
pub effective_account_limit: Option<i32>,
}
impl InlineObject2Details {
/// Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
pub fn new() -> InlineObject2Details {
InlineObject2Details {
free_tier_account_limit: None,
current_account_count: None,
has_payment_method: None,
public_account_limit: None,
effective_account_limit: None,
}
}
}