Skip to content

Commit ddb58e3

Browse files
authored
hamed/update_p2p_advertiser_update_request (#253)
- update p2p advertiser update request
1 parent 9790680 commit ddb58e3

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/basic_api/generated/p2p_advertiser_update_send.dart

+8
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ class P2pAdvertiserUpdateRequest extends Request {
1414
this.p2pAdvertiserUpdate = true,
1515
this.paymentInfo,
1616
this.showName,
17+
this.upgradeLimits,
1718
Map<String, dynamic>? passthrough,
1819
int? reqId,
1920
}) : super(
@@ -33,6 +34,7 @@ class P2pAdvertiserUpdateRequest extends Request {
3334
: json['p2p_advertiser_update'] == 1,
3435
paymentInfo: json['payment_info'] as String?,
3536
showName: json['show_name'] == null ? null : json['show_name'] == 1,
37+
upgradeLimits: json['upgrade_limits'] as int?,
3638
passthrough: json['passthrough'] as Map<String, dynamic>?,
3739
reqId: json['req_id'] as int?,
3840
);
@@ -55,6 +57,9 @@ class P2pAdvertiserUpdateRequest extends Request {
5557
/// [Optional] When `true`, the advertiser's real name will be displayed on to other users on adverts and orders.
5658
final bool? showName;
5759

60+
/// [Optional] Used to upgrade daily limits of advertiser if advertiser is eligible
61+
final int? upgradeLimits;
62+
5863
/// Converts this instance to JSON
5964
@override
6065
Map<String, dynamic> toJson() => <String, dynamic>{
@@ -76,6 +81,7 @@ class P2pAdvertiserUpdateRequest extends Request {
7681
: showName!
7782
? 1
7883
: 0,
84+
'upgrade_limits': upgradeLimits,
7985
'passthrough': passthrough,
8086
'req_id': reqId,
8187
};
@@ -89,6 +95,7 @@ class P2pAdvertiserUpdateRequest extends Request {
8995
bool? p2pAdvertiserUpdate,
9096
String? paymentInfo,
9197
bool? showName,
98+
int? upgradeLimits,
9299
Map<String, dynamic>? passthrough,
93100
int? reqId,
94101
}) =>
@@ -100,6 +107,7 @@ class P2pAdvertiserUpdateRequest extends Request {
100107
p2pAdvertiserUpdate: p2pAdvertiserUpdate ?? this.p2pAdvertiserUpdate,
101108
paymentInfo: paymentInfo ?? this.paymentInfo,
102109
showName: showName ?? this.showName,
110+
upgradeLimits: upgradeLimits ?? this.upgradeLimits,
103111
passthrough: passthrough ?? this.passthrough,
104112
reqId: reqId ?? this.reqId,
105113
);

0 commit comments

Comments
 (0)