bling_api 2.0.1 → 2.0.2

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: 7a5008dded075838edc4fe14688e5446bb7b141fddd1341c8145897558046d52
4
- data.tar.gz: 2540b2ef105be962a26f37350c5130dd90b3da3dccf90d760a25f52a2f19cd8e
3
+ metadata.gz: 4d28e4f18f7d5288e30edf3b4a93b85eb015ad69a445fb585be9f231d57e0021
4
+ data.tar.gz: 41e6a1632c82eda95a0821bab1092eac48a009b4566fa8a1e8ba93db33e2946a
5
5
  SHA512:
6
- metadata.gz: 88cb655b7b192b5c3870be22d088b8c3150e1ec63c23ff55dbac97e0467def9724a6bc3a485efd460fababf0b86b2f4dd826427c926eeb77b675a62c207fc9b1
7
- data.tar.gz: 8801c6cd569c465113291129fd4b1b110d0d4aa69a6ba57a0a3fcedfe7c87013fcf2da1a976585c7d251e6ef82f4f0f695991e4acb9119b6d23d4d1d41a7b230
6
+ metadata.gz: e4ae9972ed3cb15268aa26d1d8f6d4469e361be2642f0195cf1f5cfd52ce66481990811ebe0b6b3f0ad5ab7cf8bb99d6991a3b42cd7e863a259478bf7cb23452
7
+ data.tar.gz: 9da868ee20553e1e017dabc5bc11f836cfdf08ba866c2c9138bab2563880d6a6cc4a48675620e3aaea2cc4b59f39277fff549a2f6a268a105e3d015cefea7dc6
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bling_api (2.0.1)
4
+ bling_api (2.0.2)
5
5
  ac
6
6
  base64
7
7
 
@@ -127,31 +127,31 @@ module BlingApi
127
127
  }
128
128
  }
129
129
  }
130
- put("/contatos/#{id}", body: body)
130
+ put("/contatos/#{id}", body: body, timeout: 20)
131
131
  end
132
132
 
133
133
  def get_order(id)
134
- get("/pedidos/vendas/#{id}") { _1.data }
134
+ get("/pedidos/vendas/#{id}", timeout: 20) { _1.data }
135
135
  end
136
136
 
137
137
  def get_contact(id)
138
- get("/contatos/#{id}") { _1.data }
138
+ get("/contatos/#{id}", timeout: 20) { _1.data }
139
139
  end
140
140
 
141
141
  def get_seller(id)
142
- get("/vendedores/#{id}") { _1.data }
142
+ get("/vendedores/#{id}", timeout: 20) { _1.data }
143
143
  end
144
144
 
145
145
  def get_sellers(page, limit, situation)
146
- get("/vendedores?pagina=#{page}&limite=#{limit}&situacaoContato=#{situation}") { _1.data }
146
+ get("/vendedores?pagina=#{page}&limite=#{limit}&situacaoContato=#{situation}", timeout: 20) { _1.data }
147
147
  end
148
148
 
149
149
  def find_contact_by_document_number(document_number)
150
- get("/contatos?numeroDocumento=#{document_number.gsub(/\D/, "")}") { _1.data }
150
+ get("/contatos?numeroDocumento=#{document_number.gsub(/\D/, "")}", timeout: 20) { _1.data }
151
151
  end
152
152
 
153
153
  def find_product_by_sku(sku)
154
- get("/produtos?codigo=#{sku}") { _1.data }
154
+ get("/produtos?codigo=#{sku}", timeout: 20) { _1.data }
155
155
  end
156
156
 
157
157
  def create_contact(
@@ -239,7 +239,7 @@ module BlingApi
239
239
  }
240
240
  }
241
241
  }
242
- post("/contatos", body: body) { _1.data }
242
+ post("/contatos", body: body, timeout: 20) { _1.data }
243
243
  end
244
244
 
245
245
  # @param itens [Array<BlingApi::Item>] Array de objetos Item contendo codigo, id_produto, quantidade, valor, unidade, desconto, aliquota_ipi, descricao, descricao_detalhada, comissao_base, comissao_aliquota, comissao_valor
@@ -294,7 +294,7 @@ module BlingApi
294
294
  observacoesInternas: observacoes_internas,
295
295
  numeroPedidoCompra: numero_pedido_compra
296
296
  }
297
- post("/pedidos/vendas", body: body) { _1.data }
297
+ post("/pedidos/vendas", body: body, timeout: 20) { _1.data }
298
298
  end
299
299
  end
300
300
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "2.0.1"
4
+ VERSION = "2.0.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: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio