@sniipwebmaster/bill-service-client-grpcweb 25.11.14536 → 25.11.14557

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.
@@ -191,6 +191,7 @@ goog.exportSymbol('proto.sniipbillapi.VerifyBankAccountDetailsRequest', null, gl
191
191
  goog.exportSymbol('proto.sniipbillapi.VerifyBankAccountDetailsResponse', null, global);
192
192
  goog.exportSymbol('proto.sniipbillapi.VerifySmeBillerConfigRequest', null, global);
193
193
  goog.exportSymbol('proto.sniipbillapi.VerifySmeBillerConfigResponse', null, global);
194
+ goog.exportSymbol('proto.sniipbillapi.VirtualBill', null, global);
194
195
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceRequest', null, global);
195
196
  goog.exportSymbol('proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse', null, global);
196
197
  /**
@@ -676,6 +677,27 @@ if (goog.DEBUG && !COMPILED) {
676
677
  */
677
678
  proto.sniipbillapi.BillDetail.displayName = 'proto.sniipbillapi.BillDetail';
678
679
  }
680
+ /**
681
+ * Generated by JsPbCodeGenerator.
682
+ * @param {Array=} opt_data Optional initial data array, typically from a
683
+ * server response, or constructed directly in Javascript. The array is used
684
+ * in place and becomes part of the constructed object. It is not cloned.
685
+ * If no data is provided, the constructed object will be empty, but still
686
+ * valid.
687
+ * @extends {jspb.Message}
688
+ * @constructor
689
+ */
690
+ proto.sniipbillapi.VirtualBill = function(opt_data) {
691
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
692
+ };
693
+ goog.inherits(proto.sniipbillapi.VirtualBill, jspb.Message);
694
+ if (goog.DEBUG && !COMPILED) {
695
+ /**
696
+ * @public
697
+ * @override
698
+ */
699
+ proto.sniipbillapi.VirtualBill.displayName = 'proto.sniipbillapi.VirtualBill';
700
+ }
679
701
  /**
680
702
  * Generated by JsPbCodeGenerator.
681
703
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -10581,7 +10603,7 @@ proto.sniipbillapi.BillCreateResponse.prototype.setBillid = function(value) {
10581
10603
  * @private {!Array<number>}
10582
10604
  * @const
10583
10605
  */
10584
- proto.sniipbillapi.BillDetail.repeatedFields_ = [1,23,61,67];
10606
+ proto.sniipbillapi.BillDetail.repeatedFields_ = [1,23,61,67,95];
10585
10607
 
10586
10608
 
10587
10609
 
@@ -10694,7 +10716,9 @@ proto.sniipbillapi.BillDetail.toObject = function(includeInstance, msg) {
10694
10716
  billerstate: jspb.Message.getFieldWithDefault(msg, 91, ""),
10695
10717
  billerpostcode: jspb.Message.getFieldWithDefault(msg, 92, ""),
10696
10718
  billerphone: jspb.Message.getFieldWithDefault(msg, 93, ""),
10697
- agentuserid: jspb.Message.getFieldWithDefault(msg, 94, 0)
10719
+ agentuserid: jspb.Message.getFieldWithDefault(msg, 94, 0),
10720
+ virtualbillsList: jspb.Message.toObjectList(msg.getVirtualbillsList(),
10721
+ proto.sniipbillapi.VirtualBill.toObject, includeInstance)
10698
10722
  };
10699
10723
 
10700
10724
  if (includeInstance) {
@@ -11046,6 +11070,11 @@ proto.sniipbillapi.BillDetail.deserializeBinaryFromReader = function(msg, reader
11046
11070
  var value = /** @type {number} */ (reader.readInt64());
11047
11071
  msg.setAgentuserid(value);
11048
11072
  break;
11073
+ case 95:
11074
+ var value = new proto.sniipbillapi.VirtualBill;
11075
+ reader.readMessage(value,proto.sniipbillapi.VirtualBill.deserializeBinaryFromReader);
11076
+ msg.addVirtualbills(value);
11077
+ break;
11049
11078
  default:
11050
11079
  reader.skipField();
11051
11080
  break;
@@ -11624,6 +11653,14 @@ proto.sniipbillapi.BillDetail.serializeBinaryToWriter = function(message, writer
11624
11653
  f
11625
11654
  );
11626
11655
  }
11656
+ f = message.getVirtualbillsList();
11657
+ if (f.length > 0) {
11658
+ writer.writeRepeatedMessage(
11659
+ 95,
11660
+ f,
11661
+ proto.sniipbillapi.VirtualBill.serializeBinaryToWriter
11662
+ );
11663
+ }
11627
11664
  };
11628
11665
 
11629
11666
 
@@ -13120,6 +13157,354 @@ proto.sniipbillapi.BillDetail.prototype.setAgentuserid = function(value) {
13120
13157
  };
13121
13158
 
13122
13159
 
13160
+ /**
13161
+ * repeated VirtualBill virtualBills = 95;
13162
+ * @return {!Array<!proto.sniipbillapi.VirtualBill>}
13163
+ */
13164
+ proto.sniipbillapi.BillDetail.prototype.getVirtualbillsList = function() {
13165
+ return /** @type{!Array<!proto.sniipbillapi.VirtualBill>} */ (
13166
+ jspb.Message.getRepeatedWrapperField(this, proto.sniipbillapi.VirtualBill, 95));
13167
+ };
13168
+
13169
+
13170
+ /**
13171
+ * @param {!Array<!proto.sniipbillapi.VirtualBill>} value
13172
+ * @return {!proto.sniipbillapi.BillDetail} returns this
13173
+ */
13174
+ proto.sniipbillapi.BillDetail.prototype.setVirtualbillsList = function(value) {
13175
+ return jspb.Message.setRepeatedWrapperField(this, 95, value);
13176
+ };
13177
+
13178
+
13179
+ /**
13180
+ * @param {!proto.sniipbillapi.VirtualBill=} opt_value
13181
+ * @param {number=} opt_index
13182
+ * @return {!proto.sniipbillapi.VirtualBill}
13183
+ */
13184
+ proto.sniipbillapi.BillDetail.prototype.addVirtualbills = function(opt_value, opt_index) {
13185
+ return jspb.Message.addToRepeatedWrapperField(this, 95, opt_value, proto.sniipbillapi.VirtualBill, opt_index);
13186
+ };
13187
+
13188
+
13189
+ /**
13190
+ * Clears the list making it empty but non-null.
13191
+ * @return {!proto.sniipbillapi.BillDetail} returns this
13192
+ */
13193
+ proto.sniipbillapi.BillDetail.prototype.clearVirtualbillsList = function() {
13194
+ return this.setVirtualbillsList([]);
13195
+ };
13196
+
13197
+
13198
+
13199
+
13200
+
13201
+ if (jspb.Message.GENERATE_TO_OBJECT) {
13202
+ /**
13203
+ * Creates an object representation of this proto.
13204
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
13205
+ * Optional fields that are not set will be set to undefined.
13206
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
13207
+ * For the list of reserved names please see:
13208
+ * net/proto2/compiler/js/internal/generator.cc#kKeyword.
13209
+ * @param {boolean=} opt_includeInstance Deprecated. whether to include the
13210
+ * JSPB instance for transitional soy proto support:
13211
+ * http://goto/soy-param-migration
13212
+ * @return {!Object}
13213
+ */
13214
+ proto.sniipbillapi.VirtualBill.prototype.toObject = function(opt_includeInstance) {
13215
+ return proto.sniipbillapi.VirtualBill.toObject(opt_includeInstance, this);
13216
+ };
13217
+
13218
+
13219
+ /**
13220
+ * Static version of the {@see toObject} method.
13221
+ * @param {boolean|undefined} includeInstance Deprecated. Whether to include
13222
+ * the JSPB instance for transitional soy proto support:
13223
+ * http://goto/soy-param-migration
13224
+ * @param {!proto.sniipbillapi.VirtualBill} msg The msg instance to transform.
13225
+ * @return {!Object}
13226
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13227
+ */
13228
+ proto.sniipbillapi.VirtualBill.toObject = function(includeInstance, msg) {
13229
+ var f, obj = {
13230
+ virtualbillid: jspb.Message.getFieldWithDefault(msg, 1, 0),
13231
+ parentbillid: jspb.Message.getFieldWithDefault(msg, 2, 0),
13232
+ amount: jspb.Message.getFloatingPointFieldWithDefault(msg, 3, 0.0),
13233
+ rewardamount: jspb.Message.getFloatingPointFieldWithDefault(msg, 4, 0.0),
13234
+ billercode: jspb.Message.getFieldWithDefault(msg, 5, ""),
13235
+ billerconfigid: jspb.Message.getFieldWithDefault(msg, 6, 0),
13236
+ reference: jspb.Message.getFieldWithDefault(msg, 7, "")
13237
+ };
13238
+
13239
+ if (includeInstance) {
13240
+ obj.$jspbMessageInstance = msg;
13241
+ }
13242
+ return obj;
13243
+ };
13244
+ }
13245
+
13246
+
13247
+ /**
13248
+ * Deserializes binary data (in protobuf wire format).
13249
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
13250
+ * @return {!proto.sniipbillapi.VirtualBill}
13251
+ */
13252
+ proto.sniipbillapi.VirtualBill.deserializeBinary = function(bytes) {
13253
+ var reader = new jspb.BinaryReader(bytes);
13254
+ var msg = new proto.sniipbillapi.VirtualBill;
13255
+ return proto.sniipbillapi.VirtualBill.deserializeBinaryFromReader(msg, reader);
13256
+ };
13257
+
13258
+
13259
+ /**
13260
+ * Deserializes binary data (in protobuf wire format) from the
13261
+ * given reader into the given message object.
13262
+ * @param {!proto.sniipbillapi.VirtualBill} msg The message object to deserialize into.
13263
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
13264
+ * @return {!proto.sniipbillapi.VirtualBill}
13265
+ */
13266
+ proto.sniipbillapi.VirtualBill.deserializeBinaryFromReader = function(msg, reader) {
13267
+ while (reader.nextField()) {
13268
+ if (reader.isEndGroup()) {
13269
+ break;
13270
+ }
13271
+ var field = reader.getFieldNumber();
13272
+ switch (field) {
13273
+ case 1:
13274
+ var value = /** @type {number} */ (reader.readInt64());
13275
+ msg.setVirtualbillid(value);
13276
+ break;
13277
+ case 2:
13278
+ var value = /** @type {number} */ (reader.readInt64());
13279
+ msg.setParentbillid(value);
13280
+ break;
13281
+ case 3:
13282
+ var value = /** @type {number} */ (reader.readDouble());
13283
+ msg.setAmount(value);
13284
+ break;
13285
+ case 4:
13286
+ var value = /** @type {number} */ (reader.readDouble());
13287
+ msg.setRewardamount(value);
13288
+ break;
13289
+ case 5:
13290
+ var value = /** @type {string} */ (reader.readString());
13291
+ msg.setBillercode(value);
13292
+ break;
13293
+ case 6:
13294
+ var value = /** @type {number} */ (reader.readInt64());
13295
+ msg.setBillerconfigid(value);
13296
+ break;
13297
+ case 7:
13298
+ var value = /** @type {string} */ (reader.readString());
13299
+ msg.setReference(value);
13300
+ break;
13301
+ default:
13302
+ reader.skipField();
13303
+ break;
13304
+ }
13305
+ }
13306
+ return msg;
13307
+ };
13308
+
13309
+
13310
+ /**
13311
+ * Serializes the message to binary data (in protobuf wire format).
13312
+ * @return {!Uint8Array}
13313
+ */
13314
+ proto.sniipbillapi.VirtualBill.prototype.serializeBinary = function() {
13315
+ var writer = new jspb.BinaryWriter();
13316
+ proto.sniipbillapi.VirtualBill.serializeBinaryToWriter(this, writer);
13317
+ return writer.getResultBuffer();
13318
+ };
13319
+
13320
+
13321
+ /**
13322
+ * Serializes the given message to binary data (in protobuf wire
13323
+ * format), writing to the given BinaryWriter.
13324
+ * @param {!proto.sniipbillapi.VirtualBill} message
13325
+ * @param {!jspb.BinaryWriter} writer
13326
+ * @suppress {unusedLocalVariables} f is only used for nested messages
13327
+ */
13328
+ proto.sniipbillapi.VirtualBill.serializeBinaryToWriter = function(message, writer) {
13329
+ var f = undefined;
13330
+ f = message.getVirtualbillid();
13331
+ if (f !== 0) {
13332
+ writer.writeInt64(
13333
+ 1,
13334
+ f
13335
+ );
13336
+ }
13337
+ f = message.getParentbillid();
13338
+ if (f !== 0) {
13339
+ writer.writeInt64(
13340
+ 2,
13341
+ f
13342
+ );
13343
+ }
13344
+ f = message.getAmount();
13345
+ if (f !== 0.0) {
13346
+ writer.writeDouble(
13347
+ 3,
13348
+ f
13349
+ );
13350
+ }
13351
+ f = message.getRewardamount();
13352
+ if (f !== 0.0) {
13353
+ writer.writeDouble(
13354
+ 4,
13355
+ f
13356
+ );
13357
+ }
13358
+ f = message.getBillercode();
13359
+ if (f.length > 0) {
13360
+ writer.writeString(
13361
+ 5,
13362
+ f
13363
+ );
13364
+ }
13365
+ f = message.getBillerconfigid();
13366
+ if (f !== 0) {
13367
+ writer.writeInt64(
13368
+ 6,
13369
+ f
13370
+ );
13371
+ }
13372
+ f = message.getReference();
13373
+ if (f.length > 0) {
13374
+ writer.writeString(
13375
+ 7,
13376
+ f
13377
+ );
13378
+ }
13379
+ };
13380
+
13381
+
13382
+ /**
13383
+ * optional int64 virtualBillId = 1;
13384
+ * @return {number}
13385
+ */
13386
+ proto.sniipbillapi.VirtualBill.prototype.getVirtualbillid = function() {
13387
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
13388
+ };
13389
+
13390
+
13391
+ /**
13392
+ * @param {number} value
13393
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13394
+ */
13395
+ proto.sniipbillapi.VirtualBill.prototype.setVirtualbillid = function(value) {
13396
+ return jspb.Message.setProto3IntField(this, 1, value);
13397
+ };
13398
+
13399
+
13400
+ /**
13401
+ * optional int64 parentBillId = 2;
13402
+ * @return {number}
13403
+ */
13404
+ proto.sniipbillapi.VirtualBill.prototype.getParentbillid = function() {
13405
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
13406
+ };
13407
+
13408
+
13409
+ /**
13410
+ * @param {number} value
13411
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13412
+ */
13413
+ proto.sniipbillapi.VirtualBill.prototype.setParentbillid = function(value) {
13414
+ return jspb.Message.setProto3IntField(this, 2, value);
13415
+ };
13416
+
13417
+
13418
+ /**
13419
+ * optional double amount = 3;
13420
+ * @return {number}
13421
+ */
13422
+ proto.sniipbillapi.VirtualBill.prototype.getAmount = function() {
13423
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 3, 0.0));
13424
+ };
13425
+
13426
+
13427
+ /**
13428
+ * @param {number} value
13429
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13430
+ */
13431
+ proto.sniipbillapi.VirtualBill.prototype.setAmount = function(value) {
13432
+ return jspb.Message.setProto3FloatField(this, 3, value);
13433
+ };
13434
+
13435
+
13436
+ /**
13437
+ * optional double rewardAmount = 4;
13438
+ * @return {number}
13439
+ */
13440
+ proto.sniipbillapi.VirtualBill.prototype.getRewardamount = function() {
13441
+ return /** @type {number} */ (jspb.Message.getFloatingPointFieldWithDefault(this, 4, 0.0));
13442
+ };
13443
+
13444
+
13445
+ /**
13446
+ * @param {number} value
13447
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13448
+ */
13449
+ proto.sniipbillapi.VirtualBill.prototype.setRewardamount = function(value) {
13450
+ return jspb.Message.setProto3FloatField(this, 4, value);
13451
+ };
13452
+
13453
+
13454
+ /**
13455
+ * optional string billerCode = 5;
13456
+ * @return {string}
13457
+ */
13458
+ proto.sniipbillapi.VirtualBill.prototype.getBillercode = function() {
13459
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 5, ""));
13460
+ };
13461
+
13462
+
13463
+ /**
13464
+ * @param {string} value
13465
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13466
+ */
13467
+ proto.sniipbillapi.VirtualBill.prototype.setBillercode = function(value) {
13468
+ return jspb.Message.setProto3StringField(this, 5, value);
13469
+ };
13470
+
13471
+
13472
+ /**
13473
+ * optional int64 billerConfigId = 6;
13474
+ * @return {number}
13475
+ */
13476
+ proto.sniipbillapi.VirtualBill.prototype.getBillerconfigid = function() {
13477
+ return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
13478
+ };
13479
+
13480
+
13481
+ /**
13482
+ * @param {number} value
13483
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13484
+ */
13485
+ proto.sniipbillapi.VirtualBill.prototype.setBillerconfigid = function(value) {
13486
+ return jspb.Message.setProto3IntField(this, 6, value);
13487
+ };
13488
+
13489
+
13490
+ /**
13491
+ * optional string reference = 7;
13492
+ * @return {string}
13493
+ */
13494
+ proto.sniipbillapi.VirtualBill.prototype.getReference = function() {
13495
+ return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 7, ""));
13496
+ };
13497
+
13498
+
13499
+ /**
13500
+ * @param {string} value
13501
+ * @return {!proto.sniipbillapi.VirtualBill} returns this
13502
+ */
13503
+ proto.sniipbillapi.VirtualBill.prototype.setReference = function(value) {
13504
+ return jspb.Message.setProto3StringField(this, 7, value);
13505
+ };
13506
+
13507
+
13123
13508
 
13124
13509
  /**
13125
13510
  * List of repeated fields within this message type.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "25.11.14536",
3
+ "version": "25.11.14557",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",