@@ -158,6 +158,10 @@ abstract class TransactionsItemModel {
158
158
this .shortcode,
159
159
this .transactionId,
160
160
this .underlyingSymbol,
161
+ this .contractType,
162
+ this .dealCancellationDuration,
163
+ this .multiplier,
164
+ this .growthRate,
161
165
});
162
166
163
167
/// ID of the application where this contract was purchased.
@@ -195,6 +199,18 @@ abstract class TransactionsItemModel {
195
199
196
200
/// The underlying symbol for the contract.
197
201
final String ? underlyingSymbol;
202
+
203
+ /// The contract type.
204
+ final String ? contractType;
205
+
206
+ /// The duration to cancel the contract.
207
+ final String ? dealCancellationDuration;
208
+
209
+ /// The multiplier.
210
+ final String ? multiplier;
211
+
212
+ /// The growth rate.
213
+ final String ? growthRate;
198
214
}
199
215
200
216
/// Transactions item class.
@@ -213,6 +229,10 @@ class TransactionsItem extends TransactionsItemModel {
213
229
String ? shortcode,
214
230
int ? transactionId,
215
231
String ? underlyingSymbol,
232
+ String ? contractType,
233
+ String ? dealCancellationDuration,
234
+ String ? multiplier,
235
+ String ? growthRate,
216
236
}) : super (
217
237
appId: appId,
218
238
buyPrice: buyPrice,
@@ -226,6 +246,10 @@ class TransactionsItem extends TransactionsItemModel {
226
246
shortcode: shortcode,
227
247
transactionId: transactionId,
228
248
underlyingSymbol: underlyingSymbol,
249
+ contractType: contractType,
250
+ dealCancellationDuration: dealCancellationDuration,
251
+ multiplier: multiplier,
252
+ growthRate: growthRate,
229
253
);
230
254
231
255
/// Creates an instance from JSON.
@@ -243,6 +267,10 @@ class TransactionsItem extends TransactionsItemModel {
243
267
shortcode: json['shortcode' ],
244
268
transactionId: json['transaction_id' ],
245
269
underlyingSymbol: json['underlying_symbol' ],
270
+ contractType: json['contract_type' ],
271
+ dealCancellationDuration: json['deal_cancellation_duration' ],
272
+ multiplier: json['multiplier' ],
273
+ growthRate: json['growth_rate' ],
246
274
);
247
275
248
276
/// Converts an instance to JSON.
0 commit comments