class Yoti::DynamicSharingService::DynamicPolicy

Describes a policy for a dynamic share

Constants

PIN_AUTH_TYPE
SELFIE_AUTH_TYPE

Attributes

wanted[R]

@return [Array<Yoti::DynamicSharingService::WantedAttribute>]

wanted_auth_types[R]

@return [Array<Integer>]

Public Class Methods

builder() click to toggle source
# File lib/yoti/dynamic_share_service/policy/dynamic_policy.rb, line 33
def self.builder
  DynamicPolicyBuilder.new
end

Public Instance Methods

as_json(*_args) click to toggle source
# File lib/yoti/dynamic_share_service/policy/dynamic_policy.rb, line 26
def as_json(*_args)
  {
    wanted_auth_types: @wanted_auth_types,
    wanted: @wanted
  }
end
to_json(*_args) click to toggle source
# File lib/yoti/dynamic_share_service/policy/dynamic_policy.rb, line 22
def to_json(*_args)
  as_json.to_json
end
wanted_remember_me() click to toggle source
# File lib/yoti/dynamic_share_service/policy/dynamic_policy.rb, line 16
def wanted_remember_me
  return true if @wanted_remember_me

  false
end