@sniipwebmaster/kyc-client-grpcweb 21.8.24 → 21.8.31
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.
- package/dependancies/service_pb.js +482 -20
- package/package.json +1 -1
|
@@ -15,8 +15,10 @@ goog.exportSymbol('proto.kycserviceapi.Document', null, global);
|
|
|
15
15
|
goog.exportSymbol('proto.kycserviceapi.DocumentResponse', null, global);
|
|
16
16
|
goog.exportSymbol('proto.kycserviceapi.DocumentStatus', null, global);
|
|
17
17
|
goog.exportSymbol('proto.kycserviceapi.DocumentType', null, global);
|
|
18
|
+
goog.exportSymbol('proto.kycserviceapi.DriversLicense', null, global);
|
|
18
19
|
goog.exportSymbol('proto.kycserviceapi.GetDocumentRequest', null, global);
|
|
19
20
|
goog.exportSymbol('proto.kycserviceapi.GetUserKycStatusRequest', null, global);
|
|
21
|
+
goog.exportSymbol('proto.kycserviceapi.KycPaymentMethod', null, global);
|
|
20
22
|
goog.exportSymbol('proto.kycserviceapi.Passport', null, global);
|
|
21
23
|
goog.exportSymbol('proto.kycserviceapi.RequestUserKycRequest', null, global);
|
|
22
24
|
goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
|
|
@@ -83,8 +85,8 @@ proto.kycserviceapi.Document.toObject = function(includeInstance, msg) {
|
|
|
83
85
|
status: msg.getStatus(),
|
|
84
86
|
required: msg.getRequired(),
|
|
85
87
|
passport: (f = msg.getPassport()) && proto.kycserviceapi.Passport.toObject(includeInstance, f),
|
|
86
|
-
driverslicense: msg.getDriverslicense(),
|
|
87
|
-
paymentmethod: msg.getPaymentmethod(),
|
|
88
|
+
driverslicense: (f = msg.getDriverslicense()) && proto.kycserviceapi.DriversLicense.toObject(includeInstance, f),
|
|
89
|
+
paymentmethod: (f = msg.getPaymentmethod()) && proto.kycserviceapi.KycPaymentMethod.toObject(includeInstance, f),
|
|
88
90
|
attachmentidsList: jspb.Message.getField(msg, 8)
|
|
89
91
|
};
|
|
90
92
|
|
|
@@ -144,11 +146,13 @@ proto.kycserviceapi.Document.deserializeBinaryFromReader = function(msg, reader)
|
|
|
144
146
|
msg.setPassport(value);
|
|
145
147
|
break;
|
|
146
148
|
case 6:
|
|
147
|
-
var value =
|
|
149
|
+
var value = new proto.kycserviceapi.DriversLicense;
|
|
150
|
+
reader.readMessage(value,proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader);
|
|
148
151
|
msg.setDriverslicense(value);
|
|
149
152
|
break;
|
|
150
153
|
case 7:
|
|
151
|
-
var value =
|
|
154
|
+
var value = new proto.kycserviceapi.KycPaymentMethod;
|
|
155
|
+
reader.readMessage(value,proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader);
|
|
152
156
|
msg.setPaymentmethod(value);
|
|
153
157
|
break;
|
|
154
158
|
case 8:
|
|
@@ -230,17 +234,19 @@ proto.kycserviceapi.Document.prototype.serializeBinaryToWriter = function (write
|
|
|
230
234
|
);
|
|
231
235
|
}
|
|
232
236
|
f = this.getDriverslicense();
|
|
233
|
-
if (f
|
|
234
|
-
writer.
|
|
237
|
+
if (f != null) {
|
|
238
|
+
writer.writeMessage(
|
|
235
239
|
6,
|
|
236
|
-
f
|
|
240
|
+
f,
|
|
241
|
+
proto.kycserviceapi.DriversLicense.serializeBinaryToWriter
|
|
237
242
|
);
|
|
238
243
|
}
|
|
239
244
|
f = this.getPaymentmethod();
|
|
240
|
-
if (f
|
|
241
|
-
writer.
|
|
245
|
+
if (f != null) {
|
|
246
|
+
writer.writeMessage(
|
|
242
247
|
7,
|
|
243
|
-
f
|
|
248
|
+
f,
|
|
249
|
+
proto.kycserviceapi.KycPaymentMethod.serializeBinaryToWriter
|
|
244
250
|
);
|
|
245
251
|
}
|
|
246
252
|
f = this.getAttachmentidsList();
|
|
@@ -355,32 +361,62 @@ proto.kycserviceapi.Document.prototype.hasPassport = function() {
|
|
|
355
361
|
|
|
356
362
|
|
|
357
363
|
/**
|
|
358
|
-
* optional
|
|
359
|
-
* @return {
|
|
364
|
+
* optional DriversLicense driversLicense = 6;
|
|
365
|
+
* @return {proto.kycserviceapi.DriversLicense}
|
|
360
366
|
*/
|
|
361
367
|
proto.kycserviceapi.Document.prototype.getDriverslicense = function() {
|
|
362
|
-
return /** @type
|
|
368
|
+
return /** @type{proto.kycserviceapi.DriversLicense} */ (
|
|
369
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.DriversLicense, 6));
|
|
363
370
|
};
|
|
364
371
|
|
|
365
372
|
|
|
366
|
-
/** @param {
|
|
373
|
+
/** @param {proto.kycserviceapi.DriversLicense|undefined} value */
|
|
367
374
|
proto.kycserviceapi.Document.prototype.setDriverslicense = function(value) {
|
|
368
|
-
jspb.Message.
|
|
375
|
+
jspb.Message.setWrapperField(this, 6, value);
|
|
376
|
+
};
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
proto.kycserviceapi.Document.prototype.clearDriverslicense = function() {
|
|
380
|
+
this.setDriverslicense(undefined);
|
|
369
381
|
};
|
|
370
382
|
|
|
371
383
|
|
|
372
384
|
/**
|
|
373
|
-
*
|
|
374
|
-
* @return
|
|
385
|
+
* Returns whether this field is set.
|
|
386
|
+
* @return{!boolean}
|
|
387
|
+
*/
|
|
388
|
+
proto.kycserviceapi.Document.prototype.hasDriverslicense = function() {
|
|
389
|
+
return jspb.Message.getField(this, 6) != null;
|
|
390
|
+
};
|
|
391
|
+
|
|
392
|
+
|
|
393
|
+
/**
|
|
394
|
+
* optional KycPaymentMethod paymentMethod = 7;
|
|
395
|
+
* @return {proto.kycserviceapi.KycPaymentMethod}
|
|
375
396
|
*/
|
|
376
397
|
proto.kycserviceapi.Document.prototype.getPaymentmethod = function() {
|
|
377
|
-
return /** @type
|
|
398
|
+
return /** @type{proto.kycserviceapi.KycPaymentMethod} */ (
|
|
399
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.KycPaymentMethod, 7));
|
|
378
400
|
};
|
|
379
401
|
|
|
380
402
|
|
|
381
|
-
/** @param {
|
|
403
|
+
/** @param {proto.kycserviceapi.KycPaymentMethod|undefined} value */
|
|
382
404
|
proto.kycserviceapi.Document.prototype.setPaymentmethod = function(value) {
|
|
383
|
-
jspb.Message.
|
|
405
|
+
jspb.Message.setWrapperField(this, 7, value);
|
|
406
|
+
};
|
|
407
|
+
|
|
408
|
+
|
|
409
|
+
proto.kycserviceapi.Document.prototype.clearPaymentmethod = function() {
|
|
410
|
+
this.setPaymentmethod(undefined);
|
|
411
|
+
};
|
|
412
|
+
|
|
413
|
+
|
|
414
|
+
/**
|
|
415
|
+
* Returns whether this field is set.
|
|
416
|
+
* @return{!boolean}
|
|
417
|
+
*/
|
|
418
|
+
proto.kycserviceapi.Document.prototype.hasPaymentmethod = function() {
|
|
419
|
+
return jspb.Message.getField(this, 7) != null;
|
|
384
420
|
};
|
|
385
421
|
|
|
386
422
|
|
|
@@ -704,6 +740,246 @@ proto.kycserviceapi.DocumentResponse.prototype.clearStatesList = function() {
|
|
|
704
740
|
|
|
705
741
|
|
|
706
742
|
|
|
743
|
+
/**
|
|
744
|
+
* Generated by JsPbCodeGenerator.
|
|
745
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
746
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
747
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
748
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
749
|
+
* valid.
|
|
750
|
+
* @extends {jspb.Message}
|
|
751
|
+
* @constructor
|
|
752
|
+
*/
|
|
753
|
+
proto.kycserviceapi.DriversLicense = function(opt_data) {
|
|
754
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
755
|
+
};
|
|
756
|
+
goog.inherits(proto.kycserviceapi.DriversLicense, jspb.Message);
|
|
757
|
+
if (goog.DEBUG && !COMPILED) {
|
|
758
|
+
proto.kycserviceapi.DriversLicense.displayName = 'proto.kycserviceapi.DriversLicense';
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
|
|
762
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
763
|
+
/**
|
|
764
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
765
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
766
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
767
|
+
* For the list of reserved names please see:
|
|
768
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
769
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
770
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
771
|
+
* @return {!Object}
|
|
772
|
+
*/
|
|
773
|
+
proto.kycserviceapi.DriversLicense.prototype.toObject = function(opt_includeInstance) {
|
|
774
|
+
return proto.kycserviceapi.DriversLicense.toObject(opt_includeInstance, this);
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Static version of the {@see toObject} method.
|
|
780
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
781
|
+
* instance for transitional soy proto support:
|
|
782
|
+
* http://goto/soy-param-migration
|
|
783
|
+
* @param {!proto.kycserviceapi.DriversLicense} msg The msg instance to transform.
|
|
784
|
+
* @return {!Object}
|
|
785
|
+
*/
|
|
786
|
+
proto.kycserviceapi.DriversLicense.toObject = function(includeInstance, msg) {
|
|
787
|
+
var f, obj = {
|
|
788
|
+
driverslicenseid: msg.getDriverslicenseid(),
|
|
789
|
+
country: msg.getCountry(),
|
|
790
|
+
state: msg.getState(),
|
|
791
|
+
licensenumber: msg.getLicensenumber()
|
|
792
|
+
};
|
|
793
|
+
|
|
794
|
+
if (includeInstance) {
|
|
795
|
+
obj.$jspbMessageInstance = msg;
|
|
796
|
+
}
|
|
797
|
+
return obj;
|
|
798
|
+
};
|
|
799
|
+
}
|
|
800
|
+
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Deserializes binary data (in protobuf wire format).
|
|
804
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
805
|
+
* @return {!proto.kycserviceapi.DriversLicense}
|
|
806
|
+
*/
|
|
807
|
+
proto.kycserviceapi.DriversLicense.deserializeBinary = function(bytes) {
|
|
808
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
809
|
+
var msg = new proto.kycserviceapi.DriversLicense;
|
|
810
|
+
return proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader(msg, reader);
|
|
811
|
+
};
|
|
812
|
+
|
|
813
|
+
|
|
814
|
+
/**
|
|
815
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
816
|
+
* given reader into the given message object.
|
|
817
|
+
* @param {!proto.kycserviceapi.DriversLicense} msg The message object to deserialize into.
|
|
818
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
819
|
+
* @return {!proto.kycserviceapi.DriversLicense}
|
|
820
|
+
*/
|
|
821
|
+
proto.kycserviceapi.DriversLicense.deserializeBinaryFromReader = function(msg, reader) {
|
|
822
|
+
while (reader.nextField()) {
|
|
823
|
+
if (reader.isEndGroup()) {
|
|
824
|
+
break;
|
|
825
|
+
}
|
|
826
|
+
var field = reader.getFieldNumber();
|
|
827
|
+
switch (field) {
|
|
828
|
+
case 1:
|
|
829
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
830
|
+
msg.setDriverslicenseid(value);
|
|
831
|
+
break;
|
|
832
|
+
case 2:
|
|
833
|
+
var value = /** @type {string} */ (reader.readString());
|
|
834
|
+
msg.setCountry(value);
|
|
835
|
+
break;
|
|
836
|
+
case 3:
|
|
837
|
+
var value = /** @type {string} */ (reader.readString());
|
|
838
|
+
msg.setState(value);
|
|
839
|
+
break;
|
|
840
|
+
case 4:
|
|
841
|
+
var value = /** @type {string} */ (reader.readString());
|
|
842
|
+
msg.setLicensenumber(value);
|
|
843
|
+
break;
|
|
844
|
+
default:
|
|
845
|
+
reader.skipField();
|
|
846
|
+
break;
|
|
847
|
+
}
|
|
848
|
+
}
|
|
849
|
+
return msg;
|
|
850
|
+
};
|
|
851
|
+
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* Class method variant: serializes the given message to binary data
|
|
855
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
856
|
+
* @param {!proto.kycserviceapi.DriversLicense} message
|
|
857
|
+
* @param {!jspb.BinaryWriter} writer
|
|
858
|
+
*/
|
|
859
|
+
proto.kycserviceapi.DriversLicense.serializeBinaryToWriter = function(message, writer) {
|
|
860
|
+
message.serializeBinaryToWriter(writer);
|
|
861
|
+
};
|
|
862
|
+
|
|
863
|
+
|
|
864
|
+
/**
|
|
865
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
866
|
+
* @return {!Uint8Array}
|
|
867
|
+
*/
|
|
868
|
+
proto.kycserviceapi.DriversLicense.prototype.serializeBinary = function() {
|
|
869
|
+
var writer = new jspb.BinaryWriter();
|
|
870
|
+
this.serializeBinaryToWriter(writer);
|
|
871
|
+
return writer.getResultBuffer();
|
|
872
|
+
};
|
|
873
|
+
|
|
874
|
+
|
|
875
|
+
/**
|
|
876
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
877
|
+
* writing to the given BinaryWriter.
|
|
878
|
+
* @param {!jspb.BinaryWriter} writer
|
|
879
|
+
*/
|
|
880
|
+
proto.kycserviceapi.DriversLicense.prototype.serializeBinaryToWriter = function (writer) {
|
|
881
|
+
var f = undefined;
|
|
882
|
+
f = this.getDriverslicenseid();
|
|
883
|
+
if (f !== 0) {
|
|
884
|
+
writer.writeInt64(
|
|
885
|
+
1,
|
|
886
|
+
f
|
|
887
|
+
);
|
|
888
|
+
}
|
|
889
|
+
f = this.getCountry();
|
|
890
|
+
if (f.length > 0) {
|
|
891
|
+
writer.writeString(
|
|
892
|
+
2,
|
|
893
|
+
f
|
|
894
|
+
);
|
|
895
|
+
}
|
|
896
|
+
f = this.getState();
|
|
897
|
+
if (f.length > 0) {
|
|
898
|
+
writer.writeString(
|
|
899
|
+
3,
|
|
900
|
+
f
|
|
901
|
+
);
|
|
902
|
+
}
|
|
903
|
+
f = this.getLicensenumber();
|
|
904
|
+
if (f.length > 0) {
|
|
905
|
+
writer.writeString(
|
|
906
|
+
4,
|
|
907
|
+
f
|
|
908
|
+
);
|
|
909
|
+
}
|
|
910
|
+
};
|
|
911
|
+
|
|
912
|
+
|
|
913
|
+
/**
|
|
914
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
915
|
+
* @return {!proto.kycserviceapi.DriversLicense} The clone.
|
|
916
|
+
*/
|
|
917
|
+
proto.kycserviceapi.DriversLicense.prototype.cloneMessage = function() {
|
|
918
|
+
return /** @type {!proto.kycserviceapi.DriversLicense} */ (jspb.Message.cloneMessage(this));
|
|
919
|
+
};
|
|
920
|
+
|
|
921
|
+
|
|
922
|
+
/**
|
|
923
|
+
* optional int64 driversLicenseId = 1;
|
|
924
|
+
* @return {number}
|
|
925
|
+
*/
|
|
926
|
+
proto.kycserviceapi.DriversLicense.prototype.getDriverslicenseid = function() {
|
|
927
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
928
|
+
};
|
|
929
|
+
|
|
930
|
+
|
|
931
|
+
/** @param {number} value */
|
|
932
|
+
proto.kycserviceapi.DriversLicense.prototype.setDriverslicenseid = function(value) {
|
|
933
|
+
jspb.Message.setField(this, 1, value);
|
|
934
|
+
};
|
|
935
|
+
|
|
936
|
+
|
|
937
|
+
/**
|
|
938
|
+
* optional string country = 2;
|
|
939
|
+
* @return {string}
|
|
940
|
+
*/
|
|
941
|
+
proto.kycserviceapi.DriversLicense.prototype.getCountry = function() {
|
|
942
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
943
|
+
};
|
|
944
|
+
|
|
945
|
+
|
|
946
|
+
/** @param {string} value */
|
|
947
|
+
proto.kycserviceapi.DriversLicense.prototype.setCountry = function(value) {
|
|
948
|
+
jspb.Message.setField(this, 2, value);
|
|
949
|
+
};
|
|
950
|
+
|
|
951
|
+
|
|
952
|
+
/**
|
|
953
|
+
* optional string state = 3;
|
|
954
|
+
* @return {string}
|
|
955
|
+
*/
|
|
956
|
+
proto.kycserviceapi.DriversLicense.prototype.getState = function() {
|
|
957
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 3, ""));
|
|
958
|
+
};
|
|
959
|
+
|
|
960
|
+
|
|
961
|
+
/** @param {string} value */
|
|
962
|
+
proto.kycserviceapi.DriversLicense.prototype.setState = function(value) {
|
|
963
|
+
jspb.Message.setField(this, 3, value);
|
|
964
|
+
};
|
|
965
|
+
|
|
966
|
+
|
|
967
|
+
/**
|
|
968
|
+
* optional string licenseNumber = 4;
|
|
969
|
+
* @return {string}
|
|
970
|
+
*/
|
|
971
|
+
proto.kycserviceapi.DriversLicense.prototype.getLicensenumber = function() {
|
|
972
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
|
|
973
|
+
};
|
|
974
|
+
|
|
975
|
+
|
|
976
|
+
/** @param {string} value */
|
|
977
|
+
proto.kycserviceapi.DriversLicense.prototype.setLicensenumber = function(value) {
|
|
978
|
+
jspb.Message.setField(this, 4, value);
|
|
979
|
+
};
|
|
980
|
+
|
|
981
|
+
|
|
982
|
+
|
|
707
983
|
/**
|
|
708
984
|
* Generated by JsPbCodeGenerator.
|
|
709
985
|
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
@@ -1022,6 +1298,192 @@ proto.kycserviceapi.GetUserKycStatusRequest.prototype.setUserid = function(value
|
|
|
1022
1298
|
|
|
1023
1299
|
|
|
1024
1300
|
|
|
1301
|
+
/**
|
|
1302
|
+
* Generated by JsPbCodeGenerator.
|
|
1303
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1304
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1305
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1306
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1307
|
+
* valid.
|
|
1308
|
+
* @extends {jspb.Message}
|
|
1309
|
+
* @constructor
|
|
1310
|
+
*/
|
|
1311
|
+
proto.kycserviceapi.KycPaymentMethod = function(opt_data) {
|
|
1312
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
1313
|
+
};
|
|
1314
|
+
goog.inherits(proto.kycserviceapi.KycPaymentMethod, jspb.Message);
|
|
1315
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1316
|
+
proto.kycserviceapi.KycPaymentMethod.displayName = 'proto.kycserviceapi.KycPaymentMethod';
|
|
1317
|
+
}
|
|
1318
|
+
|
|
1319
|
+
|
|
1320
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1321
|
+
/**
|
|
1322
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1323
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1324
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1325
|
+
* For the list of reserved names please see:
|
|
1326
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1327
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1328
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1329
|
+
* @return {!Object}
|
|
1330
|
+
*/
|
|
1331
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.toObject = function(opt_includeInstance) {
|
|
1332
|
+
return proto.kycserviceapi.KycPaymentMethod.toObject(opt_includeInstance, this);
|
|
1333
|
+
};
|
|
1334
|
+
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Static version of the {@see toObject} method.
|
|
1338
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1339
|
+
* instance for transitional soy proto support:
|
|
1340
|
+
* http://goto/soy-param-migration
|
|
1341
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} msg The msg instance to transform.
|
|
1342
|
+
* @return {!Object}
|
|
1343
|
+
*/
|
|
1344
|
+
proto.kycserviceapi.KycPaymentMethod.toObject = function(includeInstance, msg) {
|
|
1345
|
+
var f, obj = {
|
|
1346
|
+
kycpaymentmethodid: msg.getKycpaymentmethodid(),
|
|
1347
|
+
paymentmethodid: msg.getPaymentmethodid()
|
|
1348
|
+
};
|
|
1349
|
+
|
|
1350
|
+
if (includeInstance) {
|
|
1351
|
+
obj.$jspbMessageInstance = msg;
|
|
1352
|
+
}
|
|
1353
|
+
return obj;
|
|
1354
|
+
};
|
|
1355
|
+
}
|
|
1356
|
+
|
|
1357
|
+
|
|
1358
|
+
/**
|
|
1359
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1360
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1361
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod}
|
|
1362
|
+
*/
|
|
1363
|
+
proto.kycserviceapi.KycPaymentMethod.deserializeBinary = function(bytes) {
|
|
1364
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1365
|
+
var msg = new proto.kycserviceapi.KycPaymentMethod;
|
|
1366
|
+
return proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader(msg, reader);
|
|
1367
|
+
};
|
|
1368
|
+
|
|
1369
|
+
|
|
1370
|
+
/**
|
|
1371
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1372
|
+
* given reader into the given message object.
|
|
1373
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} msg The message object to deserialize into.
|
|
1374
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1375
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod}
|
|
1376
|
+
*/
|
|
1377
|
+
proto.kycserviceapi.KycPaymentMethod.deserializeBinaryFromReader = function(msg, reader) {
|
|
1378
|
+
while (reader.nextField()) {
|
|
1379
|
+
if (reader.isEndGroup()) {
|
|
1380
|
+
break;
|
|
1381
|
+
}
|
|
1382
|
+
var field = reader.getFieldNumber();
|
|
1383
|
+
switch (field) {
|
|
1384
|
+
case 1:
|
|
1385
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1386
|
+
msg.setKycpaymentmethodid(value);
|
|
1387
|
+
break;
|
|
1388
|
+
case 2:
|
|
1389
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1390
|
+
msg.setPaymentmethodid(value);
|
|
1391
|
+
break;
|
|
1392
|
+
default:
|
|
1393
|
+
reader.skipField();
|
|
1394
|
+
break;
|
|
1395
|
+
}
|
|
1396
|
+
}
|
|
1397
|
+
return msg;
|
|
1398
|
+
};
|
|
1399
|
+
|
|
1400
|
+
|
|
1401
|
+
/**
|
|
1402
|
+
* Class method variant: serializes the given message to binary data
|
|
1403
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1404
|
+
* @param {!proto.kycserviceapi.KycPaymentMethod} message
|
|
1405
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1406
|
+
*/
|
|
1407
|
+
proto.kycserviceapi.KycPaymentMethod.serializeBinaryToWriter = function(message, writer) {
|
|
1408
|
+
message.serializeBinaryToWriter(writer);
|
|
1409
|
+
};
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
/**
|
|
1413
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1414
|
+
* @return {!Uint8Array}
|
|
1415
|
+
*/
|
|
1416
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.serializeBinary = function() {
|
|
1417
|
+
var writer = new jspb.BinaryWriter();
|
|
1418
|
+
this.serializeBinaryToWriter(writer);
|
|
1419
|
+
return writer.getResultBuffer();
|
|
1420
|
+
};
|
|
1421
|
+
|
|
1422
|
+
|
|
1423
|
+
/**
|
|
1424
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1425
|
+
* writing to the given BinaryWriter.
|
|
1426
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1427
|
+
*/
|
|
1428
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.serializeBinaryToWriter = function (writer) {
|
|
1429
|
+
var f = undefined;
|
|
1430
|
+
f = this.getKycpaymentmethodid();
|
|
1431
|
+
if (f !== 0) {
|
|
1432
|
+
writer.writeInt64(
|
|
1433
|
+
1,
|
|
1434
|
+
f
|
|
1435
|
+
);
|
|
1436
|
+
}
|
|
1437
|
+
f = this.getPaymentmethodid();
|
|
1438
|
+
if (f !== 0) {
|
|
1439
|
+
writer.writeInt64(
|
|
1440
|
+
2,
|
|
1441
|
+
f
|
|
1442
|
+
);
|
|
1443
|
+
}
|
|
1444
|
+
};
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
/**
|
|
1448
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1449
|
+
* @return {!proto.kycserviceapi.KycPaymentMethod} The clone.
|
|
1450
|
+
*/
|
|
1451
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.cloneMessage = function() {
|
|
1452
|
+
return /** @type {!proto.kycserviceapi.KycPaymentMethod} */ (jspb.Message.cloneMessage(this));
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
|
|
1456
|
+
/**
|
|
1457
|
+
* optional int64 kycPaymentMethodId = 1;
|
|
1458
|
+
* @return {number}
|
|
1459
|
+
*/
|
|
1460
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.getKycpaymentmethodid = function() {
|
|
1461
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1462
|
+
};
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
/** @param {number} value */
|
|
1466
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.setKycpaymentmethodid = function(value) {
|
|
1467
|
+
jspb.Message.setField(this, 1, value);
|
|
1468
|
+
};
|
|
1469
|
+
|
|
1470
|
+
|
|
1471
|
+
/**
|
|
1472
|
+
* optional int64 paymentMethodId = 2;
|
|
1473
|
+
* @return {number}
|
|
1474
|
+
*/
|
|
1475
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.getPaymentmethodid = function() {
|
|
1476
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
1477
|
+
};
|
|
1478
|
+
|
|
1479
|
+
|
|
1480
|
+
/** @param {number} value */
|
|
1481
|
+
proto.kycserviceapi.KycPaymentMethod.prototype.setPaymentmethodid = function(value) {
|
|
1482
|
+
jspb.Message.setField(this, 2, value);
|
|
1483
|
+
};
|
|
1484
|
+
|
|
1485
|
+
|
|
1486
|
+
|
|
1025
1487
|
/**
|
|
1026
1488
|
* Generated by JsPbCodeGenerator.
|
|
1027
1489
|
* @param {Array=} opt_data Optional initial data array, typically from a
|