@sniipwebmaster/bill-service-client-grpcweb 0.2.3778 → 0.2.3800

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.
@@ -2898,7 +2898,8 @@ proto.sniipbillapi.BillDetail.toObject = function(includeInstance, msg) {
2898
2898
  isbpaycodesupported: msg.getIsbpaycodesupported(),
2899
2899
  billmarkedaspaid: msg.getBillmarkedaspaid(),
2900
2900
  sourceid: msg.getSourceid(),
2901
- category: msg.getCategory()
2901
+ category: msg.getCategory(),
2902
+ isdraft: msg.getIsdraft()
2902
2903
  };
2903
2904
 
2904
2905
  if (includeInstance) {
@@ -3122,6 +3123,10 @@ proto.sniipbillapi.BillDetail.deserializeBinaryFromReader = function(msg, reader
3122
3123
  var value = /** @type {string} */ (reader.readString());
3123
3124
  msg.setCategory(value);
3124
3125
  break;
3126
+ case 47:
3127
+ var value = /** @type {boolean} */ (reader.readBool());
3128
+ msg.setIsdraft(value);
3129
+ break;
3125
3130
  default:
3126
3131
  reader.skipField();
3127
3132
  break;
@@ -3483,6 +3488,13 @@ proto.sniipbillapi.BillDetail.prototype.serializeBinaryToWriter = function (writ
3483
3488
  f
3484
3489
  );
3485
3490
  }
3491
+ f = this.getIsdraft();
3492
+ if (f) {
3493
+ writer.writeBool(
3494
+ 47,
3495
+ f
3496
+ );
3497
+ }
3486
3498
  };
3487
3499
 
3488
3500
 
@@ -4222,6 +4234,23 @@ proto.sniipbillapi.BillDetail.prototype.setCategory = function(value) {
4222
4234
  };
4223
4235
 
4224
4236
 
4237
+ /**
4238
+ * optional bool isDraft = 47;
4239
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
4240
+ * You should avoid comparisons like {@code val === true/false} in those cases.
4241
+ * @return {boolean}
4242
+ */
4243
+ proto.sniipbillapi.BillDetail.prototype.getIsdraft = function() {
4244
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 47, false));
4245
+ };
4246
+
4247
+
4248
+ /** @param {boolean} value */
4249
+ proto.sniipbillapi.BillDetail.prototype.setIsdraft = function(value) {
4250
+ jspb.Message.setField(this, 47, value);
4251
+ };
4252
+
4253
+
4225
4254
 
4226
4255
  /**
4227
4256
  * Generated by JsPbCodeGenerator.
@@ -10419,7 +10448,7 @@ proto.sniipbillapi.DraftBillCreateRequest.prototype.toObject = function(opt_incl
10419
10448
  */
