protobuf-platform 1.2.501 → 1.2.504

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,8 @@ goog.exportSymbol('proto.payment.CashierFieldItemsResponse', null, global);
28
28
  goog.exportSymbol('proto.payment.CashierFieldsRequest', null, global);
29
29
  goog.exportSymbol('proto.payment.CheckFastDepositRequest', null, global);
30
30
  goog.exportSymbol('proto.payment.CheckFastDepositResponse', null, global);
31
+ goog.exportSymbol('proto.payment.CheckWithdrawalEligibilityRequest', null, global);
32
+ goog.exportSymbol('proto.payment.CheckWithdrawalEligibilityResponse', null, global);
31
33
  goog.exportSymbol('proto.payment.CompensationRequest', null, global);
32
34
  goog.exportSymbol('proto.payment.ConfiscationRequest', null, global);
33
35
  goog.exportSymbol('proto.payment.CryptoDepositInstructions', null, global);
@@ -1566,6 +1568,48 @@ if (goog.DEBUG && !COMPILED) {
1566
1568
  */
1567
1569
  proto.payment.CheckFastDepositResponse.displayName = 'proto.payment.CheckFastDepositResponse';
1568
1570
  }
1571
+ /**
1572
+ * Generated by JsPbCodeGenerator.
1573
+ * @param {Array=} opt_data Optional initial data array, typically from a
1574
+ * server response, or constructed directly in Javascript. The array is used
1575
+ * in place and becomes part of the constructed object. It is not cloned.
1576
+ * If no data is provided, the constructed object will be empty, but still
1577
+ * valid.
1578
+ * @extends {jspb.Message}
1579
+ * @constructor
1580
+ */
1581
+ proto.payment.CheckWithdrawalEligibilityRequest = function(opt_data) {
1582
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1583
+ };
1584
+ goog.inherits(proto.payment.CheckWithdrawalEligibilityRequest, jspb.Message);
1585
+ if (goog.DEBUG && !COMPILED) {
1586
+ /**
1587
+ * @public
1588
+ * @override
1589
+ */
1590
+ proto.payment.CheckWithdrawalEligibilityRequest.displayName = 'proto.payment.CheckWithdrawalEligibilityRequest';
1591
+ }
1592
+ /**
1593
+ * Generated by JsPbCodeGenerator.
1594
+ * @param {Array=} opt_data Optional initial data array, typically from a
1595
+ * server response, or constructed directly in Javascript. The array is used
1596
+ * in place and becomes part of the constructed object. It is not cloned.
1597
+ * If no data is provided, the constructed object will be empty, but still
1598
+ * valid.
1599
+ * @extends {jspb.Message}
1600
+ * @constructor
1601
+ */
1602
+ proto.payment.CheckWithdrawalEligibilityResponse = function(opt_data) {
1603
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1604
+ };
1605
+ goog.inherits(proto.payment.CheckWithdrawalEligibilityResponse, jspb.Message);
1606
+ if (goog.DEBUG && !COMPILED) {
1607
+ /**
1608
+ * @public
1609
+ * @override
1610
+ */
1611
+ proto.payment.CheckWithdrawalEligibilityResponse.displayName = 'proto.payment.CheckWithdrawalEligibilityResponse';
1612
+ }
1569
1613
  /**
1570
1614
  * Generated by JsPbCodeGenerator.
1571
1615
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -13282,7 +13326,8 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
13282
13326
  bankBranch: jspb.Message.getFieldWithDefault(msg, 43, ""),
13283
13327
  ifsc: jspb.Message.getFieldWithDefault(msg, 44, ""),
13284
13328
  cryptoWallet: jspb.Message.getFieldWithDefault(msg, 45, ""),
13285
- requestCurrency: jspb.Message.getFieldWithDefault(msg, 46, "")
13329
+ requestCurrency: jspb.Message.getFieldWithDefault(msg, 46, ""),
13330
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 47, "")
13286
13331
  };
13287
13332
 
13288
13333
  if (includeInstance) {
@@ -13503,6 +13548,10 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
13503
13548
  var value = /** @type {string} */ (reader.readString());
