protobuf-platform 1.2.513 → 1.2.514

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.513",
3
+ "version": "1.2.514",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -896,7 +896,7 @@ message CurrencyItemsResponse {
896
896
  message ManualDepositRequest {
897
897
  int32 user_id = 1;
898
898
  int64 amount_minor = 2;
899
- string currency = 3;
899
+ optional string currency = 3;
900
900
  string wager_multiplier = 4;
901
901
  string reason = 5;
902
902
  string idempotency_id = 6;
@@ -38521,8 +38521,8 @@ proto.payment.ManualDepositRequest.serializeBinaryToWriter = function(message, w
38521
38521
  f
38522
38522
  );
38523
38523
  }
38524
- f = message.getCurrency();
38525
- if (f.length > 0) {
38524
+ f = /** @type {string} */ (jspb.Message.getField(message, 3));
38525
+ if (f != null) {
38526
38526
  writer.writeString(
38527
38527
  3,
38528
38528
  f
@@ -38609,7 +38609,25 @@ proto.payment.ManualDepositRequest.prototype.getCurrency = function() {
38609
38609
  * @return {!proto.payment.ManualDepositRequest} returns this
38610
38610
  */
38611
38611
  proto.payment.ManualDepositRequest.prototype.setCurrency = function(value) {
38612
- return jspb.Message.setProto3StringField(this, 3, value);
38612
+ return jspb.Message.setField(this, 3, value);
38613
+ };
38614
+
38615
+
38616
+ /**
38617
+ * Clears the field making it undefined.
38618
+ * @return {!proto.payment.ManualDepositRequest} returns this
38619
+ */
38620
+ proto.payment.ManualDepositRequest.prototype.clearCurrency = function() {
38621
+ return jspb.Message.setField(this, 3, undefined);
38622
+ };
38623
+
38624
+
38625
+ /**
38626
+ * Returns whether this field is set.
38627
+ * @return {boolean}
38628
+ */
38629
+ proto.payment.ManualDepositRequest.prototype.hasCurrency = function() {
38630
+ return jspb.Message.getField(this, 3) != null;
38613
38631
  };
38614
38632
 
38615
38633