oca-epak 1.7.1 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/oca-epak/epak/client.rb +28 -0
- data/lib/oca-epak/version.rb +1 -1
- metadata +2 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82bf4c58e32451b35b9b97837026e0f97d19be74
|
4
|
+
data.tar.gz: 13bc295555dbe8c89ff3cb266f9b61e37ba25b01
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c65fc84cab5bce03049b3c8ca7cb548e4d0d7af61a9ea81750e341f569e326ce9fa98b68032a0fac9f627bede7345233d0a88a9d3195fe6271e7c646889b420
|
7
|
+
data.tar.gz: 053e67d987b15736723eb8ce7a11f4211a75973915a6e05cf27c0e8e3eb988c33e309d4d1ced96efe34acc630e3cd6056ff66168013c62a3ed614b2b65f87f2b
|
data/lib/oca-epak/epak/client.rb
CHANGED
@@ -142,6 +142,34 @@ module Oca
|
|
142
142
|
response = client.call(:tracking_pieza, message: message)
|
143
143
|
parse_result(response, :tracking_pieza)
|
144
144
|
end
|
145
|
+
|
146
|
+
# Get the tracking history of an object with the ids
|
147
|
+
#
|
148
|
+
# @param [Hash] opts
|
149
|
+
# @option opts [String] :pieza Tracking number
|
150
|
+
# @return [Hash, nil] Contains the history of object's movement.
|
151
|
+
def tracking_object_with_ids(opts = {})
|
152
|
+
message = {
|
153
|
+
"NumeroEnvio" => opts[:pieza]
|
154
|
+
}
|
155
|
+
|
156
|
+
response = client.call(:tracking_pieza_con_id_estado, message: message)
|
157
|
+
parse_result(response, :tracking_pieza_con_id_estado)
|
158
|
+
end
|
159
|
+
|
160
|
+
# Returns all existing Taxation Centers with services
|
161
|
+
#
|
162
|
+
# @param [Hash] opts
|
163
|
+
# @option opts [String] :codigo_postal ZipCode
|
164
|
+
# @return [Array, nil] Information for all the Oca Taxation Centers with services
|
165
|
+
def taxation_centers_with_services_by_zipcode(opts = {})
|
166
|
+
message = {
|
167
|
+
"CodigoPostal" => opts[:codigo_postal]
|
168
|
+
}
|
169
|
+
method = :get_centros_imposicion_con_servicios_by_cp
|
170
|
+
response = client.call(method, message: message)
|
171
|
+
parse_result(response, method)
|
172
|
+
end
|
145
173
|
end
|
146
174
|
end
|
147
175
|
end
|
data/lib/oca-epak/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: oca-epak
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mauro Otonelli
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-
|
12
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: savon
|
@@ -25,20 +25,6 @@ dependencies:
|
|
25
25
|
- - "~>"
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: '2.11'
|
28
|
-
- !ruby/object:Gem::Dependency
|
29
|
-
name: rack
|
30
|
-
requirement: !ruby/object:Gem::Requirement
|
31
|
-
requirements:
|
32
|
-
- - "~>"
|
33
|
-
- !ruby/object:Gem::Version
|
34
|
-
version: '1.6'
|
35
|
-
type: :runtime
|
36
|
-
prerelease: false
|
37
|
-
version_requirements: !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - "~>"
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
version: '1.6'
|
42
28
|
- !ruby/object:Gem::Dependency
|
43
29
|
name: rspec
|
44
30
|
requirement: !ruby/object:Gem::Requirement
|