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: ac4d5b427a4ee7fa498940e1ad54d9615178e27d
4
- data.tar.gz: f28263822113c954590a3d338e128f91819c0d66
3
+ metadata.gz: 30d3f10c0b09c6cd91d0d70a9581bc08a0f32b0f
4
+ data.tar.gz: b5ad556c0c926ee60f379374338ceb1489f5933b
5
5
  SHA512:
6
- metadata.gz: 4fa067fe67fa784f594eb3b34e1dab041b1a2c4056aa3f41257b113df02369de34ec7059fc54d1e65d285c14d815a26caa095b364b0a75b43d47903e89b64466
7
- data.tar.gz: cbfe71e70db5fe9d7090af6b7d7aafdcfde2d7bf4b69cd7d20b57e0a2b62464c486233b7ea6e5f233f34652e117d23b033aba3b64aa6fe5e90581fa7f2c0278a
6
+ metadata.gz: 23861e9bf14e1683d5047f892671fd43c648fce4945778454bc2dcc511b362fc1d9697803d96bdfa91914c303cbb0c37967a03cfbd498a40102ea3d2d01b21ab
7
+ data.tar.gz: b9561a2116aca37af5c65778f2436716316e4d09c8f2b5ea37613c2392f36d18aa840ea72381be51931bfc890b5e782338253dd8a6435895b80c9d82ba60d9e5
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fastshop_catalog (0.0.5)
4
+ fastshop_catalog (0.0.6)
5
5
  savon
6
6
 
7
7
  GEM
@@ -10,9 +10,15 @@ module FastshopCatalog
10
10
  end
11
11
 
12
12
  def place_order(order)
13
- payload = order.to_json.to_s
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,3 +1,3 @@
1
1
  module FastshopCatalog
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -1 +1 @@
1
- {"Categoria":"Vendedor","Celular":"11111111","Contrato":"1234567890","Cpf":"73978898160","DataNascimento":"\/Date(315543600000-10800)\/","DddCelular":"11","DddComercial":"11","DddResidencial":"11","Email":"teste@teste.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"}}
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.6
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-28 00:00:00.000000000 Z
11
+ date: 2013-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler