api

package
v0.0.0-...-85be4bb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2022 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Overview

Code generated by ogen, DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithServerURL

func WithServerURL(ctx context.Context, u *url.URL) context.Context

WithServerURL sets context key to override server URL.

Types

type APIKey

type APIKey struct {
	APIKey string
}

func (APIKey) GetAPIKey

func (s APIKey) GetAPIKey() string

GetAPIKey returns the value of APIKey.

func (*APIKey) SetAPIKey

func (s *APIKey) SetAPIKey(val string)

SetAPIKey sets the value of APIKey.

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client implements OAS client.

func NewClient

func NewClient(serverURL string, sec SecuritySource, opts ...Option) (*Client, error)

NewClient initializes new Client defined by OAS.

func (*Client) FaceRecognition

func (c *Client) FaceRecognition(ctx context.Context, request FaceRecognitionReq) (res FaceRecognitionRes, err error)

FaceRecognition invokes faceRecognition operation.

A facial recognition system is a technology capable of identifying or verifying a person from a digital image or a video frame from a video source.

POST /v3.2/faceid/recognition

func (*Client) FaceRegister

func (c *Client) FaceRegister(ctx context.Context, request FaceRegisterReq) (res FaceRegisterRes, err error)

FaceRegister invokes faceRegister operation.

Register image of consumer into database. System can not registerer if image is exist.

POST /v3.2/faceid/register

func (*Client) FaceUnregister

func (c *Client) FaceUnregister(ctx context.Context, request FaceUnregisterReq) (res FaceUnregisterRes, err error)

FaceUnregister invokes faceUnregister operation.

Delete information image of consumer registered database.

POST /v3.2/faceid/delete

func (*Client) FaceVerification

func (c *Client) FaceVerification(ctx context.Context, request FaceVerificationReq) (res FaceVerificationRes, err error)

FaceVerification invokes faceVerification operation.

Face verification is the task of comparing a candidate face to another, and verifying whether it is a match. It is a one-to-one mapping: you have to check if this person is the correct one.

POST /v3.2/faceid/verification

func (*Client) OCRecognition

func (c *Client) OCRecognition(ctx context.Context, request OCRInputForm) (res OCRecognitionRes, err error)

OCRecognition invokes OCRecognition operation.

Cung cấp phương thức để trích xuất thông tin trên các văn bản tài liệu như: Giấy phép lái xe (GPLX), Passport, CMND, Căn cước công dân (CCCD) ...

POST /v3.2/ocr/recognition

type DocumentEnum

type DocumentEnum string

Thông tin mô tả các loại giấy tờ: * `CCCD` - (Căn cước công dân) * `NEW ID` - (CMT 12 số) * `OLD ID` - (CMT 9 số) * `PASSPORT` * `DRIVER LICENSE OLD` * `DRIVER LICENSE PET` * `CHIP ID` * `POLICE ID` * `ARMY ID` *Chú ý*: Không phân biệt được mặt sau của CMT 12 số và CCCD -> mặt sau của 2 loại giấy tờ này hoàn toàn giống nhau về mặt hình ảnh và ý nghĩa. Ref: #/components/schemas/DocumentEnum

const (
	DocumentEnumCCCD             DocumentEnum = "CCCD"
	DocumentEnumNEWID            DocumentEnum = "NEW ID"
	DocumentEnumOLDID            DocumentEnum = "OLD ID"
	DocumentEnumPASSPORT         DocumentEnum = "PASSPORT"
	DocumentEnumDRIVERLICENSEOLD DocumentEnum = "DRIVER LICENSE OLD"
	DocumentEnumDRIVERLICENSEPET DocumentEnum = "DRIVER LICENSE PET"
	DocumentEnumCHIPID           DocumentEnum = "CHIP ID"
	DocumentEnumPOLICEID         DocumentEnum = "POLICE ID"
	DocumentEnumARMYID           DocumentEnum = "ARMY ID"
)

func (*DocumentEnum) Decode

func (s *DocumentEnum) Decode(d *jx.Decoder) error

Decode decodes DocumentEnum from json.

func (DocumentEnum) Encode

func (s DocumentEnum) Encode(e *jx.Encoder)

Encode encodes DocumentEnum as json.

func (DocumentEnum) MarshalJSON

func (s DocumentEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*DocumentEnum) UnmarshalJSON

func (s *DocumentEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (DocumentEnum) Validate

func (s DocumentEnum) Validate() error

type FaceAntiSpoofStatus

type FaceAntiSpoofStatus struct {
	Status   OptSpoofStatusEnum `json:"status"`
	FakeCode OptSpoofStatusEnum `json:"fake_code"`
	// Mức độ giả mạo ảnh chụp chân dung, khoảng giá trị [0-1.0]:
	// - 1.0: ảnh giả
	// - 0.0: ảnh thật
	// NOTE: By our experiments, threshold to judge an image is fake is fake_score > 0.63.
	FakeScore OptFloat64      `json:"fake_score"`
	FakeType  OptFakeTypeEnum `json:"fake_type"`
	// Trả về khi check_3_random_pose==1. Score matching giữa ảnh live với 3 ảnh đưa vào
	// kiểm tra.
	LivenessCompareScores OptString `json:"liveness_compare_scores"`
}

Thông tin đánh giá giả mạo khuôn mặt. Có thể kiểm tra thêm 3 random pose hoặc 3 ảnh thẳng mặt liên tiếp. ``` { "fake_code": "REAL", "fake_score": 0.0, "status": "REAL", "liveness_compare_scores": [float] } ```. Ref: #/components/schemas/FaceAntiSpoofStatus

func (*FaceAntiSpoofStatus) Decode

func (s *FaceAntiSpoofStatus) Decode(d *jx.Decoder) error

Decode decodes FaceAntiSpoofStatus from json.

func (FaceAntiSpoofStatus) Encode

func (s FaceAntiSpoofStatus) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceAntiSpoofStatus) GetFakeCode

func (s FaceAntiSpoofStatus) GetFakeCode() OptSpoofStatusEnum

GetFakeCode returns the value of FakeCode.

func (FaceAntiSpoofStatus) GetFakeScore

func (s FaceAntiSpoofStatus) GetFakeScore() OptFloat64

GetFakeScore returns the value of FakeScore.

func (FaceAntiSpoofStatus) GetFakeType

func (s FaceAntiSpoofStatus) GetFakeType() OptFakeTypeEnum

GetFakeType returns the value of FakeType.

func (FaceAntiSpoofStatus) GetLivenessCompareScores

func (s FaceAntiSpoofStatus) GetLivenessCompareScores() OptString

GetLivenessCompareScores returns the value of LivenessCompareScores.

func (FaceAntiSpoofStatus) GetStatus

GetStatus returns the value of Status.

func (FaceAntiSpoofStatus) MarshalJSON

func (s FaceAntiSpoofStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceAntiSpoofStatus) SetFakeCode

func (s *FaceAntiSpoofStatus) SetFakeCode(val OptSpoofStatusEnum)

SetFakeCode sets the value of FakeCode.

func (*FaceAntiSpoofStatus) SetFakeScore

func (s *FaceAntiSpoofStatus) SetFakeScore(val OptFloat64)

SetFakeScore sets the value of FakeScore.

func (*FaceAntiSpoofStatus) SetFakeType

func (s *FaceAntiSpoofStatus) SetFakeType(val OptFakeTypeEnum)

SetFakeType sets the value of FakeType.

func (*FaceAntiSpoofStatus) SetLivenessCompareScores

func (s *FaceAntiSpoofStatus) SetLivenessCompareScores(val OptString)

SetLivenessCompareScores sets the value of LivenessCompareScores.

func (*FaceAntiSpoofStatus) SetStatus

func (s *FaceAntiSpoofStatus) SetStatus(val OptSpoofStatusEnum)

SetStatus sets the value of Status.

func (*FaceAntiSpoofStatus) UnmarshalJSON

func (s *FaceAntiSpoofStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceAntiSpoofStatus) Validate

func (s FaceAntiSpoofStatus) Validate() error

type FaceFeature

type FaceFeature []float64

func (*FaceFeature) Decode

func (s *FaceFeature) Decode(d *jx.Decoder) error

Decode decodes FaceFeature from json.

func (FaceFeature) Encode

func (s FaceFeature) Encode(e *jx.Encoder)

Encode encodes FaceFeature as json.

func (FaceFeature) MarshalJSON

func (s FaceFeature) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceFeature) UnmarshalJSON

func (s *FaceFeature) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceFeature) Validate

func (s FaceFeature) Validate() error

type FaceIDRecognitionInput

type FaceIDRecognitionInput struct {
	RequestID string `json:"request_id"`
	Image     string `json:"image"`
}

Ref: #/components/schemas/FaceIDRecognitionInput

func (*FaceIDRecognitionInput) Decode

func (s *FaceIDRecognitionInput) Decode(d *jx.Decoder) error

Decode decodes FaceIDRecognitionInput from json.

func (FaceIDRecognitionInput) Encode

func (s FaceIDRecognitionInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDRecognitionInput) GetImage

func (s FaceIDRecognitionInput) GetImage() string

GetImage returns the value of Image.

func (FaceIDRecognitionInput) GetRequestID

func (s FaceIDRecognitionInput) GetRequestID() string

GetRequestID returns the value of RequestID.

func (FaceIDRecognitionInput) MarshalJSON

func (s FaceIDRecognitionInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDRecognitionInput) SetImage

func (s *FaceIDRecognitionInput) SetImage(val string)

SetImage sets the value of Image.

func (*FaceIDRecognitionInput) SetRequestID

func (s *FaceIDRecognitionInput) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (*FaceIDRecognitionInput) UnmarshalJSON

