protobuf-platform 1.2.304 → 1.2.306

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.304",
3
+ "version": "1.2.306",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -317,6 +317,7 @@ message DepositResponse {
317
317
  optional string created = 10;
318
318
  optional string payment_redirect_url = 11;
319
319
  optional string country = 12;
320
+ optional string processing_type = 13;
320
321
  }
321
322
  message DepositItem {
322
323
  int32 id = 1;
@@ -331,6 +332,7 @@ message DepositItem {
331
332
  optional string created = 10;
332
333
  optional string payment_redirect_url = 11;
333
334
  optional string country = 12;
335
+ optional string processing_type = 13;
334
336
  }
335
337
  message DepositItemsResponse {
336
338
  repeated DepositItem items = 1;
@@ -390,6 +392,7 @@ message WithdrawalResponse {
390
392
  optional string destination_type = 11;
391
393
  optional string external_ref = 12;
392
394
  optional string country = 13;
395
+ optional string processing_type = 14;
393
396
  }
394
397
  message WithdrawalItem {
395
398
  int32 id = 1;
@@ -405,6 +408,7 @@ message WithdrawalItem {
405
408
  optional string destination_type = 11;
406
409
  optional string external_ref = 12;
407
410
  optional string country = 13;
411
+ optional string processing_type = 14;
408
412
  }
409
413
  message WithdrawalItemsResponse {
410
414
  repeated WithdrawalItem items = 1;
@@ -12724,7 +12724,8 @@ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
12724
12724
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
12725
12725
  created: jspb.Message.getFieldWithDefault(msg, 10, ""),
12726
12726
  paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
12727
- country: jspb.Message.getFieldWithDefault(msg, 12, "")
12727
+ country: jspb.Message.getFieldWithDefault(msg, 12, ""),
12728
+ processingType: jspb.Message.getFieldWithDefault(msg, 13, "")
12728
12729
  };
12729
12730
 
12730
12731
  if (includeInstance) {
@@ -12809,6 +12810,10 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
12809
12810
  var value = /** @type {string} */ (reader.readString());
12810
12811
  msg.setCountry(value);
12811
12812
  break;
12813
+ case 13:
12814
+ var value = /** @type {string} */ (reader.readString());
12815
+ msg.setProcessingType(value);
12816
+ break;
12812
12817
  default:
12813
12818
  reader.skipField();
12814
12819
  break;
@@ -12922,6 +12927,13 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
12922
12927
  f
12923
12928
  );
12924
12929
  }
12930
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
12931
+ if (f != null) {
12932
+ writer.writeString(
12933
+ 13,
12934
+ f
12935
+ );
12936
+ }
12925
12937
  };
12926
12938
 
12927
12939
 
@@ -13339,6 +13351,42 @@ proto.payment.DepositResponse.prototype.hasCountry = function() {
13339
13351
  };
13340
13352
 
13341
13353
 
13354
+ /**
13355
+ * optional string processing_type = 13;
13356
+ * @return {string}
13357
+ */
13358
+ proto.payment.DepositResponse.prototype.getProcessingType = function() {
13359
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
13360
+ };
13361
+
13362
+
13363
+ /**
13364
+ * @param {string} value
13365
+ * @return {!proto.payment.DepositResponse} returns this
13366
+ */
13367
+ proto.payment.DepositResponse.prototype.setProcessingType = function(value) {
13368
+ return jspb.Message.setField(this, 13, value);
13369
+ };
13370
+
13371
+
13372
+ /**
13373
+ * Clears the field making it undefined.
13374
+ * @return {!proto.payment.DepositResponse} returns this
13375
+ */
13376
+ proto.payment.DepositResponse.prototype.clearProcessingType = function() {
13377
+ return jspb.Message.setField(this, 13, undefined);
13378
+ };
13379
+
13380
+
13381
+ /**
13382
+ * Returns whether this field is set.
13383
+ * @return {boolean}
13384
+ */
13385
+ proto.payment.DepositResponse.prototype.hasProcessingType = function() {
13386
+ return jspb.Message.getField(this, 13) != null;
13387
+ };
13388
+
13389
+
13342
13390
 
13343
13391
 
13344
13392
 
@@ -13382,7 +13430,8 @@ proto.payment.DepositItem.toObject = function(includeInstance, msg) {
13382
13430
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
13383
13431
  created: jspb.Message.getFieldWithDefault(msg, 10, ""),
13384
13432
  paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
13385
- country: jspb.Message.getFieldWithDefault(msg, 12, "")
13433
+ country: jspb.Message.getFieldWithDefault(msg, 12, ""),
13434
+ processingType: jspb.Message.getFieldWithDefault(msg, 13, "")
13386
13435
  };
13387
13436
 
13388
13437
  if (includeInstance) {
@@ -13467,6 +13516,10 @@ proto.payment.DepositItem.deserializeBinaryFromReader = function(msg, reader) {
13467
13516
  var value = /** @type {string} */ (reader.readString());
13468
13517
  msg.setCountry(value);
13469
13518
  break;
13519
+ case 13:
13520
+ var value = /** @type {string} */ (reader.readString());
13521
+ msg.setProcessingType(value);
13522
+ break;
13470
13523
  default:
13471
13524
  reader.skipField();
13472
13525
  break;
@@ -13580,6 +13633,13 @@ proto.payment.DepositItem.serializeBinaryToWriter = function(message, writer) {
13580
13633
  f
13581
13634
  );
13582
13635
  }
13636
+ f = /** @type {string} */ (jspb.Message.getField(message, 13));
13637
+ if (f != null) {
13638
+ writer.writeString(
13639
+ 13,
13640
+ f
13641
+ );
13642
+ }
13583
13643
  };
13584
13644
 
13585
13645
 
@@ -13889,6 +13949,42 @@ proto.payment.DepositItem.prototype.hasCountry = function() {
13889
13949
  };
13890
13950
 
13891
13951
 
13952
+ /**
13953
+ * optional string processing_type = 13;
13954
+ * @return {string}
13955
+ */
13956
+ proto.payment.DepositItem.prototype.getProcessingType = function() {
13957
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 13, ""));
13958
+ };
13959
+
13960
+
13961
+ /**
13962
+ * @param {string} value
13963
+ * @return {!proto.payment.DepositItem} returns this
13964
+ */
13965
+ proto.payment.DepositItem.prototype.setProcessingType = function(value) {
13966
+ return jspb.Message.setField(this, 13, value);
13967
+ };
13968
+
13969
+
13970
+ /**
13971
+ * Clears the field making it undefined.
13972
+ * @return {!proto.payment.DepositItem} returns this
13973
+ */
13974
+ proto.payment.DepositItem.prototype.clearProcessingType = function() {
13975
+ return jspb.Message.setField(this, 13, undefined);
13976
+ };
13977
+
13978
+
13979
+ /**
13980
+ * Returns whether this field is set.
13981
+ * @return {boolean}
13982
+ */
13983
+ proto.payment.DepositItem.prototype.hasProcessingType = function() {
13984
+ return jspb.Message.getField(this, 13) != null;
13985
+ };
13986
+
13987
+
13892
13988
 
