@@ -14,6 +14,7 @@ class P2pAdvertiserUpdateRequest extends Request {
14
14
this .p2pAdvertiserUpdate = true ,
15
15
this .paymentInfo,
16
16
this .showName,
17
+ this .upgradeLimits,
17
18
Map <String , dynamic >? passthrough,
18
19
int ? reqId,
19
20
}) : super (
@@ -33,6 +34,7 @@ class P2pAdvertiserUpdateRequest extends Request {
33
34
: json['p2p_advertiser_update' ] == 1 ,
34
35
paymentInfo: json['payment_info' ] as String ? ,
35
36
showName: json['show_name' ] == null ? null : json['show_name' ] == 1 ,
37
+ upgradeLimits: json['upgrade_limits' ] as int ? ,
36
38
passthrough: json['passthrough' ] as Map <String , dynamic >? ,
37
39
reqId: json['req_id' ] as int ? ,
38
40
);
@@ -55,6 +57,9 @@ class P2pAdvertiserUpdateRequest extends Request {
55
57
/// [Optional] When `true` , the advertiser's real name will be displayed on to other users on adverts and orders.
56
58
final bool ? showName;
57
59
60
+ /// [Optional] Used to upgrade daily limits of advertiser if advertiser is eligible
61
+ final int ? upgradeLimits;
62
+
58
63
/// Converts this instance to JSON
59
64
@override
60
65
Map <String , dynamic > toJson () => < String , dynamic > {
@@ -76,6 +81,7 @@ class P2pAdvertiserUpdateRequest extends Request {
76
81
: showName!
77
82
? 1
78
83
: 0 ,
84
+ 'upgrade_limits' : upgradeLimits,
79
85
'passthrough' : passthrough,
80
86
'req_id' : reqId,
81
87
};
@@ -89,6 +95,7 @@ class P2pAdvertiserUpdateRequest extends Request {
89
95
bool ? p2pAdvertiserUpdate,
90
96
String ? paymentInfo,
91
97
bool ? showName,
98
+ int ? upgradeLimits,
92
99
Map <String , dynamic >? passthrough,
93
100
int ? reqId,
94
101
}) =>
@@ -100,6 +107,7 @@ class P2pAdvertiserUpdateRequest extends Request {
100
107
p2pAdvertiserUpdate: p2pAdvertiserUpdate ?? this .p2pAdvertiserUpdate,
101
108
paymentInfo: paymentInfo ?? this .paymentInfo,
102
109
showName: showName ?? this .showName,
110
+ upgradeLimits: upgradeLimits ?? this .upgradeLimits,
103
111
passthrough: passthrough ?? this .passthrough,
104
112
reqId: reqId ?? this .reqId,
105
113
);
0 commit comments