bling_api 0.1.7 → 0.1.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 433819d4e3cb88c722a88bd684510bd9e80fcdd131b0bdc76d1e8280f8a69973
4
- data.tar.gz: edfa00380021724b1328bb420c93bd5ad4916269e1d1662ea0b1a890091a4351
3
+ metadata.gz: d87c68853e2d722c08795ca6f7f3b6656bd4b5cfa0a7919b4a72c7c4120d378b
4
+ data.tar.gz: 3c535eac756de72762583b440526ee44ce0094eea2aacd6cb37d4a0c3be75c50
5
5
  SHA512:
6
- metadata.gz: dc36dda9214bc2b9a97c8107978029e9018af8915cad995f75c86fa57c0b6f31a777deed4f3ebf2366ecb19d8553c8d67b44987de8c7efddacf977035c3ee4f0
7
- data.tar.gz: 0b2f967daa2829386f9b4567a3ac66241ce8d348eeb3c02a73573f616af66d93529aed072a38bbe4f134f9ae9df6e3ee3e4daf7e5e7262b6eb436ee749a9909c
6
+ metadata.gz: 720c746b5f398c061f485b6884e5488acdcd63680656d19bc1d30e90f778788c07875c132e3e8929ea9b201768b24b7fa473e42a377732026e98252a9ce0b5e2
7
+ data.tar.gz: 991608ed1b122c1a3f333da359426a8e652e268d3081a99cee5635b97287e6ee83a6fef83310e9927e9d27a3fa3ca111623f9ba826f5ff45ead3b553a5e048ff
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bling_api (0.1.7)
4
+ bling_api (0.1.9)
5
5
  ac
6
6
  base64
7
7
 
@@ -7,7 +7,7 @@ module BlingApi
7
7
  end
8
8
 
9
9
  attr_reader :id, :numero, :id_contato, :items, :parcelas, :numero_loja, :data, :total_produtos, :total, :id_loja, :numero_pedido_compra, :observacoes, :observacoes_internas, :valor_desconto, :id_categoria, :transporte, :id_vendedor, :pessoa_juridica, :numero_documento
10
- def initialize(id:nil, numero:nil, id_contato:, items:, parcelas:nil, numero_loja:, data:, total_produtos:, total:, id_loja:, numero_pedido_compra:nil, observacoes:, observacoes_internas:, valor_desconto:, id_categoria:, transporte:nil, id_vendedor:, pessoa_juridica:, numero_documento:)
10
+ def initialize(id:nil, numero:nil, id_contato:, items:, parcelas:nil, numero_loja:, data:, total_produtos:, total:, id_loja:, numero_pedido_compra:nil, observacoes:, observacoes_internas:, valor_desconto:, id_categoria:, transporte:nil, id_vendedor:, pessoa_juridica:nil, numero_documento:nil)
11
11
  @id = id
12
12
  @numero = numero
13
13
  @id_contato = id_contato
@@ -73,7 +73,7 @@ module BlingApi
73
73
  id: json_response["id"],
74
74
  id_contato: json_response["contato"]["id"],
75
75
  pessoa_juridica: json_response.dig("contato", "tipoPessoa") == "J",
76
- numeroDocumento: json_response.dig("contato", "numeroDocumento"),
76
+ numero_documento: json_response.dig("contato", "numeroDocumento"),
77
77
  items: json_response["itens"],
78
78
  parcelas: json_response["parcelas"],
79
79
  numero_loja: json_response["numeroLoja"],
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "0.1.7"
4
+ VERSION = "0.1.9"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bling_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-01-03 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ac