@sniipwebmaster/bill-service-client-grpcweb 0.2.4002 → 0.2.4024

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.
@@ -1575,6 +1575,61 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getUnpaidMbills =
1575
1575
  };
1576
1576
 
1577
1577
 
1578
+ /**
1579
+ * @const
1580
+ * @type {!grpc.web.AbstractClientBase.MethodInfo<
1581
+ * !proto.sniipbillapi.LinkAnonymousBillRequest,
1582
+ * !proto.sniipbillapi.LinkedAnomymousBillResponse>}
1583
+ */
1584
+ const methodInfo_SniipBillAPIService_LinkAnonymousBill = new grpc.web.AbstractClientBase.MethodInfo(
1585
+ proto.sniipbillapi.LinkedAnomymousBillResponse,
1586
+ /** @param {!proto.sniipbillapi.LinkAnonymousBillRequest} request */
1587
+ function(request) {
1588
+ return request.serializeBinary();
1589
+ },
1590
+ proto.sniipbillapi.LinkedAnomymousBillResponse.deserializeBinary
1591
+ );
1592
+
1593
+
1594
+ /**
1595
+ * @param {!proto.sniipbillapi.LinkAnonymousBillRequest} request The
1596
+ * request proto
1597
+ * @param {?Object<string, string>} metadata User defined
1598
+ * call metadata
1599
+ * @param {function(?grpc.web.Error, ?proto.sniipbillapi.LinkedAnomymousBillResponse)}
1600
+ * callback The callback function(error, response)
1601
+ * @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.LinkedAnomymousBillResponse>|undefined}
1602
+ * The XHR Node Readable Stream
1603
+ */
1604
+ proto.sniipbillapi.SniipBillAPIServiceClient.prototype.linkAnonymousBill =
1605
+ function(request, metadata, callback) {
1606
+ return this.client_.rpcCall(this.hostname_ +
1607
+ '/sniipbillapi.SniipBillAPIService/LinkAnonymousBill',
1608
+ request,
1609
+ metadata || {},
1610
+ methodInfo_SniipBillAPIService_LinkAnonymousBill,
1611
+ callback);
1612
+ };
1613
+
1614
+
1615
+ /**
1616
+ * @param {!proto.sniipbillapi.LinkAnonymousBillRequest} request The
1617
+ * request proto
1618
+ * @param {?Object<string, string>} metadata User defined
1619
+ * call metadata
1620
+ * @return {!Promise<!proto.sniipbillapi.LinkedAnomymousBillResponse>}
1621
+ * A native promise that resolves to the response
1622
+ */
1623
+ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.linkAnonymousBill =
1624
+ function(request, metadata) {
1625
+ return this.client_.unaryCall(this.hostname_ +
1626
+ '/sniipbillapi.SniipBillAPIService/LinkAnonymousBill',
1627
+ request,
1628
+ metadata || {},
1629
+ methodInfo_SniipBillAPIService_LinkAnonymousBill);
1630
+ };
1631
+
1632
+
1578
1633
  /**
1579
1634
  * @const
1580
1635
  * @type {!grpc.web.AbstractClientBase.MethodInfo<
@@ -74,10 +74,13 @@ goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsRequest', null, global);
74
74
  goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsResponse', null, global);
75
75
  goog.exportSymbol('proto.sniipbillapi.Invoice', null, global);
76
76
  goog.exportSymbol('proto.sniipbillapi.InvoiceBillPair', null, global);
77
+ goog.exportSymbol('proto.sniipbillapi.LinkAnonymousBillRequest', null, global);
78
+ goog.exportSymbol('proto.sniipbillapi.LinkedAnomymousBillResponse', null, global);
77
79
  goog.exportSymbol('proto.sniipbillapi.MarkBillAsPaidRequest', null, global);
78
80
  goog.exportSymbol('proto.sniipbillapi.MarkBillAsUnpaidRequest', null, global);
79
81
  goog.exportSymbol('proto.sniipbillapi.Mbill', null, global);
80
82
  goog.exportSymbol('proto.sniipbillapi.MbillBillPair', null, global);
83
+ goog.exportSymbol('proto.sniipbillapi.ObjectType', null, global);
81
84
  goog.exportSymbol('proto.sniipbillapi.PaidBillCount', null, global);
82
85
  goog.exportSymbol('proto.sniipbillapi.PaymentMethodDetails', null, global);
83
86
  goog.exportSymbol('proto.sniipbillapi.ResponseCode', null, global);
@@ -15262,6 +15265,395 @@ proto.sniipbillapi.InvoiceBillPair.prototype.setUserid = function(value) {
15262
15265
 
15263
15266
 
15264
15267
 
15268
+ /**
15269
+ * Generated by JsPbCodeGenerator.
15270
+ * @param {Array=} opt_data Optional initial data array, typically from a
15271
+ * server response, or constructed directly in Javascript. The array is used
15272
+ * in place and becomes part of the constructed object. It is not cloned.
15273
+ * If no data is provided, the constructed object will be empty, but still
15274
+ * valid.
15275
+ * @extends {jspb.Message}
15276
+ * @constructor
15277
+ */
15278
+ proto.sniipbillapi.LinkAnonymousBillRequest = function(opt_data) {
15279
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
15280
+ };
15281
+ goog.inherits(proto.sniipbillapi.LinkAnonymousBillRequest, jspb.Message);
15282
+ if (goog.DEBUG && !COMPILED) {
15283
+ proto.sniipbillapi.LinkAnonymousBillRequest.displayName = 'proto.sniipbillapi.LinkAnonymousBillRequest';
15284
+ }
15285
+
15286
+
15287
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15288
+ /**
15289
+ * Creates an object representation of this proto suitable for use in Soy templates.
15290
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15291
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15292
+ * For the list of reserved names please see:
15293
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
15294
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
15295
+ * for transitional soy proto support: http://goto/soy-param-migration
15296
+ * @return {!Object}
15297
+ */
15298
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.toObject = function(opt_includeInstance) {
15299
+ return proto.sniipbillapi.LinkAnonymousBillRequest.toObject(opt_includeInstance, this);
15300
+ };
15301
+
15302
+
15303
+ /**
15304
+ * Static version of the {@see toObject} method.
15305
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
15306
+ * instance for transitional soy proto support:
15307
+ * http://goto/soy-param-migration
15308
+ * @param {!proto.sniipbillapi.LinkAnonymousBillRequest} msg The msg instance to transform.
15309
+ * @return {!Object}
15310
+ */
15311
+ proto.sniipbillapi.LinkAnonymousBillRequest.toObject = function(includeInstance, msg) {
15312
+ var f, obj = {
15313
+ billid: msg.getBillid()
15314
+ };
15315
+
15316
+ if (includeInstance) {
15317
+ obj.$jspbMessageInstance = msg;
15318
+ }
15319
+ return obj;
15320
+ };
15321
+ }
15322
+
15323
+
15324
+ /**
15325
+ * Deserializes binary data (in protobuf wire format).
15326
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15327
+ * @return {!proto.sniipbillapi.LinkAnonymousBillRequest}
15328
+ */
15329
+ proto.sniipbillapi.LinkAnonymousBillRequest.deserializeBinary = function(bytes) {
15330
+ var reader = new jspb.BinaryReader(bytes);
15331
+ var msg = new proto.sniipbillapi.LinkAnonymousBillRequest;
15332
+ return proto.sniipbillapi.LinkAnonymousBillRequest.deserializeBinaryFromReader(msg, reader);
15333
+ };
15334
+
15335
+
15336
+ /**
15337
+ * Deserializes binary data (in protobuf wire format) from the
15338
+ * given reader into the given message object.
15339
+ * @param {!proto.sniipbillapi.LinkAnonymousBillRequest} msg The message object to deserialize into.
15340
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15341
+ * @return {!proto.sniipbillapi.LinkAnonymousBillRequest}
15342
+ */
15343
+ proto.sniipbillapi.LinkAnonymousBillRequest.deserializeBinaryFromReader = function(msg, reader) {
15344
+ while (reader.nextField()) {
15345
+ if (reader.isEndGroup()) {
15346
+ break;
15347
+ }
15348
+ var field = reader.getFieldNumber();
15349
+ switch (field) {
15350
+ case 1:
15351
+ var value = /** @type {number} */ (reader.readInt64());
15352
+ msg.setBillid(value);
15353
+ break;
15354
+ default:
15355
+ reader.skipField();
15356
+ break;
15357
+ }
15358
+ }
15359
+ return msg;
15360
+ };
15361
+
15362
+
15363
+ /**
15364
+ * Class method variant: serializes the given message to binary data
15365
+ * (in protobuf wire format), writing to the given BinaryWriter.
15366
+ * @param {!proto.sniipbillapi.LinkAnonymousBillRequest} message
15367
+ * @param {!jspb.BinaryWriter} writer
15368
+ */
15369
+ proto.sniipbillapi.LinkAnonymousBillRequest.serializeBinaryToWriter = function(message, writer) {
15370
+ message.serializeBinaryToWriter(writer);
15371
+ };
15372
+
15373
+
15374
+ /**
15375
+ * Serializes the message to binary data (in protobuf wire format).
15376
+ * @return {!Uint8Array}
15377
+ */
15378
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.serializeBinary = function() {
15379
+ var writer = new jspb.BinaryWriter();
15380
+ this.serializeBinaryToWriter(writer);
15381
+ return writer.getResultBuffer();
15382
+ };
15383
+
15384
+
15385
+ /**
15386
+ * Serializes the message to binary data (in protobuf wire format),
15387
+ * writing to the given BinaryWriter.
15388
+ * @param {!jspb.BinaryWriter} writer
15389
+ */
15390
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.serializeBinaryToWriter = function (writer) {
15391
+ var f = undefined;
15392
+ f = this.getBillid();
15393
+ if (f !== 0) {
15394
+ writer.writeInt64(
15395
+ 1,
15396
+ f
15397
+ );
15398
+ }
15399
+ };
15400
+
15401
+
15402
+ /**
15403
+ * Creates a deep clone of this proto. No data is shared with the original.
15404
+ * @return {!proto.sniipbillapi.LinkAnonymousBillRequest} The clone.
15405
+ */
15406
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.cloneMessage = function() {
15407
+ return /** @type {!proto.sniipbillapi.LinkAnonymousBillRequest} */ (jspb.Message.cloneMessage(this));
15408
+ };
15409
+
15410
+
15411
+ /**
15412
+ * optional int64 billId = 1;
15413
+ * @return {number}
15414
+ */
15415
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.getBillid = function() {
15416
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
15417
+ };
15418
+
15419
+
15420
+ /** @param {number} value */
15421
+ proto.sniipbillapi.LinkAnonymousBillRequest.prototype.setBillid = function(value) {
15422
+ jspb.Message.setField(this, 1, value);
15423
+ };
15424
+
15425
+
15426
+
15427
+ /**
15428
+ * Generated by JsPbCodeGenerator.
15429
+ * @param {Array=} opt_data Optional initial data array, typically from a
15430
+ * server response, or constructed directly in Javascript. The array is used
15431
+ * in place and becomes part of the constructed object. It is not cloned.
15432
+ * If no data is provided, the constructed object will be empty, but still
15433
+ * valid.
15434
+ * @extends {jspb.Message}
15435
+ * @constructor
15436
+ */
15437
+ proto.sniipbillapi.LinkedAnomymousBillResponse = function(opt_data) {
15438
+ jspb.Message.initialize(this, opt_data, 0, -1, null, null);
15439
+ };
15440
+ goog.inherits(proto.sniipbillapi.LinkedAnomymousBillResponse, jspb.Message);
15441
+ if (goog.DEBUG && !COMPILED) {
15442
+ proto.sniipbillapi.LinkedAnomymousBillResponse.displayName = 'proto.sniipbillapi.LinkedAnomymousBillResponse';
15443
+ }
15444
+
15445
+
15446
+ if (jspb.Message.GENERATE_TO_OBJECT) {
15447
+ /**
15448
+ * Creates an object representation of this proto suitable for use in Soy templates.
15449
+ * Field names that are reserved in JavaScript and will be renamed to pb_name.
15450
+ * To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
15451
+ * For the list of reserved names please see:
15452
+ * com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
15453
+ * @param {boolean=} opt_includeInstance Whether to include the JSPB instance
15454
+ * for transitional soy proto support: http://goto/soy-param-migration
15455
+ * @return {!Object}
15456
+ */
15457
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.toObject = function(opt_includeInstance) {
15458
+ return proto.sniipbillapi.LinkedAnomymousBillResponse.toObject(opt_includeInstance, this);
15459
+ };
15460
+
15461
+
15462
+ /**
15463
+ * Static version of the {@see toObject} method.
15464
+ * @param {boolean|undefined} includeInstance Whether to include the JSPB
15465
+ * instance for transitional soy proto support:
15466
+ * http://goto/soy-param-migration
15467
+ * @param {!proto.sniipbillapi.LinkedAnomymousBillResponse} msg The msg instance to transform.
15468
+ * @return {!Object}
15469
+ */
15470
+ proto.sniipbillapi.LinkedAnomymousBillResponse.toObject = function(includeInstance, msg) {
15471
+ var f, obj = {
15472
+ responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f),
15473
+ objectid: msg.getObjectid(),
15474
+ objecttype: msg.getObjecttype()
15475
+ };
15476
+
15477
+ if (includeInstance) {
15478
+ obj.$jspbMessageInstance = msg;
15479
+ }
15480
+ return obj;
15481
+ };
15482
+ }
15483
+
15484
+
15485
+ /**
15486
+ * Deserializes binary data (in protobuf wire format).
15487
+ * @param {jspb.ByteSource} bytes The bytes to deserialize.
15488
+ * @return {!proto.sniipbillapi.LinkedAnomymousBillResponse}
15489
+ */
15490
+ proto.sniipbillapi.LinkedAnomymousBillResponse.deserializeBinary = function(bytes) {
15491
+ var reader = new jspb.BinaryReader(bytes);
15492
+ var msg = new proto.sniipbillapi.LinkedAnomymousBillResponse;
15493
+ return proto.sniipbillapi.LinkedAnomymousBillResponse.deserializeBinaryFromReader(msg, reader);
15494
+ };
15495
+
15496
+
15497
+ /**
15498
+ * Deserializes binary data (in protobuf wire format) from the
15499
+ * given reader into the given message object.
15500
+ * @param {!proto.sniipbillapi.LinkedAnomymousBillResponse} msg The message object to deserialize into.
15501
+ * @param {!jspb.BinaryReader} reader The BinaryReader to use.
15502
+ * @return {!proto.sniipbillapi.LinkedAnomymousBillResponse}
15503
+ */
15504
+ proto.sniipbillapi.LinkedAnomymousBillResponse.deserializeBinaryFromReader = function(msg, reader) {
15505
+ while (reader.nextField()) {
15506
+ if (reader.isEndGroup()) {
15507
+ break;
15508
+ }
15509
+ var field = reader.getFieldNumber();
15510
+ switch (field) {
15511
+ case 1:
15512
+ var value = new proto.sniipbillapi.ResponseCode;
15513
+ reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
15514
+ msg.setResponsecode(value);
15515
+ break;
15516
+ case 2:
15517
+ var value = /** @type {number} */ (reader.readInt64());
15518
+ msg.setObjectid(value);
15519
+ break;
15520
+ case 3:
15521
+ var value = /** @type {!proto.sniipbillapi.ObjectType} */ (reader.readEnum());
15522
+ msg.setObjecttype(value);
15523
+ break;
15524
+ default:
15525
+ reader.skipField();
15526
+ break;
15527
+ }
15528
+ }
15529
+ return msg;
15530
+ };
15531
+
15532
+
15533
+ /**
15534
+ * Class method variant: serializes the given message to binary data
15535
+ * (in protobuf wire format), writing to the given BinaryWriter.
15536
+ * @param {!proto.sniipbillapi.LinkedAnomymousBillResponse} message
15537
+ * @param {!jspb.BinaryWriter} writer
15538
+ */
15539
+ proto.sniipbillapi.LinkedAnomymousBillResponse.serializeBinaryToWriter = function(message, writer) {
15540
+ message.serializeBinaryToWriter(writer);
15541
+ };
15542
+
15543
+
15544
+ /**
15545
+ * Serializes the message to binary data (in protobuf wire format).
15546
+ * @return {!Uint8Array}
15547
+ */
15548
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.serializeBinary = function() {
15549
+ var writer = new jspb.BinaryWriter();
15550
+ this.serializeBinaryToWriter(writer);
15551
+ return writer.getResultBuffer();
15552
+ };
15553
+
15554
+
15555
+ /**
15556
+ * Serializes the message to binary data (in protobuf wire format),
15557
+ * writing to the given BinaryWriter.
15558
+ * @param {!jspb.BinaryWriter} writer
15559
+ */
15560
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.serializeBinaryToWriter = function (writer) {
15561
+ var f = undefined;
15562
+ f = this.getResponsecode();
15563
+ if (f != null) {
15564
+ writer.writeMessage(
15565
+ 1,
15566
+ f,
15567
+ proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
15568
+ );
15569
+ }
15570
+ f = this.getObjectid();
15571
+ if (f !== 0) {
15572
+ writer.writeInt64(
15573
+ 2,
15574
+ f
15575
+ );
15576
+ }
15577
+ f = this.getObjecttype();
15578
+ if (f !== 0.0) {
15579
+ writer.writeEnum(
15580
+ 3,
15581
+ f
15582
+ );
15583
+ }
15584
+ };
15585
+
15586
+
15587
+ /**
15588
+ * Creates a deep clone of this proto. No data is shared with the original.
15589
+ * @return {!proto.sniipbillapi.LinkedAnomymousBillResponse} The clone.
15590
+ */
15591
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.cloneMessage = function() {
15592
+ return /** @type {!proto.sniipbillapi.LinkedAnomymousBillResponse} */ (jspb.Message.cloneMessage(this));
15593
+ };
15594
+
15595
+
15596
+ /**
15597
+ * optional ResponseCode responseCode = 1;
15598
+ * @return {proto.sniipbillapi.ResponseCode}
15599
+ */
15600
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.getResponsecode = function() {
15601
+ return /** @type{proto.sniipbillapi.ResponseCode} */ (
15602
+ jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 1));
15603
+ };
15604
+
15605
+
15606
+ /** @param {proto.sniipbillapi.ResponseCode|undefined} value */
15607
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.setResponsecode = function(value) {
15608
+ jspb.Message.setWrapperField(this, 1, value);
15609
+ };
15610
+
15611
+
15612
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.clearResponsecode = function() {
15613
+ this.setResponsecode(undefined);
15614
+ };
15615
+
15616
+
15617
+ /**
15618
+ * Returns whether this field is set.
15619
+ * @return{!boolean}
15620
+ */
15621
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.hasResponsecode = function() {
15622
+ return jspb.Message.getField(this, 1) != null;
15623
+ };
15624
+
15625
+
15626
+ /**
15627
+ * optional int64 objectId = 2;
15628
+ * @return {number}
15629
+ */
15630
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.getObjectid = function() {
15631
+ return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
15632
+ };
15633
+
15634
+
15635
+ /** @param {number} value */
15636
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.setObjectid = function(value) {
15637
+ jspb.Message.setField(this, 2, value);
15638
+ };
15639
+
15640
+
15641
+ /**
15642
+ * optional ObjectType objectType = 3;
15643
+ * @return {!proto.sniipbillapi.ObjectType}
15644
+ */
15645
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.getObjecttype = function() {
15646
+ return /** @type {!proto.sniipbillapi.ObjectType} */ (jspb.Message.getFieldProto3(this, 3, 0));
15647
+ };
15648
+
15649
+
15650
+ /** @param {!proto.sniipbillapi.ObjectType} value */
15651
+ proto.sniipbillapi.LinkedAnomymousBillResponse.prototype.setObjecttype = function(value) {
15652
+ jspb.Message.setField(this, 3, value);
15653
+ };
15654
+
15655
+
15656
+
15265
15657
  /**
15266
15658
  * Generated by JsPbCodeGenerator.
15267
15659
  * @param {Array=} opt_data Optional initial data array, typically from a
@@ -23153,4 +23545,19 @@ proto.sniipbillapi.BillScanType = {
23153
23545
  XERO: 3
23154
23546
  };
23155
23547
 
23548
+ /**
23549
+ * @enum {number}
23550
+ */
23551
+ proto.sniipbillapi.ObjectType = {
23552
+ BILL: 0,
23553
+ DONATION: 1,
23554
+ SNIIP_NAVIGATE_INTERNAL_URL: 2,
23555
+ SNIIP_NAVIGATE_EXTERNAL_URL: 3,
23556
+ SNIIP_NAVIGATE_SUPPORT_CHARITY: 4,
23557
+ SNIIP_NAVIGATE_PAYMENT_METHODS: 5,
23558
+ SNIIP_NAVIGATE_PAYMENT_METHOD_WITH_ID: 6,
23559
+ SNIIP_OPEN_APP: 7,
23560
+ SNIIP_NAVIGATE_BILL_DETAILS: 8
23561
+ };
23562
+
23156
23563
  goog.object.extend(exports, proto.sniipbillapi);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sniipwebmaster/bill-service-client-grpcweb",
3
- "version": "0.2.4002",
3
+ "version": "0.2.4024",
4
4
  "description": "bill-service-client-grpcweb",
5
5
  "author": "Sniip Development Team",
6
6
  "license": "MIT",