Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LG-14171: add liveness_checking_required to all selfie events #11292

Merged
merged 1 commit into from
Oct 1, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 44 additions & 22 deletions app/services/analytics_events.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4356,14 +4356,21 @@ def idv_sdk_error_before_init(
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# (previously called "attempt")
# @param [Integer] selfie_attempts number of times SDK captured selfie, user may decide to retake
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
# rubocop:disable Naming/VariableName,Naming/MethodParameterName
def idv_sdk_selfie_image_capture_closed_without_photo(acuant_version:, captureAttempts: nil,
selfie_attempts: nil, **extra)
def idv_sdk_selfie_image_capture_closed_without_photo(
acuant_version:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_capture_closed_without_photo,
acuant_version: acuant_version,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand All @@ -4378,22 +4385,25 @@ def idv_sdk_selfie_image_capture_closed_without_photo(acuant_version:, captureAt
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# (previously called "attempt")
# @param [Integer] selfie_attempts number of times SDK captured selfie, user may decide to retake
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
# rubocop:disable Naming/VariableName,Naming/MethodParameterName
def idv_sdk_selfie_image_capture_failed(
acuant_version:,
sdk_error_code:,
sdk_error_message:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_capture_failed,
acuant_version: acuant_version,
sdk_error_code: sdk_error_code,
sdk_error_message: sdk_error_message,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
sdk_error_code:,
sdk_error_message:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand All @@ -4403,17 +4413,20 @@ def idv_sdk_selfie_image_capture_failed(
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# (previously called "attempt")
# @param [Integer] selfie_attempts number of times SDK captured selfie, user may decide to retake
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
def idv_sdk_selfie_image_capture_initialized(
acuant_version:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_capture_initialized,
acuant_version: acuant_version,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand All @@ -4424,18 +4437,21 @@ def idv_sdk_selfie_image_capture_initialized(
# @param [String] acuant_version
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# @param [Integer] selfie_attempts number of times SDK captured selfie, user may decide to retake
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
# rubocop:disable Naming/VariableName,Naming/MethodParameterName
def idv_sdk_selfie_image_capture_opened(
acuant_version:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_capture_opened,
acuant_version: acuant_version,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand All @@ -4444,17 +4460,20 @@ def idv_sdk_selfie_image_capture_opened(
# @param [String] acuant_version
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# @param [Integer] selfie_attempts number of selfie captured by SDK
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
def idv_sdk_selfie_image_re_taken(
acuant_version:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_re_taken,
acuant_version: acuant_version,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand All @@ -4463,17 +4482,20 @@ def idv_sdk_selfie_image_re_taken(
# @param [String] acuant_version
# @param [Integer] captureAttempts number of attempts to capture / upload an image
# @param [Integer] selfie_attempts number of selfie captured by SDK
# @param [Boolean] liveness_checking_required Whether or not the selfie is required
def idv_sdk_selfie_image_taken(
acuant_version:,
captureAttempts: nil,
selfie_attempts: nil,
liveness_checking_required: true, # default to true to facilitate CW filtering
**extra
)
track_event(
:idv_sdk_selfie_image_taken,
acuant_version: acuant_version,
captureAttempts: captureAttempts,
selfie_attempts: selfie_attempts,
acuant_version:,
captureAttempts:,
selfie_attempts:,
liveness_checking_required:,
**extra,
)
end
Expand Down