13893
13989
  /**
13894
13990
  * List of repeated fields within this message type.
@@ -15875,7 +15971,8 @@ proto.payment.WithdrawalResponse.toObject = function(includeInstance, msg) {
15875
15971
  destination: jspb.Message.getFieldWithDefault(msg, 10, ""),
15876
15972
  destinationType: jspb.Message.getFieldWithDefault(msg, 11, ""),
15877
15973
  externalRef: jspb.Message.getFieldWithDefault(msg, 12, ""),
15878
- country: jspb.Message.getFieldWithDefault(msg, 13, "")
15974
+ country: jspb.Message.getFieldWithDefault(msg, 13, ""),
15975
+ processingType: jspb.Message.getFieldWithDefault(msg, 14, "")
15879
15976
  };
15880
15977
 
15881
15978
  if (includeInstance) {
@@ -15964,6 +16061,10 @@ proto.payment.WithdrawalResponse.deserializeBinaryFromReader = function(msg, rea
15964
16061
  var value = /** @type {string} */ (reader.readString());
15965
16062
  msg.setCountry(value);
15966
16063
  break;
16064
+ case 14:
16065
+ var value = /** @type {string} */ (reader.readString());
16066
+ msg.setProcessingType(value);
16067
+ break;
15967
16068
  default:
15968
16069
  reader.skipField();
15969
16070
  break;
@@ -16084,6 +16185,13 @@ proto.payment.WithdrawalResponse.serializeBinaryToWriter = function(message, wri
16084
16185
  f
16085
16186
  );
16086
16187
  }
16188
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
16189
+ if (f != null) {
16190
+ writer.writeString(
16191
+ 14,
16192
+ f
16193
+ );
16194
+ }
16087
16195
  };
16088
16196
 
16089
16197
 
@@ -16537,6 +16645,42 @@ proto.payment.WithdrawalResponse.prototype.hasCountry = function() {
16537
16645
  };
16538
16646
 
16539
16647
 
