solidus_bling 3.3.3 → 3.3.4

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: 86540816d453e234d9eba3acec2fb98afb22321feb3e623c5c530f764cdd0241
4
- data.tar.gz: bef21bee51bb39480d8d42fa41ddf0583bf83a452ea69eb170483e6fe557f204
3
+ metadata.gz: 7681d43d1cd2da7a170365fcf1e2728d33db77e0d1d10253562d3a3f40bf2cf5
4
+ data.tar.gz: a736c5689d9ba27426074d8333e4a397721994de8a5760c45e09b27b1da0d333
5
5
  SHA512:
6
- metadata.gz: 1c45fadc970b7ad4543f9ad9484e177702ad2216a2a1dab9f4a973eaf4d6538b887fab02de1bc7932e35a51dcc9dbea01dd95a6bfdef5973dd34474ed9ce4564
7
- data.tar.gz: 95a7587d48d6b893bcddc305b92c7475c91b01c51cc84ae806fb995010d0a0970f96074d9942559fee120e459f46d4a659f1902daed4c1b5dbba3201bd9fb05d
6
+ metadata.gz: f185a198007eef59805be874c7f77d5fd7236a5cfa3f66c6202aa2eb045ff3e2b48ef62140d245dc3560735a5ae19016647495bfeb3d78a7d62756a6fe2e3eb6
7
+ data.tar.gz: 0a09fd5f816d4d3a2cf9344bf7cc035dbbd9e1d71947fd35098cab325926442f26bb1f32923445c0247275da3866a71bc89c7ce452036dabb3c8cd77c53f5e1a
@@ -9,7 +9,7 @@ module SolidusBling
9
9
  @account.check_token
10
10
  BlingApi.configure { |config| config.access_token = @account.access_token }
11
11
 
12
- contato = costumer
12
+ contato = customer
13
13
  items = products
14
14
  parcelas = installments
15
15
  observacoes_internas = internal_observations
@@ -40,13 +40,20 @@ module SolidusBling
40
40
  end
41
41
  end
42
42
 
43
- def costumer
43
+ def customer
44
44
  contato = BlingApi::Customer.find_by_tax_id(@order.tax_id)
45
45
  if contato
46
46
  contato.update(
47
47
  pessoa_juridica: @order.tax_id.length > 14,
48
48
  numero_documento: @order.tax_id,
49
49
  situacao: "A",
50
+ codigo: contato.codigo,
51
+ vendedor: contato.vendedor,
52
+ dados_adicionais: contato.dados_adicionais,
53
+ financeiro: contato.financeiro,
54
+ pais: contato.pais,
55
+ tipos_contato: contato.tipos_contato,
56
+ pessoa_contato: contato.pessoa_contato,
50
57
  **build_customer
51
58
  )
52
59
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.3.3"
4
+ VERSION = "3.3.4"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_bling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-04-24 00:00:00.000000000 Z
11
+ date: 2024-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  - !ruby/object:Gem::Version
183
183
  version: '0'
184
184
  requirements: []
185
- rubygems_version: 3.4.20
185
+ rubygems_version: 3.5.3
186
186
  signing_key:
187
187
  specification_version: 4
188
188
  summary: Solidus extension to integrate with the Bling