greensky 1.9.1 → 1.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e6bc47112621a3a1879dbf82d30d6325ec3b0f4c
4
- data.tar.gz: cb51fa6ce128bec702cf81202886c9a0ce46bf2f
3
+ metadata.gz: 617cafe2e731eff35f99eeb07b79d3ede4bdaaca
4
+ data.tar.gz: 96ad152d84905fca53c177299989339d343339e7
5
5
  SHA512:
6
- metadata.gz: 0ab914bafa04edc0a9f3188a96204468c04cf9589ef67e7e830fdb8c874d1935ad7c0e5dae855f82c3ebe25c7d80da2cefae63a79fd31f93f72a8ea93e3586f8
7
- data.tar.gz: 67ef847bc3248348f89b1b95cf8990261e2526bc6050faccce5ee380146c697fd8ad6aa2b5448f4221f9c731c081f7d79b1f78d70e92c48670210c72460ade47
6
+ metadata.gz: 054230e6b8d6724caea2a156bc22616100a661ad3e521de853b68c13ba2f2d660d990c5f92ec2bcee23301c14c667c97e00de1a75eb9f20090a52b941df73f48
7
+ data.tar.gz: 87329d5efd8c5e27e291f3f89836cb4b5c56dbe631932d848a7366cc537da6e584b6ecf7d60355a6964fcdcf4e04ae594d9ba564b13a6a2ad294d4e7306a22b5
@@ -97,4 +97,15 @@ module Greensky
97
97
 
98
98
  client.post 'recalculateoffer', data, token: application.token
99
99
  end
100
+
101
+ def self.decision(application)
102
+ data = {
103
+ program: application.program,
104
+ product: application.product,
105
+ role: application.role,
106
+ applicationId: application.applicationId,
107
+ }
108
+
109
+ client.get 'decision', data, token: application.token
110
+ end
100
111
  end
@@ -108,8 +108,12 @@ module Greensky
108
108
  Greensky.download_document(self, &block)
109
109
  end
110
110
 
111
+ def decision
112
+ Greensky.decision(self)
113
+ end
114
+
111
115
  def application_status
112
- state['applicationStatus']
116
+ decision['status']
113
117
  end
114
118
 
115
119
  def referral
@@ -1,3 +1,3 @@
1
1
  module Greensky
2
- VERSION = "1.9.1"
2
+ VERSION = "1.10.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: greensky
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.1
4
+ version: 1.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carlos Palhares
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2017-01-12 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rest-client