protobuf-platform 1.2.397 → 1.2.399

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/bonus/bonus.proto CHANGED
@@ -285,6 +285,7 @@ message UserBonusItem {
285
285
  optional string closed_at = 29;
286
286
  optional string history_type = 30;
287
287
  optional bool can_activate = 31;
288
+ optional int32 user_promocode_id = 32;
288
289
  }
289
290
  message FreeSpinItem {
290
291
  int32 game_id = 1;
@@ -326,6 +327,7 @@ message GetUserBonusRequest {
326
327
  optional string user_name = 9;
327
328
  optional string status = 10;
328
329
  optional bool is_mobile = 11;
330
+ optional string promo_code = 12;
329
331
  }
330
332
  message UserBonusItemsResponse {
331
333
  repeated UserBonusItem items = 1;
package/bonus/bonus_pb.js CHANGED
@@ -11010,7 +11010,8 @@ proto.bonus.UserBonusItem.toObject = function(includeInstance, msg) {
11010
11010
  rewardFreeBet: jspb.Message.getFloatingPointFieldWithDefault(msg, 28, 0.0),
11011
11011
  closedAt: jspb.Message.getFieldWithDefault(msg, 29, ""),
11012
11012
  historyType: jspb.Message.getFieldWithDefault(msg, 30, ""),
11013
- canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false)
11013
+ canActivate: jspb.Message.getBooleanFieldWithDefault(msg, 31, false),
11014
+ userPromocodeId: jspb.Message.getFieldWithDefault(msg, 32, 0)
11014
11015
  };
11015
11016
 
11016
11017
  if (includeInstance) {
@@ -11173,6 +11174,10 @@ proto.bonus.UserBonusItem.deserializeBinaryFromReader = function(msg, reader) {
11173
11174
  var value = /** @type {boolean} */ (reader.readBool());
11174
11175
  msg.setCanActivate(value);
11175
11176
  break;
11177
+ case 32:
11178
+ var value = /** @type {number} */ (reader.readInt32());
11179
+ msg.setUserPromocodeId(value);
11180
+ break;
11176
11181
  default:
11177
11182
  reader.skipField();
11178
11183
  break;
@@ -11421,6 +11426,13 @@ proto.bonus.UserBonusItem.serializeBinaryToWriter = function(message, writer) {
11421
11426
  f
11422
11427
  );
11423
11428
  }
11429
+ f = /** @type {number} */ (jspb.Message.getField(message, 32));
11430
+ if (f != null) {
11431
+ writer.writeInt32(
11432
+ 32,
11433
+ f
11434
+ );
11435
+ }
11424
11436
  };
11425
11437
 
11426
11438
 
@@ -12543,6 +12555,42 @@ proto.bonus.UserBonusItem.prototype.hasCanActivate = function() {
12543
12555
  };
12544
12556
 
12545
12557
 
12558
+ /**
12559
+ * optional int32 user_promocode_id = 32;
12560
+ * @return {number}
12561
+ */
12562
+ proto.bonus.UserBonusItem.prototype.getUserPromocodeId = function() {
12563
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 32, 0));
12564
+ };
12565
+
12566
+
12567
+ /**
12568
+ * @param {number} value
12569
+ * @return {!proto.bonus.UserBonusItem} returns this
12570
+ */
12571
+ proto.bonus.UserBonusItem.prototype.setUserPromocodeId = function(value) {
12572
+ return jspb.Message.setField(this, 32, value);
12573
+ };
12574
+
12575
+
12576
+ /**
12577
+ * Clears the field making it undefined.
12578
+ * @return {!proto.bonus.UserBonusItem} returns this
12579
+ */
12580
+ proto.bonus.UserBonusItem.prototype.clearUserPromocodeId = function() {
12581
+ return jspb.Message.setField(this, 32, undefined);
12582
+ };
12583
+
12584
+
12585
+ /**
12586
+ * Returns whether this field is set.
12587
+ * @return {boolean}
12588
+ */
12589
+ proto.bonus.UserBonusItem.prototype.hasUserPromocodeId = function() {
12590
+ return jspb.Message.getField(this, 32) != null;
12591
+ };
12592
+
12593
+
12546
12594
 
