Class: Stripe::Identity::VerificationSession::Options::Document

Inherits:
StripeObject
  • Object
show all
Defined in:
lib/stripe/resources/identity/verification_session.rb

Constant Summary

Constants inherited from StripeObject

StripeObject::RESERVED_FIELD_NAMES

Instance Attribute Summary collapse

Attributes inherited from StripeObject

#last_response

Method Summary

Methods inherited from StripeObject

#==, #[], #[]=, additive_object_param, additive_object_param?, #as_json, construct_from, #deleted?, #dirty!, #each, #eql?, #hash, #initialize, #inspect, #keys, #marshal_dump, #marshal_load, protected_fields, #serialize_params, #to_hash, #to_json, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Stripe::StripeObject

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Stripe::StripeObject

Instance Attribute Details

#allowed_typesObject (readonly)

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.



37
38
39
# File 'lib/stripe/resources/identity/verification_session.rb', line 37

def allowed_types
  @allowed_types
end

#require_id_numberObject (readonly)

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.



39
40
41
# File 'lib/stripe/resources/identity/verification_session.rb', line 39

def require_id_number
  @require_id_number
end

#require_live_captureObject (readonly)

Disable image uploads, identity document images have to be captured using the device’s camera.



41
42
43
# File 'lib/stripe/resources/identity/verification_session.rb', line 41

def require_live_capture
  @require_live_capture
end

#require_matching_selfieObject (readonly)

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).



43
44
45
# File 'lib/stripe/resources/identity/verification_session.rb', line 43

def require_matching_selfie
  @require_matching_selfie
end