bseller_ruby 0.1.5 → 0.1.6

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: 8a9ee97d7dd5a3545b528d120662617e2a620402
4
- data.tar.gz: d9435fa9ba66f77d852115f1ee5fc82bd4e38067
3
+ metadata.gz: 6f95d68b72f2b63392fe914f1b2c3e68cd162387
4
+ data.tar.gz: e42feda05d4090bdb560fc5d9f3f3ce93706aed0
5
5
  SHA512:
6
- metadata.gz: fc748de56cc2fce4ec0a2ae421e6245b2b04a3399cf77b82cbf1cf6a01fa073c6250e6f4f63cfd3fc1f56fe4499e13a7c15304568aa9d306dd1df14ba0c5224e
7
- data.tar.gz: 3d4e530e75330757bf239ed7251431f7efba543f419c8eb5640e660694f587f63278d342ac7fdf9006bc3c2c398359c4f50045c065c1cd26e99a5d48decf94f8
6
+ metadata.gz: 3343ea4a76f2dd5f22802523c7f2156af9aa00d1d4e76d0a0d7dc0cfa577af1aa6b8a468b2f7d9db0656a9529d7b08fa88a392ea26e49ae0360a75a26f7fedd8
7
+ data.tar.gz: b928366c4978834a04ad16e0a440f020fea38ebb3bef86bcb7644c737e0794609fed4a2154539aac044f7ab7b7176c939789b5722ec6df3f3598545e416af848
@@ -82,7 +82,6 @@ module BsellerRuby
82
82
  end
83
83
 
84
84
  def self.api
85
- log "#{ws['soap_endpoint']}/#{get_wsdl}?wsdl"
86
85
  @api ||= Savon.client wsdl: "#{ws['soap_endpoint']}/#{get_wsdl}?wsdl", log: ws['log'], read_timeout: 600, open_timeout: 600 do
87
86
  convert_request_keys_to :camelcase
88
87
  end
@@ -97,7 +96,7 @@ module BsellerRuby
97
96
 
98
97
  def self.authentication
99
98
  if @method =~ /pagamento/
100
- @authentication ||= {}
99
+ @authentication ||= { 'idCia' => ws['cia_id'], 'credencial' => { 'usuario' => ws['username'], 'senha' => ws['password'] } }
101
100
  else
102
101
  @authentication ||= { 'idCia' => ws['cia_id'], 'usuario' => ws['username'], 'senha' => ws['password'] }
103
102
  @method.to_s.end_with?('pedido') ? {} : @authentication
@@ -25,5 +25,9 @@ module BsellerRuby
25
25
  def self.confirm_to_partial_list!(params)
26
26
  call(:confirma_consulta_estoque_parcial, params).result
27
27
  end
28
+
29
+ def self.find(id_item, interface=nil)
30
+ get("itens/#{id_item}/estoque", interface ? {tpInterface: interface} : nil)
31
+ end
28
32
  end
29
33
  end
@@ -1,3 +1,3 @@
1
1
  module BsellerRuby
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bseller_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wesley Conde
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-11-26 00:00:00.000000000 Z
11
+ date: 2016-02-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: savon
@@ -185,7 +185,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
185
  version: '0'
186
186
  requirements: []
187
187
  rubyforge_project:
188
- rubygems_version: 2.4.8
188
+ rubygems_version: 2.4.3
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: Bseller