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 +4 -4
- data/.gitignore +2 -0
- data/VERSION +1 -1
- data/lib/ebanx.rb +2 -1
- data/lib/ebanx/command/document_balance.rb +17 -0
- data/lib/ebanx/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4281ad842c3ce43dc02b6eae96fbf6f3c675953f
|
|
4
|
+
data.tar.gz: 8bfa48e24ad91f0c1d0ce8794e475986bf6300c3
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d64cddc70d54e19441a124273593d88e3247a93e7e61c43ce24cb31d9a8124d5a38562d7f1f934fccb833e6f63d494755669be72778292d5aade80e3c11369ce
|
|
7
|
+
data.tar.gz: f65d178d67521696885b02dea1b2255a220ba197a28c03bd5de1a4325382b68db8515a055d18fd2e4c23ba318e9d1d540c58b99a5ffa42ffeb1c469e2abf9010
|
data/.gitignore
CHANGED
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
1.
|
|
1
|
+
1.2.0
|
data/lib/ebanx.rb
CHANGED
|
@@ -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://
|
|
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
|
data/lib/ebanx/version.rb
CHANGED
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.
|
|
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:
|
|
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.
|
|
155
|
+
rubygems_version: 2.4.8
|
|
155
156
|
signing_key:
|
|
156
157
|
specification_version: 4
|
|
157
158
|
summary: Ruby bindings for the EBANX API
|