solidus_bling 3.2.1 → 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: 95fd463fb884618048fb434ce521f2eec483f574a2cc5339668120b68799ba5a
4
- data.tar.gz: 7350781e7dcae39a19c3208a89d99d12c2fd1077c5a8caad559758fed584a430
3
+ metadata.gz: ae80bd91f11e2d5f6ca3840d7a82084895e6fd0d3ef54854a7e90c2dde0c8e4e
4
+ data.tar.gz: 3c4e0f0daf58c61519b7a833b05dc8626245d6fb69c85b5c5f187e255670b7c6
5
5
  SHA512:
6
- metadata.gz: 6a2543a423de1bd16db4b95b15b2cb28ca2817d1ae8e59cec5fe3eb997dbb1bbe0953ea99ebe66df64d4617395c91eeaea1f58cd14f3716e6a3ae5f55a21624b
7
- data.tar.gz: d1065bc21e470c2663bc9e2786533569cf5975d97e6520fe787d63c429ce3537543f08e31242d2752cc731bff3853360a826c2db7ef0132ad1607a60de723ffa
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
data/bin/meu_sandbox CHANGED
File without changes
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.2.1"
4
+ VERSION = "3.2.2"
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.2.1
4
+ version: 3.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hamilton Tumenas Borges
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-06 00:00:00.000000000 Z
11
+ date: 2023-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -86,7 +86,7 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '2.7'
89
- description:
89
+ description:
90
90
  email: hamiltontubo@gmail.com
91
91
  executables: []
92
92
  extensions: []
@@ -154,7 +154,7 @@ metadata:
154
154
  homepage_uri: https://github.com/hamiltontborges/solidus_bling#readme
155
155
  source_code_uri: https://github.com/hamiltontborges/solidus_bling
156
156
  changelog_uri: https://github.com/hamiltontborges/solidus_bling/blob/master/CHANGELOG.md
157
- post_install_message:
157
+ post_install_message:
158
158
  rdoc_options: []
159
159
  require_paths:
160
160
  - lib
@@ -172,8 +172,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
172
172
  - !ruby/object:Gem::Version
173
173
  version: '0'
174
174
  requirements: []
175
- rubygems_version: 3.4.19
176
- signing_key:
175
+ rubygems_version: 3.4.20
176
+ signing_key:
177
177
  specification_version: 4
178
178
  summary: Solidus extension to integrate with the Bling
179
179
  test_files: []