fireblocks_sdk/models/
travel_rule_validate_transaction_request.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 TravelRuleValidateTransactionRequest {
16    /// Transaction asset symbol BTC,ETH)
17    #[serde(rename = "transactionAsset")]
18    pub transaction_asset: String,
19    /// Transaction destination address
20    #[serde(rename = "destination")]
21    pub destination: String,
22    /// Transaction amount in the transaction asset
23    #[serde(rename = "transactionAmount")]
24    pub transaction_amount: String,
25    /// This is the identifier assigned to your VASP
26    #[serde(rename = "originatorVASPdid")]
27    pub originator_vas_pdid: String,
28    /// \"True\" if the originator and beneficiary is the same person and you
29    /// therefore do not need to collect any information. \"False\" if it is a
30    /// third-party transfer.
31    #[serde(rename = "originatorEqualsBeneficiary")]
32    pub originator_equals_beneficiary: bool,
33    /// This will also check if the transaction is a TRAVEL_RULE in the
34    /// beneficiary VASP's jurisdiction
35    #[serde(rename = "travelRuleBehavior", skip_serializing_if = "Option::is_none")]
36    pub travel_rule_behavior: Option<bool>,
37    /// This is the identifier assigned to the VASP the funds are being sent to
38    #[serde(rename = "beneficiaryVASPdid", skip_serializing_if = "Option::is_none")]
39    pub beneficiary_vas_pdid: Option<String>,
40    /// Beneficiary VASP name
41    #[serde(
42        rename = "beneficiaryVASPname",
43        skip_serializing_if = "Option::is_none"
44    )]
45    pub beneficiary_vas_pname: Option<String>,
46    /// Beneficiary  name
47    #[serde(rename = "beneficiaryName", skip_serializing_if = "Option::is_none")]
48    pub beneficiary_name: Option<String>,
49    /// Beneficiary  name
50    #[serde(
51        rename = "beneficiaryAccountNumber",
52        skip_serializing_if = "Option::is_none"
53    )]
54    pub beneficiary_account_number: Option<String>,
55    /// Beneficiary  name
56    #[serde(rename = "beneficiaryAddress", skip_serializing_if = "Option::is_none")]
57    pub beneficiary_address: Option<models::TravelRuleAddress>,
58}
59
60impl TravelRuleValidateTransactionRequest {
61    pub fn new(
62        transaction_asset: String,
63        destination: String,
64        transaction_amount: String,
65        originator_vas_pdid: String,
66        originator_equals_beneficiary: bool,
67    ) -> TravelRuleValidateTransactionRequest {
68        TravelRuleValidateTransactionRequest {
69            transaction_asset,
70            destination,
71            transaction_amount,
72            originator_vas_pdid,
73            originator_equals_beneficiary,
74            travel_rule_behavior: None,
75            beneficiary_vas_pdid: None,
76            beneficiary_vas_pname: None,
77            beneficiary_name: None,
78            beneficiary_account_number: None,
79            beneficiary_address: None,
80        }
81    }
82}