deriv_api_schema/list_item.rs
1
2// Generated automatically by schema_generator.rs - DO NOT EDIT.
3// Source: ./deriv-api-docs/config/v3/paymentagent_list/receive.json
4
5// Use direct crate names for imports within generated files
6use serde::{Deserialize, Serialize};
7use serde_json::Value;
8
9
10
11// Import shared types from the *same* crate
12use crate::phone_number_item::PhoneNumberItem;
13use crate::supported_payment_method_item::SupportedPaymentMethodItem;
14use crate::url_item::UrlItem;
15
16// It's a struct
17#[derive(Debug, Clone, Serialize, Deserialize)]
18#[serde(rename_all = "snake_case")]
19pub struct ListItem {
20 /// Currencies that are accepted by this payment agent.\n
21 // Correct serde attribute construction - Use helper
22
23 pub currencies: String,
24 /// Commission amount applied on deposits made through this payment agent.\n
25 // Correct serde attribute construction - Use helper
26
27 pub deposit_commission: String,
28 /// Payment agent's email address.\n
29 // Correct serde attribute construction - Use helper
30
31 pub email: String,
32 /// More descriptions about this payment agent.\n
33 // Correct serde attribute construction - Use helper
34
35 pub further_information: String,
36 /// Maximum withdrawal allowed for transactions through this payment agent.\n
37 // Correct serde attribute construction - Use helper
38 #[serde(skip_serializing_if = "Option::is_none")]
39 pub max_withdrawal: Option<Value>,
40 /// Minimum withdrawal allowed for transactions through this payment agent.\n
41 // Correct serde attribute construction - Use helper
42 #[serde(skip_serializing_if = "Option::is_none")]
43 pub min_withdrawal: Option<Value>,
44 /// Payment agent's name.\n
45 // Correct serde attribute construction - Use helper
46
47 pub name: String,
48 /// Payment agent's loginid.\n
49 // Correct serde attribute construction - Use helper
50
51 pub paymentagent_loginid: String,
52 /// Payment agent's phone number(s) with country code.\n
53 // Correct serde attribute construction - Use helper
54
55 pub phone_numbers: Vec<PhoneNumberItem>,
56 /// A summary about payment agent.\n
57 // Correct serde attribute construction - Use helper
58
59 pub summary: String,
60 /// A list of supported payment methods.\n
61 // Correct serde attribute construction - Use helper
62
63 pub supported_payment_methods: Vec<SupportedPaymentMethodItem>,
64 /// The URL(s) of payment agent's website(s).\n
65 // Correct serde attribute construction - Use helper
66
67 pub urls: Vec<UrlItem>,
68 /// Commission amount applied on withdrawals made through this payment agent.\n
69 // Correct serde attribute construction - Use helper
70
71 pub withdrawal_commission: String,
72}
73