bseller_ruby 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bseller_ruby/base.rb +1 -2
- data/lib/bseller_ruby/stock.rb +4 -0
- data/lib/bseller_ruby/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6f95d68b72f2b63392fe914f1b2c3e68cd162387
|
4
|
+
data.tar.gz: e42feda05d4090bdb560fc5d9f3f3ce93706aed0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3343ea4a76f2dd5f22802523c7f2156af9aa00d1d4e76d0a0d7dc0cfa577af1aa6b8a468b2f7d9db0656a9529d7b08fa88a392ea26e49ae0360a75a26f7fedd8
|
7
|
+
data.tar.gz: b928366c4978834a04ad16e0a440f020fea38ebb3bef86bcb7644c737e0794609fed4a2154539aac044f7ab7b7176c939789b5722ec6df3f3598545e416af848
|
data/lib/bseller_ruby/base.rb
CHANGED
@@ -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
|
data/lib/bseller_ruby/stock.rb
CHANGED
@@ -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
|
data/lib/bseller_ruby/version.rb
CHANGED
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.
|
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:
|
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.
|
188
|
+
rubygems_version: 2.4.3
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: Bseller
|