deriv_api_schema/partner_settings_update_request.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/partner_settings_update/send.json
4
5// Use direct crate names for imports
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import required types from the *same* crate
12use crate::provider::Provider;
13use crate::partner_type::PartnerType;
14
15/// A message with Partner Settings
16#[derive(Debug, Clone, Serialize, Deserialize)]
17#[serde(rename_all = "snake_case")]
18pub struct PartnerSettingsUpdateRequest {
19 /// [Optional] Company name. Only applicable for partners of type company.\n
20 // Correct serde attribute construction - Use helper
21 #[serde(skip_serializing_if = "Option::is_none")]
22 pub company_name: Option<String>,
23 /// [Optional] Company registration number. Only applicable for partners of type company.\n
24 // Correct serde attribute construction - Use helper
25 #[serde(skip_serializing_if = "Option::is_none")]
26 pub company_registration_no: Option<String>,
27 /// [Optional] The login id of the partner account. Mandatory when multiple tokens were provided during authorize.\n
28 // Correct serde attribute construction - Use helper
29 #[serde(skip_serializing_if = "Option::is_none")]
30 pub loginid: Option<String>,
31 /// Must be `1`\n
32 // Correct serde attribute construction - Use helper
33
34 pub partner_settings_update: i64,
35 /// Defines whether this partner is an individual or a company.\n
36 // Correct serde attribute construction - Use helper
37 #[serde(skip_serializing_if = "Option::is_none")]
38 pub partner_type: Option<PartnerType>,
39 /// [Optional] Used to pass data through the websocket, which may be retrieved via the `echo_req` output field.\n
40 // Correct serde attribute construction - Use helper
41 #[serde(skip_serializing_if = "Option::is_none")]
42 pub passthrough: Option<Value>,
43 /// Name of the provider platform.\n
44 // Correct serde attribute construction - Use helper
45
46 pub provider: Provider,
47 /// [Optional] Used to map request to response.\n
48 // Correct serde attribute construction - Use helper
49 #[serde(skip_serializing_if = "Option::is_none")]
50 pub req_id: Option<i64>,
51 /// Partner's Website URI/Promotional Platform\n
52 // Correct serde attribute construction - Use helper
53 #[serde(skip_serializing_if = "Option::is_none")]
54 pub website: Option<String>,
55}
56