12547
12595
 
12548
12596
 
@@ -13865,7 +13913,8 @@ proto.bonus.GetUserBonusRequest.toObject = function(includeInstance, msg) {
13865
13913
  userPublicId: jspb.Message.getFieldWithDefault(msg, 8, ""),
13866
13914
  userName: jspb.Message.getFieldWithDefault(msg, 9, ""),
13867
13915
  status: jspb.Message.getFieldWithDefault(msg, 10, ""),
13868
- isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 11, false)
13916
+ isMobile: jspb.Message.getBooleanFieldWithDefault(msg, 11, false),
13917
+ promoCode: jspb.Message.getFieldWithDefault(msg, 12, "")
13869
13918
  };
13870
13919
 
13871
13920
  if (includeInstance) {
@@ -13946,6 +13995,10 @@ proto.bonus.GetUserBonusRequest.deserializeBinaryFromReader = function(msg, read
13946
13995
  var value = /** @type {boolean} */ (reader.readBool());
13947
13996
  msg.setIsMobile(value);
13948
13997
  break;
13998
+ case 12:
13999
+ var value = /** @type {string} */ (reader.readString());
14000
+ msg.setPromoCode(value);
14001
+ break;
13949
14002
  default:
13950
14003
  reader.skipField();
13951
14004
  break;
@@ -14052,6 +14105,13 @@ proto.bonus.GetUserBonusRequest.serializeBinaryToWriter = function(message, writ
14052
14105
  f
14053
14106
  );
14054
14107
  }
14108
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
14109
+ if (f != null) {
14110
+ writer.writeString(
14111
+ 12,
14112
+ f
14113
+ );
14114
+ }
14055
14115
  };
14056
14116
 
14057
14117
 
@@ -14433,6 +14493,42 @@ proto.bonus.GetUserBonusRequest.prototype.hasIsMobile = function() {
14433
14493
  };
14434
14494
 
14435
14495
 
14496
+ /**
14497
+ * optional string promo_code = 12;
14498
+ * @return {string}
14499
+ */
14500
+ proto.bonus.GetUserBonusRequest.prototype.getPromoCode = function() {
14501
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
14502
+ };
14503
+
14504
+
14505
+ /**
14506
+ * @param {string} value
14507
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
14508
+ */
14509
+ proto.bonus.GetUserBonusRequest.prototype.setPromoCode = function(value) {
14510
+ return jspb.Message.setField(this, 12, value);
14511
+ };
14512
+
14513
+
14514
+ /**
14515
+ * Clears the field making it undefined.
14516
+ * @return {!proto.bonus.GetUserBonusRequest} returns this
14517
+ */
14518
+ proto.bonus.GetUserBonusRequest.prototype.clearPromoCode = function() {
14519
+ return jspb.Message.setField(this, 12, undefined);
14520
+ };
14521
+
14522
+
14523
+ /**
14524
+ * Returns whether this field is set.
14525
+ * @return {boolean}
14526
+ */
14527
+ proto.bonus.GetUserBonusRequest.prototype.hasPromoCode = function() {
14528
+ return jspb.Message.getField(this, 12) != null;
14529
+ };
14530
+
14531
+
14436
14532
 
14437
14533
  /**
14438
14534
  * 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.397",
3
+ "version": "1.2.399",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -48,6 +48,7 @@ service Payment {
48
48
  rpc userPaymentHistory(GetUserPaymentsInfoRequest) returns (UserPaymentHistoryItemsResponse);
49
49
  rpc getUserDepositCount(GetUserDepositCountRequest) returns (UserDepositCountResponse);
50
50
  rpc getPaymentMethodsForUser(GetUserPaymentsInfoRequest) returns (UserPaymentMethodsResponse);
51
+ rpc checkFastDeposit(CheckFastDepositRequest) returns (CheckFastDepositResponse);
51
52
  //Segmentation
52
53
  rpc getSegmentedUsers(SegmentedUserRequest) returns (SegmentedUserResponse);
53
54
  //Currency source-of-truth
@@ -587,6 +588,15 @@ message UserPaymentMethodsResponse {
587
588
  optional int32 total_pages = 2;
588
589
  optional int32 total_items = 3;
589
590
  }
591
+ message CheckFastDepositRequest {
592
+ int32 user_id = 1;
593
+ optional string currency = 2;
594
+ optional string country = 3;
595
+ optional string currency_type = 4;
596
+ }
597
+ message CheckFastDepositResponse {
598
+ UserPaymentMethodItem method = 1;
599
+ }
590
600
  //Segmentation
591
601
  message SegmentedUserRequest {
592
602
  optional float deposit_amount_min = 1;
@@ -26,6 +26,28 @@ function deserialize_payment_AttemptWithdrawalRequest(buffer_arg) {
26
26
  return payment_pb.AttemptWithdrawalRequest.deserializeBinary(new Uint8Array(buffer_arg));
27
27
  }
28
28
 
29
+ function serialize_payment_CheckFastDepositRequest(arg) {
30
+ if (!(arg instanceof payment_pb.CheckFastDepositRequest)) {
31
+ throw new Error('Expected argument of type payment.CheckFastDepositRequest');
32
+ }
33
+ return Buffer.from(arg.serializeBinary());
34
+ }
35
+
36
+ function deserialize_payment_CheckFastDepositRequest(buffer_arg) {
37
+ return payment_pb.CheckFastDepositRequest.deserializeBinary(new Uint8Array(buffer_arg));
38
+ }
39
+
40
+ function serialize_payment_CheckFastDepositResponse(arg) {
41
+ if (!(arg instanceof payment_pb.CheckFastDepositResponse)) {
42
+ throw new Error('Expected argument of type payment.CheckFastDepositResponse');
43
+ }
44
+ return Buffer.from(arg.serializeBinary());
45
+ }
46
+
47
+ function deserialize_payment_CheckFastDepositResponse(buffer_arg) {
48
+ return payment_pb.CheckFastDepositResponse.deserializeBinary(new Uint8Array(buffer_arg));
49
+ }
50
+
29
51
  function serialize_payment_CurrenciesMetadataResponse(arg) {
30
52
  if (!(arg instanceof payment_pb.CurrenciesMetadataResponse)) {
31
53
  throw new Error('Expected argument of type payment.CurrenciesMetadataResponse');
@@ -1069,6 +1091,17 @@ userPaymentsInfo: {
1069
1091
  responseSerialize: serialize_payment_UserPaymentMethodsResponse,
1070
1092
  responseDeserialize: deserialize_payment_UserPaymentMethodsResponse,
1071
1093
  },
1094
+ checkFastDeposit: {
1095
+ path: '/payment.Payment/checkFastDeposit',
1096
+ requestStream: false,
1097
+ responseStream: false,
1098
+ requestType: payment_pb.CheckFastDepositRequest,
1099
+ responseType: payment_pb.CheckFastDepositResponse,
1100
+ requestSerialize: serialize_payment_CheckFastDepositRequest,
1101
+ requestDeserialize: deserialize_payment_CheckFastDepositRequest,
1102
+ responseSerialize: serialize_payment_CheckFastDepositResponse,
1103
+ responseDeserialize: deserialize_payment_CheckFastDepositResponse,
1104
+ },
1072
1105
  // Segmentation
1073
1106
  getSegmentedUsers: {
1074
1107
  path: '/payment.Payment/getSegmentedUsers',