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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 76586808bf04b171e6d2393745358feb5f97b508
4
- data.tar.gz: fd7549c5fcda1bc527f9902b905a17c9e4f8f6fc
3
+ metadata.gz: 82bf4c58e32451b35b9b97837026e0f97d19be74
4
+ data.tar.gz: 13bc295555dbe8c89ff3cb266f9b61e37ba25b01
5
5
  SHA512:
6
- metadata.gz: 5dee3aca78dd1e6915928333d38f43ba780ecd09e13917b19cdc441a6a3dc47eae5e3877b5bcd6258b81ba5e8a5dfdf383b57ea40695290517f4d9fe6b1d7d7b
7
- data.tar.gz: 5b5f423bf15a7474d8812a6006e7e0dd3aa156fa9ecd89c32d34cee67e6a3fdbac8045c48e99080b174986a6f09d0d0921484124c1ef77e264981ab557421a9d
6
+ metadata.gz: 6c65fc84cab5bce03049b3c8ca7cb548e4d0d7af61a9ea81750e341f569e326ce9fa98b68032a0fac9f627bede7345233d0a88a9d3195fe6271e7c646889b420
7
+ data.tar.gz: 053e67d987b15736723eb8ce7a11f4211a75973915a6e05cf27c0e8e3eb988c33e309d4d1ced96efe34acc630e3cd6056ff66168013c62a3ed614b2b65f87f2b
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Oca
2
2
  module Epak
3
- VERSION = '1.7.1'
3
+ VERSION = '1.8.0'
4
4
  end
5
5
  end
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.7.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-01-16 00:00:00.000000000 Z
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