fix verify bug
This commit is contained in:
parent
52cc5d4ad5
commit
5fc6f13cfb
|
@ -1,562 +0,0 @@
|
|||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from kyc.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;
|
||||
|
||||
class KycRequest extends $pb.GeneratedMessage {
|
||||
factory KycRequest({
|
||||
$core.String? provider,
|
||||
$core.String? args,
|
||||
}) {
|
||||
final result = create();
|
||||
if (provider != null) result.provider = provider;
|
||||
if (args != null) result.args = args;
|
||||
return result;
|
||||
}
|
||||
|
||||
KycRequest._();
|
||||
|
||||
factory KycRequest.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory KycRequest.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'KycRequest',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'provider')
|
||||
..aOS(2, _omitFieldNames ? '' : 'args')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
KycRequest clone() => KycRequest()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
KycRequest copyWith(void Function(KycRequest) updates) =>
|
||||
super.copyWith((message) => updates(message as KycRequest)) as KycRequest;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static KycRequest create() => KycRequest._();
|
||||
@$core.override
|
||||
KycRequest createEmptyInstance() => create();
|
||||
static $pb.PbList<KycRequest> createRepeated() => $pb.PbList<KycRequest>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static KycRequest getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<KycRequest>(create);
|
||||
static KycRequest? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get provider => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set provider($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasProvider() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearProvider() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get args => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set args($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasArgs() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearArgs() => $_clearField(2);
|
||||
}
|
||||
|
||||
class JumioCallbackPayload extends $pb.GeneratedMessage {
|
||||
factory JumioCallbackPayload({
|
||||
$core.String? scanReference,
|
||||
$core.String? customerInternalReference,
|
||||
VerificationStatus? verificationStatus,
|
||||
Document? document,
|
||||
PersonalInformation? personalInformation,
|
||||
FaceMap? faceMap,
|
||||
$core.String? callbackDate,
|
||||
$core.String? clientIp,
|
||||
}) {
|
||||
final result = create();
|
||||
if (scanReference != null) result.scanReference = scanReference;
|
||||
if (customerInternalReference != null)
|
||||
result.customerInternalReference = customerInternalReference;
|
||||
if (verificationStatus != null)
|
||||
result.verificationStatus = verificationStatus;
|
||||
if (document != null) result.document = document;
|
||||
if (personalInformation != null)
|
||||
result.personalInformation = personalInformation;
|
||||
if (faceMap != null) result.faceMap = faceMap;
|
||||
if (callbackDate != null) result.callbackDate = callbackDate;
|
||||
if (clientIp != null) result.clientIp = clientIp;
|
||||
return result;
|
||||
}
|
||||
|
||||
JumioCallbackPayload._();
|
||||
|
||||
factory JumioCallbackPayload.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory JumioCallbackPayload.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'JumioCallbackPayload',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'scanReference')
|
||||
..aOS(2, _omitFieldNames ? '' : 'customerInternalReference')
|
||||
..aOM<VerificationStatus>(3, _omitFieldNames ? '' : 'verificationStatus',
|
||||
subBuilder: VerificationStatus.create)
|
||||
..aOM<Document>(4, _omitFieldNames ? '' : 'document',
|
||||
subBuilder: Document.create)
|
||||
..aOM<PersonalInformation>(5, _omitFieldNames ? '' : 'personalInformation',
|
||||
subBuilder: PersonalInformation.create)
|
||||
..aOM<FaceMap>(6, _omitFieldNames ? '' : 'faceMap',
|
||||
subBuilder: FaceMap.create)
|
||||
..aOS(7, _omitFieldNames ? '' : 'callbackDate')
|
||||
..aOS(8, _omitFieldNames ? '' : 'clientIp')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
JumioCallbackPayload clone() =>
|
||||
JumioCallbackPayload()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
JumioCallbackPayload copyWith(void Function(JumioCallbackPayload) updates) =>
|
||||
super.copyWith((message) => updates(message as JumioCallbackPayload))
|
||||
as JumioCallbackPayload;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static JumioCallbackPayload create() => JumioCallbackPayload._();
|
||||
@$core.override
|
||||
JumioCallbackPayload createEmptyInstance() => create();
|
||||
static $pb.PbList<JumioCallbackPayload> createRepeated() =>
|
||||
$pb.PbList<JumioCallbackPayload>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static JumioCallbackPayload getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<JumioCallbackPayload>(create);
|
||||
static JumioCallbackPayload? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get scanReference => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set scanReference($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasScanReference() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearScanReference() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get customerInternalReference => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set customerInternalReference($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasCustomerInternalReference() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearCustomerInternalReference() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
VerificationStatus get verificationStatus => $_getN(2);
|
||||
@$pb.TagNumber(3)
|
||||
set verificationStatus(VerificationStatus value) => $_setField(3, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasVerificationStatus() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearVerificationStatus() => $_clearField(3);
|
||||
@$pb.TagNumber(3)
|
||||
VerificationStatus ensureVerificationStatus() => $_ensure(2);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
Document get document => $_getN(3);
|
||||
@$pb.TagNumber(4)
|
||||
set document(Document value) => $_setField(4, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasDocument() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearDocument() => $_clearField(4);
|
||||
@$pb.TagNumber(4)
|
||||
Document ensureDocument() => $_ensure(3);
|
||||
|
||||
/// 其他可选字段
|
||||
@$pb.TagNumber(5)
|
||||
PersonalInformation get personalInformation => $_getN(4);
|
||||
@$pb.TagNumber(5)
|
||||
set personalInformation(PersonalInformation value) => $_setField(5, value);
|
||||
@$pb.TagNumber(5)
|
||||
$core.bool hasPersonalInformation() => $_has(4);
|
||||
@$pb.TagNumber(5)
|
||||
void clearPersonalInformation() => $_clearField(5);
|
||||
@$pb.TagNumber(5)
|
||||
PersonalInformation ensurePersonalInformation() => $_ensure(4);
|
||||
|
||||
@$pb.TagNumber(6)
|
||||
FaceMap get faceMap => $_getN(5);
|
||||
@$pb.TagNumber(6)
|
||||
set faceMap(FaceMap value) => $_setField(6, value);
|
||||
@$pb.TagNumber(6)
|
||||
$core.bool hasFaceMap() => $_has(5);
|
||||
@$pb.TagNumber(6)
|
||||
void clearFaceMap() => $_clearField(6);
|
||||
@$pb.TagNumber(6)
|
||||
FaceMap ensureFaceMap() => $_ensure(5);
|
||||
|
||||
@$pb.TagNumber(7)
|
||||
$core.String get callbackDate => $_getSZ(6);
|
||||
@$pb.TagNumber(7)
|
||||
set callbackDate($core.String value) => $_setString(6, value);
|
||||
@$pb.TagNumber(7)
|
||||
$core.bool hasCallbackDate() => $_has(6);
|
||||
@$pb.TagNumber(7)
|
||||
void clearCallbackDate() => $_clearField(7);
|
||||
|
||||
@$pb.TagNumber(8)
|
||||
$core.String get clientIp => $_getSZ(7);
|
||||
@$pb.TagNumber(8)
|
||||
set clientIp($core.String value) => $_setString(7, value);
|
||||
@$pb.TagNumber(8)
|
||||
$core.bool hasClientIp() => $_has(7);
|
||||
@$pb.TagNumber(8)
|
||||
void clearClientIp() => $_clearField(8);
|
||||
}
|
||||
|
||||
class VerificationStatus extends $pb.GeneratedMessage {
|
||||
factory VerificationStatus({
|
||||
$core.String? state,
|
||||
$core.String? reason,
|
||||
}) {
|
||||
final result = create();
|
||||
if (state != null) result.state = state;
|
||||
if (reason != null) result.reason = reason;
|
||||
return result;
|
||||
}
|
||||
|
||||
VerificationStatus._();
|
||||
|
||||
factory VerificationStatus.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory VerificationStatus.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'VerificationStatus',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'state')
|
||||
..aOS(2, _omitFieldNames ? '' : 'reason')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
VerificationStatus clone() => VerificationStatus()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
VerificationStatus copyWith(void Function(VerificationStatus) updates) =>
|
||||
super.copyWith((message) => updates(message as VerificationStatus))
|
||||
as VerificationStatus;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static VerificationStatus create() => VerificationStatus._();
|
||||
@$core.override
|
||||
VerificationStatus createEmptyInstance() => create();
|
||||
static $pb.PbList<VerificationStatus> createRepeated() =>
|
||||
$pb.PbList<VerificationStatus>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static VerificationStatus getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<VerificationStatus>(create);
|
||||
static VerificationStatus? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get state => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set state($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasState() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearState() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get reason => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set reason($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasReason() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearReason() => $_clearField(2);
|
||||
}
|
||||
|
||||
class Document extends $pb.GeneratedMessage {
|
||||
factory Document({
|
||||
$core.String? status,
|
||||
$core.String? type,
|
||||
$core.String? issuingCountry,
|
||||
$core.String? number,
|
||||
}) {
|
||||
final result = create();
|
||||
if (status != null) result.status = status;
|
||||
if (type != null) result.type = type;
|
||||
if (issuingCountry != null) result.issuingCountry = issuingCountry;
|
||||
if (number != null) result.number = number;
|
||||
return result;
|
||||
}
|
||||
|
||||
Document._();
|
||||
|
||||
factory Document.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory Document.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'Document',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'status')
|
||||
..aOS(2, _omitFieldNames ? '' : 'type')
|
||||
..aOS(3, _omitFieldNames ? '' : 'issuingCountry')
|
||||
..aOS(4, _omitFieldNames ? '' : 'number')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Document clone() => Document()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
Document copyWith(void Function(Document) updates) =>
|
||||
super.copyWith((message) => updates(message as Document)) as Document;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Document create() => Document._();
|
||||
@$core.override
|
||||
Document createEmptyInstance() => create();
|
||||
static $pb.PbList<Document> createRepeated() => $pb.PbList<Document>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static Document getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Document>(create);
|
||||
static Document? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get status => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set status($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStatus() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStatus() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get type => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set type($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasType() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearType() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get issuingCountry => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set issuingCountry($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasIssuingCountry() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearIssuingCountry() => $_clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get number => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set number($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasNumber() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearNumber() => $_clearField(4);
|
||||
}
|
||||
|
||||
class PersonalInformation extends $pb.GeneratedMessage {
|
||||
factory PersonalInformation({
|
||||
$core.String? firstName,
|
||||
$core.String? lastName,
|
||||
$core.String? dateOfBirth,
|
||||
$core.String? nationality,
|
||||
}) {
|
||||
final result = create();
|
||||
if (firstName != null) result.firstName = firstName;
|
||||
if (lastName != null) result.lastName = lastName;
|
||||
if (dateOfBirth != null) result.dateOfBirth = dateOfBirth;
|
||||
if (nationality != null) result.nationality = nationality;
|
||||
return result;
|
||||
}
|
||||
|
||||
PersonalInformation._();
|
||||
|
||||
factory PersonalInformation.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory PersonalInformation.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'PersonalInformation',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'firstName')
|
||||
..aOS(2, _omitFieldNames ? '' : 'lastName')
|
||||
..aOS(3, _omitFieldNames ? '' : 'dateOfBirth')
|
||||
..aOS(4, _omitFieldNames ? '' : 'nationality')
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PersonalInformation clone() => PersonalInformation()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
PersonalInformation copyWith(void Function(PersonalInformation) updates) =>
|
||||
super.copyWith((message) => updates(message as PersonalInformation))
|
||||
as PersonalInformation;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PersonalInformation create() => PersonalInformation._();
|
||||
@$core.override
|
||||
PersonalInformation createEmptyInstance() => create();
|
||||
static $pb.PbList<PersonalInformation> createRepeated() =>
|
||||
$pb.PbList<PersonalInformation>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static PersonalInformation getDefault() => _defaultInstance ??=
|
||||
$pb.GeneratedMessage.$_defaultFor<PersonalInformation>(create);
|
||||
static PersonalInformation? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get firstName => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set firstName($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasFirstName() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearFirstName() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.String get lastName => $_getSZ(1);
|
||||
@$pb.TagNumber(2)
|
||||
set lastName($core.String value) => $_setString(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasLastName() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearLastName() => $_clearField(2);
|
||||
|
||||
@$pb.TagNumber(3)
|
||||
$core.String get dateOfBirth => $_getSZ(2);
|
||||
@$pb.TagNumber(3)
|
||||
set dateOfBirth($core.String value) => $_setString(2, value);
|
||||
@$pb.TagNumber(3)
|
||||
$core.bool hasDateOfBirth() => $_has(2);
|
||||
@$pb.TagNumber(3)
|
||||
void clearDateOfBirth() => $_clearField(3);
|
||||
|
||||
@$pb.TagNumber(4)
|
||||
$core.String get nationality => $_getSZ(3);
|
||||
@$pb.TagNumber(4)
|
||||
set nationality($core.String value) => $_setString(3, value);
|
||||
@$pb.TagNumber(4)
|
||||
$core.bool hasNationality() => $_has(3);
|
||||
@$pb.TagNumber(4)
|
||||
void clearNationality() => $_clearField(4);
|
||||
}
|
||||
|
||||
class FaceMap extends $pb.GeneratedMessage {
|
||||
factory FaceMap({
|
||||
$core.String? status,
|
||||
$core.double? similarity,
|
||||
}) {
|
||||
final result = create();
|
||||
if (status != null) result.status = status;
|
||||
if (similarity != null) result.similarity = similarity;
|
||||
return result;
|
||||
}
|
||||
|
||||
FaceMap._();
|
||||
|
||||
factory FaceMap.fromBuffer($core.List<$core.int> data,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromBuffer(data, registry);
|
||||
factory FaceMap.fromJson($core.String json,
|
||||
[$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) =>
|
||||
create()..mergeFromJson(json, registry);
|
||||
|
||||
static final $pb.BuilderInfo _i = $pb.BuilderInfo(
|
||||
_omitMessageNames ? '' : 'FaceMap',
|
||||
package: const $pb.PackageName(_omitMessageNames ? '' : 'passport'),
|
||||
createEmptyInstance: create)
|
||||
..aOS(1, _omitFieldNames ? '' : 'status')
|
||||
..a<$core.double>(
|
||||
2, _omitFieldNames ? '' : 'similarity', $pb.PbFieldType.OF)
|
||||
..hasRequiredFields = false;
|
||||
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FaceMap clone() => FaceMap()..mergeFromMessage(this);
|
||||
@$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
|
||||
FaceMap copyWith(void Function(FaceMap) updates) =>
|
||||
super.copyWith((message) => updates(message as FaceMap)) as FaceMap;
|
||||
|
||||
@$core.override
|
||||
$pb.BuilderInfo get info_ => _i;
|
||||
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FaceMap create() => FaceMap._();
|
||||
@$core.override
|
||||
FaceMap createEmptyInstance() => create();
|
||||
static $pb.PbList<FaceMap> createRepeated() => $pb.PbList<FaceMap>();
|
||||
@$core.pragma('dart2js:noInline')
|
||||
static FaceMap getDefault() =>
|
||||
_defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<FaceMap>(create);
|
||||
static FaceMap? _defaultInstance;
|
||||
|
||||
@$pb.TagNumber(1)
|
||||
$core.String get status => $_getSZ(0);
|
||||
@$pb.TagNumber(1)
|
||||
set status($core.String value) => $_setString(0, value);
|
||||
@$pb.TagNumber(1)
|
||||
$core.bool hasStatus() => $_has(0);
|
||||
@$pb.TagNumber(1)
|
||||
void clearStatus() => $_clearField(1);
|
||||
|
||||
@$pb.TagNumber(2)
|
||||
$core.double get similarity => $_getN(1);
|
||||
@$pb.TagNumber(2)
|
||||
set similarity($core.double value) => $_setFloat(1, value);
|
||||
@$pb.TagNumber(2)
|
||||
$core.bool hasSimilarity() => $_has(1);
|
||||
@$pb.TagNumber(2)
|
||||
void clearSimilarity() => $_clearField(2);
|
||||
}
|
||||
|
||||
const $core.bool _omitFieldNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_field_names');
|
||||
const $core.bool _omitMessageNames =
|
||||
$core.bool.fromEnvironment('protobuf.omit_message_names');
|
|
@ -1,11 +0,0 @@
|
|||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from kyc.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
|
@ -1,103 +0,0 @@
|
|||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from kyc.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names
|
||||
|
||||
import 'dart:async' as $async;
|
||||
import 'dart:core' as $core;
|
||||
|
||||
import 'package:grpc/service_api.dart' as $grpc;
|
||||
import 'package:protobuf/protobuf.dart' as $pb;
|
||||
|
||||
import 'blocks.pb.dart' as $1;
|
||||
import 'kyc.pb.dart' as $0;
|
||||
|
||||
export 'kyc.pb.dart';
|
||||
|
||||
/// Passport(会员通行证)模块-Kyc
|
||||
@$pb.GrpcServiceName('passport.Kyc')
|
||||
class KycClient extends $grpc.Client {
|
||||
/// The hostname for this service.
|
||||
static const $core.String defaultHost = '';
|
||||
|
||||
/// OAuth scopes needed for the client.
|
||||
static const $core.List<$core.String> oauthScopes = [
|
||||
'',
|
||||
];
|
||||
|
||||
KycClient(super.channel, {super.options, super.interceptors});
|
||||
|
||||
/// KYC 认证请求
|
||||
$grpc.ResponseFuture<$1.StatusReply> request(
|
||||
$0.KycRequest request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$request, request, options: options);
|
||||
}
|
||||
|
||||
/// KYC 认证回调
|
||||
$grpc.ResponseFuture<$1.StatusReply> jumioCallback(
|
||||
$0.JumioCallbackPayload request, {
|
||||
$grpc.CallOptions? options,
|
||||
}) {
|
||||
return $createUnaryCall(_$jumioCallback, request, options: options);
|
||||
}
|
||||
|
||||
// method descriptors
|
||||
|
||||
static final _$request = $grpc.ClientMethod<$0.KycRequest, $1.StatusReply>(
|
||||
'/passport.Kyc/Request',
|
||||
($0.KycRequest value) => value.writeToBuffer(),
|
||||
$1.StatusReply.fromBuffer);
|
||||
static final _$jumioCallback =
|
||||
$grpc.ClientMethod<$0.JumioCallbackPayload, $1.StatusReply>(
|
||||
'/passport.Kyc/JumioCallback',
|
||||
($0.JumioCallbackPayload value) => value.writeToBuffer(),
|
||||
$1.StatusReply.fromBuffer);
|
||||
}
|
||||
|
||||
@$pb.GrpcServiceName('passport.Kyc')
|
||||
abstract class KycServiceBase extends $grpc.Service {
|
||||
$core.String get $name => 'passport.Kyc';
|
||||
|
||||
KycServiceBase() {
|
||||
$addMethod($grpc.ServiceMethod<$0.KycRequest, $1.StatusReply>(
|
||||
'Request',
|
||||
request_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) => $0.KycRequest.fromBuffer(value),
|
||||
($1.StatusReply value) => value.writeToBuffer()));
|
||||
$addMethod($grpc.ServiceMethod<$0.JumioCallbackPayload, $1.StatusReply>(
|
||||
'JumioCallback',
|
||||
jumioCallback_Pre,
|
||||
false,
|
||||
false,
|
||||
($core.List<$core.int> value) =>
|
||||
$0.JumioCallbackPayload.fromBuffer(value),
|
||||
($1.StatusReply value) => value.writeToBuffer()));
|
||||
}
|
||||
|
||||
$async.Future<$1.StatusReply> request_Pre(
|
||||
$grpc.ServiceCall $call, $async.Future<$0.KycRequest> $request) async {
|
||||
return request($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$1.StatusReply> request(
|
||||
$grpc.ServiceCall call, $0.KycRequest request);
|
||||
|
||||
$async.Future<$1.StatusReply> jumioCallback_Pre($grpc.ServiceCall $call,
|
||||
$async.Future<$0.JumioCallbackPayload> $request) async {
|
||||
return jumioCallback($call, await $request);
|
||||
}
|
||||
|
||||
$async.Future<$1.StatusReply> jumioCallback(
|
||||
$grpc.ServiceCall call, $0.JumioCallbackPayload request);
|
||||
}
|
|
@ -1,152 +0,0 @@
|
|||
// This is a generated file - do not edit.
|
||||
//
|
||||
// Generated from kyc.proto.
|
||||
|
||||
// @dart = 3.3
|
||||
|
||||
// ignore_for_file: annotate_overrides, camel_case_types, comment_references
|
||||
// ignore_for_file: constant_identifier_names
|
||||
// ignore_for_file: curly_braces_in_flow_control_structures
|
||||
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
|
||||
// ignore_for_file: non_constant_identifier_names, unused_import
|
||||
|
||||
import 'dart:convert' as $convert;
|
||||
import 'dart:core' as $core;
|
||||
import 'dart:typed_data' as $typed_data;
|
||||
|
||||
@$core.Deprecated('Use kycRequestDescriptor instead')
|
||||
const KycRequest$json = {
|
||||
'1': 'KycRequest',
|
||||
'2': [
|
||||
{'1': 'provider', '3': 1, '4': 1, '5': 9, '10': 'provider'},
|
||||
{'1': 'args', '3': 2, '4': 1, '5': 9, '10': 'args'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `KycRequest`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List kycRequestDescriptor = $convert.base64Decode(
|
||||
'CgpLeWNSZXF1ZXN0EhoKCHByb3ZpZGVyGAEgASgJUghwcm92aWRlchISCgRhcmdzGAIgASgJUg'
|
||||
'Rhcmdz');
|
||||
|
||||
@$core.Deprecated('Use jumioCallbackPayloadDescriptor instead')
|
||||
const JumioCallbackPayload$json = {
|
||||
'1': 'JumioCallbackPayload',
|
||||
'2': [
|
||||
{'1': 'scan_reference', '3': 1, '4': 1, '5': 9, '10': 'scanReference'},
|
||||
{
|
||||
'1': 'customer_internal_reference',
|
||||
'3': 2,
|
||||
'4': 1,
|
||||
'5': 9,
|
||||
'10': 'customerInternalReference'
|
||||
},
|
||||
{
|
||||
'1': 'verification_status',
|
||||
'3': 3,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.passport.VerificationStatus',
|
||||
'10': 'verificationStatus'
|
||||
},
|
||||
{
|
||||
'1': 'document',
|
||||
'3': 4,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.passport.Document',
|
||||
'10': 'document'
|
||||
},
|
||||
{
|
||||
'1': 'personal_information',
|
||||
'3': 5,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.passport.PersonalInformation',
|
||||
'10': 'personalInformation'
|
||||
},
|
||||
{
|
||||
'1': 'face_map',
|
||||
'3': 6,
|
||||
'4': 1,
|
||||
'5': 11,
|
||||
'6': '.passport.FaceMap',
|
||||
'10': 'faceMap'
|
||||
},
|
||||
{'1': 'callback_date', '3': 7, '4': 1, '5': 9, '10': 'callbackDate'},
|
||||
{'1': 'client_ip', '3': 8, '4': 1, '5': 9, '10': 'clientIp'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `JumioCallbackPayload`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List jumioCallbackPayloadDescriptor = $convert.base64Decode(
|
||||
'ChRKdW1pb0NhbGxiYWNrUGF5bG9hZBIlCg5zY2FuX3JlZmVyZW5jZRgBIAEoCVINc2NhblJlZm'
|
||||
'VyZW5jZRI+ChtjdXN0b21lcl9pbnRlcm5hbF9yZWZlcmVuY2UYAiABKAlSGWN1c3RvbWVySW50'
|
||||
'ZXJuYWxSZWZlcmVuY2USTQoTdmVyaWZpY2F0aW9uX3N0YXR1cxgDIAEoCzIcLnBhc3Nwb3J0Ll'
|
||||
'ZlcmlmaWNhdGlvblN0YXR1c1ISdmVyaWZpY2F0aW9uU3RhdHVzEi4KCGRvY3VtZW50GAQgASgL'
|
||||
'MhIucGFzc3BvcnQuRG9jdW1lbnRSCGRvY3VtZW50ElAKFHBlcnNvbmFsX2luZm9ybWF0aW9uGA'
|
||||
'UgASgLMh0ucGFzc3BvcnQuUGVyc29uYWxJbmZvcm1hdGlvblITcGVyc29uYWxJbmZvcm1hdGlv'
|
||||
'bhIsCghmYWNlX21hcBgGIAEoCzIRLnBhc3Nwb3J0LkZhY2VNYXBSB2ZhY2VNYXASIwoNY2FsbG'
|
||||
'JhY2tfZGF0ZRgHIAEoCVIMY2FsbGJhY2tEYXRlEhsKCWNsaWVudF9pcBgIIAEoCVIIY2xpZW50'
|
||||
'SXA=');
|
||||
|
||||
@$core.Deprecated('Use verificationStatusDescriptor instead')
|
||||
const VerificationStatus$json = {
|
||||
'1': 'VerificationStatus',
|
||||
'2': [
|
||||
{'1': 'state', '3': 1, '4': 1, '5': 9, '10': 'state'},
|
||||
{'1': 'reason', '3': 2, '4': 1, '5': 9, '10': 'reason'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `VerificationStatus`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List verificationStatusDescriptor = $convert.base64Decode(
|
||||
'ChJWZXJpZmljYXRpb25TdGF0dXMSFAoFc3RhdGUYASABKAlSBXN0YXRlEhYKBnJlYXNvbhgCIA'
|
||||
'EoCVIGcmVhc29u');
|
||||
|
||||
@$core.Deprecated('Use documentDescriptor instead')
|
||||
const Document$json = {
|
||||
'1': 'Document',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 9, '10': 'status'},
|
||||
{'1': 'type', '3': 2, '4': 1, '5': 9, '10': 'type'},
|
||||
{'1': 'issuing_country', '3': 3, '4': 1, '5': 9, '10': 'issuingCountry'},
|
||||
{'1': 'number', '3': 4, '4': 1, '5': 9, '10': 'number'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `Document`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List documentDescriptor = $convert.base64Decode(
|
||||
'CghEb2N1bWVudBIWCgZzdGF0dXMYASABKAlSBnN0YXR1cxISCgR0eXBlGAIgASgJUgR0eXBlEi'
|
||||
'cKD2lzc3VpbmdfY291bnRyeRgDIAEoCVIOaXNzdWluZ0NvdW50cnkSFgoGbnVtYmVyGAQgASgJ'
|
||||
'UgZudW1iZXI=');
|
||||
|
||||
@$core.Deprecated('Use personalInformationDescriptor instead')
|
||||
const PersonalInformation$json = {
|
||||
'1': 'PersonalInformation',
|
||||
'2': [
|
||||
{'1': 'first_name', '3': 1, '4': 1, '5': 9, '10': 'firstName'},
|
||||
{'1': 'last_name', '3': 2, '4': 1, '5': 9, '10': 'lastName'},
|
||||
{'1': 'date_of_birth', '3': 3, '4': 1, '5': 9, '10': 'dateOfBirth'},
|
||||
{'1': 'nationality', '3': 4, '4': 1, '5': 9, '10': 'nationality'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `PersonalInformation`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List personalInformationDescriptor = $convert.base64Decode(
|
||||
'ChNQZXJzb25hbEluZm9ybWF0aW9uEh0KCmZpcnN0X25hbWUYASABKAlSCWZpcnN0TmFtZRIbCg'
|
||||
'lsYXN0X25hbWUYAiABKAlSCGxhc3ROYW1lEiIKDWRhdGVfb2ZfYmlydGgYAyABKAlSC2RhdGVP'
|
||||
'ZkJpcnRoEiAKC25hdGlvbmFsaXR5GAQgASgJUgtuYXRpb25hbGl0eQ==');
|
||||
|
||||
@$core.Deprecated('Use faceMapDescriptor instead')
|
||||
const FaceMap$json = {
|
||||
'1': 'FaceMap',
|
||||
'2': [
|
||||
{'1': 'status', '3': 1, '4': 1, '5': 9, '10': 'status'},
|
||||
{'1': 'similarity', '3': 2, '4': 1, '5': 2, '10': 'similarity'},
|
||||
],
|
||||
};
|
||||
|
||||
/// Descriptor for `FaceMap`. Decode as a `google.protobuf.DescriptorProto`.
|
||||
final $typed_data.Uint8List faceMapDescriptor = $convert.base64Decode(
|
||||
'CgdGYWNlTWFwEhYKBnN0YXR1cxgBIAEoCVIGc3RhdHVzEh4KCnNpbWlsYXJpdHkYAiABKAJSCn'
|
||||
'NpbWlsYXJpdHk=');
|
Loading…
Reference in New Issue