fireblocks_sdk/models/travel_rule_validate_transaction_response.rs
1// Fireblocks API
2//
3// 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)
4//
5// The version of the OpenAPI document: 1.8.0
6// Contact: developers@fireblocks.com
7// Generated by: https://openapi-generator.tech
8
9use {
10 crate::models,
11 serde::{Deserialize, Serialize},
12};
13
14#[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)]
15pub struct TravelRuleValidateTransactionResponse {
16 /// \"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
17 #[serde(rename = "isValid")]
18 pub is_valid: bool,
19 /// \"type\" will tell you if the virtual asset value converted to FIAT
20 /// value of the withdrawal request is above (=TRAVELRULE) or below
21 /// (=BELOW_THRESHOLD) the threshold in your jurisdiction. If it is to an
22 /// unhosted wallet which does not require travel rule information to be
23 /// sent and only collected, it will say NON_CUSTODIAL.
24 #[serde(rename = "type")]
25 pub r#type: String,
26 /// \"beneficiaryAddressType\" will tell you if your blockchain analytics
27 /// provider or internal address book has been able to identify the wallet
28 /// address.
29 #[serde(rename = "beneficiaryAddressType")]
30 pub beneficiary_address_type: String,
31 /// \"addressSource\" will tell you if the address was found in your
32 /// internal address book or identified by the blockchain analytics
33 /// provider.
34 #[serde(rename = "addressSource")]
35 pub address_source: String,
36 /// The VASP DID of the beneficiary VASP
37 #[serde(rename = "beneficiaryVASPdid")]
38 pub beneficiary_vas_pdid: String,
39 /// \"beneficiaryVASPname\" will tell you the name of the VASP that has been
40 /// identified as the owner of the wallet address. This name is used in a
41 /// subsequent call to get its DID.
42 #[serde(rename = "beneficiaryVASPname")]
43 pub beneficiary_vas_pname: String,
44 /// \"errors/warnings\" will tell you what information about the beneficiary
45 /// you need to collect from the sender.
46 #[serde(rename = "warnings")]
47 pub warnings: Vec<String>,
48}
49
50impl TravelRuleValidateTransactionResponse {
51 pub fn new(
52 is_valid: bool,
53 r#type: String,
54 beneficiary_address_type: String,
55 address_source: String,
56 beneficiary_vas_pdid: String,
57 beneficiary_vas_pname: String,
58 warnings: Vec<String>,
59 ) -> TravelRuleValidateTransactionResponse {
60 TravelRuleValidateTransactionResponse {
61 is_valid,
62 r#type,
63 beneficiary_address_type,
64 address_source,
65 beneficiary_vas_pdid,
66 beneficiary_vas_pname,
67 warnings,
68 }
69 }
70}