func (s *FaceIDRecognitionInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FaceIDRecognitionInputForm

type FaceIDRecognitionInputForm struct {
	RequestID string           `json:"request_id"`
	Image     ht.MultipartFile `json:"image"`
}

Ref: #/components/schemas/FaceIDRecognitionInput

func (FaceIDRecognitionInputForm) GetImage

GetImage returns the value of Image.

func (FaceIDRecognitionInputForm) GetRequestID

func (s FaceIDRecognitionInputForm) GetRequestID() string

GetRequestID returns the value of RequestID.

func (*FaceIDRecognitionInputForm) SetImage

func (s *FaceIDRecognitionInputForm) SetImage(val ht.MultipartFile)

SetImage sets the value of Image.

func (*FaceIDRecognitionInputForm) SetRequestID

func (s *FaceIDRecognitionInputForm) SetRequestID(val string)

SetRequestID sets the value of RequestID.

type FaceIDRecognitionResult

type FaceIDRecognitionResult struct {
	Message Message `json:"message"`
	// List of photos with faces similar to the one imported.
	RecognitionResult []FaceRecognitionResult `json:"recognition_result"`
	// Time handle request.
	RecognitionTime OptFloat64 `json:"recognition_time"`
}

Ref: #/components/schemas/FaceIDRecognitionResult

func (*FaceIDRecognitionResult) Decode

func (s *FaceIDRecognitionResult) Decode(d *jx.Decoder) error

Decode decodes FaceIDRecognitionResult from json.

func (FaceIDRecognitionResult) Encode

func (s FaceIDRecognitionResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDRecognitionResult) GetMessage

func (s FaceIDRecognitionResult) GetMessage() Message

GetMessage returns the value of Message.

func (FaceIDRecognitionResult) GetRecognitionResult

func (s FaceIDRecognitionResult) GetRecognitionResult() []FaceRecognitionResult

GetRecognitionResult returns the value of RecognitionResult.

func (FaceIDRecognitionResult) GetRecognitionTime

func (s FaceIDRecognitionResult) GetRecognitionTime() OptFloat64

GetRecognitionTime returns the value of RecognitionTime.

func (FaceIDRecognitionResult) MarshalJSON

func (s FaceIDRecognitionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDRecognitionResult) SetMessage

func (s *FaceIDRecognitionResult) SetMessage(val Message)

SetMessage sets the value of Message.

func (*FaceIDRecognitionResult) SetRecognitionResult

func (s *FaceIDRecognitionResult) SetRecognitionResult(val []FaceRecognitionResult)

SetRecognitionResult sets the value of RecognitionResult.

func (*FaceIDRecognitionResult) SetRecognitionTime

func (s *FaceIDRecognitionResult) SetRecognitionTime(val OptFloat64)

SetRecognitionTime sets the value of RecognitionTime.

func (*FaceIDRecognitionResult) UnmarshalJSON

func (s *FaceIDRecognitionResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceIDRecognitionResult) Validate

func (s FaceIDRecognitionResult) Validate() error

type FaceIDRegisterInput

type FaceIDRegisterInput struct {
	// Customer is unique name. Used in case many customers have the same real name.
	UniqueName string `json:"unique_name"`
	// Image of consumer.
	Image string `json:"image"`
	// Name of consumer.
	PersonName OptString `json:"person_name"`
	// Optional field,request system overrides customer registration. Used in case this photo or similar
	// photo of the customer has been previously registered.
	// * `0` - Default registration is not required
	// * `1` - Registration required.
	Force OptInt `json:"force"`
}

Merged schema. Ref: #/components/schemas/FaceIDRegisterInput

func (*FaceIDRegisterInput) Decode

func (s *FaceIDRegisterInput) Decode(d *jx.Decoder) error

Decode decodes FaceIDRegisterInput from json.

func (FaceIDRegisterInput) Encode

func (s FaceIDRegisterInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDRegisterInput) GetForce

func (s FaceIDRegisterInput) GetForce() OptInt

GetForce returns the value of Force.

func (FaceIDRegisterInput) GetImage

func (s FaceIDRegisterInput) GetImage() string

GetImage returns the value of Image.

func (FaceIDRegisterInput) GetPersonName

func (s FaceIDRegisterInput) GetPersonName() OptString

GetPersonName returns the value of PersonName.

func (FaceIDRegisterInput) GetUniqueName

func (s FaceIDRegisterInput) GetUniqueName() string

GetUniqueName returns the value of UniqueName.

func (FaceIDRegisterInput) MarshalJSON

func (s FaceIDRegisterInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDRegisterInput) SetForce

func (s *FaceIDRegisterInput) SetForce(val OptInt)

SetForce sets the value of Force.

func (*FaceIDRegisterInput) SetImage

func (s *FaceIDRegisterInput) SetImage(val string)

SetImage sets the value of Image.

func (*FaceIDRegisterInput) SetPersonName

func (s *FaceIDRegisterInput) SetPersonName(val OptString)

SetPersonName sets the value of PersonName.

func (*FaceIDRegisterInput) SetUniqueName

func (s *FaceIDRegisterInput) SetUniqueName(val string)

SetUniqueName sets the value of UniqueName.

func (*FaceIDRegisterInput) UnmarshalJSON

func (s *FaceIDRegisterInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FaceIDRegisterInputForm

type FaceIDRegisterInputForm struct {
	// Customer is unique name. Used in case many customers have the same real name.
	UniqueName string `json:"unique_name"`
	// Image of consumer.
	Image ht.MultipartFile `json:"image"`
	// Name of consumer.
	PersonName OptString `json:"person_name"`
	// Optional field,request system overrides customer registration. Used in case this photo or similar
	// photo of the customer has been previously registered.
	// * `0` - Default registration is not required
	// * `1` - Registration required.
	Force OptInt `json:"force"`
}

Merged schema. Ref: #/components/schemas/FaceIDRegisterInput

func (FaceIDRegisterInputForm) GetForce

func (s FaceIDRegisterInputForm) GetForce() OptInt

GetForce returns the value of Force.

func (FaceIDRegisterInputForm) GetImage

GetImage returns the value of Image.

func (FaceIDRegisterInputForm) GetPersonName

func (s FaceIDRegisterInputForm) GetPersonName() OptString

GetPersonName returns the value of PersonName.

func (FaceIDRegisterInputForm) GetUniqueName

func (s FaceIDRegisterInputForm) GetUniqueName() string

GetUniqueName returns the value of UniqueName.

func (*FaceIDRegisterInputForm) SetForce

func (s *FaceIDRegisterInputForm) SetForce(val OptInt)

SetForce sets the value of Force.

func (*FaceIDRegisterInputForm) SetImage

func (s *FaceIDRegisterInputForm) SetImage(val ht.MultipartFile)

SetImage sets the value of Image.

func (*FaceIDRegisterInputForm) SetPersonName

func (s *FaceIDRegisterInputForm) SetPersonName(val OptString)

SetPersonName sets the value of PersonName.

func (*FaceIDRegisterInputForm) SetUniqueName

func (s *FaceIDRegisterInputForm) SetUniqueName(val string)

SetUniqueName sets the value of UniqueName.

type FaceIDRegisterResult

type FaceIDRegisterResult struct {
	// Góc nghiêng của khuôn mặt ở ảnh.
	FaceCardAngle OptInt `json:"face_card_angle"`
	// Position of faces in photos. Format: [left, top, right, bottom].
	FaceLoc    []int     `json:"face_loc"`
	Message    Message   `json:"message"`
	UniqueName OptString `json:"unique_name"`
	// ID of face register in database.
	FaceID        OptInt     `json:"face_id"`
	MatchedScore  OptFloat64 `json:"matched_score"`
	SamePersonThr OptFloat64 `json:"same_person_thr"`
}

Ref: #/components/schemas/FaceIDRegisterResult

func (*FaceIDRegisterResult) Decode

func (s *FaceIDRegisterResult) Decode(d *jx.Decoder) error

Decode decodes FaceIDRegisterResult from json.

func (FaceIDRegisterResult) Encode

func (s FaceIDRegisterResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDRegisterResult) GetFaceCardAngle

func (s FaceIDRegisterResult) GetFaceCardAngle() OptInt

GetFaceCardAngle returns the value of FaceCardAngle.

func (FaceIDRegisterResult) GetFaceID

func (s FaceIDRegisterResult) GetFaceID() OptInt

GetFaceID returns the value of FaceID.

func (FaceIDRegisterResult) GetFaceLoc

func (s FaceIDRegisterResult) GetFaceLoc() []int

GetFaceLoc returns the value of FaceLoc.

func (FaceIDRegisterResult) GetMatchedScore

func (s FaceIDRegisterResult) GetMatchedScore() OptFloat64

GetMatchedScore returns the value of MatchedScore.

func (FaceIDRegisterResult) GetMessage

func (s FaceIDRegisterResult) GetMessage() Message

GetMessage returns the value of Message.

func (FaceIDRegisterResult) GetSamePersonThr

func (s FaceIDRegisterResult) GetSamePersonThr() OptFloat64

GetSamePersonThr returns the value of SamePersonThr.

func (FaceIDRegisterResult) GetUniqueName

func (s FaceIDRegisterResult) GetUniqueName() OptString

GetUniqueName returns the value of UniqueName.

func (FaceIDRegisterResult) MarshalJSON

func (s FaceIDRegisterResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDRegisterResult) SetFaceCardAngle

func (s *FaceIDRegisterResult) SetFaceCardAngle(val OptInt)

SetFaceCardAngle sets the value of FaceCardAngle.

func (*FaceIDRegisterResult) SetFaceID

func (s *FaceIDRegisterResult) SetFaceID(val OptInt)

SetFaceID sets the value of FaceID.

func (*FaceIDRegisterResult) SetFaceLoc

func (s *FaceIDRegisterResult) SetFaceLoc(val []int)

SetFaceLoc sets the value of FaceLoc.

func (*FaceIDRegisterResult) SetMatchedScore

func (s *FaceIDRegisterResult) SetMatchedScore(val OptFloat64)

SetMatchedScore sets the value of MatchedScore.

func (*FaceIDRegisterResult) SetMessage

func (s *FaceIDRegisterResult) SetMessage(val Message)

SetMessage sets the value of Message.

func (*FaceIDRegisterResult) SetSamePersonThr

func (s *FaceIDRegisterResult) SetSamePersonThr(val OptFloat64)

SetSamePersonThr sets the value of SamePersonThr.

func (*FaceIDRegisterResult) SetUniqueName

func (s *FaceIDRegisterResult) SetUniqueName(val OptString)

SetUniqueName sets the value of UniqueName.

func (*FaceIDRegisterResult) UnmarshalJSON

func (s *FaceIDRegisterResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceIDRegisterResult) Validate

func (s FaceIDRegisterResult) Validate() error

type FaceIDResult

type FaceIDResult struct {
	// Customer is unique name. Used in case many customers have the same real name.
	UniqueName   string           `json:"unique_name"`
	CompareScore float64          `json:"compare_score"`
	Info         FaceIDResultInfo `json:"info"`
	// Name of consumer.
	PersonName OptString `json:"person_name"`
}

Merged schema. Ref: #/components/schemas/FaceIDResult

func (*FaceIDResult) Decode

func (s *FaceIDResult) Decode(d *jx.Decoder) error

Decode decodes FaceIDResult from json.

func (FaceIDResult) Encode

func (s FaceIDResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDResult) GetCompareScore

func (s FaceIDResult) GetCompareScore() float64

GetCompareScore returns the value of CompareScore.

func (FaceIDResult) GetInfo

func (s FaceIDResult) GetInfo() FaceIDResultInfo

GetInfo returns the value of Info.

func (FaceIDResult) GetPersonName

func (s FaceIDResult) GetPersonName() OptString

GetPersonName returns the value of PersonName.

func (FaceIDResult) GetUniqueName

func (s FaceIDResult) GetUniqueName() string

GetUniqueName returns the value of UniqueName.

func (FaceIDResult) MarshalJSON

func (s FaceIDResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDResult) SetCompareScore

func (s *FaceIDResult) SetCompareScore(val float64)

SetCompareScore sets the value of CompareScore.

func (*FaceIDResult) SetInfo

func (s *FaceIDResult) SetInfo(val FaceIDResultInfo)

SetInfo sets the value of Info.

func (*FaceIDResult) SetPersonName

func (s *FaceIDResult) SetPersonName(val OptString)

SetPersonName sets the value of PersonName.

func (*FaceIDResult) SetUniqueName

func (s *FaceIDResult) SetUniqueName(val string)

SetUniqueName sets the value of UniqueName.

func (*FaceIDResult) UnmarshalJSON

func (s *FaceIDResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceIDResult) Validate

func (s FaceIDResult) Validate() error

type FaceIDResultInfo

type FaceIDResultInfo map[string]string

func (*FaceIDResultInfo) Decode

func (s *FaceIDResultInfo) Decode(d *jx.Decoder) error

Decode decodes FaceIDResultInfo from json.

func (FaceIDResultInfo) Encode

func (s FaceIDResultInfo) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDResultInfo) MarshalJSON

func (s FaceIDResultInfo) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDResultInfo) UnmarshalJSON

func (s *FaceIDResultInfo) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FaceIDVerificationInput

