Support crop face image.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2021-09-10 Version: 1.36.871
|
||||
- Support crop face image.
|
||||
|
||||
2021-09-09 Version: 1.36.870
|
||||
- Public version.
|
||||
|
||||
|
||||
@@ -27,8 +27,6 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CompareFacesResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ContrastFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ContrastSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ContrastSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateAuthKeyResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateFaceConfigRequest.h
|
||||
@@ -41,8 +39,12 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/CreateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/CreateWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/DeleteWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeAppInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeDeviceInfoRequest.h
|
||||
@@ -59,8 +61,6 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeRPSDKResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSdkUrlRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSdkUrlResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUpdatePackageResultResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeUploadInfoRequest.h
|
||||
@@ -81,40 +81,24 @@ set(cloudauth_public_header_model
|
||||
include/alibabacloud/cloudauth/model/DescribeVerifyUsageResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistResult.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesRequest.h
|
||||
include/alibabacloud/cloudauth/model/DetectFaceAttributesResult.h
|
||||
include/alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/ElementSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetStatusResult.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenRequest.h
|
||||
include/alibabacloud/cloudauth/model/GetVerifyTokenResult.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/InitSmartVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessDetectRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessDetectResult.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyRequest.h
|
||||
include/alibabacloud/cloudauth/model/LivenessFaceVerifyResult.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoRequest.h
|
||||
include/alibabacloud/cloudauth/model/ModifyDeviceInfoResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitMaterialsResult.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationRequest.h
|
||||
include/alibabacloud/cloudauth/model/SubmitVerificationResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateAppPackageResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateFaceConfigResult.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingRequest.h
|
||||
include/alibabacloud/cloudauth/model/UpdateVerifySettingResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyBankElementRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyBankElementResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceRequest.h
|
||||
include/alibabacloud/cloudauth/model/VerifyDeviceResult.h
|
||||
include/alibabacloud/cloudauth/model/VerifyMaterialRequest.h
|
||||
@@ -128,8 +112,6 @@ set(cloudauth_src
|
||||
src/model/CompareFacesResult.cc
|
||||
src/model/ContrastFaceVerifyRequest.cc
|
||||
src/model/ContrastFaceVerifyResult.cc
|
||||
src/model/ContrastSmartVerifyRequest.cc
|
||||
src/model/ContrastSmartVerifyResult.cc
|
||||
src/model/CreateAuthKeyRequest.cc
|
||||
src/model/CreateAuthKeyResult.cc
|
||||
src/model/CreateFaceConfigRequest.cc
|
||||
@@ -142,8 +124,12 @@ set(cloudauth_src
|
||||
src/model/CreateVerifySettingResult.cc
|
||||
src/model/CreateWhitelistRequest.cc
|
||||
src/model/CreateWhitelistResult.cc
|
||||
src/model/CreateWhitelistSettingRequest.cc
|
||||
src/model/CreateWhitelistSettingResult.cc
|
||||
src/model/DeleteWhitelistRequest.cc
|
||||
src/model/DeleteWhitelistResult.cc
|
||||
src/model/DeleteWhitelistSettingRequest.cc
|
||||
src/model/DeleteWhitelistSettingResult.cc
|
||||
src/model/DescribeAppInfoRequest.cc
|
||||
src/model/DescribeAppInfoResult.cc
|
||||
src/model/DescribeDeviceInfoRequest.cc
|
||||
@@ -160,8 +146,6 @@ set(cloudauth_src
|
||||
src/model/DescribeRPSDKResult.cc
|
||||
src/model/DescribeSdkUrlRequest.cc
|
||||
src/model/DescribeSdkUrlResult.cc
|
||||
src/model/DescribeSmartVerifyRequest.cc
|
||||
src/model/DescribeSmartVerifyResult.cc
|
||||
src/model/DescribeUpdatePackageResultRequest.cc
|
||||
src/model/DescribeUpdatePackageResultResult.cc
|
||||
src/model/DescribeUploadInfoRequest.cc
|
||||
@@ -182,40 +166,24 @@ set(cloudauth_src
|
||||
src/model/DescribeVerifyUsageResult.cc
|
||||
src/model/DescribeWhitelistRequest.cc
|
||||
src/model/DescribeWhitelistResult.cc
|
||||
src/model/DescribeWhitelistSettingRequest.cc
|
||||
src/model/DescribeWhitelistSettingResult.cc
|
||||
src/model/DetectFaceAttributesRequest.cc
|
||||
src/model/DetectFaceAttributesResult.cc
|
||||
src/model/ElementSmartVerifyRequest.cc
|
||||
src/model/ElementSmartVerifyResult.cc
|
||||
src/model/GetMaterialsRequest.cc
|
||||
src/model/GetMaterialsResult.cc
|
||||
src/model/GetStatusRequest.cc
|
||||
src/model/GetStatusResult.cc
|
||||
src/model/GetVerifyTokenRequest.cc
|
||||
src/model/GetVerifyTokenResult.cc
|
||||
src/model/InitDeviceRequest.cc
|
||||
src/model/InitDeviceResult.cc
|
||||
src/model/InitFaceVerifyRequest.cc
|
||||
src/model/InitFaceVerifyResult.cc
|
||||
src/model/InitSmartVerifyRequest.cc
|
||||
src/model/InitSmartVerifyResult.cc
|
||||
src/model/LivenessDetectRequest.cc
|
||||
src/model/LivenessDetectResult.cc
|
||||
src/model/LivenessFaceVerifyRequest.cc
|
||||
src/model/LivenessFaceVerifyResult.cc
|
||||
src/model/ModifyDeviceInfoRequest.cc
|
||||
src/model/ModifyDeviceInfoResult.cc
|
||||
src/model/SubmitMaterialsRequest.cc
|
||||
src/model/SubmitMaterialsResult.cc
|
||||
src/model/SubmitVerificationRequest.cc
|
||||
src/model/SubmitVerificationResult.cc
|
||||
src/model/UpdateAppPackageRequest.cc
|
||||
src/model/UpdateAppPackageResult.cc
|
||||
src/model/UpdateFaceConfigRequest.cc
|
||||
src/model/UpdateFaceConfigResult.cc
|
||||
src/model/UpdateVerifySettingRequest.cc
|
||||
src/model/UpdateVerifySettingResult.cc
|
||||
src/model/VerifyBankElementRequest.cc
|
||||
src/model/VerifyBankElementResult.cc
|
||||
src/model/VerifyDeviceRequest.cc
|
||||
src/model/VerifyDeviceResult.cc
|
||||
src/model/VerifyMaterialRequest.cc
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "model/CompareFacesResult.h"
|
||||
#include "model/ContrastFaceVerifyRequest.h"
|
||||
#include "model/ContrastFaceVerifyResult.h"
|
||||
#include "model/ContrastSmartVerifyRequest.h"
|
||||
#include "model/ContrastSmartVerifyResult.h"
|
||||
#include "model/CreateAuthKeyRequest.h"
|
||||
#include "model/CreateAuthKeyResult.h"
|
||||
#include "model/CreateFaceConfigRequest.h"
|
||||
@@ -42,8 +40,12 @@
|
||||
#include "model/CreateVerifySettingResult.h"
|
||||
#include "model/CreateWhitelistRequest.h"
|
||||
#include "model/CreateWhitelistResult.h"
|
||||
#include "model/CreateWhitelistSettingRequest.h"
|
||||
#include "model/CreateWhitelistSettingResult.h"
|
||||
#include "model/DeleteWhitelistRequest.h"
|
||||
#include "model/DeleteWhitelistResult.h"
|
||||
#include "model/DeleteWhitelistSettingRequest.h"
|
||||
#include "model/DeleteWhitelistSettingResult.h"
|
||||
#include "model/DescribeAppInfoRequest.h"
|
||||
#include "model/DescribeAppInfoResult.h"
|
||||
#include "model/DescribeDeviceInfoRequest.h"
|
||||
@@ -60,8 +62,6 @@
|
||||
#include "model/DescribeRPSDKResult.h"
|
||||
#include "model/DescribeSdkUrlRequest.h"
|
||||
#include "model/DescribeSdkUrlResult.h"
|
||||
#include "model/DescribeSmartVerifyRequest.h"
|
||||
#include "model/DescribeSmartVerifyResult.h"
|
||||
#include "model/DescribeUpdatePackageResultRequest.h"
|
||||
#include "model/DescribeUpdatePackageResultResult.h"
|
||||
#include "model/DescribeUploadInfoRequest.h"
|
||||
@@ -82,40 +82,24 @@
|
||||
#include "model/DescribeVerifyUsageResult.h"
|
||||
#include "model/DescribeWhitelistRequest.h"
|
||||
#include "model/DescribeWhitelistResult.h"
|
||||
#include "model/DescribeWhitelistSettingRequest.h"
|
||||
#include "model/DescribeWhitelistSettingResult.h"
|
||||
#include "model/DetectFaceAttributesRequest.h"
|
||||
#include "model/DetectFaceAttributesResult.h"
|
||||
#include "model/ElementSmartVerifyRequest.h"
|
||||
#include "model/ElementSmartVerifyResult.h"
|
||||
#include "model/GetMaterialsRequest.h"
|
||||
#include "model/GetMaterialsResult.h"
|
||||
#include "model/GetStatusRequest.h"
|
||||
#include "model/GetStatusResult.h"
|
||||
#include "model/GetVerifyTokenRequest.h"
|
||||
#include "model/GetVerifyTokenResult.h"
|
||||
#include "model/InitDeviceRequest.h"
|
||||
#include "model/InitDeviceResult.h"
|
||||
#include "model/InitFaceVerifyRequest.h"
|
||||
#include "model/InitFaceVerifyResult.h"
|
||||
#include "model/InitSmartVerifyRequest.h"
|
||||
#include "model/InitSmartVerifyResult.h"
|
||||
#include "model/LivenessDetectRequest.h"
|
||||
#include "model/LivenessDetectResult.h"
|
||||
#include "model/LivenessFaceVerifyRequest.h"
|
||||
#include "model/LivenessFaceVerifyResult.h"
|
||||
#include "model/ModifyDeviceInfoRequest.h"
|
||||
#include "model/ModifyDeviceInfoResult.h"
|
||||
#include "model/SubmitMaterialsRequest.h"
|
||||
#include "model/SubmitMaterialsResult.h"
|
||||
#include "model/SubmitVerificationRequest.h"
|
||||
#include "model/SubmitVerificationResult.h"
|
||||
#include "model/UpdateAppPackageRequest.h"
|
||||
#include "model/UpdateAppPackageResult.h"
|
||||
#include "model/UpdateFaceConfigRequest.h"
|
||||
#include "model/UpdateFaceConfigResult.h"
|
||||
#include "model/UpdateVerifySettingRequest.h"
|
||||
#include "model/UpdateVerifySettingResult.h"
|
||||
#include "model/VerifyBankElementRequest.h"
|
||||
#include "model/VerifyBankElementResult.h"
|
||||
#include "model/VerifyDeviceRequest.h"
|
||||
#include "model/VerifyDeviceResult.h"
|
||||
#include "model/VerifyMaterialRequest.h"
|
||||
@@ -138,9 +122,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ContrastFaceVerifyResult> ContrastFaceVerifyOutcome;
|
||||
typedef std::future<ContrastFaceVerifyOutcome> ContrastFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ContrastFaceVerifyRequest&, const ContrastFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContrastFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ContrastSmartVerifyResult> ContrastSmartVerifyOutcome;
|
||||
typedef std::future<ContrastSmartVerifyOutcome> ContrastSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ContrastSmartVerifyRequest&, const ContrastSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ContrastSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateAuthKeyResult> CreateAuthKeyOutcome;
|
||||
typedef std::future<CreateAuthKeyOutcome> CreateAuthKeyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateAuthKeyRequest&, const CreateAuthKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateAuthKeyAsyncHandler;
|
||||
@@ -159,9 +140,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateWhitelistResult> CreateWhitelistOutcome;
|
||||
typedef std::future<CreateWhitelistOutcome> CreateWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistRequest&, const CreateWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWhitelistSettingResult> CreateWhitelistSettingOutcome;
|
||||
typedef std::future<CreateWhitelistSettingOutcome> CreateWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::CreateWhitelistSettingRequest&, const CreateWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhitelistResult> DeleteWhitelistOutcome;
|
||||
typedef std::future<DeleteWhitelistOutcome> DeleteWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistRequest&, const DeleteWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteWhitelistSettingResult> DeleteWhitelistSettingOutcome;
|
||||
typedef std::future<DeleteWhitelistSettingOutcome> DeleteWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DeleteWhitelistSettingRequest&, const DeleteWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAppInfoResult> DescribeAppInfoOutcome;
|
||||
typedef std::future<DescribeAppInfoOutcome> DescribeAppInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeAppInfoRequest&, const DescribeAppInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAppInfoAsyncHandler;
|
||||
@@ -186,9 +173,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeSdkUrlResult> DescribeSdkUrlOutcome;
|
||||
typedef std::future<DescribeSdkUrlOutcome> DescribeSdkUrlOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeSdkUrlRequest&, const DescribeSdkUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSdkUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeSmartVerifyResult> DescribeSmartVerifyOutcome;
|
||||
typedef std::future<DescribeSmartVerifyOutcome> DescribeSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeSmartVerifyRequest&, const DescribeSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeUpdatePackageResultResult> DescribeUpdatePackageResultOutcome;
|
||||
typedef std::future<DescribeUpdatePackageResultOutcome> DescribeUpdatePackageResultOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeUpdatePackageResultRequest&, const DescribeUpdatePackageResultOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeUpdatePackageResultAsyncHandler;
|
||||
@@ -219,45 +203,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeWhitelistResult> DescribeWhitelistOutcome;
|
||||
typedef std::future<DescribeWhitelistOutcome> DescribeWhitelistOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistRequest&, const DescribeWhitelistOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeWhitelistSettingResult> DescribeWhitelistSettingOutcome;
|
||||
typedef std::future<DescribeWhitelistSettingOutcome> DescribeWhitelistSettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DescribeWhitelistSettingRequest&, const DescribeWhitelistSettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeWhitelistSettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::DetectFaceAttributesResult> DetectFaceAttributesOutcome;
|
||||
typedef std::future<DetectFaceAttributesOutcome> DetectFaceAttributesOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::DetectFaceAttributesRequest&, const DetectFaceAttributesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DetectFaceAttributesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ElementSmartVerifyResult> ElementSmartVerifyOutcome;
|
||||
typedef std::future<ElementSmartVerifyOutcome> ElementSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ElementSmartVerifyRequest&, const ElementSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ElementSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetMaterialsResult> GetMaterialsOutcome;
|
||||
typedef std::future<GetMaterialsOutcome> GetMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetMaterialsRequest&, const GetMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetStatusResult> GetStatusOutcome;
|
||||
typedef std::future<GetStatusOutcome> GetStatusOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetStatusRequest&, const GetStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetVerifyTokenResult> GetVerifyTokenOutcome;
|
||||
typedef std::future<GetVerifyTokenOutcome> GetVerifyTokenOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::GetVerifyTokenRequest&, const GetVerifyTokenOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetVerifyTokenAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitDeviceResult> InitDeviceOutcome;
|
||||
typedef std::future<InitDeviceOutcome> InitDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitDeviceRequest&, const InitDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitDeviceAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitFaceVerifyResult> InitFaceVerifyOutcome;
|
||||
typedef std::future<InitFaceVerifyOutcome> InitFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitFaceVerifyRequest&, const InitFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::InitSmartVerifyResult> InitSmartVerifyOutcome;
|
||||
typedef std::future<InitSmartVerifyOutcome> InitSmartVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::InitSmartVerifyRequest&, const InitSmartVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> InitSmartVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::LivenessDetectResult> LivenessDetectOutcome;
|
||||
typedef std::future<LivenessDetectOutcome> LivenessDetectOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessDetectRequest&, const LivenessDetectOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessDetectAsyncHandler;
|
||||
typedef Outcome<Error, Model::LivenessFaceVerifyResult> LivenessFaceVerifyOutcome;
|
||||
typedef std::future<LivenessFaceVerifyOutcome> LivenessFaceVerifyOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::LivenessFaceVerifyRequest&, const LivenessFaceVerifyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> LivenessFaceVerifyAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyDeviceInfoResult> ModifyDeviceInfoOutcome;
|
||||
typedef std::future<ModifyDeviceInfoOutcome> ModifyDeviceInfoOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::ModifyDeviceInfoRequest&, const ModifyDeviceInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyDeviceInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitMaterialsResult> SubmitMaterialsOutcome;
|
||||
typedef std::future<SubmitMaterialsOutcome> SubmitMaterialsOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitMaterialsRequest&, const SubmitMaterialsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitMaterialsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SubmitVerificationResult> SubmitVerificationOutcome;
|
||||
typedef std::future<SubmitVerificationOutcome> SubmitVerificationOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::SubmitVerificationRequest&, const SubmitVerificationOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SubmitVerificationAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAppPackageResult> UpdateAppPackageOutcome;
|
||||
typedef std::future<UpdateAppPackageOutcome> UpdateAppPackageOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateAppPackageRequest&, const UpdateAppPackageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAppPackageAsyncHandler;
|
||||
@@ -267,9 +230,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateVerifySettingResult> UpdateVerifySettingOutcome;
|
||||
typedef std::future<UpdateVerifySettingOutcome> UpdateVerifySettingOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::UpdateVerifySettingRequest&, const UpdateVerifySettingOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateVerifySettingAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyBankElementResult> VerifyBankElementOutcome;
|
||||
typedef std::future<VerifyBankElementOutcome> VerifyBankElementOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyBankElementRequest&, const VerifyBankElementOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyBankElementAsyncHandler;
|
||||
typedef Outcome<Error, Model::VerifyDeviceResult> VerifyDeviceOutcome;
|
||||
typedef std::future<VerifyDeviceOutcome> VerifyDeviceOutcomeCallable;
|
||||
typedef std::function<void(const CloudauthClient*, const Model::VerifyDeviceRequest&, const VerifyDeviceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> VerifyDeviceAsyncHandler;
|
||||
@@ -290,9 +250,6 @@ namespace AlibabaCloud
|
||||
ContrastFaceVerifyOutcome contrastFaceVerify(const Model::ContrastFaceVerifyRequest &request)const;
|
||||
void contrastFaceVerifyAsync(const Model::ContrastFaceVerifyRequest& request, const ContrastFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContrastFaceVerifyOutcomeCallable contrastFaceVerifyCallable(const Model::ContrastFaceVerifyRequest& request) const;
|
||||
ContrastSmartVerifyOutcome contrastSmartVerify(const Model::ContrastSmartVerifyRequest &request)const;
|
||||
void contrastSmartVerifyAsync(const Model::ContrastSmartVerifyRequest& request, const ContrastSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ContrastSmartVerifyOutcomeCallable contrastSmartVerifyCallable(const Model::ContrastSmartVerifyRequest& request) const;
|
||||
CreateAuthKeyOutcome createAuthKey(const Model::CreateAuthKeyRequest &request)const;
|
||||
void createAuthKeyAsync(const Model::CreateAuthKeyRequest& request, const CreateAuthKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateAuthKeyOutcomeCallable createAuthKeyCallable(const Model::CreateAuthKeyRequest& request) const;
|
||||
@@ -311,9 +268,15 @@ namespace AlibabaCloud
|
||||
CreateWhitelistOutcome createWhitelist(const Model::CreateWhitelistRequest &request)const;
|
||||
void createWhitelistAsync(const Model::CreateWhitelistRequest& request, const CreateWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWhitelistOutcomeCallable createWhitelistCallable(const Model::CreateWhitelistRequest& request) const;
|
||||
CreateWhitelistSettingOutcome createWhitelistSetting(const Model::CreateWhitelistSettingRequest &request)const;
|
||||
void createWhitelistSettingAsync(const Model::CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWhitelistSettingOutcomeCallable createWhitelistSettingCallable(const Model::CreateWhitelistSettingRequest& request) const;
|
||||
DeleteWhitelistOutcome deleteWhitelist(const Model::DeleteWhitelistRequest &request)const;
|
||||
void deleteWhitelistAsync(const Model::DeleteWhitelistRequest& request, const DeleteWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhitelistOutcomeCallable deleteWhitelistCallable(const Model::DeleteWhitelistRequest& request) const;
|
||||
DeleteWhitelistSettingOutcome deleteWhitelistSetting(const Model::DeleteWhitelistSettingRequest &request)const;
|
||||
void deleteWhitelistSettingAsync(const Model::DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteWhitelistSettingOutcomeCallable deleteWhitelistSettingCallable(const Model::DeleteWhitelistSettingRequest& request) const;
|
||||
DescribeAppInfoOutcome describeAppInfo(const Model::DescribeAppInfoRequest &request)const;
|
||||
void describeAppInfoAsync(const Model::DescribeAppInfoRequest& request, const DescribeAppInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAppInfoOutcomeCallable describeAppInfoCallable(const Model::DescribeAppInfoRequest& request) const;
|
||||
@@ -338,9 +301,6 @@ namespace AlibabaCloud
|
||||
DescribeSdkUrlOutcome describeSdkUrl(const Model::DescribeSdkUrlRequest &request)const;
|
||||
void describeSdkUrlAsync(const Model::DescribeSdkUrlRequest& request, const DescribeSdkUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSdkUrlOutcomeCallable describeSdkUrlCallable(const Model::DescribeSdkUrlRequest& request) const;
|
||||
DescribeSmartVerifyOutcome describeSmartVerify(const Model::DescribeSmartVerifyRequest &request)const;
|
||||
void describeSmartVerifyAsync(const Model::DescribeSmartVerifyRequest& request, const DescribeSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeSmartVerifyOutcomeCallable describeSmartVerifyCallable(const Model::DescribeSmartVerifyRequest& request) const;
|
||||
DescribeUpdatePackageResultOutcome describeUpdatePackageResult(const Model::DescribeUpdatePackageResultRequest &request)const;
|
||||
void describeUpdatePackageResultAsync(const Model::DescribeUpdatePackageResultRequest& request, const DescribeUpdatePackageResultAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeUpdatePackageResultOutcomeCallable describeUpdatePackageResultCallable(const Model::DescribeUpdatePackageResultRequest& request) const;
|
||||
@@ -371,45 +331,24 @@ namespace AlibabaCloud
|
||||
DescribeWhitelistOutcome describeWhitelist(const Model::DescribeWhitelistRequest &request)const;
|
||||
void describeWhitelistAsync(const Model::DescribeWhitelistRequest& request, const DescribeWhitelistAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhitelistOutcomeCallable describeWhitelistCallable(const Model::DescribeWhitelistRequest& request) const;
|
||||
DescribeWhitelistSettingOutcome describeWhitelistSetting(const Model::DescribeWhitelistSettingRequest &request)const;
|
||||
void describeWhitelistSettingAsync(const Model::DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeWhitelistSettingOutcomeCallable describeWhitelistSettingCallable(const Model::DescribeWhitelistSettingRequest& request) const;
|
||||
DetectFaceAttributesOutcome detectFaceAttributes(const Model::DetectFaceAttributesRequest &request)const;
|
||||
void detectFaceAttributesAsync(const Model::DetectFaceAttributesRequest& request, const DetectFaceAttributesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DetectFaceAttributesOutcomeCallable detectFaceAttributesCallable(const Model::DetectFaceAttributesRequest& request) const;
|
||||
ElementSmartVerifyOutcome elementSmartVerify(const Model::ElementSmartVerifyRequest &request)const;
|
||||
void elementSmartVerifyAsync(const Model::ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ElementSmartVerifyOutcomeCallable elementSmartVerifyCallable(const Model::ElementSmartVerifyRequest& request) const;
|
||||
GetMaterialsOutcome getMaterials(const Model::GetMaterialsRequest &request)const;
|
||||
void getMaterialsAsync(const Model::GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetMaterialsOutcomeCallable getMaterialsCallable(const Model::GetMaterialsRequest& request) const;
|
||||
GetStatusOutcome getStatus(const Model::GetStatusRequest &request)const;
|
||||
void getStatusAsync(const Model::GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetStatusOutcomeCallable getStatusCallable(const Model::GetStatusRequest& request) const;
|
||||
GetVerifyTokenOutcome getVerifyToken(const Model::GetVerifyTokenRequest &request)const;
|
||||
void getVerifyTokenAsync(const Model::GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetVerifyTokenOutcomeCallable getVerifyTokenCallable(const Model::GetVerifyTokenRequest& request) const;
|
||||
InitDeviceOutcome initDevice(const Model::InitDeviceRequest &request)const;
|
||||
void initDeviceAsync(const Model::InitDeviceRequest& request, const InitDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitDeviceOutcomeCallable initDeviceCallable(const Model::InitDeviceRequest& request) const;
|
||||
InitFaceVerifyOutcome initFaceVerify(const Model::InitFaceVerifyRequest &request)const;
|
||||
void initFaceVerifyAsync(const Model::InitFaceVerifyRequest& request, const InitFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitFaceVerifyOutcomeCallable initFaceVerifyCallable(const Model::InitFaceVerifyRequest& request) const;
|
||||
InitSmartVerifyOutcome initSmartVerify(const Model::InitSmartVerifyRequest &request)const;
|
||||
void initSmartVerifyAsync(const Model::InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
InitSmartVerifyOutcomeCallable initSmartVerifyCallable(const Model::InitSmartVerifyRequest& request) const;
|
||||
LivenessDetectOutcome livenessDetect(const Model::LivenessDetectRequest &request)const;
|
||||
void livenessDetectAsync(const Model::LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LivenessDetectOutcomeCallable livenessDetectCallable(const Model::LivenessDetectRequest& request) const;
|
||||
LivenessFaceVerifyOutcome livenessFaceVerify(const Model::LivenessFaceVerifyRequest &request)const;
|
||||
void livenessFaceVerifyAsync(const Model::LivenessFaceVerifyRequest& request, const LivenessFaceVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
LivenessFaceVerifyOutcomeCallable livenessFaceVerifyCallable(const Model::LivenessFaceVerifyRequest& request) const;
|
||||
ModifyDeviceInfoOutcome modifyDeviceInfo(const Model::ModifyDeviceInfoRequest &request)const;
|
||||
void modifyDeviceInfoAsync(const Model::ModifyDeviceInfoRequest& request, const ModifyDeviceInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyDeviceInfoOutcomeCallable modifyDeviceInfoCallable(const Model::ModifyDeviceInfoRequest& request) const;
|
||||
SubmitMaterialsOutcome submitMaterials(const Model::SubmitMaterialsRequest &request)const;
|
||||
void submitMaterialsAsync(const Model::SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitMaterialsOutcomeCallable submitMaterialsCallable(const Model::SubmitMaterialsRequest& request) const;
|
||||
SubmitVerificationOutcome submitVerification(const Model::SubmitVerificationRequest &request)const;
|
||||
void submitVerificationAsync(const Model::SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SubmitVerificationOutcomeCallable submitVerificationCallable(const Model::SubmitVerificationRequest& request) const;
|
||||
UpdateAppPackageOutcome updateAppPackage(const Model::UpdateAppPackageRequest &request)const;
|
||||
void updateAppPackageAsync(const Model::UpdateAppPackageRequest& request, const UpdateAppPackageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAppPackageOutcomeCallable updateAppPackageCallable(const Model::UpdateAppPackageRequest& request) const;
|
||||
@@ -419,9 +358,6 @@ namespace AlibabaCloud
|
||||
UpdateVerifySettingOutcome updateVerifySetting(const Model::UpdateVerifySettingRequest &request)const;
|
||||
void updateVerifySettingAsync(const Model::UpdateVerifySettingRequest& request, const UpdateVerifySettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateVerifySettingOutcomeCallable updateVerifySettingCallable(const Model::UpdateVerifySettingRequest& request) const;
|
||||
VerifyBankElementOutcome verifyBankElement(const Model::VerifyBankElementRequest &request)const;
|
||||
void verifyBankElementAsync(const Model::VerifyBankElementRequest& request, const VerifyBankElementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyBankElementOutcomeCallable verifyBankElementCallable(const Model::VerifyBankElementRequest& request) const;
|
||||
VerifyDeviceOutcome verifyDevice(const Model::VerifyDeviceRequest &request)const;
|
||||
void verifyDeviceAsync(const Model::VerifyDeviceRequest& request, const VerifyDeviceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
VerifyDeviceOutcomeCallable verifyDeviceCallable(const Model::VerifyDeviceRequest& request) const;
|
||||
|
||||
@@ -61,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setSourceFaceContrastPictureUrl(const std::string& sourceFaceContrastPictureUrl);
|
||||
std::string getSourceCertifyId()const;
|
||||
void setSourceCertifyId(const std::string& sourceCertifyId);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string targetFaceContrastPictureUrl_;
|
||||
@@ -76,6 +78,7 @@ namespace AlibabaCloud
|
||||
long sceneId_;
|
||||
std::string sourceFaceContrastPictureUrl_;
|
||||
std::string sourceCertifyId_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,23 +37,20 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getSourceImageType()const;
|
||||
void setSourceImageType(const std::string& sourceImageType);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getTargetImageType()const;
|
||||
void setTargetImageType(const std::string& targetImageType);
|
||||
std::string getTargetImageValue()const;
|
||||
void setTargetImageValue(const std::string& targetImageValue);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getSourceImageValue()const;
|
||||
void setSourceImageValue(const std::string& sourceImageValue);
|
||||
|
||||
private:
|
||||
std::string sourceImageType_;
|
||||
long resourceOwnerId_;
|
||||
std::string targetImageType_;
|
||||
std::string targetImageValue_;
|
||||
std::string sourceIp_;
|
||||
std::string bizType_;
|
||||
std::string sourceImageValue_;
|
||||
|
||||
};
|
||||
|
||||
@@ -69,6 +69,8 @@ namespace AlibabaCloud
|
||||
void setSceneId(long sceneId);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
@@ -88,6 +90,7 @@ namespace AlibabaCloud
|
||||
std::string faceContrastFile_;
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastSmartVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ContrastSmartVerifyRequest();
|
||||
~ContrastSmartVerifyRequest();
|
||||
|
||||
std::string getFacePicFile()const;
|
||||
void setFacePicFile(const std::string& facePicFile);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getFacePicString()const;
|
||||
void setFacePicString(const std::string& facePicString);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getFacePicUrl()const;
|
||||
void setFacePicUrl(const std::string& facePicUrl);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string facePicFile_;
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string facePicString_;
|
||||
std::string mobile_;
|
||||
std::string userId_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string facePicUrl_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYREQUEST_H_
|
||||
@@ -1,63 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ContrastSmartVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string certifyId;
|
||||
std::string subCode;
|
||||
std::string verifyInfo;
|
||||
std::string riskInfo;
|
||||
};
|
||||
|
||||
|
||||
ContrastSmartVerifyResult();
|
||||
explicit ContrastSmartVerifyResult(const std::string &payload);
|
||||
~ContrastSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CONTRASTSMARTVERIFYRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,27 +28,39 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeSmartVerifyRequest();
|
||||
~DescribeSmartVerifyRequest();
|
||||
CreateWhitelistSettingRequest();
|
||||
~CreateWhitelistSettingRequest();
|
||||
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getPictureReturnType()const;
|
||||
void setPictureReturnType(const std::string& pictureReturnType);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getValidDay()const;
|
||||
void setValidDay(int validDay);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string certifyId_;
|
||||
std::string pictureReturnType_;
|
||||
std::string certNo_;
|
||||
std::string sourceIp_;
|
||||
std::string lang_;
|
||||
int validDay_;
|
||||
std::string serviceCode_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,31 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT CreateWhitelistSettingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string certifyId;
|
||||
};
|
||||
|
||||
|
||||
InitSmartVerifyResult();
|
||||
explicit InitSmartVerifyResult(const std::string &payload);
|
||||
~InitSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
CreateWhitelistSettingResult();
|
||||
explicit CreateWhitelistSettingResult(const std::string &payload);
|
||||
~CreateWhitelistSettingResult();
|
||||
bool getResultObject()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool resultObject_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_CREATEWHITELISTSETTINGRESULT_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,36 +28,30 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitMaterialsRequest();
|
||||
~SubmitMaterialsRequest();
|
||||
DeleteWhitelistSettingRequest();
|
||||
~DeleteWhitelistSettingRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getVerifyToken()const;
|
||||
void setVerifyToken(const std::string& verifyToken);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::vector<Material> getMaterial()const;
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
std::string getIds()const;
|
||||
void setIds(const std::string& ids);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string verifyToken_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string lang_;
|
||||
std::string serviceCode_;
|
||||
std::string ids_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,33 +29,23 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DeleteWhitelistSettingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
float score;
|
||||
std::string frameUrl;
|
||||
};
|
||||
|
||||
|
||||
LivenessDetectResult();
|
||||
explicit LivenessDetectResult(const std::string &payload);
|
||||
~LivenessDetectResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
DeleteWhitelistSettingResult();
|
||||
explicit DeleteWhitelistSettingResult(const std::string &payload);
|
||||
~DeleteWhitelistSettingResult();
|
||||
bool getResultObject()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool resultObject_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DELETEWHITELISTSETTINGRESULT_H_
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeSmartVerifyResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string materialInfo;
|
||||
float passedScore;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
DescribeSmartVerifyResult();
|
||||
explicit DescribeSmartVerifyResult(const std::string &payload);
|
||||
~DescribeSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBESMARTVERIFYRESULT_H_
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistSettingRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeWhitelistSettingRequest();
|
||||
~DescribeWhitelistSettingRequest();
|
||||
|
||||
long getValidEndDate()const;
|
||||
void setValidEndDate(long validEndDate);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getServiceCode()const;
|
||||
void setServiceCode(const std::string& serviceCode);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
long getValidStartDate()const;
|
||||
void setValidStartDate(long validStartDate);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
long validEndDate_;
|
||||
std::string certifyId_;
|
||||
std::string certNo_;
|
||||
std::string sourceIp_;
|
||||
int pageSize_;
|
||||
std::string lang_;
|
||||
int currentPage_;
|
||||
std::string serviceCode_;
|
||||
long sceneId_;
|
||||
long validStartDate_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,34 +29,41 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyResult : public ServiceResult
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT DescribeWhitelistSettingResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
struct Item
|
||||
{
|
||||
std::string passed;
|
||||
long sceneId;
|
||||
std::string status;
|
||||
std::string validEndDate;
|
||||
std::string validStartDate;
|
||||
std::string gmtCreate;
|
||||
std::string certifyId;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
std::string gmtModified;
|
||||
long id;
|
||||
std::string certNo;
|
||||
};
|
||||
|
||||
|
||||
ElementSmartVerifyResult();
|
||||
explicit ElementSmartVerifyResult(const std::string &payload);
|
||||
~ElementSmartVerifyResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
DescribeWhitelistSettingResult();
|
||||
explicit DescribeWhitelistSettingResult(const std::string &payload);
|
||||
~DescribeWhitelistSettingResult();
|
||||
int getTotalCount()const;
|
||||
int getPageSize()const;
|
||||
int getCurrentPage()const;
|
||||
std::vector<Item> getItems()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
int totalCount_;
|
||||
int pageSize_;
|
||||
int currentPage_;
|
||||
std::vector<Item> items_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_DESCRIBEWHITELISTSETTINGRESULT_H_
|
||||
@@ -35,32 +35,14 @@ namespace AlibabaCloud
|
||||
DetectFaceAttributesRequest();
|
||||
~DetectFaceAttributesRequest();
|
||||
|
||||
int getMaxNumPhotosPerCategory()const;
|
||||
void setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory);
|
||||
int getMaxFaceNum()const;
|
||||
void setMaxFaceNum(int maxFaceNum);
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getRetAttributes()const;
|
||||
void setRetAttributes(const std::string& retAttributes);
|
||||
std::string getClientTag()const;
|
||||
void setClientTag(const std::string& clientTag);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getMaterialValue()const;
|
||||
void setMaterialValue(const std::string& materialValue);
|
||||
bool getDontSaveDB()const;
|
||||
void setDontSaveDB(bool dontSaveDB);
|
||||
|
||||
private:
|
||||
int maxNumPhotosPerCategory_;
|
||||
int maxFaceNum_;
|
||||
long resourceOwnerId_;
|
||||
std::string retAttributes_;
|
||||
std::string clientTag_;
|
||||
std::string sourceIp_;
|
||||
std::string bizType_;
|
||||
std::string materialValue_;
|
||||
bool dontSaveDB_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -61,14 +61,17 @@ namespace AlibabaCloud
|
||||
float rollAngle;
|
||||
float yawAngle;
|
||||
};
|
||||
std::string ethnicity;
|
||||
std::string facetype;
|
||||
Headpose headpose;
|
||||
std::string respirator;
|
||||
std::string glasses;
|
||||
float blur;
|
||||
Smiling smiling;
|
||||
Gender gender;
|
||||
float appearanceScore;
|
||||
int age;
|
||||
float facequal;
|
||||
int integrity;
|
||||
};
|
||||
FaceAttributes faceAttributes;
|
||||
FaceRect faceRect;
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT ElementSmartVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ElementSmartVerifyRequest();
|
||||
~ElementSmartVerifyRequest();
|
||||
|
||||
std::string getCertFile()const;
|
||||
void setCertFile(const std::string& certFile);
|
||||
std::string getCertNationalEmblemUrl()const;
|
||||
void setCertNationalEmblemUrl(const std::string& certNationalEmblemUrl);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertUrl()const;
|
||||
void setCertUrl(const std::string& certUrl);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string certFile_;
|
||||
std::string certNationalEmblemUrl_;
|
||||
std::string certName_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certUrl_;
|
||||
std::string certType_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_ELEMENTSMARTVERIFYREQUEST_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetMaterialsRequest();
|
||||
~GetMaterialsRequest();
|
||||
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string biz_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSREQUEST_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string facePic;
|
||||
std::string identificationNumber;
|
||||
std::string idCardStartDate;
|
||||
std::string address;
|
||||
std::string idCardFrontPic;
|
||||
std::string ethnicGroup;
|
||||
std::string authority;
|
||||
std::string sex;
|
||||
std::string idCardExpiry;
|
||||
std::string idCardType;
|
||||
std::string idCardBackPic;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
GetMaterialsResult();
|
||||
explicit GetMaterialsResult(const std::string &payload);
|
||||
~GetMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETMATERIALSRESULT_H_
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetStatusRequest();
|
||||
~GetStatusRequest();
|
||||
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string biz_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSREQUEST_H_
|
||||
@@ -1,65 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
|
||||
|
||||
GetStatusResult();
|
||||
explicit GetStatusResult(const std::string &payload);
|
||||
~GetStatusResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETSTATUSRESULT_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetVerifyTokenRequest();
|
||||
~GetVerifyTokenRequest();
|
||||
|
||||
std::string getBinding()const;
|
||||
void setBinding(const std::string& binding);
|
||||
std::string getVerifyConfigs()const;
|
||||
void setVerifyConfigs(const std::string& verifyConfigs);
|
||||
std::string getUserData()const;
|
||||
void setUserData(const std::string& userData);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
std::string binding_;
|
||||
std::string verifyConfigs_;
|
||||
std::string userData_;
|
||||
std::string biz_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENREQUEST_H_
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT GetVerifyTokenResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyToken
|
||||
{
|
||||
std::string token;
|
||||
int durationSeconds;
|
||||
};
|
||||
struct StsToken
|
||||
{
|
||||
std::string path;
|
||||
std::string bucketName;
|
||||
std::string accessKeyId;
|
||||
std::string accessKeySecret;
|
||||
std::string expiration;
|
||||
std::string token;
|
||||
std::string endPoint;
|
||||
};
|
||||
StsToken stsToken;
|
||||
std::string cloudauthPageUrl;
|
||||
VerifyToken verifyToken;
|
||||
};
|
||||
|
||||
|
||||
GetVerifyTokenResult();
|
||||
explicit GetVerifyTokenResult(const std::string &payload);
|
||||
~GetVerifyTokenResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_GETVERIFYTOKENRESULT_H_
|
||||
@@ -73,6 +73,8 @@ namespace AlibabaCloud
|
||||
void setReturnUrl(const std::string& returnUrl);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
@@ -94,6 +96,7 @@ namespace AlibabaCloud
|
||||
std::string callbackToken_;
|
||||
std::string returnUrl_;
|
||||
std::string callbackUrl_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,105 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT InitSmartVerifyRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
InitSmartVerifyRequest();
|
||||
~InitSmartVerifyRequest();
|
||||
|
||||
std::string getIdName()const;
|
||||
void setIdName(const std::string& idName);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
std::string getCertifyId()const;
|
||||
void setCertifyId(const std::string& certifyId);
|
||||
std::string getFacePictureBase64()const;
|
||||
void setFacePictureBase64(const std::string& facePictureBase64);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getCertNo()const;
|
||||
void setCertNo(const std::string& certNo);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getCertType()const;
|
||||
void setCertType(const std::string& certType);
|
||||
std::string getMetaInfo()const;
|
||||
void setMetaInfo(const std::string& metaInfo);
|
||||
std::string getOcr()const;
|
||||
void setOcr(const std::string& ocr);
|
||||
std::string getOssObjectName()const;
|
||||
void setOssObjectName(const std::string& ossObjectName);
|
||||
std::string getFacePictureUrl()const;
|
||||
void setFacePictureUrl(const std::string& facePictureUrl);
|
||||
std::string getIp()const;
|
||||
void setIp(const std::string& ip);
|
||||
std::string getCertName()const;
|
||||
void setCertName(const std::string& certName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getIdNo()const;
|
||||
void setIdNo(const std::string& idNo);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
std::string getCallbackToken()const;
|
||||
void setCallbackToken(const std::string& callbackToken);
|
||||
std::string getOssBucketName()const;
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getCallbackUrl()const;
|
||||
void setCallbackUrl(const std::string& callbackUrl);
|
||||
|
||||
private:
|
||||
std::string idName_;
|
||||
std::string userId_;
|
||||
std::string certifyId_;
|
||||
std::string facePictureBase64_;
|
||||
std::string mode_;
|
||||
std::string certNo_;
|
||||
std::string outerOrderNo_;
|
||||
std::string certType_;
|
||||
std::string metaInfo_;
|
||||
std::string ocr_;
|
||||
std::string ossObjectName_;
|
||||
std::string facePictureUrl_;
|
||||
std::string ip_;
|
||||
std::string certName_;
|
||||
std::string mobile_;
|
||||
std::string idNo_;
|
||||
long sceneId_;
|
||||
std::string callbackToken_;
|
||||
std::string ossBucketName_;
|
||||
std::string callbackUrl_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_INITSMARTVERIFYREQUEST_H_
|
||||
@@ -1,60 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT LivenessDetectRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
LivenessDetectRequest();
|
||||
~LivenessDetectRequest();
|
||||
|
||||
std::string getMediaCategory()const;
|
||||
void setMediaCategory(const std::string& mediaCategory);
|
||||
std::string getMediaUrl()const;
|
||||
void setMediaUrl(const std::string& mediaUrl);
|
||||
std::string getBizType()const;
|
||||
void setBizType(const std::string& bizType);
|
||||
std::string getBizId()const;
|
||||
void setBizId(const std::string& bizId);
|
||||
std::string getMediaFile()const;
|
||||
void setMediaFile(const std::string& mediaFile);
|
||||
|
||||
private:
|
||||
std::string mediaCategory_;
|
||||
std::string mediaUrl_;
|
||||
std::string bizType_;
|
||||
std::string bizId_;
|
||||
std::string mediaFile_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_LIVENESSDETECTREQUEST_H_
|
||||
@@ -61,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setOssBucketName(const std::string& ossBucketName);
|
||||
std::string getModel()const;
|
||||
void setModel(const std::string& model);
|
||||
std::string getCrop()const;
|
||||
void setCrop(const std::string& crop);
|
||||
|
||||
private:
|
||||
std::string productCode_;
|
||||
@@ -76,6 +78,7 @@ namespace AlibabaCloud
|
||||
long sceneId_;
|
||||
std::string ossBucketName_;
|
||||
std::string model_;
|
||||
std::string crop_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitMaterialsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitMaterialsResult();
|
||||
explicit SubmitMaterialsResult(const std::string &payload);
|
||||
~SubmitMaterialsResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITMATERIALSRESULT_H_
|
||||
@@ -1,66 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Material
|
||||
{
|
||||
std::string materialType;
|
||||
std::string value;
|
||||
};
|
||||
|
||||
public:
|
||||
SubmitVerificationRequest();
|
||||
~SubmitVerificationRequest();
|
||||
|
||||
long getResourceOwnerId()const;
|
||||
void setResourceOwnerId(long resourceOwnerId);
|
||||
std::string getBiz()const;
|
||||
void setBiz(const std::string& biz);
|
||||
std::string getSourceIp()const;
|
||||
void setSourceIp(const std::string& sourceIp);
|
||||
std::vector<Material> getMaterial()const;
|
||||
void setMaterial(const std::vector<Material>& material);
|
||||
std::string getTicketId()const;
|
||||
void setTicketId(const std::string& ticketId);
|
||||
|
||||
private:
|
||||
long resourceOwnerId_;
|
||||
std::string biz_;
|
||||
std::string sourceIp_;
|
||||
std::vector<Material> material_;
|
||||
std::string ticketId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONREQUEST_H_
|
||||
@@ -1,69 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT SubmitVerificationResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
struct VerifyStatus
|
||||
{
|
||||
std::string auditConclusions;
|
||||
float trustedScore;
|
||||
float authorityComparisonScore;
|
||||
float similarityScore;
|
||||
int statusCode;
|
||||
};
|
||||
VerifyStatus verifyStatus;
|
||||
};
|
||||
|
||||
|
||||
SubmitVerificationResult();
|
||||
explicit SubmitVerificationResult(const std::string &payload);
|
||||
~SubmitVerificationResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_SUBMITVERIFICATIONRESULT_H_
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyBankElementRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
VerifyBankElementRequest();
|
||||
~VerifyBankElementRequest();
|
||||
|
||||
std::string getIdName()const;
|
||||
void setIdName(const std::string& idName);
|
||||
std::string getMobile()const;
|
||||
void setMobile(const std::string& mobile);
|
||||
std::string getBankCardUrl()const;
|
||||
void setBankCardUrl(const std::string& bankCardUrl);
|
||||
std::string getIdNo()const;
|
||||
void setIdNo(const std::string& idNo);
|
||||
std::string getBankCardNo()const;
|
||||
void setBankCardNo(const std::string& bankCardNo);
|
||||
std::string getMode()const;
|
||||
void setMode(const std::string& mode);
|
||||
std::string getOuterOrderNo()const;
|
||||
void setOuterOrderNo(const std::string& outerOrderNo);
|
||||
std::string getBankCardFile()const;
|
||||
void setBankCardFile(const std::string& bankCardFile);
|
||||
long getSceneId()const;
|
||||
void setSceneId(long sceneId);
|
||||
|
||||
private:
|
||||
std::string idName_;
|
||||
std::string mobile_;
|
||||
std::string bankCardUrl_;
|
||||
std::string idNo_;
|
||||
std::string bankCardNo_;
|
||||
std::string mode_;
|
||||
std::string outerOrderNo_;
|
||||
std::string bankCardFile_;
|
||||
long sceneId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTREQUEST_H_
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_
|
||||
#define ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cloudauth/CloudauthExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cloudauth
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CLOUDAUTH_EXPORT VerifyBankElementResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResultObject
|
||||
{
|
||||
std::string passed;
|
||||
std::string certifyId;
|
||||
std::string materialInfo;
|
||||
std::string subCode;
|
||||
};
|
||||
|
||||
|
||||
VerifyBankElementResult();
|
||||
explicit VerifyBankElementResult(const std::string &payload);
|
||||
~VerifyBankElementResult();
|
||||
ResultObject getResultObject()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResultObject resultObject_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CLOUDAUTH_MODEL_VERIFYBANKELEMENTRESULT_H_
|
||||
@@ -31,21 +31,21 @@ CloudauthClient::CloudauthClient(const Credentials &credentials, const ClientCon
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(credentials), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentials, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::shared_ptr<CredentialsProvider>& credentialsProvider, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, credentialsProvider, configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(credentialsProvider, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::CloudauthClient(const std::string & accessKeyId, const std::string & accessKeySecret, const ClientConfiguration & configuration) :
|
||||
RpcServiceClient(SERVICE_NAME, std::make_shared<SimpleCredentialsProvider>(accessKeyId, accessKeySecret), configuration)
|
||||
{
|
||||
auto locationClient = std::make_shared<LocationClient>(accessKeyId, accessKeySecret, configuration);
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "cloudauth");
|
||||
endpointProvider_ = std::make_shared<EndpointProvider>(locationClient, configuration.regionId(), SERVICE_NAME, "");
|
||||
}
|
||||
|
||||
CloudauthClient::~CloudauthClient()
|
||||
@@ -159,42 +159,6 @@ CloudauthClient::ContrastFaceVerifyOutcomeCallable CloudauthClient::contrastFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ContrastSmartVerifyOutcome CloudauthClient::contrastSmartVerify(const ContrastSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ContrastSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ContrastSmartVerifyOutcome(ContrastSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return ContrastSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::contrastSmartVerifyAsync(const ContrastSmartVerifyRequest& request, const ContrastSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, contrastSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ContrastSmartVerifyOutcomeCallable CloudauthClient::contrastSmartVerifyCallable(const ContrastSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ContrastSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->contrastSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateAuthKeyOutcome CloudauthClient::createAuthKey(const CreateAuthKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +375,42 @@ CloudauthClient::CreateWhitelistOutcomeCallable CloudauthClient::createWhitelist
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistSettingOutcome CloudauthClient::createWhitelistSetting(const CreateWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWhitelistSettingOutcome(CreateWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return CreateWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::createWhitelistSettingAsync(const CreateWhitelistSettingRequest& request, const CreateWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::CreateWhitelistSettingOutcomeCallable CloudauthClient::createWhitelistSettingCallable(const CreateWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistOutcome CloudauthClient::deleteWhitelist(const DeleteWhitelistRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +447,42 @@ CloudauthClient::DeleteWhitelistOutcomeCallable CloudauthClient::deleteWhitelist
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistSettingOutcome CloudauthClient::deleteWhitelistSetting(const DeleteWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteWhitelistSettingOutcome(DeleteWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return DeleteWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::deleteWhitelistSettingAsync(const DeleteWhitelistSettingRequest& request, const DeleteWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DeleteWhitelistSettingOutcomeCallable CloudauthClient::deleteWhitelistSettingCallable(const DeleteWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeAppInfoOutcome CloudauthClient::describeAppInfo(const DescribeAppInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -735,42 +771,6 @@ CloudauthClient::DescribeSdkUrlOutcomeCallable CloudauthClient::describeSdkUrlCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSmartVerifyOutcome CloudauthClient::describeSmartVerify(const DescribeSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeSmartVerifyOutcome(DescribeSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return DescribeSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeSmartVerifyAsync(const DescribeSmartVerifyRequest& request, const DescribeSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeSmartVerifyOutcomeCallable CloudauthClient::describeSmartVerifyCallable(const DescribeSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeUpdatePackageResultOutcome CloudauthClient::describeUpdatePackageResult(const DescribeUpdatePackageResultRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1131,6 +1131,42 @@ CloudauthClient::DescribeWhitelistOutcomeCallable CloudauthClient::describeWhite
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistSettingOutcome CloudauthClient::describeWhitelistSetting(const DescribeWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeWhitelistSettingOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeWhitelistSettingOutcome(DescribeWhitelistSettingResult(outcome.result()));
|
||||
else
|
||||
return DescribeWhitelistSettingOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::describeWhitelistSettingAsync(const DescribeWhitelistSettingRequest& request, const DescribeWhitelistSettingAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeWhitelistSetting(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::DescribeWhitelistSettingOutcomeCallable CloudauthClient::describeWhitelistSettingCallable(const DescribeWhitelistSettingRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeWhitelistSettingOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeWhitelistSetting(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::DetectFaceAttributesOutcome CloudauthClient::detectFaceAttributes(const DetectFaceAttributesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1167,150 +1203,6 @@ CloudauthClient::DetectFaceAttributesOutcomeCallable CloudauthClient::detectFace
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::ElementSmartVerifyOutcome CloudauthClient::elementSmartVerify(const ElementSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ElementSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ElementSmartVerifyOutcome(ElementSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return ElementSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::elementSmartVerifyAsync(const ElementSmartVerifyRequest& request, const ElementSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, elementSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::ElementSmartVerifyOutcomeCallable CloudauthClient::elementSmartVerifyCallable(const ElementSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ElementSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->elementSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcome CloudauthClient::getMaterials(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetMaterialsOutcome(GetMaterialsResult(outcome.result()));
|
||||
else
|
||||
return GetMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getMaterialsAsync(const GetMaterialsRequest& request, const GetMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetMaterialsOutcomeCallable CloudauthClient::getMaterialsCallable(const GetMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcome CloudauthClient::getStatus(const GetStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetStatusOutcome(GetStatusResult(outcome.result()));
|
||||
else
|
||||
return GetStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getStatusAsync(const GetStatusRequest& request, const GetStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetStatusOutcomeCallable CloudauthClient::getStatusCallable(const GetStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcome CloudauthClient::getVerifyToken(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetVerifyTokenOutcome(GetVerifyTokenResult(outcome.result()));
|
||||
else
|
||||
return GetVerifyTokenOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::getVerifyTokenAsync(const GetVerifyTokenRequest& request, const GetVerifyTokenAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getVerifyToken(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::GetVerifyTokenOutcomeCallable CloudauthClient::getVerifyTokenCallable(const GetVerifyTokenRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetVerifyTokenOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getVerifyToken(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitDeviceOutcome CloudauthClient::initDevice(const InitDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1383,78 +1275,6 @@ CloudauthClient::InitFaceVerifyOutcomeCallable CloudauthClient::initFaceVerifyCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::InitSmartVerifyOutcome CloudauthClient::initSmartVerify(const InitSmartVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return InitSmartVerifyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return InitSmartVerifyOutcome(InitSmartVerifyResult(outcome.result()));
|
||||
else
|
||||
return InitSmartVerifyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::initSmartVerifyAsync(const InitSmartVerifyRequest& request, const InitSmartVerifyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, initSmartVerify(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::InitSmartVerifyOutcomeCallable CloudauthClient::initSmartVerifyCallable(const InitSmartVerifyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<InitSmartVerifyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->initSmartVerify(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessDetectOutcome CloudauthClient::livenessDetect(const LivenessDetectRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return LivenessDetectOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return LivenessDetectOutcome(LivenessDetectResult(outcome.result()));
|
||||
else
|
||||
return LivenessDetectOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::livenessDetectAsync(const LivenessDetectRequest& request, const LivenessDetectAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, livenessDetect(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessDetectOutcomeCallable CloudauthClient::livenessDetectCallable(const LivenessDetectRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<LivenessDetectOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->livenessDetect(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::LivenessFaceVerifyOutcome CloudauthClient::livenessFaceVerify(const LivenessFaceVerifyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1527,78 +1347,6 @@ CloudauthClient::ModifyDeviceInfoOutcomeCallable CloudauthClient::modifyDeviceIn
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcome CloudauthClient::submitMaterials(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitMaterialsOutcome(SubmitMaterialsResult(outcome.result()));
|
||||
else
|
||||
return SubmitMaterialsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitMaterialsAsync(const SubmitMaterialsRequest& request, const SubmitMaterialsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitMaterials(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitMaterialsOutcomeCallable CloudauthClient::submitMaterialsCallable(const SubmitMaterialsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitMaterialsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitMaterials(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcome CloudauthClient::submitVerification(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SubmitVerificationOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SubmitVerificationOutcome(SubmitVerificationResult(outcome.result()));
|
||||
else
|
||||
return SubmitVerificationOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::submitVerificationAsync(const SubmitVerificationRequest& request, const SubmitVerificationAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, submitVerification(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::SubmitVerificationOutcomeCallable CloudauthClient::submitVerificationCallable(const SubmitVerificationRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SubmitVerificationOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->submitVerification(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::UpdateAppPackageOutcome CloudauthClient::updateAppPackage(const UpdateAppPackageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,42 +1455,6 @@ CloudauthClient::UpdateVerifySettingOutcomeCallable CloudauthClient::updateVerif
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyBankElementOutcome CloudauthClient::verifyBankElement(const VerifyBankElementRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return VerifyBankElementOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return VerifyBankElementOutcome(VerifyBankElementResult(outcome.result()));
|
||||
else
|
||||
return VerifyBankElementOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CloudauthClient::verifyBankElementAsync(const VerifyBankElementRequest& request, const VerifyBankElementAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, verifyBankElement(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyBankElementOutcomeCallable CloudauthClient::verifyBankElementCallable(const VerifyBankElementRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<VerifyBankElementOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->verifyBankElement(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CloudauthClient::VerifyDeviceOutcome CloudauthClient::verifyDevice(const VerifyDeviceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -170,3 +170,14 @@ void CompareFaceVerifyRequest::setSourceCertifyId(const std::string& sourceCerti
|
||||
setBodyParameter("SourceCertifyId", sourceCertifyId);
|
||||
}
|
||||
|
||||
std::string CompareFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void CompareFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,16 +40,16 @@ void CompareFaceVerifyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["VerifyScore"].isNull())
|
||||
resultObject_.verifyScore = std::stof(resultObjectNode["VerifyScore"].asString());
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!resultObjectNode["VerifyScore"].isNull())
|
||||
resultObject_.verifyScore = std::stof(resultObjectNode["VerifyScore"].asString());
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::CompareFacesRequest;
|
||||
|
||||
CompareFacesRequest::CompareFacesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CompareFaces")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CompareFaces")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -38,17 +38,6 @@ void CompareFacesRequest::setSourceImageType(const std::string& sourceImageType)
|
||||
setBodyParameter("SourceImageType", sourceImageType);
|
||||
}
|
||||
|
||||
long CompareFacesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getTargetImageType()const
|
||||
{
|
||||
return targetImageType_;
|
||||
@@ -71,15 +60,15 @@ void CompareFacesRequest::setTargetImageValue(const std::string& targetImageValu
|
||||
setBodyParameter("TargetImageValue", targetImageValue);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceIp()const
|
||||
std::string CompareFacesRequest::getBizType()const
|
||||
{
|
||||
return sourceIp_;
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void CompareFacesRequest::setSourceIp(const std::string& sourceIp)
|
||||
void CompareFacesRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string CompareFacesRequest::getSourceImageValue()const
|
||||
|
||||
@@ -214,3 +214,14 @@ void ContrastFaceVerifyRequest::setOssBucketName(const std::string& ossBucketNam
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string ContrastFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void ContrastFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void ContrastFaceVerifyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["IdentityInfo"].isNull())
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["IdentityInfo"].isNull())
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,161 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ContrastSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ContrastSmartVerifyRequest;
|
||||
|
||||
ContrastSmartVerifyRequest::ContrastSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "ContrastSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ContrastSmartVerifyRequest::~ContrastSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicFile()const
|
||||
{
|
||||
return facePicFile_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicFile(const std::string& facePicFile)
|
||||
{
|
||||
facePicFile_ = facePicFile;
|
||||
setBodyParameter("FacePicFile", facePicFile);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicString()const
|
||||
{
|
||||
return facePicString_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicString(const std::string& facePicString)
|
||||
{
|
||||
facePicString_ = facePicString;
|
||||
setBodyParameter("FacePicString", facePicString);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getFacePicUrl()const
|
||||
{
|
||||
return facePicUrl_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setFacePicUrl(const std::string& facePicUrl)
|
||||
{
|
||||
facePicUrl_ = facePicUrl;
|
||||
setBodyParameter("FacePicUrl", facePicUrl);
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long ContrastSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void ContrastSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -1,74 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ContrastSmartVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ContrastSmartVerifyResult::ContrastSmartVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ContrastSmartVerifyResult::ContrastSmartVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ContrastSmartVerifyResult::~ContrastSmartVerifyResult()
|
||||
{}
|
||||
|
||||
void ContrastSmartVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["VerifyInfo"].isNull())
|
||||
resultObject_.verifyInfo = resultObjectNode["VerifyInfo"].asString();
|
||||
if(!resultObjectNode["RiskInfo"].isNull())
|
||||
resultObject_.riskInfo = resultObjectNode["RiskInfo"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
ContrastSmartVerifyResult::ResultObject ContrastSmartVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ContrastSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::CreateAuthKeyRequest;
|
||||
|
||||
CreateAuthKeyRequest::CreateAuthKeyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateAuthKey")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateAuthKey")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::CreateVerifySDKRequest;
|
||||
|
||||
CreateVerifySDKRequest::CreateVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "CreateVerifySDK")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateVerifySDK")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
106
cloudauth/src/model/CreateWhitelistSettingRequest.cc
Normal file
106
cloudauth/src/model/CreateWhitelistSettingRequest.cc
Normal file
@@ -0,0 +1,106 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/CreateWhitelistSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::CreateWhitelistSettingRequest;
|
||||
|
||||
CreateWhitelistSettingRequest::CreateWhitelistSettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "CreateWhitelistSetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWhitelistSettingRequest::~CreateWhitelistSettingRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int CreateWhitelistSettingRequest::getValidDay()const
|
||||
{
|
||||
return validDay_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setValidDay(int validDay)
|
||||
{
|
||||
validDay_ = validDay;
|
||||
setParameter("ValidDay", std::to_string(validDay));
|
||||
}
|
||||
|
||||
std::string CreateWhitelistSettingRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
long CreateWhitelistSettingRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void CreateWhitelistSettingRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -14,53 +14,38 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/InitSmartVerifyResult.h>
|
||||
#include <alibabacloud/cloudauth/model/CreateWhitelistSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
InitSmartVerifyResult::InitSmartVerifyResult() :
|
||||
CreateWhitelistSettingResult::CreateWhitelistSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
InitSmartVerifyResult::InitSmartVerifyResult(const std::string &payload) :
|
||||
CreateWhitelistSettingResult::CreateWhitelistSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
InitSmartVerifyResult::~InitSmartVerifyResult()
|
||||
CreateWhitelistSettingResult::~CreateWhitelistSettingResult()
|
||||
{}
|
||||
|
||||
void InitSmartVerifyResult::parse(const std::string &payload)
|
||||
void CreateWhitelistSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["ResultObject"].isNull())
|
||||
resultObject_ = value["ResultObject"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
InitSmartVerifyResult::ResultObject InitSmartVerifyResult::getResultObject()const
|
||||
bool CreateWhitelistSettingResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
73
cloudauth/src/model/DeleteWhitelistSettingRequest.cc
Normal file
73
cloudauth/src/model/DeleteWhitelistSettingRequest.cc
Normal file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DeleteWhitelistSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DeleteWhitelistSettingRequest;
|
||||
|
||||
DeleteWhitelistSettingRequest::DeleteWhitelistSettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DeleteWhitelistSetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteWhitelistSettingRequest::~DeleteWhitelistSettingRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
std::string DeleteWhitelistSettingRequest::getIds()const
|
||||
{
|
||||
return ids_;
|
||||
}
|
||||
|
||||
void DeleteWhitelistSettingRequest::setIds(const std::string& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
setParameter("Ids", ids);
|
||||
}
|
||||
|
||||
51
cloudauth/src/model/DeleteWhitelistSettingResult.cc
Normal file
51
cloudauth/src/model/DeleteWhitelistSettingResult.cc
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DeleteWhitelistSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DeleteWhitelistSettingResult::DeleteWhitelistSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteWhitelistSettingResult::DeleteWhitelistSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteWhitelistSettingResult::~DeleteWhitelistSettingResult()
|
||||
{}
|
||||
|
||||
void DeleteWhitelistSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ResultObject"].isNull())
|
||||
resultObject_ = value["ResultObject"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteWhitelistSettingResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeDeviceInfoRequest;
|
||||
|
||||
DescribeDeviceInfoRequest::DescribeDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeDeviceInfo")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeDeviceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -40,20 +40,20 @@ void DescribeFaceVerifyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["IdentityInfo"].isNull())
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["DeviceToken"].isNull())
|
||||
resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["IdentityInfo"].isNull())
|
||||
resultObject_.identityInfo = resultObjectNode["IdentityInfo"].asString();
|
||||
if(!resultObjectNode["DeviceToken"].isNull())
|
||||
resultObject_.deviceToken = resultObjectNode["DeviceToken"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,62 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeSmartVerifyRequest;
|
||||
|
||||
DescribeSmartVerifyRequest::DescribeSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "DescribeSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeSmartVerifyRequest::~DescribeSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeSmartVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string DescribeSmartVerifyRequest::getPictureReturnType()const
|
||||
{
|
||||
return pictureReturnType_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setPictureReturnType(const std::string& pictureReturnType)
|
||||
{
|
||||
pictureReturnType_ = pictureReturnType;
|
||||
setBodyParameter("PictureReturnType", pictureReturnType);
|
||||
}
|
||||
|
||||
long DescribeSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeSmartVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeSmartVerifyResult::DescribeSmartVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeSmartVerifyResult::DescribeSmartVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeSmartVerifyResult::~DescribeSmartVerifyResult()
|
||||
{}
|
||||
|
||||
void DescribeSmartVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["PassedScore"].isNull())
|
||||
resultObject_.passedScore = std::stof(resultObjectNode["PassedScore"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeSmartVerifyResult::ResultObject DescribeSmartVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string DescribeSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DescribeSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeVerifySDKRequest;
|
||||
|
||||
DescribeVerifySDKRequest::DescribeVerifySDKRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DescribeVerifySDK")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeVerifySDK")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
150
cloudauth/src/model/DescribeWhitelistSettingRequest.cc
Normal file
150
cloudauth/src/model/DescribeWhitelistSettingRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::DescribeWhitelistSettingRequest;
|
||||
|
||||
DescribeWhitelistSettingRequest::DescribeWhitelistSettingRequest() :
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DescribeWhitelistSetting")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeWhitelistSettingRequest::~DescribeWhitelistSettingRequest()
|
||||
{}
|
||||
|
||||
long DescribeWhitelistSettingRequest::getValidEndDate()const
|
||||
{
|
||||
return validEndDate_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setValidEndDate(long validEndDate)
|
||||
{
|
||||
validEndDate_ = validEndDate;
|
||||
setParameter("ValidEndDate", std::to_string(validEndDate));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
int DescribeWhitelistSettingRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getLang()const
|
||||
{
|
||||
return lang_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setLang(const std::string& lang)
|
||||
{
|
||||
lang_ = lang;
|
||||
setParameter("Lang", lang);
|
||||
}
|
||||
|
||||
int DescribeWhitelistSettingRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getServiceCode()const
|
||||
{
|
||||
return serviceCode_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setServiceCode(const std::string& serviceCode)
|
||||
{
|
||||
serviceCode_ = serviceCode;
|
||||
setParameter("ServiceCode", serviceCode);
|
||||
}
|
||||
|
||||
long DescribeWhitelistSettingRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
long DescribeWhitelistSettingRequest::getValidStartDate()const
|
||||
{
|
||||
return validStartDate_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setValidStartDate(long validStartDate)
|
||||
{
|
||||
validStartDate_ = validStartDate;
|
||||
setParameter("ValidStartDate", std::to_string(validStartDate));
|
||||
}
|
||||
|
||||
std::string DescribeWhitelistSettingRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void DescribeWhitelistSettingRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
94
cloudauth/src/model/DescribeWhitelistSettingResult.cc
Normal file
94
cloudauth/src/model/DescribeWhitelistSettingResult.cc
Normal file
@@ -0,0 +1,94 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/DescribeWhitelistSettingResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeWhitelistSettingResult::DescribeWhitelistSettingResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeWhitelistSettingResult::~DescribeWhitelistSettingResult()
|
||||
{}
|
||||
|
||||
void DescribeWhitelistSettingResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allItemsNode = value["Items"]["Item"];
|
||||
for (auto valueItemsItem : allItemsNode)
|
||||
{
|
||||
Item itemsObject;
|
||||
if(!valueItemsItem["Id"].isNull())
|
||||
itemsObject.id = std::stol(valueItemsItem["Id"].asString());
|
||||
if(!valueItemsItem["SceneId"].isNull())
|
||||
itemsObject.sceneId = std::stol(valueItemsItem["SceneId"].asString());
|
||||
if(!valueItemsItem["ValidStartDate"].isNull())
|
||||
itemsObject.validStartDate = valueItemsItem["ValidStartDate"].asString();
|
||||
if(!valueItemsItem["ValidEndDate"].isNull())
|
||||
itemsObject.validEndDate = valueItemsItem["ValidEndDate"].asString();
|
||||
if(!valueItemsItem["CertNo"].isNull())
|
||||
itemsObject.certNo = valueItemsItem["CertNo"].asString();
|
||||
if(!valueItemsItem["CertifyId"].isNull())
|
||||
itemsObject.certifyId = valueItemsItem["CertifyId"].asString();
|
||||
if(!valueItemsItem["Status"].isNull())
|
||||
itemsObject.status = valueItemsItem["Status"].asString();
|
||||
if(!valueItemsItem["GmtCreate"].isNull())
|
||||
itemsObject.gmtCreate = valueItemsItem["GmtCreate"].asString();
|
||||
if(!valueItemsItem["GmtModified"].isNull())
|
||||
itemsObject.gmtModified = valueItemsItem["GmtModified"].asString();
|
||||
items_.push_back(itemsObject);
|
||||
}
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["CurrentPage"].isNull())
|
||||
currentPage_ = std::stoi(value["CurrentPage"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeWhitelistSettingResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
int DescribeWhitelistSettingResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeWhitelistSettingResult::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeWhitelistSettingResult::Item> DescribeWhitelistSettingResult::getItems()const
|
||||
{
|
||||
return items_;
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::DetectFaceAttributesRequest;
|
||||
|
||||
DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "DetectFaceAttributes")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "DetectFaceAttributes")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
@@ -27,70 +27,15 @@ DetectFaceAttributesRequest::DetectFaceAttributesRequest() :
|
||||
DetectFaceAttributesRequest::~DetectFaceAttributesRequest()
|
||||
{}
|
||||
|
||||
int DetectFaceAttributesRequest::getMaxNumPhotosPerCategory()const
|
||||
std::string DetectFaceAttributesRequest::getBizType()const
|
||||
{
|
||||
return maxNumPhotosPerCategory_;
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setMaxNumPhotosPerCategory(int maxNumPhotosPerCategory)
|
||||
void DetectFaceAttributesRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
maxNumPhotosPerCategory_ = maxNumPhotosPerCategory;
|
||||
setBodyParameter("MaxNumPhotosPerCategory", std::to_string(maxNumPhotosPerCategory));
|
||||
}
|
||||
|
||||
int DetectFaceAttributesRequest::getMaxFaceNum()const
|
||||
{
|
||||
return maxFaceNum_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setMaxFaceNum(int maxFaceNum)
|
||||
{
|
||||
maxFaceNum_ = maxFaceNum;
|
||||
setBodyParameter("MaxFaceNum", std::to_string(maxFaceNum));
|
||||
}
|
||||
|
||||
long DetectFaceAttributesRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getRetAttributes()const
|
||||
{
|
||||
return retAttributes_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setRetAttributes(const std::string& retAttributes)
|
||||
{
|
||||
retAttributes_ = retAttributes;
|
||||
setBodyParameter("RetAttributes", retAttributes);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getClientTag()const
|
||||
{
|
||||
return clientTag_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setClientTag(const std::string& clientTag)
|
||||
{
|
||||
clientTag_ = clientTag;
|
||||
setBodyParameter("ClientTag", clientTag);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string DetectFaceAttributesRequest::getMaterialValue()const
|
||||
@@ -104,14 +49,3 @@ void DetectFaceAttributesRequest::setMaterialValue(const std::string& materialVa
|
||||
setBodyParameter("MaterialValue", materialValue);
|
||||
}
|
||||
|
||||
bool DetectFaceAttributesRequest::getDontSaveDB()const
|
||||
{
|
||||
return dontSaveDB_;
|
||||
}
|
||||
|
||||
void DetectFaceAttributesRequest::setDontSaveDB(bool dontSaveDB)
|
||||
{
|
||||
dontSaveDB_ = dontSaveDB;
|
||||
setBodyParameter("DontSaveDB", dontSaveDB ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -66,8 +66,14 @@ void DetectFaceAttributesResult::parse(const std::string &payload)
|
||||
faceAttributesDetectInfoObject.faceAttributes.facetype = faceAttributesNode["Facetype"].asString();
|
||||
if(!faceAttributesNode["Blur"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.blur = std::stof(faceAttributesNode["Blur"].asString());
|
||||
if(!faceAttributesNode["Ethnicity"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.ethnicity = faceAttributesNode["Ethnicity"].asString();
|
||||
if(!faceAttributesNode["Facequal"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.facequal = std::stof(faceAttributesNode["Facequal"].asString());
|
||||
if(!faceAttributesNode["Integrity"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.integrity = std::stoi(faceAttributesNode["Integrity"].asString());
|
||||
if(!faceAttributesNode["Respirator"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.respirator = faceAttributesNode["Respirator"].asString();
|
||||
if(!faceAttributesNode["AppearanceScore"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.appearanceScore = std::stof(faceAttributesNode["AppearanceScore"].asString());
|
||||
auto genderNode = faceAttributesNode["Gender"];
|
||||
if(!genderNode["Score"].isNull())
|
||||
faceAttributesDetectInfoObject.faceAttributes.gender.score = std::stof(genderNode["Score"].asString());
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ElementSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::ElementSmartVerifyRequest;
|
||||
|
||||
ElementSmartVerifyRequest::ElementSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "ElementSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ElementSmartVerifyRequest::~ElementSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertFile()const
|
||||
{
|
||||
return certFile_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertFile(const std::string& certFile)
|
||||
{
|
||||
certFile_ = certFile;
|
||||
setBodyParameter("CertFile", certFile);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertNationalEmblemUrl()const
|
||||
{
|
||||
return certNationalEmblemUrl_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertNationalEmblemUrl(const std::string& certNationalEmblemUrl)
|
||||
{
|
||||
certNationalEmblemUrl_ = certNationalEmblemUrl;
|
||||
setBodyParameter("CertNationalEmblemUrl", certNationalEmblemUrl);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertUrl()const
|
||||
{
|
||||
return certUrl_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertUrl(const std::string& certUrl)
|
||||
{
|
||||
certUrl_ = certUrl;
|
||||
setBodyParameter("CertUrl", certUrl);
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
long ElementSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void ElementSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/ElementSmartVerifyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
ElementSmartVerifyResult::ElementSmartVerifyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ElementSmartVerifyResult::ElementSmartVerifyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ElementSmartVerifyResult::~ElementSmartVerifyResult()
|
||||
{}
|
||||
|
||||
void ElementSmartVerifyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
ElementSmartVerifyResult::ResultObject ElementSmartVerifyResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ElementSmartVerifyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetMaterialsRequest;
|
||||
|
||||
GetMaterialsRequest::GetMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetMaterials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetMaterialsRequest::~GetMaterialsRequest()
|
||||
{}
|
||||
|
||||
std::string GetMaterialsRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetMaterialsRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetMaterialsRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetMaterialsResult::GetMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetMaterialsResult::~GetMaterialsResult()
|
||||
{}
|
||||
|
||||
void GetMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["Name"].isNull())
|
||||
data_.name = dataNode["Name"].asString();
|
||||
if(!dataNode["IdentificationNumber"].isNull())
|
||||
data_.identificationNumber = dataNode["IdentificationNumber"].asString();
|
||||
if(!dataNode["IdCardType"].isNull())
|
||||
data_.idCardType = dataNode["IdCardType"].asString();
|
||||
if(!dataNode["IdCardStartDate"].isNull())
|
||||
data_.idCardStartDate = dataNode["IdCardStartDate"].asString();
|
||||
if(!dataNode["IdCardExpiry"].isNull())
|
||||
data_.idCardExpiry = dataNode["IdCardExpiry"].asString();
|
||||
if(!dataNode["Address"].isNull())
|
||||
data_.address = dataNode["Address"].asString();
|
||||
if(!dataNode["Sex"].isNull())
|
||||
data_.sex = dataNode["Sex"].asString();
|
||||
if(!dataNode["IdCardFrontPic"].isNull())
|
||||
data_.idCardFrontPic = dataNode["IdCardFrontPic"].asString();
|
||||
if(!dataNode["IdCardBackPic"].isNull())
|
||||
data_.idCardBackPic = dataNode["IdCardBackPic"].asString();
|
||||
if(!dataNode["FacePic"].isNull())
|
||||
data_.facePic = dataNode["FacePic"].asString();
|
||||
if(!dataNode["EthnicGroup"].isNull())
|
||||
data_.ethnicGroup = dataNode["EthnicGroup"].asString();
|
||||
if(!dataNode["Authority"].isNull())
|
||||
data_.authority = dataNode["Authority"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetMaterialsResult::Data GetMaterialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,51 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetStatusRequest;
|
||||
|
||||
GetStatusRequest::GetStatusRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetStatusRequest::~GetStatusRequest()
|
||||
{}
|
||||
|
||||
std::string GetStatusRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetStatusRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetStatusRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
@@ -1,81 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetStatusResult::GetStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetStatusResult::GetStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetStatusResult::~GetStatusResult()
|
||||
{}
|
||||
|
||||
void GetStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["StatusCode"].isNull())
|
||||
data_.statusCode = std::stoi(dataNode["StatusCode"].asString());
|
||||
if(!dataNode["TrustedScore"].isNull())
|
||||
data_.trustedScore = std::stof(dataNode["TrustedScore"].asString());
|
||||
if(!dataNode["SimilarityScore"].isNull())
|
||||
data_.similarityScore = std::stof(dataNode["SimilarityScore"].asString());
|
||||
if(!dataNode["AuditConclusions"].isNull())
|
||||
data_.auditConclusions = dataNode["AuditConclusions"].asString();
|
||||
if(!dataNode["AuthorityComparisonScore"].isNull())
|
||||
data_.authorityComparisonScore = std::stof(dataNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetStatusResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetStatusResult::Data GetStatusResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetStatusResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetStatusResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetVerifyTokenRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::GetVerifyTokenRequest;
|
||||
|
||||
GetVerifyTokenRequest::GetVerifyTokenRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "GetVerifyToken")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetVerifyTokenRequest::~GetVerifyTokenRequest()
|
||||
{}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBinding()const
|
||||
{
|
||||
return binding_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setBinding(const std::string& binding)
|
||||
{
|
||||
binding_ = binding;
|
||||
setBodyParameter("Binding", binding);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getVerifyConfigs()const
|
||||
{
|
||||
return verifyConfigs_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setVerifyConfigs(const std::string& verifyConfigs)
|
||||
{
|
||||
verifyConfigs_ = verifyConfigs;
|
||||
setParameter("VerifyConfigs", verifyConfigs);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getUserData()const
|
||||
{
|
||||
return userData_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setUserData(const std::string& userData)
|
||||
{
|
||||
userData_ = userData;
|
||||
setParameter("UserData", userData);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void GetVerifyTokenRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
@@ -1,93 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/GetVerifyTokenResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetVerifyTokenResult::GetVerifyTokenResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::~GetVerifyTokenResult()
|
||||
{}
|
||||
|
||||
void GetVerifyTokenResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
if(!dataNode["CloudauthPageUrl"].isNull())
|
||||
data_.cloudauthPageUrl = dataNode["CloudauthPageUrl"].asString();
|
||||
auto verifyTokenNode = dataNode["VerifyToken"];
|
||||
if(!verifyTokenNode["Token"].isNull())
|
||||
data_.verifyToken.token = verifyTokenNode["Token"].asString();
|
||||
if(!verifyTokenNode["DurationSeconds"].isNull())
|
||||
data_.verifyToken.durationSeconds = std::stoi(verifyTokenNode["DurationSeconds"].asString());
|
||||
auto stsTokenNode = dataNode["StsToken"];
|
||||
if(!stsTokenNode["AccessKeyId"].isNull())
|
||||
data_.stsToken.accessKeyId = stsTokenNode["AccessKeyId"].asString();
|
||||
if(!stsTokenNode["AccessKeySecret"].isNull())
|
||||
data_.stsToken.accessKeySecret = stsTokenNode["AccessKeySecret"].asString();
|
||||
if(!stsTokenNode["Expiration"].isNull())
|
||||
data_.stsToken.expiration = stsTokenNode["Expiration"].asString();
|
||||
if(!stsTokenNode["EndPoint"].isNull())
|
||||
data_.stsToken.endPoint = stsTokenNode["EndPoint"].asString();
|
||||
if(!stsTokenNode["BucketName"].isNull())
|
||||
data_.stsToken.bucketName = stsTokenNode["BucketName"].asString();
|
||||
if(!stsTokenNode["Path"].isNull())
|
||||
data_.stsToken.path = stsTokenNode["Path"].asString();
|
||||
if(!stsTokenNode["Token"].isNull())
|
||||
data_.stsToken.token = stsTokenNode["Token"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
GetVerifyTokenResult::Data GetVerifyTokenResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string GetVerifyTokenResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool GetVerifyTokenResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -236,3 +236,14 @@ void InitFaceVerifyRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
setParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
std::string InitFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void InitFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -44,10 +44,10 @@ void InitFaceVerifyResult::parse(const std::string &payload)
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!resultObjectNode["CertifyUrl"].isNull())
|
||||
resultObject_.certifyUrl = resultObjectNode["CertifyUrl"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -1,249 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/InitSmartVerifyRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::InitSmartVerifyRequest;
|
||||
|
||||
InitSmartVerifyRequest::InitSmartVerifyRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "InitSmartVerify")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
InitSmartVerifyRequest::~InitSmartVerifyRequest()
|
||||
{}
|
||||
|
||||
std::string InitSmartVerifyRequest::getIdName()const
|
||||
{
|
||||
return idName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setIdName(const std::string& idName)
|
||||
{
|
||||
idName_ = idName;
|
||||
setBodyParameter("IdName", idName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setBodyParameter("UserId", userId);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertifyId()const
|
||||
{
|
||||
return certifyId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertifyId(const std::string& certifyId)
|
||||
{
|
||||
certifyId_ = certifyId;
|
||||
setBodyParameter("CertifyId", certifyId);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getFacePictureBase64()const
|
||||
{
|
||||
return facePictureBase64_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setFacePictureBase64(const std::string& facePictureBase64)
|
||||
{
|
||||
facePictureBase64_ = facePictureBase64;
|
||||
setBodyParameter("FacePictureBase64", facePictureBase64);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertNo()const
|
||||
{
|
||||
return certNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertNo(const std::string& certNo)
|
||||
{
|
||||
certNo_ = certNo;
|
||||
setBodyParameter("CertNo", certNo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertType()const
|
||||
{
|
||||
return certType_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertType(const std::string& certType)
|
||||
{
|
||||
certType_ = certType;
|
||||
setBodyParameter("CertType", certType);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMetaInfo()const
|
||||
{
|
||||
return metaInfo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setMetaInfo(const std::string& metaInfo)
|
||||
{
|
||||
metaInfo_ = metaInfo;
|
||||
setBodyParameter("MetaInfo", metaInfo);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOcr()const
|
||||
{
|
||||
return ocr_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOcr(const std::string& ocr)
|
||||
{
|
||||
ocr_ = ocr;
|
||||
setBodyParameter("Ocr", ocr);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOssObjectName()const
|
||||
{
|
||||
return ossObjectName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOssObjectName(const std::string& ossObjectName)
|
||||
{
|
||||
ossObjectName_ = ossObjectName;
|
||||
setBodyParameter("OssObjectName", ossObjectName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getFacePictureUrl()const
|
||||
{
|
||||
return facePictureUrl_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setFacePictureUrl(const std::string& facePictureUrl)
|
||||
{
|
||||
facePictureUrl_ = facePictureUrl;
|
||||
setBodyParameter("FacePictureUrl", facePictureUrl);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setIp(const std::string& ip)
|
||||
{
|
||||
ip_ = ip;
|
||||
setBodyParameter("Ip", ip);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCertName()const
|
||||
{
|
||||
return certName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCertName(const std::string& certName)
|
||||
{
|
||||
certName_ = certName;
|
||||
setBodyParameter("CertName", certName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getIdNo()const
|
||||
{
|
||||
return idNo_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setIdNo(const std::string& idNo)
|
||||
{
|
||||
idNo_ = idNo;
|
||||
setBodyParameter("IdNo", idNo);
|
||||
}
|
||||
|
||||
long InitSmartVerifyRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCallbackToken()const
|
||||
{
|
||||
return callbackToken_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCallbackToken(const std::string& callbackToken)
|
||||
{
|
||||
callbackToken_ = callbackToken;
|
||||
setBodyParameter("CallbackToken", callbackToken);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getOssBucketName()const
|
||||
{
|
||||
return ossBucketName_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setOssBucketName(const std::string& ossBucketName)
|
||||
{
|
||||
ossBucketName_ = ossBucketName;
|
||||
setBodyParameter("OssBucketName", ossBucketName);
|
||||
}
|
||||
|
||||
std::string InitSmartVerifyRequest::getCallbackUrl()const
|
||||
{
|
||||
return callbackUrl_;
|
||||
}
|
||||
|
||||
void InitSmartVerifyRequest::setCallbackUrl(const std::string& callbackUrl)
|
||||
{
|
||||
callbackUrl_ = callbackUrl;
|
||||
setBodyParameter("CallbackUrl", callbackUrl);
|
||||
}
|
||||
|
||||
@@ -1,84 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessDetectRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::LivenessDetectRequest;
|
||||
|
||||
LivenessDetectRequest::LivenessDetectRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-11-12", "LivenessDetect")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
LivenessDetectRequest::~LivenessDetectRequest()
|
||||
{}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaCategory()const
|
||||
{
|
||||
return mediaCategory_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaCategory(const std::string& mediaCategory)
|
||||
{
|
||||
mediaCategory_ = mediaCategory;
|
||||
setBodyParameter("MediaCategory", mediaCategory);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaUrl()const
|
||||
{
|
||||
return mediaUrl_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaUrl(const std::string& mediaUrl)
|
||||
{
|
||||
mediaUrl_ = mediaUrl;
|
||||
setBodyParameter("MediaUrl", mediaUrl);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getBizType()const
|
||||
{
|
||||
return bizType_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setBizType(const std::string& bizType)
|
||||
{
|
||||
bizType_ = bizType;
|
||||
setBodyParameter("BizType", bizType);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getBizId()const
|
||||
{
|
||||
return bizId_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setBizId(const std::string& bizId)
|
||||
{
|
||||
bizId_ = bizId;
|
||||
setBodyParameter("BizId", bizId);
|
||||
}
|
||||
|
||||
std::string LivenessDetectRequest::getMediaFile()const
|
||||
{
|
||||
return mediaFile_;
|
||||
}
|
||||
|
||||
void LivenessDetectRequest::setMediaFile(const std::string& mediaFile)
|
||||
{
|
||||
mediaFile_ = mediaFile;
|
||||
setBodyParameter("MediaFile", mediaFile);
|
||||
}
|
||||
|
||||
@@ -1,70 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/LivenessDetectResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
LivenessDetectResult::LivenessDetectResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
LivenessDetectResult::LivenessDetectResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
LivenessDetectResult::~LivenessDetectResult()
|
||||
{}
|
||||
|
||||
void LivenessDetectResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["Score"].isNull())
|
||||
resultObject_.score = std::stof(resultObjectNode["Score"].asString());
|
||||
if(!resultObjectNode["FrameUrl"].isNull())
|
||||
resultObject_.frameUrl = resultObjectNode["FrameUrl"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
LivenessDetectResult::ResultObject LivenessDetectResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string LivenessDetectResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string LivenessDetectResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
@@ -170,3 +170,14 @@ void LivenessFaceVerifyRequest::setModel(const std::string& model)
|
||||
setParameter("Model", model);
|
||||
}
|
||||
|
||||
std::string LivenessFaceVerifyRequest::getCrop()const
|
||||
{
|
||||
return crop_;
|
||||
}
|
||||
|
||||
void LivenessFaceVerifyRequest::setCrop(const std::string& crop)
|
||||
{
|
||||
crop_ = crop;
|
||||
setBodyParameter("Crop", crop);
|
||||
}
|
||||
|
||||
|
||||
@@ -40,18 +40,18 @@ void LivenessFaceVerifyResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
using AlibabaCloud::Cloudauth::Model::ModifyDeviceInfoRequest;
|
||||
|
||||
ModifyDeviceInfoRequest::ModifyDeviceInfoRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "ModifyDeviceInfo")
|
||||
RpcServiceRequest("cloudauth", "2019-03-07", "ModifyDeviceInfo")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
@@ -1,78 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitMaterialsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitMaterialsRequest;
|
||||
|
||||
SubmitMaterialsRequest::SubmitMaterialsRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitMaterials")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitMaterialsRequest::~SubmitMaterialsRequest()
|
||||
{}
|
||||
|
||||
long SubmitMaterialsRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsRequest::getVerifyToken()const
|
||||
{
|
||||
return verifyToken_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setVerifyToken(const std::string& verifyToken)
|
||||
{
|
||||
verifyToken_ = verifyToken;
|
||||
setBodyParameter("VerifyToken", verifyToken);
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<SubmitMaterialsRequest::Material> SubmitMaterialsRequest::getMaterial()const
|
||||
{
|
||||
return material_;
|
||||
}
|
||||
|
||||
void SubmitMaterialsRequest::setMaterial(const std::vector<Material>& material)
|
||||
{
|
||||
material_ = material;
|
||||
for(int dep1 = 0; dep1!= material.size(); dep1++) {
|
||||
auto materialObj = material.at(dep1);
|
||||
std::string materialObjStr = "Material." + std::to_string(dep1 + 1);
|
||||
setParameter(materialObjStr + ".MaterialType", materialObj.materialType);
|
||||
setParameter(materialObjStr + ".Value", materialObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitMaterialsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitMaterialsResult::SubmitMaterialsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::~SubmitMaterialsResult()
|
||||
{}
|
||||
|
||||
void SubmitMaterialsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
|
||||
if(!verifyStatusNode["TrustedScore"].isNull())
|
||||
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
|
||||
if(!verifyStatusNode["SimilarityScore"].isNull())
|
||||
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
|
||||
if(!verifyStatusNode["AuditConclusions"].isNull())
|
||||
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
|
||||
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
|
||||
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitMaterialsResult::Data SubmitMaterialsResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitMaterialsResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubmitMaterialsResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,89 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitVerificationRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::SubmitVerificationRequest;
|
||||
|
||||
SubmitVerificationRequest::SubmitVerificationRequest() :
|
||||
RpcServiceRequest("cloudauth", "2018-09-16", "SubmitVerification")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SubmitVerificationRequest::~SubmitVerificationRequest()
|
||||
{}
|
||||
|
||||
long SubmitVerificationRequest::getResourceOwnerId()const
|
||||
{
|
||||
return resourceOwnerId_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setResourceOwnerId(long resourceOwnerId)
|
||||
{
|
||||
resourceOwnerId_ = resourceOwnerId;
|
||||
setParameter("ResourceOwnerId", std::to_string(resourceOwnerId));
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getBiz()const
|
||||
{
|
||||
return biz_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setBiz(const std::string& biz)
|
||||
{
|
||||
biz_ = biz;
|
||||
setBodyParameter("Biz", biz);
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getSourceIp()const
|
||||
{
|
||||
return sourceIp_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setSourceIp(const std::string& sourceIp)
|
||||
{
|
||||
sourceIp_ = sourceIp;
|
||||
setParameter("SourceIp", sourceIp);
|
||||
}
|
||||
|
||||
std::vector<SubmitVerificationRequest::Material> SubmitVerificationRequest::getMaterial()const
|
||||
{
|
||||
return material_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setMaterial(const std::vector<Material>& material)
|
||||
{
|
||||
material_ = material;
|
||||
for(int dep1 = 0; dep1!= material.size(); dep1++) {
|
||||
auto materialObj = material.at(dep1);
|
||||
std::string materialObjStr = "Material." + std::to_string(dep1 + 1);
|
||||
setParameter(materialObjStr + ".MaterialType", materialObj.materialType);
|
||||
setParameter(materialObjStr + ".Value", materialObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SubmitVerificationRequest::getTicketId()const
|
||||
{
|
||||
return ticketId_;
|
||||
}
|
||||
|
||||
void SubmitVerificationRequest::setTicketId(const std::string& ticketId)
|
||||
{
|
||||
ticketId_ = ticketId;
|
||||
setBodyParameter("TicketId", ticketId);
|
||||
}
|
||||
|
||||
@@ -1,82 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/SubmitVerificationResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SubmitVerificationResult::SubmitVerificationResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SubmitVerificationResult::~SubmitVerificationResult()
|
||||
{}
|
||||
|
||||
void SubmitVerificationResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto dataNode = value["Data"];
|
||||
auto verifyStatusNode = dataNode["VerifyStatus"];
|
||||
if(!verifyStatusNode["StatusCode"].isNull())
|
||||
data_.verifyStatus.statusCode = std::stoi(verifyStatusNode["StatusCode"].asString());
|
||||
if(!verifyStatusNode["TrustedScore"].isNull())
|
||||
data_.verifyStatus.trustedScore = std::stof(verifyStatusNode["TrustedScore"].asString());
|
||||
if(!verifyStatusNode["SimilarityScore"].isNull())
|
||||
data_.verifyStatus.similarityScore = std::stof(verifyStatusNode["SimilarityScore"].asString());
|
||||
if(!verifyStatusNode["AuditConclusions"].isNull())
|
||||
data_.verifyStatus.auditConclusions = verifyStatusNode["AuditConclusions"].asString();
|
||||
if(!verifyStatusNode["AuthorityComparisonScore"].isNull())
|
||||
data_.verifyStatus.authorityComparisonScore = std::stof(verifyStatusNode["AuthorityComparisonScore"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string SubmitVerificationResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
SubmitVerificationResult::Data SubmitVerificationResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::string SubmitVerificationResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool SubmitVerificationResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,128 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/VerifyBankElementRequest.h>
|
||||
|
||||
using AlibabaCloud::Cloudauth::Model::VerifyBankElementRequest;
|
||||
|
||||
VerifyBankElementRequest::VerifyBankElementRequest() :
|
||||
RpcServiceRequest("cloudauth", "2020-06-18", "VerifyBankElement")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
VerifyBankElementRequest::~VerifyBankElementRequest()
|
||||
{}
|
||||
|
||||
std::string VerifyBankElementRequest::getIdName()const
|
||||
{
|
||||
return idName_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setIdName(const std::string& idName)
|
||||
{
|
||||
idName_ = idName;
|
||||
setBodyParameter("IdName", idName);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getMobile()const
|
||||
{
|
||||
return mobile_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setMobile(const std::string& mobile)
|
||||
{
|
||||
mobile_ = mobile;
|
||||
setBodyParameter("Mobile", mobile);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getBankCardUrl()const
|
||||
{
|
||||
return bankCardUrl_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setBankCardUrl(const std::string& bankCardUrl)
|
||||
{
|
||||
bankCardUrl_ = bankCardUrl;
|
||||
setBodyParameter("BankCardUrl", bankCardUrl);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getIdNo()const
|
||||
{
|
||||
return idNo_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setIdNo(const std::string& idNo)
|
||||
{
|
||||
idNo_ = idNo;
|
||||
setBodyParameter("IdNo", idNo);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getBankCardNo()const
|
||||
{
|
||||
return bankCardNo_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setBankCardNo(const std::string& bankCardNo)
|
||||
{
|
||||
bankCardNo_ = bankCardNo;
|
||||
setBodyParameter("BankCardNo", bankCardNo);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getMode()const
|
||||
{
|
||||
return mode_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setMode(const std::string& mode)
|
||||
{
|
||||
mode_ = mode;
|
||||
setBodyParameter("Mode", mode);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getOuterOrderNo()const
|
||||
{
|
||||
return outerOrderNo_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setOuterOrderNo(const std::string& outerOrderNo)
|
||||
{
|
||||
outerOrderNo_ = outerOrderNo;
|
||||
setBodyParameter("OuterOrderNo", outerOrderNo);
|
||||
}
|
||||
|
||||
std::string VerifyBankElementRequest::getBankCardFile()const
|
||||
{
|
||||
return bankCardFile_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setBankCardFile(const std::string& bankCardFile)
|
||||
{
|
||||
bankCardFile_ = bankCardFile;
|
||||
setBodyParameter("BankCardFile", bankCardFile);
|
||||
}
|
||||
|
||||
long VerifyBankElementRequest::getSceneId()const
|
||||
{
|
||||
return sceneId_;
|
||||
}
|
||||
|
||||
void VerifyBankElementRequest::setSceneId(long sceneId)
|
||||
{
|
||||
sceneId_ = sceneId;
|
||||
setBodyParameter("SceneId", std::to_string(sceneId));
|
||||
}
|
||||
|
||||
@@ -1,72 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cloudauth/model/VerifyBankElementResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cloudauth;
|
||||
using namespace AlibabaCloud::Cloudauth::Model;
|
||||
|
||||
VerifyBankElementResult::VerifyBankElementResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
VerifyBankElementResult::VerifyBankElementResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
VerifyBankElementResult::~VerifyBankElementResult()
|
||||
{}
|
||||
|
||||
void VerifyBankElementResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto resultObjectNode = value["ResultObject"];
|
||||
if(!resultObjectNode["Passed"].isNull())
|
||||
resultObject_.passed = resultObjectNode["Passed"].asString();
|
||||
if(!resultObjectNode["SubCode"].isNull())
|
||||
resultObject_.subCode = resultObjectNode["SubCode"].asString();
|
||||
if(!resultObjectNode["MaterialInfo"].isNull())
|
||||
resultObject_.materialInfo = resultObjectNode["MaterialInfo"].asString();
|
||||
if(!resultObjectNode["CertifyId"].isNull())
|
||||
resultObject_.certifyId = resultObjectNode["CertifyId"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
|
||||
}
|
||||
|
||||
VerifyBankElementResult::ResultObject VerifyBankElementResult::getResultObject()const
|
||||
{
|
||||
return resultObject_;
|
||||
}
|
||||
|
||||
std::string VerifyBankElementResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string VerifyBankElementResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user