ebanx 1.1.0 → 1.2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fe1aefae89737b8a94108296e0caf83d52173c9
4
- data.tar.gz: be73865f650ae4ba1276cabc2cfd892f66effa5c
3
+ metadata.gz: 4281ad842c3ce43dc02b6eae96fbf6f3c675953f
4
+ data.tar.gz: 8bfa48e24ad91f0c1d0ce8794e475986bf6300c3
5
5
  SHA512:
6
- metadata.gz: ec0642ded6ea32beb71f14bcec7766077b531966c5c9d68fb4972300ec4ce305b6a885322f1386aedbb5d14447ed7b10da6655436834f694ab6f02781c756295
7
- data.tar.gz: f8b7ad813b7f52d41c2935207d83516b8fc45249969ee5743bf15470090f9cd36faf57879eb3d2e10c86e75da0f1a841c1dbeb7573461ab2779b9c9147cee6e3
6
+ metadata.gz: d64cddc70d54e19441a124273593d88e3247a93e7e61c43ce24cb31d9a8124d5a38562d7f1f934fccb833e6f63d494755669be72778292d5aade80e3c11369ce
7
+ data.tar.gz: f65d178d67521696885b02dea1b2255a220ba197a28c03bd5de1a4325382b68db8515a055d18fd2e4c23ba318e9d1d540c58b99a5ffa42ffeb1c469e2abf9010
data/.gitignore CHANGED
@@ -15,3 +15,5 @@ spec/reports
15
15
  test/tmp
16
16
  test/version_tmp
17
17
  tmp
18
+ app.rb
19
+ teste
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -7,6 +7,7 @@ require_relative 'ebanx/command/command'
7
7
  require_relative 'ebanx/command/cancel'
8
8
  require_relative 'ebanx/command/capture'
9
9
  require_relative 'ebanx/command/direct'
10
+ require_relative 'ebanx/command/document_balance'
10
11
  require_relative 'ebanx/command/exchange'
11
12
  require_relative 'ebanx/command/print'
12
13
  require_relative 'ebanx/command/query'
@@ -27,7 +28,7 @@ module Ebanx
27
28
  if @test_mode
28
29
  'https://sandbox.ebanx.com/ws/'
29
30
  else
30
- 'https://www.ebanx.com/pay/ws/'
31
+ 'https://api.ebanx.com/ws/'
31
32
  end
32
33
  end
33
34
 
@@ -0,0 +1,17 @@
1
+ module Ebanx
2
+ module Command
3
+ class DocumentBalance < Command
4
+ def initialize(params)
5
+ @params = params
6
+ @request_method = :get
7
+ @request_action = 'documentbalance'
8
+ @response_type = :json
9
+ end
10
+
11
+ def validate
12
+ validate_presence :currency_code
13
+ validate_presence :document
14
+ end
15
+ end
16
+ end
17
+ end
@@ -1,3 +1,3 @@
1
1
  module Ebanx
2
- VERSION = '1.1.0'
2
+ VERSION = '1.2.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ebanx
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Henrique Mascarenhas Machado
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-25 00:00:00.000000000 Z
11
+ date: 2016-01-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -116,6 +116,7 @@ files:
116
116
  - lib/ebanx/command/capture.rb
117
117
  - lib/ebanx/command/command.rb
118
118
  - lib/ebanx/command/direct.rb
119
+ - lib/ebanx/command/document_balance.rb
119
120
  - lib/ebanx/command/exchange.rb
120
121
  - lib/ebanx/command/print.rb
121
122
  - lib/ebanx/command/query.rb
@@ -151,7 +152,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
152
  version: '0'
152
153
  requirements: []
153
154
  rubyforge_project:
154
- rubygems_version: 2.4.6
155
+ rubygems_version: 2.4.8
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: Ruby bindings for the EBANX API