protobuf-platform 1.2.521 → 1.2.524

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
@@ -466,6 +466,10 @@ message DepositEligibleUserBonusItem {
466
466
  repeated DepositEligibleUserBonusRewardItem rewards = 10;
467
467
  optional string mobile_image = 11; // file name / relative path
468
468
  optional string mobile_image_cdn = 12; // absolute CDN URL
469
+ optional int32 wager_x = 13;
470
+ optional int32 payout_x = 14;
471
+ repeated ActivationRule activation_rules = 15;
472
+ repeated BetsRange bets_range = 16;
469
473
  }
470
474
  message GetActiveWageringUserBonusesRequest {
471
475
  int32 user_id = 1;
package/bonus/bonus_pb.js CHANGED
@@ -19309,7 +19309,7 @@ proto.bonus.DepositEligibleUserBonusRewardItem.prototype.hasConfig = function()
19309
19309
  * @private {!Array<number>}
19310
19310
  * @const
19311
19311
  */
19312
- proto.bonus.DepositEligibleUserBonusItem.repeatedFields_ = [10];
19312
+ proto.bonus.DepositEligibleUserBonusItem.repeatedFields_ = [10,15,16];
19313
19313
 
19314
19314
 
19315
19315
 
@@ -19354,7 +19354,13 @@ proto.bonus.DepositEligibleUserBonusItem.toObject = function(includeInstance, ms
19354
19354
  rewardsList: jspb.Message.toObjectList(msg.getRewardsList(),
19355
19355
  proto.bonus.DepositEligibleUserBonusRewardItem.toObject, includeInstance),
19356
19356
  mobileImage: jspb.Message.getFieldWithDefault(msg, 11, ""),
19357
- mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 12, "")
19357
+ mobileImageCdn: jspb.Message.getFieldWithDefault(msg, 12, ""),
19358
+ wagerX: jspb.Message.getFieldWithDefault(msg, 13, 0),
19359
+ payoutX: jspb.Message.getFieldWithDefault(msg, 14, 0),
19360
+ activationRulesList: jspb.Message.toObjectList(msg.getActivationRulesList(),
19361
+ proto.bonus.ActivationRule.toObject, includeInstance),
19362
+ betsRangeList: jspb.Message.toObjectList(msg.getBetsRangeList(),
19363
+ proto.bonus.BetsRange.toObject, includeInstance)
19358
19364
  };
19359
19365
 
19360
19366
  if (includeInstance) {
@@ -19440,6 +19446,24 @@ proto.bonus.DepositEligibleUserBonusItem.deserializeBinaryFromReader = function(
19440
19446
  var value = /** @type {string} */ (reader.readString());
19441
19447
  msg.setMobileImageCdn(value);
19442
19448
  break;
19449
+ case 13:
19450
+ var value = /** @type {number} */ (reader.readInt32());
19451
+ msg.setWagerX(value);
19452
+ break;
19453
+ case 14:
19454
+ var value = /** @type {number} */ (reader.readInt32());
19455
+ msg.setPayoutX(value);
19456
+ break;
19457
+ case 15:
19458
+ var value = new proto.bonus.ActivationRule;
19459
+ reader.readMessage(value,proto.bonus.ActivationRule.deserializeBinaryFromReader);
19460
+ msg.addActivationRules(value);
19461
+ break;
19462
+ case 16:
19463
+ var value = new proto.bonus.BetsRange;
19464
+ reader.readMessage(value,proto.bonus.BetsRange.deserializeBinaryFromReader);
19465
+ msg.addBetsRange(value);
19466
+ break;
19443
19467
  default:
19444
19468
  reader.skipField();
19445
19469
  break;
@@ -19554,6 +19578,36 @@ proto.bonus.DepositEligibleUserBonusItem.serializeBinaryToWriter = function(mess
19554
19578
  f
19555
19579
  );
19556
19580
  }
19581
+ f = /** @type {number} */ (jspb.Message.getField(message, 13));
19582
+ if (f != null) {
19583
+ writer.writeInt32(
19584
+ 13,
19585
+ f
19586
+ );
19587
+ }
19588
+ f = /** @type {number} */ (jspb.Message.getField(message, 14));
19589
+ if (f != null) {
19590
+ writer.writeInt32(
19591
+ 14,
19592
+ f
19593
+ );
19594
+ }
19595
+ f = message.getActivationRulesList();
19596
+ if (f.length > 0) {
19597
+ writer.writeRepeatedMessage(
19598
+ 15,
19599
+ f,
19600
+ proto.bonus.ActivationRule.serializeBinaryToWriter
19601
+ );
19602
+ }
19603
+ f = message.getBetsRangeList();
19604
+ if (f.length > 0) {
19605
+ writer.writeRepeatedMessage(
19606
+ 16,
19607
+ f,
19608
+ proto.bonus.BetsRange.serializeBinaryToWriter
19609
+ );
19610
+ }
19557
19611
  };
19558
19612
 
19559
19613
 
@@ -19973,6 +20027,154 @@ proto.bonus.DepositEligibleUserBonusItem.prototype.hasMobileImageCdn = function(
19973
20027
  };
19974
20028
 
19975
20029
 
20030
+ /**
20031
+ * optional int32 wager_x = 13;
20032
+ * @return {number}
20033
+ */
20034
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getWagerX = function() {
20035
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 13, 0));
20036
+ };
20037
+
20038
+
20039
+ /**
20040
+ * @param {number} value
20041
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20042
+ */
20043
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setWagerX = function(value) {
20044
+ return jspb.Message.setField(this, 13, value);
20045
+ };
20046
+
20047
+
20048
+ /**
20049
+ * Clears the field making it undefined.
20050
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20051
+ */
20052
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearWagerX = function() {
20053
+ return jspb.Message.setField(this, 13, undefined);
20054
+ };
20055
+
20056
+
20057
+ /**
20058
+ * Returns whether this field is set.
20059
+ * @return {boolean}
20060
+ */
20061
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasWagerX = function() {
20062
+ return jspb.Message.getField(this, 13) != null;
20063
+ };
20064
+
20065
+
20066
+ /**
20067
+ * optional int32 payout_x = 14;
20068
+ * @return {number}
20069
+ */
20070
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getPayoutX = function() {
20071
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 14, 0));
20072
+ };
20073
+
20074
+
20075
+ /**
20076
+ * @param {number} value
20077
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20078
+ */
20079
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setPayoutX = function(value) {
20080
+ return jspb.Message.setField(this, 14, value);
20081
+ };
20082
+
20083
+
20084
+ /**
20085
+ * Clears the field making it undefined.
20086
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20087
+ */
20088
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearPayoutX = function() {
20089
+ return jspb.Message.setField(this, 14, undefined);
20090
+ };
20091
+
20092
+
20093
+ /**
20094
+ * Returns whether this field is set.
20095
+ * @return {boolean}
20096
+ */
20097
+ proto.bonus.DepositEligibleUserBonusItem.prototype.hasPayoutX = function() {
20098
+ return jspb.Message.getField(this, 14) != null;
20099
+ };
20100
+
20101
+
20102
+ /**
20103
+ * repeated ActivationRule activation_rules = 15;
20104
+ * @return {!Array<!proto.bonus.ActivationRule>}
20105
+ */
20106
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getActivationRulesList = function() {
20107
+ return /** @type{!Array<!proto.bonus.ActivationRule>} */ (
20108
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.ActivationRule, 15));
20109
+ };
20110
+
20111
+
20112
+ /**
20113
+ * @param {!Array<!proto.bonus.ActivationRule>} value
20114
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20115
+ */
20116
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setActivationRulesList = function(value) {
20117
+ return jspb.Message.setRepeatedWrapperField(this, 15, value);
20118
+ };
20119
+
20120
+
20121
+ /**
20122
+ * @param {!proto.bonus.ActivationRule=} opt_value
20123
+ * @param {number=} opt_index
20124
+ * @return {!proto.bonus.ActivationRule}
20125
+ */
20126
+ proto.bonus.DepositEligibleUserBonusItem.prototype.addActivationRules = function(opt_value, opt_index) {
20127
+ return jspb.Message.addToRepeatedWrapperField(this, 15, opt_value, proto.bonus.ActivationRule, opt_index);
20128
+ };
20129
+
20130
+
20131
+ /**
20132
+ * Clears the list making it empty but non-null.
20133
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20134
+ */
20135
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearActivationRulesList = function() {
20136
+ return this.setActivationRulesList([]);
20137
+ };
20138
+
20139
+
20140
+ /**
20141
+ * repeated BetsRange bets_range = 16;
20142
+ * @return {!Array<!proto.bonus.BetsRange>}
20143
+ */
20144
+ proto.bonus.DepositEligibleUserBonusItem.prototype.getBetsRangeList = function() {
20145
+ return /** @type{!Array<!proto.bonus.BetsRange>} */ (
20146
+ jspb.Message.getRepeatedWrapperField(this, proto.bonus.BetsRange, 16));
20147
+ };
20148
+
20149
+
20150
+ /**
20151
+ * @param {!Array<!proto.bonus.BetsRange>} value
20152
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20153
+ */
20154
+ proto.bonus.DepositEligibleUserBonusItem.prototype.setBetsRangeList = function(value) {
20155
+ return jspb.Message.setRepeatedWrapperField(this, 16, value);
20156
+ };
20157
+
20158
+
20159
+ /**
20160
+ * @param {!proto.bonus.BetsRange=} opt_value
20161
+ * @param {number=} opt_index
20162
+ * @return {!proto.bonus.BetsRange}
20163
+ */
20164
+ proto.bonus.DepositEligibleUserBonusItem.prototype.addBetsRange = function(opt_value, opt_index) {
20165
+ return jspb.Message.addToRepeatedWrapperField(this, 16, opt_value, proto.bonus.BetsRange, opt_index);
20166
+ };
20167
+
20168
+
20169
+ /**
20170
+ * Clears the list making it empty but non-null.
20171
+ * @return {!proto.bonus.DepositEligibleUserBonusItem} returns this
20172
+ */
20173
+ proto.bonus.DepositEligibleUserBonusItem.prototype.clearBetsRangeList = function() {
20174
+ return this.setBetsRangeList([]);
20175
+ };
20176
+
20177
+
19976
20178
 
19977
20179
 
19978
20180
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "protobuf-platform",
3
- "version": "1.2.521",
3
+ "version": "1.2.524",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -72,6 +72,7 @@ service Payment {
72
72
  rpc createCompensation(CompensationRequest) returns (FinancialOperationResponse);
73
73
  rpc readListCompensations(PaginationRequest) returns (CompensationItemsResponse);
74
74
  rpc createConfiscation(ConfiscationRequest) returns (FinancialOperationResponse);
75
+ rpc readListConfiscations(PaginationRequest) returns (ConfiscationItemsResponse);
75
76
  }
76
77
  //Technical
77
78
  message PingRequest { string ping = 1; }
@@ -86,6 +87,7 @@ message PaginationRequest {
86
87
  optional string order = 3;
87
88
  optional PaymentSearchRequest payment_search_params = 4;
88
89
  optional CompensationSearchRequest compensation_search_params = 5;
90
+ optional ConfiscationSearchRequest confiscation_search_params = 6;
89
91
  }
90
92
  message PaymentSearchRequest {
91
93
  optional int32 deposit_id = 1;
@@ -961,6 +963,7 @@ message CompensationItemsResponse {
961
963
  optional int32 total_pages = 2;
962
964
  optional int32 total_items = 3;
963
965
  }
966
+ // confiscation_type values: fund_confiscation, other_debit, balance_transfer_debit
964
967
  message ConfiscationRequest {
965
968
  int32 user_id = 1;
966
969
  int64 amount_minor = 2;
@@ -970,6 +973,37 @@ message ConfiscationRequest {
970
973
  string transaction_code = 6;
971
974
  string internal_comment = 7;
972
975
  string amount = 8;
976
+ string confiscation_type = 9;
977
+ }
978
+ message ConfiscationSearchRequest {
979
+ optional int32 operation_id = 1;
980
+ repeated int32 user_ids = 2;
981
+ repeated string confiscation_types = 3;
982
+ optional string transaction_code = 4;
983
+ repeated string operation_status_codes = 5;
984
+ optional string created_from = 6;
985
+ optional string created_to = 7;
986
+ repeated string currency = 8;
987
+ }
988
+ message ConfiscationItem {
989
+ int32 operation_id = 1;
990
+ string operation_public_id = 2;
991
+ int32 user_id = 3;
992
+ string confiscation_type = 4;
993
+ string transaction_code = 5;
994
+ int64 amount_minor = 6;
995
+ string currency = 7;
996
+ int32 currency_scale = 8;
997
+ string internal_comment = 9;
998
+ int32 operator_id = 10;
999
+ string status_code = 11;
1000
+ string created_at = 12;
1001
+ optional string completed_at = 13;
1002
+ }
1003
+ message ConfiscationItemsResponse {
1004
+ repeated ConfiscationItem items = 1;
1005
+ optional int32 total_pages = 2;
1006
+ optional int32 total_items = 3;
973
1007
  }
974
1008
  message FinancialOperationResponse {
975
1009
  int32 operation_id = 1;
@@ -114,6 +114,17 @@ function deserialize_payment_CompensationRequest(buffer_arg) {
114
114
  return payment_pb.CompensationRequest.deserializeBinary(new Uint8Array(buffer_arg));
115
115
  }
116
116
 
117
+ function serialize_payment_ConfiscationItemsResponse(arg) {
118
+ if (!(arg instanceof payment_pb.ConfiscationItemsResponse)) {
119
+ throw new Error('Expected argument of type payment.ConfiscationItemsResponse');
120
+ }
121
+ return Buffer.from(arg.serializeBinary());
122
+ }
123
+
124
+ function deserialize_payment_ConfiscationItemsResponse(buffer_arg) {
125
+ return payment_pb.ConfiscationItemsResponse.deserializeBinary(new Uint8Array(buffer_arg));
126
+ }
127
+
117
128
  function serialize_payment_ConfiscationRequest(arg) {
118
129
  if (!(arg instanceof payment_pb.ConfiscationRequest)) {
119
130
  throw new Error('Expected argument of type payment.ConfiscationRequest');
@@ -1514,6 +1525,17 @@ createManualDeposit: {
1514
1525
  responseSerialize: serialize_payment_FinancialOperationResponse,
1515
1526
  responseDeserialize: deserialize_payment_FinancialOperationResponse,
1516
1527
  },
1528
+ readListConfiscations: {
1529
+ path: '/payment.Payment/readListConfiscations',
1530
+ requestStream: false,
1531
+ responseStream: false,
1532
+ requestType: payment_pb.PaginationRequest,
1533
+ responseType: payment_pb.ConfiscationItemsResponse,
1534
+ requestSerialize: serialize_payment_PaginationRequest,
1535
+ requestDeserialize: deserialize_payment_PaginationRequest,
1536
+ responseSerialize: serialize_payment_ConfiscationItemsResponse,
1537
+ responseDeserialize: deserialize_payment_ConfiscationItemsResponse,
1538
+ },
1517
1539
  };
1518
1540
 
1519
1541
  exports.PaymentClient = grpc.makeGenericClientConstructor(PaymentService, 'Payment');