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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
// 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 TravelRuleValidateFullTransactionRequest {
/// The Decentralized Identifier (DID) of the exchange (VASP) that is
/// sending the virtual assets. This identifier is unique to the exchange
/// and is generated when the exchange's account is created in the Notabene
/// network.
#[serde(rename = "originatorVASPdid", skip_serializing_if = "Option::is_none")]
pub originator_vas_pdid: Option<String>,
/// The Decentralized Identifier (DID) of the exchange (VASP) that is
/// receiving the virtual assets. This identifier is unique to the exchange
/// and is generated when the exchange's account is created in the Notabene
/// network.
#[serde(rename = "beneficiaryVASPdid", skip_serializing_if = "Option::is_none")]
pub beneficiary_vas_pdid: Option<String>,
/// Transaction asset symbol (e.g., BTC, ETH, USDC). By using the
/// `notation` query string, users can select the type of asset notation -
/// `fireblocks`: Converts asset symbols to Fireblocks notation. -
/// `notabene`: Retains the original Notabene asset symbol format.
#[serde(rename = "transactionAsset", skip_serializing_if = "Option::is_none")]
pub transaction_asset: Option<String>,
/// Transaction amount in the transaction asset. For example, if the asset
/// is BTC, the amount is the value in BTC units. By using the `notation`
/// query string, users can select the type of amount notation -
/// `fireblocks`: Converts the amount to Fireblocks notation (e.g., adjusted
/// for decimals). - `notabene`: Retains the original Notabene amount
/// format.
#[serde(rename = "transactionAmount", skip_serializing_if = "Option::is_none")]
pub transaction_amount: Option<String>,
/// The name of the VASP acting as the transaction originator.
#[serde(rename = "originatorVASPname", skip_serializing_if = "Option::is_none")]
pub originator_vas_pname: Option<String>,
/// The name of the VASP acting as the transaction beneficiary.
#[serde(
rename = "beneficiaryVASPname",
skip_serializing_if = "Option::is_none"
)]
pub beneficiary_vas_pname: Option<String>,
/// Information about the blockchain transaction.
#[serde(
rename = "transactionBlockchainInfo",
skip_serializing_if = "Option::is_none"
)]
pub transaction_blockchain_info: Option<models::TravelRuleTransactionBlockchainInfo>,
/// Information about the originator of the transaction.
#[serde(rename = "originator")]
pub originator: models::TravelRuleValidatePiiIvms,
/// Information about the beneficiary of the transaction.
#[serde(rename = "beneficiary")]
pub beneficiary: models::TravelRuleValidatePiiIvms,
/// Encrypted data related to the transaction.
#[serde(rename = "encrypted", skip_serializing_if = "Option::is_none")]
pub encrypted: Option<String>,
/// The protocol used to perform the travel rule.
#[serde(rename = "protocol", skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
/// Whether to skip validation of beneficiary data.
#[serde(
rename = "skipBeneficiaryDataValidation",
skip_serializing_if = "Option::is_none"
)]
pub skip_beneficiary_data_validation: Option<bool>,
/// Whether to check if the transaction complies with the travel rule in the
/// beneficiary VASP's jurisdiction.
#[serde(rename = "travelRuleBehavior", skip_serializing_if = "Option::is_none")]
pub travel_rule_behavior: Option<bool>,
/// A reference ID related to the originator of the transaction.
#[serde(rename = "originatorRef", skip_serializing_if = "Option::is_none")]
pub originator_ref: Option<String>,
/// A reference ID related to the beneficiary of the transaction.
#[serde(rename = "beneficiaryRef", skip_serializing_if = "Option::is_none")]
pub beneficiary_ref: Option<String>,
/// A reference ID related to the travel rule behavior.
#[serde(
rename = "travelRuleBehaviorRef",
skip_serializing_if = "Option::is_none"
)]
pub travel_rule_behavior_ref: Option<String>,
/// Ownership proof related to the originator of the transaction.
#[serde(rename = "originatorProof", skip_serializing_if = "Option::is_none")]
pub originator_proof: Option<models::TravelRuleOwnershipProof>,
/// Ownership proof related to the beneficiary of the transaction.
#[serde(rename = "beneficiaryProof", skip_serializing_if = "Option::is_none")]
pub beneficiary_proof: Option<models::TravelRuleOwnershipProof>,
/// The Decentralized Identifier (DID) of the person at the receiving
/// exchange (VASP). This identifier is generated when the customer is
/// registered in the Notabene network, or automatically created based on
/// the `beneficiaryRef`. - If neither `beneficiaryRef` nor
/// `beneficiaryDid` is provided in the `txCreate` payload, a new random
/// DID is generated for every transaction.
#[serde(rename = "beneficiaryDid", skip_serializing_if = "Option::is_none")]
pub beneficiary_did: Option<String>,
/// The Decentralized Identifier (DID) of the person at the exchange (VASP)
/// who is requesting the withdrawal. This identifier is generated when the
/// customer is registered in the Notabene network or automatically created
/// based on the `originatorRef`. - If neither `originatorRef` nor
/// `originatorDid` is provided in the `txCreate` payload, a new random
/// DID is generated for every transaction.
#[serde(rename = "originatorDid", skip_serializing_if = "Option::is_none")]
pub originator_did: Option<String>,
/// Indicates if the transaction involves a non-custodial wallet.
#[serde(rename = "isNonCustodial", skip_serializing_if = "Option::is_none")]
pub is_non_custodial: Option<bool>,
/// The email address where a notification should be sent upon completion of
/// the travel rule
#[serde(rename = "notificationEmail", skip_serializing_if = "Option::is_none")]
pub notification_email: Option<String>,
/// Personal identifiable information related to the transaction
#[serde(rename = "pii", skip_serializing_if = "Option::is_none")]
pub pii: Option<models::TravelRulePiiIvms>,
/// The URL of the personal identifiable information related to the
/// transaction
#[serde(rename = "pii_url", skip_serializing_if = "Option::is_none")]
pub pii_url: Option<String>,
}
impl TravelRuleValidateFullTransactionRequest {
pub fn new(
originator: models::TravelRuleValidatePiiIvms,
beneficiary: models::TravelRuleValidatePiiIvms,
) -> TravelRuleValidateFullTransactionRequest {
TravelRuleValidateFullTransactionRequest {
originator_vas_pdid: None,
beneficiary_vas_pdid: None,
transaction_asset: None,
transaction_amount: None,
originator_vas_pname: None,
beneficiary_vas_pname: None,
transaction_blockchain_info: None,
originator,
beneficiary,
encrypted: None,
protocol: None,
skip_beneficiary_data_validation: None,
travel_rule_behavior: None,
originator_ref: None,
beneficiary_ref: None,
travel_rule_behavior_ref: None,
originator_proof: None,
beneficiary_proof: None,
beneficiary_did: None,
originator_did: None,
is_non_custodial: None,
notification_email: None,
pii: None,
pii_url: None,
}
}
}