Skip to content

Commit f86ec5c

Browse files
osama-derivabedelaziz-deriv
authored andcommitted
Add growth_rate, multiplier, deal_cancellation_duration, contract_type.
1 parent 693a37f commit f86ec5c

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

lib/api/response/profit_table_response_result.dart

+28
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,10 @@ abstract class TransactionsItemModel {
158158
this.shortcode,
159159
this.transactionId,
160160
this.underlyingSymbol,
161+
this.contractType,
162+
this.dealCancellationDuration,
163+
this.multiplier,
164+
this.growthRate,
161165
});
162166

163167
/// ID of the application where this contract was purchased.
@@ -195,6 +199,18 @@ abstract class TransactionsItemModel {
195199

196200
/// The underlying symbol for the contract.
197201
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;
198214
}
199215

200216
/// Transactions item class.
@@ -213,6 +229,10 @@ class TransactionsItem extends TransactionsItemModel {
213229
String? shortcode,
214230
int? transactionId,
215231
String? underlyingSymbol,
232+
String? contractType,
233+
String? dealCancellationDuration,
234+
String? multiplier,
235+
String? growthRate,
216236
}) : super(
217237
appId: appId,
218238
buyPrice: buyPrice,
@@ -226,6 +246,10 @@ class TransactionsItem extends TransactionsItemModel {
226246
shortcode: shortcode,
227247
transactionId: transactionId,
228248
underlyingSymbol: underlyingSymbol,
249+
contractType: contractType,
250+
dealCancellationDuration: dealCancellationDuration,
251+
multiplier: multiplier,
252+
growthRate: growthRate,
229253
);
230254

231255
/// Creates an instance from JSON.
@@ -243,6 +267,10 @@ class TransactionsItem extends TransactionsItemModel {
243267
shortcode: json['shortcode'],
244268
transactionId: json['transaction_id'],
245269
underlyingSymbol: json['underlying_symbol'],
270+
contractType: json['contract_type'],
271+
dealCancellationDuration: json['deal_cancellation_duration'],
272+
multiplier: json['multiplier'],
273+
growthRate: json['growth_rate'],
246274
);
247275

248276
/// Converts an instance to JSON.

0 commit comments

Comments
 (0)