/*
* Zernio API
*
* API reference for Zernio. Authenticate with a Bearer API key. Base URL: https://zernio.com/api Versioning and deprecation: all endpoints are versioned in the URL path (current version: /v1). Breaking changes only ship in a new path version; existing versions keep working. Deprecated operations are marked 'deprecated: true' in this spec and announced in the changelog (https://zernio.com/changelog) before removal. Errors: every 4xx/5xx response is application/json with a machine-readable 'code' and a human-readable 'error' message (see the ErrorResponse schema).
*
* The version of the OpenAPI document: 1.8.1
* Contact: support@zernio.com
* Generated by: https://openapi-generator.tech
*/
use crate::models;
use serde::{Deserialize, Serialize};
/// InlineObject4Details : 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 InlineObject4Details {
/// 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>,
/// The negotiated connected-account cap from the team's enterprise contract. Self-service teams have no cap and never receive this reason. Only set when reason=enterprise_required.
#[serde(
rename = "effective_account_limit",
skip_serializing_if = "Option::is_none"
)]
pub effective_account_limit: Option<i32>,
}
impl InlineObject4Details {
/// Structured context for SDK clients that want to render their own UX. Keys vary by `reason`.
pub fn new() -> InlineObject4Details {
InlineObject4Details {
free_tier_account_limit: None,
current_account_count: None,
has_payment_method: None,
effective_account_limit: None,
}
}
}