@sniipwebmaster/kyc-client-grpcweb 21.8.3 → 21.8.17
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.
|
@@ -90,6 +90,61 @@ proto.kycserviceapi.KYCServiceAPIServicePromiseClient =
|
|
|
90
90
|
};
|
|
91
91
|
|
|
92
92
|
|
|
93
|
+
/**
|
|
94
|
+
* @const
|
|
95
|
+
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
96
|
+
* !proto.kycserviceapi.GetUserKycStatusRequest,
|
|
97
|
+
* !proto.kycserviceapi.UserKycStatusResponse>}
|
|
98
|
+
*/
|
|
99
|
+
const methodInfo_KYCServiceAPIService_GetUserKycStatus = new grpc.web.AbstractClientBase.MethodInfo(
|
|
100
|
+
proto.kycserviceapi.UserKycStatusResponse,
|
|
101
|
+
/** @param {!proto.kycserviceapi.GetUserKycStatusRequest} request */
|
|
102
|
+
function(request) {
|
|
103
|
+
return request.serializeBinary();
|
|
104
|
+
},
|
|
105
|
+
proto.kycserviceapi.UserKycStatusResponse.deserializeBinary
|
|
106
|
+
);
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
/**
|
|
110
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} request The
|
|
111
|
+
* request proto
|
|
112
|
+
* @param {?Object<string, string>} metadata User defined
|
|
113
|
+
* call metadata
|
|
114
|
+
* @param {function(?grpc.web.Error, ?proto.kycserviceapi.UserKycStatusResponse)}
|
|
115
|
+
* callback The callback function(error, response)
|
|
116
|
+
* @return {!grpc.web.ClientReadableStream<!proto.kycserviceapi.UserKycStatusResponse>|undefined}
|
|
117
|
+
* The XHR Node Readable Stream
|
|
118
|
+
*/
|
|
119
|
+
proto.kycserviceapi.KYCServiceAPIServiceClient.prototype.getUserKycStatus =
|
|
120
|
+
function(request, metadata, callback) {
|
|
121
|
+
return this.client_.rpcCall(this.hostname_ +
|
|
122
|
+
'/kycserviceapi.KYCServiceAPIService/GetUserKycStatus',
|
|
123
|
+
request,
|
|
124
|
+
metadata || {},
|
|
125
|
+
methodInfo_KYCServiceAPIService_GetUserKycStatus,
|
|
126
|
+
callback);
|
|
127
|
+
};
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} request The
|
|
132
|
+
* request proto
|
|
133
|
+
* @param {?Object<string, string>} metadata User defined
|
|
134
|
+
* call metadata
|
|
135
|
+
* @return {!Promise<!proto.kycserviceapi.UserKycStatusResponse>}
|
|
136
|
+
* A native promise that resolves to the response
|
|
137
|
+
*/
|
|
138
|
+
proto.kycserviceapi.KYCServiceAPIServicePromiseClient.prototype.getUserKycStatus =
|
|
139
|
+
function(request, metadata) {
|
|
140
|
+
return this.client_.unaryCall(this.hostname_ +
|
|
141
|
+
'/kycserviceapi.KYCServiceAPIService/GetUserKycStatus',
|
|
142
|
+
request,
|
|
143
|
+
metadata || {},
|
|
144
|
+
methodInfo_KYCServiceAPIService_GetUserKycStatus);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
|
|
93
148
|
/**
|
|
94
149
|
* @const
|
|
95
150
|
* @type {!grpc.web.AbstractClientBase.MethodInfo<
|
|
@@ -13,10 +13,173 @@ var google_api_annotations_pb = require('./google/api/annotations_pb.js');
|
|
|
13
13
|
var google_protobuf_empty_pb = require('google-protobuf/google/protobuf/empty_pb.js');
|
|
14
14
|
goog.exportSymbol('proto.kycserviceapi.DocumentStatus', null, global);
|
|
15
15
|
goog.exportSymbol('proto.kycserviceapi.DocumentType', null, global);
|
|
16
|
+
goog.exportSymbol('proto.kycserviceapi.GetUserKycStatusRequest', null, global);
|
|
16
17
|
goog.exportSymbol('proto.kycserviceapi.RequestUserKycRequest', null, global);
|
|
17
18
|
goog.exportSymbol('proto.kycserviceapi.RequestedDocument', null, global);
|
|
18
19
|
goog.exportSymbol('proto.kycserviceapi.ResponseCode', null, global);
|
|
20
|
+
goog.exportSymbol('proto.kycserviceapi.User', null, global);
|
|
19
21
|
goog.exportSymbol('proto.kycserviceapi.UserKycRequest', null, global);
|
|
22
|
+
goog.exportSymbol('proto.kycserviceapi.UserKycStatusResponse', null, global);
|
|
23
|
+
goog.exportSymbol('proto.kycserviceapi.UserStatus', null, global);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Generated by JsPbCodeGenerator.
|
|
27
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
28
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
29
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
30
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
31
|
+
* valid.
|
|
32
|
+
* @extends {jspb.Message}
|
|
33
|
+
* @constructor
|
|
34
|
+
*/
|
|
35
|
+
proto.kycserviceapi.GetUserKycStatusRequest = function(opt_data) {
|
|
36
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
37
|
+
};
|
|
38
|
+
goog.inherits(proto.kycserviceapi.GetUserKycStatusRequest, jspb.Message);
|
|
39
|
+
if (goog.DEBUG && !COMPILED) {
|
|
40
|
+
proto.kycserviceapi.GetUserKycStatusRequest.displayName = 'proto.kycserviceapi.GetUserKycStatusRequest';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
45
|
+
/**
|
|
46
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
47
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
48
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
49
|
+
* For the list of reserved names please see:
|
|
50
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
51
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
52
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
53
|
+
* @return {!Object}
|
|
54
|
+
*/
|
|
55
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.toObject = function(opt_includeInstance) {
|
|
56
|
+
return proto.kycserviceapi.GetUserKycStatusRequest.toObject(opt_includeInstance, this);
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Static version of the {@see toObject} method.
|
|
62
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
63
|
+
* instance for transitional soy proto support:
|
|
64
|
+
* http://goto/soy-param-migration
|
|
65
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} msg The msg instance to transform.
|
|
66
|
+
* @return {!Object}
|
|
67
|
+
*/
|
|
68
|
+
proto.kycserviceapi.GetUserKycStatusRequest.toObject = function(includeInstance, msg) {
|
|
69
|
+
var f, obj = {
|
|
70
|
+
userid: msg.getUserid()
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
if (includeInstance) {
|
|
74
|
+
obj.$jspbMessageInstance = msg;
|
|
75
|
+
}
|
|
76
|
+
return obj;
|
|
77
|
+
};
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Deserializes binary data (in protobuf wire format).
|
|
83
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
84
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest}
|
|
85
|
+
*/
|
|
86
|
+
proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinary = function(bytes) {
|
|
87
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
88
|
+
var msg = new proto.kycserviceapi.GetUserKycStatusRequest;
|
|
89
|
+
return proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader(msg, reader);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
95
|
+
* given reader into the given message object.
|
|
96
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} msg The message object to deserialize into.
|
|
97
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
98
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest}
|
|
99
|
+
*/
|
|
100
|
+
proto.kycserviceapi.GetUserKycStatusRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
101
|
+
while (reader.nextField()) {
|
|
102
|
+
if (reader.isEndGroup()) {
|
|
103
|
+
break;
|
|
104
|
+
}
|
|
105
|
+
var field = reader.getFieldNumber();
|
|
106
|
+
switch (field) {
|
|
107
|
+
case 1:
|
|
108
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
109
|
+
msg.setUserid(value);
|
|
110
|
+
break;
|
|
111
|
+
default:
|
|
112
|
+
reader.skipField();
|
|
113
|
+
break;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
return msg;
|
|
117
|
+
};
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
/**
|
|
121
|
+
* Class method variant: serializes the given message to binary data
|
|
122
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
123
|
+
* @param {!proto.kycserviceapi.GetUserKycStatusRequest} message
|
|
124
|
+
* @param {!jspb.BinaryWriter} writer
|
|
125
|
+
*/
|
|
126
|
+
proto.kycserviceapi.GetUserKycStatusRequest.serializeBinaryToWriter = function(message, writer) {
|
|
127
|
+
message.serializeBinaryToWriter(writer);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
133
|
+
* @return {!Uint8Array}
|
|
134
|
+
*/
|
|
135
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.serializeBinary = function() {
|
|
136
|
+
var writer = new jspb.BinaryWriter();
|
|
137
|
+
this.serializeBinaryToWriter(writer);
|
|
138
|
+
return writer.getResultBuffer();
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
144
|
+
* writing to the given BinaryWriter.
|
|
145
|
+
* @param {!jspb.BinaryWriter} writer
|
|
146
|
+
*/
|
|
147
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
148
|
+
var f = undefined;
|
|
149
|
+
f = this.getUserid();
|
|
150
|
+
if (f !== 0) {
|
|
151
|
+
writer.writeInt64(
|
|
152
|
+
1,
|
|
153
|
+
f
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
};
|
|
157
|
+
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
161
|
+
* @return {!proto.kycserviceapi.GetUserKycStatusRequest} The clone.
|
|
162
|
+
*/
|
|
163
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.cloneMessage = function() {
|
|
164
|
+
return /** @type {!proto.kycserviceapi.GetUserKycStatusRequest} */ (jspb.Message.cloneMessage(this));
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* optional int64 userId = 1;
|
|
170
|
+
* @return {number}
|
|
171
|
+
*/
|
|
172
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.getUserid = function() {
|
|
173
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
174
|
+
};
|
|
175
|
+
|
|
176
|
+
|
|
177
|
+
/** @param {number} value */
|
|
178
|
+
proto.kycserviceapi.GetUserKycStatusRequest.prototype.setUserid = function(value) {
|
|
179
|
+
jspb.Message.setField(this, 1, value);
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
|
|
20
183
|
|
|
21
184
|
/**
|
|
22
185
|
* Generated by JsPbCodeGenerator.
|
|
@@ -659,20 +822,13 @@ proto.kycserviceapi.ResponseCode.prototype.setMessage = function(value) {
|
|
|
659
822
|
* @extends {jspb.Message}
|
|
660
823
|
* @constructor
|
|
661
824
|
*/
|
|
662
|
-
proto.kycserviceapi.
|
|
663
|
-
jspb.Message.initialize(this, opt_data, 0, -1,
|
|
825
|
+
proto.kycserviceapi.User = function(opt_data) {
|
|
826
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
664
827
|
};
|
|
665
|
-
goog.inherits(proto.kycserviceapi.
|
|
828
|
+
goog.inherits(proto.kycserviceapi.User, jspb.Message);
|
|
666
829
|
if (goog.DEBUG && !COMPILED) {
|
|
667
|
-
proto.kycserviceapi.
|
|
830
|
+
proto.kycserviceapi.User.displayName = 'proto.kycserviceapi.User';
|
|
668
831
|
}
|
|
669
|
-
/**
|
|
670
|
-
* List of repeated fields within this message type.
|
|
671
|
-
* @private {!Array<number>}
|
|
672
|
-
* @const
|
|
673
|
-
*/
|
|
674
|
-
proto.kycserviceapi.UserKycRequest.repeatedFields_ = [3];
|
|
675
|
-
|
|
676
832
|
|
|
677
833
|
|
|
678
834
|
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
@@ -686,8 +842,8 @@ if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
|
686
842
|
* for transitional soy proto support: http://goto/soy-param-migration
|
|
687
843
|
* @return {!Object}
|
|
688
844
|
*/
|
|
689
|
-
proto.kycserviceapi.
|
|
690
|
-
return proto.kycserviceapi.
|
|
845
|
+
proto.kycserviceapi.User.prototype.toObject = function(opt_includeInstance) {
|
|
846
|
+
return proto.kycserviceapi.User.toObject(opt_includeInstance, this);
|
|
691
847
|
};
|
|
692
848
|
|
|
693
849
|
|
|
@@ -696,16 +852,13 @@ proto.kycserviceapi.UserKycRequest.prototype.toObject = function(opt_includeInst
|
|
|
696
852
|
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
697
853
|
* instance for transitional soy proto support:
|
|
698
854
|
* http://goto/soy-param-migration
|
|
699
|
-
* @param {!proto.kycserviceapi.
|
|
855
|
+
* @param {!proto.kycserviceapi.User} msg The msg instance to transform.
|
|
700
856
|
* @return {!Object}
|
|
701
857
|
*/
|
|
702
|
-
proto.kycserviceapi.
|
|
858
|
+
proto.kycserviceapi.User.toObject = function(includeInstance, msg) {
|
|
703
859
|
var f, obj = {
|
|
704
860
|
userid: msg.getUserid(),
|
|
705
|
-
|
|
706
|
-
documentsList: jspb.Message.toObjectList(msg.getDocumentsList(),
|
|
707
|
-
proto.kycserviceapi.RequestedDocument.toObject, includeInstance),
|
|
708
|
-
comment: msg.getComment()
|
|
861
|
+
status: msg.getStatus()
|
|
709
862
|
};
|
|
710
863
|
|
|
711
864
|
if (includeInstance) {
|
|
@@ -719,23 +872,23 @@ proto.kycserviceapi.UserKycRequest.toObject = function(includeInstance, msg) {
|
|
|
719
872
|
/**
|
|
720
873
|
* Deserializes binary data (in protobuf wire format).
|
|
721
874
|
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
722
|
-
* @return {!proto.kycserviceapi.
|
|
875
|
+
* @return {!proto.kycserviceapi.User}
|
|
723
876
|
*/
|
|
724
|
-
proto.kycserviceapi.
|
|
877
|
+
proto.kycserviceapi.User.deserializeBinary = function(bytes) {
|
|
725
878
|
var reader = new jspb.BinaryReader(bytes);
|
|
726
|
-
var msg = new proto.kycserviceapi.
|
|
727
|
-
return proto.kycserviceapi.
|
|
879
|
+
var msg = new proto.kycserviceapi.User;
|
|
880
|
+
return proto.kycserviceapi.User.deserializeBinaryFromReader(msg, reader);
|
|
728
881
|
};
|
|
729
882
|
|
|
730
883
|
|
|
731
884
|
/**
|
|
732
885
|
* Deserializes binary data (in protobuf wire format) from the
|
|
733
886
|
* given reader into the given message object.
|
|
734
|
-
* @param {!proto.kycserviceapi.
|
|
887
|
+
* @param {!proto.kycserviceapi.User} msg The message object to deserialize into.
|
|
735
888
|
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
736
|
-
* @return {!proto.kycserviceapi.
|
|
889
|
+
* @return {!proto.kycserviceapi.User}
|
|
737
890
|
*/
|
|
738
|
-
proto.kycserviceapi.
|
|
891
|
+
proto.kycserviceapi.User.deserializeBinaryFromReader = function(msg, reader) {
|
|
739
892
|
while (reader.nextField()) {
|
|
740
893
|
if (reader.isEndGroup()) {
|
|
741
894
|
break;
|
|
@@ -747,18 +900,8 @@ proto.kycserviceapi.UserKycRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
747
900
|
msg.setUserid(value);
|
|
748
901
|
break;
|
|
749
902
|
case 2:
|
|
750
|
-
var value = /** @type {
|
|
751
|
-
msg.
|
|
752
|
-
break;
|
|
753
|
-
case 3:
|
|
754
|
-
var value = new proto.kycserviceapi.RequestedDocument;
|
|
755
|
-
reader.readMessage(value,proto.kycserviceapi.RequestedDocument.deserializeBinaryFromReader);
|
|
756
|
-
msg.getDocumentsList().push(value);
|
|
757
|
-
msg.setDocumentsList(msg.getDocumentsList());
|
|
758
|
-
break;
|
|
759
|
-
case 4:
|
|
760
|
-
var value = /** @type {string} */ (reader.readString());
|
|
761
|
-
msg.setComment(value);
|
|
903
|
+
var value = /** @type {!proto.kycserviceapi.UserStatus} */ (reader.readEnum());
|
|
904
|
+
msg.setStatus(value);
|
|
762
905
|
break;
|
|
763
906
|
default:
|
|
764
907
|
reader.skipField();
|
|
@@ -772,10 +915,10 @@ proto.kycserviceapi.UserKycRequest.deserializeBinaryFromReader = function(msg, r
|
|
|
772
915
|
/**
|
|
773
916
|
* Class method variant: serializes the given message to binary data
|
|
774
917
|
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
775
|
-
* @param {!proto.kycserviceapi.
|
|
918
|
+
* @param {!proto.kycserviceapi.User} message
|
|
776
919
|
* @param {!jspb.BinaryWriter} writer
|
|
777
920
|
*/
|
|
778
|
-
proto.kycserviceapi.
|
|
921
|
+
proto.kycserviceapi.User.serializeBinaryToWriter = function(message, writer) {
|
|
779
922
|
message.serializeBinaryToWriter(writer);
|
|
780
923
|
};
|
|
781
924
|
|
|
@@ -784,7 +927,7 @@ proto.kycserviceapi.UserKycRequest.serializeBinaryToWriter = function(message, w
|
|
|
784
927
|
* Serializes the message to binary data (in protobuf wire format).
|
|
785
928
|
* @return {!Uint8Array}
|
|
786
929
|
*/
|
|
787
|
-
proto.kycserviceapi.
|
|
930
|
+
proto.kycserviceapi.User.prototype.serializeBinary = function() {
|
|
788
931
|
var writer = new jspb.BinaryWriter();
|
|
789
932
|
this.serializeBinaryToWriter(writer);
|
|
790
933
|
return writer.getResultBuffer();
|
|
@@ -796,7 +939,7 @@ proto.kycserviceapi.UserKycRequest.prototype.serializeBinary = function() {
|
|
|
796
939
|
* writing to the given BinaryWriter.
|
|
797
940
|
* @param {!jspb.BinaryWriter} writer
|
|
798
941
|
*/
|
|
799
|
-
proto.kycserviceapi.
|
|
942
|
+
proto.kycserviceapi.User.prototype.serializeBinaryToWriter = function (writer) {
|
|
800
943
|
var f = undefined;
|
|
801
944
|
f = this.getUserid();
|
|
802
945
|
if (f !== 0) {
|
|
@@ -805,37 +948,22 @@ proto.kycserviceapi.UserKycRequest.prototype.serializeBinaryToWriter = function
|
|
|
805
948
|
f
|
|
806
949
|
);
|
|
807
950
|
}
|
|
808
|
-
f = this.
|
|
809
|
-
if (f
|
|
810
|
-
writer.
|
|
951
|
+
f = this.getStatus();
|
|
952
|
+
if (f !== 0.0) {
|
|
953
|
+
writer.writeEnum(
|
|
811
954
|
2,
|
|
812
955
|
f
|
|
813
956
|
);
|
|
814
957
|
}
|
|
815
|
-
f = this.getDocumentsList();
|
|
816
|
-
if (f.length > 0) {
|
|
817
|
-
writer.writeRepeatedMessage(
|
|
818
|
-
3,
|
|
819
|
-
f,
|
|
820
|
-
proto.kycserviceapi.RequestedDocument.serializeBinaryToWriter
|
|
821
|
-
);
|
|
822
|
-
}
|
|
823
|
-
f = this.getComment();
|
|
824
|
-
if (f.length > 0) {
|
|
825
|
-
writer.writeString(
|
|
826
|
-
4,
|
|
827
|
-
f
|
|
828
|
-
);
|
|
829
|
-
}
|
|
830
958
|
};
|
|
831
959
|
|
|
832
960
|
|
|
833
961
|
/**
|
|
834
962
|
* Creates a deep clone of this proto. No data is shared with the original.
|
|
835
|
-
* @return {!proto.kycserviceapi.
|
|
963
|
+
* @return {!proto.kycserviceapi.User} The clone.
|
|
836
964
|
*/
|
|
837
|
-
proto.kycserviceapi.
|
|
838
|
-
return /** @type {!proto.kycserviceapi.
|
|
965
|
+
proto.kycserviceapi.User.prototype.cloneMessage = function() {
|
|
966
|
+
return /** @type {!proto.kycserviceapi.User} */ (jspb.Message.cloneMessage(this));
|
|
839
967
|
};
|
|
840
968
|
|
|
841
969
|
|
|
@@ -843,62 +971,283 @@ proto.kycserviceapi.UserKycRequest.prototype.cloneMessage = function() {
|
|
|
843
971
|
* optional int64 userId = 1;
|
|
844
972
|
* @return {number}
|
|
845
973
|
*/
|
|
846
|
-
proto.kycserviceapi.
|
|
974
|
+
proto.kycserviceapi.User.prototype.getUserid = function() {
|
|
847
975
|
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
848
976
|
};
|
|
849
977
|
|
|
850
978
|
|
|
851
979
|
/** @param {number} value */
|
|
852
|
-
proto.kycserviceapi.
|
|
980
|
+
proto.kycserviceapi.User.prototype.setUserid = function(value) {
|
|
853
981
|
jspb.Message.setField(this, 1, value);
|
|
854
982
|
};
|
|
855
983
|
|
|
856
984
|
|
|
857
985
|
/**
|
|
858
|
-
* optional
|
|
859
|
-
* @return {
|
|
986
|
+
* optional UserStatus status = 2;
|
|
987
|
+
* @return {!proto.kycserviceapi.UserStatus}
|
|
860
988
|
*/
|
|
861
|
-
proto.kycserviceapi.
|
|
862
|
-
return /** @type {
|
|
989
|
+
proto.kycserviceapi.User.prototype.getStatus = function() {
|
|
990
|
+
return /** @type {!proto.kycserviceapi.UserStatus} */ (jspb.Message.getFieldProto3(this, 2, 0));
|
|
863
991
|
};
|
|
864
992
|
|
|
865
993
|
|
|
866
|
-
/** @param {
|
|
867
|
-
proto.kycserviceapi.
|
|
994
|
+
/** @param {!proto.kycserviceapi.UserStatus} value */
|
|
995
|
+
proto.kycserviceapi.User.prototype.setStatus = function(value) {
|
|
868
996
|
jspb.Message.setField(this, 2, value);
|
|
869
997
|
};
|
|
870
998
|
|
|
871
999
|
|
|
1000
|
+
|
|
872
1001
|
/**
|
|
873
|
-
*
|
|
874
|
-
*
|
|
875
|
-
*
|
|
876
|
-
*
|
|
1002
|
+
* Generated by JsPbCodeGenerator.
|
|
1003
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1004
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1005
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1006
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1007
|
+
* valid.
|
|
1008
|
+
* @extends {jspb.Message}
|
|
1009
|
+
* @constructor
|
|
877
1010
|
*/
|
|
878
|
-
proto.kycserviceapi.UserKycRequest
|
|
879
|
-
|
|
880
|
-
jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.RequestedDocument, 3));
|
|
881
|
-
};
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
/** @param {Array.<!proto.kycserviceapi.RequestedDocument>} value */
|
|
885
|
-
proto.kycserviceapi.UserKycRequest.prototype.setDocumentsList = function(value) {
|
|
886
|
-
jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
887
|
-
};
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
proto.kycserviceapi.UserKycRequest.prototype.clearDocumentsList = function() {
|
|
891
|
-
this.setDocumentsList([]);
|
|
1011
|
+
proto.kycserviceapi.UserKycRequest = function(opt_data) {
|
|
1012
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.UserKycRequest.repeatedFields_, null);
|
|
892
1013
|
};
|
|
893
|
-
|
|
894
|
-
|
|
1014
|
+
goog.inherits(proto.kycserviceapi.UserKycRequest, jspb.Message);
|
|
1015
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1016
|
+
proto.kycserviceapi.UserKycRequest.displayName = 'proto.kycserviceapi.UserKycRequest';
|
|
1017
|
+
}
|
|
895
1018
|
/**
|
|
896
|
-
*
|
|
897
|
-
* @
|
|
1019
|
+
* List of repeated fields within this message type.
|
|
1020
|
+
* @private {!Array<number>}
|
|
1021
|
+
* @const
|
|
898
1022
|
*/
|
|
899
|
-
proto.kycserviceapi.UserKycRequest.
|
|
900
|
-
|
|
901
|
-
|
|
1023
|
+
proto.kycserviceapi.UserKycRequest.repeatedFields_ = [3];
|
|
1024
|
+
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1028
|
+
/**
|
|
1029
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1030
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1031
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1032
|
+
* For the list of reserved names please see:
|
|
1033
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1034
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1035
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1036
|
+
* @return {!Object}
|
|
1037
|
+
*/
|
|
1038
|
+
proto.kycserviceapi.UserKycRequest.prototype.toObject = function(opt_includeInstance) {
|
|
1039
|
+
return proto.kycserviceapi.UserKycRequest.toObject(opt_includeInstance, this);
|
|
1040
|
+
};
|
|
1041
|
+
|
|
1042
|
+
|
|
1043
|
+
/**
|
|
1044
|
+
* Static version of the {@see toObject} method.
|
|
1045
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1046
|
+
* instance for transitional soy proto support:
|
|
1047
|
+
* http://goto/soy-param-migration
|
|
1048
|
+
* @param {!proto.kycserviceapi.UserKycRequest} msg The msg instance to transform.
|
|
1049
|
+
* @return {!Object}
|
|
1050
|
+
*/
|
|
1051
|
+
proto.kycserviceapi.UserKycRequest.toObject = function(includeInstance, msg) {
|
|
1052
|
+
var f, obj = {
|
|
1053
|
+
userid: msg.getUserid(),
|
|
1054
|
+
password: msg.getPassword(),
|
|
1055
|
+
documentsList: jspb.Message.toObjectList(msg.getDocumentsList(),
|
|
1056
|
+
proto.kycserviceapi.RequestedDocument.toObject, includeInstance),
|
|
1057
|
+
comment: msg.getComment()
|
|
1058
|
+
};
|
|
1059
|
+
|
|
1060
|
+
if (includeInstance) {
|
|
1061
|
+
obj.$jspbMessageInstance = msg;
|
|
1062
|
+
}
|
|
1063
|
+
return obj;
|
|
1064
|
+
};
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
|
|
1068
|
+
/**
|
|
1069
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1070
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1071
|
+
* @return {!proto.kycserviceapi.UserKycRequest}
|
|
1072
|
+
*/
|
|
1073
|
+
proto.kycserviceapi.UserKycRequest.deserializeBinary = function(bytes) {
|
|
1074
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1075
|
+
var msg = new proto.kycserviceapi.UserKycRequest;
|
|
1076
|
+
return proto.kycserviceapi.UserKycRequest.deserializeBinaryFromReader(msg, reader);
|
|
1077
|
+
};
|
|
1078
|
+
|
|
1079
|
+
|
|
1080
|
+
/**
|
|
1081
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1082
|
+
* given reader into the given message object.
|
|
1083
|
+
* @param {!proto.kycserviceapi.UserKycRequest} msg The message object to deserialize into.
|
|
1084
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1085
|
+
* @return {!proto.kycserviceapi.UserKycRequest}
|
|
1086
|
+
*/
|
|
1087
|
+
proto.kycserviceapi.UserKycRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
1088
|
+
while (reader.nextField()) {
|
|
1089
|
+
if (reader.isEndGroup()) {
|
|
1090
|
+
break;
|
|
1091
|
+
}
|
|
1092
|
+
var field = reader.getFieldNumber();
|
|
1093
|
+
switch (field) {
|
|
1094
|
+
case 1:
|
|
1095
|
+
var value = /** @type {number} */ (reader.readInt64());
|
|
1096
|
+
msg.setUserid(value);
|
|
1097
|
+
break;
|
|
1098
|
+
case 2:
|
|
1099
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1100
|
+
msg.setPassword(value);
|
|
1101
|
+
break;
|
|
1102
|
+
case 3:
|
|
1103
|
+
var value = new proto.kycserviceapi.RequestedDocument;
|
|
1104
|
+
reader.readMessage(value,proto.kycserviceapi.RequestedDocument.deserializeBinaryFromReader);
|
|
1105
|
+
msg.getDocumentsList().push(value);
|
|
1106
|
+
msg.setDocumentsList(msg.getDocumentsList());
|
|
1107
|
+
break;
|
|
1108
|
+
case 4:
|
|
1109
|
+
var value = /** @type {string} */ (reader.readString());
|
|
1110
|
+
msg.setComment(value);
|
|
1111
|
+
break;
|
|
1112
|
+
default:
|
|
1113
|
+
reader.skipField();
|
|
1114
|
+
break;
|
|
1115
|
+
}
|
|
1116
|
+
}
|
|
1117
|
+
return msg;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Class method variant: serializes the given message to binary data
|
|
1123
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1124
|
+
* @param {!proto.kycserviceapi.UserKycRequest} message
|
|
1125
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1126
|
+
*/
|
|
1127
|
+
proto.kycserviceapi.UserKycRequest.serializeBinaryToWriter = function(message, writer) {
|
|
1128
|
+
message.serializeBinaryToWriter(writer);
|
|
1129
|
+
};
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
/**
|
|
1133
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1134
|
+
* @return {!Uint8Array}
|
|
1135
|
+
*/
|
|
1136
|
+
proto.kycserviceapi.UserKycRequest.prototype.serializeBinary = function() {
|
|
1137
|
+
var writer = new jspb.BinaryWriter();
|
|
1138
|
+
this.serializeBinaryToWriter(writer);
|
|
1139
|
+
return writer.getResultBuffer();
|
|
1140
|
+
};
|
|
1141
|
+
|
|
1142
|
+
|
|
1143
|
+
/**
|
|
1144
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1145
|
+
* writing to the given BinaryWriter.
|
|
1146
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1147
|
+
*/
|
|
1148
|
+
proto.kycserviceapi.UserKycRequest.prototype.serializeBinaryToWriter = function (writer) {
|
|
1149
|
+
var f = undefined;
|
|
1150
|
+
f = this.getUserid();
|
|
1151
|
+
if (f !== 0) {
|
|
1152
|
+
writer.writeInt64(
|
|
1153
|
+
1,
|
|
1154
|
+
f
|
|
1155
|
+
);
|
|
1156
|
+
}
|
|
1157
|
+
f = this.getPassword();
|
|
1158
|
+
if (f.length > 0) {
|
|
1159
|
+
writer.writeString(
|
|
1160
|
+
2,
|
|
1161
|
+
f
|
|
1162
|
+
);
|
|
1163
|
+
}
|
|
1164
|
+
f = this.getDocumentsList();
|
|
1165
|
+
if (f.length > 0) {
|
|
1166
|
+
writer.writeRepeatedMessage(
|
|
1167
|
+
3,
|
|
1168
|
+
f,
|
|
1169
|
+
proto.kycserviceapi.RequestedDocument.serializeBinaryToWriter
|
|
1170
|
+
);
|
|
1171
|
+
}
|
|
1172
|
+
f = this.getComment();
|
|
1173
|
+
if (f.length > 0) {
|
|
1174
|
+
writer.writeString(
|
|
1175
|
+
4,
|
|
1176
|
+
f
|
|
1177
|
+
);
|
|
1178
|
+
}
|
|
1179
|
+
};
|
|
1180
|
+
|
|
1181
|
+
|
|
1182
|
+
/**
|
|
1183
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1184
|
+
* @return {!proto.kycserviceapi.UserKycRequest} The clone.
|
|
1185
|
+
*/
|
|
1186
|
+
proto.kycserviceapi.UserKycRequest.prototype.cloneMessage = function() {
|
|
1187
|
+
return /** @type {!proto.kycserviceapi.UserKycRequest} */ (jspb.Message.cloneMessage(this));
|
|
1188
|
+
};
|
|
1189
|
+
|
|
1190
|
+
|
|
1191
|
+
/**
|
|
1192
|
+
* optional int64 userId = 1;
|
|
1193
|
+
* @return {number}
|
|
1194
|
+
*/
|
|
1195
|
+
proto.kycserviceapi.UserKycRequest.prototype.getUserid = function() {
|
|
1196
|
+
return /** @type {number} */ (jspb.Message.getFieldProto3(this, 1, 0));
|
|
1197
|
+
};
|
|
1198
|
+
|
|
1199
|
+
|
|
1200
|
+
/** @param {number} value */
|
|
1201
|
+
proto.kycserviceapi.UserKycRequest.prototype.setUserid = function(value) {
|
|
1202
|
+
jspb.Message.setField(this, 1, value);
|
|
1203
|
+
};
|
|
1204
|
+
|
|
1205
|
+
|
|
1206
|
+
/**
|
|
1207
|
+
* optional string password = 2;
|
|
1208
|
+
* @return {string}
|
|
1209
|
+
*/
|
|
1210
|
+
proto.kycserviceapi.UserKycRequest.prototype.getPassword = function() {
|
|
1211
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 2, ""));
|
|
1212
|
+
};
|
|
1213
|
+
|
|
1214
|
+
|
|
1215
|
+
/** @param {string} value */
|
|
1216
|
+
proto.kycserviceapi.UserKycRequest.prototype.setPassword = function(value) {
|
|
1217
|
+
jspb.Message.setField(this, 2, value);
|
|
1218
|
+
};
|
|
1219
|
+
|
|
1220
|
+
|
|
1221
|
+
/**
|
|
1222
|
+
* repeated RequestedDocument documents = 3;
|
|
1223
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1224
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1225
|
+
* @return {!Array.<!proto.kycserviceapi.RequestedDocument>}
|
|
1226
|
+
*/
|
|
1227
|
+
proto.kycserviceapi.UserKycRequest.prototype.getDocumentsList = function() {
|
|
1228
|
+
return /** @type{!Array.<!proto.kycserviceapi.RequestedDocument>} */ (
|
|
1229
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.RequestedDocument, 3));
|
|
1230
|
+
};
|
|
1231
|
+
|
|
1232
|
+
|
|
1233
|
+
/** @param {Array.<!proto.kycserviceapi.RequestedDocument>} value */
|
|
1234
|
+
proto.kycserviceapi.UserKycRequest.prototype.setDocumentsList = function(value) {
|
|
1235
|
+
jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1236
|
+
};
|
|
1237
|
+
|
|
1238
|
+
|
|
1239
|
+
proto.kycserviceapi.UserKycRequest.prototype.clearDocumentsList = function() {
|
|
1240
|
+
this.setDocumentsList([]);
|
|
1241
|
+
};
|
|
1242
|
+
|
|
1243
|
+
|
|
1244
|
+
/**
|
|
1245
|
+
* optional string comment = 4;
|
|
1246
|
+
* @return {string}
|
|
1247
|
+
*/
|
|
1248
|
+
proto.kycserviceapi.UserKycRequest.prototype.getComment = function() {
|
|
1249
|
+
return /** @type {string} */ (jspb.Message.getFieldProto3(this, 4, ""));
|
|
1250
|
+
};
|
|
902
1251
|
|
|
903
1252
|
|
|
904
1253
|
/** @param {string} value */
|
|
@@ -907,6 +1256,311 @@ proto.kycserviceapi.UserKycRequest.prototype.setComment = function(value) {
|
|
|
907
1256
|
};
|
|
908
1257
|
|
|
909
1258
|
|
|
1259
|
+
|
|
1260
|
+
/**
|
|
1261
|
+
* Generated by JsPbCodeGenerator.
|
|
1262
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
1263
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
1264
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
1265
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
1266
|
+
* valid.
|
|
1267
|
+
* @extends {jspb.Message}
|
|
1268
|
+
* @constructor
|
|
1269
|
+
*/
|
|
1270
|
+
proto.kycserviceapi.UserKycStatusResponse = function(opt_data) {
|
|
1271
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.kycserviceapi.UserKycStatusResponse.repeatedFields_, null);
|
|
1272
|
+
};
|
|
1273
|
+
goog.inherits(proto.kycserviceapi.UserKycStatusResponse, jspb.Message);
|
|
1274
|
+
if (goog.DEBUG && !COMPILED) {
|
|
1275
|
+
proto.kycserviceapi.UserKycStatusResponse.displayName = 'proto.kycserviceapi.UserKycStatusResponse';
|
|
1276
|
+
}
|
|
1277
|
+
/**
|
|
1278
|
+
* List of repeated fields within this message type.
|
|
1279
|
+
* @private {!Array<number>}
|
|
1280
|
+
* @const
|
|
1281
|
+
*/
|
|
1282
|
+
proto.kycserviceapi.UserKycStatusResponse.repeatedFields_ = [3,4];
|
|
1283
|
+
|
|
1284
|
+
|
|
1285
|
+
|
|
1286
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
1287
|
+
/**
|
|
1288
|
+
* Creates an object representation of this proto suitable for use in Soy templates.
|
|
1289
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
1290
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
1291
|
+
* For the list of reserved names please see:
|
|
1292
|
+
* com.google.apps.jspb.JsClassTemplate.JS_RESERVED_WORDS.
|
|
1293
|
+
* @param {boolean=} opt_includeInstance Whether to include the JSPB instance
|
|
1294
|
+
* for transitional soy proto support: http://goto/soy-param-migration
|
|
1295
|
+
* @return {!Object}
|
|
1296
|
+
*/
|
|
1297
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.toObject = function(opt_includeInstance) {
|
|
1298
|
+
return proto.kycserviceapi.UserKycStatusResponse.toObject(opt_includeInstance, this);
|
|
1299
|
+
};
|
|
1300
|
+
|
|
1301
|
+
|
|
1302
|
+
/**
|
|
1303
|
+
* Static version of the {@see toObject} method.
|
|
1304
|
+
* @param {boolean|undefined} includeInstance Whether to include the JSPB
|
|
1305
|
+
* instance for transitional soy proto support:
|
|
1306
|
+
* http://goto/soy-param-migration
|
|
1307
|
+
* @param {!proto.kycserviceapi.UserKycStatusResponse} msg The msg instance to transform.
|
|
1308
|
+
* @return {!Object}
|
|
1309
|
+
*/
|
|
1310
|
+
proto.kycserviceapi.UserKycStatusResponse.toObject = function(includeInstance, msg) {
|
|
1311
|
+
var f, obj = {
|
|
1312
|
+
responsecode: (f = msg.getResponsecode()) && proto.kycserviceapi.ResponseCode.toObject(includeInstance, f),
|
|
1313
|
+
user: (f = msg.getUser()) && proto.kycserviceapi.User.toObject(includeInstance, f),
|
|
1314
|
+
photoiddocumentsList: jspb.Message.toObjectList(msg.getPhotoiddocumentsList(),
|
|
1315
|
+
proto.kycserviceapi.RequestedDocument.toObject, includeInstance),
|
|
1316
|
+
paymentmethoddocumentsList: jspb.Message.toObjectList(msg.getPaymentmethoddocumentsList(),
|
|
1317
|
+
proto.kycserviceapi.RequestedDocument.toObject, includeInstance)
|
|
1318
|
+
};
|
|
1319
|
+
|
|
1320
|
+
if (includeInstance) {
|
|
1321
|
+
obj.$jspbMessageInstance = msg;
|
|
1322
|
+
}
|
|
1323
|
+
return obj;
|
|
1324
|
+
};
|
|
1325
|
+
}
|
|
1326
|
+
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Deserializes binary data (in protobuf wire format).
|
|
1330
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
1331
|
+
* @return {!proto.kycserviceapi.UserKycStatusResponse}
|
|
1332
|
+
*/
|
|
1333
|
+
proto.kycserviceapi.UserKycStatusResponse.deserializeBinary = function(bytes) {
|
|
1334
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
1335
|
+
var msg = new proto.kycserviceapi.UserKycStatusResponse;
|
|
1336
|
+
return proto.kycserviceapi.UserKycStatusResponse.deserializeBinaryFromReader(msg, reader);
|
|
1337
|
+
};
|
|
1338
|
+
|
|
1339
|
+
|
|
1340
|
+
/**
|
|
1341
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
1342
|
+
* given reader into the given message object.
|
|
1343
|
+
* @param {!proto.kycserviceapi.UserKycStatusResponse} msg The message object to deserialize into.
|
|
1344
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
1345
|
+
* @return {!proto.kycserviceapi.UserKycStatusResponse}
|
|
1346
|
+
*/
|
|
1347
|
+
proto.kycserviceapi.UserKycStatusResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
1348
|
+
while (reader.nextField()) {
|
|
1349
|
+
if (reader.isEndGroup()) {
|
|
1350
|
+
break;
|
|
1351
|
+
}
|
|
1352
|
+
var field = reader.getFieldNumber();
|
|
1353
|
+
switch (field) {
|
|
1354
|
+
case 1:
|
|
1355
|
+
var value = new proto.kycserviceapi.ResponseCode;
|
|
1356
|
+
reader.readMessage(value,proto.kycserviceapi.ResponseCode.deserializeBinaryFromReader);
|
|
1357
|
+
msg.setResponsecode(value);
|
|
1358
|
+
break;
|
|
1359
|
+
case 2:
|
|
1360
|
+
var value = new proto.kycserviceapi.User;
|
|
1361
|
+
reader.readMessage(value,proto.kycserviceapi.User.deserializeBinaryFromReader);
|
|
1362
|
+
msg.setUser(value);
|
|
1363
|
+
break;
|
|
1364
|
+
case 3:
|
|
1365
|
+
var value = new proto.kycserviceapi.RequestedDocument;
|
|
1366
|
+
reader.readMessage(value,proto.kycserviceapi.RequestedDocument.deserializeBinaryFromReader);
|
|
1367
|
+
msg.getPhotoiddocumentsList().push(value);
|
|
1368
|
+
msg.setPhotoiddocumentsList(msg.getPhotoiddocumentsList());
|
|
1369
|
+
break;
|
|
1370
|
+
case 4:
|
|
1371
|
+
var value = new proto.kycserviceapi.RequestedDocument;
|
|
1372
|
+
reader.readMessage(value,proto.kycserviceapi.RequestedDocument.deserializeBinaryFromReader);
|
|
1373
|
+
msg.getPaymentmethoddocumentsList().push(value);
|
|
1374
|
+
msg.setPaymentmethoddocumentsList(msg.getPaymentmethoddocumentsList());
|
|
1375
|
+
break;
|
|
1376
|
+
default:
|
|
1377
|
+
reader.skipField();
|
|
1378
|
+
break;
|
|
1379
|
+
}
|
|
1380
|
+
}
|
|
1381
|
+
return msg;
|
|
1382
|
+
};
|
|
1383
|
+
|
|
1384
|
+
|
|
1385
|
+
/**
|
|
1386
|
+
* Class method variant: serializes the given message to binary data
|
|
1387
|
+
* (in protobuf wire format), writing to the given BinaryWriter.
|
|
1388
|
+
* @param {!proto.kycserviceapi.UserKycStatusResponse} message
|
|
1389
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1390
|
+
*/
|
|
1391
|
+
proto.kycserviceapi.UserKycStatusResponse.serializeBinaryToWriter = function(message, writer) {
|
|
1392
|
+
message.serializeBinaryToWriter(writer);
|
|
1393
|
+
};
|
|
1394
|
+
|
|
1395
|
+
|
|
1396
|
+
/**
|
|
1397
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
1398
|
+
* @return {!Uint8Array}
|
|
1399
|
+
*/
|
|
1400
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.serializeBinary = function() {
|
|
1401
|
+
var writer = new jspb.BinaryWriter();
|
|
1402
|
+
this.serializeBinaryToWriter(writer);
|
|
1403
|
+
return writer.getResultBuffer();
|
|
1404
|
+
};
|
|
1405
|
+
|
|
1406
|
+
|
|
1407
|
+
/**
|
|
1408
|
+
* Serializes the message to binary data (in protobuf wire format),
|
|
1409
|
+
* writing to the given BinaryWriter.
|
|
1410
|
+
* @param {!jspb.BinaryWriter} writer
|
|
1411
|
+
*/
|
|
1412
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.serializeBinaryToWriter = function (writer) {
|
|
1413
|
+
var f = undefined;
|
|
1414
|
+
f = this.getResponsecode();
|
|
1415
|
+
if (f != null) {
|
|
1416
|
+
writer.writeMessage(
|
|
1417
|
+
1,
|
|
1418
|
+
f,
|
|
1419
|
+
proto.kycserviceapi.ResponseCode.serializeBinaryToWriter
|
|
1420
|
+
);
|
|
1421
|
+
}
|
|
1422
|
+
f = this.getUser();
|
|
1423
|
+
if (f != null) {
|
|
1424
|
+
writer.writeMessage(
|
|
1425
|
+
2,
|
|
1426
|
+
f,
|
|
1427
|
+
proto.kycserviceapi.User.serializeBinaryToWriter
|
|
1428
|
+
);
|
|
1429
|
+
}
|
|
1430
|
+
f = this.getPhotoiddocumentsList();
|
|
1431
|
+
if (f.length > 0) {
|
|
1432
|
+
writer.writeRepeatedMessage(
|
|
1433
|
+
3,
|
|
1434
|
+
f,
|
|
1435
|
+
proto.kycserviceapi.RequestedDocument.serializeBinaryToWriter
|
|
1436
|
+
);
|
|
1437
|
+
}
|
|
1438
|
+
f = this.getPaymentmethoddocumentsList();
|
|
1439
|
+
if (f.length > 0) {
|
|
1440
|
+
writer.writeRepeatedMessage(
|
|
1441
|
+
4,
|
|
1442
|
+
f,
|
|
1443
|
+
proto.kycserviceapi.RequestedDocument.serializeBinaryToWriter
|
|
1444
|
+
);
|
|
1445
|
+
}
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
|
|
1449
|
+
/**
|
|
1450
|
+
* Creates a deep clone of this proto. No data is shared with the original.
|
|
1451
|
+
* @return {!proto.kycserviceapi.UserKycStatusResponse} The clone.
|
|
1452
|
+
*/
|
|
1453
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.cloneMessage = function() {
|
|
1454
|
+
return /** @type {!proto.kycserviceapi.UserKycStatusResponse} */ (jspb.Message.cloneMessage(this));
|
|
1455
|
+
};
|
|
1456
|
+
|
|
1457
|
+
|
|
1458
|
+
/**
|
|
1459
|
+
* optional ResponseCode responseCode = 1;
|
|
1460
|
+
* @return {proto.kycserviceapi.ResponseCode}
|
|
1461
|
+
*/
|
|
1462
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.getResponsecode = function() {
|
|
1463
|
+
return /** @type{proto.kycserviceapi.ResponseCode} */ (
|
|
1464
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.ResponseCode, 1));
|
|
1465
|
+
};
|
|
1466
|
+
|
|
1467
|
+
|
|
1468
|
+
/** @param {proto.kycserviceapi.ResponseCode|undefined} value */
|
|
1469
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.setResponsecode = function(value) {
|
|
1470
|
+
jspb.Message.setWrapperField(this, 1, value);
|
|
1471
|
+
};
|
|
1472
|
+
|
|
1473
|
+
|
|
1474
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.clearResponsecode = function() {
|
|
1475
|
+
this.setResponsecode(undefined);
|
|
1476
|
+
};
|
|
1477
|
+
|
|
1478
|
+
|
|
1479
|
+
/**
|
|
1480
|
+
* Returns whether this field is set.
|
|
1481
|
+
* @return{!boolean}
|
|
1482
|
+
*/
|
|
1483
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.hasResponsecode = function() {
|
|
1484
|
+
return jspb.Message.getField(this, 1) != null;
|
|
1485
|
+
};
|
|
1486
|
+
|
|
1487
|
+
|
|
1488
|
+
/**
|
|
1489
|
+
* optional User user = 2;
|
|
1490
|
+
* @return {proto.kycserviceapi.User}
|
|
1491
|
+
*/
|
|
1492
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.getUser = function() {
|
|
1493
|
+
return /** @type{proto.kycserviceapi.User} */ (
|
|
1494
|
+
jspb.Message.getWrapperField(this, proto.kycserviceapi.User, 2));
|
|
1495
|
+
};
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
/** @param {proto.kycserviceapi.User|undefined} value */
|
|
1499
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.setUser = function(value) {
|
|
1500
|
+
jspb.Message.setWrapperField(this, 2, value);
|
|
1501
|
+
};
|
|
1502
|
+
|
|
1503
|
+
|
|
1504
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.clearUser = function() {
|
|
1505
|
+
this.setUser(undefined);
|
|
1506
|
+
};
|
|
1507
|
+
|
|
1508
|
+
|
|
1509
|
+
/**
|
|
1510
|
+
* Returns whether this field is set.
|
|
1511
|
+
* @return{!boolean}
|
|
1512
|
+
*/
|
|
1513
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.hasUser = function() {
|
|
1514
|
+
return jspb.Message.getField(this, 2) != null;
|
|
1515
|
+
};
|
|
1516
|
+
|
|
1517
|
+
|
|
1518
|
+
/**
|
|
1519
|
+
* repeated RequestedDocument photoIdDocuments = 3;
|
|
1520
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1521
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1522
|
+
* @return {!Array.<!proto.kycserviceapi.RequestedDocument>}
|
|
1523
|
+
*/
|
|
1524
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.getPhotoiddocumentsList = function() {
|
|
1525
|
+
return /** @type{!Array.<!proto.kycserviceapi.RequestedDocument>} */ (
|
|
1526
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.RequestedDocument, 3));
|
|
1527
|
+
};
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
/** @param {Array.<!proto.kycserviceapi.RequestedDocument>} value */
|
|
1531
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.setPhotoiddocumentsList = function(value) {
|
|
1532
|
+
jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
1533
|
+
};
|
|
1534
|
+
|
|
1535
|
+
|
|
1536
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.clearPhotoiddocumentsList = function() {
|
|
1537
|
+
this.setPhotoiddocumentsList([]);
|
|
1538
|
+
};
|
|
1539
|
+
|
|
1540
|
+
|
|
1541
|
+
/**
|
|
1542
|
+
* repeated RequestedDocument paymentMethodDocuments = 4;
|
|
1543
|
+
* If you change this array by adding, removing or replacing elements, or if you
|
|
1544
|
+
* replace the array itself, then you must call the setter to update it.
|
|
1545
|
+
* @return {!Array.<!proto.kycserviceapi.RequestedDocument>}
|
|
1546
|
+
*/
|
|
1547
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.getPaymentmethoddocumentsList = function() {
|
|
1548
|
+
return /** @type{!Array.<!proto.kycserviceapi.RequestedDocument>} */ (
|
|
1549
|
+
jspb.Message.getRepeatedWrapperField(this, proto.kycserviceapi.RequestedDocument, 4));
|
|
1550
|
+
};
|
|
1551
|
+
|
|
1552
|
+
|
|
1553
|
+
/** @param {Array.<!proto.kycserviceapi.RequestedDocument>} value */
|
|
1554
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.setPaymentmethoddocumentsList = function(value) {
|
|
1555
|
+
jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
1556
|
+
};
|
|
1557
|
+
|
|
1558
|
+
|
|
1559
|
+
proto.kycserviceapi.UserKycStatusResponse.prototype.clearPaymentmethoddocumentsList = function() {
|
|
1560
|
+
this.setPaymentmethoddocumentsList([]);
|
|
1561
|
+
};
|
|
1562
|
+
|
|
1563
|
+
|
|
910
1564
|
/**
|
|
911
1565
|
* @enum {number}
|
|
912
1566
|
*/
|
|
@@ -929,4 +1583,14 @@ proto.kycserviceapi.DocumentType = {
|
|
|
929
1583
|
PAYMENT_METHOD: 4
|
|
930
1584
|
};
|
|
931
1585
|
|
|
1586
|
+
/**
|
|
1587
|
+
* @enum {number}
|
|
1588
|
+
*/
|
|
1589
|
+
proto.kycserviceapi.UserStatus = {
|
|
1590
|
+
USER_STATUS_REQUESTED: 0,
|
|
1591
|
+
USER_STATUS_PENDING_REVIEW: 1,
|
|
1592
|
+
USER_STATUS_VERIFIED: 2,
|
|
1593
|
+
USER_STATUS_UNVERIFIED: 3
|
|
1594
|
+
};
|
|
1595
|
+
|
|
932
1596
|
goog.object.extend(exports, proto.kycserviceapi);
|