miiCardConsumers 2.5.0 → 2.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/miiCardConsumers.rb +50 -3
  2. metadata +2 -2
@@ -328,6 +328,36 @@ class AuthenticationDetails
328
328
  end
329
329
  end
330
330
 
331
+ class CreditBureauVerification
332
+ attr_accessor :data, :last_verified
333
+
334
+ def initialize(data, last_verified)
335
+ @data = data
336
+ @last_verified = last_verified
337
+ end
338
+
339
+ def self.from_hash(hash)
340
+ return CreditBureauVerification.new(
341
+ hash["Data"],
342
+ Util::parse_dot_net_json_datetime(hash['LastVerified'])
343
+ )
344
+ end
345
+ end
346
+
347
+ class CreditBureauRefreshStatus
348
+ attr_accessor :state
349
+
350
+ def initialize(state)
351
+ @state = state
352
+ end
353
+
354
+ def self.from_hash(hash)
355
+ return CreditBureauRefreshStatus.new(
356
+ hash['State']
357
+ )
358
+ end
359
+ end
360
+
331
361
  class FinancialRefreshStatus
332
362
  attr_accessor :state
333
363
 
@@ -513,7 +543,7 @@ class MiiUserProfile
513
543
  attr_accessor :previous_first_name, :previous_middle_name, :previous_last_name
514
544
  attr_accessor :last_verified, :profile_url, :profile_short_url, :card_image_url, :email_addresses, :identities, :postal_addresses
515
545
  attr_accessor :phone_numbers, :web_properties, :identity_assured, :has_public_profile
516
- attr_accessor :public_profile, :date_of_birth, :qualifications, :age
546
+ attr_accessor :public_profile, :date_of_birth, :qualifications, :age, :credit_bureau_verification
517
547
 
518
548
  def initialize(
519
549
  username,
@@ -538,7 +568,8 @@ class MiiUserProfile
538
568
  public_profile,
539
569
  date_of_birth,
540
570
  qualifications,
541
- age
571
+ age,
572
+ credit_bureau_verification
542
573
  )
543
574
 
544
575
  @username= username
@@ -564,6 +595,7 @@ class MiiUserProfile
564
595
  @date_of_birth = date_of_birth
565
596
  @qualifications = qualifications
566
597
  @age = age
598
+ @credit_bureau_verification = credit_bureau_verification
567
599
  end
568
600
 
569
601
  def self.from_hash(hash)
@@ -603,6 +635,12 @@ class MiiUserProfile
603
635
  qualifications_parsed = qualifications.map{|item| Qualification::from_hash(item)}
604
636
  end
605
637
 
638
+ credit_bureau = hash["CreditBureauVerification"]
639
+ credit_bureau_parsed = nil
640
+ unless credit_bureau.nil?
641
+ credit_bureau_parsed = CreditBureauVerification::from_hash(credit_bureau)
642
+ end
643
+
606
644
  public_profile = hash["PublicProfile"]
607
645
  public_profile_parsed = nil
608
646
  unless public_profile.nil?
@@ -632,7 +670,8 @@ class MiiUserProfile
632
670
  public_profile_parsed,
633
671
  (Util::parse_dot_net_json_datetime(hash['DateOfBirth']) rescue nil),
634
672
  qualifications_parsed,
635
- hash['Age']
673
+ hash['Age'],
674
+ credit_bureau_parsed
636
675
  )
637
676
  end
638
677
  end
@@ -798,6 +837,14 @@ class MiiCardOAuthClaimsService < MiiCardOAuthServiceBase
798
837
 
799
838
  return make_request(get_method_url('GetAuthenticationDetails'), params, AuthenticationDetails.method(:from_hash), true)
800
839
  end
840
+
841
+ def is_credit_bureau_refresh_in_progress
842
+ return make_request(get_method_url('IsCreditBureauRefreshInProgress'), nil, nil, true)
843
+ end
844
+
845
+ def refresh_credit_bureau_data
846
+ return make_request(get_method_url('RefreshCreditBureauData'), nil, CreditBureauRefreshStatus.method(:from_hash), true)
847
+ end
801
848
  end
802
849
 
803
850
  class MiiCardOAuthFinancialService < MiiCardOAuthServiceBase
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: miiCardConsumers
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.0
4
+ version: 2.6.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2014-02-26 00:00:00.000000000 Z
13
+ date: 2014-04-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: oauth