16648
+ /**
16649
+ * optional string processing_type = 14;
16650
+ * @return {string}
16651
+ */
16652
+ proto.payment.WithdrawalResponse.prototype.getProcessingType = function() {
16653
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
16654
+ };
16655
+
16656
+
16657
+ /**
16658
+ * @param {string} value
16659
+ * @return {!proto.payment.WithdrawalResponse} returns this
16660
+ */
16661
+ proto.payment.WithdrawalResponse.prototype.setProcessingType = function(value) {
16662
+ return jspb.Message.setField(this, 14, value);
16663
+ };
16664
+
16665
+
16666
+ /**
16667
+ * Clears the field making it undefined.
16668
+ * @return {!proto.payment.WithdrawalResponse} returns this
16669
+ */
16670
+ proto.payment.WithdrawalResponse.prototype.clearProcessingType = function() {
16671
+ return jspb.Message.setField(this, 14, undefined);
16672
+ };
16673
+
16674
+
16675
+ /**
16676
+ * Returns whether this field is set.
16677
+ * @return {boolean}
16678
+ */
16679
+ proto.payment.WithdrawalResponse.prototype.hasProcessingType = function() {
16680
+ return jspb.Message.getField(this, 14) != null;
16681
+ };
16682
+
16683
+
16540
16684
 
16541
16685
 
16542
16686
 
@@ -16581,7 +16725,8 @@ proto.payment.WithdrawalItem.toObject = function(includeInstance, msg) {
16581
16725
  destination: jspb.Message.getFieldWithDefault(msg, 10, ""),
16582
16726
  destinationType: jspb.Message.getFieldWithDefault(msg, 11, ""),
16583
16727
  externalRef: jspb.Message.getFieldWithDefault(msg, 12, ""),
16584
- country: jspb.Message.getFieldWithDefault(msg, 13, "")
16728
+ country: jspb.Message.getFieldWithDefault(msg, 13, ""),
16729
+ processingType: jspb.Message.getFieldWithDefault(msg, 14, "")
16585
16730
  };
16586
16731
 
16587
16732
  if (includeInstance) {
@@ -16670,6 +16815,10 @@ proto.payment.WithdrawalItem.deserializeBinaryFromReader = function(msg, reader)
16670
16815
  var value = /** @type {string} */ (reader.readString());
16671
16816
  msg.setCountry(value);
16672
16817
  break;
16818
+ case 14:
16819
+ var value = /** @type {string} */ (reader.readString());
16820
+ msg.setProcessingType(value);
16821
+ break;
16673
16822
  default:
16674
16823
  reader.skipField();
16675
16824
  break;
@@ -16790,6 +16939,13 @@ proto.payment.WithdrawalItem.serializeBinaryToWriter = function(message, writer)
16790
16939
  f
16791
16940
  );
16792
16941
  }
16942
+ f = /** @type {string} */ (jspb.Message.getField(message, 14));
16943
+ if (f != null) {
16944
+ writer.writeString(
16945
+ 14,
16946
+ f
16947
+ );
16948
+ }
16793
16949
  };
16794
16950
 
16795
16951
 
@@ -17153,6 +17309,42 @@ proto.payment.WithdrawalItem.prototype.hasCountry = function() {
17153
17309
  };
17154
17310
 
17155
17311
 
17312
+ /**
17313
+ * optional string processing_type = 14;
17314
+ * @return {string}
17315
+ */
17316
+ proto.payment.WithdrawalItem.prototype.getProcessingType = function() {
17317
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 14, ""));
17318
+ };
17319
+
17320
+
17321
+ /**
17322
+ * @param {string} value
17323
+ * @return {!proto.payment.WithdrawalItem} returns this
17324
+ */
17325
+ proto.payment.WithdrawalItem.prototype.setProcessingType = function(value) {
17326
+ return jspb.Message.setField(this, 14, value);
17327
+ };
17328
+
17329
+
17330
+ /**
17331
+ * Clears the field making it undefined.
17332
+ * @return {!proto.payment.WithdrawalItem} returns this
17333
+ */
17334
+ proto.payment.WithdrawalItem.prototype.clearProcessingType = function() {
17335
+ return jspb.Message.setField(this, 14, undefined);
17336
+ };
17337
+
17338
+
17339
+ /**
17340
+ * Returns whether this field is set.
17341
+ * @return {boolean}
17342
+ */
17343
+ proto.payment.WithdrawalItem.prototype.hasProcessingType = function() {
17344
+ return jspb.Message.getField(this, 14) != null;
17345
+ };
17346
+
17347
+
17156
17348
 
