class MiiCardOAuthClaimsService

Public Class Methods

new(consumer_key, consumer_secret, access_token, access_token_secret) click to toggle source
Calls superclass method MiiCardOAuthServiceBase::new
# File lib/miiCardConsumers.rb, line 783
def initialize(consumer_key, consumer_secret, access_token, access_token_secret)
        super(consumer_key, consumer_secret, access_token, access_token_secret)
end

Public Instance Methods

assurance_image(type) click to toggle source
# File lib/miiCardConsumers.rb, line 805
def assurance_image(type)
        params = Hash["type", type]
        
        return make_request(get_method_url('AssuranceImage'), params, nil, false)
end
get_authentication_details(snapshot_id = nil) click to toggle source
# File lib/miiCardConsumers.rb, line 835
def get_authentication_details(snapshot_id = nil)
        params = Hash["snapshotId", snapshot_id]

        return make_request(get_method_url('GetAuthenticationDetails'), params, AuthenticationDetails.method(:from_hash), true)
end
get_card_image(snapshot_id, show_email_address, show_phone_number, format) click to toggle source
# File lib/miiCardConsumers.rb, line 811
def get_card_image(snapshot_id, show_email_address, show_phone_number, format)
        params = Hash["SnapshotId", snapshot_id, "ShowEmailAddress", show_email_address, "ShowPhoneNumber", show_phone_number, "Format", format]
        
        return make_request(get_method_url('GetCardImage'), params, nil, false)
end
get_claims() click to toggle source
# File lib/miiCardConsumers.rb, line 791
def get_claims
        return make_request(get_method_url('GetClaims'), nil, MiiUserProfile.method(:from_hash), true)
end
get_identity_snapshot(snapshot_id) click to toggle source
# File lib/miiCardConsumers.rb, line 823
def get_identity_snapshot(snapshot_id)
        params = Hash["snapshotId", snapshot_id]
        
        return make_request(get_method_url('GetIdentitySnapshot'), params, IdentitySnapshot.method(:from_hash), true)
end
get_identity_snapshot_details(snapshot_id = nil) click to toggle source
# File lib/miiCardConsumers.rb, line 817
def get_identity_snapshot_details(snapshot_id = nil)
        params = Hash["snapshotId", snapshot_id]
        
        return make_request(get_method_url('GetIdentitySnapshotDetails'), params, IdentitySnapshotDetails.method(:from_hash), true, true)
end
get_identity_snapshot_pdf(snapshot_id) click to toggle source
# File lib/miiCardConsumers.rb, line 829
def get_identity_snapshot_pdf(snapshot_id)
        params = Hash["snapshotId", snapshot_id]
        
        return make_request(get_method_url('GetIdentitySnapshotPdf'), params, nil, false)
end
get_method_url(method) click to toggle source
# File lib/miiCardConsumers.rb, line 787
def get_method_url(method)
        return MiiCardServiceUrls.get_claims_method_url(method)
end
is_credit_bureau_refresh_in_progress() click to toggle source
# File lib/miiCardConsumers.rb, line 841
def is_credit_bureau_refresh_in_progress
        return make_request(get_method_url('IsCreditBureauRefreshInProgress'), nil, nil, true)
end
is_social_account_assured(social_account_id, social_account_type) click to toggle source
# File lib/miiCardConsumers.rb, line 795
def is_social_account_assured(social_account_id, social_account_type)
        params = Hash["socialAccountId", social_account_id, "socialAccountType", social_account_type]
        
        return make_request(get_method_url('IsSocialAccountAssured'), params, nil, true)
end
is_user_assured() click to toggle source
# File lib/miiCardConsumers.rb, line 801
def is_user_assured
        return make_request(get_method_url('IsUserAssured'), nil, nil, true)
end
refresh_credit_bureau_data() click to toggle source
# File lib/miiCardConsumers.rb, line 845
def refresh_credit_bureau_data
        return make_request(get_method_url('RefreshCreditBureauData'), nil, CreditBureauRefreshStatus.method(:from_hash), true)
end