Skip to content

Commit 29c03f3

Browse files
authored
Ernest/Addition_of_fatca_property_in_new_account_request_model (#319)
1 parent 66a87de commit 29c03f3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/basic_api/generated/new_account_real_send.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ class NewAccountRealRequest extends Request {
3636
super.msgType = 'new_account_real',
3737
super.passthrough,
3838
super.reqId,
39+
this.fatcaDeclaration,
3940
});
4041

4142
/// Creates an instance from JSON.
@@ -70,6 +71,7 @@ class NewAccountRealRequest extends Request {
7071
taxResidence: json['tax_residence'] as String?,
7172
passthrough: json['passthrough'] as Map<String, dynamic>?,
7273
reqId: json['req_id'] as int?,
74+
fatcaDeclaration: json['fatca_declaration'] as int?,
7375
);
7476

7577
/// [Optional] Purpose and reason for requesting the account opening.
@@ -147,6 +149,9 @@ class NewAccountRealRequest extends Request {
147149
/// [Optional] Residence for tax purpose. Comma separated iso country code if multiple jurisdictions. Only applicable for real money account. Required for `maltainvest` landing company.
148150
final String? taxResidence;
149151

152+
/// [Optional] Indicates client's self-declaration of FATCA.
153+
final int? fatcaDeclaration;
154+
150155
/// Converts this instance to JSON
151156
@override
152157
Map<String, dynamic> toJson() => <String, dynamic>{
@@ -181,6 +186,7 @@ class NewAccountRealRequest extends Request {
181186
'tax_residence': taxResidence,
182187
'passthrough': passthrough,
183188
'req_id': reqId,
189+
'fatca_declaration': fatcaDeclaration,
184190
};
185191

186192
/// Creates a copy of instance with given parameters
@@ -213,6 +219,7 @@ class NewAccountRealRequest extends Request {
213219
String? taxResidence,
214220
Map<String, dynamic>? passthrough,
215221
int? reqId,
222+
int? fatcaDeclaration,
216223
}) =>
217224
NewAccountRealRequest(
218225
accountOpeningReason: accountOpeningReason ?? this.accountOpeningReason,
@@ -243,6 +250,7 @@ class NewAccountRealRequest extends Request {
243250
taxResidence: taxResidence ?? this.taxResidence,
244251
passthrough: passthrough ?? this.passthrough,
245252
reqId: reqId ?? this.reqId,
253+
fatcaDeclaration: fatcaDeclaration ?? this.fatcaDeclaration,
246254
);
247255

248256
/// Override equatable class.

0 commit comments

Comments
 (0)