521 lines
16 KiB
Go
521 lines
16 KiB
Go
// Code generated by protoc-gen-go. DO NOT EDIT.
|
|
// versions:
|
|
// protoc-gen-go v1.36.8
|
|
// protoc (unknown)
|
|
// source: kyc.proto
|
|
|
|
package passport
|
|
|
|
import (
|
|
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
|
|
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
|
|
reflect "reflect"
|
|
sync "sync"
|
|
unsafe "unsafe"
|
|
)
|
|
|
|
const (
|
|
// Verify that this generated code is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
|
|
// Verify that runtime/protoimpl is sufficiently up-to-date.
|
|
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
|
|
)
|
|
|
|
type KycRequest struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Provider string `protobuf:"bytes,1,opt,name=provider,proto3" json:"provider,omitempty"` // 服务提供商
|
|
Args string `protobuf:"bytes,2,opt,name=args,proto3" json:"args,omitempty"` // 参数
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *KycRequest) Reset() {
|
|
*x = KycRequest{}
|
|
mi := &file_kyc_proto_msgTypes[0]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *KycRequest) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*KycRequest) ProtoMessage() {}
|
|
|
|
func (x *KycRequest) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[0]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use KycRequest.ProtoReflect.Descriptor instead.
|
|
func (*KycRequest) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{0}
|
|
}
|
|
|
|
func (x *KycRequest) GetProvider() string {
|
|
if x != nil {
|
|
return x.Provider
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *KycRequest) GetArgs() string {
|
|
if x != nil {
|
|
return x.Args
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type JumioCallbackPayload struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
ScanReference string `protobuf:"bytes,1,opt,name=scan_reference,json=scanReference,proto3" json:"scan_reference,omitempty"`
|
|
CustomerInternalReference string `protobuf:"bytes,2,opt,name=customer_internal_reference,json=customerInternalReference,proto3" json:"customer_internal_reference,omitempty"`
|
|
VerificationStatus *VerificationStatus `protobuf:"bytes,3,opt,name=verification_status,json=verificationStatus,proto3" json:"verification_status,omitempty"`
|
|
Document *Document `protobuf:"bytes,4,opt,name=document,proto3" json:"document,omitempty"`
|
|
// 其他可选字段
|
|
PersonalInformation *PersonalInformation `protobuf:"bytes,5,opt,name=personal_information,json=personalInformation,proto3" json:"personal_information,omitempty"`
|
|
FaceMap *FaceMap `protobuf:"bytes,6,opt,name=face_map,json=faceMap,proto3" json:"face_map,omitempty"`
|
|
CallbackDate string `protobuf:"bytes,7,opt,name=callback_date,json=callbackDate,proto3" json:"callback_date,omitempty"`
|
|
ClientIp string `protobuf:"bytes,8,opt,name=client_ip,json=clientIp,proto3" json:"client_ip,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) Reset() {
|
|
*x = JumioCallbackPayload{}
|
|
mi := &file_kyc_proto_msgTypes[1]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*JumioCallbackPayload) ProtoMessage() {}
|
|
|
|
func (x *JumioCallbackPayload) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[1]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use JumioCallbackPayload.ProtoReflect.Descriptor instead.
|
|
func (*JumioCallbackPayload) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{1}
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetScanReference() string {
|
|
if x != nil {
|
|
return x.ScanReference
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetCustomerInternalReference() string {
|
|
if x != nil {
|
|
return x.CustomerInternalReference
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetVerificationStatus() *VerificationStatus {
|
|
if x != nil {
|
|
return x.VerificationStatus
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetDocument() *Document {
|
|
if x != nil {
|
|
return x.Document
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetPersonalInformation() *PersonalInformation {
|
|
if x != nil {
|
|
return x.PersonalInformation
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetFaceMap() *FaceMap {
|
|
if x != nil {
|
|
return x.FaceMap
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetCallbackDate() string {
|
|
if x != nil {
|
|
return x.CallbackDate
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *JumioCallbackPayload) GetClientIp() string {
|
|
if x != nil {
|
|
return x.ClientIp
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type VerificationStatus struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
State string `protobuf:"bytes,1,opt,name=state,proto3" json:"state,omitempty"` // "PENDING", "DONE", "FAILED"
|
|
Reason string `protobuf:"bytes,2,opt,name=reason,proto3" json:"reason,omitempty"` // 可选字段,失败原因
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *VerificationStatus) Reset() {
|
|
*x = VerificationStatus{}
|
|
mi := &file_kyc_proto_msgTypes[2]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *VerificationStatus) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*VerificationStatus) ProtoMessage() {}
|
|
|
|
func (x *VerificationStatus) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[2]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use VerificationStatus.ProtoReflect.Descriptor instead.
|
|
func (*VerificationStatus) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{2}
|
|
}
|
|
|
|
func (x *VerificationStatus) GetState() string {
|
|
if x != nil {
|
|
return x.State
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *VerificationStatus) GetReason() string {
|
|
if x != nil {
|
|
return x.Reason
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type Document struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // "APPROVED_VERIFIED", "DENIED_FRAUD", etc.
|
|
Type string `protobuf:"bytes,2,opt,name=type,proto3" json:"type,omitempty"` // "PASSPORT", "DRIVER_LICENSE", etc.
|
|
IssuingCountry string `protobuf:"bytes,3,opt,name=issuing_country,json=issuingCountry,proto3" json:"issuing_country,omitempty"`
|
|
Number string `protobuf:"bytes,4,opt,name=number,proto3" json:"number,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *Document) Reset() {
|
|
*x = Document{}
|
|
mi := &file_kyc_proto_msgTypes[3]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *Document) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*Document) ProtoMessage() {}
|
|
|
|
func (x *Document) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[3]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use Document.ProtoReflect.Descriptor instead.
|
|
func (*Document) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{3}
|
|
}
|
|
|
|
func (x *Document) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Document) GetType() string {
|
|
if x != nil {
|
|
return x.Type
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Document) GetIssuingCountry() string {
|
|
if x != nil {
|
|
return x.IssuingCountry
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *Document) GetNumber() string {
|
|
if x != nil {
|
|
return x.Number
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type PersonalInformation struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
FirstName string `protobuf:"bytes,1,opt,name=first_name,json=firstName,proto3" json:"first_name,omitempty"`
|
|
LastName string `protobuf:"bytes,2,opt,name=last_name,json=lastName,proto3" json:"last_name,omitempty"`
|
|
DateOfBirth string `protobuf:"bytes,3,opt,name=date_of_birth,json=dateOfBirth,proto3" json:"date_of_birth,omitempty"`
|
|
Nationality string `protobuf:"bytes,4,opt,name=nationality,proto3" json:"nationality,omitempty"`
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *PersonalInformation) Reset() {
|
|
*x = PersonalInformation{}
|
|
mi := &file_kyc_proto_msgTypes[4]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *PersonalInformation) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*PersonalInformation) ProtoMessage() {}
|
|
|
|
func (x *PersonalInformation) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[4]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use PersonalInformation.ProtoReflect.Descriptor instead.
|
|
func (*PersonalInformation) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{4}
|
|
}
|
|
|
|
func (x *PersonalInformation) GetFirstName() string {
|
|
if x != nil {
|
|
return x.FirstName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PersonalInformation) GetLastName() string {
|
|
if x != nil {
|
|
return x.LastName
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PersonalInformation) GetDateOfBirth() string {
|
|
if x != nil {
|
|
return x.DateOfBirth
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *PersonalInformation) GetNationality() string {
|
|
if x != nil {
|
|
return x.Nationality
|
|
}
|
|
return ""
|
|
}
|
|
|
|
type FaceMap struct {
|
|
state protoimpl.MessageState `protogen:"open.v1"`
|
|
Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
|
|
Similarity float32 `protobuf:"fixed32,2,opt,name=similarity,proto3" json:"similarity,omitempty"` // 人脸比对相似度
|
|
unknownFields protoimpl.UnknownFields
|
|
sizeCache protoimpl.SizeCache
|
|
}
|
|
|
|
func (x *FaceMap) Reset() {
|
|
*x = FaceMap{}
|
|
mi := &file_kyc_proto_msgTypes[5]
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
|
|
func (x *FaceMap) String() string {
|
|
return protoimpl.X.MessageStringOf(x)
|
|
}
|
|
|
|
func (*FaceMap) ProtoMessage() {}
|
|
|
|
func (x *FaceMap) ProtoReflect() protoreflect.Message {
|
|
mi := &file_kyc_proto_msgTypes[5]
|
|
if x != nil {
|
|
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
|
|
if ms.LoadMessageInfo() == nil {
|
|
ms.StoreMessageInfo(mi)
|
|
}
|
|
return ms
|
|
}
|
|
return mi.MessageOf(x)
|
|
}
|
|
|
|
// Deprecated: Use FaceMap.ProtoReflect.Descriptor instead.
|
|
func (*FaceMap) Descriptor() ([]byte, []int) {
|
|
return file_kyc_proto_rawDescGZIP(), []int{5}
|
|
}
|
|
|
|
func (x *FaceMap) GetStatus() string {
|
|
if x != nil {
|
|
return x.Status
|
|
}
|
|
return ""
|
|
}
|
|
|
|
func (x *FaceMap) GetSimilarity() float32 {
|
|
if x != nil {
|
|
return x.Similarity
|
|
}
|
|
return 0
|
|
}
|
|
|
|
var File_kyc_proto protoreflect.FileDescriptor
|
|
|
|
const file_kyc_proto_rawDesc = "" +
|
|
"\n" +
|
|
"\tkyc.proto\x12\bpassport\x1a\fblocks.proto\"<\n" +
|
|
"\n" +
|
|
"KycRequest\x12\x1a\n" +
|
|
"\bprovider\x18\x01 \x01(\tR\bprovider\x12\x12\n" +
|
|
"\x04args\x18\x02 \x01(\tR\x04args\"\xbe\x03\n" +
|
|
"\x14JumioCallbackPayload\x12%\n" +
|
|
"\x0escan_reference\x18\x01 \x01(\tR\rscanReference\x12>\n" +
|
|
"\x1bcustomer_internal_reference\x18\x02 \x01(\tR\x19customerInternalReference\x12M\n" +
|
|
"\x13verification_status\x18\x03 \x01(\v2\x1c.passport.VerificationStatusR\x12verificationStatus\x12.\n" +
|
|
"\bdocument\x18\x04 \x01(\v2\x12.passport.DocumentR\bdocument\x12P\n" +
|
|
"\x14personal_information\x18\x05 \x01(\v2\x1d.passport.PersonalInformationR\x13personalInformation\x12,\n" +
|
|
"\bface_map\x18\x06 \x01(\v2\x11.passport.FaceMapR\afaceMap\x12#\n" +
|
|
"\rcallback_date\x18\a \x01(\tR\fcallbackDate\x12\x1b\n" +
|
|
"\tclient_ip\x18\b \x01(\tR\bclientIp\"B\n" +
|
|
"\x12VerificationStatus\x12\x14\n" +
|
|
"\x05state\x18\x01 \x01(\tR\x05state\x12\x16\n" +
|
|
"\x06reason\x18\x02 \x01(\tR\x06reason\"w\n" +
|
|
"\bDocument\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x12\n" +
|
|
"\x04type\x18\x02 \x01(\tR\x04type\x12'\n" +
|
|
"\x0fissuing_country\x18\x03 \x01(\tR\x0eissuingCountry\x12\x16\n" +
|
|
"\x06number\x18\x04 \x01(\tR\x06number\"\x97\x01\n" +
|
|
"\x13PersonalInformation\x12\x1d\n" +
|
|
"\n" +
|
|
"first_name\x18\x01 \x01(\tR\tfirstName\x12\x1b\n" +
|
|
"\tlast_name\x18\x02 \x01(\tR\blastName\x12\"\n" +
|
|
"\rdate_of_birth\x18\x03 \x01(\tR\vdateOfBirth\x12 \n" +
|
|
"\vnationality\x18\x04 \x01(\tR\vnationality\"A\n" +
|
|
"\aFaceMap\x12\x16\n" +
|
|
"\x06status\x18\x01 \x01(\tR\x06status\x12\x1e\n" +
|
|
"\n" +
|
|
"similarity\x18\x02 \x01(\x02R\n" +
|
|
"similarity2\x89\x01\n" +
|
|
"\x03Kyc\x128\n" +
|
|
"\aRequest\x12\x14.passport.KycRequest\x1a\x15.passport.StatusReply\"\x00\x12H\n" +
|
|
"\rJumioCallback\x12\x1e.passport.JumioCallbackPayload\x1a\x15.passport.StatusReply\"\x00B\fZ\n" +
|
|
".;passportb\x06proto3"
|
|
|
|
var (
|
|
file_kyc_proto_rawDescOnce sync.Once
|
|
file_kyc_proto_rawDescData []byte
|
|
)
|
|
|
|
func file_kyc_proto_rawDescGZIP() []byte {
|
|
file_kyc_proto_rawDescOnce.Do(func() {
|
|
file_kyc_proto_rawDescData = protoimpl.X.CompressGZIP(unsafe.Slice(unsafe.StringData(file_kyc_proto_rawDesc), len(file_kyc_proto_rawDesc)))
|
|
})
|
|
return file_kyc_proto_rawDescData
|
|
}
|
|
|
|
var file_kyc_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
|
|
var file_kyc_proto_goTypes = []any{
|
|
(*KycRequest)(nil), // 0: passport.KycRequest
|
|
(*JumioCallbackPayload)(nil), // 1: passport.JumioCallbackPayload
|
|
(*VerificationStatus)(nil), // 2: passport.VerificationStatus
|
|
(*Document)(nil), // 3: passport.Document
|
|
(*PersonalInformation)(nil), // 4: passport.PersonalInformation
|
|
(*FaceMap)(nil), // 5: passport.FaceMap
|
|
(*StatusReply)(nil), // 6: passport.StatusReply
|
|
}
|
|
var file_kyc_proto_depIdxs = []int32{
|
|
2, // 0: passport.JumioCallbackPayload.verification_status:type_name -> passport.VerificationStatus
|
|
3, // 1: passport.JumioCallbackPayload.document:type_name -> passport.Document
|
|
4, // 2: passport.JumioCallbackPayload.personal_information:type_name -> passport.PersonalInformation
|
|
5, // 3: passport.JumioCallbackPayload.face_map:type_name -> passport.FaceMap
|
|
0, // 4: passport.Kyc.Request:input_type -> passport.KycRequest
|
|
1, // 5: passport.Kyc.JumioCallback:input_type -> passport.JumioCallbackPayload
|
|
6, // 6: passport.Kyc.Request:output_type -> passport.StatusReply
|
|
6, // 7: passport.Kyc.JumioCallback:output_type -> passport.StatusReply
|
|
6, // [6:8] is the sub-list for method output_type
|
|
4, // [4:6] is the sub-list for method input_type
|
|
4, // [4:4] is the sub-list for extension type_name
|
|
4, // [4:4] is the sub-list for extension extendee
|
|
0, // [0:4] is the sub-list for field type_name
|
|
}
|
|
|
|
func init() { file_kyc_proto_init() }
|
|
func file_kyc_proto_init() {
|
|
if File_kyc_proto != nil {
|
|
return
|
|
}
|
|
file_blocks_proto_init()
|
|
type x struct{}
|
|
out := protoimpl.TypeBuilder{
|
|
File: protoimpl.DescBuilder{
|
|
GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
|
|
RawDescriptor: unsafe.Slice(unsafe.StringData(file_kyc_proto_rawDesc), len(file_kyc_proto_rawDesc)),
|
|
NumEnums: 0,
|
|
NumMessages: 6,
|
|
NumExtensions: 0,
|
|
NumServices: 1,
|
|
},
|
|
GoTypes: file_kyc_proto_goTypes,
|
|
DependencyIndexes: file_kyc_proto_depIdxs,
|
|
MessageInfos: file_kyc_proto_msgTypes,
|
|
}.Build()
|
|
File_kyc_proto = out.File
|
|
file_kyc_proto_goTypes = nil
|
|
file_kyc_proto_depIdxs = nil
|
|
}
|