13504
13549
  msg.setRequestCurrency(value);
13505
13550
  break;
13551
+ case 47:
13552
+ var value = /** @type {string} */ (reader.readString());
13553
+ msg.setAntifraudSession(value);
13554
+ break;
13506
13555
  default:
13507
13556
  reader.skipField();
13508
13557
  break;
@@ -13854,6 +13903,13 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
13854
13903
  f
13855
13904
  );
13856
13905
  }
13906
+ f = /** @type {string} */ (jspb.Message.getField(message, 47));
13907
+ if (f != null) {
13908
+ writer.writeString(
13909
+ 47,
13910
+ f
13911
+ );
13912
+ }
13857
13913
  };
13858
13914
 
13859
13915
 
@@ -15459,6 +15515,42 @@ proto.payment.AttemptDepositRequest.prototype.hasRequestCurrency = function() {
15459
15515
  };
15460
15516
 
15461
15517
 
15518
+ /**
15519
+ * optional string antifraud_session = 47;
15520
+ * @return {string}
15521
+ */
15522
+ proto.payment.AttemptDepositRequest.prototype.getAntifraudSession = function() {
15523
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 47, ""));
15524
+ };
15525
+
15526
+
15527
+ /**
15528
+ * @param {string} value
15529
+ * @return {!proto.payment.AttemptDepositRequest} returns this
15530
+ */
15531
+ proto.payment.AttemptDepositRequest.prototype.setAntifraudSession = function(value) {
15532
+ return jspb.Message.setField(this, 47, value);
15533
+ };
15534
+
15535
+
15536
+ /**
15537
+ * Clears the field making it undefined.
15538
+ * @return {!proto.payment.AttemptDepositRequest} returns this
15539
+ */
15540
+ proto.payment.AttemptDepositRequest.prototype.clearAntifraudSession = function() {
15541
+ return jspb.Message.setField(this, 47, undefined);
15542
+ };
15543
+
15544
+
15545
+ /**
15546
+ * Returns whether this field is set.
15547
+ * @return {boolean}
15548
+ */
15549
+ proto.payment.AttemptDepositRequest.prototype.hasAntifraudSession = function() {
15550
+ return jspb.Message.getField(this, 47) != null;
15551
+ };
15552
+
15553
+
15462
15554
 
15463
15555
 
15464
15556
 
@@ -18496,7 +18588,9 @@ proto.payment.AttemptWithdrawalRequest.toObject = function(includeInstance, msg)
18496
18588
  bankBranch: jspb.Message.getFieldWithDefault(msg, 36, ""),
18497
18589
  ifsc: jspb.Message.getFieldWithDefault(msg, 37, ""),
18498
18590
  cryptoWallet: jspb.Message.getFieldWithDefault(msg, 38, ""),
18499
- requestCurrency: jspb.Message.getFieldWithDefault(msg, 39, "")
18591
+ requestCurrency: jspb.Message.getFieldWithDefault(msg, 39, ""),
18592
+ antifraudSession: jspb.Message.getFieldWithDefault(msg, 40, ""),
18593
+ userAgent: jspb.Message.getFieldWithDefault(msg, 41, "")
18500
18594
  };
18501
18595
 
18502
18596
  if (includeInstance) {
@@ -18689,6 +18783,14 @@ proto.payment.AttemptWithdrawalRequest.deserializeBinaryFromReader = function(ms
18689
18783
  var value = /** @type {string} */ (reader.readString());
18690
18784
  msg.setRequestCurrency(value);
18691
18785
  break;
18786
+ case 40:
18787
+ var value = /** @type {string} */ (reader.readString());
18788
+ msg.setAntifraudSession(value);
18789
+ break;
18790
+ case 41:
18791
+ var value = /** @type {string} */ (reader.readString());
18792
+ msg.setUserAgent(value);
18793
+ break;
18692
18794
  default:
18693
18795
  reader.skipField();
18694
18796
  break;
@@ -18991,6 +19093,20 @@ proto.payment.AttemptWithdrawalRequest.serializeBinaryToWriter = function(messag
18991
19093
  f
18992
19094
  );
18993
19095
  }
19096
+ f = /** @type {string} */ (jspb.Message.getField(message, 40));
19097
+ if (f != null) {
19098
+ writer.writeString(
19099
+ 40,
19100
+ f
19101
+ );
19102
+ }
19103
+ f = /** @type {string} */ (jspb.Message.getField(message, 41));
19104
+ if (f != null) {
19105
+ writer.writeString(
19106
+ 41,
19107
+ f
19108
+ );
19109
+ }
18994
19110
  };