type FaceIDVerificationInput struct {
	// Request ID.
	RequestID string `json:"request_id"`
	// Ảnh card id (chứng minh thư, căn cước công dân) của người dùng.
	ImageCard string `json:"image_card"`
	// Ảnh chụp khuôn mặt.
	ImageLive string `json:"image_live"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive1 OptString `json:"image_live1"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive2 OptString `json:"image_live2"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive3 OptString `json:"image_live3"`
	// Kiểm tra các ảnh live image có phải cùng một khuôn mặt hay không.
	Check3RandomPose OptInt `json:"check_3_random_pose"`
	// Kiểm tra các ảnh khuôn mặt có fake hay không.
	Check3StraightPose OptInt `json:"check_3_straight_pose"`
	// Trả về face feature vector hay không.
	ReturnFeature OptInt `json:"return_feature"`
	// Threshold để kiểm tra xem có đeo khẩu trang hay không.
	MaskThreshold OptFloat64 `json:"mask_threshold"`
	// Giá trị dùng để check xem khuôn mặt live có phải fake.
	FakeThreshold OptFloat64 `json:"fake_threshold"`
	// Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 <
	// độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng
	// >= sim_threshold_level2 ==> cùng 1 người.
	SimThresholdLevel1 OptFloat64 `json:"sim_threshold_level1"`
	// Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 <
	// độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng
	// >= sim_threshold_level2 ==> cùng 1 người.
	SimThresholdLevel2 OptFloat64 `json:"sim_threshold_level2"`
}

Ref: #/components/schemas/FaceIDVerificationInput

func (*FaceIDVerificationInput) Decode

func (s *FaceIDVerificationInput) Decode(d *jx.Decoder) error

Decode decodes FaceIDVerificationInput from json.

func (FaceIDVerificationInput) Encode

func (s FaceIDVerificationInput) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDVerificationInput) GetCheck3RandomPose

func (s FaceIDVerificationInput) GetCheck3RandomPose() OptInt

GetCheck3RandomPose returns the value of Check3RandomPose.

func (FaceIDVerificationInput) GetCheck3StraightPose

func (s FaceIDVerificationInput) GetCheck3StraightPose() OptInt

GetCheck3StraightPose returns the value of Check3StraightPose.

func (FaceIDVerificationInput) GetFakeThreshold

func (s FaceIDVerificationInput) GetFakeThreshold() OptFloat64

GetFakeThreshold returns the value of FakeThreshold.

func (FaceIDVerificationInput) GetImageCard

func (s FaceIDVerificationInput) GetImageCard() string

GetImageCard returns the value of ImageCard.

func (FaceIDVerificationInput) GetImageLive

func (s FaceIDVerificationInput) GetImageLive() string

GetImageLive returns the value of ImageLive.

func (FaceIDVerificationInput) GetImageLive1

func (s FaceIDVerificationInput) GetImageLive1() OptString

GetImageLive1 returns the value of ImageLive1.

func (FaceIDVerificationInput) GetImageLive2

func (s FaceIDVerificationInput) GetImageLive2() OptString

GetImageLive2 returns the value of ImageLive2.

func (FaceIDVerificationInput) GetImageLive3

func (s FaceIDVerificationInput) GetImageLive3() OptString

GetImageLive3 returns the value of ImageLive3.

func (FaceIDVerificationInput) GetMaskThreshold

func (s FaceIDVerificationInput) GetMaskThreshold() OptFloat64

GetMaskThreshold returns the value of MaskThreshold.

func (FaceIDVerificationInput) GetRequestID

func (s FaceIDVerificationInput) GetRequestID() string

GetRequestID returns the value of RequestID.

func (FaceIDVerificationInput) GetReturnFeature

func (s FaceIDVerificationInput) GetReturnFeature() OptInt

GetReturnFeature returns the value of ReturnFeature.

func (FaceIDVerificationInput) GetSimThresholdLevel1

func (s FaceIDVerificationInput) GetSimThresholdLevel1() OptFloat64

GetSimThresholdLevel1 returns the value of SimThresholdLevel1.

func (FaceIDVerificationInput) GetSimThresholdLevel2

func (s FaceIDVerificationInput) GetSimThresholdLevel2() OptFloat64

GetSimThresholdLevel2 returns the value of SimThresholdLevel2.

func (FaceIDVerificationInput) MarshalJSON

func (s FaceIDVerificationInput) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDVerificationInput) SetCheck3RandomPose

func (s *FaceIDVerificationInput) SetCheck3RandomPose(val OptInt)

SetCheck3RandomPose sets the value of Check3RandomPose.

func (*FaceIDVerificationInput) SetCheck3StraightPose

func (s *FaceIDVerificationInput) SetCheck3StraightPose(val OptInt)

SetCheck3StraightPose sets the value of Check3StraightPose.

func (*FaceIDVerificationInput) SetFakeThreshold

func (s *FaceIDVerificationInput) SetFakeThreshold(val OptFloat64)

SetFakeThreshold sets the value of FakeThreshold.

func (*FaceIDVerificationInput) SetImageCard

func (s *FaceIDVerificationInput) SetImageCard(val string)

SetImageCard sets the value of ImageCard.

func (*FaceIDVerificationInput) SetImageLive

func (s *FaceIDVerificationInput) SetImageLive(val string)

SetImageLive sets the value of ImageLive.

func (*FaceIDVerificationInput) SetImageLive1

func (s *FaceIDVerificationInput) SetImageLive1(val OptString)

SetImageLive1 sets the value of ImageLive1.

func (*FaceIDVerificationInput) SetImageLive2

func (s *FaceIDVerificationInput) SetImageLive2(val OptString)

SetImageLive2 sets the value of ImageLive2.

func (*FaceIDVerificationInput) SetImageLive3

func (s *FaceIDVerificationInput) SetImageLive3(val OptString)

SetImageLive3 sets the value of ImageLive3.

func (*FaceIDVerificationInput) SetMaskThreshold

func (s *FaceIDVerificationInput) SetMaskThreshold(val OptFloat64)

SetMaskThreshold sets the value of MaskThreshold.

func (*FaceIDVerificationInput) SetRequestID

func (s *FaceIDVerificationInput) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (*FaceIDVerificationInput) SetReturnFeature

func (s *FaceIDVerificationInput) SetReturnFeature(val OptInt)

SetReturnFeature sets the value of ReturnFeature.

func (*FaceIDVerificationInput) SetSimThresholdLevel1

func (s *FaceIDVerificationInput) SetSimThresholdLevel1(val OptFloat64)

SetSimThresholdLevel1 sets the value of SimThresholdLevel1.

func (*FaceIDVerificationInput) SetSimThresholdLevel2

func (s *FaceIDVerificationInput) SetSimThresholdLevel2(val OptFloat64)

SetSimThresholdLevel2 sets the value of SimThresholdLevel2.

func (*FaceIDVerificationInput) UnmarshalJSON

func (s *FaceIDVerificationInput) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceIDVerificationInput) Validate

func (s FaceIDVerificationInput) Validate() error

type FaceIDVerificationInputForm

type FaceIDVerificationInputForm struct {
	// Request ID.
	RequestID string `json:"request_id"`
	// Ảnh card id (chứng minh thư, căn cước công dân) của người dùng.
	ImageCard ht.MultipartFile `json:"image_card"`
	// Ảnh chụp khuôn mặt.
	ImageLive ht.MultipartFile `json:"image_live"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive1 OptMultipartFile `json:"image_live1"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive2 OptMultipartFile `json:"image_live2"`
	// Ảnh chụp khuôn mặt ở các góc độ khác nhau để tăng độ chính xác khi xác
	// thực khuôn mặt.
	ImageLive3 OptMultipartFile `json:"image_live3"`
	// Kiểm tra các ảnh live image có phải cùng một khuôn mặt hay không.
	Check3RandomPose OptInt `json:"check_3_random_pose"`
	// Kiểm tra các ảnh khuôn mặt có fake hay không.
	Check3StraightPose OptInt `json:"check_3_straight_pose"`
	// Trả về face feature vector hay không.
	ReturnFeature OptInt `json:"return_feature"`
	// Threshold để kiểm tra xem có đeo khẩu trang hay không.
	MaskThreshold OptFloat64 `json:"mask_threshold"`
	// Giá trị dùng để check xem khuôn mặt live có phải fake.
	FakeThreshold OptFloat64 `json:"fake_threshold"`
	// Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 <
	// độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng
	// >= sim_threshold_level2 ==> cùng 1 người.
	SimThresholdLevel1 OptFloat64 `json:"sim_threshold_level1"`
	// Độ tương đồng <= sim_threshold_level1 => không cùng 1 người sim_threshold_level1 <
	// độ tương đồng < sim_threshold_level2 ==> có thể cùng 1 người độ tương đồng
	// >= sim_threshold_level2 ==> cùng 1 người.
	SimThresholdLevel2 OptFloat64 `json:"sim_threshold_level2"`
}

Ref: #/components/schemas/FaceIDVerificationInput

func (FaceIDVerificationInputForm) GetCheck3RandomPose

func (s FaceIDVerificationInputForm) GetCheck3RandomPose() OptInt

GetCheck3RandomPose returns the value of Check3RandomPose.

func (FaceIDVerificationInputForm) GetCheck3StraightPose

func (s FaceIDVerificationInputForm) GetCheck3StraightPose() OptInt

GetCheck3StraightPose returns the value of Check3StraightPose.

func (FaceIDVerificationInputForm) GetFakeThreshold

func (s FaceIDVerificationInputForm) GetFakeThreshold() OptFloat64

GetFakeThreshold returns the value of FakeThreshold.

func (FaceIDVerificationInputForm) GetImageCard

func (s FaceIDVerificationInputForm) GetImageCard() ht.MultipartFile

GetImageCard returns the value of ImageCard.

func (FaceIDVerificationInputForm) GetImageLive

func (s FaceIDVerificationInputForm) GetImageLive() ht.MultipartFile

GetImageLive returns the value of ImageLive.

func (FaceIDVerificationInputForm) GetImageLive1

GetImageLive1 returns the value of ImageLive1.

func (FaceIDVerificationInputForm) GetImageLive2

GetImageLive2 returns the value of ImageLive2.

func (FaceIDVerificationInputForm) GetImageLive3

GetImageLive3 returns the value of ImageLive3.

func (FaceIDVerificationInputForm) GetMaskThreshold

func (s FaceIDVerificationInputForm) GetMaskThreshold() OptFloat64

GetMaskThreshold returns the value of MaskThreshold.

func (FaceIDVerificationInputForm) GetRequestID

func (s FaceIDVerificationInputForm) GetRequestID() string

GetRequestID returns the value of RequestID.

func (FaceIDVerificationInputForm) GetReturnFeature

func (s FaceIDVerificationInputForm) GetReturnFeature() OptInt

GetReturnFeature returns the value of ReturnFeature.

func (FaceIDVerificationInputForm) GetSimThresholdLevel1

func (s FaceIDVerificationInputForm) GetSimThresholdLevel1() OptFloat64

GetSimThresholdLevel1 returns the value of SimThresholdLevel1.

func (FaceIDVerificationInputForm) GetSimThresholdLevel2

func (s FaceIDVerificationInputForm) GetSimThresholdLevel2() OptFloat64

GetSimThresholdLevel2 returns the value of SimThresholdLevel2.

func (*FaceIDVerificationInputForm) SetCheck3RandomPose

func (s *FaceIDVerificationInputForm) SetCheck3RandomPose(val OptInt)

SetCheck3RandomPose sets the value of Check3RandomPose.

func (*FaceIDVerificationInputForm) SetCheck3StraightPose

func (s *FaceIDVerificationInputForm) SetCheck3StraightPose(val OptInt)

SetCheck3StraightPose sets the value of Check3StraightPose.

func (*FaceIDVerificationInputForm) SetFakeThreshold

func (s *FaceIDVerificationInputForm) SetFakeThreshold(val OptFloat64)

SetFakeThreshold sets the value of FakeThreshold.

func (*FaceIDVerificationInputForm) SetImageCard

func (s *FaceIDVerificationInputForm) SetImageCard(val ht.MultipartFile)

SetImageCard sets the value of ImageCard.

func (*FaceIDVerificationInputForm) SetImageLive

func (s *FaceIDVerificationInputForm) SetImageLive(val ht.MultipartFile)

SetImageLive sets the value of ImageLive.

func (*FaceIDVerificationInputForm) SetImageLive1

func (s *FaceIDVerificationInputForm) SetImageLive1(val OptMultipartFile)

SetImageLive1 sets the value of ImageLive1.

func (*FaceIDVerificationInputForm) SetImageLive2

func (s *FaceIDVerificationInputForm) SetImageLive2(val OptMultipartFile)

SetImageLive2 sets the value of ImageLive2.

func (*FaceIDVerificationInputForm) SetImageLive3

func (s *FaceIDVerificationInputForm) SetImageLive3(val OptMultipartFile)

SetImageLive3 sets the value of ImageLive3.

func (*FaceIDVerificationInputForm) SetMaskThreshold

func (s *FaceIDVerificationInputForm) SetMaskThreshold(val OptFloat64)

SetMaskThreshold sets the value of MaskThreshold.

func (*FaceIDVerificationInputForm) SetRequestID

func (s *FaceIDVerificationInputForm) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (*FaceIDVerificationInputForm) SetReturnFeature

func (s *FaceIDVerificationInputForm) SetReturnFeature(val OptInt)

SetReturnFeature sets the value of ReturnFeature.

func (*FaceIDVerificationInputForm) SetSimThresholdLevel1

func (s *FaceIDVerificationInputForm) SetSimThresholdLevel1(val OptFloat64)

SetSimThresholdLevel1 sets the value of SimThresholdLevel1.

func (*FaceIDVerificationInputForm) SetSimThresholdLevel2

func (s *FaceIDVerificationInputForm) SetSimThresholdLevel2(val OptFloat64)

SetSimThresholdLevel2 sets the value of SimThresholdLevel2.

func (FaceIDVerificationInputForm) Validate

func (s FaceIDVerificationInputForm) Validate() error

type FaceIDVerificationResult

type FaceIDVerificationResult struct {
	Message Message `json:"message"`
	// Request ID.
	RequestID    string                  `json:"request_id"`
	VerifyResult OptFaceVerifyResultEnum `json:"verify_result"`
	// Kết quả xác thực dạng text.
	VerifyResultText OptString `json:"verify_result_text"`
	// Độ tương đồng của ảnh khuôn mặt từ thẻ và ảnh chân dung [0-1].
	Sim OptFloat64 `json:"sim"`
	// Vị trí của khuôn mặt detect được trong ảnh card id.
	FaceLocCard *FaceLocation `json:"face_loc_card"`
	// Góc nghiêng của khuôn mặt ở ảnh card id.
	FaceCardAngle OptInt `json:"face_card_angle"`
	// Vị trí của khuôn mặt detect được trong ảnh chụp chân dung.
	FaceLocLive *FaceLocation `json:"face_loc_live"`
	// Góc nghiêng của khuôn mặt ở ảnh chụp chân dung.
	FaceLiveAngle OptInt `json:"face_live_angle"`
	// Feature vector của khuôn mặt ở ảnh thẻ.
	FeatureVectorFaceCard *FaceFeature `json:"feature_vector_face_card"`
	// Feature vector của khuôn mặt ở ảnh chụp chân dung.
	FeatureVectorFaceLive *FaceFeature           `json:"feature_vector_face_live"`
	FaceAntiSpoofStatus   OptFaceAntiSpoofStatus `json:"face_anti_spoof_status"`
	// Thời gian thực hiện việc xác thực ở phía server (đơn vị mili giây - ms).
	VerificationTime OptFloat64        `json:"verification_time"`
	WearingMask      OptMaskResultEnum `json:"wearing_mask"`
	// Điểm score khi nhận dạng khẩu trang, điểm càng cao thì độ tin tưởng đeo
	// khẩu trang càng lớn score trong khoảng [0-1].
	WearingMaskScore OptFloat64 `json:"wearing_mask_score"`
}

Ref: #/components/schemas/FaceIDVerificationResult

func (*FaceIDVerificationResult) Decode

func (s *FaceIDVerificationResult) Decode(d *jx.Decoder) error

Decode decodes FaceIDVerificationResult from json.

func (FaceIDVerificationResult) Encode

func (s FaceIDVerificationResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceIDVerificationResult) GetFaceAntiSpoofStatus

func (s FaceIDVerificationResult) GetFaceAntiSpoofStatus() OptFaceAntiSpoofStatus

GetFaceAntiSpoofStatus returns the value of FaceAntiSpoofStatus.

func (FaceIDVerificationResult) GetFaceCardAngle

func (s FaceIDVerificationResult) GetFaceCardAngle() OptInt

GetFaceCardAngle returns the value of FaceCardAngle.

func (FaceIDVerificationResult) GetFaceLiveAngle

func (s FaceIDVerificationResult) GetFaceLiveAngle() OptInt

GetFaceLiveAngle returns the value of FaceLiveAngle.

func (FaceIDVerificationResult) GetFaceLocCard

func (s FaceIDVerificationResult) GetFaceLocCard() *FaceLocation

GetFaceLocCard returns the value of FaceLocCard.

func (FaceIDVerificationResult) GetFaceLocLive

func (s FaceIDVerificationResult) GetFaceLocLive() *FaceLocation

GetFaceLocLive returns the value of FaceLocLive.

func (FaceIDVerificationResult) GetFeatureVectorFaceCard

func (s FaceIDVerificationResult) GetFeatureVectorFaceCard() *FaceFeature

GetFeatureVectorFaceCard returns the value of FeatureVectorFaceCard.

func (FaceIDVerificationResult) GetFeatureVectorFaceLive

func (s FaceIDVerificationResult) GetFeatureVectorFaceLive() *FaceFeature

GetFeatureVectorFaceLive returns the value of FeatureVectorFaceLive.

func (FaceIDVerificationResult) GetMessage

func (s FaceIDVerificationResult) GetMessage() Message

GetMessage returns the value of Message.

func (FaceIDVerificationResult) GetRequestID

func (s FaceIDVerificationResult) GetRequestID() string

GetRequestID returns the value of RequestID.

func (FaceIDVerificationResult) GetSim

GetSim returns the value of Sim.

func (FaceIDVerificationResult) GetVerificationTime

func (s FaceIDVerificationResult) GetVerificationTime() OptFloat64

GetVerificationTime returns the value of VerificationTime.

func (FaceIDVerificationResult) GetVerifyResult

GetVerifyResult returns the value of VerifyResult.

func (FaceIDVerificationResult) GetVerifyResultText

func (s FaceIDVerificationResult) GetVerifyResultText() OptString

GetVerifyResultText returns the value of VerifyResultText.

func (FaceIDVerificationResult) GetWearingMask

func (s FaceIDVerificationResult) GetWearingMask() OptMaskResultEnum

GetWearingMask returns the value of WearingMask.

func (FaceIDVerificationResult) GetWearingMaskScore

func (s FaceIDVerificationResult) GetWearingMaskScore() OptFloat64

GetWearingMaskScore returns the value of WearingMaskScore.

func (FaceIDVerificationResult) MarshalJSON

func (s FaceIDVerificationResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceIDVerificationResult) SetFaceAntiSpoofStatus

func (s *FaceIDVerificationResult) SetFaceAntiSpoofStatus(val OptFaceAntiSpoofStatus)

SetFaceAntiSpoofStatus sets the value of FaceAntiSpoofStatus.

func (*FaceIDVerificationResult) SetFaceCardAngle

func (s *FaceIDVerificationResult) SetFaceCardAngle(val OptInt)

SetFaceCardAngle sets the value of FaceCardAngle.

func (*FaceIDVerificationResult) SetFaceLiveAngle

func (s *FaceIDVerificationResult) SetFaceLiveAngle(val OptInt)

SetFaceLiveAngle sets the value of FaceLiveAngle.

func (*FaceIDVerificationResult) SetFaceLocCard

func (s *FaceIDVerificationResult) SetFaceLocCard(val *FaceLocation)

SetFaceLocCard sets the value of FaceLocCard.

func (*FaceIDVerificationResult) SetFaceLocLive

func (s *FaceIDVerificationResult) SetFaceLocLive(val *FaceLocation)

SetFaceLocLive sets the value of FaceLocLive.

func (*FaceIDVerificationResult) SetFeatureVectorFaceCard

func (s *FaceIDVerificationResult) SetFeatureVectorFaceCard(val *FaceFeature)

SetFeatureVectorFaceCard sets the value of FeatureVectorFaceCard.

func (*FaceIDVerificationResult) SetFeatureVectorFaceLive

func (s *FaceIDVerificationResult) SetFeatureVectorFaceLive(val *FaceFeature)

SetFeatureVectorFaceLive sets the value of FeatureVectorFaceLive.

func (*FaceIDVerificationResult) SetMessage

func (s *FaceIDVerificationResult) SetMessage(val Message)

SetMessage sets the value of Message.

func (*FaceIDVerificationResult) SetRequestID

func (s *FaceIDVerificationResult) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (*FaceIDVerificationResult) SetSim

func (s *FaceIDVerificationResult) SetSim(val OptFloat64)

SetSim sets the value of Sim.

func (*FaceIDVerificationResult) SetVerificationTime

func (s *FaceIDVerificationResult) SetVerificationTime(val OptFloat64)

SetVerificationTime sets the value of VerificationTime.

func (*FaceIDVerificationResult) SetVerifyResult

func (s *FaceIDVerificationResult) SetVerifyResult(val OptFaceVerifyResultEnum)

SetVerifyResult sets the value of VerifyResult.

func (*FaceIDVerificationResult) SetVerifyResultText

func (s *FaceIDVerificationResult) SetVerifyResultText(val OptString)

SetVerifyResultText sets the value of VerifyResultText.

func (*FaceIDVerificationResult) SetWearingMask

func (s *FaceIDVerificationResult) SetWearingMask(val OptMaskResultEnum)

SetWearingMask sets the value of WearingMask.

func (*FaceIDVerificationResult) SetWearingMaskScore

func (s *FaceIDVerificationResult) SetWearingMaskScore(val OptFloat64)

SetWearingMaskScore sets the value of WearingMaskScore.

func (*FaceIDVerificationResult) UnmarshalJSON

func (s *FaceIDVerificationResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceIDVerificationResult) Validate

func (s FaceIDVerificationResult) Validate() error

type FaceLocation

type FaceLocation []int

func (*FaceLocation) Decode

func (s *FaceLocation) Decode(d *jx.Decoder) error

Decode decodes FaceLocation from json.

func (FaceLocation) Encode

func (s FaceLocation) Encode(e *jx.Encoder)

Encode encodes FaceLocation as json.

func (FaceLocation) MarshalJSON

func (s FaceLocation) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceLocation) UnmarshalJSON

func (s *FaceLocation) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceLocation) Validate

func (s FaceLocation) Validate() error

type FaceRecognitionReq

type FaceRecognitionReq interface {
	// contains filtered or unexported methods
}

type FaceRecognitionRes

type FaceRecognitionRes interface {
	// contains filtered or unexported methods
}

type FaceRecognitionResult

type FaceRecognitionResult struct {
	FaceLoc FaceLocation `json:"face_loc"`
	// Size of face in pixels.
	FaceSize int `json:"face_size"`
	// List of top-k faces with highest confidence.
	TopK []FaceIDResult `json:"top_k"`
}

Ref: #/components/schemas/FaceRecognitionResult

func (*FaceRecognitionResult) Decode

func (s *FaceRecognitionResult) Decode(d *jx.Decoder) error

Decode decodes FaceRecognitionResult from json.

func (FaceRecognitionResult) Encode

func (s FaceRecognitionResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceRecognitionResult) GetFaceLoc

func (s FaceRecognitionResult) GetFaceLoc() FaceLocation

GetFaceLoc returns the value of FaceLoc.

func (FaceRecognitionResult) GetFaceSize

func (s FaceRecognitionResult) GetFaceSize() int

GetFaceSize returns the value of FaceSize.

func (FaceRecognitionResult) GetTopK

func (s FaceRecognitionResult) GetTopK() []FaceIDResult

GetTopK returns the value of TopK.

func (FaceRecognitionResult) MarshalJSON

func (s FaceRecognitionResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceRecognitionResult) SetFaceLoc

func (s *FaceRecognitionResult) SetFaceLoc(val FaceLocation)

SetFaceLoc sets the value of FaceLoc.

func (*FaceRecognitionResult) SetFaceSize

func (s *FaceRecognitionResult) SetFaceSize(val int)

SetFaceSize sets the value of FaceSize.

func (*FaceRecognitionResult) SetTopK

func (s *FaceRecognitionResult) SetTopK(val []FaceIDResult)

SetTopK sets the value of TopK.

func (*FaceRecognitionResult) UnmarshalJSON

func (s *FaceRecognitionResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceRecognitionResult) Validate

func (s FaceRecognitionResult) Validate() error

type FaceRegisterReq

type FaceRegisterReq interface {
	// contains filtered or unexported methods
}

type FaceRegisterRes

type FaceRegisterRes interface {
	// contains filtered or unexported methods
}

type FaceUnregisterOK

type FaceUnregisterOK struct {
	Message Message `json:"message"`
}

func (*FaceUnregisterOK) Decode

func (s *FaceUnregisterOK) Decode(d *jx.Decoder) error

Decode decodes FaceUnregisterOK from json.

func (FaceUnregisterOK) Encode

func (s FaceUnregisterOK) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceUnregisterOK) GetMessage

func (s FaceUnregisterOK) GetMessage() Message

GetMessage returns the value of Message.

func (FaceUnregisterOK) MarshalJSON

func (s FaceUnregisterOK) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceUnregisterOK) SetMessage

func (s *FaceUnregisterOK) SetMessage(val Message)

SetMessage sets the value of Message.

func (*FaceUnregisterOK) UnmarshalJSON

func (s *FaceUnregisterOK) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FaceUnregisterReq

type FaceUnregisterReq struct {
	// Customer is unique name. Used in case many customers have the same real name.
	UniqueName string `json:"unique_name"`
	// Customer is Face ID, returned in the result when registering a Customer is photo of the face in
	// the system. If face_id is not provided, all customer photos with unique_name will be removed from
	// the system.
	FaceID OptString `json:"face_id"`
}

Merged schema.

func (*FaceUnregisterReq) Decode

func (s *FaceUnregisterReq) Decode(d *jx.Decoder) error

Decode decodes FaceUnregisterReq from json.

func (FaceUnregisterReq) Encode

func (s FaceUnregisterReq) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (FaceUnregisterReq) GetFaceID

func (s FaceUnregisterReq) GetFaceID() OptString

GetFaceID returns the value of FaceID.

func (FaceUnregisterReq) GetUniqueName

func (s FaceUnregisterReq) GetUniqueName() string

GetUniqueName returns the value of UniqueName.

func (FaceUnregisterReq) MarshalJSON

func (s FaceUnregisterReq) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceUnregisterReq) SetFaceID

func (s *FaceUnregisterReq) SetFaceID(val OptString)

SetFaceID sets the value of FaceID.

func (*FaceUnregisterReq) SetUniqueName

func (s *FaceUnregisterReq) SetUniqueName(val string)

SetUniqueName sets the value of UniqueName.

func (*FaceUnregisterReq) UnmarshalJSON

func (s *FaceUnregisterReq) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type FaceUnregisterRes

type FaceUnregisterRes interface {
	// contains filtered or unexported methods
}

type FaceVerificationReq

type FaceVerificationReq interface {
	// contains filtered or unexported methods
}

type FaceVerificationRes

type FaceVerificationRes interface {
	// contains filtered or unexported methods
}

type FaceVerifyResultEnum

type FaceVerifyResultEnum int

Kết quả xác thực dạng số: * `0` - not same * `1` - may be same * `2` - same person. Ref: #/components/schemas/FaceVerifyResultEnum

const (
	FaceVerifyResultEnum0 FaceVerifyResultEnum = 0
	FaceVerifyResultEnum1 FaceVerifyResultEnum = 1
	FaceVerifyResultEnum2 FaceVerifyResultEnum = 2
)

func (*FaceVerifyResultEnum) Decode

func (s *FaceVerifyResultEnum) Decode(d *jx.Decoder) error

Decode decodes FaceVerifyResultEnum from json.

func (FaceVerifyResultEnum) Encode

func (s FaceVerifyResultEnum) Encode(e *jx.Encoder)

Encode encodes FaceVerifyResultEnum as json.

func (FaceVerifyResultEnum) MarshalJSON

func (s FaceVerifyResultEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FaceVerifyResultEnum) UnmarshalJSON

func (s *FaceVerifyResultEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FaceVerifyResultEnum) Validate

func (s FaceVerifyResultEnum) Validate() error

type FakeTypeEnum

type FakeTypeEnum string

Trả về loại lỗi giả mạo * `N/A` - ảnh selfie là ảnh thật * `SCREEN` - ảnh chụp lại từ màn hình * `RANDOM_POSE` - ảnh giả mạo do kiểm tra với 3 ảnh chụp quay các hướng * `STRAIGHT_POSE` - ảnh giả mạo do kiểm tra 3 ảnh chụp thẳng liên tiếp. Ref: #/components/schemas/FakeTypeEnum

const (
	FakeTypeEnumNA           FakeTypeEnum = "N/A"
	FakeTypeEnumSCREEN       FakeTypeEnum = "SCREEN"
	FakeTypeEnumRANDOMPOSE   FakeTypeEnum = "RANDOM_POSE"
	FakeTypeEnumSTRAIGHTPOSE FakeTypeEnum = "STRAIGHT_POSE"
)

func (*FakeTypeEnum) Decode

func (s *FakeTypeEnum) Decode(d *jx.Decoder) error

Decode decodes FakeTypeEnum from json.

func (FakeTypeEnum) Encode

func (s FakeTypeEnum) Encode(e *jx.Encoder)

Encode encodes FakeTypeEnum as json.

func (FakeTypeEnum) MarshalJSON

func (s FakeTypeEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*FakeTypeEnum) UnmarshalJSON

func (s *FakeTypeEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (FakeTypeEnum) Validate

func (s FakeTypeEnum) Validate() error

type GatewayError

type GatewayError struct {
	// Thông điệp lỗi.
	Message string `json:"message"`
}

Thông báo lỗi trả về từ Gateway. Ref: #/components/schemas/GatewayError

func (*GatewayError) Decode

func (s *GatewayError) Decode(d *jx.Decoder) error

Decode decodes GatewayError from json.

func (GatewayError) Encode

func (s GatewayError) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (GatewayError) GetMessage

func (s GatewayError) GetMessage() string

GetMessage returns the value of Message.

func (GatewayError) MarshalJSON

func (s GatewayError) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*GatewayError) SetMessage

func (s *GatewayError) SetMessage(val string)

SetMessage sets the value of Message.

func (*GatewayError) UnmarshalJSON

func (s *GatewayError) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type IDCheckEnum

type IDCheckEnum string

Kết quả kiểm tra văn bản: * `FAKE` - giả mạo * `CONER` * `REAL` - giấy tờ thực * `PUNCH` - Đục lỗ * `BW` - photocopy đen trắng * `REAL` - giấy tờ OK. Ref: #/components/schemas/IDCheckEnum

const (
	IDCheckEnumBW    IDCheckEnum = "BW"
	IDCheckEnumCONER IDCheckEnum = "CONER"
	IDCheckEnumFAKE  IDCheckEnum = "FAKE"
	IDCheckEnumPUNCH IDCheckEnum = "PUNCH"
	IDCheckEnumREAL  IDCheckEnum = "REAL"
)

func (*IDCheckEnum) Decode

func (s *IDCheckEnum) Decode(d *jx.Decoder) error

Decode decodes IDCheckEnum from json.

func (IDCheckEnum) Encode

func (s IDCheckEnum) Encode(e *jx.Encoder)

Encode encodes IDCheckEnum as json.

func (IDCheckEnum) MarshalJSON

func (s IDCheckEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IDCheckEnum) UnmarshalJSON

func (s *IDCheckEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (IDCheckEnum) Validate

func (s IDCheckEnum) Validate() error

type IDTypeEnum

type IDTypeEnum string

Phân biệt mặt trước/mặt sau: * `0` - mặt trước * `1` - mặt sau. Ref: #/components/schemas/IDTypeEnum

const (
	IDTypeEnum0 IDTypeEnum = "0"
	IDTypeEnum1 IDTypeEnum = "1"
)

func (*IDTypeEnum) Decode

func (s *IDTypeEnum) Decode(d *jx.Decoder) error

Decode decodes IDTypeEnum from json.

func (IDTypeEnum) Encode

func (s IDTypeEnum) Encode(e *jx.Encoder)

Encode encodes IDTypeEnum as json.

func (IDTypeEnum) MarshalJSON

func (s IDTypeEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*IDTypeEnum) UnmarshalJSON

func (s *IDTypeEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (IDTypeEnum) Validate

func (s IDTypeEnum) Validate() error

type MaskResultEnum

type MaskResultEnum string

Ref: #/components/schemas/MaskResultEnum

const (
	MaskResultEnumYES MaskResultEnum = "YES"
	MaskResultEnumNO  MaskResultEnum = "NO"
)

func (*MaskResultEnum) Decode

func (s *MaskResultEnum) Decode(d *jx.Decoder) error

Decode decodes MaskResultEnum from json.

func (MaskResultEnum) Encode

func (s MaskResultEnum) Encode(e *jx.Encoder)

Encode encodes MaskResultEnum as json.

func (MaskResultEnum) MarshalJSON

func (s MaskResultEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*MaskResultEnum) UnmarshalJSON

func (s *MaskResultEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (MaskResultEnum) Validate

func (s MaskResultEnum) Validate() error

type Message

type Message struct {
	// Mã lỗi.
	ErrorCode string `json:"error_code"`
	// Mô tả lỗi.
	ErrorMessage string `json:"error_message"`
	// API version.
	APIVersion OptString `json:"api_version"`
	// Copyright.
	CopyRight OptString `json:"copy_right"`
	// Information.
	Info OptString `json:"info"`
}

Thông tin thêm về kết quả trả về. Ví dụ: ```{"error_message": "000", "error_code": "OK"}```. Ref: #/components/schemas/Message

func (*Message) Decode

func (s *Message) Decode(d *jx.Decoder) error

Decode decodes Message from json.

func (Message) Encode

func (s Message) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (Message) GetAPIVersion

func (s Message) GetAPIVersion() OptString

GetAPIVersion returns the value of APIVersion.

func (Message) GetCopyRight

func (s Message) GetCopyRight() OptString

GetCopyRight returns the value of CopyRight.

func (Message) GetErrorCode

func (s Message) GetErrorCode() string

GetErrorCode returns the value of ErrorCode.

func (Message) GetErrorMessage

func (s Message) GetErrorMessage() string

GetErrorMessage returns the value of ErrorMessage.

func (Message) GetInfo

func (s Message) GetInfo() OptString

GetInfo returns the value of Info.

func (Message) MarshalJSON

func (s Message) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*Message) SetAPIVersion

func (s *Message) SetAPIVersion(val OptString)

SetAPIVersion sets the value of APIVersion.

func (*Message) SetCopyRight

func (s *Message) SetCopyRight(val OptString)

SetCopyRight sets the value of CopyRight.

func (*Message) SetErrorCode

func (s *Message) SetErrorCode(val string)

SetErrorCode sets the value of ErrorCode.

func (*Message) SetErrorMessage

func (s *Message) SetErrorMessage(val string)

SetErrorMessage sets the value of ErrorMessage.

func (*Message) SetInfo

func (s *Message) SetInfo(val OptString)

SetInfo sets the value of Info.

func (*Message) UnmarshalJSON

func (s *Message) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OCRInput

type OCRInput struct {
	RequestID string `json:"request_id"`
	Image     string `json:"image"`
	// Giá trị ngưỡng để kiểm tra id_full về mặt đầy đủ thông tin công dân, CMND..
	// ) yêu cầu request_id của mặt trước và hay không.
	IDFullThr OptFloat32 `json:"id_full_thr"`
}

Ref: #/components/schemas/OCRInput

func (OCRInput) GetIDFullThr

func (s OCRInput) GetIDFullThr() OptFloat32

GetIDFullThr returns the value of IDFullThr.

func (OCRInput) GetImage

func (s OCRInput) GetImage() string

GetImage returns the value of Image.

func (OCRInput) GetRequestID

func (s OCRInput) GetRequestID() string

GetRequestID returns the value of RequestID.

func (*OCRInput) SetIDFullThr

func (s *OCRInput) SetIDFullThr(val OptFloat32)

SetIDFullThr sets the value of IDFullThr.

func (*OCRInput) SetImage

func (s *OCRInput) SetImage(val string)

SetImage sets the value of Image.

func (*OCRInput) SetRequestID

func (s *OCRInput) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (OCRInput) Validate

func (s OCRInput) Validate() error

type OCRInputForm

type OCRInputForm struct {
	RequestID string           `json:"request_id"`
	Image     ht.MultipartFile `json:"image"`
	// Giá trị ngưỡng để kiểm tra id_full về mặt đầy đủ thông tin công dân, CMND..
	// ) yêu cầu request_id của mặt trước và hay không.
	IDFullThr OptFloat32 `json:"id_full_thr"`
}

Ref: #/components/schemas/OCRInput

func (OCRInputForm) GetIDFullThr

func (s OCRInputForm) GetIDFullThr() OptFloat32

GetIDFullThr returns the value of IDFullThr.

func (OCRInputForm) GetImage

func (s OCRInputForm) GetImage() ht.MultipartFile

GetImage returns the value of Image.

func (OCRInputForm) GetRequestID

func (s OCRInputForm) GetRequestID() string

GetRequestID returns the value of RequestID.

func (*OCRInputForm) SetIDFullThr

func (s *OCRInputForm) SetIDFullThr(val OptFloat32)

SetIDFullThr sets the value of IDFullThr.

func (*OCRInputForm) SetImage

func (s *OCRInputForm) SetImage(val ht.MultipartFile)

SetImage sets the value of Image.

func (*OCRInputForm) SetRequestID

func (s *OCRInputForm) SetRequestID(val string)

SetRequestID sets the value of RequestID.

func (OCRInputForm) Validate

func (s OCRInputForm) Validate() error

type OCRResult

type OCRResult struct {
	Document OptDocumentEnum `json:"document"`
	// Mã kết quả.
	ResultCode OptOCRResultResultCode `json:"result_code"`
	// Container id.
	ServerName OptString `json:"server_name"`
	// Server version.
	ServerVer OptString      `json:"server_ver"`
	IDCheck   OptIDCheckEnum `json:"id_check"`
	// Check xem giấy tờ có full về mặt THÔNG TIN hay không
	// * `1` - Full
	// * `0` - Không full; bị chụp thiếu
	// Note: trường hợp số ID bị che (dẫn tới score < id_full_thr (mặc định 0.8) -->
	// not full) Giấy tờ có thể không đầy đủ về mặt hình ảnh(ví dụ không có
	// hình ảnh khuôn mặt), nhưng nếu vẫn đầy đủ thông tin -- > id_full =1.
	IDFull OptInt `json:"id_full"`
	// ID logic:
	// * `0` - check not OK
	// * `1` - check OK.
	IDLogic OptString `json:"id_logic"`
	// Nội dung kiểm tra logic:
	// * `OK` - logic trên giấy tờ đúng theo quy định
	// * `ID is expired` - giấy tờ đã hết hạn
	// * `Not match province code` - sai mã tỉnh
	// * `Not match sex code` - Giới tính trên giấy tờ và trong số ID không trùng khớp
	// * `Not match year code` - Năm sinh trên giấy tờ và trong số ID không trùng khớp
	// * `Expiry subtract birthday not good` - Ngày tháng năm sinh và ngày tháng hết hạn không
	// hợp lệ (đối với CCCD; ngày hết hạn là khi công dân đủ 25, 40, 60 tuổi hoặc
	// không có thời hạn)
	// * `ID can be fake` - trường hợp có thể đang bị giả mạo về chữ "CĂN CƯỚC
	// CÔNG DÂN/CHỨNG MINH NHÂN DÂN" đối với giấy tờ thẻ cứng.
	IDLogicMessage OptString     `json:"id_logic_message"`
	IDType         OptIDTypeEnum `json:"id_type"`
	ID             OptString     `json:"id"`
	// Độ tin tưởng của trường ID (là chuỗi string của 1 mảng các giá trị float
	// từ 0-1)
	// *Chú ý*: độ tin tưởng của ký tự bất kì < 0.8 --> cảnh báo đầu vào kém.
	Idconf OptString `json:"idconf"`
	// Tên khách hàng trên giấy tờ.
	Name OptString `json:"name"`
	// Độ tin tưởng trường họ tên (là chuỗi string của 1 mảng các giá trị float
	// từ 0-1).
	Nameconf OptString `json:"nameconf"`
	// Ngày sinh.
	Birthday OptString `json:"birthday"`
	// Độ tin tưởng trường ngày tháng năm sinh (là chuỗi string của 1 mảng các giá
	// trị float từ 0-1).
	Birthdayconf OptString `json:"birthdayconf"`
	// Giới tính.
	Sex OptString `json:"sex"`
	// Độ tin tưởng trường giới tính (là chuỗi string của 1 mảng các giá trị float
	// từ 0-1).
	Sexconf OptString `json:"sexconf"`
	// Nguyên quán.
	Hometown OptString `json:"hometown"`
	// Độ tin tưởng trường nguyên quán (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	Hometownconf OptString `json:"hometownconf"`
	// Địa chỉ thường trú.
	Address OptString `json:"address"`
	// Độ tin tưởng trường địa chỉ thường trú (là chuỗi string của 1 mảng các
	// giá trị float từ 0-1).
	Addressconf OptString `json:"addressconf"`
	// Thời hạn giấy tờ (Với BLX có trường hợp không thời hạn). Chú ý: trường
	// ngày hết hạn có dạng dd-mm-yyyy hoặc Không thời hạn --> nếu không phù hợp
	// với các dạng này(bị che, tẩy xóa) --> giá trị nhận dạng là N/A.
	Expiry OptString `json:"expiry"`
	// Độ tin tưởng của trường hết hạn (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	Expiryconf OptString `json:"expiryconf"`
	// Tôn giáo.
	Religion OptString `json:"religion"`
	// Độ tin tưởng của trường tôn giáo (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	Religionconf OptString `json:"religionconf"`
	// Ngày cấp *Chú ý*: trường ngày cấp có dạng dd-mm-yyyy --> nếu không phù hợp
	// với các dạng này(bị che, tẩy xóa) --> giá trị nhận dạng là N/A.
	IssueDate OptString `json:"issue_date"`
	// Độ tin tưởng của trường ngày cấp (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	IssueDateConf OptString `json:"issue_date_conf"`
	// Nơi cấp.
	IssueBy OptString `json:"issue_by"`
	// Độ tin tưởng của trường nơi cấp (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	IssueByConf OptString `json:"issue_by_conf"`
	// Dân tộc.
	Ethnicity OptString `json:"ethnicity"`
	// Độ tin tưởng của trường dân tộc (là chuỗi string của 1 mảng các giá trị
	// float từ 0-1).
	Ethnicityconf OptString `json:"ethnicityconf"`
	// Đặt điểm.
	Characteristics OptString `json:"characteristics"`
	// Độ tin tưởng của trường đặt điểm (là chuỗi string của 1 mảng các giá
	// trị float từ 0-1).
	CharacteristicsConf OptString `json:"characteristics_conf"`
	// Đường phố.
	Street OptString `json:"street"`
	// Tên đường.
	StreetName OptString `json:"street_name"`
	// Quốc gia.
	Country OptString `json:"country"`
	// Quốc gia.
	National OptString `json:"national"`
	// Loại BLX.
	Class OptString `json:"class"`
	// Chỉ có ý nghĩa với passport. Số CMT của Vietnam.
	OptinalData OptString `json:"optinal_data"`
	// Loại Passport (công vụ/thường - PK/P).
	PassportType OptString `json:"passport_type"`
	// Tỉnh/TP.
	Province OptString `json:"province"`
	// Quận/Huyện.
	District     OptString `json:"district"`
	Precinct     OptString `json:"precinct"`
	OptionalData OptString `json:"optional_data"`
	Copyright    OptString `json:"copyright"`
}

Ref: #/components/schemas/OCRResult

func (*OCRResult) Decode

func (s *OCRResult) Decode(d *jx.Decoder) error

Decode decodes OCRResult from json.

func (OCRResult) Encode

func (s OCRResult) Encode(e *jx.Encoder)

Encode implements json.Marshaler.

func (OCRResult) GetAddress

func (s OCRResult) GetAddress() OptString

GetAddress returns the value of Address.

func (OCRResult) GetAddressconf

func (s OCRResult) GetAddressconf() OptString

GetAddressconf returns the value of Addressconf.

func (OCRResult) GetBirthday

func (s OCRResult) GetBirthday() OptString

GetBirthday returns the value of Birthday.

func (OCRResult) GetBirthdayconf

func (s OCRResult) GetBirthdayconf() OptString

GetBirthdayconf returns the value of Birthdayconf.

func (OCRResult) GetCharacteristics

func (s OCRResult) GetCharacteristics() OptString

GetCharacteristics returns the value of Characteristics.

func (OCRResult) GetCharacteristicsConf

func (s OCRResult) GetCharacteristicsConf() OptString

GetCharacteristicsConf returns the value of CharacteristicsConf.

func (OCRResult) GetClass

func (s OCRResult) GetClass() OptString

GetClass returns the value of Class.

func (OCRResult) GetCopyright

func (s OCRResult) GetCopyright() OptString

GetCopyright returns the value of Copyright.

func (OCRResult) GetCountry

func (s OCRResult) GetCountry() OptString

GetCountry returns the value of Country.

func (OCRResult) GetDistrict

func (s OCRResult) GetDistrict() OptString

GetDistrict returns the value of District.

func (OCRResult) GetDocument

func (s OCRResult) GetDocument() OptDocumentEnum

GetDocument returns the value of Document.

func (OCRResult) GetEthnicity

func (s OCRResult) GetEthnicity() OptString

GetEthnicity returns the value of Ethnicity.

func (OCRResult) GetEthnicityconf

func (s OCRResult) GetEthnicityconf() OptString

GetEthnicityconf returns the value of Ethnicityconf.

func (OCRResult) GetExpiry

func (s OCRResult) GetExpiry() OptString

GetExpiry returns the value of Expiry.

func (OCRResult) GetExpiryconf

func (s OCRResult) GetExpiryconf() OptString

GetExpiryconf returns the value of Expiryconf.

func (OCRResult) GetHometown

func (s OCRResult) GetHometown() OptString

GetHometown returns the value of Hometown.

func (OCRResult) GetHometownconf

func (s OCRResult) GetHometownconf() OptString

GetHometownconf returns the value of Hometownconf.

func (OCRResult) GetID

func (s OCRResult) GetID() OptString

GetID returns the value of ID.

func (OCRResult) GetIDCheck

func (s OCRResult) GetIDCheck() OptIDCheckEnum

GetIDCheck returns the value of IDCheck.

func (OCRResult) GetIDFull

func (s OCRResult) GetIDFull() OptInt

GetIDFull returns the value of IDFull.

func (OCRResult) GetIDLogic

func (s OCRResult) GetIDLogic() OptString

GetIDLogic returns the value of IDLogic.

func (OCRResult) GetIDLogicMessage

func (s OCRResult) GetIDLogicMessage() OptString

GetIDLogicMessage returns the value of IDLogicMessage.

func (OCRResult) GetIDType

func (s OCRResult) GetIDType() OptIDTypeEnum

GetIDType returns the value of IDType.

func (OCRResult) GetIdconf

func (s OCRResult) GetIdconf() OptString

GetIdconf returns the value of Idconf.

func (OCRResult) GetIssueBy

func (s OCRResult) GetIssueBy() OptString

GetIssueBy returns the value of IssueBy.

func (OCRResult) GetIssueByConf

func (s OCRResult) GetIssueByConf() OptString

GetIssueByConf returns the value of IssueByConf.

func (OCRResult) GetIssueDate

func (s OCRResult) GetIssueDate() OptString

GetIssueDate returns the value of IssueDate.

func (OCRResult) GetIssueDateConf

func (s OCRResult) GetIssueDateConf() OptString

GetIssueDateConf returns the value of IssueDateConf.

func (OCRResult) GetName

func (s OCRResult) GetName() OptString

GetName returns the value of Name.

func (OCRResult) GetNameconf

func (s OCRResult) GetNameconf() OptString

GetNameconf returns the value of Nameconf.

func (OCRResult) GetNational

func (s OCRResult) GetNational() OptString

GetNational returns the value of National.

func (OCRResult) GetOptinalData

func (s OCRResult) GetOptinalData() OptString

GetOptinalData returns the value of OptinalData.

func (OCRResult) GetOptionalData

func (s OCRResult) GetOptionalData() OptString

GetOptionalData returns the value of OptionalData.

func (OCRResult) GetPassportType

func (s OCRResult) GetPassportType() OptString

GetPassportType returns the value of PassportType.

func (OCRResult) GetPrecinct

func (s OCRResult) GetPrecinct() OptString

GetPrecinct returns the value of Precinct.

func (OCRResult) GetProvince

func (s OCRResult) GetProvince() OptString

GetProvince returns the value of Province.

func (OCRResult) GetReligion

func (s OCRResult) GetReligion() OptString

GetReligion returns the value of Religion.

func (OCRResult) GetReligionconf

func (s OCRResult) GetReligionconf() OptString

GetReligionconf returns the value of Religionconf.

func (OCRResult) GetResultCode

func (s OCRResult) GetResultCode() OptOCRResultResultCode

GetResultCode returns the value of ResultCode.

func (OCRResult) GetServerName

func (s OCRResult) GetServerName() OptString

GetServerName returns the value of ServerName.

func (OCRResult) GetServerVer

func (s OCRResult) GetServerVer() OptString

GetServerVer returns the value of ServerVer.

func (OCRResult) GetSex

func (s OCRResult) GetSex() OptString

GetSex returns the value of Sex.

func (OCRResult) GetSexconf

func (s OCRResult) GetSexconf() OptString

GetSexconf returns the value of Sexconf.

func (OCRResult) GetStreet

func (s OCRResult) GetStreet() OptString

GetStreet returns the value of Street.

func (OCRResult) GetStreetName

func (s OCRResult) GetStreetName() OptString

GetStreetName returns the value of StreetName.

func (OCRResult) MarshalJSON

func (s OCRResult) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OCRResult) SetAddress

func (s *OCRResult) SetAddress(val OptString)

SetAddress sets the value of Address.

func (*OCRResult) SetAddressconf

func (s *OCRResult) SetAddressconf(val OptString)

SetAddressconf sets the value of Addressconf.

func (*OCRResult) SetBirthday

func (s *OCRResult) SetBirthday(val OptString)

SetBirthday sets the value of Birthday.

func (*OCRResult) SetBirthdayconf

func (s *OCRResult) SetBirthdayconf(val OptString)

SetBirthdayconf sets the value of Birthdayconf.

func (*OCRResult) SetCharacteristics

func (s *OCRResult) SetCharacteristics(val OptString)

SetCharacteristics sets the value of Characteristics.

func (*OCRResult) SetCharacteristicsConf

func (s *OCRResult) SetCharacteristicsConf(val OptString)

SetCharacteristicsConf sets the value of CharacteristicsConf.

func (*OCRResult) SetClass

func (s *OCRResult) SetClass(val OptString)

SetClass sets the value of Class.

func (*OCRResult) SetCopyright

func (s *OCRResult) SetCopyright(val OptString)

SetCopyright sets the value of Copyright.

func (*OCRResult) SetCountry

func (s *OCRResult) SetCountry(val OptString)

SetCountry sets the value of Country.

func (*OCRResult) SetDistrict

func (s *OCRResult) SetDistrict(val OptString)

SetDistrict sets the value of District.

func (*OCRResult) SetDocument

func (s *OCRResult) SetDocument(val OptDocumentEnum)

SetDocument sets the value of Document.

func (*OCRResult) SetEthnicity

func (s *OCRResult) SetEthnicity(val OptString)

SetEthnicity sets the value of Ethnicity.

func (*OCRResult) SetEthnicityconf

func (s *OCRResult) SetEthnicityconf(val OptString)

SetEthnicityconf sets the value of Ethnicityconf.

func (*OCRResult) SetExpiry

func (s *OCRResult) SetExpiry(val OptString)

SetExpiry sets the value of Expiry.

func (*OCRResult) SetExpiryconf

func (s *OCRResult) SetExpiryconf(val OptString)

SetExpiryconf sets the value of Expiryconf.

func (*OCRResult) SetHometown

func (s *OCRResult) SetHometown(val OptString)

SetHometown sets the value of Hometown.

func (*OCRResult) SetHometownconf

func (s *OCRResult) SetHometownconf(val OptString)

SetHometownconf sets the value of Hometownconf.

func (*OCRResult) SetID

func (s *OCRResult) SetID(val OptString)

SetID sets the value of ID.

func (*OCRResult) SetIDCheck

func (s *OCRResult) SetIDCheck(val OptIDCheckEnum)

SetIDCheck sets the value of IDCheck.

func (*OCRResult) SetIDFull

func (s *OCRResult) SetIDFull(val OptInt)

SetIDFull sets the value of IDFull.

func (*OCRResult) SetIDLogic

func (s *OCRResult) SetIDLogic(val OptString)

SetIDLogic sets the value of IDLogic.

func (*OCRResult) SetIDLogicMessage

func (s *OCRResult) SetIDLogicMessage(val OptString)

SetIDLogicMessage sets the value of IDLogicMessage.

func (*OCRResult) SetIDType

func (s *OCRResult) SetIDType(val OptIDTypeEnum)

SetIDType sets the value of IDType.

func (*OCRResult) SetIdconf

func (s *OCRResult) SetIdconf(val OptString)

SetIdconf sets the value of Idconf.

func (*OCRResult) SetIssueBy

func (s *OCRResult) SetIssueBy(val OptString)

SetIssueBy sets the value of IssueBy.

func (*OCRResult) SetIssueByConf

func (s *OCRResult) SetIssueByConf(val OptString)

SetIssueByConf sets the value of IssueByConf.

func (*OCRResult) SetIssueDate

func (s *OCRResult) SetIssueDate(val OptString)

SetIssueDate sets the value of IssueDate.

func (*OCRResult) SetIssueDateConf

func (s *OCRResult) SetIssueDateConf(val OptString)

SetIssueDateConf sets the value of IssueDateConf.

func (*OCRResult) SetName

func (s *OCRResult) SetName(val OptString)

SetName sets the value of Name.

func (*OCRResult) SetNameconf

func (s *OCRResult) SetNameconf(val OptString)

SetNameconf sets the value of Nameconf.

func (*OCRResult) SetNational

func (s *OCRResult) SetNational(val OptString)

SetNational sets the value of National.

func (*OCRResult) SetOptinalData

func (s *OCRResult) SetOptinalData(val OptString)

SetOptinalData sets the value of OptinalData.

func (*OCRResult) SetOptionalData

func (s *OCRResult) SetOptionalData(val OptString)

SetOptionalData sets the value of OptionalData.

func (*OCRResult) SetPassportType

func (s *OCRResult) SetPassportType(val OptString)

SetPassportType sets the value of PassportType.

func (*OCRResult) SetPrecinct

func (s *OCRResult) SetPrecinct(val OptString)

SetPrecinct sets the value of Precinct.

func (*OCRResult) SetProvince

func (s *OCRResult) SetProvince(val OptString)

SetProvince sets the value of Province.

func (*OCRResult) SetReligion

func (s *OCRResult) SetReligion(val OptString)

SetReligion sets the value of Religion.

func (*OCRResult) SetReligionconf

func (s *OCRResult) SetReligionconf(val OptString)

SetReligionconf sets the value of Religionconf.

func (*OCRResult) SetResultCode

func (s *OCRResult) SetResultCode(val OptOCRResultResultCode)

SetResultCode sets the value of ResultCode.

func (*OCRResult) SetServerName

func (s *OCRResult) SetServerName(val OptString)

SetServerName sets the value of ServerName.

func (*OCRResult) SetServerVer

func (s *OCRResult) SetServerVer(val OptString)

SetServerVer sets the value of ServerVer.

func (*OCRResult) SetSex

func (s *OCRResult) SetSex(val OptString)

SetSex sets the value of Sex.

func (*OCRResult) SetSexconf

func (s *OCRResult) SetSexconf(val OptString)

SetSexconf sets the value of Sexconf.

func (*OCRResult) SetStreet

func (s *OCRResult) SetStreet(val OptString)

SetStreet sets the value of Street.

func (*OCRResult) SetStreetName

func (s *OCRResult) SetStreetName(val OptString)

SetStreetName sets the value of StreetName.

func (*OCRResult) UnmarshalJSON

func (s *OCRResult) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OCRResult) Validate

func (s OCRResult) Validate() error

type OCRResultResultCode

type OCRResultResultCode int

Mã kết quả.

const (
	OCRResultResultCode200 OCRResultResultCode = 200
	OCRResultResultCode500 OCRResultResultCode = 500
	OCRResultResultCode501 OCRResultResultCode = 501
	OCRResultResultCode401 OCRResultResultCode = 401
	OCRResultResultCode402 OCRResultResultCode = 402
	OCRResultResultCode201 OCRResultResultCode = 201
)

func (*OCRResultResultCode) Decode

func (s *OCRResultResultCode) Decode(d *jx.Decoder) error

Decode decodes OCRResultResultCode from json.

func (OCRResultResultCode) Encode

func (s OCRResultResultCode) Encode(e *jx.Encoder)

Encode encodes OCRResultResultCode as json.

func (OCRResultResultCode) MarshalJSON

func (s OCRResultResultCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*OCRResultResultCode) UnmarshalJSON

func (s *OCRResultResultCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (OCRResultResultCode) Validate

func (s OCRResultResultCode) Validate() error

type OCRecognitionRes

type OCRecognitionRes interface {
	// contains filtered or unexported methods
}

type OptDocumentEnum

type OptDocumentEnum struct {
	Value DocumentEnum
	Set   bool
}

OptDocumentEnum is optional DocumentEnum.

func NewOptDocumentEnum

func NewOptDocumentEnum(v DocumentEnum) OptDocumentEnum

NewOptDocumentEnum returns new OptDocumentEnum with value set to v.

func (*OptDocumentEnum) Decode

func (o *OptDocumentEnum) Decode(d *jx.Decoder) error

Decode decodes DocumentEnum from json.

func (OptDocumentEnum) Encode

func (o OptDocumentEnum) Encode(e *jx.Encoder)

Encode encodes DocumentEnum as json.

func (OptDocumentEnum) Get

func (o OptDocumentEnum) Get() (v DocumentEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptDocumentEnum) IsSet

func (o OptDocumentEnum) IsSet() bool

IsSet returns true if OptDocumentEnum was set.

func (OptDocumentEnum) MarshalJSON

func (s OptDocumentEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptDocumentEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptDocumentEnum) Reset

func (o *OptDocumentEnum) Reset()

Reset unsets value.

func (*OptDocumentEnum) SetTo

func (o *OptDocumentEnum) SetTo(v DocumentEnum)

SetTo sets value to v.

func (*OptDocumentEnum) UnmarshalJSON

func (s *OptDocumentEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFaceAntiSpoofStatus

type OptFaceAntiSpoofStatus struct {
	Value FaceAntiSpoofStatus
	Set   bool
}

OptFaceAntiSpoofStatus is optional FaceAntiSpoofStatus.

func NewOptFaceAntiSpoofStatus

func NewOptFaceAntiSpoofStatus(v FaceAntiSpoofStatus) OptFaceAntiSpoofStatus

NewOptFaceAntiSpoofStatus returns new OptFaceAntiSpoofStatus with value set to v.

func (*OptFaceAntiSpoofStatus) Decode

func (o *OptFaceAntiSpoofStatus) Decode(d *jx.Decoder) error

Decode decodes FaceAntiSpoofStatus from json.

func (OptFaceAntiSpoofStatus) Encode

func (o OptFaceAntiSpoofStatus) Encode(e *jx.Encoder)

Encode encodes FaceAntiSpoofStatus as json.

func (OptFaceAntiSpoofStatus) Get

Get returns value and boolean that denotes whether value was set.

func (OptFaceAntiSpoofStatus) IsSet

func (o OptFaceAntiSpoofStatus) IsSet() bool

IsSet returns true if OptFaceAntiSpoofStatus was set.

func (OptFaceAntiSpoofStatus) MarshalJSON

func (s OptFaceAntiSpoofStatus) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFaceAntiSpoofStatus) Or

Or returns value if set, or given parameter if does not.

func (*OptFaceAntiSpoofStatus) Reset

func (o *OptFaceAntiSpoofStatus) Reset()

Reset unsets value.

func (*OptFaceAntiSpoofStatus) SetTo

SetTo sets value to v.

func (*OptFaceAntiSpoofStatus) UnmarshalJSON

func (s *OptFaceAntiSpoofStatus) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFaceVerifyResultEnum

type OptFaceVerifyResultEnum struct {
	Value FaceVerifyResultEnum
	Set   bool
}

OptFaceVerifyResultEnum is optional FaceVerifyResultEnum.

func NewOptFaceVerifyResultEnum

func NewOptFaceVerifyResultEnum(v FaceVerifyResultEnum) OptFaceVerifyResultEnum

NewOptFaceVerifyResultEnum returns new OptFaceVerifyResultEnum with value set to v.

func (*OptFaceVerifyResultEnum) Decode

func (o *OptFaceVerifyResultEnum) Decode(d *jx.Decoder) error

Decode decodes FaceVerifyResultEnum from json.

func (OptFaceVerifyResultEnum) Encode

func (o OptFaceVerifyResultEnum) Encode(e *jx.Encoder)

Encode encodes FaceVerifyResultEnum as json.

func (OptFaceVerifyResultEnum) Get

Get returns value and boolean that denotes whether value was set.

func (OptFaceVerifyResultEnum) IsSet

func (o OptFaceVerifyResultEnum) IsSet() bool

IsSet returns true if OptFaceVerifyResultEnum was set.

func (OptFaceVerifyResultEnum) MarshalJSON

func (s OptFaceVerifyResultEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFaceVerifyResultEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptFaceVerifyResultEnum) Reset

func (o *OptFaceVerifyResultEnum) Reset()

Reset unsets value.

func (*OptFaceVerifyResultEnum) SetTo

SetTo sets value to v.

func (*OptFaceVerifyResultEnum) UnmarshalJSON

func (s *OptFaceVerifyResultEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFakeTypeEnum

type OptFakeTypeEnum struct {
	Value FakeTypeEnum
	Set   bool
}

OptFakeTypeEnum is optional FakeTypeEnum.

func NewOptFakeTypeEnum

func NewOptFakeTypeEnum(v FakeTypeEnum) OptFakeTypeEnum

NewOptFakeTypeEnum returns new OptFakeTypeEnum with value set to v.

func (*OptFakeTypeEnum) Decode

func (o *OptFakeTypeEnum) Decode(d *jx.Decoder) error

Decode decodes FakeTypeEnum from json.

func (OptFakeTypeEnum) Encode

func (o OptFakeTypeEnum) Encode(e *jx.Encoder)

Encode encodes FakeTypeEnum as json.

func (OptFakeTypeEnum) Get

func (o OptFakeTypeEnum) Get() (v FakeTypeEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFakeTypeEnum) IsSet

func (o OptFakeTypeEnum) IsSet() bool

IsSet returns true if OptFakeTypeEnum was set.

func (OptFakeTypeEnum) MarshalJSON

func (s OptFakeTypeEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFakeTypeEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptFakeTypeEnum) Reset

func (o *OptFakeTypeEnum) Reset()

Reset unsets value.

func (*OptFakeTypeEnum) SetTo

func (o *OptFakeTypeEnum) SetTo(v FakeTypeEnum)

SetTo sets value to v.

func (*OptFakeTypeEnum) UnmarshalJSON

func (s *OptFakeTypeEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptFloat32

type OptFloat32 struct {
	Value float32
	Set   bool
}

OptFloat32 is optional float32.

func NewOptFloat32

func NewOptFloat32(v float32) OptFloat32

NewOptFloat32 returns new OptFloat32 with value set to v.

func (OptFloat32) Get

func (o OptFloat32) Get() (v float32, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat32) IsSet

func (o OptFloat32) IsSet() bool

IsSet returns true if OptFloat32 was set.

func (OptFloat32) Or

func (o OptFloat32) Or(d float32) float32

Or returns value if set, or given parameter if does not.

func (*OptFloat32) Reset

func (o *OptFloat32) Reset()

Reset unsets value.

func (*OptFloat32) SetTo

func (o *OptFloat32) SetTo(v float32)

SetTo sets value to v.

type OptFloat64

type OptFloat64 struct {
	Value float64
	Set   bool
}

OptFloat64 is optional float64.

func NewOptFloat64

func NewOptFloat64(v float64) OptFloat64

NewOptFloat64 returns new OptFloat64 with value set to v.

func (*OptFloat64) Decode

func (o *OptFloat64) Decode(d *jx.Decoder) error

Decode decodes float64 from json.

func (OptFloat64) Encode

func (o OptFloat64) Encode(e *jx.Encoder)

Encode encodes float64 as json.

func (OptFloat64) Get

func (o OptFloat64) Get() (v float64, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptFloat64) IsSet

func (o OptFloat64) IsSet() bool

IsSet returns true if OptFloat64 was set.

func (OptFloat64) MarshalJSON

func (s OptFloat64) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptFloat64) Or

func (o OptFloat64) Or(d float64) float64

Or returns value if set, or given parameter if does not.

func (*OptFloat64) Reset

func (o *OptFloat64) Reset()

Reset unsets value.

func (*OptFloat64) SetTo

func (o *OptFloat64) SetTo(v float64)

SetTo sets value to v.

func (*OptFloat64) UnmarshalJSON

func (s *OptFloat64) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIDCheckEnum

type OptIDCheckEnum struct {
	Value IDCheckEnum
	Set   bool
}

OptIDCheckEnum is optional IDCheckEnum.

func NewOptIDCheckEnum

func NewOptIDCheckEnum(v IDCheckEnum) OptIDCheckEnum

NewOptIDCheckEnum returns new OptIDCheckEnum with value set to v.

func (*OptIDCheckEnum) Decode

func (o *OptIDCheckEnum) Decode(d *jx.Decoder) error

Decode decodes IDCheckEnum from json.

func (OptIDCheckEnum) Encode

func (o OptIDCheckEnum) Encode(e *jx.Encoder)

Encode encodes IDCheckEnum as json.

func (OptIDCheckEnum) Get

func (o OptIDCheckEnum) Get() (v IDCheckEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIDCheckEnum) IsSet

func (o OptIDCheckEnum) IsSet() bool

IsSet returns true if OptIDCheckEnum was set.

func (OptIDCheckEnum) MarshalJSON

func (s OptIDCheckEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIDCheckEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptIDCheckEnum) Reset

func (o *OptIDCheckEnum) Reset()

Reset unsets value.

func (*OptIDCheckEnum) SetTo

func (o *OptIDCheckEnum) SetTo(v IDCheckEnum)

SetTo sets value to v.

func (*OptIDCheckEnum) UnmarshalJSON

func (s *OptIDCheckEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptIDTypeEnum

type OptIDTypeEnum struct {
	Value IDTypeEnum
	Set   bool
}

OptIDTypeEnum is optional IDTypeEnum.

func NewOptIDTypeEnum

func NewOptIDTypeEnum(v IDTypeEnum) OptIDTypeEnum

NewOptIDTypeEnum returns new OptIDTypeEnum with value set to v.

func (*OptIDTypeEnum) Decode

func (o *OptIDTypeEnum) Decode(d *jx.Decoder) error

Decode decodes IDTypeEnum from json.

func (OptIDTypeEnum) Encode

func (o OptIDTypeEnum) Encode(e *jx.Encoder)

Encode encodes IDTypeEnum as json.

func (OptIDTypeEnum) Get

func (o OptIDTypeEnum) Get() (v IDTypeEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptIDTypeEnum) IsSet

func (o OptIDTypeEnum) IsSet() bool

IsSet returns true if OptIDTypeEnum was set.

func (OptIDTypeEnum) MarshalJSON

func (s OptIDTypeEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptIDTypeEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptIDTypeEnum) Reset

func (o *OptIDTypeEnum) Reset()

Reset unsets value.

func (*OptIDTypeEnum) SetTo

func (o *OptIDTypeEnum) SetTo(v IDTypeEnum)

SetTo sets value to v.

func (*OptIDTypeEnum) UnmarshalJSON

func (s *OptIDTypeEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptInt

type OptInt struct {
	Value int
	Set   bool
}

OptInt is optional int.

func NewOptInt

func NewOptInt(v int) OptInt

NewOptInt returns new OptInt with value set to v.

func (*OptInt) Decode

func (o *OptInt) Decode(d *jx.Decoder) error

Decode decodes int from json.

func (OptInt) Encode

func (o OptInt) Encode(e *jx.Encoder)

Encode encodes int as json.

func (OptInt) Get

func (o OptInt) Get() (v int, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptInt) IsSet

func (o OptInt) IsSet() bool

IsSet returns true if OptInt was set.

func (OptInt) MarshalJSON

func (s OptInt) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptInt) Or

func (o OptInt) Or(d int) int

Or returns value if set, or given parameter if does not.

func (*OptInt) Reset

func (o *OptInt) Reset()

Reset unsets value.

func (*OptInt) SetTo

func (o *OptInt) SetTo(v int)

SetTo sets value to v.

func (*OptInt) UnmarshalJSON

func (s *OptInt) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMaskResultEnum

type OptMaskResultEnum struct {
	Value MaskResultEnum
	Set   bool
}

OptMaskResultEnum is optional MaskResultEnum.

func NewOptMaskResultEnum

func NewOptMaskResultEnum(v MaskResultEnum) OptMaskResultEnum

NewOptMaskResultEnum returns new OptMaskResultEnum with value set to v.

func (*OptMaskResultEnum) Decode

func (o *OptMaskResultEnum) Decode(d *jx.Decoder) error

Decode decodes MaskResultEnum from json.

func (OptMaskResultEnum) Encode

func (o OptMaskResultEnum) Encode(e *jx.Encoder)

Encode encodes MaskResultEnum as json.

func (OptMaskResultEnum) Get

func (o OptMaskResultEnum) Get() (v MaskResultEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMaskResultEnum) IsSet

func (o OptMaskResultEnum) IsSet() bool

IsSet returns true if OptMaskResultEnum was set.

func (OptMaskResultEnum) MarshalJSON

func (s OptMaskResultEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptMaskResultEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptMaskResultEnum) Reset

func (o *OptMaskResultEnum) Reset()

Reset unsets value.

func (*OptMaskResultEnum) SetTo

func (o *OptMaskResultEnum) SetTo(v MaskResultEnum)

SetTo sets value to v.

func (*OptMaskResultEnum) UnmarshalJSON

func (s *OptMaskResultEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptMultipartFile

type OptMultipartFile struct {
	Value ht.MultipartFile
	Set   bool
}

OptMultipartFile is optional ht.MultipartFile.

func NewOptMultipartFile

func NewOptMultipartFile(v ht.MultipartFile) OptMultipartFile

NewOptMultipartFile returns new OptMultipartFile with value set to v.

func (OptMultipartFile) Get

func (o OptMultipartFile) Get() (v ht.MultipartFile, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptMultipartFile) IsSet

func (o OptMultipartFile) IsSet() bool

IsSet returns true if OptMultipartFile was set.

func (OptMultipartFile) Or

Or returns value if set, or given parameter if does not.

func (*OptMultipartFile) Reset

func (o *OptMultipartFile) Reset()

Reset unsets value.

func (*OptMultipartFile) SetTo

func (o *OptMultipartFile) SetTo(v ht.MultipartFile)

SetTo sets value to v.

type OptOCRResultResultCode

type OptOCRResultResultCode struct {
	Value OCRResultResultCode
	Set   bool
}

OptOCRResultResultCode is optional OCRResultResultCode.

func NewOptOCRResultResultCode

func NewOptOCRResultResultCode(v OCRResultResultCode) OptOCRResultResultCode

NewOptOCRResultResultCode returns new OptOCRResultResultCode with value set to v.

func (*OptOCRResultResultCode) Decode

func (o *OptOCRResultResultCode) Decode(d *jx.Decoder) error

Decode decodes OCRResultResultCode from json.

func (OptOCRResultResultCode) Encode

func (o OptOCRResultResultCode) Encode(e *jx.Encoder)

Encode encodes OCRResultResultCode as json.

func (OptOCRResultResultCode) Get

Get returns value and boolean that denotes whether value was set.

func (OptOCRResultResultCode) IsSet

func (o OptOCRResultResultCode) IsSet() bool

IsSet returns true if OptOCRResultResultCode was set.

func (OptOCRResultResultCode) MarshalJSON

func (s OptOCRResultResultCode) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptOCRResultResultCode) Or

Or returns value if set, or given parameter if does not.

func (*OptOCRResultResultCode) Reset

func (o *OptOCRResultResultCode) Reset()

Reset unsets value.

func (*OptOCRResultResultCode) SetTo

SetTo sets value to v.

func (*OptOCRResultResultCode) UnmarshalJSON

func (s *OptOCRResultResultCode) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptSpoofStatusEnum

type OptSpoofStatusEnum struct {
	Value SpoofStatusEnum
	Set   bool
}

OptSpoofStatusEnum is optional SpoofStatusEnum.

func NewOptSpoofStatusEnum

func NewOptSpoofStatusEnum(v SpoofStatusEnum) OptSpoofStatusEnum

NewOptSpoofStatusEnum returns new OptSpoofStatusEnum with value set to v.

func (*OptSpoofStatusEnum) Decode

func (o *OptSpoofStatusEnum) Decode(d *jx.Decoder) error

Decode decodes SpoofStatusEnum from json.

func (OptSpoofStatusEnum) Encode

func (o OptSpoofStatusEnum) Encode(e *jx.Encoder)

Encode encodes SpoofStatusEnum as json.

func (OptSpoofStatusEnum) Get

func (o OptSpoofStatusEnum) Get() (v SpoofStatusEnum, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptSpoofStatusEnum) IsSet

func (o OptSpoofStatusEnum) IsSet() bool

IsSet returns true if OptSpoofStatusEnum was set.

func (OptSpoofStatusEnum) MarshalJSON

func (s OptSpoofStatusEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptSpoofStatusEnum) Or

Or returns value if set, or given parameter if does not.

func (*OptSpoofStatusEnum) Reset

func (o *OptSpoofStatusEnum) Reset()

Reset unsets value.

func (*OptSpoofStatusEnum) SetTo

func (o *OptSpoofStatusEnum) SetTo(v SpoofStatusEnum)

SetTo sets value to v.

func (*OptSpoofStatusEnum) UnmarshalJSON

func (s *OptSpoofStatusEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type OptString

type OptString struct {
	Value string
	Set   bool
}

OptString is optional string.

func NewOptString

func NewOptString(v string) OptString

NewOptString returns new OptString with value set to v.

func (*OptString) Decode

func (o *OptString) Decode(d *jx.Decoder) error

Decode decodes string from json.

func (OptString) Encode

func (o OptString) Encode(e *jx.Encoder)

Encode encodes string as json.

func (OptString) Get

func (o OptString) Get() (v string, ok bool)

Get returns value and boolean that denotes whether value was set.

func (OptString) IsSet

func (o OptString) IsSet() bool

IsSet returns true if OptString was set.

func (OptString) MarshalJSON

func (s OptString) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (OptString) Or

func (o OptString) Or(d string) string

Or returns value if set, or given parameter if does not.

func (*OptString) Reset

func (o *OptString) Reset()

Reset unsets value.

func (*OptString) SetTo

func (o *OptString) SetTo(v string)

SetTo sets value to v.

func (*OptString) UnmarshalJSON

func (s *OptString) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

type Option

type Option interface {
	// contains filtered or unexported methods
}

Option is config option.

func WithClient

func WithClient(client ht.Client) Option

WithClient specifies http client to use.

func WithMeterProvider

func WithMeterProvider(provider metric.MeterProvider) Option

WithMeterProvider specifies a meter provider to use for creating a meter.

If none is specified, the metric.NewNoopMeterProvider is used.

func WithTracerProvider

func WithTracerProvider(provider trace.TracerProvider) Option

WithTracerProvider specifies a tracer provider to use for creating a tracer.

If none is specified, the global provider is used.

type SecuritySource

type SecuritySource interface {
	// APIKey provides api_key security value.
	APIKey(ctx context.Context, operationName string) (APIKey, error)
}

SecuritySource is provider of security values (tokens, passwords, etc.).

type SpoofStatusEnum

type SpoofStatusEnum string

Ref: #/components/schemas/SpoofStatusEnum

const (
	SpoofStatusEnumFAKE SpoofStatusEnum = "FAKE"
	SpoofStatusEnumREAL SpoofStatusEnum = "REAL"
)

func (*SpoofStatusEnum) Decode

func (s *SpoofStatusEnum) Decode(d *jx.Decoder) error

Decode decodes SpoofStatusEnum from json.

func (SpoofStatusEnum) Encode

func (s SpoofStatusEnum) Encode(e *jx.Encoder)

Encode encodes SpoofStatusEnum as json.

func (SpoofStatusEnum) MarshalJSON

func (s SpoofStatusEnum) MarshalJSON() ([]byte, error)

MarshalJSON implements stdjson.Marshaler.

func (*SpoofStatusEnum) UnmarshalJSON

func (s *SpoofStatusEnum) UnmarshalJSON(data []byte) error

UnmarshalJSON implements stdjson.Unmarshaler.

func (SpoofStatusEnum) Validate

func (s SpoofStatusEnum) Validate() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL