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 +4 -4
- data/app/models/solidus_bling/order.rb +9 -2
- data/lib/solidus_bling/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7681d43d1cd2da7a170365fcf1e2728d33db77e0d1d10253562d3a3f40bf2cf5
|
|
4
|
+
data.tar.gz: a736c5689d9ba27426074d8333e4a397721994de8a5760c45e09b27b1da0d333
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 =
|
|
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
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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
|