protobuf-platform 1.2.23 → 1.2.25

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.23",
3
+ "version": "1.2.25",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -169,6 +169,7 @@ message AttemptDepositRequest {
169
169
  float amount = 3;
170
170
  optional int32 bonus_id = 4;
171
171
  optional string user_currency = 5;
172
+ optional string user_country = 6;
172
173
  }
173
174
  message GetDepositRequest {
174
175
  int32 id = 1;
@@ -188,6 +189,7 @@ message DepositResponse {
188
189
  optional string payment_provider_image = 9;
189
190
  optional string created = 10;
190
191
  optional string payment_redirect_url = 11;
192
+ optional string country = 12;
191
193
  }
192
194
  message DepositItem {
193
195
  int32 id = 1;
@@ -200,6 +202,8 @@ message DepositItem {
200
202
  optional string payment_method_title = 8;
201
203
  optional string payment_provider_image = 9;
202
204
  optional string created = 10;
205
+ optional string payment_redirect_url = 11;
206
+ optional string country = 12;
203
207
  }
204
208
  message DepositItemsResponse {
205
209
  repeated DepositItem items = 1;
@@ -7061,7 +7061,8 @@ proto.payment.AttemptDepositRequest.toObject = function(includeInstance, msg) {
7061
7061
  userId: jspb.Message.getFieldWithDefault(msg, 2, 0),
7062
7062
  amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
7063
7063
  bonusId: jspb.Message.getFieldWithDefault(msg, 4, 0),
7064
- userCurrency: jspb.Message.getFieldWithDefault(msg, 5, "")
7064
+ userCurrency: jspb.Message.getFieldWithDefault(msg, 5, ""),
7065
+ userCountry: jspb.Message.getFieldWithDefault(msg, 6, "")
7065
7066
  };
7066
7067
 
7067
7068
  if (includeInstance) {
@@ -7118,6 +7119,10 @@ proto.payment.AttemptDepositRequest.deserializeBinaryFromReader = function(msg,
7118
7119
  var value = /** @type {string} */ (reader.readString());
7119
7120
  msg.setUserCurrency(value);
7120
7121
  break;
7122
+ case 6:
7123
+ var value = /** @type {string} */ (reader.readString());
7124
+ msg.setUserCountry(value);
7125
+ break;
7121
7126
  default:
7122
7127
  reader.skipField();
7123
7128
  break;
@@ -7182,6 +7187,13 @@ proto.payment.AttemptDepositRequest.serializeBinaryToWriter = function(message,
7182
7187
  f
7183
7188
  );
7184
7189
  }
7190
+ f = /** @type {string} */ (jspb.Message.getField(message, 6));
7191
+ if (f != null) {
7192
+ writer.writeString(
7193
+ 6,
7194
+ f
7195
+ );
7196
+ }
7185
7197
  };
7186
7198
 
7187
7199
 
@@ -7311,6 +7323,42 @@ proto.payment.AttemptDepositRequest.prototype.hasUserCurrency = function() {
7311
7323
  };
7312
7324
 
7313
7325
 
7326
+ /**
7327
+ * optional string user_country = 6;
7328
+ * @return {string}
7329
+ */
7330
+ proto.payment.AttemptDepositRequest.prototype.getUserCountry = function() {
7331
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 6, ""));
7332
+ };
7333
+
7334
+
7335
+ /**
7336
+ * @param {string} value
7337
+ * @return {!proto.payment.AttemptDepositRequest} returns this
7338
+ */
7339
+ proto.payment.AttemptDepositRequest.prototype.setUserCountry = function(value) {
7340
+ return jspb.Message.setField(this, 6, value);
7341
+ };
7342
+
7343
+
7344
+ /**
7345
+ * Clears the field making it undefined.
7346
+ * @return {!proto.payment.AttemptDepositRequest} returns this
7347
+ */
7348
+ proto.payment.AttemptDepositRequest.prototype.clearUserCountry = function() {
7349
+ return jspb.Message.setField(this, 6, undefined);
7350
+ };
7351
+
7352
+
7353
+ /**
7354
+ * Returns whether this field is set.
7355
+ * @return {boolean}
7356
+ */
7357
+ proto.payment.AttemptDepositRequest.prototype.hasUserCountry = function() {
7358
+ return jspb.Message.getField(this, 6) != null;
7359
+ };
7360
+
7361
+
7314
7362
 
7315
7363
 
7316
7364
 
@@ -7627,7 +7675,8 @@ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
7627
7675
  paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
7628
7676
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
7629
7677
  created: jspb.Message.getFieldWithDefault(msg, 10, ""),
7630
- paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, "")
7678
+ paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
7679
+ country: jspb.Message.getFieldWithDefault(msg, 12, "")
7631
7680
  };
7632
7681
 
7633
7682
  if (includeInstance) {
@@ -7708,6 +7757,10 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
7708
7757
  var value = /** @type {string} */ (reader.readString());
7709
7758
  msg.setPaymentRedirectUrl(value);
7710
7759
  break;
7760
+ case 12:
7761
+ var value = /** @type {string} */ (reader.readString());
7762
+ msg.setCountry(value);
7763
+ break;
7711
7764
  default:
7712
7765
  reader.skipField();
7713
7766
  break;
@@ -7814,6 +7867,13 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
7814
7867
  f
7815
7868
  );
7816
7869
  }
7870
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
7871
+ if (f != null) {
7872
+ writer.writeString(
7873
+ 12,
7874
+ f
7875
+ );
7876
+ }
7817
7877
  };
7818
7878
 
7819
7879
 
@@ -8195,6 +8255,42 @@ proto.payment.DepositResponse.prototype.hasPaymentRedirectUrl = function() {
8195
8255
  };
8196
8256
 
8197
8257
 
8258
+ /**
8259
+ * optional string country = 12;
8260
+ * @return {string}
8261
+ */
8262
+ proto.payment.DepositResponse.prototype.getCountry = function() {
8263
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
8264
+ };
8265
+
8266
+
8267
+ /**
8268
+ * @param {string} value
8269
+ * @return {!proto.payment.DepositResponse} returns this
8270
+ */
8271
+ proto.payment.DepositResponse.prototype.setCountry = function(value) {
8272
+ return jspb.Message.setField(this, 12, value);
8273
+ };
8274
+
8275
+
8276
+ /**
8277
+ * Clears the field making it undefined.
8278
+ * @return {!proto.payment.DepositResponse} returns this
8279
+ */
8280
+ proto.payment.DepositResponse.prototype.clearCountry = function() {
8281
+ return jspb.Message.setField(this, 12, undefined);
8282
+ };
8283
+
8284
+
8285
+ /**
8286
+ * Returns whether this field is set.
8287
+ * @return {boolean}
8288
+ */
8289
+ proto.payment.DepositResponse.prototype.hasCountry = function() {
8290
+ return jspb.Message.getField(this, 12) != null;
8291
+ };
8292
+
8293
+
8198
8294
 
8199
8295
 
8200
8296
 
@@ -8236,7 +8332,9 @@ proto.payment.DepositItem.toObject = function(includeInstance, msg) {
8236
8332
  currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
8237
8333
  paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
8238
8334
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
8239
- created: jspb.Message.getFieldWithDefault(msg, 10, "")
8335
+ created: jspb.Message.getFieldWithDefault(msg, 10, ""),
8336
+ paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
8337
+ country: jspb.Message.getFieldWithDefault(msg, 12, "")
8240
8338
  };
8241
8339
 
8242
8340
  if (includeInstance) {
@@ -8313,6 +8411,14 @@ proto.payment.DepositItem.deserializeBinaryFromReader = function(msg, reader) {
8313
8411
  var value = /** @type {string} */ (reader.readString());
8314
8412
  msg.setCreated(value);
8315
8413
  break;
8414
+ case 11:
8415
+ var value = /** @type {string} */ (reader.readString());
8416
+ msg.setPaymentRedirectUrl(value);
8417
+ break;
8418
+ case 12:
8419
+ var value = /** @type {string} */ (reader.readString());
8420
+ msg.setCountry(value);
8421
+ break;
8316
8422
  default:
8317
8423
  reader.skipField();
8318
8424
  break;
@@ -8412,6 +8518,20 @@ proto.payment.DepositItem.serializeBinaryToWriter = function(message, writer) {
8412
8518
  f
8413
8519
  );
8414
8520
  }
8521
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
8522
+ if (f != null) {
8523
+ writer.writeString(
8524
+ 11,
8525
+ f
8526
+ );
8527
+ }
8528
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
8529
+ if (f != null) {
8530
+ writer.writeString(
8531
+ 12,
8532
+ f
8533
+ );
8534
+ }
8415
8535
  };
8416
8536
 
8417
8537
 
@@ -8649,6 +8769,78 @@ proto.payment.DepositItem.prototype.hasCreated = function() {
8649
8769
  };
8650
8770
 
8651
8771
 
8772
+ /**
8773
+ * optional string payment_redirect_url = 11;
8774
+ * @return {string}
8775
+ */
8776
+ proto.payment.DepositItem.prototype.getPaymentRedirectUrl = function() {
8777
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
8778
+ };
8779
+
8780
+
8781
+ /**
8782
+ * @param {string} value
8783
+ * @return {!proto.payment.DepositItem} returns this
8784
+ */
8785
+ proto.payment.DepositItem.prototype.setPaymentRedirectUrl = function(value) {
8786
+ return jspb.Message.setField(this, 11, value);
8787
+ };
8788
+
8789
+
8790
+ /**
8791
+ * Clears the field making it undefined.
8792
+ * @return {!proto.payment.DepositItem} returns this
8793
+ */
8794
+ proto.payment.DepositItem.prototype.clearPaymentRedirectUrl = function() {
8795
+ return jspb.Message.setField(this, 11, undefined);
8796
+ };
8797
+
8798
+
8799
+ /**
8800
+ * Returns whether this field is set.
8801
+ * @return {boolean}
8802
+ */
8803
+ proto.payment.DepositItem.prototype.hasPaymentRedirectUrl = function() {
8804
+ return jspb.Message.getField(this, 11) != null;
8805
+ };
8806
+
8807
+
8808
+ /**
8809
+ * optional string country = 12;
8810
+ * @return {string}
8811
+ */
8812
+ proto.payment.DepositItem.prototype.getCountry = function() {
8813
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 12, ""));
8814
+ };
8815
+
8816
+
8817
+ /**
8818
+ * @param {string} value
8819
+ * @return {!proto.payment.DepositItem} returns this
8820
+ */
8821
+ proto.payment.DepositItem.prototype.setCountry = function(value) {
8822
+ return jspb.Message.setField(this, 12, value);
8823
+ };
8824
+
8825
+
8826
+ /**
8827
+ * Clears the field making it undefined.
8828
+ * @return {!proto.payment.DepositItem} returns this
8829
+ */
8830
+ proto.payment.DepositItem.prototype.clearCountry = function() {
8831
+ return jspb.Message.setField(this, 12, undefined);
8832
+ };
8833
+
8834
+
8835
+ /**
8836
+ * Returns whether this field is set.
8837
+ * @return {boolean}
8838
+ */
8839
+ proto.payment.DepositItem.prototype.hasCountry = function() {
8840
+ return jspb.Message.getField(this, 12) != null;
8841
+ };
8842
+
8843
+
8652
8844
 
8653
8845
  /**
8654
8846
  * List of repeated fields within this message type.