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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/landing_company/receive.json
// Use direct crate names for imports within generated files
use serde::{Deserialize, Serialize};
use serde_json::Value;
// Import shared types from the *same* crate
use crate::legal_requirements::LegalRequirements;
use crate::support_professional_client::SupportProfessionalClient;
use crate::client_kyc_status_requirements::ClientKycStatusRequirements;
use crate::has_reality_check::HasRealityCheck;
use crate::tin_not_mandatory::TinNotMandatory;
// It's a struct
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct LandingCompanyInfo {
/// Landing Company address\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub address: Option<Vec<String>>,
/// Special conditions for changing sensitive fields\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub changeable_fields: Option<Value>,
/// Client kyc statusequirements\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub client_kyc_status: Option<ClientKycStatusRequirements>,
/// Landing Company country of incorporation\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub country: Option<String>,
/// The configuration of each currency.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub currency_config: Option<Value>,
/// Flag to indicate whether reality check is applicable for this Landing Company. `1`: applicable, `0`: not applicable. The Reality Check is a feature that gives a summary of the client's trades and account balances on a regular basis throughout his session, and is a regulatory requirement for certain Landing Companies.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub has_reality_check: Option<HasRealityCheck>,
/// Allowed contract types\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub legal_allowed_contract_categories: Option<Vec<String>>,
/// Allowable currencies\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub legal_allowed_currencies: Option<Vec<String>>,
/// Allowable markets\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub legal_allowed_markets: Option<Vec<String>>,
/// Default account currency\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub legal_default_currency: Option<String>,
/// Landing Company legal name\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
/// Legal requirements for the Landing Company\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub requirements: Option<LegalRequirements>,
/// Landing Company short code\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub shortcode: Option<String>,
/// Flag that indicates whether the landing company supports professional accounts or not\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub support_professional_client: Option<SupportProfessionalClient>,
/// Flag that indicates whether tax identifier number is not mandatory for the current country and landing company.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub tin_not_mandatory: Option<TinNotMandatory>,
}