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
// Fireblocks API
//
// Fireblocks provides a suite of applications to manage digital asset operations and a complete development platform to build your business on the blockchain. - Visit our website for more information: [Fireblocks Website](https://fireblocks.com) - Visit our developer docs: [Fireblocks DevPortal](https://developers.fireblocks.com)
//
// The version of the OpenAPI document: 1.8.0
// Contact: developers@fireblocks.com
// Generated by: https://openapi-generator.tech
use {
crate::models,
serde::{Deserialize, Serialize},
};
#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
pub struct TravelRuleValidateTransactionResponse {
/// \"isValid\" will tell you if you have collected all the information needed for the travel rule data transfer. Once this field = \"true\", you can move on to the next step which is to transfer the front-end information to your back-end and perform Travel Rule Transaction create
#[serde(rename = "isValid")]
pub is_valid: bool,
/// \"type\" will tell you if the virtual asset value converted to FIAT
/// value of the withdrawal request is above (=TRAVELRULE) or below
/// (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an
/// unhosted wallet which does not require travel rule information to be
/// sent and only collected, it will say NON_CUSTODIAL.
#[serde(rename = "type")]
pub r#type: String,
/// \"beneficiaryAddressType\" will tell you if your blockchain analytics
/// provider or internal address book has been able to identify the wallet
/// address.
#[serde(rename = "beneficiaryAddressType")]
pub beneficiary_address_type: String,
/// \"addressSource\" will tell you if the address was found in your
/// internal address book or identified by the blockchain analytics
/// provider.
#[serde(rename = "addressSource")]
pub address_source: String,
/// The VASP DID of the beneficiary VASP
#[serde(rename = "beneficiaryVASPdid")]
pub beneficiary_vas_pdid: String,
/// \"beneficiaryVASPname\" will tell you the name of the VASP that has been
/// identified as the owner of the wallet address. This name is used in a
/// subsequent call to get its DID.
#[serde(rename = "beneficiaryVASPname")]
pub beneficiary_vas_pname: String,
/// \"errors/warnings\" will tell you what information about the beneficiary
/// you need to collect from the sender.
#[serde(rename = "warnings")]
pub warnings: Vec<String>,
}
impl TravelRuleValidateTransactionResponse {
pub fn new(
is_valid: bool,
r#type: String,
beneficiary_address_type: String,
address_source: String,
beneficiary_vas_pdid: String,
beneficiary_vas_pname: String,
warnings: Vec<String>,
) -> TravelRuleValidateTransactionResponse {
TravelRuleValidateTransactionResponse {
is_valid,
r#type,
beneficiary_address_type,
address_source,
beneficiary_vas_pdid,
beneficiary_vas_pname,
warnings,
}
}
}