Class: Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Identity::VerificationSessionService::UpdateParams::Options::Document
- Defined in:
- lib/stripe/services/identity/verification_session_service.rb
Instance Attribute Summary collapse
-
#allowed_types ⇒ Object
Array of strings of allowed identity document types.
-
#require_id_number ⇒ Object
Collect an ID number and perform an [ID number check](stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth.
-
#require_live_capture ⇒ Object
Disable image uploads, identity document images have to be captured using the device’s camera.
-
#require_matching_selfie ⇒ Object
Capture a face image and perform a [selfie check](stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face.
Instance Method Summary collapse
-
#initialize(allowed_types: nil, require_id_number: nil, require_live_capture: nil, require_matching_selfie: nil) ⇒ Document
constructor
A new instance of Document.
Methods inherited from RequestParams
Constructor Details
#initialize(allowed_types: nil, require_id_number: nil, require_live_capture: nil, require_matching_selfie: nil) ⇒ Document
Returns a new instance of Document.
169 170 171 172 173 174 175 176 177 178 179 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 169 def initialize( allowed_types: nil, require_id_number: nil, require_live_capture: nil, require_matching_selfie: nil ) @allowed_types = allowed_types @require_id_number = require_id_number @require_live_capture = require_live_capture @require_matching_selfie = require_matching_selfie end |
Instance Attribute Details
#allowed_types ⇒ Object
Array of strings of allowed identity document types. If the provided identity document isn’t one of the allowed types, the verification check will fail with a document_type_not_allowed error code.
161 162 163 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 161 def allowed_types @allowed_types end |
#require_id_number ⇒ Object
Collect an ID number and perform an [ID number check](stripe.com/docs/identity/verification-checks?type=id-number) with the document’s extracted name and date of birth.
163 164 165 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 163 def require_id_number @require_id_number end |
#require_live_capture ⇒ Object
Disable image uploads, identity document images have to be captured using the device’s camera.
165 166 167 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 165 def require_live_capture @require_live_capture end |
#require_matching_selfie ⇒ Object
Capture a face image and perform a [selfie check](stripe.com/docs/identity/verification-checks?type=selfie) comparing a photo ID and a picture of your user’s face. [Learn more](stripe.com/docs/identity/selfie).
167 168 169 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 167 def require_matching_selfie @require_matching_selfie end |