credigy 0.1.2 → 0.1.3
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.
- checksums.yaml +5 -5
- data/CHANGELOG.md +5 -1
- data/README.md +9 -0
- data/lib/credigy.rb +1 -0
- data/lib/credigy/agreement_exception_status.rb +22 -0
- data/lib/credigy/agreement_exception_status_response.rb +13 -0
- data/lib/credigy/version.rb +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 3099d33dbebedb458ccc2c074d4ab364fd9daa39150275bc991a196696cccca5
|
4
|
+
data.tar.gz: 78d9dc9756c9f557b309920a4e2d06f6c2b4496f7eda5152a53501312cd00154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1de7ab4726569124d7de07ac7e5350317fcfaa074c223f5d5fc4f39ac2e7b29fe30a31bd92a9a02cf8da18c06541998e9391e0dc1ea59138966fef4d6185732d
|
7
|
+
data.tar.gz: 9a15abe521fbd893af0b4a723c9f12281a88a23c5cac443c07628f8ea615f21799507495df4f78ca8ac15e893e303297509dfed7f9dbeffa62021906d4178f8a
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -28,6 +28,7 @@ Ou instale você mesmo:
|
|
28
28
|
|
29
29
|
- [Login](#login)
|
30
30
|
- [AcceptLegalTerms](#acceptlegalterms)
|
31
|
+
- [GetExceptionStatus](#getexceptionstatus)
|
31
32
|
- [GeneratePromise](#generatepromise)
|
32
33
|
- [GetAccounts](#getaccounts)
|
33
34
|
- [GetBoleto](#getboleto)
|
@@ -51,6 +52,14 @@ authorization_token = response.authorization_token
|
|
51
52
|
Credigy::LegalTermsAcceptance.new(authorization_token).call
|
52
53
|
```
|
53
54
|
|
55
|
+
### GetExceptionStatus
|
56
|
+
|
57
|
+
```ruby
|
58
|
+
response = Credigy::AgreementExceptionStatus.new(authorization_token, agreement_id: 12345).call
|
59
|
+
response.exception_id # id da exceção provisionada
|
60
|
+
response.status # status da exceção provisionada
|
61
|
+
```
|
62
|
+
|
54
63
|
### GeneratePromise
|
55
64
|
|
56
65
|
```ruby
|
data/lib/credigy.rb
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
require_relative './authorized'
|
2
|
+
require_relative './agreement_exception_status_response'
|
3
|
+
|
4
|
+
module Credigy
|
5
|
+
class AgreementExceptionStatus < Authorized
|
6
|
+
attr_reader :agreement_id
|
7
|
+
|
8
|
+
def initialize(authorization_token, agreement_id:)
|
9
|
+
@authorization_token, @agreement_id = authorization_token, agreement_id
|
10
|
+
end
|
11
|
+
|
12
|
+
def operation
|
13
|
+
:get_exception_status
|
14
|
+
end
|
15
|
+
|
16
|
+
def message
|
17
|
+
{
|
18
|
+
'cred:debtorAgreementID' => agreement_id
|
19
|
+
}
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
data/lib/credigy/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: credigy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Glauco Custódio
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-12-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: savon
|
@@ -116,6 +116,8 @@ files:
|
|
116
116
|
- lib/credigy.rb
|
117
117
|
- lib/credigy/account.rb
|
118
118
|
- lib/credigy/account_response.rb
|
119
|
+
- lib/credigy/agreement_exception_status.rb
|
120
|
+
- lib/credigy/agreement_exception_status_response.rb
|
119
121
|
- lib/credigy/authorized.rb
|
120
122
|
- lib/credigy/boleto.rb
|
121
123
|
- lib/credigy/boleto_response.rb
|
@@ -162,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
162
164
|
version: '0'
|
163
165
|
requirements: []
|
164
166
|
rubyforge_project:
|
165
|
-
rubygems_version: 2.6
|
167
|
+
rubygems_version: 2.7.6
|
166
168
|
signing_key:
|
167
169
|
specification_version: 4
|
168
170
|
summary: Um cliente (não oficial) para o serviço SOAP da Credigy
|