fastshop_catalog 0.0.6 → 0.0.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30d3f10c0b09c6cd91d0d70a9581bc08a0f32b0f
|
4
|
+
data.tar.gz: b5ad556c0c926ee60f379374338ceb1489f5933b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23861e9bf14e1683d5047f892671fd43c648fce4945778454bc2dcc511b362fc1d9697803d96bdfa91914c303cbb0c37967a03cfbd498a40102ea3d2d01b21ab
|
7
|
+
data.tar.gz: b9561a2116aca37af5c65778f2436716316e4d09c8f2b5ea37613c2392f36d18aa840ea72381be51931bfc890b5e782338253dd8a6435895b80c9d82ba60d9e5
|
data/Gemfile.lock
CHANGED
@@ -10,9 +10,15 @@ module FastshopCatalog
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def place_order(order)
|
13
|
-
payload = order.
|
13
|
+
payload = order.to_map
|
14
|
+
items = []
|
15
|
+
payload["Itens"].each do |item|
|
16
|
+
items << item.to_map
|
17
|
+
end
|
18
|
+
payload["Itens"] = items
|
19
|
+
payload = payload.to_json
|
14
20
|
AUX_LOG.debug('Order as json: ' + payload)
|
15
|
-
service_invoker_with_encryption('entrada', 'contrato' => order.contract_code,
|
21
|
+
service_invoker_with_encryption('entrada', 'contrato' => order.contract_code,
|
16
22
|
'entrada' => payload)
|
17
23
|
end
|
18
24
|
|
@@ -1 +1 @@
|
|
1
|
-
{"Categoria":"Vendedor","Celular":"11111111","Contrato":"1234567890","Cpf":"
|
1
|
+
{"Categoria":"Vendedor","Celular":"11111111","Contrato":"1234567890","Cpf":"37276636348","DataNascimento":"\/Date(315543600000-10800)\/","DddCelular":"11","DddComercial":"11","DddResidencial":"11","Email":"teste@testemaroto.com.br","Endereco":{"Bairro":"BROOKLIN PAULISTA","Cep":"04562030","Cidade":"SAO PAULO","Complemento":"","Descricao":"FASTSHOP","Endereco":"ARANDU","Estado":"SP","Numero":"1560","TipoEndereco":"R","TipoMoradiaDescricao":"EMPRESA","TipoMoradiaId":"4"},"Nome":"TESTE PARTICIPANTE","RG":"11111111","Sexo":"M","Status":"A","TelefoneComercial":"11111111","TelefoneResidencial":"11111111","TipoOperacao":"0","UnidadeNegocio":{"Cnpj":"03792703000198","Fantasia":"TESTE UNI","RazaoSocial":"TESTE UNID LTD"}}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fastshop_catalog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thiago Ganzarolli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-12-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|