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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 59e29330f3c5da9ebba7b08113fa4c6b859861c715040e0915274b7d5af0ae32
4
- data.tar.gz: a6adb152b89aa7aa7a2243d5098aba58563b06e8e6c34a938cf021bce7b353f6
3
+ metadata.gz: d36d88a6fcf16e213530123368d8b5c5fc321abb205febe6359ae2c6b01a95ad
4
+ data.tar.gz: c21379540afe76b1da77f06b047969b1d77ccefdf8869c4239bd6f9336e42e13
5
5
  SHA512:
6
- metadata.gz: d927218a320e560c0aaaae330c8d5e2402cf45d0298f64a7940b32ff7af065a26468787cac1526c02bb2192424b9add5358bc4f5aa9d4d4ca8f88e143596af3d
7
- data.tar.gz: 8a1b799003bd9f5bfe457e8ef2bac6ba09cd2a5c6698be82699cde210a17d3c1e7d0295db4eb7e8ea7f4eac030ca4e66c85ec859fa89a5acac0c60fa0b865703
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.promotions).to_s +
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(:name).join(", ")}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.1.0"
4
+ VERSION = "3.1.1"
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.1.0
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-23 00:00:00.000000000 Z
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.20
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: []