solidus_bling 3.1.0 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/solidus_bling/order.rb +3 -3
- data/bin/meu_sandbox +0 -0
- data/lib/solidus_bling/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36d88a6fcf16e213530123368d8b5c5fc321abb205febe6359ae2c6b01a95ad
|
4
|
+
data.tar.gz: c21379540afe76b1da77f06b047969b1d77ccefdf8869c4239bd6f9336e42e13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fa4995f1cd64d553f4a48fd4978055595e7967ffcf11853b163fa692f208e54d103ad353763d5744dd82cdc05ebe9fd8f1512b4386fbff024169f79fad6533e
|
7
|
+
data.tar.gz: 2e5abb9964ae48c90be1065dce1d28526d46dbb850396efc0c24586134c1df693a32a5af98a0b2e919b56a29fffec41b83c2d38b8e7bd1185754a187a494a655
|
@@ -26,7 +26,7 @@ module SolidusBling
|
|
26
26
|
id_loja: @account.external_store_id,
|
27
27
|
observacoes: "Número do pedido loja: #{@order.number}",
|
28
28
|
observacoes_internas: observacoes_internas,
|
29
|
-
valor_desconto: @order.adjustment_total,
|
29
|
+
valor_desconto: @order.adjustment_total.abs,
|
30
30
|
id_categoria: @account.incoming_category_id,
|
31
31
|
transporte: transporte,
|
32
32
|
id_vendedor: @account.sellers.first.external_id
|
@@ -84,7 +84,7 @@ module SolidusBling
|
|
84
84
|
"\n" \
|
85
85
|
"Forma de envio: #{@order.shipments.last.selected_shipping_rate.name}" \
|
86
86
|
"\n" +
|
87
|
-
build_cupons(@order.
|
87
|
+
build_cupons(@order.adjustments.where(source_type: "Spree::PromotionAction", eligible: true)).to_s +
|
88
88
|
"\n" +
|
89
89
|
build_order_url.to_s
|
90
90
|
end
|
@@ -149,7 +149,7 @@ module SolidusBling
|
|
149
149
|
def build_cupons cupons
|
150
150
|
string_cupons = ""
|
151
151
|
if !cupons.empty?
|
152
|
-
string_cupons = "Cupons utilizados: #{cupons.pluck(:
|
152
|
+
string_cupons = "Cupons utilizados: #{cupons.pluck(:label).join(", ")}"
|
153
153
|
end
|
154
154
|
string_cupons
|
155
155
|
end
|
data/bin/meu_sandbox
CHANGED
File without changes
|
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.1.
|
4
|
+
version: 3.1.1
|
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-11-
|
11
|
+
date: 2023-11-29 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.
|
176
|
-
signing_key:
|
175
|
+
rubygems_version: 3.4.19
|
176
|
+
signing_key:
|
177
177
|
specification_version: 4
|
178
178
|
summary: Solidus extension to integrate with the Bling
|
179
179
|
test_files: []
|