18995
19111
 
18996
19112
 
@@ -20344,6 +20460,78 @@ proto.payment.AttemptWithdrawalRequest.prototype.hasRequestCurrency = function()
20344
20460
  };
20345
20461
 
20346
20462
 
20463
+ /**
20464
+ * optional string antifraud_session = 40;
20465
+ * @return {string}
20466
+ */
20467
+ proto.payment.AttemptWithdrawalRequest.prototype.getAntifraudSession = function() {
20468
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 40, ""));
20469
+ };
20470
+
20471
+
20472
+ /**
20473
+ * @param {string} value
20474
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
20475
+ */
20476
+ proto.payment.AttemptWithdrawalRequest.prototype.setAntifraudSession = function(value) {
20477
+ return jspb.Message.setField(this, 40, value);
20478
+ };
20479
+
20480
+
20481
+ /**
20482
+ * Clears the field making it undefined.
20483
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
20484
+ */
20485
+ proto.payment.AttemptWithdrawalRequest.prototype.clearAntifraudSession = function() {
20486
+ return jspb.Message.setField(this, 40, undefined);
20487
+ };
20488
+
20489
+
20490
+ /**
20491
+ * Returns whether this field is set.
20492
+ * @return {boolean}
20493
+ */
20494
+ proto.payment.AttemptWithdrawalRequest.prototype.hasAntifraudSession = function() {
20495
+ return jspb.Message.getField(this, 40) != null;
20496
+ };
20497
+
20498
+
20499
+ /**
20500
+ * optional string user_agent = 41;
20501
+ * @return {string}
20502
+ */
20503
+ proto.payment.AttemptWithdrawalRequest.prototype.getUserAgent = function() {
20504
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 41, ""));
20505
+ };
20506
+
20507
+
20508
+ /**
20509
+ * @param {string} value
20510
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
20511
+ */
20512
+ proto.payment.AttemptWithdrawalRequest.prototype.setUserAgent = function(value) {
20513
+ return jspb.Message.setField(this, 41, value);
20514
+ };
20515
+
20516
+
20517
+ /**
20518
+ * Clears the field making it undefined.
20519
+ * @return {!proto.payment.AttemptWithdrawalRequest} returns this
20520
+ */
20521
+ proto.payment.AttemptWithdrawalRequest.prototype.clearUserAgent = function() {
20522
+ return jspb.Message.setField(this, 41, undefined);
20523
+ };
20524
+
20525
+
20526
+ /**
20527
+ * Returns whether this field is set.
20528
+ * @return {boolean}
20529
+ */
20530
+ proto.payment.AttemptWithdrawalRequest.prototype.hasUserAgent = function() {
20531
+ return jspb.Message.getField(this, 41) != null;
20532
+ };
20533
+
20534
+
20347
20535
 
20348
20536
 
20349
20537
 
