diff --git a/incognia.go b/incognia.go index 43982da..9dc3cfb 100644 --- a/incognia.go +++ b/incognia.go @@ -22,7 +22,6 @@ var ( ErrMissingInstallationIDOrSessionToken = errors.New("missing installation id or session token") ErrMissingAccountID = errors.New("missing account id") ErrMissingSignupID = errors.New("missing signup id") - ErrInvalidFeedbackType = errors.New("invalid feedback type") ErrMissingClientIDOrClientSecret = errors.New("client id and client secret are required") ErrConfigIsNil = errors.New("incognia client config is required") ) diff --git a/request_types.go b/request_types.go index 16fee52..5d2a541 100644 --- a/request_types.go +++ b/request_types.go @@ -33,28 +33,31 @@ type postAssessmentRequestBody struct { type FeedbackType string const ( - PaymentAccepted FeedbackType = "payment_accepted" - PaymentDeclined FeedbackType = "payment_declined" - PaymentDeclinedByRiskAnalysis FeedbackType = "payment_declined_by_risk_analysis" - PaymentDeclinedByAcquirer FeedbackType = "payment_declined_by_acquirer" - PaymentDeclinedByBusiness FeedbackType = "payment_declined_by_business" - PaymentDeclinedByManualReview FeedbackType = "payment_declined_by_manual_review" - PaymentAcceptedByThirdParty FeedbackType = "payment_accepted_by_third_party" - LoginAccepted FeedbackType = "login_accepted" - LoginDeclined FeedbackType = "login_declined" - SignupAccepted FeedbackType = "signup_accepted" - SignupDeclined FeedbackType = "signup_declined" - ChallengePassed FeedbackType = "challenge_passed" - ChallengeFailed FeedbackType = "challenge_failed" - PasswordChangedSuccessfully FeedbackType = "password_changed_successfully" - PasswordChangeFailed FeedbackType = "password_change_failed" - Verified FeedbackType = "verified" - NotVerified FeedbackType = "not_verified" - Chargeback FeedbackType = "chargeback" - PromotionAbuse FeedbackType = "promotion_abuse" - AccountTakeover FeedbackType = "account_takeover" - MposFraud FeedbackType = "mpos_fraud" - ChargebackNotification FeedbackType = "chargeback_notification" + AccountAllowed FeedbackType = "account_allowed" + DeviceAllowed FeedbackType = "device_allowed" + Verified FeedbackType = "verified" + Reset FeedbackType = "reset" + AccountTakeover FeedbackType = "account_takeover" + IdentityFraud FeedbackType = "identity_fraud" + Chargeback FeedbackType = "chargeback" + ChargebackNotification FeedbackType = "chargeback_notification" + LoginAccepted FeedbackType = "login_accepted" + LoginAcceptedByDeviceVerification FeedbackType = "login_accepted_by_device_verification" + LoginAcceptedByFacialBiometrics FeedbackType = "login_accepted_by_facial_biometrics" + LoginAcceptedByManualReview FeedbackType = "login_accepted_by_manual_review" + LoginDeclined FeedbackType = "login_declined" + LoginDeclinedByFacialBiometrics FeedbackType = "login_declined_by_facial_biometrics" + LoginDeclinedByManualReview FeedbackType = "login_declined_by_manual_review" + PaymentAccepted FeedbackType = "payment_accepted" + PaymentAcceptedByControlGroup FeedbackType = "payment_accepted_by_control_group" + PaymentAcceptedByThirdParty FeedbackType = "payment_accepted_by_third_party" + PaymentDeclined FeedbackType = "payment_declined" + PaymentDeclinedByAcquirer FeedbackType = "payment_declined_by_acquirer" + PaymentDeclinedByBusiness FeedbackType = "payment_declined_by_business" + PaymentDeclinedByManualReview FeedbackType = "payment_declined_by_manual_review" + PaymentDeclinedByRiskAnalysis FeedbackType = "payment_declined_by_risk_analysis" + SignupAccepted FeedbackType = "signup_accepted" + SignupDeclined FeedbackType = "signup_declined" ) type postFeedbackRequestBody struct {