selida-wlc-ruby 0.1.7 → 0.2

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
  SHA256:
3
- metadata.gz: 296832a8ffe1825d92050a0f71735f56157afffc49be5e31c6d094bf0f8708a5
4
- data.tar.gz: 134b835f8ce4f8d5bb8250e51c2307776975d8eda864dc7c6f8da7596bc84db1
3
+ metadata.gz: f9704f16f6a16d96cbdbf0c6150c107249c5b403c0fdb2348065100622e4508f
4
+ data.tar.gz: e42c3646462da846d110b53af0155b6a94524020563d75cf970e9a7aef352d78
5
5
  SHA512:
6
- metadata.gz: b50a85d23ab09f36e86ba74ec187f026020dd68fc9077bcf680eebc04ad53c647a28b83dc03eeda6a0b028655e405ff86ab43e1aaf29c2dd5dffdd269e817a3b
7
- data.tar.gz: fe4bea5a600b35e8e035082d8d41ba6cc9d3b74f83a44a16da30b45eebfe31ddae4796b7d5c47d31aaf131435275f58e84576861e69056e4f5e0c75b4acd2313
6
+ metadata.gz: c11d39d470e3a107ea6e277bd2dac31cedb5ca1a2ec7147e5302c218010c7da6cd8c383c16225fa7184cfb2216eed4e94fcb630aa3748c80c3a285008ef83eff
7
+ data.tar.gz: 9834f0144d834632773b942bc37b38f29c7a4d80ba24ee589be5392ce59e9de80bbf95f4500fa3bcd02d01958adc084bd3ca9e5f23cfdcc515d6f13573ab8c85
@@ -4,7 +4,8 @@ module Wlc
4
4
  ENDPOINTS = { index: '/Produtos/Produto/ConsultaProdutos',
5
5
  find: '/Produtos/Produto/ConsultaProduto',
6
6
  availability: '/Produtos/Produto/ConsultaDisponibilidadeProduto',
7
- category: '/Produtos/Produto/ConsultaCategorias' }
7
+ category: '/Produtos/Produto/ConsultaCategorias',
8
+ delivery: '/Produtos/Produto/ConsultaPrazoEntrega'}
8
9
 
9
10
  def all
10
11
  response = client.get(ENDPOINTS[:index])
@@ -25,6 +26,11 @@ module Wlc
25
26
  response = client.get(ENDPOINTS[:category])
26
27
  response['success'] ? response['obj_return'] : response
27
28
  end
29
+
30
+ def delivery(codigo, cep)
31
+ response = client.get(ENDPOINTS[:delivery], { Codigo: codigo, CEP: cep })
32
+ response['success'] ? response['obj_return'] : response
33
+ end
28
34
  end
29
35
  end
30
36
  end
@@ -1,3 +1,3 @@
1
1
  module Wlc
2
- VERSION = "0.1.7"
2
+ VERSION = "0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selida-wlc-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: '0.2'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ellen Fiscina
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-09-13 00:00:00.000000000 Z
12
+ date: 2018-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday