@sniipwebmaster/bill-service-client-grpcweb 0.2.3756 → 0.2.3778
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.
|
@@ -640,6 +640,61 @@ proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.createBills =
|
|
|
640
640
|
};
|
|
641
641
|
|
|
642
642
|
|
|
643
|
+
/**
|
|
644
|
+
* @const
|
|
645
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
646
|
+
* !proto.sniipbillapi.CreateDraftBillRequest,
|
|
647
|
+
* !proto.sniipbillapi.BillCreateResponse>}
|
|
648
|
+
*/
|
|
649
|
+
const methodInfo_SniipBillAPIService_CreateDraftBill = new grpc.web.AbstractClientBase.MethodInfo(
|
|
650
|
+
proto.sniipbillapi.BillCreateResponse,
|
|
651
|
+
/** @param {!proto.sniipbillapi.CreateDraftBillRequest} request */
|
|
652
|
+
function(request) {
|
|
653
|
+
return request.serializeBinary();
|
|
654
|
+
},
|
|
655
|
+
proto.sniipbillapi.BillCreateResponse.deserializeBinary
|
|
656
|
+
);
|
|
657
|
+
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* @param {!proto.sniipbillapi.CreateDraftBillRequest} request The
|
|
661
|
+
* request proto
|
|
662
|
+
* @param {?Object<string, string>} metadata User defined
|
|
663
|
+
* call metadata
|
|
664
|
+
* @param {function(?grpc.web.Error, ?proto.sniipbillapi.BillCreateResponse)}
|
|
665
|
+
* callback The callback function(error, response)
|
|
666
|
+
* @return {!grpc.web.ClientReadableStream<!proto.sniipbillapi.BillCreateResponse>|undefined}
|
|
667
|
+
* The XHR Node Readable Stream
|
|
668
|
+
*/
|
|
669
|
+
proto.sniipbillapi.SniipBillAPIServiceClient.prototype.createDraftBill =
|
|
670
|
+
function(request, metadata, callback) {
|
|
671
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
672
|
+
'/sniipbillapi.SniipBillAPIService/CreateDraftBill',
|
|
673
|
+
request,
|
|
674
|
+
metadata || {},
|
|
675
|
+
methodInfo_SniipBillAPIService_CreateDraftBill,
|
|
676
|
+
callback);
|
|
677
|
+
};
|
|
678
|
+
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* @param {!proto.sniipbillapi.CreateDraftBillRequest} request The
|
|
682
|
+
* request proto
|
|
683
|
+
* @param {?Object<string, string>} metadata User defined
|
|
684
|
+
* call metadata
|
|
685
|
+
* @return {!Promise<!proto.sniipbillapi.BillCreateResponse>}
|
|
686
|
+
* A native promise that resolves to the response
|
|
687
|
+
*/
|
|
688
|
+
proto.sniipbillapi.SniipBillAPIServicePromiseClient.prototype.createDraftBill =
|
|
689
|
+
function(request, metadata) {
|
|
690
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
691
|
+
'/sniipbillapi.SniipBillAPIService/CreateDraftBill',
|
|
692
|
+
request,
|
|
693
|
+
metadata || {},
|
|
694
|
+
methodInfo_SniipBillAPIService_CreateDraftBill);
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
|
|
643
698
|
/**
|
|
644
699
|
* @const
|
|
645
700
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -48,9 +48,11 @@ goog.exportSymbol('proto.sniipbillapi.CopyBillRequest', null, global);
|
|
|
48
48
|
goog.exportSymbol('proto.sniipbillapi.CopyExistingBillRequest', null, global);
|
|
49
49
|
goog.exportSymbol('proto.sniipbillapi.CreateBillRequest', null, global);
|
|
50
50
|
goog.exportSymbol('proto.sniipbillapi.CreateBillsRequest', null, global);
|
|
51
|
+
goog.exportSymbol('proto.sniipbillapi.CreateDraftBillRequest', null, global);
|
|
51
52
|
goog.exportSymbol('proto.sniipbillapi.CreateOrUpdateBillFromXeroInvoiceRequest', null, global);
|
|
52
53
|
goog.exportSymbol('proto.sniipbillapi.DeleteBillRequest', null, global);
|
|
53
54
|
goog.exportSymbol('proto.sniipbillapi.DeleteBillsRequest', null, global);
|
|
55
|
+
goog.exportSymbol('proto.sniipbillapi.DraftBillCreateRequest', null, global);
|
|
54
56
|
goog.exportSymbol('proto.sniipbillapi.ExistingBillGetRequest', null, global);
|
|
55
57
|
goog.exportSymbol('proto.sniipbillapi.ExistingBillGetResponse', null, global);
|
|
56
58
|
goog.exportSymbol('proto.sniipbillapi.GetArchiveListRequest', null, global);
|
|
@@ -9702,6 +9704,182 @@ proto.sniipbillapi.CreateBillsRequest.prototype.hasData = function() {
|
|
|
9702
9704
|
|
|
9703
9705
|
|
|
9704
9706
|
|
|
9707
|
+
/**
|
|
9708
|
+
* Generated by JsPbCodeGenerator.
|
|
9709
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
9710
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
9711
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
9712
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
9713
|
+
* valid.
|
|
9714
|
+
* @extends {jspb.Message}
|
|
9715
|
+
* @constructor
|
|
9716
|
+
*/
|
|
9717
|
+
proto.sniipbillapi.CreateDraftBillRequest = function(opt_data) {
|
|
9718
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
9719
|
+
};
|
|
9720
|
+
goog.inherits(proto.sniipbillapi.CreateDraftBillRequest, jspb.Message);
|
|
9721
|
+
if (goog.DEBUG && !COMPILED) {
|
|
9722
|
+
proto.sniipbillapi.CreateDraftBillRequest.displayName = 'proto.sniipbillapi.CreateDraftBillRequest';
|
|
9723
|
+
}
|
|
9724
|
+
|
|
9725
|
+
|
|
9726
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
9727
|
+
/**
|
|
9728
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
9729
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
9730
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
9731
|
+
* For the list of reserved names please see:
|
|
9732
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
9733
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
9734
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
9735
|
+
* @return {!Object}
|
|
9736
|
+
*/
|
|
9737
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.toObject = function(opt_includeInstance) {
|
|
9738
|
+
return proto.sniipbillapi.CreateDraftBillRequest.toObject(opt_includeInstance, this);
|
|
9739
|
+
};
|
|
9740
|
+
|
|
9741
|
+
|
|
9742
|
+
/**
|
|
9743
|
+
* Static version of the {@see toObject} method.
|
|
9744
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
9745
|
+
* instance for transitional soy proto support:
|
|
9746
|
+
* http://goto/soy-param-migration
|
|
9747
|
+
* @param {!proto.sniipbillapi.CreateDraftBillRequest} msg The msg instance to transform.
|
|
9748
|
+
* @return {!Object}
|
|
9749
|
+
*/
|
|
9750
|
+
proto.sniipbillapi.CreateDraftBillRequest.toObject = function(includeInstance, msg) {
|
|
9751
|
+
var f, obj = {
|
|
9752
|
+
data: (f = msg.getData()) && proto.sniipbillapi.DraftBillCreateRequest.toObject(includeInstance, f)
|
|
9753
|
+
};
|
|
9754
|
+
|
|
9755
|
+
if (includeInstance) {
|
|
9756
|
+
obj.$jspbMessageInstance = msg;
|
|
9757
|
+
}
|
|
9758
|
+
return obj;
|
|
9759
|
+
};
|
|
9760
|
+
}
|
|
9761
|
+
|
|
9762
|
+
|
|
9763
|
+
/**
|
|
9764
|
+
* Deserializes binary data (in protobuf wire format).
|
|
9765
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
9766
|
+
* @return {!proto.sniipbillapi.CreateDraftBillRequest}
|
|
9767
|
+
*/
|
|
9768
|
+
proto.sniipbillapi.CreateDraftBillRequest.deserializeBinary = function(bytes) {
|
|
9769
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
9770
|
+
var msg = new proto.sniipbillapi.CreateDraftBillRequest;
|
|
9771
|
+
return proto.sniipbillapi.CreateDraftBillRequest.deserializeBinaryFromReader(msg, reader);
|
|
9772
|
+
};
|
|
9773
|
+
|
|
9774
|
+
|
|
9775
|
+
/**
|
|
9776
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
9777
|
+
* given reader into the given message object.
|
|
9778
|
+
* @param {!proto.sniipbillapi.CreateDraftBillRequest} msg The message object to deserialize into.
|
|
9779
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
9780
|
+
* @return {!proto.sniipbillapi.CreateDraftBillRequest}
|
|
9781
|
+
*/
|
|
9782
|
+
proto.sniipbillapi.CreateDraftBillRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
9783
|
+
while (reader.nextField()) {
|
|
9784
|
+
if (reader.isEndGroup()) {
|
|
9785
|
+
break;
|
|
9786
|
+
}
|
|
9787
|
+
var field = reader.getFieldNumber();
|
|
9788
|
+
switch (field) {
|
|
9789
|
+
case 1:
|
|
9790
|
+
var value = new proto.sniipbillapi.DraftBillCreateRequest;
|
|
9791
|
+
reader.readMessage(value,proto.sniipbillapi.DraftBillCreateRequest.deserializeBinaryFromReader);
|
|
9792
|
+
msg.setData(value);
|
|
9793
|
+
break;
|
|
9794
|
+
default:
|
|
9795
|
+
reader.skipField();
|
|
9796
|
+
break;
|
|
9797
|
+
}
|
|
9798
|
+
}
|
|
9799
|
+
return msg;
|
|
9800
|
+
};
|
|
9801
|
+
|
|
9802
|
+
|
|
9803
|
+
/**
|
|
9804
|
+
* Class method variant: serializes the given message to binary data
|
|
9805
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
9806
|
+
* @param {!proto.sniipbillapi.CreateDraftBillRequest} message
|
|
9807
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9808
|
+
*/
|
|
9809
|
+
proto.sniipbillapi.CreateDraftBillRequest.serializeBinaryToWriter = function(message, writer) {
|
|
9810
|
+
message.serializeBinaryToWriter(writer);
|
|
9811
|
+
};
|
|
9812
|
+
|
|
9813
|
+
|
|
9814
|
+
/**
|
|
9815
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
9816
|
+
* @return {!Uint8Array}
|
|
9817
|
+
*/
|
|
9818
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.serializeBinary = function() {
|
|
9819
|
+
var writer = new jspb.BinaryWriter();
|
|
9820
|
+
this.serializeBinaryToWriter(writer);
|
|
9821
|
+
return writer.getResultBuffer();
|
|
9822
|
+
};
|
|
9823
|
+
|
|
9824
|
+
|
|
9825
|
+
/**
|
|
9826
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
9827
|
+
* writing to the given BinaryWriter.
|
|
9828
|
+
* @param {!jspb.BinaryWriter} writer
|
|
9829
|
+
*/
|
|
9830
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
9831
|
+
var f = undefined;
|
|
9832
|
+
f = this.getData();
|
|
9833
|
+
if (f != null) {
|
|
9834
|
+
writer.writeMessage(
|
|
9835
|
+
1,
|
|
9836
|
+
f,
|
|
9837
|
+
proto.sniipbillapi.DraftBillCreateRequest.serializeBinaryToWriter
|
|
9838
|
+
);
|
|
9839
|
+
}
|
|
9840
|
+
};
|
|
9841
|
+
|
|
9842
|
+
|
|
9843
|
+
/**
|
|
9844
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
9845
|
+
* @return {!proto.sniipbillapi.CreateDraftBillRequest} The clone.
|
|
9846
|
+
*/
|
|
9847
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.cloneMessage = function() {
|
|
9848
|
+
return /** @type {!proto.sniipbillapi.CreateDraftBillRequest} */ (jspb.Message.cloneMessage(this));
|
|
9849
|
+
};
|
|
9850
|
+
|
|
9851
|
+
|
|
9852
|
+
/**
|
|
9853
|
+
* optional DraftBillCreateRequest data = 1;
|
|
9854
|
+
* @return {proto.sniipbillapi.DraftBillCreateRequest}
|
|
9855
|
+
*/
|
|
9856
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.getData = function() {
|
|
9857
|
+
return /** @type{proto.sniipbillapi.DraftBillCreateRequest} */ (
|
|
9858
|
+
jspb.Message.getWrapperField(this, proto.sniipbillapi.DraftBillCreateRequest, 1));
|
|
9859
|
+
};
|
|
9860
|
+
|
|
9861
|
+
|
|
9862
|
+
/** @param {proto.sniipbillapi.DraftBillCreateRequest|undefined} value */
|
|
9863
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.setData = function(value) {
|
|
9864
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
9865
|
+
};
|
|
9866
|
+
|
|
9867
|
+
|
|
9868
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.clearData = function() {
|
|
9869
|
+
this.setData(undefined);
|
|
9870
|
+
};
|
|
9871
|
+
|
|
9872
|
+
|
|
9873
|
+
/**
|
|
9874
|
+
* Returns whether this field is set.
|
|
9875
|
+
* @return{!boolean}
|
|
9876
|
+
*/
|
|
9877
|
+
proto.sniipbillapi.CreateDraftBillRequest.prototype.hasData = function() {
|
|
9878
|
+
return jspb.Message.getField(this, 1) != null;
|
|
9879
|
+
};
|
|
9880
|
+
|
|
9881
|
+
|
|
9882
|
+
|
|
9705
9883
|
/**
|
|
9706
9884
|
* Generated by JsPbCodeGenerator.
|
|
9707
9885
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -10196,6 +10374,435 @@ proto.sniipbillapi.DeleteBillsRequest.prototype.setUserid = function(value) {
|
|
|
10196
10374
|
|
|
10197
10375
|
|
|
10198
10376
|
|
|
10377
|
+
/**
|
|
10378
|
+
* Generated by JsPbCodeGenerator.
|
|
10379
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
10380
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
10381
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
10382
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
10383
|
+
* valid.
|
|
10384
|
+
* @extends {jspb.Message}
|
|
10385
|
+
* @constructor
|
|
10386
|
+
*/
|
|
10387
|
+
proto.sniipbillapi.DraftBillCreateRequest = function(opt_data) {
|
|
10388
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
10389
|
+
};
|
|
10390
|
+
goog.inherits(proto.sniipbillapi.DraftBillCreateRequest, jspb.Message);
|
|
10391
|
+
if (goog.DEBUG && !COMPILED) {
|
|
10392
|
+
proto.sniipbillapi.DraftBillCreateRequest.displayName = 'proto.sniipbillapi.DraftBillCreateRequest';
|
|
10393
|
+
}
|
|
10394
|
+
|
|
10395
|
+
|
|
10396
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
10397
|
+
/**
|
|
10398
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
10399
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
10400
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
10401
|
+
* For the list of reserved names please see:
|
|
10402
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
10403
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
10404
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
10405
|
+
* @return {!Object}
|
|
10406
|
+
*/
|
|
10407
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.toObject = function(opt_includeInstance) {
|
|
10408
|
+
return proto.sniipbillapi.DraftBillCreateRequest.toObject(opt_includeInstance, this);
|
|
10409
|
+
};
|
|
10410
|
+
|
|
10411
|
+
|
|
10412
|
+
/**
|
|
10413
|
+
* Static version of the {@see toObject} method.
|
|
10414
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
10415
|
+
* instance for transitional soy proto support:
|
|
10416
|
+
* http://goto/soy-param-migration
|
|
10417
|
+
* @param {!proto.sniipbillapi.DraftBillCreateRequest} msg The msg instance to transform.
|
|
10418
|
+
* @return {!Object}
|
|
10419
|
+
*/
|
|
10420
|
+
proto.sniipbillapi.DraftBillCreateRequest.toObject = function(includeInstance, msg) {
|
|
10421
|
+
var f, obj = {
|
|
10422
|
+
billerid: msg.getBillerid(),
|
|
10423
|
+
paymentprocessor: msg.getPaymentprocessor(),
|
|
10424
|
+
type: msg.getType(),
|
|
10425
|
+
reference: msg.getReference(),
|
|
10426
|
+
amount: msg.getAmount(),
|
|
10427
|
+
overdueamount: msg.getOverdueamount(),
|
|
10428
|
+
duedate: msg.getDuedate(),
|
|
10429
|
+
scannedcontent: msg.getScannedcontent(),
|
|
10430
|
+
source: msg.getSource(),
|
|
10431
|
+
category: msg.getCategory(),
|
|
10432
|
+
attachmentid: msg.getAttachmentid()
|
|
10433
|
+
};
|
|
10434
|
+
|
|
10435
|
+
if (includeInstance) {
|
|
10436
|
+
obj.$jspbMessageInstance = msg;
|
|
10437
|
+
}
|
|
10438
|
+
return obj;
|
|
10439
|
+
};
|
|
10440
|
+
}
|
|
10441
|
+
|
|
10442
|
+
|
|
10443
|
+
/**
|
|
10444
|
+
* Deserializes binary data (in protobuf wire format).
|
|
10445
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
10446
|
+
* @return {!proto.sniipbillapi.DraftBillCreateRequest}
|
|
10447
|
+
*/
|
|
10448
|
+
proto.sniipbillapi.DraftBillCreateRequest.deserializeBinary = function(bytes) {
|
|
10449
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
10450
|
+
var msg = new proto.sniipbillapi.DraftBillCreateRequest;
|
|
10451
|
+
return proto.sniipbillapi.DraftBillCreateRequest.deserializeBinaryFromReader(msg, reader);
|
|
10452
|
+
};
|
|
10453
|
+
|
|
10454
|
+
|
|
10455
|
+
/**
|
|
10456
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
10457
|
+
* given reader into the given message object.
|
|
10458
|
+
* @param {!proto.sniipbillapi.DraftBillCreateRequest} msg The message object to deserialize into.
|
|
10459
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
10460
|
+
* @return {!proto.sniipbillapi.DraftBillCreateRequest}
|
|
10461
|
+
*/
|
|
10462
|
+
proto.sniipbillapi.DraftBillCreateRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
10463
|
+
while (reader.nextField()) {
|
|
10464
|
+
if (reader.isEndGroup()) {
|
|
10465
|
+
break;
|
|
10466
|
+
}
|
|
10467
|
+
var field = reader.getFieldNumber();
|
|
10468
|
+
switch (field) {
|
|
10469
|
+
case 1:
|
|
10470
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
10471
|
+
msg.setBillerid(value);
|
|
10472
|
+
break;
|
|
10473
|
+
case 2:
|
|
10474
|
+
var value = /** @type {!proto.sniipbillapi.BillScanType} */ (reader.readEnum());
|
|
10475
|
+
msg.setPaymentprocessor(value);
|
|
10476
|
+
break;
|
|
10477
|
+
case 3:
|
|
10478
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10479
|
+
msg.setType(value);
|
|
10480
|
+
break;
|
|
10481
|
+
case 4:
|
|
10482
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10483
|
+
msg.setReference(value);
|
|
10484
|
+
break;
|
|
10485
|
+
case 5:
|
|
10486
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
10487
|
+
msg.setAmount(value);
|
|
10488
|
+
break;
|
|
10489
|
+
case 6:
|
|
10490
|
+
var value = /** @type {number} */ (reader.readDouble());
|
|
10491
|
+
msg.setOverdueamount(value);
|
|
10492
|
+
break;
|
|
10493
|
+
case 7:
|
|
10494
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10495
|
+
msg.setDuedate(value);
|
|
10496
|
+
break;
|
|
10497
|
+
case 8:
|
|
10498
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10499
|
+
msg.setScannedcontent(value);
|
|
10500
|
+
break;
|
|
10501
|
+
case 9:
|
|
10502
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10503
|
+
msg.setSource(value);
|
|
10504
|
+
break;
|
|
10505
|
+
case 10:
|
|
10506
|
+
var value = /** @type {string} */ (reader.readString());
|
|
10507
|
+
msg.setCategory(value);
|
|
10508
|
+
break;
|
|
10509
|
+
case 11:
|
|
10510
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
10511
|
+
msg.setAttachmentid(value);
|
|
10512
|
+
break;
|
|
10513
|
+
default:
|
|
10514
|
+
reader.skipField();
|
|
10515
|
+
break;
|
|
10516
|
+
}
|
|
10517
|
+
}
|
|
10518
|
+
return msg;
|
|
10519
|
+
};
|
|
10520
|
+
|
|
10521
|
+
|
|
10522
|
+
/**
|
|
10523
|
+
* Class method variant: serializes the given message to binary data
|
|
10524
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
10525
|
+
* @param {!proto.sniipbillapi.DraftBillCreateRequest} message
|
|
10526
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10527
|
+
*/
|
|
10528
|
+
proto.sniipbillapi.DraftBillCreateRequest.serializeBinaryToWriter = function(message, writer) {
|
|
10529
|
+
message.serializeBinaryToWriter(writer);
|
|
10530
|
+
};
|
|
10531
|
+
|
|
10532
|
+
|
|
10533
|
+
/**
|
|
10534
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
10535
|
+
* @return {!Uint8Array}
|
|
10536
|
+
*/
|
|
10537
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.serializeBinary = function() {
|
|
10538
|
+
var writer = new jspb.BinaryWriter();
|
|
10539
|
+
this.serializeBinaryToWriter(writer);
|
|
10540
|
+
return writer.getResultBuffer();
|
|
10541
|
+
};
|
|
10542
|
+
|
|
10543
|
+
|
|
10544
|
+
/**
|
|
10545
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
10546
|
+
* writing to the given BinaryWriter.
|
|
10547
|
+
* @param {!jspb.BinaryWriter} writer
|
|
10548
|
+
*/
|
|
10549
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
10550
|
+
var f = undefined;
|
|
10551
|
+
f = this.getBillerid();
|
|
10552
|
+
if (f !== 0) {
|
|
10553
|
+
writer.writeInt64(
|
|
10554
|
+
1,
|
|
10555
|
+
f
|
|
10556
|
+
);
|
|
10557
|
+
}
|
|
10558
|
+
f = this.getPaymentprocessor();
|
|
10559
|
+
if (f !== 0.0) {
|
|
10560
|
+
writer.writeEnum(
|
|
10561
|
+
2,
|
|
10562
|
+
f
|
|
10563
|
+
);
|
|
10564
|
+
}
|
|
10565
|
+
f = this.getType();
|
|
10566
|
+
if (f.length > 0) {
|
|
10567
|
+
writer.writeString(
|
|
10568
|
+
3,
|
|
10569
|
+
f
|
|
10570
|
+
);
|
|
10571
|
+
}
|
|
10572
|
+
f = this.getReference();
|
|
10573
|
+
if (f.length > 0) {
|
|
10574
|
+
writer.writeString(
|
|
10575
|
+
4,
|
|
10576
|
+
f
|
|
10577
|
+
);
|
|
10578
|
+
}
|
|
10579
|
+
f = this.getAmount();
|
|
10580
|
+
if (f !== 0.0) {
|
|
10581
|
+
writer.writeDouble(
|
|
10582
|
+
5,
|
|
10583
|
+
f
|
|
10584
|
+
);
|
|
10585
|
+
}
|
|
10586
|
+
f = this.getOverdueamount();
|
|
10587
|
+
if (f !== 0.0) {
|
|
10588
|
+
writer.writeDouble(
|
|
10589
|
+
6,
|
|
10590
|
+
f
|
|
10591
|
+
);
|
|
10592
|
+
}
|
|
10593
|
+
f = this.getDuedate();
|
|
10594
|
+
if (f.length > 0) {
|
|
10595
|
+
writer.writeString(
|
|
10596
|
+
7,
|
|
10597
|
+
f
|
|
10598
|
+
);
|
|
10599
|
+
}
|
|
10600
|
+
f = this.getScannedcontent();
|
|
10601
|
+
if (f.length > 0) {
|
|
10602
|
+
writer.writeString(
|
|
10603
|
+
8,
|
|
10604
|
+
f
|
|
10605
|
+
);
|
|
10606
|
+
}
|
|
10607
|
+
f = this.getSource();
|
|
10608
|
+
if (f.length > 0) {
|
|
10609
|
+
writer.writeString(
|
|
10610
|
+
9,
|
|
10611
|
+
f
|
|
10612
|
+
);
|
|
10613
|
+
}
|
|
10614
|
+
f = this.getCategory();
|
|
10615
|
+
if (f.length > 0) {
|
|
10616
|
+
writer.writeString(
|
|
10617
|
+
10,
|
|
10618
|
+
f
|
|
10619
|
+
);
|
|
10620
|
+
}
|
|
10621
|
+
f = this.getAttachmentid();
|
|
10622
|
+
if (f !== 0) {
|
|
10623
|
+
writer.writeInt64(
|
|
10624
|
+
11,
|
|
10625
|
+
f
|
|
10626
|
+
);
|
|
10627
|
+
}
|
|
10628
|
+
};
|
|
10629
|
+
|
|
10630
|
+
|
|
10631
|
+
/**
|
|
10632
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
10633
|
+
* @return {!proto.sniipbillapi.DraftBillCreateRequest} The clone.
|
|
10634
|
+
*/
|
|
10635
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.cloneMessage = function() {
|
|
10636
|
+
return /** @type {!proto.sniipbillapi.DraftBillCreateRequest} */ (jspb.Message.cloneMessage(this));
|
|
10637
|
+
};
|
|
10638
|
+
|
|
10639
|
+
|
|
10640
|
+
/**
|
|
10641
|
+
* optional int64 billerId = 1;
|
|
10642
|
+
* @return {number}
|
|
10643
|
+
*/
|
|
10644
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getBillerid = function() {
|
|
10645
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
10646
|
+
};
|
|
10647
|
+
|
|
10648
|
+
|
|
10649
|
+
/** @param {number} value */
|
|
10650
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setBillerid = function(value) {
|
|
10651
|
+
jspb.Message.setField(this, 1, value);
|
|
10652
|
+
};
|
|
10653
|
+
|
|
10654
|
+
|
|
10655
|
+
/**
|
|
10656
|
+
* optional BillScanType paymentProcessor = 2;
|
|
10657
|
+
* @return {!proto.sniipbillapi.BillScanType}
|
|
10658
|
+
*/
|
|
10659
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getPaymentprocessor = function() {
|
|
10660
|
+
return /** @type {!proto.sniipbillapi.BillScanType} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
10661
|
+
};
|
|
10662
|
+
|
|
10663
|
+
|
|
10664
|
+
/** @param {!proto.sniipbillapi.BillScanType} value */
|
|
10665
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setPaymentprocessor = function(value) {
|
|
10666
|
+
jspb.Message.setField(this, 2, value);
|
|
10667
|
+
};
|
|
10668
|
+
|
|
10669
|
+
|
|
10670
|
+
/**
|
|
10671
|
+
* optional string type = 3;
|
|
10672
|
+
* @return {string}
|
|
10673
|
+
*/
|
|
10674
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getType = function() {
|
|
10675
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
10676
|
+
};
|
|
10677
|
+
|
|
10678
|
+
|
|
10679
|
+
/** @param {string} value */
|
|
10680
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setType = function(value) {
|
|
10681
|
+
jspb.Message.setField(this, 3, value);
|
|
10682
|
+
};
|
|
10683
|
+
|
|
10684
|
+
|
|
10685
|
+
/**
|
|
10686
|
+
* optional string reference = 4;
|
|
10687
|
+
* @return {string}
|
|
10688
|
+
*/
|
|
10689
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getReference = function() {
|
|
10690
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
|
|
10691
|
+
};
|
|
10692
|
+
|
|
10693
|
+
|
|
10694
|
+
/** @param {string} value */
|
|
10695
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setReference = function(value) {
|
|
10696
|
+
jspb.Message.setField(this, 4, value);
|
|
10697
|
+
};
|
|
10698
|
+
|
|
10699
|
+
|
|
10700
|
+
/**
|
|
10701
|
+
* optional double amount = 5;
|
|
10702
|
+
* @return {number}
|
|
10703
|
+
*/
|
|
10704
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getAmount = function() {
|
|
10705
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 5, 0));
|
|
10706
|
+
};
|
|
10707
|
+
|
|
10708
|
+
|
|
10709
|
+
/** @param {number} value */
|
|
10710
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setAmount = function(value) {
|
|
10711
|
+
jspb.Message.setField(this, 5, value);
|
|
10712
|
+
};
|
|
10713
|
+
|
|
10714
|
+
|
|
10715
|
+
/**
|
|
10716
|
+
* optional double overdueAmount = 6;
|
|
10717
|
+
* @return {number}
|
|
10718
|
+
*/
|
|
10719
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getOverdueamount = function() {
|
|
10720
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 6, 0));
|
|
10721
|
+
};
|
|
10722
|
+
|
|
10723
|
+
|
|
10724
|
+
/** @param {number} value */
|
|
10725
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setOverdueamount = function(value) {
|
|
10726
|
+
jspb.Message.setField(this, 6, value);
|
|
10727
|
+
};
|
|
10728
|
+
|
|
10729
|
+
|
|
10730
|
+
/**
|
|
10731
|
+
* optional string dueDate = 7;
|
|
10732
|
+
* @return {string}
|
|
10733
|
+
*/
|
|
10734
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getDuedate = function() {
|
|
10735
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 7, ""));
|
|
10736
|
+
};
|
|
10737
|
+
|
|
10738
|
+
|
|
10739
|
+
/** @param {string} value */
|
|
10740
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setDuedate = function(value) {
|
|
10741
|
+
jspb.Message.setField(this, 7, value);
|
|
10742
|
+
};
|
|
10743
|
+
|
|
10744
|
+
|
|
10745
|
+
/**
|
|
10746
|
+
* optional string scannedContent = 8;
|
|
10747
|
+
* @return {string}
|
|
10748
|
+
*/
|
|
10749
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getScannedcontent = function() {
|
|
10750
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 8, ""));
|
|
10751
|
+
};
|
|
10752
|
+
|
|
10753
|
+
|
|
10754
|
+
/** @param {string} value */
|
|
10755
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setScannedcontent = function(value) {
|
|
10756
|
+
jspb.Message.setField(this, 8, value);
|
|
10757
|
+
};
|
|
10758
|
+
|
|
10759
|
+
|
|
10760
|
+
/**
|
|
10761
|
+
* optional string source = 9;
|
|
10762
|
+
* @return {string}
|
|
10763
|
+
*/
|
|
10764
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getSource = function() {
|
|
10765
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 9, ""));
|
|
10766
|
+
};
|
|
10767
|
+
|
|
10768
|
+
|
|
10769
|
+
/** @param {string} value */
|
|
10770
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setSource = function(value) {
|
|
10771
|
+
jspb.Message.setField(this, 9, value);
|
|
10772
|
+
};
|
|
10773
|
+
|
|
10774
|
+
|
|
10775
|
+
/**
|
|
10776
|
+
* optional string category = 10;
|
|
10777
|
+
* @return {string}
|
|
10778
|
+
*/
|
|
10779
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getCategory = function() {
|
|
10780
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 10, ""));
|
|
10781
|
+
};
|
|
10782
|
+
|
|
10783
|
+
|
|
10784
|
+
/** @param {string} value */
|
|
10785
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setCategory = function(value) {
|
|
10786
|
+
jspb.Message.setField(this, 10, value);
|
|
10787
|
+
};
|
|
10788
|
+
|
|
10789
|
+
|
|
10790
|
+
/**
|
|
10791
|
+
* optional int64 attachmentId = 11;
|
|
10792
|
+
* @return {number}
|
|
10793
|
+
*/
|
|
10794
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.getAttachmentid = function() {
|
|
10795
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 11, 0));
|
|
10796
|
+
};
|
|
10797
|
+
|
|
10798
|
+
|
|
10799
|
+
/** @param {number} value */
|
|
10800
|
+
proto.sniipbillapi.DraftBillCreateRequest.prototype.setAttachmentid = function(value) {
|
|
10801
|
+
jspb.Message.setField(this, 11, value);
|
|
10802
|
+
};
|
|
10803
|
+
|
|
10804
|
+
|
|
10805
|
+
|
|
10199
10806
|
/**
|
|
10200
10807
|
* Generated by JsPbCodeGenerator.
|
|
10201
10808
|
* @param {Array=} opt_data Optional initial data array, typically from a
|