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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: f4ba297e8eafe29904b6d98ab0b67c7387bb260c
4
- data.tar.gz: 06d60590ed7e5b0a2f9b50751aed4b8d664e4014
2
+ SHA256:
3
+ metadata.gz: 3099d33dbebedb458ccc2c074d4ab364fd9daa39150275bc991a196696cccca5
4
+ data.tar.gz: 78d9dc9756c9f557b309920a4e2d06f6c2b4496f7eda5152a53501312cd00154
5
5
  SHA512:
6
- metadata.gz: cf37c18040aaaf24c3ec1122ba5a5dbb1652bce257b08b3190252d3235beb4d7a3a62c26f714d80787e5df149538b6a749070c8e6049784c783ca1422e5a6479
7
- data.tar.gz: 3d9d279b3abfff3e8cb25a974db31a59b3983d2966cfc54422477937844776ae823818b7e4063e4e5f224f0c17a7ce328bb8d932281fb68339a09a7c7c8f86ac
6
+ metadata.gz: 1de7ab4726569124d7de07ac7e5350317fcfaa074c223f5d5fc4f39ac2e7b29fe30a31bd92a9a02cf8da18c06541998e9391e0dc1ea59138966fef4d6185732d
7
+ data.tar.gz: 9a15abe521fbd893af0b4a723c9f12281a88a23c5cac443c07628f8ea615f21799507495df4f78ca8ac15e893e303297509dfed7f9dbeffa62021906d4178f8a
@@ -1,4 +1,8 @@
1
- ### 0.1.2 (unreleased)
1
+ ### 0.1.3 (12/12/2018)
2
+
3
+ * Implementa `GetExceptionStatus`
4
+
5
+ ### 0.1.2 (25/10/2018)
2
6
 
3
7
  * Implementa `GetInstallments`
4
8
  * Corrige passagem de token na classe `Boleto`
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
@@ -5,6 +5,7 @@ require "credigy/version"
5
5
 
6
6
  require "credigy/config"
7
7
  require "credigy/account"
8
+ require "credigy/agreement_exception_status"
8
9
  require "credigy/boleto"
9
10
  require "credigy/campaign_negotiation"
10
11
  require "credigy/email"
@@ -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
@@ -0,0 +1,13 @@
1
+ require_relative './response'
2
+
3
+ module Credigy
4
+ class AgreementExceptionStatusResponse < Response
5
+ def exception_id
6
+ body[:exception_id]
7
+ end
8
+
9
+ def status
10
+ body[:status]
11
+ end
12
+ end
13
+ end
@@ -1,3 +1,3 @@
1
1
  module Credigy
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
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.2
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-10-25 00:00:00.000000000 Z
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.11
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