@sniipwebmaster/payroll-service-client-grpcweb-ts 25.10.336 → 25.10.342
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.
|
@@ -857,6 +857,49 @@ export class PayrollServiceClient {
|
|
|
857
857
|
this.methodDescriptorCreateEmployee);
|
|
858
858
|
}
|
|
859
859
|
|
|
860
|
+
methodDescriptorValidateBankAccount = new grpcWeb.MethodDescriptor(
|
|
861
|
+
'/payrollserviceapi.PayrollService/ValidateBankAccount',
|
|
862
|
+
grpcWeb.MethodType.UNARY,
|
|
863
|
+
service_pb.ValidateBankAccountRequest,
|
|
864
|
+
service_pb.ValidateBankAccountResponse,
|
|
865
|
+
(request: service_pb.ValidateBankAccountRequest) => {
|
|
866
|
+
return request.serializeBinary();
|
|
867
|
+
},
|
|
868
|
+
service_pb.ValidateBankAccountResponse.deserializeBinary
|
|
869
|
+
);
|
|
870
|
+
|
|
871
|
+
validateBankAccount(
|
|
872
|
+
request: service_pb.ValidateBankAccountRequest,
|
|
873
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.ValidateBankAccountResponse>;
|
|
874
|
+
|
|
875
|
+
validateBankAccount(
|
|
876
|
+
request: service_pb.ValidateBankAccountRequest,
|
|
877
|
+
metadata: grpcWeb.Metadata | null,
|
|
878
|
+
callback: (err: grpcWeb.RpcError,
|
|
879
|
+
response: service_pb.ValidateBankAccountResponse) => void): grpcWeb.ClientReadableStream<service_pb.ValidateBankAccountResponse>;
|
|
880
|
+
|
|
881
|
+
validateBankAccount(
|
|
882
|
+
request: service_pb.ValidateBankAccountRequest,
|
|
883
|
+
metadata?: grpcWeb.Metadata | null,
|
|
884
|
+
callback?: (err: grpcWeb.RpcError,
|
|
885
|
+
response: service_pb.ValidateBankAccountResponse) => void) {
|
|
886
|
+
if (callback !== undefined) {
|
|
887
|
+
return this.client_.rpcCall(
|
|
888
|
+
this.hostname_ +
|
|
889
|
+
'/payrollserviceapi.PayrollService/ValidateBankAccount',
|
|
890
|
+
request,
|
|
891
|
+
metadata || {},
|
|
892
|
+
this.methodDescriptorValidateBankAccount,
|
|
893
|
+
callback);
|
|
894
|
+
}
|
|
895
|
+
return this.client_.unaryCall(
|
|
896
|
+
this.hostname_ +
|
|
897
|
+
'/payrollserviceapi.PayrollService/ValidateBankAccount',
|
|
898
|
+
request,
|
|
899
|
+
metadata || {},
|
|
900
|
+
this.methodDescriptorValidateBankAccount);
|
|
901
|
+
}
|
|
902
|
+
|
|
860
903
|
methodDescriptorListEmployees = new grpcWeb.MethodDescriptor(
|
|
861
904
|
'/payrollserviceapi.PayrollService/ListEmployees',
|
|
862
905
|
grpcWeb.MethodType.UNARY,
|
|
@@ -1467,6 +1467,64 @@ export namespace EmployeeBankAccountInfoRequest {
|
|
|
1467
1467
|
}
|
|
1468
1468
|
}
|
|
1469
1469
|
|
|
1470
|
+
export class ValidateBankAccountRequest extends jspb.Message {
|
|
1471
|
+
getBsb(): string;
|
|
1472
|
+
setBsb(value: string): ValidateBankAccountRequest;
|
|
1473
|
+
|
|
1474
|
+
getAccountNumber(): string;
|
|
1475
|
+
setAccountNumber(value: string): ValidateBankAccountRequest;
|
|
1476
|
+
|
|
1477
|
+
getAccountName(): string;
|
|
1478
|
+
setAccountName(value: string): ValidateBankAccountRequest;
|
|
1479
|
+
|
|
1480
|
+
serializeBinary(): Uint8Array;
|
|
1481
|
+
toObject(includeInstance?: boolean): ValidateBankAccountRequest.AsObject;
|
|
1482
|
+
static toObject(includeInstance: boolean, msg: ValidateBankAccountRequest): ValidateBankAccountRequest.AsObject;
|
|
1483
|
+
static serializeBinaryToWriter(message: ValidateBankAccountRequest, writer: jspb.BinaryWriter): void;
|
|
1484
|
+
static deserializeBinary(bytes: Uint8Array): ValidateBankAccountRequest;
|
|
1485
|
+
static deserializeBinaryFromReader(message: ValidateBankAccountRequest, reader: jspb.BinaryReader): ValidateBankAccountRequest;
|
|
1486
|
+
}
|
|
1487
|
+
|
|
1488
|
+
export namespace ValidateBankAccountRequest {
|
|
1489
|
+
export type AsObject = {
|
|
1490
|
+
bsb: string,
|
|
1491
|
+
accountNumber: string,
|
|
1492
|
+
accountName: string,
|
|
1493
|
+
}
|
|
1494
|
+
}
|
|
1495
|
+
|
|
1496
|
+
export class ValidateBankAccountResponse extends jspb.Message {
|
|
1497
|
+
getResponsecode(): ResponseCode | undefined;
|
|
1498
|
+
setResponsecode(value?: ResponseCode): ValidateBankAccountResponse;
|
|
1499
|
+
hasResponsecode(): boolean;
|
|
1500
|
+
clearResponsecode(): ValidateBankAccountResponse;
|
|
1501
|
+
|
|
1502
|
+
getBankaccountstatus(): BankAccountStatus;
|
|
1503
|
+
setBankaccountstatus(value: BankAccountStatus): ValidateBankAccountResponse;
|
|
1504
|
+
|
|
1505
|
+
getValidationtext(): string;
|
|
1506
|
+
setValidationtext(value: string): ValidateBankAccountResponse;
|
|
1507
|
+
|
|
1508
|
+
getValidationtextdetails(): string;
|
|
1509
|
+
setValidationtextdetails(value: string): ValidateBankAccountResponse;
|
|
1510
|
+
|
|
1511
|
+
serializeBinary(): Uint8Array;
|
|
1512
|
+
toObject(includeInstance?: boolean): ValidateBankAccountResponse.AsObject;
|
|
1513
|
+
static toObject(includeInstance: boolean, msg: ValidateBankAccountResponse): ValidateBankAccountResponse.AsObject;
|
|
1514
|
+
static serializeBinaryToWriter(message: ValidateBankAccountResponse, writer: jspb.BinaryWriter): void;
|
|
1515
|
+
static deserializeBinary(bytes: Uint8Array): ValidateBankAccountResponse;
|
|
1516
|
+
static deserializeBinaryFromReader(message: ValidateBankAccountResponse, reader: jspb.BinaryReader): ValidateBankAccountResponse;
|
|
1517
|
+
}
|
|
1518
|
+
|
|
1519
|
+
export namespace ValidateBankAccountResponse {
|
|
1520
|
+
export type AsObject = {
|
|
1521
|
+
responsecode?: ResponseCode.AsObject,
|
|
1522
|
+
bankaccountstatus: BankAccountStatus,
|
|
1523
|
+
validationtext: string,
|
|
1524
|
+
validationtextdetails: string,
|
|
1525
|
+
}
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1470
1528
|
export class EmployeeBankAccountInfo extends jspb.Message {
|
|
1471
1529
|
getId(): number;
|
|
1472
1530
|
setId(value: number): EmployeeBankAccountInfo;
|
|
@@ -2305,3 +2363,10 @@ export namespace GetAgentUserRelationshipsResponse {
|
|
|
2305
2363
|
}
|
|
2306
2364
|
}
|
|
2307
2365
|
|
|
2366
|
+
export enum BankAccountStatus {
|
|
2367
|
+
BANK_ACCOUNT_STATUS_UNKNOWN = 0,
|
|
2368
|
+
BANK_ACCOUNT_STATUS_MATCHED = 1,
|
|
2369
|
+
BANK_ACCOUNT_STATUS_NOT_ENOUGH_PAYMENTS = 2,
|
|
2370
|
+
BANK_ACCOUNT_STATUS_UNMATCHED = 3,
|
|
2371
|
+
BANK_ACCOUNT_STATUS_VERIFY_UNAVAILABLE = 4,
|
|
2372
|
+
}
|
|
@@ -26,6 +26,7 @@ goog.exportSymbol('proto.payrollserviceapi.ABAFileSummary', null, global);
|
|
|
26
26
|
goog.exportSymbol('proto.payrollserviceapi.ABARecord', null, global);
|
|
27
27
|
goog.exportSymbol('proto.payrollserviceapi.ABARecordDetail', null, global);
|
|
28
28
|
goog.exportSymbol('proto.payrollserviceapi.Agent', null, global);
|
|
29
|
+
goog.exportSymbol('proto.payrollserviceapi.BankAccountStatus', null, global);
|
|
29
30
|
goog.exportSymbol('proto.payrollserviceapi.BulkImportEmployeesRequest', null, global);
|
|
30
31
|
goog.exportSymbol('proto.payrollserviceapi.BulkImportEmployeesResponse', null, global);
|
|
31
32
|
goog.exportSymbol('proto.payrollserviceapi.BusinessCountsDetails', null, global);
|
|
@@ -84,6 +85,8 @@ goog.exportSymbol('proto.payrollserviceapi.UpdateBusinessResponse', null, global
|
|
|
84
85
|
goog.exportSymbol('proto.payrollserviceapi.UpdateEmployeeRequest', null, global);
|
|
85
86
|
goog.exportSymbol('proto.payrollserviceapi.UpdateEmployeeResponse', null, global);
|
|
86
87
|
goog.exportSymbol('proto.payrollserviceapi.UserProfile', null, global);
|
|
88
|
+
goog.exportSymbol('proto.payrollserviceapi.ValidateBankAccountRequest', null, global);
|
|
89
|
+
goog.exportSymbol('proto.payrollserviceapi.ValidateBankAccountResponse', null, global);
|
|
87
90
|
/**
|
|
88
91
|
* Generated by JsPbCodeGenerator.
|
|
89
92
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -903,6 +906,48 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
903
906
|
*/
|
|
904
907
|
proto.payrollserviceapi.EmployeeBankAccountInfoRequest.displayName = 'proto.payrollserviceapi.EmployeeBankAccountInfoRequest';
|
|
905
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
* Generated by JsPbCodeGenerator.
|
|
911
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
912
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
913
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
914
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
915
|
+
* valid.
|
|
916
|
+
* @extends {jspb.Message}
|
|
917
|
+
* @constructor
|
|
918
|
+
*/
|
|
919
|
+
proto.payrollserviceapi.ValidateBankAccountRequest = function(opt_data) {
|
|
920
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
921
|
+
};
|
|
922
|
+
goog.inherits(proto.payrollserviceapi.ValidateBankAccountRequest, jspb.Message);
|
|
923
|
+
if (goog.DEBUG && !COMPILED) {
|
|
924
|
+
/**
|
|
925
|
+
* @public
|
|
926
|
+
* @override
|
|
927
|
+
*/
|
|
928
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.displayName = 'proto.payrollserviceapi.ValidateBankAccountRequest';
|
|
929
|
+
}
|
|
930
|
+
/**
|
|
931
|
+
* Generated by JsPbCodeGenerator.
|
|
932
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
933
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
934
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
935
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
936
|
+
* valid.
|
|
937
|
+
* @extends {jspb.Message}
|
|
938
|
+
* @constructor
|
|
939
|
+
*/
|
|
940
|
+
proto.payrollserviceapi.ValidateBankAccountResponse = function(opt_data) {
|
|
941
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
942
|
+
};
|
|
943
|
+
goog.inherits(proto.payrollserviceapi.ValidateBankAccountResponse, jspb.Message);
|
|
944
|
+
if (goog.DEBUG && !COMPILED) {
|
|
945
|
+
/**
|
|
946
|
+
* @public
|
|
947
|
+
* @override
|
|
948
|
+
*/
|
|
949
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.displayName = 'proto.payrollserviceapi.ValidateBankAccountResponse';
|
|
950
|
+
}
|
|
906
951
|
/**
|
|
907
952
|
* Generated by JsPbCodeGenerator.
|
|
908
953
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -12423,6 +12468,437 @@ proto.payrollserviceapi.EmployeeBankAccountInfoRequest.prototype.setDeleted = fu
|
|
|
12423
12468
|
|
|
12424
12469
|
|
|
12425
12470
|
|
|
12471
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12472
|
+
/**
|
|
12473
|
+
* Creates an object representation of this proto.
|
|
12474
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12475
|
+
* Optional fields that are not set will be set to undefined.
|
|
12476
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12477
|
+
* For the list of reserved names please see:
|
|
12478
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12479
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12480
|
+
* JSPB instance for transitional soy proto support:
|
|
12481
|
+
* http://goto/soy-param-migration
|
|
12482
|
+
* @return {!Object}
|
|
12483
|
+
*/
|
|
12484
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.toObject = function(opt_includeInstance) {
|
|
12485
|
+
return proto.payrollserviceapi.ValidateBankAccountRequest.toObject(opt_includeInstance, this);
|
|
12486
|
+
};
|
|
12487
|
+
|
|
12488
|
+
|
|
12489
|
+
/**
|
|
12490
|
+
* Static version of the {@see toObject} method.
|
|
12491
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12492
|
+
* the JSPB instance for transitional soy proto support:
|
|
12493
|
+
* http://goto/soy-param-migration
|
|
12494
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountRequest} msg The msg instance to transform.
|
|
12495
|
+
* @return {!Object}
|
|
12496
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12497
|
+
*/
|
|
12498
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.toObject = function(includeInstance, msg) {
|
|
12499
|
+
var f, obj = {
|
|
12500
|
+
bsb: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
12501
|
+
accountNumber: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
|
12502
|
+
accountName: jspb.Message.getFieldWithDefault(msg, 3, "")
|
|
12503
|
+
};
|
|
12504
|
+
|
|
12505
|
+
if (includeInstance) {
|
|
12506
|
+
obj.$jspbMessageInstance = msg;
|
|
12507
|
+
}
|
|
12508
|
+
return obj;
|
|
12509
|
+
};
|
|
12510
|
+
}
|
|
12511
|
+
|
|
12512
|
+
|
|
12513
|
+
/**
|
|
12514
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12515
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12516
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountRequest}
|
|
12517
|
+
*/
|
|
12518
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.deserializeBinary = function(bytes) {
|
|
12519
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12520
|
+
var msg = new proto.payrollserviceapi.ValidateBankAccountRequest;
|
|
12521
|
+
return proto.payrollserviceapi.ValidateBankAccountRequest.deserializeBinaryFromReader(msg, reader);
|
|
12522
|
+
};
|
|
12523
|
+
|
|
12524
|
+
|
|
12525
|
+
/**
|
|
12526
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12527
|
+
* given reader into the given message object.
|
|
12528
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountRequest} msg The message object to deserialize into.
|
|
12529
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12530
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountRequest}
|
|
12531
|
+
*/
|
|
12532
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
12533
|
+
while (reader.nextField()) {
|
|
12534
|
+
if (reader.isEndGroup()) {
|
|
12535
|
+
break;
|
|
12536
|
+
}
|
|
12537
|
+
var field = reader.getFieldNumber();
|
|
12538
|
+
switch (field) {
|
|
12539
|
+
case 1:
|
|
12540
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12541
|
+
msg.setBsb(value);
|
|
12542
|
+
break;
|
|
12543
|
+
case 2:
|
|
12544
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12545
|
+
msg.setAccountNumber(value);
|
|
12546
|
+
break;
|
|
12547
|
+
case 3:
|
|
12548
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12549
|
+
msg.setAccountName(value);
|
|
12550
|
+
break;
|
|
12551
|
+
default:
|
|
12552
|
+
reader.skipField();
|
|
12553
|
+
break;
|
|
12554
|
+
}
|
|
12555
|
+
}
|
|
12556
|
+
return msg;
|
|
12557
|
+
};
|
|
12558
|
+
|
|
12559
|
+
|
|
12560
|
+
/**
|
|
12561
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12562
|
+
* @return {!Uint8Array}
|
|
12563
|
+
*/
|
|
12564
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.serializeBinary = function() {
|
|
12565
|
+
var writer = new jspb.BinaryWriter();
|
|
12566
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.serializeBinaryToWriter(this, writer);
|
|
12567
|
+
return writer.getResultBuffer();
|
|
12568
|
+
};
|
|
12569
|
+
|
|
12570
|
+
|
|
12571
|
+
/**
|
|
12572
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12573
|
+
* format), writing to the given BinaryWriter.
|
|
12574
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountRequest} message
|
|
12575
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12576
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12577
|
+
*/
|
|
12578
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.serializeBinaryToWriter = function(message, writer) {
|
|
12579
|
+
var f = undefined;
|
|
12580
|
+
f = message.getBsb();
|
|
12581
|
+
if (f.length > 0) {
|
|
12582
|
+
writer.writeString(
|
|
12583
|
+
1,
|
|
12584
|
+
f
|
|
12585
|
+
);
|
|
12586
|
+
}
|
|
12587
|
+
f = message.getAccountNumber();
|
|
12588
|
+
if (f.length > 0) {
|
|
12589
|
+
writer.writeString(
|
|
12590
|
+
2,
|
|
12591
|
+
f
|
|
12592
|
+
);
|
|
12593
|
+
}
|
|
12594
|
+
f = message.getAccountName();
|
|
12595
|
+
if (f.length > 0) {
|
|
12596
|
+
writer.writeString(
|
|
12597
|
+
3,
|
|
12598
|
+
f
|
|
12599
|
+
);
|
|
12600
|
+
}
|
|
12601
|
+
};
|
|
12602
|
+
|
|
12603
|
+
|
|
12604
|
+
/**
|
|
12605
|
+
* optional string bsb = 1;
|
|
12606
|
+
* @return {string}
|
|
12607
|
+
*/
|
|
12608
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.getBsb = function() {
|
|
12609
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
12610
|
+
};
|
|
12611
|
+
|
|
12612
|
+
|
|
12613
|
+
/**
|
|
12614
|
+
* @param {string} value
|
|
12615
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountRequest} returns this
|
|
12616
|
+
*/
|
|
12617
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.setBsb = function(value) {
|
|
12618
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
12619
|
+
};
|
|
12620
|
+
|
|
12621
|
+
|
|
12622
|
+
/**
|
|
12623
|
+
* optional string account_number = 2;
|
|
12624
|
+
* @return {string}
|
|
12625
|
+
*/
|
|
12626
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.getAccountNumber = function() {
|
|
12627
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
12628
|
+
};
|
|
12629
|
+
|
|
12630
|
+
|
|
12631
|
+
/**
|
|
12632
|
+
* @param {string} value
|
|
12633
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountRequest} returns this
|
|
12634
|
+
*/
|
|
12635
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.setAccountNumber = function(value) {
|
|
12636
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
12637
|
+
};
|
|
12638
|
+
|
|
12639
|
+
|
|
12640
|
+
/**
|
|
12641
|
+
* optional string account_name = 3;
|
|
12642
|
+
* @return {string}
|
|
12643
|
+
*/
|
|
12644
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.getAccountName = function() {
|
|
12645
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12646
|
+
};
|
|
12647
|
+
|
|
12648
|
+
|
|
12649
|
+
/**
|
|
12650
|
+
* @param {string} value
|
|
12651
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountRequest} returns this
|
|
12652
|
+
*/
|
|
12653
|
+
proto.payrollserviceapi.ValidateBankAccountRequest.prototype.setAccountName = function(value) {
|
|
12654
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12655
|
+
};
|
|
12656
|
+
|
|
12657
|
+
|
|
12658
|
+
|
|
12659
|
+
|
|
12660
|
+
|
|
12661
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12662
|
+
/**
|
|
12663
|
+
* Creates an object representation of this proto.
|
|
12664
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
12665
|
+
* Optional fields that are not set will be set to undefined.
|
|
12666
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
12667
|
+
* For the list of reserved names please see:
|
|
12668
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
12669
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
12670
|
+
* JSPB instance for transitional soy proto support:
|
|
12671
|
+
* http://goto/soy-param-migration
|
|
12672
|
+
* @return {!Object}
|
|
12673
|
+
*/
|
|
12674
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.toObject = function(opt_includeInstance) {
|
|
12675
|
+
return proto.payrollserviceapi.ValidateBankAccountResponse.toObject(opt_includeInstance, this);
|
|
12676
|
+
};
|
|
12677
|
+
|
|
12678
|
+
|
|
12679
|
+
/**
|
|
12680
|
+
* Static version of the {@see toObject} method.
|
|
12681
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
12682
|
+
* the JSPB instance for transitional soy proto support:
|
|
12683
|
+
* http://goto/soy-param-migration
|
|
12684
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountResponse} msg The msg instance to transform.
|
|
12685
|
+
* @return {!Object}
|
|
12686
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12687
|
+
*/
|
|
12688
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.toObject = function(includeInstance, msg) {
|
|
12689
|
+
var f, obj = {
|
|
12690
|
+
responsecode: (f = msg.getResponsecode()) && proto.payrollserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
12691
|
+
bankaccountstatus: jspb.Message.getFieldWithDefault(msg, 2, 0),
|
|
12692
|
+
validationtext: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
|
12693
|
+
validationtextdetails: jspb.Message.getFieldWithDefault(msg, 4, "")
|
|
12694
|
+
};
|
|
12695
|
+
|
|
12696
|
+
if (includeInstance) {
|
|
12697
|
+
obj.$jspbMessageInstance = msg;
|
|
12698
|
+
}
|
|
12699
|
+
return obj;
|
|
12700
|
+
};
|
|
12701
|
+
}
|
|
12702
|
+
|
|
12703
|
+
|
|
12704
|
+
/**
|
|
12705
|
+
* Deserializes binary data (in protobuf wire format).
|
|
12706
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
12707
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse}
|
|
12708
|
+
*/
|
|
12709
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.deserializeBinary = function(bytes) {
|
|
12710
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
12711
|
+
var msg = new proto.payrollserviceapi.ValidateBankAccountResponse;
|
|
12712
|
+
return proto.payrollserviceapi.ValidateBankAccountResponse.deserializeBinaryFromReader(msg, reader);
|
|
12713
|
+
};
|
|
12714
|
+
|
|
12715
|
+
|
|
12716
|
+
/**
|
|
12717
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
12718
|
+
* given reader into the given message object.
|
|
12719
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountResponse} msg The message object to deserialize into.
|
|
12720
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
12721
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse}
|
|
12722
|
+
*/
|
|
12723
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
12724
|
+
while (reader.nextField()) {
|
|
12725
|
+
if (reader.isEndGroup()) {
|
|
12726
|
+
break;
|
|
12727
|
+
}
|
|
12728
|
+
var field = reader.getFieldNumber();
|
|
12729
|
+
switch (field) {
|
|
12730
|
+
case 1:
|
|
12731
|
+
var value = new proto.payrollserviceapi.ResponseCode;
|
|
12732
|
+
reader.readMessage(value,proto.payrollserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
12733
|
+
msg.setResponsecode(value);
|
|
12734
|
+
break;
|
|
12735
|
+
case 2:
|
|
12736
|
+
var value = /** @type {!proto.payrollserviceapi.BankAccountStatus} */ (reader.readEnum());
|
|
12737
|
+
msg.setBankaccountstatus(value);
|
|
12738
|
+
break;
|
|
12739
|
+
case 3:
|
|
12740
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12741
|
+
msg.setValidationtext(value);
|
|
12742
|
+
break;
|
|
12743
|
+
case 4:
|
|
12744
|
+
var value = /** @type {string} */ (reader.readString());
|
|
12745
|
+
msg.setValidationtextdetails(value);
|
|
12746
|
+
break;
|
|
12747
|
+
default:
|
|
12748
|
+
reader.skipField();
|
|
12749
|
+
break;
|
|
12750
|
+
}
|
|
12751
|
+
}
|
|
12752
|
+
return msg;
|
|
12753
|
+
};
|
|
12754
|
+
|
|
12755
|
+
|
|
12756
|
+
/**
|
|
12757
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
12758
|
+
* @return {!Uint8Array}
|
|
12759
|
+
*/
|
|
12760
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.serializeBinary = function() {
|
|
12761
|
+
var writer = new jspb.BinaryWriter();
|
|
12762
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.serializeBinaryToWriter(this, writer);
|
|
12763
|
+
return writer.getResultBuffer();
|
|
12764
|
+
};
|
|
12765
|
+
|
|
12766
|
+
|
|
12767
|
+
/**
|
|
12768
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
12769
|
+
* format), writing to the given BinaryWriter.
|
|
12770
|
+
* @param {!proto.payrollserviceapi.ValidateBankAccountResponse} message
|
|
12771
|
+
* @param {!jspb.BinaryWriter} writer
|
|
12772
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
12773
|
+
*/
|
|
12774
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.serializeBinaryToWriter = function(message, writer) {
|
|
12775
|
+
var f = undefined;
|
|
12776
|
+
f = message.getResponsecode();
|
|
12777
|
+
if (f != null) {
|
|
12778
|
+
writer.writeMessage(
|
|
12779
|
+
1,
|
|
12780
|
+
f,
|
|
12781
|
+
proto.payrollserviceapi.ResponseCode.serializeBinaryToWriter
|
|
12782
|
+
);
|
|
12783
|
+
}
|
|
12784
|
+
f = message.getBankaccountstatus();
|
|
12785
|
+
if (f !== 0.0) {
|
|
12786
|
+
writer.writeEnum(
|
|
12787
|
+
2,
|
|
12788
|
+
f
|
|
12789
|
+
);
|
|
12790
|
+
}
|
|
12791
|
+
f = message.getValidationtext();
|
|
12792
|
+
if (f.length > 0) {
|
|
12793
|
+
writer.writeString(
|
|
12794
|
+
3,
|
|
12795
|
+
f
|
|
12796
|
+
);
|
|
12797
|
+
}
|
|
12798
|
+
f = message.getValidationtextdetails();
|
|
12799
|
+
if (f.length > 0) {
|
|
12800
|
+
writer.writeString(
|
|
12801
|
+
4,
|
|
12802
|
+
f
|
|
12803
|
+
);
|
|
12804
|
+
}
|
|
12805
|
+
};
|
|
12806
|
+
|
|
12807
|
+
|
|
12808
|
+
/**
|
|
12809
|
+
* optional ResponseCode responseCode = 1;
|
|
12810
|
+
* @return {?proto.payrollserviceapi.ResponseCode}
|
|
12811
|
+
*/
|
|
12812
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.getResponsecode = function() {
|
|
12813
|
+
return /** @type{?proto.payrollserviceapi.ResponseCode} */ (
|
|
12814
|
+
jspb.Message.getWrapperField(this, proto.payrollserviceapi.ResponseCode, 1));
|
|
12815
|
+
};
|
|
12816
|
+
|
|
12817
|
+
|
|
12818
|
+
/**
|
|
12819
|
+
* @param {?proto.payrollserviceapi.ResponseCode|undefined} value
|
|
12820
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse} returns this
|
|
12821
|
+
*/
|
|
12822
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.setResponsecode = function(value) {
|
|
12823
|
+
return jspb.Message.setWrapperField(this, 1, value);
|
|
12824
|
+
};
|
|
12825
|
+
|
|
12826
|
+
|
|
12827
|
+
/**
|
|
12828
|
+
* Clears the message field making it undefined.
|
|
12829
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse} returns this
|
|
12830
|
+
*/
|
|
12831
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.clearResponsecode = function() {
|
|
12832
|
+
return this.setResponsecode(undefined);
|
|
12833
|
+
};
|
|
12834
|
+
|
|
12835
|
+
|
|
12836
|
+
/**
|
|
12837
|
+
* Returns whether this field is set.
|
|
12838
|
+
* @return {boolean}
|
|
12839
|
+
*/
|
|
12840
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.hasResponsecode = function() {
|
|
12841
|
+
return jspb.Message.getField(this, 1) != null;
|
|
12842
|
+
};
|
|
12843
|
+
|
|
12844
|
+
|
|
12845
|
+
/**
|
|
12846
|
+
* optional BankAccountStatus bankAccountStatus = 2;
|
|
12847
|
+
* @return {!proto.payrollserviceapi.BankAccountStatus}
|
|
12848
|
+
*/
|
|
12849
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.getBankaccountstatus = function() {
|
|
12850
|
+
return /** @type {!proto.payrollserviceapi.BankAccountStatus} */ (jspb.Message.getFieldWithDefault(this, 2, 0));
|
|
12851
|
+
};
|
|
12852
|
+
|
|
12853
|
+
|
|
12854
|
+
/**
|
|
12855
|
+
* @param {!proto.payrollserviceapi.BankAccountStatus} value
|
|
12856
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse} returns this
|
|
12857
|
+
*/
|
|
12858
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.setBankaccountstatus = function(value) {
|
|
12859
|
+
return jspb.Message.setProto3EnumField(this, 2, value);
|
|
12860
|
+
};
|
|
12861
|
+
|
|
12862
|
+
|
|
12863
|
+
/**
|
|
12864
|
+
* optional string validationText = 3;
|
|
12865
|
+
* @return {string}
|
|
12866
|
+
*/
|
|
12867
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.getValidationtext = function() {
|
|
12868
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 3, ""));
|
|
12869
|
+
};
|
|
12870
|
+
|
|
12871
|
+
|
|
12872
|
+
/**
|
|
12873
|
+
* @param {string} value
|
|
12874
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse} returns this
|
|
12875
|
+
*/
|
|
12876
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.setValidationtext = function(value) {
|
|
12877
|
+
return jspb.Message.setProto3StringField(this, 3, value);
|
|
12878
|
+
};
|
|
12879
|
+
|
|
12880
|
+
|
|
12881
|
+
/**
|
|
12882
|
+
* optional string validationTextDetails = 4;
|
|
12883
|
+
* @return {string}
|
|
12884
|
+
*/
|
|
12885
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.getValidationtextdetails = function() {
|
|
12886
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 4, ""));
|
|
12887
|
+
};
|
|
12888
|
+
|
|
12889
|
+
|
|
12890
|
+
/**
|
|
12891
|
+
* @param {string} value
|
|
12892
|
+
* @return {!proto.payrollserviceapi.ValidateBankAccountResponse} returns this
|
|
12893
|
+
*/
|
|
12894
|
+
proto.payrollserviceapi.ValidateBankAccountResponse.prototype.setValidationtextdetails = function(value) {
|
|
12895
|
+
return jspb.Message.setProto3StringField(this, 4, value);
|
|
12896
|
+
};
|
|
12897
|
+
|
|
12898
|
+
|
|
12899
|
+
|
|
12900
|
+
|
|
12901
|
+
|
|
12426
12902
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
12427
12903
|
/**
|
|
12428
12904
|
* Creates an object representation of this proto.
|
|
@@ -18760,4 +19236,15 @@ proto.payrollserviceapi.GetAgentUserRelationshipsResponse.prototype.setMessage =
|
|
|
18760
19236
|
};
|
|
18761
19237
|
|
|
18762
19238
|
|
|
19239
|
+
/**
|
|
19240
|
+
* @enum {number}
|
|
19241
|
+
*/
|
|
19242
|
+
proto.payrollserviceapi.BankAccountStatus = {
|
|
19243
|
+
BANK_ACCOUNT_STATUS_UNKNOWN: 0,
|
|
19244
|
+
BANK_ACCOUNT_STATUS_MATCHED: 1,
|
|
19245
|
+
BANK_ACCOUNT_STATUS_NOT_ENOUGH_PAYMENTS: 2,
|
|
19246
|
+
BANK_ACCOUNT_STATUS_UNMATCHED: 3,
|
|
19247
|
+
BANK_ACCOUNT_STATUS_VERIFY_UNAVAILABLE: 4
|
|
19248
|
+
};
|
|
19249
|
+
|
|
18763
19250
|
goog.object.extend(exports, proto.payrollserviceapi);
|