@@ -1,17 +1,48 @@
|
||||
package kyc
|
||||
|
||||
type KycInfo struct {
|
||||
Type string `json:"type"` // cnrid/passport
|
||||
LegalName string `json:"legal_name"`
|
||||
ResidentId string `json:"rsident_id"`
|
||||
PassportInfo PassportInfo `json:"passport_info"`
|
||||
Type string `json:"type"` // cnrid/passport
|
||||
CNRidInfo *CNRidInfo `json:"CNRodInfo"`
|
||||
PassportInfo *PassportInfo `json:"passport_info"`
|
||||
}
|
||||
|
||||
type CNRidInfo struct {
|
||||
LegalName string `json:"legal_name"`
|
||||
ResidentId string `json:"resident_id"`
|
||||
}
|
||||
|
||||
type PassportInfo struct {
|
||||
FirstName string `json:"first_name"`
|
||||
LastName string `json:"last_name"`
|
||||
DateOfExpire string `json:"date_of_expire"`
|
||||
GivenNames string `json:"given_names"`
|
||||
Surname string `json:"surname"`
|
||||
Nationality string `json:"nationality"`
|
||||
DateOfBirth string `json:"date_of_birth"`
|
||||
DocumentType string `json:"document_type"`
|
||||
DocumentNumber string `json:"document_number"`
|
||||
ExpiryDate string `json:"expiry_date"`
|
||||
}
|
||||
|
||||
type AliCloudAuth struct {
|
||||
ParamType string `json:"param_type"`
|
||||
IdentifyNum string `json:"identify_num"`
|
||||
UserName string `json:"user_name"`
|
||||
}
|
||||
|
||||
type PassportReaderSessionResponse struct {
|
||||
ID int `json:"id"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
||||
type PassportReaderGetSessionRequest struct {
|
||||
ID int `json:"id"`
|
||||
}
|
||||
|
||||
type PassportReaderSessionDetailResponse struct {
|
||||
State string `json:"state"`
|
||||
GivenNames string `json:"given_names"`
|
||||
Surname string `json:"surname"`
|
||||
Nationality string `json:"nationality"`
|
||||
DateOfBirth string `json:"date_of_birth"`
|
||||
DocumentType string `json:"document_type"`
|
||||
DocumentNumber string `json:"document_number"`
|
||||
ExpiryDate string `json:"expiry_date"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user