bling_api 2.3.1 → 2.3.3

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: 224ef445776453ccd59d8ec185e7f8aeaeb54fd7ec90e86fa8594900d8c0e6a2
4
- data.tar.gz: 97099266dfdcbc8cb5f19b8c25ddfdf9bc8a601929b1e85162ce45d83db1acc8
3
+ metadata.gz: a9b5a7a7981aae76da8a7f0c4ccc183c1e71a635b1ac55533a56d178e0098b88
4
+ data.tar.gz: d04c28341ab5aaadaf179d526e90226d10899d1d4d243a74c9a8695adec27a85
5
5
  SHA512:
6
- metadata.gz: efb6aa5554639510f23263167edc11834a8bc06c112516ae3670af9b75e461549336eb9a3e63821ef7085f086b96e5fc786d5b2fb555162d6edd93dcef64db00
7
- data.tar.gz: 383197c1d4619be3eb40d52a70c308609f4f9b895889bd55ba94159dd94e8ecfe9f48bd10eab24eecaa07ede02d09b666342d33184ac0470a362318fdc7d7701
6
+ metadata.gz: 14649a66a9ec5875129c1dff4495919654fcb923d06d0f9d27309f54f864e4e406b75b8c57134b4b6165254b978f7bec35237dabb38724926be35e54fe946a0f
7
+ data.tar.gz: f0f1d116bd7e500d95e77bf18b4f9f5d01458b98362f260cb53d983ece73886ec66cdd9776b35a6283f1c440949b07f15bba084003cd1967af8486549a8739d6
@@ -196,6 +196,10 @@ module BlingApi
196
196
  get("/contas/receber?#{query}", timeout: 30) { _1.data }
197
197
  end
198
198
 
199
+ def get_payment_to_receivable(id)
200
+ get("/contas/receber/#{id}", timeout: 30) { _1.data }
201
+ end
202
+
199
203
  def create_contact(
200
204
  nome:,
201
205
  pessoa_juridica:,
@@ -296,6 +300,7 @@ module BlingApi
296
300
  numero_venda: nil,
297
301
  numero_pedido: nil,
298
302
  id_loja: nil,
303
+ id_unidade_negocio: nil,
299
304
  id_vendedor: nil,
300
305
  pessoa_juridica: nil,
301
306
  numero_documento: nil,
@@ -307,13 +312,14 @@ module BlingApi
307
312
  numero_pedido_compra: nil,
308
313
  transporte: nil
309
314
  )
315
+ loja = { id: id_loja }
316
+ loja[:unidadeNegocio] = { id: id_unidade_negocio } if id_unidade_negocio
317
+
310
318
  body = {
311
319
  numero: numero_venda,
312
320
  numeroLoja: numero_pedido,
313
321
  data: data,
314
- loja: {
315
- id: id_loja
316
- },
322
+ loja: loja,
317
323
  contato: {
318
324
  id: id_contato,
319
325
  tipoPessoa: pessoa_juridica ? "J" : "F",
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "2.3.1"
4
+ VERSION = "2.3.3"
5
5
  end
metadata CHANGED
@@ -1,13 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bling_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio
8
+ autorequire:
8
9
  bindir: exe
9
10
  cert_chain: []
10
- date: 1980-01-02 00:00:00.000000000 Z
11
+ date: 2026-08-13 00:00:00.000000000 Z
11
12
  dependencies:
12
13
  - !ruby/object:Gem::Dependency
13
14
  name: ac
@@ -51,6 +52,7 @@ dependencies:
51
52
  - - ">="
52
53
  - !ruby/object:Gem::Version
53
54
  version: '0'
55
+ description:
54
56
  email:
55
57
  - caioif4@gmail.com
56
58
  executables: []
@@ -80,6 +82,7 @@ licenses:
80
82
  metadata:
81
83
  homepage_uri: https://github.com/CaioGarcia1
82
84
  source_code_uri: https://github.com/CaioGarcia1
85
+ post_install_message:
83
86
  rdoc_options: []
84
87
  require_paths:
85
88
  - lib
@@ -94,7 +97,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
97
  - !ruby/object:Gem::Version
95
98
  version: '0'
96
99
  requirements: []
97
- rubygems_version: 3.6.7
100
+ rubygems_version: 3.5.3
101
+ signing_key:
98
102
  specification_version: 4
99
103
  summary: ''
100
104
  test_files: []