tiny_erp_api 0.1.4 → 0.1.6

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
  SHA256:
3
- metadata.gz: 44e8f8537e4126c2f5cf93808bab5d65484fe6a350c7ccd9084217c8b8bc877f
4
- data.tar.gz: 29cbdd4c7c8fbd78dffd4367d2d259b7bbe444017a21ab9db1717b816ad20115
3
+ metadata.gz: adf612cd76206a2d6b1388fd3c4afce5e73ca62c90d75a49eb7ba39931f336e4
4
+ data.tar.gz: 9a769eb5476c0940e32df04df0cb4d9666cc2bd44fcabf051c356a89d4d44bcc
5
5
  SHA512:
6
- metadata.gz: 8ff045ee15a7a82d49ce1d51f950e92947e51889f7b5e875e7bddb1aa46d0bce62bb05ecaf80663bc80cba0e60906baf0aebf24d9e8c0c81f17180078a19280f
7
- data.tar.gz: 4ed49b5c59abe33296629bf6c5480180805d770db906ecfd1b705cf2c02c3a5e1193e43fadba4bd6df7732228cda20bd89c25cf1be97481eda2f1659c55d317f
6
+ metadata.gz: c00baa67d0fa9f567d574d89f1b44b4665c608ce9ff73eadcc1660cb48081b4a91dbe13a8139a39e969e03369954646f6a853b0de6a0d8be5a02688579915ef8
7
+ data.tar.gz: eaaa61df9c3864fe67288ae0a8e82699038300ed40e730b8d39a25027d209a6867525496fb68c2b4a7dd7f32055c53491f2c84ef85de1e84d84382765201d532
@@ -68,11 +68,11 @@ module TinyErpApi
68
68
  end
69
69
 
70
70
  def create_order(order)
71
- params = "#{@query_params}&pedido=#{URI.encode_www_form_component(order)}"
71
+ params = "#{@query_params}&pedido=#{URI.encode_www_form_component(JSON.dump(order))}"
72
72
  response = post("/pedido.incluir.php?#{params}")
73
73
  response.json["retorno"]["registros"][0]["registro"]
74
74
  end
75
75
 
76
76
 
77
77
  end
78
- end
78
+ end
@@ -14,7 +14,7 @@ module TinyErpApi
14
14
  @observacoes = observacoes
15
15
  @observacoes_internas = observacoes_internas
16
16
  @forma_envio = forma_envio
17
- @forma_frete = form_frete
17
+ @forma_frete = forma_frete
18
18
  @parcelas = parcelas
19
19
  @cliente = cliente
20
20
  @itens = itens
@@ -72,7 +72,7 @@ module TinyErpApi
72
72
  observacoes: json_response["obs"],
73
73
  observacoes_internas: json_response["obs_internas"],
74
74
  forma_envio: json_response["forma_envio"],
75
- form_frete: json_response["forma_frete"],
75
+ forma_frete: json_response["forma_frete"],
76
76
  parcelas: json_response["parcelas"],
77
77
  cliente: json_response["cliente"],
78
78
  itens: json_response["itens"],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module TinyErpApi
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.6"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tiny_erp_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges