bling_api 2.3.2 → 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: 013fa965ae099d0c967a51874cefc4d29dad4559db2d3e907632113901fa5b43
4
- data.tar.gz: 4f5f9f236232aaa3ab6fae14d0c1383effa9e53a1f31712b1614bc4e0285fea2
3
+ metadata.gz: a9b5a7a7981aae76da8a7f0c4ccc183c1e71a635b1ac55533a56d178e0098b88
4
+ data.tar.gz: d04c28341ab5aaadaf179d526e90226d10899d1d4d243a74c9a8695adec27a85
5
5
  SHA512:
6
- metadata.gz: 48f98bd02ae43970b12479d79f5c11c22740879b8b9cc9cff41d71c8435273df819103f2802d3bb2ddf019a5e5273892468dab9aacbc90d6785d4f63f2d40352
7
- data.tar.gz: 3fd1205aa5f5dc926357499158c2f3f4d036418e4d8b6b848aac28c1c9fa01fed47644323423d308eb9f191e0253c63832a9407173fa7ffb6c3c30bcad4f7113
6
+ metadata.gz: 14649a66a9ec5875129c1dff4495919654fcb923d06d0f9d27309f54f864e4e406b75b8c57134b4b6165254b978f7bec35237dabb38724926be35e54fe946a0f
7
+ data.tar.gz: f0f1d116bd7e500d95e77bf18b4f9f5d01458b98362f260cb53d983ece73886ec66cdd9776b35a6283f1c440949b07f15bba084003cd1967af8486549a8739d6
@@ -300,6 +300,7 @@ module BlingApi
300
300
  numero_venda: nil,
301
301
  numero_pedido: nil,
302
302
  id_loja: nil,
303
+ id_unidade_negocio: nil,
303
304
  id_vendedor: nil,
304
305
  pessoa_juridica: nil,
305
306
  numero_documento: nil,
@@ -311,13 +312,14 @@ module BlingApi
311
312
  numero_pedido_compra: nil,
312
313
  transporte: nil
313
314
  )
315
+ loja = { id: id_loja }
316
+ loja[:unidadeNegocio] = { id: id_unidade_negocio } if id_unidade_negocio
317
+
314
318
  body = {
315
319
  numero: numero_venda,
316
320
  numeroLoja: numero_pedido,
317
321
  data: data,
318
- loja: {
319
- id: id_loja
320
- },
322
+ loja: loja,
321
323
  contato: {
322
324
  id: id_contato,
323
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.2"
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.2
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: []