bling_api 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/bling_api/order.rb +5 -3
- data/lib/bling_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a04a4dbf899a435d7d09f1c723c9b8f99c46bcf25c683a1c43278f26adc8979c
|
4
|
+
data.tar.gz: 7e61054450432223a0b236fb748d6c3cacd5e2f037139457ee41ba7ac351b565
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 844634140d72199434e0d45e361c4caf04002919e3f93de902f57184958b64be082826d5a6431001947cb67bbad2f2b885eed1ebbb3a37fc026bca012a14759b
|
7
|
+
data.tar.gz: 7e2dd2c44f166405543d8bbb719dc4584bb25a96daf5e2091df78930f0a5a44548134339e8b7d98ebfa300676891dea196a1840576282965efff453c21ab249d
|
data/Gemfile.lock
CHANGED
data/lib/bling_api/order.rb
CHANGED
@@ -44,7 +44,10 @@ module BlingApi
|
|
44
44
|
},
|
45
45
|
"transporte": transporte,
|
46
46
|
"parcelas": parcelas,
|
47
|
-
"
|
47
|
+
"desconto": {
|
48
|
+
"valor": valor_desconto,
|
49
|
+
"unidade": "REAL"
|
50
|
+
},
|
48
51
|
"totalProdutos": total_produtos,
|
49
52
|
"total": total,
|
50
53
|
"observacoes": observacoes,
|
@@ -77,8 +80,7 @@ module BlingApi
|
|
77
80
|
numero_pedido_compra: json_response["numeroPedidoCompra"],
|
78
81
|
observacoes: json_response["observacoes"],
|
79
82
|
observacoes_internas: json_response["observacoesInternas"],
|
80
|
-
|
81
|
-
unidade_desconto: json_response["unidadeDesconto"],
|
83
|
+
desconto: json_response["desconto"],
|
82
84
|
id_categoria: json_response["categoria"]["id"],
|
83
85
|
transporte: json_response["transporte"],
|
84
86
|
id_vendedor: json_response["vendedor"]["id"]
|
data/lib/bling_api/version.rb
CHANGED