protobuf-platform 1.2.20 → 1.2.22

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.20",
3
+ "version": "1.2.22",
4
4
  "description": "Protobuf structures",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -108,6 +108,7 @@ message MethodItem {
108
108
  optional int32 provider_id = 8;
109
109
  optional string provider_title = 9;
110
110
  optional string provider_image = 10;
111
+ optional string code = 11;
111
112
  }
112
113
  message MethodRequest {
113
114
  oneof request {
@@ -123,6 +124,7 @@ message MethodItemRequest {
123
124
  optional int32 provider_id = 6;
124
125
  optional string transaction_type = 7;
125
126
  optional string processing_type = 8;
127
+ optional string code = 9;
126
128
  }
127
129
  message GetMethodRequest {
128
130
  int32 id = 1;
@@ -184,6 +186,7 @@ message DepositResponse {
184
186
  optional string payment_method_title = 8;
185
187
  optional string payment_provider_image = 9;
186
188
  optional string created = 10;
189
+ optional string payment_redirect_url = 11;
187
190
  }
188
191
  message DepositItem {
189
192
  int32 id = 1;
@@ -4138,7 +4138,8 @@ proto.payment.MethodItem.toObject = function(includeInstance, msg) {
4138
4138
  transactionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
4139
4139
  providerId: jspb.Message.getFieldWithDefault(msg, 8, 0),
4140
4140
  providerTitle: jspb.Message.getFieldWithDefault(msg, 9, ""),
4141
- providerImage: jspb.Message.getFieldWithDefault(msg, 10, "")
4141
+ providerImage: jspb.Message.getFieldWithDefault(msg, 10, ""),
4142
+ code: jspb.Message.getFieldWithDefault(msg, 11, "")
4142
4143
  };
4143
4144
 
4144
4145
  if (includeInstance) {
@@ -4211,6 +4212,10 @@ proto.payment.MethodItem.deserializeBinaryFromReader = function(msg, reader) {
4211
4212
  var value = /** @type {string} */ (reader.readString());
4212
4213
  msg.setProviderImage(value);
4213
4214
  break;
4215
+ case 11:
4216
+ var value = /** @type {string} */ (reader.readString());
4217
+ msg.setCode(value);
4218
+ break;
4214
4219
  default:
4215
4220
  reader.skipField();
4216
4221
  break;
@@ -4303,6 +4308,13 @@ proto.payment.MethodItem.serializeBinaryToWriter = function(message, writer) {
4303
4308
  f
4304
4309
  );
4305
4310
  }
4311
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
4312
+ if (f != null) {
4313
+ writer.writeString(
4314
+ 11,
4315
+ f
4316
+ );
4317
+ }
4306
4318
  };
4307
4319
 
4308
4320
 
@@ -4630,6 +4642,42 @@ proto.payment.MethodItem.prototype.hasProviderImage = function() {
4630
4642
  };
4631
4643
 
4632
4644
 
4645
+ /**
4646
+ * optional string code = 11;
4647
+ * @return {string}
4648
+ */
4649
+ proto.payment.MethodItem.prototype.getCode = function() {
4650
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
4651
+ };
4652
+
4653
+
4654
+ /**
4655
+ * @param {string} value
4656
+ * @return {!proto.payment.MethodItem} returns this
4657
+ */
4658
+ proto.payment.MethodItem.prototype.setCode = function(value) {
4659
+ return jspb.Message.setField(this, 11, value);
4660
+ };
4661
+
4662
+
4663
+ /**
4664
+ * Clears the field making it undefined.
4665
+ * @return {!proto.payment.MethodItem} returns this
4666
+ */
4667
+ proto.payment.MethodItem.prototype.clearCode = function() {
4668
+ return jspb.Message.setField(this, 11, undefined);
4669
+ };
4670
+
4671
+
4672
+ /**
4673
+ * Returns whether this field is set.
4674
+ * @return {boolean}
4675
+ */
4676
+ proto.payment.MethodItem.prototype.hasCode = function() {
4677
+ return jspb.Message.getField(this, 11) != null;
4678
+ };
4679
+
4680
+
4633
4681
 
4634
4682
  /**
4635
4683
  * Oneof group definitions for this message. Each group defines the field
@@ -4896,7 +4944,8 @@ proto.payment.MethodItemRequest.toObject = function(includeInstance, msg) {
4896
4944
  isActive: jspb.Message.getFieldWithDefault(msg, 5, 0),
4897
4945
  providerId: jspb.Message.getFieldWithDefault(msg, 6, 0),
4898
4946
  transactionType: jspb.Message.getFieldWithDefault(msg, 7, ""),
4899
- processingType: jspb.Message.getFieldWithDefault(msg, 8, "")
4947
+ processingType: jspb.Message.getFieldWithDefault(msg, 8, ""),
4948
+ code: jspb.Message.getFieldWithDefault(msg, 9, "")
4900
4949
  };
4901
4950
 
4902
4951
  if (includeInstance) {
@@ -4961,6 +5010,10 @@ proto.payment.MethodItemRequest.deserializeBinaryFromReader = function(msg, read
4961
5010
  var value = /** @type {string} */ (reader.readString());
4962
5011
  msg.setProcessingType(value);
4963
5012
  break;
5013
+ case 9:
5014
+ var value = /** @type {string} */ (reader.readString());
5015
+ msg.setCode(value);
5016
+ break;
4964
5017
  default:
4965
5018
  reader.skipField();
4966
5019
  break;
@@ -5039,6 +5092,13 @@ proto.payment.MethodItemRequest.serializeBinaryToWriter = function(message, writ
5039
5092
  f
5040
5093
  );
5041
5094
  }
5095
+ f = /** @type {string} */ (jspb.Message.getField(message, 9));
5096
+ if (f != null) {
5097
+ writer.writeString(
5098
+ 9,
5099
+ f
5100
+ );
5101
+ }
5042
5102
  };
5043
5103
 
5044
5104
 
@@ -5294,6 +5354,42 @@ proto.payment.MethodItemRequest.prototype.hasProcessingType = function() {
5294
5354
  };
5295
5355
 
5296
5356
 
5357
+ /**
5358
+ * optional string code = 9;
5359
+ * @return {string}
5360
+ */
5361
+ proto.payment.MethodItemRequest.prototype.getCode = function() {
5362
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 9, ""));
5363
+ };
5364
+
5365
+
5366
+ /**
5367
+ * @param {string} value
5368
+ * @return {!proto.payment.MethodItemRequest} returns this
5369
+ */
5370
+ proto.payment.MethodItemRequest.prototype.setCode = function(value) {
5371
+ return jspb.Message.setField(this, 9, value);
5372
+ };
5373
+
5374
+
5375
+ /**
5376
+ * Clears the field making it undefined.
5377
+ * @return {!proto.payment.MethodItemRequest} returns this
5378
+ */
5379
+ proto.payment.MethodItemRequest.prototype.clearCode = function() {
5380
+ return jspb.Message.setField(this, 9, undefined);
5381
+ };
5382
+
5383
+
5384
+ /**
5385
+ * Returns whether this field is set.
5386
+ * @return {boolean}
5387
+ */
5388
+ proto.payment.MethodItemRequest.prototype.hasCode = function() {
5389
+ return jspb.Message.getField(this, 9) != null;
5390
+ };
5391
+
5392
+
5297
5393
 
5298
5394
 
5299
5395
 
@@ -7486,7 +7582,8 @@ proto.payment.DepositResponse.toObject = function(includeInstance, msg) {
7486
7582
  currency: jspb.Message.getFieldWithDefault(msg, 7, ""),
7487
7583
  paymentMethodTitle: jspb.Message.getFieldWithDefault(msg, 8, ""),
7488
7584
  paymentProviderImage: jspb.Message.getFieldWithDefault(msg, 9, ""),
7489
- created: jspb.Message.getFieldWithDefault(msg, 10, "")
7585
+ created: jspb.Message.getFieldWithDefault(msg, 10, ""),
7586
+ paymentRedirectUrl: jspb.Message.getFieldWithDefault(msg, 11, "")
7490
7587
  };
7491
7588
 
7492
7589
  if (includeInstance) {
@@ -7563,6 +7660,10 @@ proto.payment.DepositResponse.deserializeBinaryFromReader = function(msg, reader
7563
7660
  var value = /** @type {string} */ (reader.readString());
7564
7661
  msg.setCreated(value);
7565
7662
  break;
7663
+ case 11:
7664
+ var value = /** @type {string} */ (reader.readString());
7665
+ msg.setPaymentRedirectUrl(value);
7666
+ break;
7566
7667
  default:
7567
7668
  reader.skipField();
7568
7669
  break;
@@ -7662,6 +7763,13 @@ proto.payment.DepositResponse.serializeBinaryToWriter = function(message, writer
7662
7763
  f
7663
7764
  );
7664
7765
  }
7766
+ f = /** @type {string} */ (jspb.Message.getField(message, 11));
7767
+ if (f != null) {
7768
+ writer.writeString(
7769
+ 11,
7770
+ f
7771
+ );
7772
+ }
7665
7773
  };
7666
7774
 
7667
7775
 
@@ -8007,6 +8115,42 @@ proto.payment.DepositResponse.prototype.hasCreated = function() {
8007
8115
  };
8008
8116
 
8009
8117
 
8118
+ /**
8119
+ * optional string payment_redirect_url = 11;
8120
+ * @return {string}
8121
+ */
8122
+ proto.payment.DepositResponse.prototype.getPaymentRedirectUrl = function() {
8123
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 11, ""));
8124
+ };
8125
+
8126
+
8127
+ /**
8128
+ * @param {string} value
8129
+ * @return {!proto.payment.DepositResponse} returns this
8130
+ */
8131
+ proto.payment.DepositResponse.prototype.setPaymentRedirectUrl = function(value) {
8132
+ return jspb.Message.setField(this, 11, value);
8133
+ };
8134
+
8135
+
8136
+ /**
8137
+ * Clears the field making it undefined.
8138
+ * @return {!proto.payment.DepositResponse} returns this
8139
+ */
8140
+ proto.payment.DepositResponse.prototype.clearPaymentRedirectUrl = function() {
8141
+ return jspb.Message.setField(this, 11, undefined);
8142
+ };
8143
+
8144
+
8145
+ /**
8146
+ * Returns whether this field is set.
8147
+ * @return {boolean}
8148
+ */
8149
+ proto.payment.DepositResponse.prototype.hasPaymentRedirectUrl = function() {
8150
+ return jspb.Message.getField(this, 11) != null;
8151
+ };
8152
+
8153
+
8010
8154
 
8011
8155
 
8012
8156