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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ef2affa96f185b9f44e1daaec70c7e82a1379491a3808f5e103929d6d001b00b
4
- data.tar.gz: 55e3b6ef22800747a76f8bdd97df813be3b27676f5b734484def415442475815
3
+ metadata.gz: a04a4dbf899a435d7d09f1c723c9b8f99c46bcf25c683a1c43278f26adc8979c
4
+ data.tar.gz: 7e61054450432223a0b236fb748d6c3cacd5e2f037139457ee41ba7ac351b565
5
5
  SHA512:
6
- metadata.gz: 93e6b1b6b5196f06382594bf56a4f02c6913f167faa8971bacf8375d4e70985a99d720b1120c0b52c6303fcf53c45a60018417c0e7626b6575a135442f4d34ed
7
- data.tar.gz: 295c78ad801ba7104ff10275a1c2a7368496ea999ddb45f54982f1de394c4247f74293fb8d69365191eed1c8ad794ea7a7e3962d9f0bac22cdac659f15341417
6
+ metadata.gz: 844634140d72199434e0d45e361c4caf04002919e3f93de902f57184958b64be082826d5a6431001947cb67bbad2f2b885eed1ebbb3a37fc026bca012a14759b
7
+ data.tar.gz: 7e2dd2c44f166405543d8bbb719dc4584bb25a96daf5e2091df78930f0a5a44548134339e8b7d98ebfa300676891dea196a1840576282965efff453c21ab249d
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bling_api (0.1.1)
4
+ bling_api (0.1.2)
5
5
  ac
6
6
  base64
7
7
 
@@ -44,7 +44,10 @@ module BlingApi
44
44
  },
45
45
  "transporte": transporte,
46
46
  "parcelas": parcelas,
47
- "valorDesconto": valor_desconto,
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
- valor_desconto: json_response["valorDesconto"],
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"]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bling_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio