class

Stripe::GelatoReportDocumentOptions

Inherits OpenApi::Json < OpenApi::Validatable < JSON::Serializable::Unmapped < JSON::Serializable < Reference < Object

Constants

ERROR_MESSAGE_FOR_ALLOWED_TYPES = "invalid value for \"allowed_types\", must be one of [driving_license, id_card, passport]."
VALID_VALUES_FOR_ALLOWED_TYPES = String.static_array("driving_license", "id_card", "passport")

Constructors

new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source
new(*, allowed_types : Array(String) | Nil = nil, require_id_number : Bool | Nil = nil, require_live_capture : Bool | Nil = nil, require_matching_selfie : Bool | Nil = nil)

Initializes the object @param [Hash] attributes Model attributes in the form of hash

Source

Instance methods

==(other : self)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

allowed_types

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.

Source
allowed_types=(new_value : Array(String) | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] allowed_types Object to be assigned

Source
hash(hasher)

Generates #hash and #== methods from all fields #== @return [Bool] #hash calculates hash code according to all attributes. #hash @return [UInt64] Hash code

list_invalid_properties

Show invalid properties with the reasons. Usually used together with valid? @return Array for valid properties with the reasons

Source
require_id_number

Collect an ID number and perform an ID number check with the document’s extracted name and date of birth.

Source
require_id_number=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] require_id_number Object to be assigned

Source
require_live_capture

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

Source
require_live_capture=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] require_live_capture Object to be assigned

Source
require_matching_selfie

Capture a face image and perform a selfie check comparing a photo ID and a picture of your user’s face. Learn more.

Source
require_matching_selfie=(new_value : Bool | Nil)

Custom attribute writer method checking allowed values (enum). @param [Object] require_matching_selfie Object to be assigned

Source
valid?

Check to see if the all the properties in the model are valid @return true if the model is valid

Source