solidus_bling 3.2 → 3.2.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ae80bd91f11e2d5f6ca3840d7a82084895e6fd0d3ef54854a7e90c2dde0c8e4e
|
4
|
+
data.tar.gz: 3c4e0f0daf58c61519b7a833b05dc8626245d6fb69c85b5c5f187e255670b7c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0d26c4977d8dcc1e90a6d4aa129a76e37e0a9177d06bd9e43adf0fef839a496845710f75a817effb74d07097fbc5047c20a2a4adc8b75bd2b9e408a2805868b7
|
7
|
+
data.tar.gz: 7fdb1ba7e8d50d51daa3c72e14c2768e60168847a30fb72953e4e3dee292f0827bdda5988abb0ddbd22465d8d6182b4b8fccab664f10eb2e5191a887d1cd3765
|
@@ -105,14 +105,14 @@ module SolidusBling
|
|
105
105
|
nome: transportadora
|
106
106
|
},
|
107
107
|
etiqueta: {
|
108
|
-
nome: @order.ship_address.name,
|
109
|
-
endereco: @order.ship_address.address1,
|
110
|
-
numero: @order.ship_address.number,
|
111
|
-
complemento: @order.ship_address.address2,
|
112
|
-
municipio: @order.ship_address.city,
|
113
|
-
uf: @order.ship_address.state.abbr,
|
114
|
-
bairro: @order.ship_address.district,
|
115
|
-
cep: @order.ship_address.zipcode,
|
108
|
+
nome: @order.ship_address.name.strip,
|
109
|
+
endereco: @order.ship_address.address1.strip,
|
110
|
+
numero: @order.ship_address.number.strip,
|
111
|
+
complemento: @order.ship_address.address2.strip,
|
112
|
+
municipio: @order.ship_address.city.strip,
|
113
|
+
uf: @order.ship_address.state.abbr.strip,
|
114
|
+
bairro: @order.ship_address.district.strip,
|
115
|
+
cep: @order.ship_address.zipcode.strip,
|
116
116
|
nomePais: "Brasil"
|
117
117
|
},
|
118
118
|
volumes: [
|
@@ -126,26 +126,26 @@ module SolidusBling
|
|
126
126
|
|
127
127
|
def build_customer
|
128
128
|
{
|
129
|
-
nome: @order.bill_address.name,
|
130
|
-
telefone: @order.bill_address.phone,
|
131
|
-
email: @order.email,
|
129
|
+
nome: @order.bill_address.name.strip,
|
130
|
+
telefone: @order.bill_address.phone.strip,
|
131
|
+
email: @order.email.strip,
|
132
132
|
endereco: {
|
133
|
-
"endereco" => @order.bill_address.address1,
|
134
|
-
"cep" => @order.bill_address.zipcode,
|
135
|
-
"bairro" => @order.bill_address.district,
|
136
|
-
"municipio" => @order.bill_address.city,
|
137
|
-
"uf" => @order.bill_address.state.abbr,
|
138
|
-
"numero" => @order.bill_address.number,
|
139
|
-
"complemento" => @order.bill_address.address2
|
133
|
+
"endereco" => @order.bill_address.address1.strip,
|
134
|
+
"cep" => @order.bill_address.zipcode.strip,
|
135
|
+
"bairro" => @order.bill_address.district.strip,
|
136
|
+
"municipio" => @order.bill_address.city.strip,
|
137
|
+
"uf" => @order.bill_address.state.abbr.strip,
|
138
|
+
"numero" => @order.bill_address.number.strip,
|
139
|
+
"complemento" => @order.bill_address.address2.strip
|
140
140
|
},
|
141
141
|
endereco_cobranca: {
|
142
|
-
"endereco" => @order.bill_address.address1,
|
143
|
-
"cep" => @order.bill_address.zipcode,
|
144
|
-
"bairro" => @order.bill_address.district,
|
145
|
-
"municipio" => @order.bill_address.city,
|
146
|
-
"uf" => @order.bill_address.state.abbr,
|
147
|
-
"numero" => @order.bill_address.number,
|
148
|
-
"complemento" => @order.bill_address.address2
|
142
|
+
"endereco" => @order.bill_address.address1.strip,
|
143
|
+
"cep" => @order.bill_address.zipcode.strip,
|
144
|
+
"bairro" => @order.bill_address.district.strip,
|
145
|
+
"municipio" => @order.bill_address.city.strip,
|
146
|
+
"uf" => @order.bill_address.state.abbr.strip,
|
147
|
+
"numero" => @order.bill_address.number.strip,
|
148
|
+
"complemento" => @order.bill_address.address2.strip
|
149
149
|
}
|
150
150
|
}
|
151
151
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
<div>
|
2
2
|
<div>
|
3
|
-
|
4
|
-
<span><%= @bling_account.
|
3
|
+
ID do aplicativo:
|
4
|
+
<span><%= @bling_account.id %></span>
|
5
5
|
</div>
|
6
|
-
<%= link_to "Editar",
|
7
|
-
<%= link_to "Excluir",
|
6
|
+
<%= link_to "Editar", edit_admin_solidus_bling_account_path(@bling_account.id) %>
|
7
|
+
<%= link_to "Excluir", admin_solidus_bling_account_path(@bling_account.id), method: :delete %>
|
8
8
|
</div>
|
@@ -18,6 +18,11 @@ module SolidusBling
|
|
18
18
|
run "bin/rails railties:install:migrations FROM=solidus_bling"
|
19
19
|
end
|
20
20
|
|
21
|
+
def install_bling_api
|
22
|
+
puts 'Installing bling_api gem...'
|
23
|
+
run 'bin/rails g bling_api:install'
|
24
|
+
end
|
25
|
+
|
21
26
|
def run_migrations
|
22
27
|
run_migrations = options[:auto_run_migrations] || ["", "y", "Y"].include?(ask("Would you like to run the migrations now? [Y/n]")) # rubocop:disable Layout/LineLength
|
23
28
|
if run_migrations
|
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:
|
4
|
+
version: 3.2.2
|
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: 2023-12-
|
11
|
+
date: 2023-12-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: solidus_core
|