Class: Stripe::Identity::VerificationSessionService::CreateParams::Options::Document
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Identity::VerificationSessionService::CreateParams::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.
75 76 77 78 79 80 81 82 83 84 85 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 75 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.
67 68 69 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 67 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.
69 70 71 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 69 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.
71 72 73 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 71 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).
73 74 75 |
# File 'lib/stripe/services/identity/verification_session_service.rb', line 73 def require_matching_selfie @require_matching_selfie end |