10420
10449
  proto.sniipbillapi.DraftBillCreateRequest.toObject = function(includeInstance, msg) {
10421
10450
  var f, obj = {
10422
- billerid: msg.getBillerid(),
10451
+ billercode: msg.getBillercode(),
10423
10452
  paymentprocessor: msg.getPaymentprocessor(),
10424
10453
  type: msg.getType(),
10425
10454
  reference: msg.getReference(),
@@ -10467,8 +10496,8 @@ proto.sniipbillapi.DraftBillCreateRequest.deserializeBinaryFromReader = function
10467
10496
  var field = reader.getFieldNumber();
10468
10497
  switch (field) {
10469
10498
  case 1:
10470
- var value = /** @type {number} */ (reader.readInt64());
10471
- msg.setBillerid(value);
10499
+ var value = /** @type {string} */ (reader.readString());
10500
+ msg.setBillercode(value);
10472
10501
  break;
10473
10502
  case 2:
10474
10503
  var value = /** @type {!proto.sniipbillapi.BillScanType} */ (reader.readEnum());
@@ -10548,9 +10577,9 @@ proto.sniipbillapi.DraftBillCreateRequest.prototype.serializeBinary = function()
10548
10577
  */
10549
10578
  proto.sniipbillapi.DraftBillCreateRequest.prototype.serializeBinaryToWriter = function (writer) {
10550
10579
  var f = undefined;
10551
- f = this.getBillerid();
10552
- if (f !== 0) {
10553
- writer.writeInt64(
10580
+ f = this.getBillercode();
10581
+ if (f.length > 0) {
10582
+ writer.writeString(
10554
10583
  1,
10555
10584
  f
10556
10585
  );
@@ -10638,16 +10667,16 @@ proto.sniipbillapi.DraftBillCreateRequest.prototype.cloneMessage = function() {
10638
10667
 
10639
10668
 
10640
10669
  /**
10641
- * optional int64 billerId = 1;
10642
- * @return {number}
10670
+ * optional string billerCode = 1;
10671
+ * @return {string}
10643
10672
  */
10644
- proto.sniipbillapi.DraftBillCreateRequest.prototype.getBillerid = function() {
10645
- return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
10673
+ proto.sniipbillapi.DraftBillCreateRequest.prototype.getBillercode = function() {
10674
+ return /** @type {string} */ (jspb.Message.getFieldProto3(this, 1, ""));
10646
10675
  };
10647
10676
 
10648
10677
 
10649
- /** @param {number} value */
10650
- proto.sniipbillapi.DraftBillCreateRequest.prototype.setBillerid = function(value) {
10678
+ /** @param {string} value */
10679
+ proto.sniipbillapi.DraftBillCreateRequest.prototype.setBillercode = function(value) {
10651
10680
  jspb.Message.setField(this, 1, value);
10652
10681
  };
10653
10682
 
@@ -18165,7 +18194,8 @@ proto.sniipbillapi.SimpleBillDetail.toObject = function(includeInstance, msg) {
18165
18194
  billmarkedaspaid: msg.getBillmarkedaspaid(),
18166
18195
  description: msg.getDescription(),
18167
18196
  sourceid: msg.getSourceid(),
18168
- category: msg.getCategory()
18197
+ category: msg.getCategory(),
18198
+ isdraft: msg.getIsdraft()
18169
18199
  };
18170
18200
 
18171
18201
  if (includeInstance) {
@@ -18383,6 +18413,10 @@ proto.sniipbillapi.SimpleBillDetail.deserializeBinaryFromReader = function(msg,
18383
18413
  var value = /** @type {string} */ (reader.readString());
18384
18414
  msg.setCategory(value);
18385
18415
  break;
18416
+ case 47:
18417
+ var value = /** @type {boolean} */ (reader.readBool());
18418
+ msg.setIsdraft(value);
18419
+ break;
18386
18420
  default:
18387
18421
  reader.skipField();
18388
18422
  break;
@@ -18736,6 +18770,13 @@ proto.sniipbillapi.SimpleBillDetail.prototype.serializeBinaryToWriter = function
18736
18770
  f
18737
18771
  );
18738
18772
  }
18773
+ f = this.getIsdraft();
18774
+ if (f) {
18775
+ writer.writeBool(
18776
+ 47,
18777
+ f
18778
+ );
18779
+ }
18739
18780
  };
18740
18781
 
18741
18782
 
@@ -19448,6 +19489,23 @@ proto.sniipbillapi.SimpleBillDetail.prototype.setCategory = function(value) {
19448
19489
  };
19449
19490
 
19450
19491
 
19492
+ /**
19493
+ * optional bool isDraft = 47;
19494
+ * Note that Boolean fields may be set to 0/1 when serialized from a Java server.
19495
+ * You should avoid comparisons like {@code val === true/false} in those cases.
19496
+ * @return {boolean}
19497
+ */
19498
+ proto.sniipbillapi.SimpleBillDetail.prototype.getIsdraft = function() {
19499
+ return /** @type {boolean} */ (jspb.Message.getFieldProto3(this, 47, false));
19500
+ };
19501
+
19502
+
19503
+ /** @param {boolean} value */
19504
+ proto.sniipbillapi.SimpleBillDetail.prototype.setIsdraft = function(value) {
19505
+ jspb.Message.setField(this, 47, value);
19506
+ };
19507
+
19508
+
19451
19509
 
19452
19510
  /**
19453
19511
  * Generated by JsPbCodeGenerator.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "0.2.3778",
3
+ "version": "0.2.3800",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",