protobuf-platform 1.2.439 → 1.2.441

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/game/game.proto CHANGED
@@ -164,7 +164,8 @@ message GameSearchRequest {
164
164
  optional int32 has_free_spins = 13;
165
165
  optional int32 is_hidden = 14;
166
166
  repeated int32 game_ids = 15;
167
- optional string query = 16;
167
+ optional string query = 16;
168
+ optional string type = 17;
168
169
  }
169
170
  message WagerSearchRequest {
170
171
  optional int32 wager_id = 1;
package/game/game_pb.js CHANGED
@@ -4532,7 +4532,8 @@ proto.game.GameSearchRequest.toObject = function(includeInstance, msg) {
4532
4532
  hasFreeSpins: jspb.Message.getFieldWithDefault(msg, 13, 0),
4533
4533
  isHidden: jspb.Message.getFieldWithDefault(msg, 14, 0),
4534
4534
  gameIdsList: (f = jspb.Message.getRepeatedField(msg, 15)) == null ? undefined : f,
4535
- query: jspb.Message.getFieldWithDefault(msg, 16, "")
4535
+ query: jspb.Message.getFieldWithDefault(msg, 16, ""),
4536
+ type: jspb.Message.getFieldWithDefault(msg, 17, "")
4536
4537
  };
4537
4538
 
4538
4539
  if (includeInstance) {
@@ -4643,6 +4644,10 @@ proto.game.GameSearchRequest.deserializeBinaryFromReader = function(msg, reader)
4643
4644
  var value = /** @type {string} */ (reader.readString());
4644
4645
  msg.setQuery(value);
4645
4646
  break;
4647
+ case 17:
4648
+ var value = /** @type {string} */ (reader.readString());
4649
+ msg.setType(value);
4650
+ break;
4646
4651
  default:
4647
4652
  reader.skipField();
4648
4653
  break;
@@ -4784,6 +4789,13 @@ proto.game.GameSearchRequest.serializeBinaryToWriter = function(message, writer)
4784
4789
  f
4785
4790
  );
4786
4791
  }
4792
+ f = /** @type {string} */ (jspb.Message.getField(message, 17));
4793
+ if (f != null) {
4794
+ writer.writeString(
4795
+ 17,
4796
+ f
4797
+ );
4798
+ }
4787
4799
  };
4788
4800
 
4789
4801
 
@@ -5369,6 +5381,42 @@ proto.game.GameSearchRequest.prototype.hasQuery = function() {
5369
5381
  };
5370
5382
 
5371
5383
 
5384
+ /**
5385
+ * optional string type = 17;
5386
+ * @return {string}
5387
+ */
5388
+ proto.game.GameSearchRequest.prototype.getType = function() {
5389
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 17, ""));
5390
+ };
5391
+
5392
+
5393
+ /**
5394
+ * @param {string} value
5395
+ * @return {!proto.game.GameSearchRequest} returns this
5396
+ */
5397
+ proto.game.GameSearchRequest.prototype.setType = function(value) {
5398
+ return jspb.Message.setField(this, 17, value);
5399
+ };
5400
+
5401
+
5402
+ /**
5403
+ * Clears the field making it undefined.
5404
+ * @return {!proto.game.GameSearchRequest} returns this
5405
+ */
5406
+ proto.game.GameSearchRequest.prototype.clearType = function() {
5407
+ return jspb.Message.setField(this, 17, undefined);
5408
+ };
5409
+
5410
+
5411
+ /**
5412
+ * Returns whether this field is set.
5413
+ * @return {boolean}
5414
+ */
5415
+ proto.game.GameSearchRequest.prototype.hasType = function() {
5416
+ return jspb.Message.getField(this, 17) != null;
5417
+ };
5418
+
5419
+
5372
5420
 
5373
5421
  /**
5374
5422
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.439",
3
+ "version": "1.2.441",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,6 +51,7 @@ service Payment {
51
51
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
52
52
  rpc checkFastDeposit(CheckFastDepositRequest) returns (CheckFastDepositResponse);
53
53
  rpc getWithdrawalWagerSnapshot(GetWithdrawalWagerSnapshotRequest) returns (GetWithdrawalWagerSnapshotResponse);
54
+ rpc getUserKycFinancialSnapshot(GetUserKycFinancialSnapshotRequest) returns (GetUserKycFinancialSnapshotResponse);
54
55
  //Segmentation
55
56
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
56
57
  //Currency source-of-truth
@@ -661,6 +662,19 @@ message GetWithdrawalWagerSnapshotResponse {
661
662
  int32 active_locked_buckets_count = 8;
662
663
  repeated WithdrawalWagerLockedBucketItem active_locked_buckets = 9;
663
664
  }
665
+ message GetUserKycFinancialSnapshotRequest {
666
+ int32 user_id = 1;
667
+ string currency = 2;
668
+ }
669
+ message GetUserKycFinancialSnapshotResponse {
670
+ int32 user_id = 1;
671
+ string currency = 2;
672
+ int32 currency_scale = 3;
673
+ int64 completed_deposit_amount_minor = 4;
674
+ int32 completed_deposit_count = 5;
675
+ int64 completed_withdrawal_amount_minor = 6;
676
+ int32 completed_withdrawal_count = 7;
677
+ }
664
678
  //Segmentation
665
679
  message SegmentedUserRequest {
666
680
  optional float deposit_amount_min = 1;
@@ -301,6 +301,28 @@ function deserialize_payment_GetUserDepositCountRequest(buffer_arg) {
301
301
  return payment_pb.GetUserDepositCountRequest.deserializeBinary(new Uint8Array(buffer_arg));
302
302
  }
303
303
 
304
+ function serialize_payment_GetUserKycFinancialSnapshotRequest(arg) {
305
+ if (!(arg instanceof payment_pb.GetUserKycFinancialSnapshotRequest)) {
306
+ throw new Error('Expected argument of type payment.GetUserKycFinancialSnapshotRequest');
307
+ }
308
+ return Buffer.from(arg.serializeBinary());
309
+ }
310
+
311
+ function deserialize_payment_GetUserKycFinancialSnapshotRequest(buffer_arg) {
312
+ return payment_pb.GetUserKycFinancialSnapshotRequest.deserializeBinary(new Uint8Array(buffer_arg));
313
+ }
314
+
315
+ function serialize_payment_GetUserKycFinancialSnapshotResponse(arg) {
316
+ if (!(arg instanceof payment_pb.GetUserKycFinancialSnapshotResponse)) {
317
+ throw new Error('Expected argument of type payment.GetUserKycFinancialSnapshotResponse');
318
+ }
319
+ return Buffer.from(arg.serializeBinary());
320
+ }
321
+
322
+ function deserialize_payment_GetUserKycFinancialSnapshotResponse(buffer_arg) {
323
+ return payment_pb.GetUserKycFinancialSnapshotResponse.deserializeBinary(new Uint8Array(buffer_arg));
324
+ }
325
+
304
326
  function serialize_payment_GetUserPaymentsInfoRequest(arg) {
305
327
  if (!(arg instanceof payment_pb.GetUserPaymentsInfoRequest)) {
306
328
  throw new Error('Expected argument of type payment.GetUserPaymentsInfoRequest');
@@ -1168,6 +1190,17 @@ userPaymentsInfo: {
1168
1190
  responseSerialize: serialize_payment_GetWithdrawalWagerSnapshotResponse,
1169
1191
  responseDeserialize: deserialize_payment_GetWithdrawalWagerSnapshotResponse,
1170
1192
  },
1193
+ getUserKycFinancialSnapshot: {
1194
+ path: '/payment.Payment/getUserKycFinancialSnapshot',
1195
+ requestStream: false,
1196
+ responseStream: false,
1197
+ requestType: payment_pb.GetUserKycFinancialSnapshotRequest,
1198
+ responseType: payment_pb.GetUserKycFinancialSnapshotResponse,
1199
+ requestSerialize: serialize_payment_GetUserKycFinancialSnapshotRequest,
1200
+ requestDeserialize: deserialize_payment_GetUserKycFinancialSnapshotRequest,
1201
+ responseSerialize: serialize_payment_GetUserKycFinancialSnapshotResponse,
1202
+ responseDeserialize: deserialize_payment_GetUserKycFinancialSnapshotResponse,
1203
+ },
1171
1204
  // Segmentation
1172
1205
  getSegmentedUsers: {
1173
1206
  path: '/payment.Payment/getSegmentedUsers',
@@ -54,6 +54,8 @@ goog.exportSymbol('proto.payment.GetOperationDetailsRequest', null, global);
54
54
  goog.exportSymbol('proto.payment.GetProviderRequest', null, global);
55
55
  goog.exportSymbol('proto.payment.GetProviderTranslationRequest', null, global);
56
56
  goog.exportSymbol('proto.payment.GetUserDepositCountRequest', null, global);
57
+ goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotRequest', null, global);
58
+ goog.exportSymbol('proto.payment.GetUserKycFinancialSnapshotResponse', null, global);
57
59
  goog.exportSymbol('proto.payment.GetUserPaymentsInfoRequest', null, global);
58
60
  goog.exportSymbol('proto.payment.GetWithdrawalRequest', null, global);
59
61
  goog.exportSymbol('proto.payment.GetWithdrawalWagerSnapshotRequest', null, global);
@@ -1620,6 +1622,48 @@ if (goog.DEBUG && !COMPILED) {
1620
1622
  */
