Documentation
¶
Index ¶
- type APIError
- type Actions
- type AsyncResponse
- type Client
- func (c *Client) BasicKYCAsyncVerification(ctx context.Context, input *KYCInput) (*AsyncResponse, error)
- func (c *Client) BasicKYCVerification(ctx context.Context, input *KYCInput) (*KYCVerificationResult, error)
- func (c *Client) EnhancedKYCAsyncVerification(ctx context.Context, input *KYCInput) (*AsyncResponse, error)
- func (c *Client) EnhancedKYCVerification(ctx context.Context, input *KYCInput) (*KYCVerificationResult, error)
- func (c *Client) JobRequest(ctx context.Context, input *RequestJobPayload) (*RequestJobResponse, error)
- func (c *Client) UploadJobPayload(ctx context.Context, input *RequestJobResponse) error
- func (c *Client) VerifyPhoneNumber(ctx context.Context, input *PhoneNumberVerification) (*PhoneNumberVerificationResponse, error)
- func (c *Client) VerifyPhoneNumberAsync(ctx context.Context, input *PhoneNumberVerification) (*AsyncResponse, error)
- type Config
- type GenderMatch
- type KYCInput
- type KYCVerificationResult
- type MatchFields
- type MatchResult
- type ModelParameters
- type PartnerParams
- type PhoneNumberVerification
- type PhoneNumberVerificationResponse
- type RequestJobPayload
- type RequestJobResponse
- type ResultText
- type ReturnPersonalInfoEnum
- type VerifyIDNumber
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIError ¶
type Actions ¶
type Actions struct {
DOB MatchResult `json:"DOB,omitempty"`
Gender GenderMatch `json:"Gender,omitempty"`
IDVerification MatchResult `json:"ID_Verification,omitempty"`
Names MatchResult `json:"Names,omitempty"`
PhoneNumber MatchResult `json:"Phone_Number,omitempty"`
ReturnPersonalInfo ReturnPersonalInfoEnum `json:"Return_Personal_Info,omitempty"`
VerifyIDNumber VerifyIDNumber `json:"Verify_ID_Number,omitempty"`
}
type AsyncResponse ¶
type AsyncResponse struct {
Success bool `json:"success,omitempty"`
}
type Client ¶
func NewClientFromEnvVars ¶
NewClientFromEnvVars creates a new client where the needed fields are retrieved from the environment variables.
func (*Client) BasicKYCAsyncVerification ¶
func (*Client) BasicKYCVerification ¶
func (*Client) EnhancedKYCAsyncVerification ¶
func (*Client) EnhancedKYCVerification ¶
func (*Client) JobRequest ¶
func (c *Client) JobRequest(ctx context.Context, input *RequestJobPayload) (*RequestJobResponse, error)
func (*Client) UploadJobPayload ¶
func (c *Client) UploadJobPayload(ctx context.Context, input *RequestJobResponse) error
func (*Client) VerifyPhoneNumber ¶
func (c *Client) VerifyPhoneNumber( ctx context.Context, input *PhoneNumberVerification, ) (*PhoneNumberVerificationResponse, error)
func (*Client) VerifyPhoneNumberAsync ¶
func (c *Client) VerifyPhoneNumberAsync(ctx context.Context, input *PhoneNumberVerification) (*AsyncResponse, error)
type GenderMatch ¶
type GenderMatch string
const ( GenderExact GenderMatch = "Exact Match" GenderNoMatch GenderMatch = "No Match" GenderNotProvided GenderMatch = "Not Provided" )
type KYCInput ¶
type KYCInput struct {
CallbackURL string `json:"callback_url,omitempty"`
Country string `json:"country,omitempty"`
DOB time.Time `json:"dob,omitempty"`
FirstName string `json:"first_name,omitempty"`
Gender string `json:"gender,omitempty"`
IDNumber string `json:"id_number,omitempty"`
IDType string `json:"id_type,omitempty"`
LastName string `json:"last_name,omitempty"`
MiddleName string `json:"middle_name,omitempty"`
PartnerID string `json:"partner_id,omitempty"`
PartnerParams PartnerParams `json:"partner_params,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"`
Signature string `json:"signature,omitempty"`
SourceSDKVersion string `json:"source_sdk_version,omitempty"`
SourceSDK string `json:"source_sdk,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}
type KYCVerificationResult ¶
type KYCVerificationResult struct {
Actions Actions `json:"Actions,omitempty"`
Country string `json:"Country,omitempty"`
DOB string `json:"DOB,omitempty"`
ExpirationDate string `json:"ExpirationDate,omitempty"`
IssuanceDate string `json:"IssuanceDate,omitempty"`
FullName string `json:"FullName,omitempty"`
IDNumber string `json:"IDNumber,omitempty"`
SecondaryIDNumber string `json:"SecondaryIDNumber,omitempty"`
IDType string `json:"IDType,omitempty"`
PartnerParams PartnerParams `json:"PartnerParams,omitempty"`
Photo string `json:"Photo,omitempty"`
ResultCode string `json:"ResultCode,omitempty"`
ResultText ResultText `json:"ResultText,omitempty"`
SmileJobID string `json:"SmileJobID,omitempty"`
Signature string `json:"signature,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
Source string `json:"Source,omitempty"`
}
type MatchFields ¶
type MatchResult ¶
type MatchResult string
const ( MatchExact MatchResult = "Exact Match" MatchPartial MatchResult = "Partial Match" MatchTransposed MatchResult = "Transposed" MatchNoMatch MatchResult = "No Match" )
type ModelParameters ¶
type ModelParameters struct{}
type PartnerParams ¶
type PhoneNumberVerification ¶
type PhoneNumberVerification struct {
CallbackURL string `json:"callback_url,omitempty"`
Country string `json:"country,omitempty"`
PhoneNumber string `json:"phone_number,omitempty"`
MatchFields MatchFields `json:"match_fields,omitempty"`
}
type PhoneNumberVerificationResponse ¶
type PhoneNumberVerificationResponse struct {
Code string `json:"code,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
JobID string `json:"job_id,omitempty"`
JobType string `json:"job_type,omitempty"`
MatchedFields MatchFields `json:"matched_fields,omitempty"`
Message string `json:"message,omitempty"`
PartnerID string `json:"partner_id,omitempty"`
PartnerParams PartnerParams `json:"partner_params,omitempty"`
Signature string `json:"signature,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}
type RequestJobPayload ¶
type RequestJobPayload struct {
CallbackURL string `json:"callback_url,omitempty"`
ModelParameters ModelParameters `json:"model_parameters,omitempty"`
PartnerParams PartnerParams `json:"partner_params,omitempty"`
Signature string `json:"signature,omitempty"`
SmileClientID string `json:"smile_client_id,omitempty"`
SourceSDK string `json:"source_sdk,omitempty"`
SourceSDKVersion string `json:"source_sdk_version,omitempty"`
Timestamp time.Time `json:"timestamp,omitempty"`
}
type RequestJobResponse ¶
type ResultText ¶
type ResultText string
const ( PartialMatch ResultText = "Partial Match" ExactMatch ResultText = "Exact Match" NoMatch ResultText = "No Match" )
type ReturnPersonalInfoEnum ¶
type ReturnPersonalInfoEnum string
const ( Returned ReturnPersonalInfoEnum = "Returned" NotReturned ReturnPersonalInfoEnum = "Not Returned" NotApplicable ReturnPersonalInfoEnum = "Not Applicable" )
type VerifyIDNumber ¶
type VerifyIDNumber string
const ( Verified VerifyIDNumber = "Verified" NotVerified VerifyIDNumber = "Not Verified" NotDone VerifyIDNumber = "Not Done" )
Click to show internal directories.
Click to hide internal directories.