protobuf-platform 1.2.303 → 1.2.305

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.303",
3
+ "version": "1.2.305",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -37,6 +37,7 @@ service Payment {
37
37
  rpc attemptWithdrawal(AttemptWithdrawalRequest) returns (WithdrawalResponse);
38
38
  rpc changeWithdrawalStatus(GetWithdrawalRequest) returns (WithdrawalResponse);
39
39
  rpc readListWithdrawals(PaginationRequest) returns (WithdrawalItemsResponse);
40
+ rpc readSingleWithdrawal(GetWithdrawalRequest) returns (WithdrawalResponse);
40
41
  rpc processingWithdrawalWebHook(WithdrawalWebHookRequest) returns (ProcessedWithdrawalResponse);
41
42
  //Deposit Statuses
42
43
  rpc readListDepositStatuses(PaginationRequest) returns (DepositStatusItemsResponse);
@@ -902,6 +902,17 @@ attemptWithdrawal: {
902
902
  responseSerialize: serialize_payment_WithdrawalItemsResponse,
903
903
  responseDeserialize: deserialize_payment_WithdrawalItemsResponse,
904
904
  },
905
+ readSingleWithdrawal: {
906
+ path: '/payment.Payment/readSingleWithdrawal',
907
+ requestStream: false,
908
+ responseStream: false,
909
+ requestType: payment_pb.GetWithdrawalRequest,
910
+ responseType: payment_pb.WithdrawalResponse,
911
+ requestSerialize: serialize_payment_GetWithdrawalRequest,
912
+ requestDeserialize: deserialize_payment_GetWithdrawalRequest,
913
+ responseSerialize: serialize_payment_WithdrawalResponse,
914
+ responseDeserialize: deserialize_payment_WithdrawalResponse,
915
+ },
905
916
  processingWithdrawalWebHook: {
906
917
  path: '/payment.Payment/processingWithdrawalWebHook',
907
918
  requestStream: false,
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.