protobuf-platform 1.2.24 → 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.24",
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;
@@ -201,6 +203,7 @@ message DepositItem {
201
203
  optional string payment_provider_image = 9;
202
204
  optional string created = 10;
203
205
  optional string payment_redirect_url = 11;
206
+ optional string country = 12;
204
207
  }
205
208
  message DepositItemsResponse {
206
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
 
@@ -8237,7 +8333,8 @@ proto.payment.DepositItem.toObject = function(includeInstance, msg) {
8237
8333
  paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
8238
8334
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
8239
8335
  created: jspb.Message.getFieldWithDefault(msg, 10, ""),
8240
- paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, "")
8336
+ paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, ""),
8337
+ country: jspb.Message.getFieldWithDefault(msg, 12, "")
8241
8338
  };
8242
8339
 
8243
8340
  if (includeInstance) {
@@ -8318,6 +8415,10 @@ proto.payment.DepositItem.deserializeBinaryFromReader = function(msg, reader) {
8318
8415
  var value = /** @type {string} */ (reader.readString());
8319
8416
  msg.setPaymentRedirectUrl(value);
8320
8417
  break;
8418
+ case 12:
8419
+ var value = /** @type {string} */ (reader.readString());
8420
+ msg.setCountry(value);
8421
+ break;
8321
8422
  default:
8322
8423
  reader.skipField();
8323
8424
  break;
@@ -8424,6 +8525,13 @@ proto.payment.DepositItem.serializeBinaryToWriter = function(message, writer) {
8424
8525
  f
8425
8526
  );
8426
8527
  }
8528
+ f = /** @type {string} */ (jspb.Message.getField(message, 12));
8529
+ if (f != null) {
8530
+ writer.writeString(
8531
+ 12,
8532
+ f
8533
+ );
8534
+ }
8427
8535
  };
8428
8536
 
8429
8537
 
@@ -8697,6 +8805,42 @@ proto.payment.DepositItem.prototype.hasPaymentRedirectUrl = function() {
8697
8805
  };
8698
8806
 
8699
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
+
8700
8844
 
8701
8845
  /**
8702
8846
  * List of repeated fields within this message type.