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
// Generated automatically by schema_generator.rs - DO NOT EDIT.
// Source: ./deriv-api-docs/config/v3/paymentagent_list/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::phone_number_item::PhoneNumberItem;
use crate::supported_payment_method_item::SupportedPaymentMethodItem;
use crate::url_item::UrlItem;
// It's a struct
#[derive(Debug, Clone, Serialize, Deserialize)]
#[serde(rename_all = "snake_case")]
pub struct ListItem {
/// Currencies that are accepted by this payment agent.\n
// Correct serde attribute construction - Use helper
pub currencies: String,
/// Commission amount applied on deposits made through this payment agent.\n
// Correct serde attribute construction - Use helper
pub deposit_commission: String,
/// Payment agent's email address.\n
// Correct serde attribute construction - Use helper
pub email: String,
/// More descriptions about this payment agent.\n
// Correct serde attribute construction - Use helper
pub further_information: String,
/// Maximum withdrawal allowed for transactions through this payment agent.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub max_withdrawal: Option<Value>,
/// Minimum withdrawal allowed for transactions through this payment agent.\n
// Correct serde attribute construction - Use helper
#[serde(skip_serializing_if = "Option::is_none")]
pub min_withdrawal: Option<Value>,
/// Payment agent's name.\n
// Correct serde attribute construction - Use helper
pub name: String,
/// Payment agent's loginid.\n
// Correct serde attribute construction - Use helper
pub paymentagent_loginid: String,
/// Payment agent's phone number(s) with country code.\n
// Correct serde attribute construction - Use helper
pub phone_numbers: Vec<PhoneNumberItem>,
/// A summary about payment agent.\n
// Correct serde attribute construction - Use helper
pub summary: String,
/// A list of supported payment methods.\n
// Correct serde attribute construction - Use helper
pub supported_payment_methods: Vec<SupportedPaymentMethodItem>,
/// The URL(s) of payment agent's website(s).\n
// Correct serde attribute construction - Use helper
pub urls: Vec<UrlItem>,
/// Commission amount applied on withdrawals made through this payment agent.\n
// Correct serde attribute construction - Use helper
pub withdrawal_commission: String,
}