17157
17349
  /**
17158
17350
  * List of repeated fields within this message type.
package/user/user.proto CHANGED
@@ -13,6 +13,7 @@ service User {
13
13
  rpc getUserData(UserDataRequest) returns (UserDataResponse);
14
14
  rpc getUserBalance(UserDataRequest) returns (UserDataResponse);
15
15
  rpc updateUserBalance(UserBalanceRequest) returns (UserDataResponse);
16
+ rpc checkWithdrawalEligibility(CheckWithdrawalEligibilityRequest) returns (CheckWithdrawalEligibilityResponse);
16
17
  rpc getUserCachedData(UserDataRequest) returns (UserDataResponse);
17
18
  rpc getPumpKingsMyTokenWidgetLaunchData(GetPumpKingsMyTokenWidgetLaunchDataRequest) returns (GetPumpKingsMyTokenWidgetLaunchDataResponse);
18
19
  rpc getUserAffiliateAttribution(UserAffiliateAttributionRequest) returns (UserAffiliateAttributionResponse);
@@ -246,6 +247,18 @@ message UserBalanceRequest {
246
247
  optional int64 delta_minor = 5;
247
248
  optional int32 currency_scale = 6;
248
249
  }
250
+ message CheckWithdrawalEligibilityRequest {
251
+ int32 user_id = 1;
252
+ string currency = 2;
253
+ int64 amount_minor = 3;
254
+ }
255
+ message CheckWithdrawalEligibilityResponse {
256
+ bool allowed = 1;
257
+ optional string reason = 2;
258
+ optional int64 available_real_minor = 3;
259
+ optional string currency = 4;
260
+ optional int32 currency_scale = 5;
261
+ }
249
262
  message UserPasswordRequest {
250
263
  int32 id = 1;
251
264
  string current_password = 2;
@@ -59,6 +59,28 @@ function deserialize_user_CheckMissingProfileFieldsResponse(buffer_arg) {
59
59
  return user_pb.CheckMissingProfileFieldsResponse.deserializeBinary(new Uint8Array(buffer_arg));
60
60
  }
61
61
 
62
+ function serialize_user_CheckWithdrawalEligibilityRequest(arg) {
63
+ if (!(arg instanceof user_pb.CheckWithdrawalEligibilityRequest)) {
64
+ throw new Error('Expected argument of type user.CheckWithdrawalEligibilityRequest');
65
+ }
66
+ return Buffer.from(arg.serializeBinary());
67
+ }
68
+
69
+ function deserialize_user_CheckWithdrawalEligibilityRequest(buffer_arg) {
70
+ return user_pb.CheckWithdrawalEligibilityRequest.deserializeBinary(new Uint8Array(buffer_arg));
71
+ }
72
+
73
+ function serialize_user_CheckWithdrawalEligibilityResponse(arg) {
74
+ if (!(arg instanceof user_pb.CheckWithdrawalEligibilityResponse)) {
75
+ throw new Error('Expected argument of type user.CheckWithdrawalEligibilityResponse');
76
+ }
77
+ return Buffer.from(arg.serializeBinary());
78
+ }
79
+
80
+ function deserialize_user_CheckWithdrawalEligibilityResponse(buffer_arg) {
81
+ return user_pb.CheckWithdrawalEligibilityResponse.deserializeBinary(new Uint8Array(buffer_arg));
82
+ }
83
+
62
84
  function serialize_user_ConfirmTwoFaRequest(arg) {
63
85
  if (!(arg instanceof user_pb.ConfirmTwoFaRequest)) {
64
86
  throw new Error('Expected argument of type user.ConfirmTwoFaRequest');
@@ -898,6 +920,17 @@ signUp: {
898
920
  responseSerialize: serialize_user_UserDataResponse,
899
921
  responseDeserialize: deserialize_user_UserDataResponse,
900
922
  },
923
+ checkWithdrawalEligibility: {
924
+ path: '/user.User/checkWithdrawalEligibility',
925
+ requestStream: false,
926
+ responseStream: false,
927
+ requestType: user_pb.CheckWithdrawalEligibilityRequest,
928
+ responseType: user_pb.CheckWithdrawalEligibilityResponse,
929
+ requestSerialize: serialize_user_CheckWithdrawalEligibilityRequest,
930
+ requestDeserialize: deserialize_user_CheckWithdrawalEligibilityRequest,
931
+ responseSerialize: serialize_user_CheckWithdrawalEligibilityResponse,
932
+ responseDeserialize: deserialize_user_CheckWithdrawalEligibilityResponse,
933
+ },
901
934
  getUserCachedData: {
902
935
  path: '/user.User/getUserCachedData',
903
936
  requestStream: false,
package/user/user_pb.js CHANGED
@@ -28,6 +28,8 @@ goog.exportSymbol('proto.user.CategoryItem', null, global);
28
28
  goog.exportSymbol('proto.user.CategoryItemsResponse', null, global);
29
29
  goog.exportSymbol('proto.user.CheckMissingProfileFieldsRequest', null, global);
30
30
  goog.exportSymbol('proto.user.CheckMissingProfileFieldsResponse', null, global);
31
+ goog.exportSymbol('proto.user.CheckWithdrawalEligibilityRequest', null, global);
32
+ goog.exportSymbol('proto.user.CheckWithdrawalEligibilityResponse', null, global);
31
33
  goog.exportSymbol('proto.user.ConfirmTwoFaRequest', null, global);
32
34
  goog.exportSymbol('proto.user.ConfirmationStatusResponse', null, global);
33
35
  goog.exportSymbol('proto.user.DashboardRequest', null, global);
@@ -534,6 +536,48 @@ if (goog.DEBUG && !COMPILED) {
534
536
  */
535
537
  proto.user.UserBalanceRequest.displayName = 'proto.user.UserBalanceRequest';