1621
1623
  proto.payment.GetWithdrawalWagerSnapshotResponse.displayName = 'proto.payment.GetWithdrawalWagerSnapshotResponse';
1622
1624
  }
1625
+ /**
1626
+ * Generated by JsPbCodeGenerator.
1627
+ * @param {Array=} opt_data Optional initial data array, typically from a
1628
+ * server response, or constructed directly in Javascript. The array is used
1629
+ * in place and becomes part of the constructed object. It is not cloned.
1630
+ * If no data is provided, the constructed object will be empty, but still
1631
+ * valid.
1632
+ * @extends {jspb.Message}
1633
+ * @constructor
1634
+ */
1635
+ proto.payment.GetUserKycFinancialSnapshotRequest = function(opt_data) {
1636
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1637
+ };
1638
+ goog.inherits(proto.payment.GetUserKycFinancialSnapshotRequest, jspb.Message);
1639
+ if (goog.DEBUG && !COMPILED) {
1640
+ /**
1641
+ * @public
1642
+ * @override
1643
+ */
1644
+ proto.payment.GetUserKycFinancialSnapshotRequest.displayName = 'proto.payment.GetUserKycFinancialSnapshotRequest';
1645
+ }
1646
+ /**
1647
+ * Generated by JsPbCodeGenerator.
1648
+ * @param {Array=} opt_data Optional initial data array, typically from a
1649
+ * server response, or constructed directly in Javascript. The array is used
1650
+ * in place and becomes part of the constructed object. It is not cloned.
1651
+ * If no data is provided, the constructed object will be empty, but still
1652
+ * valid.
1653
+ * @extends {jspb.Message}
1654
+ * @constructor
1655
+ */
1656
+ proto.payment.GetUserKycFinancialSnapshotResponse = function(opt_data) {
1657
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
1658
+ };
1659
+ goog.inherits(proto.payment.GetUserKycFinancialSnapshotResponse, jspb.Message);
1660
+ if (goog.DEBUG && !COMPILED) {
1661
+ /**
1662
+ * @public
1663
+ * @override
1664
+ */
1665
+ proto.payment.GetUserKycFinancialSnapshotResponse.displayName = 'proto.payment.GetUserKycFinancialSnapshotResponse';
1666
+ }
1623
1667
  /**
1624
1668
  * Generated by JsPbCodeGenerator.
1625
1669
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -28482,6 +28526,476 @@ proto.payment.GetWithdrawalWagerSnapshotResponse.prototype.clearActiveLockedBuck
28482
28526
 
28483
28527
 
28484
28528
 
28529
+
28530
+
28531
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28532
+ /**
28533
+ * Creates an object representation of this proto.
28534
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28535
+ * Optional fields that are not set will be set to undefined.
28536
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28537
+ * For the list of reserved names please see:
28538
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28539
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28540
+ * JSPB instance for transitional soy proto support:
28541
+ * http://goto/soy-param-migration
28542
+ * @return {!Object}
28543
+ */
28544
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.toObject = function(opt_includeInstance) {
28545
+ return proto.payment.GetUserKycFinancialSnapshotRequest.toObject(opt_includeInstance, this);
28546
+ };
28547
+
28548
+
28549
+ /**
28550
+ * Static version of the {@see toObject} method.
28551
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28552
+ * the JSPB instance for transitional soy proto support:
28553
+ * http://goto/soy-param-migration
28554
+ * @param {!proto.payment.GetUserKycFinancialSnapshotRequest} msg The msg instance to transform.
28555
+ * @return {!Object}
28556
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28557
+ */
28558
+ proto.payment.GetUserKycFinancialSnapshotRequest.toObject = function(includeInstance, msg) {
28559
+ var f, obj = {
28560
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
28561
+ currency: jspb.Message.getFieldWithDefault(msg, 2, "")
28562
+ };
28563
+
28564
+ if (includeInstance) {
28565
+ obj.$jspbMessageInstance = msg;
28566
+ }
28567
+ return obj;
28568
+ };
28569
+ }
28570
+
28571
+
28572
+ /**
28573
+ * Deserializes binary data (in protobuf wire format).
28574
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28575
+ * @return {!proto.payment.GetUserKycFinancialSnapshotRequest}
28576
+ */
28577
+ proto.payment.GetUserKycFinancialSnapshotRequest.deserializeBinary = function(bytes) {
28578
+ var reader = new jspb.BinaryReader(bytes);
28579
+ var msg = new proto.payment.GetUserKycFinancialSnapshotRequest;
28580
+ return proto.payment.GetUserKycFinancialSnapshotRequest.deserializeBinaryFromReader(msg, reader);
28581
+ };
28582
+
28583
+
28584
+ /**
28585
+ * Deserializes binary data (in protobuf wire format) from the
28586
+ * given reader into the given message object.
28587
+ * @param {!proto.payment.GetUserKycFinancialSnapshotRequest} msg The message object to deserialize into.
28588
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28589
+ * @return {!proto.payment.GetUserKycFinancialSnapshotRequest}
28590
+ */
28591
+ proto.payment.GetUserKycFinancialSnapshotRequest.deserializeBinaryFromReader = function(msg, reader) {
28592
+ while (reader.nextField()) {
28593
+ if (reader.isEndGroup()) {
28594
+ break;
28595
+ }
28596
+ var field = reader.getFieldNumber();
28597
+ switch (field) {
28598
+ case 1:
28599
+ var value = /** @type {number} */ (reader.readInt32());
28600
+ msg.setUserId(value);
28601
+ break;
28602
+ case 2:
28603
+ var value = /** @type {string} */ (reader.readString());
28604
+ msg.setCurrency(value);
28605
+ break;
28606
+ default:
28607
+ reader.skipField();
28608
+ break;
28609
+ }
28610
+ }
28611
+ return msg;
28612
+ };
28613
+
28614
+
28615
+ /**
28616
+ * Serializes the message to binary data (in protobuf wire format).
28617
+ * @return {!Uint8Array}
28618
+ */
28619
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.serializeBinary = function() {
28620
+ var writer = new jspb.BinaryWriter();
28621
+ proto.payment.GetUserKycFinancialSnapshotRequest.serializeBinaryToWriter(this, writer);
28622
+ return writer.getResultBuffer();
28623
+ };
28624
+
28625
+
28626
+ /**
28627
+ * Serializes the given message to binary data (in protobuf wire
28628
+ * format), writing to the given BinaryWriter.
28629
+ * @param {!proto.payment.GetUserKycFinancialSnapshotRequest} message
28630
+ * @param {!jspb.BinaryWriter} writer
28631
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28632
+ */
28633
+ proto.payment.GetUserKycFinancialSnapshotRequest.serializeBinaryToWriter = function(message, writer) {
28634
+ var f = undefined;
28635
+ f = message.getUserId();
28636
+ if (f !== 0) {
28637
+ writer.writeInt32(
28638
+ 1,
28639
+ f
28640
+ );
28641
+ }
28642
+ f = message.getCurrency();
28643
+ if (f.length > 0) {
28644
+ writer.writeString(
28645
+ 2,
28646
+ f
28647
+ );
28648
+ }
28649
+ };
28650
+
28651
+
28652
+ /**
28653
+ * optional int32 user_id = 1;
28654
+ * @return {number}
28655
+ */
28656
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.getUserId = function() {
28657
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28658
+ };
28659
+
28660
+
28661
+ /**
28662
+ * @param {number} value
28663
+ * @return {!proto.payment.GetUserKycFinancialSnapshotRequest} returns this
28664
+ */
28665
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.setUserId = function(value) {
28666
+ return jspb.Message.setProto3IntField(this, 1, value);
28667
+ };
28668
+
28669
+
28670
+ /**
28671
+ * optional string currency = 2;
28672
+ * @return {string}
28673
+ */
28674
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.getCurrency = function() {
28675
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28676
+ };
28677
+
28678
+
28679
+ /**
28680
+ * @param {string} value
28681
+ * @return {!proto.payment.GetUserKycFinancialSnapshotRequest} returns this
28682
+ */
28683
+ proto.payment.GetUserKycFinancialSnapshotRequest.prototype.setCurrency = function(value) {
28684
+ return jspb.Message.setProto3StringField(this, 2, value);
28685
+ };
28686
+
28687
+
28688
+
28689
+
28690
+
28691
+ if (jspb.Message.GENERATE_TO_OBJECT) {
28692
+ /**
28693
+ * Creates an object representation of this proto.
28694
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
28695
+ * Optional fields that are not set will be set to undefined.
28696
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
28697
+ * For the list of reserved names please see:
28698
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
28699
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
28700
+ * JSPB instance for transitional soy proto support:
28701
+ * http://goto/soy-param-migration
28702
+ * @return {!Object}
28703
+ */
28704
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.toObject = function(opt_includeInstance) {
28705
+ return proto.payment.GetUserKycFinancialSnapshotResponse.toObject(opt_includeInstance, this);
28706
+ };
28707
+
28708
+
28709
+ /**
28710
+ * Static version of the {@see toObject} method.
28711
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
28712
+ * the JSPB instance for transitional soy proto support:
28713
+ * http://goto/soy-param-migration
28714
+ * @param {!proto.payment.GetUserKycFinancialSnapshotResponse} msg The msg instance to transform.
28715
+ * @return {!Object}
28716
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28717
+ */
28718
+ proto.payment.GetUserKycFinancialSnapshotResponse.toObject = function(includeInstance, msg) {
28719
+ var f, obj = {
28720
+ userId: jspb.Message.getFieldWithDefault(msg, 1, 0),
28721
+ currency: jspb.Message.getFieldWithDefault(msg, 2, ""),
28722
+ currencyScale: jspb.Message.getFieldWithDefault(msg, 3, 0),
28723
+ completedDepositAmountMinor: jspb.Message.getFieldWithDefault(msg, 4, 0),
28724
+ completedDepositCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
28725
+ completedWithdrawalAmountMinor: jspb.Message.getFieldWithDefault(msg, 6, 0),
28726
+ completedWithdrawalCount: jspb.Message.getFieldWithDefault(msg, 7, 0)
28727
+ };
28728
+
28729
+ if (includeInstance) {
28730
+ obj.$jspbMessageInstance = msg;
28731
+ }
28732
+ return obj;
28733
+ };
28734
+ }
28735
+
28736
+
28737
+ /**
28738
+ * Deserializes binary data (in protobuf wire format).
28739
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
28740
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse}
28741
+ */
28742
+ proto.payment.GetUserKycFinancialSnapshotResponse.deserializeBinary = function(bytes) {
28743
+ var reader = new jspb.BinaryReader(bytes);
28744
+ var msg = new proto.payment.GetUserKycFinancialSnapshotResponse;
28745
+ return proto.payment.GetUserKycFinancialSnapshotResponse.deserializeBinaryFromReader(msg, reader);
28746
+ };
28747
+
28748
+
28749
+ /**
28750
+ * Deserializes binary data (in protobuf wire format) from the
28751
+ * given reader into the given message object.
28752
+ * @param {!proto.payment.GetUserKycFinancialSnapshotResponse} msg The message object to deserialize into.
28753
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
28754
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse}
28755
+ */
28756
+ proto.payment.GetUserKycFinancialSnapshotResponse.deserializeBinaryFromReader = function(msg, reader) {
28757
+ while (reader.nextField()) {
28758
+ if (reader.isEndGroup()) {
28759
+ break;
28760
+ }
28761
+ var field = reader.getFieldNumber();
28762
+ switch (field) {
28763
+ case 1:
28764
+ var value = /** @type {number} */ (reader.readInt32());
28765
+ msg.setUserId(value);
28766
+ break;
28767
+ case 2:
28768
+ var value = /** @type {string} */ (reader.readString());
28769
+ msg.setCurrency(value);
28770
+ break;
28771
+ case 3:
28772
+ var value = /** @type {number} */ (reader.readInt32());
28773
+ msg.setCurrencyScale(value);
28774
+ break;
28775
+ case 4:
28776
+ var value = /** @type {number} */ (reader.readInt64());
28777
+ msg.setCompletedDepositAmountMinor(value);
28778
+ break;
28779
+ case 5:
28780
+ var value = /** @type {number} */ (reader.readInt32());
28781
+ msg.setCompletedDepositCount(value);
28782
+ break;
28783
+ case 6:
28784
+ var value = /** @type {number} */ (reader.readInt64());
28785
+ msg.setCompletedWithdrawalAmountMinor(value);
28786
+ break;
28787
+ case 7:
28788
+ var value = /** @type {number} */ (reader.readInt32());
28789
+ msg.setCompletedWithdrawalCount(value);
28790
+ break;
28791
+ default:
28792
+ reader.skipField();
28793
+ break;
28794
+ }
28795
+ }
28796
+ return msg;
28797
+ };
28798
+
28799
+
28800
+ /**
28801
+ * Serializes the message to binary data (in protobuf wire format).
28802
+ * @return {!Uint8Array}
28803
+ */
28804
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.serializeBinary = function() {
28805
+ var writer = new jspb.BinaryWriter();
28806
+ proto.payment.GetUserKycFinancialSnapshotResponse.serializeBinaryToWriter(this, writer);
28807
+ return writer.getResultBuffer();
28808
+ };
28809
+
28810
+
28811
+ /**
28812
+ * Serializes the given message to binary data (in protobuf wire
28813
+ * format), writing to the given BinaryWriter.
28814
+ * @param {!proto.payment.GetUserKycFinancialSnapshotResponse} message
28815
+ * @param {!jspb.BinaryWriter} writer
28816
+ * @suppress {unusedLocalVariables} f is only used for nested messages
28817
+ */
28818
+ proto.payment.GetUserKycFinancialSnapshotResponse.serializeBinaryToWriter = function(message, writer) {
28819
+ var f = undefined;
28820
+ f = message.getUserId();
28821
+ if (f !== 0) {
28822
+ writer.writeInt32(
28823
+ 1,
28824
+ f
28825
+ );
28826
+ }
28827
+ f = message.getCurrency();
28828
+ if (f.length > 0) {
28829
+ writer.writeString(
28830
+ 2,
28831
+ f
28832
+ );
28833
+ }
28834
+ f = message.getCurrencyScale();
28835
+ if (f !== 0) {
28836
+ writer.writeInt32(
28837
+ 3,
28838
+ f
28839
+ );
28840
+ }
28841
+ f = message.getCompletedDepositAmountMinor();
28842
+ if (f !== 0) {
28843
+ writer.writeInt64(
28844
+ 4,
28845
+ f
28846
+ );
28847
+ }
28848
+ f = message.getCompletedDepositCount();
28849
+ if (f !== 0) {
28850
+ writer.writeInt32(
28851
+ 5,
28852
+ f
28853
+ );
28854
+ }
28855
+ f = message.getCompletedWithdrawalAmountMinor();
28856
+ if (f !== 0) {
28857
+ writer.writeInt64(
28858
+ 6,
28859
+ f
28860
+ );
28861
+ }
28862
+ f = message.getCompletedWithdrawalCount();
28863
+ if (f !== 0) {
28864
+ writer.writeInt32(
28865
+ 7,
28866
+ f
28867
+ );
28868
+ }
28869
+ };
28870
+
28871
+
28872
+ /**
28873
+ * optional int32 user_id = 1;
28874
+ * @return {number}
28875
+ */
28876
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getUserId = function() {
28877
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
28878
+ };
28879
+
28880
+
28881
+ /**
28882
+ * @param {number} value
28883
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28884
+ */
28885
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setUserId = function(value) {
28886
+ return jspb.Message.setProto3IntField(this, 1, value);
28887
+ };
28888
+
28889
+
28890
+ /**
28891
+ * optional string currency = 2;
28892
+ * @return {string}
28893
+ */
28894
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCurrency = function() {
28895
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
28896
+ };
28897
+
28898
+
28899
+ /**
28900
+ * @param {string} value
28901
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28902
+ */
28903
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCurrency = function(value) {
28904
+ return jspb.Message.setProto3StringField(this, 2, value);
28905
+ };
28906
+
28907
+
28908
+ /**
28909
+ * optional int32 currency_scale = 3;
28910
+ * @return {number}
28911
+ */
28912
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCurrencyScale = function() {
28913
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
28914
+ };
28915
+
28916
+
28917
+ /**
28918
+ * @param {number} value
28919
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28920
+ */
28921
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCurrencyScale = function(value) {
28922
+ return jspb.Message.setProto3IntField(this, 3, value);
28923
+ };
28924
+
28925
+
28926
+ /**
28927
+ * optional int64 completed_deposit_amount_minor = 4;
28928
+ * @return {number}
28929
+ */
28930
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCompletedDepositAmountMinor = function() {
28931
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 4, 0));
28932
+ };
28933
+
28934
+
28935
+ /**
28936
+ * @param {number} value
28937
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28938
+ */
28939
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCompletedDepositAmountMinor = function(value) {
28940
+ return jspb.Message.setProto3IntField(this, 4, value);
28941
+ };
28942
+
28943
+
28944
+ /**
28945
+ * optional int32 completed_deposit_count = 5;
28946
+ * @return {number}
28947
+ */
28948
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCompletedDepositCount = function() {
28949
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
28950
+ };
28951
+
28952
+
28953
+ /**
28954
+ * @param {number} value
28955
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28956
+ */
28957
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCompletedDepositCount = function(value) {
28958
+ return jspb.Message.setProto3IntField(this, 5, value);
28959
+ };
28960
+
28961
+
28962
+ /**
28963
+ * optional int64 completed_withdrawal_amount_minor = 6;
28964
+ * @return {number}
28965
+ */
28966
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCompletedWithdrawalAmountMinor = function() {
28967
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
28968
+ };
28969
+
28970
+
28971
+ /**
28972
+ * @param {number} value
28973
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28974
+ */
28975
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCompletedWithdrawalAmountMinor = function(value) {
28976
+ return jspb.Message.setProto3IntField(this, 6, value);
28977
+ };
28978
+
28979
+
28980
+ /**
28981
+ * optional int32 completed_withdrawal_count = 7;
28982
+ * @return {number}
28983
+ */
28984
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.getCompletedWithdrawalCount = function() {
28985
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 7, 0));
28986
+ };
28987
+
28988
+
28989
+ /**
28990
+ * @param {number} value
28991
+ * @return {!proto.payment.GetUserKycFinancialSnapshotResponse} returns this
28992
+ */
28993
+ proto.payment.GetUserKycFinancialSnapshotResponse.prototype.setCompletedWithdrawalCount = function(value) {
28994
+ return jspb.Message.setProto3IntField(this, 7, value);
28995
+ };
28996
+
28997
+
28998
+
28485
28999
  /**
28486
29000
  * List of repeated fields within this message type.
28487
29001
  * @private {!Array<number>}