@sniipwebmaster/bill-service-client-grpcweb 23.9.11854 → 23.9.11873
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.
|
@@ -4554,5 +4554,85 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.validateBillOwner
|
|
|
4554
4554
|
};
|
|
4555
4555
|
|
|
4556
4556
|
|
|
4557
|
+
/**
|
|
4558
|
+
* @const
|
|
4559
|
+
* @type {!grpc.web.MethodDescriptor<
|
|
4560
|
+
* !proto.google.protobuf.Empty,
|
|
4561
|
+
* !proto.sniipbillapi.GetToPayCountsResponse>}
|
|
4562
|
+
*/
|
|
4563
|
+
const methodDescriptor_SniipBillAPIService_GetToPayCounts = new grpc.web.MethodDescriptor(
|
|
4564
|
+
'/sniipbillapi.SniipBillAPIService/GetToPayCounts',
|
|
4565
|
+
grpc.web.MethodType.UNARY,
|
|
4566
|
+
google_protobuf_empty_pb.Empty,
|
|
4567
|
+
proto.sniipbillapi.GetToPayCountsResponse,
|
|
4568
|
+
/**
|
|
4569
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
4570
|
+
* @return {!Uint8Array}
|
|
4571
|
+
*/
|
|
4572
|
+
function(request) {
|
|
4573
|
+
return request.serializeBinary();
|
|
4574
|
+
},
|
|
4575
|
+
proto.sniipbillapi.GetToPayCountsResponse.deserializeBinary
|
|
4576
|
+
);
|
|
4577
|
+
|
|
4578
|
+
|
|
4579
|
+
/**
|
|
4580
|
+
* @const
|
|
4581
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
4582
|
+
* !proto.google.protobuf.Empty,
|
|
4583
|
+
* !proto.sniipbillapi.GetToPayCountsResponse>}
|
|
4584
|
+
*/
|
|
4585
|
+
const methodInfo_SniipBillAPIService_GetToPayCounts = new grpc.web.AbstractClientBase.MethodInfo(
|
|
4586
|
+
proto.sniipbillapi.GetToPayCountsResponse,
|
|
4587
|
+
/**
|
|
4588
|
+
* @param {!proto.google.protobuf.Empty} request
|
|
4589
|
+
* @return {!Uint8Array}
|
|
4590
|
+
*/
|
|
4591
|
+
function(request) {
|
|
4592
|
+
return request.serializeBinary();
|
|
4593
|
+
},
|
|
4594
|
+
proto.sniipbillapi.GetToPayCountsResponse.deserializeBinary
|
|
4595
|
+
);
|
|
4596
|
+
|
|
4597
|
+
|
|
4598
|
+
/**
|
|
4599
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
4600
|
+
* request proto
|
|
4601
|
+
* @param {?Object<string, string>} metadata User defined
|
|
4602
|
+
* call metadata
|
|
4603
|
+
* @param {function(?grpc.web.Error, ?proto.sniipbillapi.GetToPayCountsResponse)}
|
|
4604
|
+
* callback The callback function(error, response)
|
|
4605
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.GetToPayCountsResponse>|undefined}
|
|
4606
|
+
* The XHR Node Readable Stream
|
|
4607
|
+
*/
|
|
4608
|
+
proto.sniipbillapi.SniipBillAPIServiceClient.prototype.getToPayCounts =
|
|
4609
|
+
function(request, metadata, callback) {
|
|
4610
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
4611
|
+
'/sniipbillapi.SniipBillAPIService/GetToPayCounts',
|
|
4612
|
+
request,
|
|
4613
|
+
metadata || {},
|
|
4614
|
+
methodDescriptor_SniipBillAPIService_GetToPayCounts,
|
|
4615
|
+
callback);
|
|
4616
|
+
};
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
/**
|
|
4620
|
+
* @param {!proto.google.protobuf.Empty} request The
|
|
4621
|
+
* request proto
|
|
4622
|
+
* @param {?Object<string, string>} metadata User defined
|
|
4623
|
+
* call metadata
|
|
4624
|
+
* @return {!Promise<!proto.sniipbillapi.GetToPayCountsResponse>}
|
|
4625
|
+
* Promise that resolves to the response
|
|
4626
|
+
*/
|
|
4627
|
+
proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.getToPayCounts =
|
|
4628
|
+
function(request, metadata) {
|
|
4629
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
4630
|
+
'/sniipbillapi.SniipBillAPIService/GetToPayCounts',
|
|
4631
|
+
request,
|
|
4632
|
+
metadata || {},
|
|
4633
|
+
methodDescriptor_SniipBillAPIService_GetToPayCounts);
|
|
4634
|
+
};
|
|
4635
|
+
|
|
4636
|
+
|
|
4557
4637
|
module.exports = proto.sniipbillapi;
|
|
4558
4638
|
|
|
@@ -90,6 +90,7 @@ goog.exportSymbol('proto.sniipbillapi.GetItemPaymentDetailsInternalRequest', nul
|
|
|
90
90
|
goog.exportSymbol('proto.sniipbillapi.GetItemPaymentDetailsRequest', null, global);
|
|
91
91
|
goog.exportSymbol('proto.sniipbillapi.GetSimpleBillRequest', null, global);
|
|
92
92
|
goog.exportSymbol('proto.sniipbillapi.GetToDoListRequest', null, global);
|
|
93
|
+
goog.exportSymbol('proto.sniipbillapi.GetToPayCountsResponse', null, global);
|
|
93
94
|
goog.exportSymbol('proto.sniipbillapi.GetTodoRequest', null, global);
|
|
94
95
|
goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsRequest', null, global);
|
|
95
96
|
goog.exportSymbol('proto.sniipbillapi.GetUnpaidMbillsResponse', null, global);
|
|
@@ -2862,6 +2863,27 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
2862
2863
|
*/
|
|
2863
2864
|
proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse.displayName = 'proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse';
|
|
2864
2865
|
}
|
|
2866
|
+
/**
|
|
2867
|
+
* Generated by JsPbCodeGenerator.
|
|
2868
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
2869
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
2870
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
2871
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
2872
|
+
* valid.
|
|
2873
|
+
* @extends {jspb.Message}
|
|
2874
|
+
* @constructor
|
|
2875
|
+
*/
|
|
2876
|
+
proto.sniipbillapi.GetToPayCountsResponse = function(opt_data) {
|
|
2877
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
2878
|
+
};
|
|
2879
|
+
goog.inherits(proto.sniipbillapi.GetToPayCountsResponse, jspb.Message);
|
|
2880
|
+
if (goog.DEBUG && !COMPILED) {
|
|
2881
|
+
/**
|
|
2882
|
+
* @public
|
|
2883
|
+
* @override
|
|
2884
|
+
*/
|
|
2885
|
+
proto.sniipbillapi.GetToPayCountsResponse.displayName = 'proto.sniipbillapi.GetToPayCountsResponse';
|
|
2886
|
+
}
|
|
2865
2887
|
|
|
2866
2888
|
|
|
2867
2889
|
|
|
@@ -36397,6 +36419,217 @@ proto.sniipbillapi.XeroCreateOrUpdateBillFromInvoiceResponse.prototype.hasRespon
|
|
|
36397
36419
|
};
|
|
36398
36420
|
|
|
36399
36421
|
|
|
36422
|
+
|
|
36423
|
+
|
|
36424
|
+
|
|
36425
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
36426
|
+
/**
|
|
36427
|
+
* Creates an object representation of this proto.
|
|
36428
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
36429
|
+
* Optional fields that are not set will be set to undefined.
|
|
36430
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
36431
|
+
* For the list of reserved names please see:
|
|
36432
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
36433
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
36434
|
+
* JSPB instance for transitional soy proto support:
|
|
36435
|
+
* http://goto/soy-param-migration
|
|
36436
|
+
* @return {!Object}
|
|
36437
|
+
*/
|
|
36438
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
36439
|
+
return proto.sniipbillapi.GetToPayCountsResponse.toObject(opt_includeInstance, this);
|
|
36440
|
+
};
|
|
36441
|
+
|
|
36442
|
+
|
|
36443
|
+
/**
|
|
36444
|
+
* Static version of the {@see toObject} method.
|
|
36445
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
36446
|
+
* the JSPB instance for transitional soy proto support:
|
|
36447
|
+
* http://goto/soy-param-migration
|
|
36448
|
+
* @param {!proto.sniipbillapi.GetToPayCountsResponse} msg The msg instance to transform.
|
|
36449
|
+
* @return {!Object}
|
|
36450
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36451
|
+
*/
|
|
36452
|
+
proto.sniipbillapi.GetToPayCountsResponse.toObject = function(includeInstance, msg) {
|
|
36453
|
+
var f, obj = {
|
|
36454
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f),
|
|
36455
|
+
standardbillscount: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
36456
|
+
agentbilldeliverybatchescount: jspb.Message.getFieldWithDefault(msg, 3, 0)
|
|
36457
|
+
};
|
|
36458
|
+
|
|
36459
|
+
if (includeInstance) {
|
|
36460
|
+
obj.$jspbMessageInstance = msg;
|
|
36461
|
+
}
|
|
36462
|
+
return obj;
|
|
36463
|
+
};
|
|
36464
|
+
}
|
|
36465
|
+
|
|
36466
|
+
|
|
36467
|
+
/**
|
|
36468
|
+
* Deserializes binary data (in protobuf wire format).
|
|
36469
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
36470
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse}
|
|
36471
|
+
*/
|
|
36472
|
+
proto.sniipbillapi.GetToPayCountsResponse.deserializeBinary = function(bytes) {
|
|
36473
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
36474
|
+
var msg = new proto.sniipbillapi.GetToPayCountsResponse;
|
|
36475
|
+
return proto.sniipbillapi.GetToPayCountsResponse.deserializeBinaryFromReader(msg, reader);
|
|
36476
|
+
};
|
|
36477
|
+
|
|
36478
|
+
|
|
36479
|
+
/**
|
|
36480
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
36481
|
+
* given reader into the given message object.
|
|
36482
|
+
* @param {!proto.sniipbillapi.GetToPayCountsResponse} msg The message object to deserialize into.
|
|
36483
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
36484
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse}
|
|
36485
|
+
*/
|
|
36486
|
+
proto.sniipbillapi.GetToPayCountsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
36487
|
+
while (reader.nextField()) {
|
|
36488
|
+
if (reader.isEndGroup()) {
|
|
36489
|
+
break;
|
|
36490
|
+
}
|
|
36491
|
+
var field = reader.getFieldNumber();
|
|
36492
|
+
switch (field) {
|
|
36493
|
+
case 1:
|
|
36494
|
+
var value = new proto.sniipbillapi.ResponseCode;
|
|
36495
|
+
reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
|
|
36496
|
+
msg.setResponsecode(value);
|
|
36497
|
+
break;
|
|
36498
|
+
case 2:
|
|
36499
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36500
|
+
msg.setStandardbillscount(value);
|
|
36501
|
+
break;
|
|
36502
|
+
case 3:
|
|
36503
|
+
var value = /** @type {number} */ (reader.readInt32());
|
|
36504
|
+
msg.setAgentbilldeliverybatchescount(value);
|
|
36505
|
+
break;
|
|
36506
|
+
default:
|
|
36507
|
+
reader.skipField();
|
|
36508
|
+
break;
|
|
36509
|
+
}
|
|
36510
|
+
}
|
|
36511
|
+
return msg;
|
|
36512
|
+
};
|
|
36513
|
+
|
|
36514
|
+
|
|
36515
|
+
/**
|
|
36516
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
36517
|
+
* @return {!Uint8Array}
|
|
36518
|
+
*/
|
|
36519
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.serializeBinary = function() {
|
|
36520
|
+
var writer = new jspb.BinaryWriter();
|
|
36521
|
+
proto.sniipbillapi.GetToPayCountsResponse.serializeBinaryToWriter(this, writer);
|
|
36522
|
+
return writer.getResultBuffer();
|
|
36523
|
+
};
|
|
36524
|
+
|
|
36525
|
+
|
|
36526
|
+
/**
|
|
36527
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
36528
|
+
* format), writing to the given BinaryWriter.
|
|
36529
|
+
* @param {!proto.sniipbillapi.GetToPayCountsResponse} message
|
|
36530
|
+
* @param {!jspb.BinaryWriter} writer
|
|
36531
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
36532
|
+
*/
|
|
36533
|
+
proto.sniipbillapi.GetToPayCountsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
36534
|
+
var f = undefined;
|
|
36535
|
+
f = message.getResponsecode();
|
|
36536
|
+
if (f != null) {
|
|
36537
|
+
writer.writeMessage(
|
|
36538
|
+
1,
|
|
36539
|
+
f,
|
|
36540
|
+
proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
|
|
36541
|
+
);
|
|
36542
|
+
}
|
|
36543
|
+
f = message.getStandardbillscount();
|
|
36544
|
+
if (f !== 0) {
|
|
36545
|
+
writer.writeInt32(
|
|
36546
|
+
2,
|
|
36547
|
+
f
|
|
36548
|
+
);
|
|
36549
|
+
}
|
|
36550
|
+
f = message.getAgentbilldeliverybatchescount();
|
|
36551
|
+
if (f !== 0) {
|
|
36552
|
+
writer.writeInt32(
|
|
36553
|
+
3,
|
|
36554
|
+
f
|
|
36555
|
+
);
|
|
36556
|
+
}
|
|
36557
|
+
};
|
|
36558
|
+
|
|
36559
|
+
|
|
36560
|
+
/**
|
|
36561
|
+
* optional ResponseCode responseCode = 1;
|
|
36562
|
+
* @return {?proto.sniipbillapi.ResponseCode}
|
|
36563
|
+
*/
|
|
36564
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.getResponsecode = function() {
|
|
36565
|
+
return /** @type{?proto.sniipbillapi.ResponseCode} */ (
|
|
36566
|
+
jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 1));
|
|
36567
|
+
};
|
|
36568
|
+
|
|
36569
|
+
|
|
36570
|
+
/**
|
|
36571
|
+
* @param {?proto.sniipbillapi.ResponseCode|undefined} value
|
|
36572
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse} returns this
|
|
36573
|
+
*/
|
|
36574
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.setResponsecode = function(value) {
|
|
36575
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
36576
|
+
};
|
|
36577
|
+
|
|
36578
|
+
|
|
36579
|
+
/**
|
|
36580
|
+
* Clears the message field making it undefined.
|
|
36581
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse} returns this
|
|
36582
|
+
*/
|
|
36583
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.clearResponsecode = function() {
|
|
36584
|
+
return this.setResponsecode(undefined);
|
|
36585
|
+
};
|
|
36586
|
+
|
|
36587
|
+
|
|
36588
|
+
/**
|
|
36589
|
+
* Returns whether this field is set.
|
|
36590
|
+
* @return {boolean}
|
|
36591
|
+
*/
|
|
36592
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.hasResponsecode = function() {
|
|
36593
|
+
return jspb.Message.getField(this, 1) != null;
|
|
36594
|
+
};
|
|
36595
|
+
|
|
36596
|
+
|
|
36597
|
+
/**
|
|
36598
|
+
* optional int32 standardBillsCount = 2;
|
|
36599
|
+
* @return {number}
|
|
36600
|
+
*/
|
|
36601
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.getStandardbillscount = function() {
|
|
36602
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
36603
|
+
};
|
|
36604
|
+
|
|
36605
|
+
|
|
36606
|
+
/**
|
|
36607
|
+
* @param {number} value
|
|
36608
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse} returns this
|
|
36609
|
+
*/
|
|
36610
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.setStandardbillscount = function(value) {
|
|
36611
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
36612
|
+
};
|
|
36613
|
+
|
|
36614
|
+
|
|
36615
|
+
/**
|
|
36616
|
+
* optional int32 agentBillDeliveryBatchesCount = 3;
|
|
36617
|
+
* @return {number}
|
|
36618
|
+
*/
|
|
36619
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.getAgentbilldeliverybatchescount = function() {
|
|
36620
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 3, 0));
|
|
36621
|
+
};
|
|
36622
|
+
|
|
36623
|
+
|
|
36624
|
+
/**
|
|
36625
|
+
* @param {number} value
|
|
36626
|
+
* @return {!proto.sniipbillapi.GetToPayCountsResponse} returns this
|
|
36627
|
+
*/
|
|
36628
|
+
proto.sniipbillapi.GetToPayCountsResponse.prototype.setAgentbilldeliverybatchescount = function(value) {
|
|
36629
|
+
return jspb.Message.setProto3IntField(this, 3, value);
|
|
36630
|
+
};
|
|
36631
|
+
|
|
36632
|
+
|
|
36400
36633
|
/**
|
|
36401
36634
|
* @enum {number}
|
|
36402
36635
|
*/
|