@sniipwebmaster/bill-service-client-grpcweb-ts 26.3.14952 → 26.4.14970
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.
|
@@ -3480,5 +3480,48 @@ export class SniipBillAPIServiceClient {
|
|
|
3480
3480
|
this.methodDescriptorUpdateSmeRentAgreementBillReference);
|
|
3481
3481
|
}
|
|
3482
3482
|
|
|
3483
|
+
methodDescriptorConvertBillToDraft = new grpcWeb.MethodDescriptor(
|
|
3484
|
+
'/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
|
|
3485
|
+
grpcWeb.MethodType.UNARY,
|
|
3486
|
+
service_pb.ConvertBillToDraftRequest,
|
|
3487
|
+
service_pb.ConvertBillToDraftResponse,
|
|
3488
|
+
(request: service_pb.ConvertBillToDraftRequest) => {
|
|
3489
|
+
return request.serializeBinary();
|
|
3490
|
+
},
|
|
3491
|
+
service_pb.ConvertBillToDraftResponse.deserializeBinary
|
|
3492
|
+
);
|
|
3493
|
+
|
|
3494
|
+
convertBillToDraft(
|
|
3495
|
+
request: service_pb.ConvertBillToDraftRequest,
|
|
3496
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ConvertBillToDraftResponse>;
|
|
3497
|
+
|
|
3498
|
+
convertBillToDraft(
|
|
3499
|
+
request: service_pb.ConvertBillToDraftRequest,
|
|
3500
|
+
metadata: grpcWeb.Metadata | null,
|
|
3501
|
+
callback: (err: grpcWeb.RpcError,
|
|
3502
|
+
response: service_pb.ConvertBillToDraftResponse) => void): grpcWeb.ClientReadableStream<service_pb.ConvertBillToDraftResponse>;
|
|
3503
|
+
|
|
3504
|
+
convertBillToDraft(
|
|
3505
|
+
request: service_pb.ConvertBillToDraftRequest,
|
|
3506
|
+
metadata?: grpcWeb.Metadata | null,
|
|
3507
|
+
callback?: (err: grpcWeb.RpcError,
|
|
3508
|
+
response: service_pb.ConvertBillToDraftResponse) => void) {
|
|
3509
|
+
if (callback !== undefined) {
|
|
3510
|
+
return this.client_.rpcCall(
|
|
3511
|
+
this.hostname_ +
|
|
3512
|
+
'/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
|
|
3513
|
+
request,
|
|
3514
|
+
metadata || {},
|
|
3515
|
+
this.methodDescriptorConvertBillToDraft,
|
|
3516
|
+
callback);
|
|
3517
|
+
}
|
|
3518
|
+
return this.client_.unaryCall(
|
|
3519
|
+
this.hostname_ +
|
|
3520
|
+
'/sniipbillapi.SniipBillAPIService/ConvertBillToDraft',
|
|
3521
|
+
request,
|
|
3522
|
+
metadata || {},
|
|
3523
|
+
this.methodDescriptorConvertBillToDraft);
|
|
3524
|
+
}
|
|
3525
|
+
|
|
3483
3526
|
}
|
|
3484
3527
|
|
|
@@ -522,6 +522,56 @@ export namespace BillConfigsResponse {
|
|
|
522
522
|
}
|
|
523
523
|
}
|
|
524
524
|
|
|
525
|
+
export class ConvertBillToDraftRequest extends jspb.Message {
|
|
526
|
+
getBillid(): number;
|
|
527
|
+
setBillid(value: number): ConvertBillToDraftRequest;
|
|
528
|
+
|
|
529
|
+
getUserid(): number;
|
|
530
|
+
setUserid(value: number): ConvertBillToDraftRequest;
|
|
531
|
+
|
|
532
|
+
getReason(): string;
|
|
533
|
+
setReason(value: string): ConvertBillToDraftRequest;
|
|
534
|
+
|
|
535
|
+
serializeBinary(): Uint8Array;
|
|
536
|
+
toObject(includeInstance?: boolean): ConvertBillToDraftRequest.AsObject;
|
|
537
|
+
static toObject(includeInstance: boolean, msg: ConvertBillToDraftRequest): ConvertBillToDraftRequest.AsObject;
|
|
538
|
+
static serializeBinaryToWriter(message: ConvertBillToDraftRequest, writer: jspb.BinaryWriter): void;
|
|
539
|
+
static deserializeBinary(bytes: Uint8Array): ConvertBillToDraftRequest;
|
|
540
|
+
static deserializeBinaryFromReader(message: ConvertBillToDraftRequest, reader: jspb.BinaryReader): ConvertBillToDraftRequest;
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
export namespace ConvertBillToDraftRequest {
|
|
544
|
+
export type AsObject = {
|
|
545
|
+
billid: number,
|
|
546
|
+
userid: number,
|
|
547
|
+
reason: string,
|
|
548
|
+
}
|
|
549
|
+
}
|
|
550
|
+
|
|
551
|
+
export class ConvertBillToDraftResponse extends jspb.Message {
|
|
552
|
+
getResponsecode(): ResponseCode | undefined;
|
|
553
|
+
setResponsecode(value?: ResponseCode): ConvertBillToDraftResponse;
|
|
554
|
+
hasResponsecode(): boolean;
|
|
555
|
+
clearResponsecode(): ConvertBillToDraftResponse;
|
|
556
|
+
|
|
557
|
+
getBillid(): number;
|
|
558
|
+
setBillid(value: number): ConvertBillToDraftResponse;
|
|
559
|
+
|
|
560
|
+
serializeBinary(): Uint8Array;
|
|
561
|
+
toObject(includeInstance?: boolean): ConvertBillToDraftResponse.AsObject;
|
|
562
|
+
static toObject(includeInstance: boolean, msg: ConvertBillToDraftResponse): ConvertBillToDraftResponse.AsObject;
|
|
563
|
+
static serializeBinaryToWriter(message: ConvertBillToDraftResponse, writer: jspb.BinaryWriter): void;
|
|
564
|
+
static deserializeBinary(bytes: Uint8Array): ConvertBillToDraftResponse;
|
|
565
|
+
static deserializeBinaryFromReader(message: ConvertBillToDraftResponse, reader: jspb.BinaryReader): ConvertBillToDraftResponse;
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
export namespace ConvertBillToDraftResponse {
|
|
569
|
+
export type AsObject = {
|
|
570
|
+
responsecode?: ResponseCode.AsObject,
|
|
571
|
+
billid: number,
|
|
572
|
+
}
|
|
573
|
+
}
|
|
574
|
+
|
|
525
575
|
export class ProcessDraftBillsNotRequiringReviewRequest extends jspb.Message {
|
|
526
576
|
getBillidsList(): Array<number>;
|
|
527
577
|
setBillidsList(value: Array<number>): ProcessDraftBillsNotRequiringReviewRequest;
|
|
@@ -70,6 +70,8 @@ goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserRequest', null,
|
|
|
70
70
|
goog.exportSymbol('proto.sniipbillapi.BlockedOrganisationsForUserResponse', null, global);
|
|
71
71
|
goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsRequest', null, global);
|
|
72
72
|
goog.exportSymbol('proto.sniipbillapi.CheckUserBillerIdsResponse', null, global);
|
|
73
|
+
goog.exportSymbol('proto.sniipbillapi.ConvertBillToDraftRequest', null, global);
|
|
74
|
+
goog.exportSymbol('proto.sniipbillapi.ConvertBillToDraftResponse', null, global);
|
|
73
75
|
goog.exportSymbol('proto.sniipbillapi.CopyBillRequest', null, global);
|
|
74
76
|
goog.exportSymbol('proto.sniipbillapi.CopyExistingBillRequest', null, global);
|
|
75
77
|
goog.exportSymbol('proto.sniipbillapi.CreateBillFromXeroRequest', null, global);
|
|
@@ -480,6 +482,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
480
482
|
*/
|
|
481
483
|
proto.sniipbillapi.BillConfigsResponse.displayName = 'proto.sniipbillapi.BillConfigsResponse';
|
|
482
484
|
}
|
|
485
|
+
/**
|
|
486
|
+
* Generated by JsPbCodeGenerator.
|
|
487
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
488
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
489
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
490
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
491
|
+
* valid.
|
|
492
|
+
* @extends {jspb.Message}
|
|
493
|
+
* @constructor
|
|
494
|
+
*/
|
|
495
|
+
proto.sniipbillapi.ConvertBillToDraftRequest = function(opt_data) {
|
|
496
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
497
|
+
};
|
|
498
|
+
goog.inherits(proto.sniipbillapi.ConvertBillToDraftRequest, jspb.Message);
|
|
499
|
+
if (goog.DEBUG && !COMPILED) {
|
|
500
|
+
/**
|
|
501
|
+
* @public
|
|
502
|
+
* @override
|
|
503
|
+
*/
|
|
504
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.displayName = 'proto.sniipbillapi.ConvertBillToDraftRequest';
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Generated by JsPbCodeGenerator.
|
|
508
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
509
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
510
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
511
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
512
|
+
* valid.
|
|
513
|
+
* @extends {jspb.Message}
|
|
514
|
+
* @constructor
|
|
515
|
+
*/
|
|
516
|
+
proto.sniipbillapi.ConvertBillToDraftResponse = function(opt_data) {
|
|
517
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
518
|
+
};
|
|
519
|
+
goog.inherits(proto.sniipbillapi.ConvertBillToDraftResponse, jspb.Message);
|
|
520
|
+
if (goog.DEBUG && !COMPILED) {
|
|
521
|
+
/**
|
|
522
|
+
* @public
|
|
523
|
+
* @override
|
|
524
|
+
*/
|
|
525
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.displayName = 'proto.sniipbillapi.ConvertBillToDraftResponse';
|
|
526
|
+
}
|
|
483
527
|
/**
|
|
484
528
|
* Generated by JsPbCodeGenerator.
|
|
485
529
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -7825,6 +7869,377 @@ proto.sniipbillapi.BillConfigsResponse.prototype.clearBillconfigsList = function
|
|
|
7825
7869
|
|
|
7826
7870
|
|
|
7827
7871
|
|
|
7872
|
+
|
|
7873
|
+
|
|
7874
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7875
|
+
/**
|
|
7876
|
+
* Creates an object representation of this proto.
|
|
7877
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7878
|
+
* Optional fields that are not set will be set to undefined.
|
|
7879
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7880
|
+
* For the list of reserved names please see:
|
|
7881
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7882
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7883
|
+
* JSPB instance for transitional soy proto support:
|
|
7884
|
+
* http://goto/soy-param-migration
|
|
7885
|
+
* @return {!Object}
|
|
7886
|
+
*/
|
|
7887
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7888
|
+
return proto.sniipbillapi.ConvertBillToDraftRequest.toObject(opt_includeInstance, this);
|
|
7889
|
+
};
|
|
7890
|
+
|
|
7891
|
+
|
|
7892
|
+
/**
|
|
7893
|
+
* Static version of the {@see toObject} method.
|
|
7894
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7895
|
+
* the JSPB instance for transitional soy proto support:
|
|
7896
|
+
* http://goto/soy-param-migration
|
|
7897
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftRequest} msg The msg instance to transform.
|
|
7898
|
+
* @return {!Object}
|
|
7899
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7900
|
+
*/
|
|
7901
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.toObject = function(includeInstance, msg) {
|
|
7902
|
+
var f, obj = {
|
|
7903
|
+
billid: jspb.Message.getFieldWithDefault(msg, 1, 0),
|
|
7904
|
+
userid: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
7905
|
+
reason: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
7906
|
+
};
|
|
7907
|
+
|
|
7908
|
+
if (includeInstance) {
|
|
7909
|
+
obj.$jspbMessageInstance = msg;
|
|
7910
|
+
}
|
|
7911
|
+
return obj;
|
|
7912
|
+
};
|
|
7913
|
+
}
|
|
7914
|
+
|
|
7915
|
+
|
|
7916
|
+
/**
|
|
7917
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7918
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7919
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftRequest}
|
|
7920
|
+
*/
|
|
7921
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinary = function(bytes) {
|
|
7922
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7923
|
+
var msg = new proto.sniipbillapi.ConvertBillToDraftRequest;
|
|
7924
|
+
return proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinaryFromReader(msg, reader);
|
|
7925
|
+
};
|
|
7926
|
+
|
|
7927
|
+
|
|
7928
|
+
/**
|
|
7929
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7930
|
+
* given reader into the given message object.
|
|
7931
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftRequest} msg The message object to deserialize into.
|
|
7932
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7933
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftRequest}
|
|
7934
|
+
*/
|
|
7935
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7936
|
+
while (reader.nextField()) {
|
|
7937
|
+
if (reader.isEndGroup()) {
|
|
7938
|
+
break;
|
|
7939
|
+
}
|
|
7940
|
+
var field = reader.getFieldNumber();
|
|
7941
|
+
switch (field) {
|
|
7942
|
+
case 1:
|
|
7943
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7944
|
+
msg.setBillid(value);
|
|
7945
|
+
break;
|
|
7946
|
+
case 2:
|
|
7947
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
7948
|
+
msg.setUserid(value);
|
|
7949
|
+
break;
|
|
7950
|
+
case 3:
|
|
7951
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7952
|
+
msg.setReason(value);
|
|
7953
|
+
break;
|
|
7954
|
+
default:
|
|
7955
|
+
reader.skipField();
|
|
7956
|
+
break;
|
|
7957
|
+
}
|
|
7958
|
+
}
|
|
7959
|
+
return msg;
|
|
7960
|
+
};
|
|
7961
|
+
|
|
7962
|
+
|
|
7963
|
+
/**
|
|
7964
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7965
|
+
* @return {!Uint8Array}
|
|
7966
|
+
*/
|
|
7967
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.serializeBinary = function() {
|
|
7968
|
+
var writer = new jspb.BinaryWriter();
|
|
7969
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.serializeBinaryToWriter(this, writer);
|
|
7970
|
+
return writer.getResultBuffer();
|
|
7971
|
+
};
|
|
7972
|
+
|
|
7973
|
+
|
|
7974
|
+
/**
|
|
7975
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7976
|
+
* format), writing to the given BinaryWriter.
|
|
7977
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftRequest} message
|
|
7978
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7979
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7980
|
+
*/
|
|
7981
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7982
|
+
var f = undefined;
|
|
7983
|
+
f = message.getBillid();
|
|
7984
|
+
if (f !== 0) {
|
|
7985
|
+
writer.writeInt64(
|
|
7986
|
+
1,
|
|
7987
|
+
f
|
|
7988
|
+
);
|
|
7989
|
+
}
|
|
7990
|
+
f = message.getUserid();
|
|
7991
|
+
if (f !== 0) {
|
|
7992
|
+
writer.writeInt64(
|
|
7993
|
+
2,
|
|
7994
|
+
f
|
|
7995
|
+
);
|
|
7996
|
+
}
|
|
7997
|
+
f = message.getReason();
|
|
7998
|
+
if (f.length > 0) {
|
|
7999
|
+
writer.writeString(
|
|
8000
|
+
3,
|
|
8001
|
+
f
|
|
8002
|
+
);
|
|
8003
|
+
}
|
|
8004
|
+
};
|
|
8005
|
+
|
|
8006
|
+
|
|
8007
|
+
/**
|
|
8008
|
+
* optional int64 billId = 1;
|
|
8009
|
+
* @return {number}
|
|
8010
|
+
*/
|
|
8011
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getBillid = function() {
|
|
8012
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 1, 0));
|
|
8013
|
+
};
|
|
8014
|
+
|
|
8015
|
+
|
|
8016
|
+
/**
|
|
8017
|
+
* @param {number} value
|
|
8018
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
|
|
8019
|
+
*/
|
|
8020
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setBillid = function(value) {
|
|
8021
|
+
return jspb.Message.setProto3IntField(this, 1, value);
|
|
8022
|
+
};
|
|
8023
|
+
|
|
8024
|
+
|
|
8025
|
+
/**
|
|
8026
|
+
* optional int64 userId = 2;
|
|
8027
|
+
* @return {number}
|
|
8028
|
+
*/
|
|
8029
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getUserid = function() {
|
|
8030
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
8031
|
+
};
|
|
8032
|
+
|
|
8033
|
+
|
|
8034
|
+
/**
|
|
8035
|
+
* @param {number} value
|
|
8036
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
|
|
8037
|
+
*/
|
|
8038
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setUserid = function(value) {
|
|
8039
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
8040
|
+
};
|
|
8041
|
+
|
|
8042
|
+
|
|
8043
|
+
/**
|
|
8044
|
+
* optional string reason = 3;
|
|
8045
|
+
* @return {string}
|
|
8046
|
+
*/
|
|
8047
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.getReason = function() {
|
|
8048
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
8049
|
+
};
|
|
8050
|
+
|
|
8051
|
+
|
|
8052
|
+
/**
|
|
8053
|
+
* @param {string} value
|
|
8054
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftRequest} returns this
|
|
8055
|
+
*/
|
|
8056
|
+
proto.sniipbillapi.ConvertBillToDraftRequest.prototype.setReason = function(value) {
|
|
8057
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
8058
|
+
};
|
|
8059
|
+
|
|
8060
|
+
|
|
8061
|
+
|
|
8062
|
+
|
|
8063
|
+
|
|
8064
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8065
|
+
/**
|
|
8066
|
+
* Creates an object representation of this proto.
|
|
8067
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8068
|
+
* Optional fields that are not set will be set to undefined.
|
|
8069
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8070
|
+
* For the list of reserved names please see:
|
|
8071
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8072
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8073
|
+
* JSPB instance for transitional soy proto support:
|
|
8074
|
+
* http://goto/soy-param-migration
|
|
8075
|
+
* @return {!Object}
|
|
8076
|
+
*/
|
|
8077
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.toObject = function(opt_includeInstance) {
|
|
8078
|
+
return proto.sniipbillapi.ConvertBillToDraftResponse.toObject(opt_includeInstance, this);
|
|
8079
|
+
};
|
|
8080
|
+
|
|
8081
|
+
|
|
8082
|
+
/**
|
|
8083
|
+
* Static version of the {@see toObject} method.
|
|
8084
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8085
|
+
* the JSPB instance for transitional soy proto support:
|
|
8086
|
+
* http://goto/soy-param-migration
|
|
8087
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftResponse} msg The msg instance to transform.
|
|
8088
|
+
* @return {!Object}
|
|
8089
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8090
|
+
*/
|
|
8091
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.toObject = function(includeInstance, msg) {
|
|
8092
|
+
var f, obj = {
|
|
8093
|
+
responsecode: (f = msg.getResponsecode()) && proto.sniipbillapi.ResponseCode.toObject(includeInstance, f),
|
|
8094
|
+
billid: jspb.Message.getFieldWithDefault(msg, 2, 0)
|
|
8095
|
+
};
|
|
8096
|
+
|
|
8097
|
+
if (includeInstance) {
|
|
8098
|
+
obj.$jspbMessageInstance = msg;
|
|
8099
|
+
}
|
|
8100
|
+
return obj;
|
|
8101
|
+
};
|
|
8102
|
+
}
|
|
8103
|
+
|
|
8104
|
+
|
|
8105
|
+
/**
|
|
8106
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8107
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8108
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftResponse}
|
|
8109
|
+
*/
|
|
8110
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinary = function(bytes) {
|
|
8111
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8112
|
+
var msg = new proto.sniipbillapi.ConvertBillToDraftResponse;
|
|
8113
|
+
return proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinaryFromReader(msg, reader);
|
|
8114
|
+
};
|
|
8115
|
+
|
|
8116
|
+
|
|
8117
|
+
/**
|
|
8118
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8119
|
+
* given reader into the given message object.
|
|
8120
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftResponse} msg The message object to deserialize into.
|
|
8121
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8122
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftResponse}
|
|
8123
|
+
*/
|
|
8124
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
8125
|
+
while (reader.nextField()) {
|
|
8126
|
+
if (reader.isEndGroup()) {
|
|
8127
|
+
break;
|
|
8128
|
+
}
|
|
8129
|
+
var field = reader.getFieldNumber();
|
|
8130
|
+
switch (field) {
|
|
8131
|
+
case 1:
|
|
8132
|
+
var value = new proto.sniipbillapi.ResponseCode;
|
|
8133
|
+
reader.readMessage(value,proto.sniipbillapi.ResponseCode.deserializeBinaryFromReader);
|
|
8134
|
+
msg.setResponsecode(value);
|
|
8135
|
+
break;
|
|
8136
|
+
case 2:
|
|
8137
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
8138
|
+
msg.setBillid(value);
|
|
8139
|
+
break;
|
|
8140
|
+
default:
|
|
8141
|
+
reader.skipField();
|
|
8142
|
+
break;
|
|
8143
|
+
}
|
|
8144
|
+
}
|
|
8145
|
+
return msg;
|
|
8146
|
+
};
|
|
8147
|
+
|
|
8148
|
+
|
|
8149
|
+
/**
|
|
8150
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8151
|
+
* @return {!Uint8Array}
|
|
8152
|
+
*/
|
|
8153
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.serializeBinary = function() {
|
|
8154
|
+
var writer = new jspb.BinaryWriter();
|
|
8155
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.serializeBinaryToWriter(this, writer);
|
|
8156
|
+
return writer.getResultBuffer();
|
|
8157
|
+
};
|
|
8158
|
+
|
|
8159
|
+
|
|
8160
|
+
/**
|
|
8161
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8162
|
+
* format), writing to the given BinaryWriter.
|
|
8163
|
+
* @param {!proto.sniipbillapi.ConvertBillToDraftResponse} message
|
|
8164
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8165
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8166
|
+
*/
|
|
8167
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.serializeBinaryToWriter = function(message, writer) {
|
|
8168
|
+
var f = undefined;
|
|
8169
|
+
f = message.getResponsecode();
|
|
8170
|
+
if (f != null) {
|
|
8171
|
+
writer.writeMessage(
|
|
8172
|
+
1,
|
|
8173
|
+
f,
|
|
8174
|
+
proto.sniipbillapi.ResponseCode.serializeBinaryToWriter
|
|
8175
|
+
);
|
|
8176
|
+
}
|
|
8177
|
+
f = message.getBillid();
|
|
8178
|
+
if (f !== 0) {
|
|
8179
|
+
writer.writeInt64(
|
|
8180
|
+
2,
|
|
8181
|
+
f
|
|
8182
|
+
);
|
|
8183
|
+
}
|
|
8184
|
+
};
|
|
8185
|
+
|
|
8186
|
+
|
|
8187
|
+
/**
|
|
8188
|
+
* optional ResponseCode responseCode = 1;
|
|
8189
|
+
* @return {?proto.sniipbillapi.ResponseCode}
|
|
8190
|
+
*/
|
|
8191
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.getResponsecode = function() {
|
|
8192
|
+
return /** @type{?proto.sniipbillapi.ResponseCode} */ (
|
|
8193
|
+
jspb.Message.getWrapperField(this, proto.sniipbillapi.ResponseCode, 1));
|
|
8194
|
+
};
|
|
8195
|
+
|
|
8196
|
+
|
|
8197
|
+
/**
|
|
8198
|
+
* @param {?proto.sniipbillapi.ResponseCode|undefined} value
|
|
8199
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
|
|
8200
|
+
*/
|
|
8201
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.setResponsecode = function(value) {
|
|
8202
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
8203
|
+
};
|
|
8204
|
+
|
|
8205
|
+
|
|
8206
|
+
/**
|
|
8207
|
+
* Clears the message field making it undefined.
|
|
8208
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
|
|
8209
|
+
*/
|
|
8210
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.clearResponsecode = function() {
|
|
8211
|
+
return this.setResponsecode(undefined);
|
|
8212
|
+
};
|
|
8213
|
+
|
|
8214
|
+
|
|
8215
|
+
/**
|
|
8216
|
+
* Returns whether this field is set.
|
|
8217
|
+
* @return {boolean}
|
|
8218
|
+
*/
|
|
8219
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.hasResponsecode = function() {
|
|
8220
|
+
return jspb.Message.getField(this, 1) != null;
|
|
8221
|
+
};
|
|
8222
|
+
|
|
8223
|
+
|
|
8224
|
+
/**
|
|
8225
|
+
* optional int64 billId = 2;
|
|
8226
|
+
* @return {number}
|
|
8227
|
+
*/
|
|
8228
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.getBillid = function() {
|
|
8229
|
+
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
8230
|
+
};
|
|
8231
|
+
|
|
8232
|
+
|
|
8233
|
+
/**
|
|
8234
|
+
* @param {number} value
|
|
8235
|
+
* @return {!proto.sniipbillapi.ConvertBillToDraftResponse} returns this
|
|
8236
|
+
*/
|
|
8237
|
+
proto.sniipbillapi.ConvertBillToDraftResponse.prototype.setBillid = function(value) {
|
|
8238
|
+
return jspb.Message.setProto3IntField(this, 2, value);
|
|
8239
|
+
};
|
|
8240
|
+
|
|
8241
|
+
|
|
8242
|
+
|
|
7828
8243
|
/**
|
|
7829
8244
|
* List of repeated fields within this message type.
|
|
7830
8245
|
* @private {!Array<number>}
|