@@ -29792,6 +29980,518 @@ proto.payment.CheckFastDepositResponse.prototype.hasMethod = function() {
29792
29980
 
29793
29981
 
29794
29982
 
29983
+ if (jspb.Message.GENERATE_TO_OBJECT) {
29984
+ /**
29985
+ * Creates an object representation of this proto.
29986
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
29987
+ * Optional fields that are not set will be set to undefined.
29988
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
29989
+ * For the list of reserved names please see:
29990
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
29991
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
29992
+ * JSPB instance for transitional soy proto support:
29993
+ * http://goto/soy-param-migration
29994
+ * @return {!Object}
29995
+ */
29996
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.toObject = function(opt_includeInstance) {
29997
+ return proto.payment.CheckWithdrawalEligibilityRequest.toObject(opt_includeInstance, this);
29998
+ };
29999
+
30000
+
30001
+ /**
30002
+ * Static version of the {@see toObject} method.
30003
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30004
+ * the JSPB instance for transitional soy proto support:
30005
+ * http://goto/soy-param-migration
30006
+ * @param {!proto.payment.CheckWithdrawalEligibilityRequest} msg The msg instance to transform.
30007
+ * @return {!Object}
30008
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30009
+ */
30010
+ proto.payment.CheckWithdrawalEligibilityRequest.toObject = function(includeInstance, msg) {
30011
+ var f, obj = {
30012
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
30013
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
30014
+ amount: jspb.Message.getFieldWithDefault(msg, 3, "")
30015
+ };
30016
+
30017
+ if (includeInstance) {
30018
+ obj.$jspbMessageInstance = msg;
30019
+ }
30020
+ return obj;
30021
+ };
30022
+ }
30023
+
30024
+
30025
+ /**
30026
+ * Deserializes binary data (in protobuf wire format).
30027
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30028
+ * @return {!proto.payment.CheckWithdrawalEligibilityRequest}
30029
+ */
30030
+ proto.payment.CheckWithdrawalEligibilityRequest.deserializeBinary = function(bytes) {
30031
+ var reader = new jspb.BinaryReader(bytes);
30032
+ var msg = new proto.payment.CheckWithdrawalEligibilityRequest;
30033
+ return proto.payment.CheckWithdrawalEligibilityRequest.deserializeBinaryFromReader(msg, reader);
30034
+ };
30035
+
30036
+
30037
+ /**
30038
+ * Deserializes binary data (in protobuf wire format) from the
30039
+ * given reader into the given message object.
30040
+ * @param {!proto.payment.CheckWithdrawalEligibilityRequest} msg The message object to deserialize into.
30041
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30042
+ * @return {!proto.payment.CheckWithdrawalEligibilityRequest}
30043
+ */
30044
+ proto.payment.CheckWithdrawalEligibilityRequest.deserializeBinaryFromReader = function(msg, reader) {
30045
+ while (reader.nextField()) {
30046
+ if (reader.isEndGroup()) {
30047
+ break;
30048
+ }
30049
+ var field = reader.getFieldNumber();
30050
+ switch (field) {
30051
+ case 1:
30052
+ var value = /** @type {number} */ (reader.readInt32());
30053
+ msg.setUserId(value);
30054
+ break;
30055
+ case 2:
30056
+ var value = /** @type {string} */ (reader.readString());
30057
+ msg.setCurrency(value);
30058
+ break;
30059
+ case 3:
30060
+ var value = /** @type {string} */ (reader.readString());
30061
+ msg.setAmount(value);
30062
+ break;
30063
+ default:
30064
+ reader.skipField();
30065
+ break;
30066
+ }
30067
+ }
30068
+ return msg;
30069
+ };
30070
+
30071
+
30072
+ /**
30073
+ * Serializes the message to binary data (in protobuf wire format).
30074
+ * @return {!Uint8Array}
30075
+ */
30076
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.serializeBinary = function() {
30077
+ var writer = new jspb.BinaryWriter();
30078
+ proto.payment.CheckWithdrawalEligibilityRequest.serializeBinaryToWriter(this, writer);
30079
+ return writer.getResultBuffer();
30080
+ };
30081
+
30082
+
30083
+ /**
30084
+ * Serializes the given message to binary data (in protobuf wire
30085
+ * format), writing to the given BinaryWriter.
30086
+ * @param {!proto.payment.CheckWithdrawalEligibilityRequest} message
30087
+ * @param {!jspb.BinaryWriter} writer
30088
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30089
+ */
30090
+ proto.payment.CheckWithdrawalEligibilityRequest.serializeBinaryToWriter = function(message, writer) {
30091
+ var f = undefined;
30092
+ f = message.getUserId();
30093
+ if (f !== 0) {
30094
+ writer.writeInt32(
30095
+ 1,
30096
+ f
30097
+ );
30098
+ }
30099
+ f = message.getCurrency();
30100
+ if (f.length > 0) {
30101
+ writer.writeString(
30102
+ 2,
30103
+ f
30104
+ );
30105
+ }
30106
+ f = message.getAmount();
30107
+ if (f.length > 0) {
30108
+ writer.writeString(
30109
+ 3,
30110
+ f
30111
+ );
30112
+ }
30113
+ };
30114
+
30115
+
30116
+ /**
30117
+ * optional int32 user_id = 1;
30118
+ * @return {number}
30119
+ */
30120
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.getUserId = function() {
30121
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
30122
+ };
30123
+
30124
+
30125
+ /**
30126
+ * @param {number} value
30127
+ * @return {!proto.payment.CheckWithdrawalEligibilityRequest} returns this
30128
+ */
30129
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.setUserId = function(value) {
30130
+ return jspb.Message.setProto3IntField(this, 1, value);
30131
+ };
30132
+
30133
+
30134
+ /**
30135
+ * optional string currency = 2;
30136
+ * @return {string}
30137
+ */
30138
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.getCurrency = function() {
30139
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
30140
+ };
30141
+
30142
+
30143
+ /**
30144
+ * @param {string} value
30145
+ * @return {!proto.payment.CheckWithdrawalEligibilityRequest} returns this
30146
+ */
30147
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.setCurrency = function(value) {
30148
+ return jspb.Message.setProto3StringField(this, 2, value);
30149
+ };
30150
+
30151
+
30152
+ /**
30153
+ * optional string amount = 3;
30154
+ * @return {string}
30155
+ */
30156
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.getAmount = function() {
30157
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
30158
+ };
30159
+
30160
+
30161
+ /**
30162
+ * @param {string} value
30163
+ * @return {!proto.payment.CheckWithdrawalEligibilityRequest} returns this
30164
+ */
30165
+ proto.payment.CheckWithdrawalEligibilityRequest.prototype.setAmount = function(value) {
30166
+ return jspb.Message.setProto3StringField(this, 3, value);
30167
+ };
30168
+
30169
+
30170
+
30171
+
30172
+
30173
+ if (jspb.Message.GENERATE_TO_OBJECT) {
30174
+ /**
30175
+ * Creates an object representation of this proto.
30176
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
30177
+ * Optional fields that are not set will be set to undefined.
30178
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
30179
+ * For the list of reserved names please see:
30180
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
30181
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
30182
+ * JSPB instance for transitional soy proto support:
30183
+ * http://goto/soy-param-migration
30184
+ * @return {!Object}
30185
+ */
30186
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.toObject = function(opt_includeInstance) {
30187
+ return proto.payment.CheckWithdrawalEligibilityResponse.toObject(opt_includeInstance, this);
30188
+ };
30189
+
30190
+
30191
+ /**
30192
+ * Static version of the {@see toObject} method.
30193
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
30194
+ * the JSPB instance for transitional soy proto support:
30195
+ * http://goto/soy-param-migration
30196
+ * @param {!proto.payment.CheckWithdrawalEligibilityResponse} msg The msg instance to transform.
30197
+ * @return {!Object}
30198
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30199
+ */
30200
+ proto.payment.CheckWithdrawalEligibilityResponse.toObject = function(includeInstance, msg) {
30201
+ var f, obj = {
30202
+ allowed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
30203
+ reason: jspb.Message.getFieldWithDefault(msg, 2, ""),
30204
+ availableRealMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
30205
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
30206
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 5, 0)
30207
+ };
30208
+
30209
+ if (includeInstance) {
30210
+ obj.$jspbMessageInstance = msg;
30211
+ }
30212
+ return obj;
30213
+ };
30214
+ }
30215
+
30216
+
30217
+ /**
30218
+ * Deserializes binary data (in protobuf wire format).
30219
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
30220
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse}
30221
+ */
30222
+ proto.payment.CheckWithdrawalEligibilityResponse.deserializeBinary = function(bytes) {
30223
+ var reader = new jspb.BinaryReader(bytes);
30224
+ var msg = new proto.payment.CheckWithdrawalEligibilityResponse;
30225
+ return proto.payment.CheckWithdrawalEligibilityResponse.deserializeBinaryFromReader(msg, reader);
30226
+ };
30227
+
30228
+
30229
+ /**
30230
+ * Deserializes binary data (in protobuf wire format) from the
30231
+ * given reader into the given message object.
30232
+ * @param {!proto.payment.CheckWithdrawalEligibilityResponse} msg The message object to deserialize into.
30233
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
30234
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse}
30235
+ */
30236
+ proto.payment.CheckWithdrawalEligibilityResponse.deserializeBinaryFromReader = function(msg, reader) {
30237
+ while (reader.nextField()) {
30238
+ if (reader.isEndGroup()) {
30239
+ break;
30240
+ }
30241
+ var field = reader.getFieldNumber();
30242
+ switch (field) {
30243
+ case 1:
30244
+ var value = /** @type {boolean} */ (reader.readBool());
30245
+ msg.setAllowed(value);
30246
+ break;
30247
+ case 2:
30248
+ var value = /** @type {string} */ (reader.readString());
30249
+ msg.setReason(value);
30250
+ break;
30251
+ case 3:
30252
+ var value = /** @type {number} */ (reader.readInt64());
30253
+ msg.setAvailableRealMinor(value);
30254
+ break;
30255
+ case 4:
30256
+ var value = /** @type {string} */ (reader.readString());
30257
+ msg.setCurrency(value);
30258
+ break;
30259
+ case 5:
30260
+ var value = /** @type {number} */ (reader.readInt32());
30261
+ msg.setCurrencyScale(value);
30262
+ break;
30263
+ default:
30264
+ reader.skipField();
30265
+ break;
30266
+ }
30267
+ }
30268
+ return msg;
30269
+ };
30270
+
30271
+
30272
+ /**
30273
+ * Serializes the message to binary data (in protobuf wire format).
30274
+ * @return {!Uint8Array}
30275
+ */
30276
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.serializeBinary = function() {
30277
+ var writer = new jspb.BinaryWriter();
30278
+ proto.payment.CheckWithdrawalEligibilityResponse.serializeBinaryToWriter(this, writer);
30279
+ return writer.getResultBuffer();
30280
+ };
30281
+
30282
+
30283
+ /**
30284
+ * Serializes the given message to binary data (in protobuf wire
30285
+ * format), writing to the given BinaryWriter.
30286
+ * @param {!proto.payment.CheckWithdrawalEligibilityResponse} message
30287
+ * @param {!jspb.BinaryWriter} writer
30288
+ * @suppress {unusedLocalVariables} f is only used for nested messages
30289
+ */
30290
+ proto.payment.CheckWithdrawalEligibilityResponse.serializeBinaryToWriter = function(message, writer) {
30291
+ var f = undefined;
30292
+ f = message.getAllowed();
30293
+ if (f) {
30294
+ writer.writeBool(
30295
+ 1,
30296
+ f
30297
+ );
30298
+ }
30299
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
30300
+ if (f != null) {
30301
+ writer.writeString(
30302
+ 2,
30303
+ f
30304
+ );
30305
+ }
30306
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
30307
+ if (f != null) {
30308
+ writer.writeInt64(
30309
+ 3,
30310
+ f
30311
+ );
30312
+ }
30313
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
30314
+ if (f != null) {
30315
+ writer.writeString(
30316
+ 4,
30317
+ f
30318
+ );
30319
+ }
30320
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
30321
+ if (f != null) {
30322
+ writer.writeInt32(
30323
+ 5,
30324
+ f
30325
+ );
30326
+ }
30327
+ };
30328
+
30329
+
30330
+ /**
30331
+ * optional bool allowed = 1;
30332
+ * @return {boolean}
30333
+ */
30334
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.getAllowed = function() {
30335
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
30336
+ };
30337
+
30338
+
30339
+ /**
30340
+ * @param {boolean} value
30341
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30342
+ */
30343
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.setAllowed = function(value) {
30344
+ return jspb.Message.setProto3BooleanField(this, 1, value);
30345
+ };
30346
+
30347
+
30348
+ /**
30349
+ * optional string reason = 2;
30350
+ * @return {string}
30351
+ */
30352
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.getReason = function() {
30353
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
30354
+ };
30355
+
30356
+
30357
+ /**
30358
+ * @param {string} value
30359
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30360
+ */
30361
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.setReason = function(value) {
30362
+ return jspb.Message.setField(this, 2, value);
30363
+ };
30364
+
30365
+
30366
+ /**
30367
+ * Clears the field making it undefined.
30368
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30369
+ */
30370
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.clearReason = function() {
30371
+ return jspb.Message.setField(this, 2, undefined);
30372
+ };
30373
+
30374
+
30375
+ /**
30376
+ * Returns whether this field is set.
30377
+ * @return {boolean}
30378
+ */
30379
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.hasReason = function() {
30380
+ return jspb.Message.getField(this, 2) != null;
30381
+ };
30382
+
30383
+
30384
+ /**
30385
+ * optional int64 available_real_minor = 3;
30386
+ * @return {number}
30387
+ */
30388
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.getAvailableRealMinor = function() {
30389
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
30390
+ };
30391
+
30392
+
30393
+ /**
30394
+ * @param {number} value
30395
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30396
+ */
30397
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.setAvailableRealMinor = function(value) {
30398
+ return jspb.Message.setField(this, 3, value);
30399
+ };
30400
+
30401
+
30402
+ /**
30403
+ * Clears the field making it undefined.
30404
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30405
+ */
30406
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.clearAvailableRealMinor = function() {
30407
+ return jspb.Message.setField(this, 3, undefined);
30408
+ };
30409
+
30410
+
30411
+ /**
30412
+ * Returns whether this field is set.
30413
+ * @return {boolean}
30414
+ */
30415
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.hasAvailableRealMinor = function() {
30416
+ return jspb.Message.getField(this, 3) != null;
30417
+ };
30418
+
30419
+
30420
+ /**
30421
+ * optional string currency = 4;
30422
+ * @return {string}
30423
+ */
30424
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.getCurrency = function() {
30425
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
30426
+ };
30427
+
30428
+
30429
+ /**
30430
+ * @param {string} value
30431
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30432
+ */
30433
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.setCurrency = function(value) {
30434
+ return jspb.Message.setField(this, 4, value);
30435
+ };
30436
+
30437
+
30438
+ /**
30439
+ * Clears the field making it undefined.
30440
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30441
+ */
30442
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.clearCurrency = function() {
30443
+ return jspb.Message.setField(this, 4, undefined);
30444
+ };
30445
+
30446
+
30447
+ /**
30448
+ * Returns whether this field is set.
30449
+ * @return {boolean}
30450
+ */
30451
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.hasCurrency = function() {
30452
+ return jspb.Message.getField(this, 4) != null;
30453
+ };
30454
+
30455
+
30456
+ /**
30457
+ * optional int32 currency_scale = 5;
30458
+ * @return {number}
30459
+ */
30460
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.getCurrencyScale = function() {
30461
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
30462
+ };
30463
+
30464
+
30465
+ /**
30466
+ * @param {number} value
30467
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30468
+ */
30469
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.setCurrencyScale = function(value) {
30470
+ return jspb.Message.setField(this, 5, value);
30471
+ };
30472
+
30473
+
30474
+ /**
30475
+ * Clears the field making it undefined.
30476
+ * @return {!proto.payment.CheckWithdrawalEligibilityResponse} returns this
30477
+ */
30478
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.clearCurrencyScale = function() {
30479
+ return jspb.Message.setField(this, 5, undefined);
30480
+ };
30481
+
30482
+
30483
+ /**
30484
+ * Returns whether this field is set.
30485
+ * @return {boolean}
30486
+ */
30487
+ proto.payment.CheckWithdrawalEligibilityResponse.prototype.hasCurrencyScale = function() {
30488
+ return jspb.Message.getField(this, 5) != null;
30489
+ };
30490
+
30491
+
30492
+
30493
+
30494
+
29795
30495
  if (jspb.Message.GENERATE_TO_OBJECT) {
29796
30496
  /**
29797
30497
  * Creates an object representation of this proto.