536
538
  }
539
+ /**
540
+ * Generated by JsPbCodeGenerator.
541
+ * @param {Array=} opt_data Optional initial data array, typically from a
542
+ * server response, or constructed directly in Javascript. The array is used
543
+ * in place and becomes part of the constructed object. It is not cloned.
544
+ * If no data is provided, the constructed object will be empty, but still
545
+ * valid.
546
+ * @extends {jspb.Message}
547
+ * @constructor
548
+ */
549
+ proto.user.CheckWithdrawalEligibilityRequest = function(opt_data) {
550
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
551
+ };
552
+ goog.inherits(proto.user.CheckWithdrawalEligibilityRequest, jspb.Message);
553
+ if (goog.DEBUG && !COMPILED) {
554
+ /**
555
+ * @public
556
+ * @override
557
+ */
558
+ proto.user.CheckWithdrawalEligibilityRequest.displayName = 'proto.user.CheckWithdrawalEligibilityRequest';
559
+ }
560
+ /**
561
+ * Generated by JsPbCodeGenerator.
562
+ * @param {Array=} opt_data Optional initial data array, typically from a
563
+ * server response, or constructed directly in Javascript. The array is used
564
+ * in place and becomes part of the constructed object. It is not cloned.
565
+ * If no data is provided, the constructed object will be empty, but still
566
+ * valid.
567
+ * @extends {jspb.Message}
568
+ * @constructor
569
+ */
570
+ proto.user.CheckWithdrawalEligibilityResponse = function(opt_data) {
571
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
572
+ };
573
+ goog.inherits(proto.user.CheckWithdrawalEligibilityResponse, jspb.Message);
574
+ if (goog.DEBUG && !COMPILED) {
575
+ /**
576
+ * @public
577
+ * @override
578
+ */
579
+ proto.user.CheckWithdrawalEligibilityResponse.displayName = 'proto.user.CheckWithdrawalEligibilityResponse';
580
+ }
537
581
  /**
538
582
  * Generated by JsPbCodeGenerator.
539
583
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -9947,6 +9991,518 @@ proto.user.UserBalanceRequest.prototype.hasCurrencyScale = function() {
9947
9991
 
9948
9992
 
9949
9993
 
9994
+ if (jspb.Message.GENERATE_TO_OBJECT) {
9995
+ /**
9996
+ * Creates an object representation of this proto.
9997
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
9998
+ * Optional fields that are not set will be set to undefined.
9999
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10000
+ * For the list of reserved names please see:
10001
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10002
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10003
+ * JSPB instance for transitional soy proto support:
10004
+ * http://goto/soy-param-migration
10005
+ * @return {!Object}
10006
+ */
10007
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.toObject = function(opt_includeInstance) {
10008
+ return proto.user.CheckWithdrawalEligibilityRequest.toObject(opt_includeInstance, this);
10009
+ };
10010
+
10011
+
10012
+ /**
10013
+ * Static version of the {@see toObject} method.
10014
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10015
+ * the JSPB instance for transitional soy proto support:
10016
+ * http://goto/soy-param-migration
10017
+ * @param {!proto.user.CheckWithdrawalEligibilityRequest} msg The msg instance to transform.
10018
+ * @return {!Object}
10019
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10020
+ */
10021
+ proto.user.CheckWithdrawalEligibilityRequest.toObject = function(includeInstance, msg) {
10022
+ var f, obj = {
10023
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
10024
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
10025
+ amountMinor: jspb.Message.getFieldWithDefault(msg, 3, 0)
10026
+ };
10027
+
10028
+ if (includeInstance) {
10029
+ obj.$jspbMessageInstance = msg;
10030
+ }
10031
+ return obj;
10032
+ };
10033
+ }
10034
+
10035
+
10036
+ /**
10037
+ * Deserializes binary data (in protobuf wire format).
10038
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10039
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest}
10040
+ */
10041
+ proto.user.CheckWithdrawalEligibilityRequest.deserializeBinary = function(bytes) {
10042
+ var reader = new jspb.BinaryReader(bytes);
10043
+ var msg = new proto.user.CheckWithdrawalEligibilityRequest;
10044
+ return proto.user.CheckWithdrawalEligibilityRequest.deserializeBinaryFromReader(msg, reader);
10045
+ };
10046
+
10047
+
10048
+ /**
10049
+ * Deserializes binary data (in protobuf wire format) from the
10050
+ * given reader into the given message object.
10051
+ * @param {!proto.user.CheckWithdrawalEligibilityRequest} msg The message object to deserialize into.
10052
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10053
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest}
10054
+ */
10055
+ proto.user.CheckWithdrawalEligibilityRequest.deserializeBinaryFromReader = function(msg, reader) {
10056
+ while (reader.nextField()) {
10057
+ if (reader.isEndGroup()) {
10058
+ break;
10059
+ }
10060
+ var field = reader.getFieldNumber();
10061
+ switch (field) {
10062
+ case 1:
10063
+ var value = /** @type {number} */ (reader.readInt32());
10064
+ msg.setUserId(value);
10065
+ break;
10066
+ case 2:
10067
+ var value = /** @type {string} */ (reader.readString());
10068
+ msg.setCurrency(value);
10069
+ break;
10070
+ case 3:
10071
+ var value = /** @type {number} */ (reader.readInt64());
10072
+ msg.setAmountMinor(value);
10073
+ break;
10074
+ default:
10075
+ reader.skipField();
10076
+ break;
10077
+ }
10078
+ }
10079
+ return msg;
10080
+ };
10081
+
10082
+
10083
+ /**
10084
+ * Serializes the message to binary data (in protobuf wire format).
10085
+ * @return {!Uint8Array}
10086
+ */
10087
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.serializeBinary = function() {
10088
+ var writer = new jspb.BinaryWriter();
10089
+ proto.user.CheckWithdrawalEligibilityRequest.serializeBinaryToWriter(this, writer);
10090
+ return writer.getResultBuffer();
10091
+ };
10092
+
10093
+
10094
+ /**
10095
+ * Serializes the given message to binary data (in protobuf wire
10096
+ * format), writing to the given BinaryWriter.
10097
+ * @param {!proto.user.CheckWithdrawalEligibilityRequest} message
10098
+ * @param {!jspb.BinaryWriter} writer
10099
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10100
+ */
10101
+ proto.user.CheckWithdrawalEligibilityRequest.serializeBinaryToWriter = function(message, writer) {
10102
+ var f = undefined;
10103
+ f = message.getUserId();
10104
+ if (f !== 0) {
10105
+ writer.writeInt32(
10106
+ 1,
10107
+ f
10108
+ );
10109
+ }
10110
+ f = message.getCurrency();
10111
+ if (f.length > 0) {
10112
+ writer.writeString(
10113
+ 2,
10114
+ f
10115
+ );
10116
+ }
10117
+ f = message.getAmountMinor();
10118
+ if (f !== 0) {
10119
+ writer.writeInt64(
10120
+ 3,
10121
+ f
10122
+ );
10123
+ }
10124
+ };
10125
+
10126
+
10127
+ /**
10128
+ * optional int32 user_id = 1;
10129
+ * @return {number}
10130
+ */
10131
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.getUserId = function() {
10132
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
10133
+ };
10134
+
10135
+
10136
+ /**
10137
+ * @param {number} value
10138
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
10139
+ */
10140
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.setUserId = function(value) {
10141
+ return jspb.Message.setProto3IntField(this, 1, value);
10142
+ };
10143
+
10144
+
10145
+ /**
10146
+ * optional string currency = 2;
10147
+ * @return {string}
10148
+ */
10149
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.getCurrency = function() {
10150
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10151
+ };
10152
+
10153
+
10154
+ /**
10155
+ * @param {string} value
10156
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
10157
+ */
10158
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.setCurrency = function(value) {
10159
+ return jspb.Message.setProto3StringField(this, 2, value);
10160
+ };
10161
+
10162
+
10163
+ /**
10164
+ * optional int64 amount_minor = 3;
10165
+ * @return {number}
10166
+ */
10167
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.getAmountMinor = function() {
10168
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
10169
+ };
10170
+
10171
+
10172
+ /**
10173
+ * @param {number} value
10174
+ * @return {!proto.user.CheckWithdrawalEligibilityRequest} returns this
10175
+ */
10176
+ proto.user.CheckWithdrawalEligibilityRequest.prototype.setAmountMinor = function(value) {
10177
+ return jspb.Message.setProto3IntField(this, 3, value);
10178
+ };
10179
+
10180
+
10181
+
10182
+
10183
+
10184
+ if (jspb.Message.GENERATE_TO_OBJECT) {
10185
+ /**
10186
+ * Creates an object representation of this proto.
10187
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
10188
+ * Optional fields that are not set will be set to undefined.
10189
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
10190
+ * For the list of reserved names please see:
10191
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
10192
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
10193
+ * JSPB instance for transitional soy proto support:
10194
+ * http://goto/soy-param-migration
10195
+ * @return {!Object}
10196
+ */
10197
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.toObject = function(opt_includeInstance) {
10198
+ return proto.user.CheckWithdrawalEligibilityResponse.toObject(opt_includeInstance, this);
10199
+ };
10200
+
10201
+
10202
+ /**
10203
+ * Static version of the {@see toObject} method.
10204
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
10205
+ * the JSPB instance for transitional soy proto support:
10206
+ * http://goto/soy-param-migration
10207
+ * @param {!proto.user.CheckWithdrawalEligibilityResponse} msg The msg instance to transform.
10208
+ * @return {!Object}
10209
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10210
+ */
10211
+ proto.user.CheckWithdrawalEligibilityResponse.toObject = function(includeInstance, msg) {
10212
+ var f, obj = {
10213
+ allowed: jspb.Message.getBooleanFieldWithDefault(msg, 1, false),
10214
+ reason: jspb.Message.getFieldWithDefault(msg, 2, ""),
10215
+ availableRealMinor: jspb.Message.getFieldWithDefault(msg, 3, 0),
10216
+ currency: jspb.Message.getFieldWithDefault(msg, 4, ""),
10217
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 5, 0)
10218
+ };
10219
+
10220
+ if (includeInstance) {
10221
+ obj.$jspbMessageInstance = msg;
10222
+ }
10223
+ return obj;
10224
+ };
10225
+ }
10226
+
10227
+
10228
+ /**
10229
+ * Deserializes binary data (in protobuf wire format).
10230
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
10231
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse}
10232
+ */
10233
+ proto.user.CheckWithdrawalEligibilityResponse.deserializeBinary = function(bytes) {
10234
+ var reader = new jspb.BinaryReader(bytes);
10235
+ var msg = new proto.user.CheckWithdrawalEligibilityResponse;
10236
+ return proto.user.CheckWithdrawalEligibilityResponse.deserializeBinaryFromReader(msg, reader);
10237
+ };
10238
+
10239
+
10240
+ /**
10241
+ * Deserializes binary data (in protobuf wire format) from the
10242
+ * given reader into the given message object.
10243
+ * @param {!proto.user.CheckWithdrawalEligibilityResponse} msg The message object to deserialize into.
10244
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
10245
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse}
10246
+ */
10247
+ proto.user.CheckWithdrawalEligibilityResponse.deserializeBinaryFromReader = function(msg, reader) {
10248
+ while (reader.nextField()) {
10249
+ if (reader.isEndGroup()) {
10250
+ break;
10251
+ }
10252
+ var field = reader.getFieldNumber();
10253
+ switch (field) {
10254
+ case 1:
10255
+ var value = /** @type {boolean} */ (reader.readBool());
10256
+ msg.setAllowed(value);
10257
+ break;
10258
+ case 2:
10259
+ var value = /** @type {string} */ (reader.readString());
10260
+ msg.setReason(value);
10261
+ break;
10262
+ case 3:
10263
+ var value = /** @type {number} */ (reader.readInt64());
10264
+ msg.setAvailableRealMinor(value);
10265
+ break;
10266
+ case 4:
10267
+ var value = /** @type {string} */ (reader.readString());
10268
+ msg.setCurrency(value);
10269
+ break;
10270
+ case 5:
10271
+ var value = /** @type {number} */ (reader.readInt32());
10272
+ msg.setCurrencyScale(value);
10273
+ break;
10274
+ default:
10275
+ reader.skipField();
10276
+ break;
10277
+ }
10278
+ }
10279
+ return msg;
10280
+ };
10281
+
10282
+
10283
+ /**
10284
+ * Serializes the message to binary data (in protobuf wire format).
10285
+ * @return {!Uint8Array}
10286
+ */
10287
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.serializeBinary = function() {
10288
+ var writer = new jspb.BinaryWriter();
10289
+ proto.user.CheckWithdrawalEligibilityResponse.serializeBinaryToWriter(this, writer);
10290
+ return writer.getResultBuffer();
10291
+ };
10292
+
10293
+
10294
+ /**
10295
+ * Serializes the given message to binary data (in protobuf wire
10296
+ * format), writing to the given BinaryWriter.
10297
+ * @param {!proto.user.CheckWithdrawalEligibilityResponse} message
10298
+ * @param {!jspb.BinaryWriter} writer
10299
+ * @suppress {unusedLocalVariables} f is only used for nested messages
10300
+ */
10301
+ proto.user.CheckWithdrawalEligibilityResponse.serializeBinaryToWriter = function(message, writer) {
10302
+ var f = undefined;
10303
+ f = message.getAllowed();
10304
+ if (f) {
10305
+ writer.writeBool(
10306
+ 1,
10307
+ f
10308
+ );
10309
+ }
10310
+ f = /** @type {string} */ (jspb.Message.getField(message, 2));
10311
+ if (f != null) {
10312
+ writer.writeString(
10313
+ 2,
10314
+ f
10315
+ );
10316
+ }
10317
+ f = /** @type {number} */ (jspb.Message.getField(message, 3));
10318
+ if (f != null) {
10319
+ writer.writeInt64(
10320
+ 3,
10321
+ f
10322
+ );
10323
+ }
10324
+ f = /** @type {string} */ (jspb.Message.getField(message, 4));
10325
+ if (f != null) {
10326
+ writer.writeString(
10327
+ 4,
10328
+ f
10329
+ );
10330
+ }
10331
+ f = /** @type {number} */ (jspb.Message.getField(message, 5));
10332
+ if (f != null) {
10333
+ writer.writeInt32(
10334
+ 5,
10335
+ f
10336
+ );
10337
+ }
10338
+ };
10339
+
10340
+
10341
+ /**
10342
+ * optional bool allowed = 1;
10343
+ * @return {boolean}
10344
+ */
10345
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.getAllowed = function() {
10346
+ return /** @type {boolean} */ (jspb.Message.getBooleanFieldWithDefault(this, 1, false));
10347
+ };
10348
+
10349
+
10350
+ /**
10351
+ * @param {boolean} value
10352
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10353
+ */
10354
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.setAllowed = function(value) {
10355
+ return jspb.Message.setProto3BooleanField(this, 1, value);
10356
+ };
10357
+
10358
+
10359
+ /**
10360
+ * optional string reason = 2;
10361
+ * @return {string}
10362
+ */
10363
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.getReason = function() {
10364
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
10365
+ };
10366
+
10367
+
10368
+ /**
10369
+ * @param {string} value
10370
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10371
+ */
10372
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.setReason = function(value) {
10373
+ return jspb.Message.setField(this, 2, value);
10374
+ };
10375
+
10376
+
10377
+ /**
10378
+ * Clears the field making it undefined.
10379
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10380
+ */
10381
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.clearReason = function() {
10382
+ return jspb.Message.setField(this, 2, undefined);
10383
+ };
10384
+
10385
+
10386
+ /**
10387
+ * Returns whether this field is set.
10388
+ * @return {boolean}
10389
+ */
10390
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.hasReason = function() {
10391
+ return jspb.Message.getField(this, 2) != null;
10392
+ };
10393
+
10394
+
10395
+ /**
10396
+ * optional int64 available_real_minor = 3;
10397
+ * @return {number}
10398
+ */
10399
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.getAvailableRealMinor = function() {
10400
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
10401
+ };
10402
+
10403
+
10404
+ /**
10405
+ * @param {number} value
10406
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10407
+ */
10408
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.setAvailableRealMinor = function(value) {
10409
+ return jspb.Message.setField(this, 3, value);
10410
+ };
10411
+
10412
+
10413
+ /**
10414
+ * Clears the field making it undefined.
10415
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10416
+ */
10417
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.clearAvailableRealMinor = function() {
10418
+ return jspb.Message.setField(this, 3, undefined);
10419
+ };
10420
+
10421
+
10422
+ /**
10423
+ * Returns whether this field is set.
10424
+ * @return {boolean}
10425
+ */
10426
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.hasAvailableRealMinor = function() {
10427
+ return jspb.Message.getField(this, 3) != null;
10428
+ };
10429
+
10430
+
10431
+ /**
10432
+ * optional string currency = 4;
10433
+ * @return {string}
10434
+ */
10435
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.getCurrency = function() {
10436
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
10437
+ };
10438
+
10439
+
10440
+ /**
10441
+ * @param {string} value
10442
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10443
+ */
10444
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.setCurrency = function(value) {
10445
+ return jspb.Message.setField(this, 4, value);
10446
+ };
10447
+
10448
+
10449
+ /**
10450
+ * Clears the field making it undefined.
10451
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10452
+ */
10453
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.clearCurrency = function() {
10454
+ return jspb.Message.setField(this, 4, undefined);
10455
+ };
10456
+
10457
+
10458
+ /**
10459
+ * Returns whether this field is set.
10460
+ * @return {boolean}
10461
+ */
10462
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.hasCurrency = function() {
10463
+ return jspb.Message.getField(this, 4) != null;
10464
+ };
10465
+
10466
+
10467
+ /**
10468
+ * optional int32 currency_scale = 5;
10469
+ * @return {number}
10470
+ */
10471
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.getCurrencyScale = function() {
10472
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
10473
+ };
10474
+
10475
+
10476
+ /**
10477
+ * @param {number} value
10478
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10479
+ */
10480
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.setCurrencyScale = function(value) {
10481
+ return jspb.Message.setField(this, 5, value);
10482
+ };
10483
+
10484
+
10485
+ /**
10486
+ * Clears the field making it undefined.
10487
+ * @return {!proto.user.CheckWithdrawalEligibilityResponse} returns this
10488
+ */
10489
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.clearCurrencyScale = function() {
10490
+ return jspb.Message.setField(this, 5, undefined);
10491
+ };
10492
+
10493
+
10494
+ /**
10495
+ * Returns whether this field is set.
10496
+ * @return {boolean}
10497
+ */
10498
+ proto.user.CheckWithdrawalEligibilityResponse.prototype.hasCurrencyScale = function() {
10499
+ return jspb.Message.getField(this, 5) != null;
10500
+ };
10501
+
10502
+
10503
+
10504
+
10505
+
9950
10506
  if (jspb.Message.GENERATE_TO_OBJECT) {
9951
10507
  /**
9952
10508
  * Creates an object representation of this proto.