bling_api 2.2.0 → 2.3.1

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: fe166ad023f93471bc7491e5cec725e3ec0fd493a67bf8d5aab232b8a8889ef2
4
- data.tar.gz: '09b0bbfea7b442c52d4a72e00f8ee2d165bd7dbfcbffff8b6d3ccee7598ba6eb'
3
+ metadata.gz: 224ef445776453ccd59d8ec185e7f8aeaeb54fd7ec90e86fa8594900d8c0e6a2
4
+ data.tar.gz: 97099266dfdcbc8cb5f19b8c25ddfdf9bc8a601929b1e85162ce45d83db1acc8
5
5
  SHA512:
6
- metadata.gz: e89804af33c5f2a8867ff2ad1763b337499cbda419feb7a0b7b90cfafff98fb394b920db4f94b321a4759da072a765a0290b34e0e1d3e39540ff14c9f970de6c
7
- data.tar.gz: c8bb323ba41328a7b52adb4b40a5cdbdc7f40f786e576b28e9d50a18c89904a77b3b946669d105a50131ed9056cc455a6d21a6d57da7e9b7d35d4fc28234b9b8
6
+ metadata.gz: efb6aa5554639510f23263167edc11834a8bc06c112516ae3670af9b75e461549336eb9a3e63821ef7085f086b96e5fc786d5b2fb555162d6edd93dcef64db00
7
+ data.tar.gz: 383197c1d4619be3eb40d52a70c308609f4f9b895889bd55ba94159dd94e8ecfe9f48bd10eab24eecaa07ede02d09b666342d33184ac0470a362318fdc7d7701
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- bling_api (2.1.2)
4
+ bling_api (2.3.0)
5
5
  ac
6
6
  base64
7
7
  uri
@@ -9,19 +9,48 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- ac (0.2.0)
12
+ ac (1.1.0)
13
+ activesupport
13
14
  typhoeus
15
+ activesupport (7.1.6)
16
+ base64
17
+ benchmark (>= 0.3)
18
+ bigdecimal
19
+ concurrent-ruby (~> 1.0, >= 1.0.2)
20
+ connection_pool (>= 2.2.5)
21
+ drb
22
+ i18n (>= 1.6, < 2)
23
+ logger (>= 1.4.2)
24
+ minitest (>= 5.1)
25
+ mutex_m
26
+ securerandom (>= 0.3)
27
+ tzinfo (~> 2.0)
14
28
  attr_extras (7.1.0)
15
29
  base64 (0.2.0)
30
+ benchmark (0.5.0)
31
+ bigdecimal (4.1.2)
16
32
  concurrent-ruby (1.2.2)
33
+ connection_pool (3.0.2)
17
34
  diff-lcs (1.5.0)
18
- ethon (0.16.0)
35
+ drb (2.2.3)
36
+ ethon (0.18.0)
19
37
  ffi (>= 1.15.0)
20
- ffi (1.16.3)
38
+ logger
39
+ ffi (1.17.4-arm64-darwin)
40
+ ffi (1.17.4-x86_64-linux-gnu)
41
+ i18n (1.14.8)
42
+ concurrent-ruby (~> 1.0)
43
+ logger (1.7.0)
44
+ minitest (6.0.6)
45
+ drb (~> 2.0)
46
+ prism (~> 1.5)
47
+ mutex_m (0.3.0)
21
48
  optimist (3.1.0)
22
49
  patience_diff (1.2.0)
23
50
  optimist (~> 3.0)
51
+ prism (1.9.0)
24
52
  rake (13.1.0)
53
+ securerandom (0.4.1)
25
54
  super_diff (0.10.0)
26
55
  attr_extras (>= 6.2.4)
27
56
  diff-lcs
@@ -29,8 +58,10 @@ GEM
29
58
  tldr (0.9.5)
30
59
  concurrent-ruby (~> 1.2)
31
60
  super_diff (~> 0.10)
32
- typhoeus (1.4.0)
33
- ethon (>= 0.9.0)
61
+ typhoeus (1.6.0)
62
+ ethon (>= 0.18.0)
63
+ tzinfo (2.0.6)
64
+ concurrent-ruby (~> 1.0)
34
65
  uri (1.1.1)
35
66
 
36
67
  PLATFORMS
@@ -11,6 +11,14 @@ module BlingApi
11
11
  @token_expires_at = token_expires_at
12
12
  end
13
13
 
14
+ def default_options
15
+ super.deep_merge({
16
+ headers: {
17
+ "enable-jwt" => "1"
18
+ }
19
+ })
20
+ end
21
+
14
22
  def refresh_token
15
23
  headers = {
16
24
  "Content-Type" => "application/x-www-form-urlencoded",
@@ -100,8 +108,8 @@ module BlingApi
100
108
  tiposContato: tipos_contato || contact.tiposContato,
101
109
  pessoasContato: pessoas_contato || contact.pessoasContato,
102
110
  financeiro: {
103
- limite_credito: limite_credito || contact.financeiro.limiteCredito,
104
- condicao_pagamento: condicao_pagamento || contact.financeiro.condicaoPagamento,
111
+ limiteCredito: limite_credito || contact.financeiro.limiteCredito,
112
+ condicaoPagamento: condicao_pagamento || contact.financeiro.condicaoPagamento,
105
113
  categoria: {
106
114
  id: financeiro_categoria_id || contact.financeiro.categoria.id
107
115
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlingApi
4
- VERSION = "2.2.0"
4
+ VERSION = "2.3.1"
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.2.0
4
+ version: 2.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - caio