protobuf-platform 1.2.579 → 1.2.580

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.579",
3
+ "version": "1.2.580",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -947,6 +947,9 @@ message ManualDepositRequest {
947
947
  optional int64 payment_method_id = 8;
948
948
  optional string external_payment_id = 9;
949
949
  optional string external_transaction_id = 10;
950
+ // bonus_id and user_bonus_id are mutually exclusive optional bonus references for manual deposit.
951
+ optional int32 user_bonus_id = 11;
952
+ optional int32 bonus_id = 12;
950
953
  }
951
954
  message DepositReconciliationRequest {
952
955
  int32 deposit_id = 1;
@@ -40525,7 +40525,9 @@ proto.payment.ManualDepositRequest.toObject = function(includeInstance, msg) {
40525
40525
  amount: jspb.Message.getFieldWithDefault(msg, 7, ""),
40526
40526
  paymentMethodId: jspb.Message.getFieldWithDefault(msg, 8, 0),
40527
40527
  externalPaymentId: jspb.Message.getFieldWithDefault(msg, 9, ""),
40528
- externalTransactionId: jspb.Message.getFieldWithDefault(msg, 10, "")
40528
+ externalTransactionId: jspb.Message.getFieldWithDefault(msg, 10, ""),
40529
+ userBonusId: jspb.Message.getFieldWithDefault(msg, 11, 0),
40530
+ bonusId: jspb.Message.getFieldWithDefault(msg, 12, 0)
40529
40531
  };
40530
40532
 
40531
40533
  if (includeInstance) {
@@ -40602,6 +40604,14 @@ proto.payment.ManualDepositRequest.deserializeBinaryFromReader = function(msg, r
40602
40604
  var value = /** @type {string} */ (reader.readString());
40603
40605
  msg.setExternalTransactionId(value);
40604
40606
  break;
40607
+ case 11:
40608
+ var value = /** @type {number} */ (reader.readInt32());
40609
+ msg.setUserBonusId(value);
40610
+ break;
40611
+ case 12:
40612
+ var value = /** @type {number} */ (reader.readInt32());
40613
+ msg.setBonusId(value);
40614
+ break;
40605
40615
  default:
40606
40616
  reader.skipField();
40607
40617
  break;
@@ -40701,6 +40711,20 @@ proto.payment.ManualDepositRequest.serializeBinaryToWriter = function(message, w
40701
40711
  f
40702
40712
  );
40703
40713
  }
40714
+ f = /** @type {number} */ (jspb.Message.getField(message, 11));
40715
+ if (f != null) {
40716
+ writer.writeInt32(
40717
+ 11,
40718
+ f
40719
+ );
40720
+ }
40721
+ f = /** @type {number} */ (jspb.Message.getField(message, 12));
40722
+ if (f != null) {
40723
+ writer.writeInt32(
40724
+ 12,
40725
+ f
40726
+ );
40727
+ }
40704
40728
  };
40705
40729
 
40706
40730
 
@@ -40956,6 +40980,78 @@ proto.payment.ManualDepositRequest.prototype.hasExternalTransactionId = function
40956
40980
  };
40957
40981
 
40958
40982
 
40983
+ /**
40984
+ * optional int32 user_bonus_id = 11;
40985
+ * @return {number}
40986
+ */
40987
+ proto.payment.ManualDepositRequest.prototype.getUserBonusId = function() {
40988
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 11, 0));
40989
+ };
40990
+
40991
+
40992
+ /**
40993
+ * @param {number} value
40994
+ * @return {!proto.payment.ManualDepositRequest} returns this
40995
+ */
40996
+ proto.payment.ManualDepositRequest.prototype.setUserBonusId = function(value) {
40997
+ return jspb.Message.setField(this, 11, value);
40998
+ };
40999
+
41000
+
41001
+ /**
41002
+ * Clears the field making it undefined.
41003
+ * @return {!proto.payment.ManualDepositRequest} returns this
41004
+ */
41005
+ proto.payment.ManualDepositRequest.prototype.clearUserBonusId = function() {
41006
+ return jspb.Message.setField(this, 11, undefined);
41007
+ };
41008
+
41009
+
41010
+ /**
41011
+ * Returns whether this field is set.
41012
+ * @return {boolean}
41013
+ */
41014
+ proto.payment.ManualDepositRequest.prototype.hasUserBonusId = function() {
41015
+ return jspb.Message.getField(this, 11) != null;
41016
+ };
41017
+
41018
+
41019
+ /**
41020
+ * optional int32 bonus_id = 12;
41021
+ * @return {number}
41022
+ */
41023
+ proto.payment.ManualDepositRequest.prototype.getBonusId = function() {
41024
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 12, 0));
41025
+ };
41026
+
41027
+
41028
+ /**
41029
+ * @param {number} value
41030
+ * @return {!proto.payment.ManualDepositRequest} returns this
41031
+ */
41032
+ proto.payment.ManualDepositRequest.prototype.setBonusId = function(value) {
41033
+ return jspb.Message.setField(this, 12, value);
41034
+ };
41035
+
41036
+
41037
+ /**
41038
+ * Clears the field making it undefined.
41039
+ * @return {!proto.payment.ManualDepositRequest} returns this
41040
+ */
41041
+ proto.payment.ManualDepositRequest.prototype.clearBonusId = function() {
41042
+ return jspb.Message.setField(this, 12, undefined);
41043
+ };
41044
+
41045
+
41046
+ /**
41047
+ * Returns whether this field is set.
41048
+ * @return {boolean}
41049
+ */
41050
+ proto.payment.ManualDepositRequest.prototype.hasBonusId = function() {
41051
+ return jspb.Message.getField(this, 12) != null;
41052
+ };
41053
+
41054
+
40959
41055
 
40960
41056
 
40961
41057