solidus_bling 3.4.3 → 3.4.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 474c1d7250f5abafe50d9c1b70978e78a16ee1d4954b85ca631be3829364a4c5
4
- data.tar.gz: 3b2ed9546da3d3f3cd8a4e558ea4f5ef8ec09488e748f94fa3a95c602b1f8765
3
+ metadata.gz: 39972f690b188582eb90995659ea1f965d304b6739cfd1ed758f40fc667c0191
4
+ data.tar.gz: 199818222481a6e2a8dc44c4eeae4e2fb7ee0fd38515d6bc1d9db9713b6519fc
5
5
  SHA512:
6
- metadata.gz: 8c0e2b194f2b37c398c8e8afc7edfd62b7ef85553ba6a0b398351c95c28e06268813b3da0c20476469ce71da3f1e372fb99a89757158f053872a916d3e9b4de7
7
- data.tar.gz: 99c3756b1fdc64462729d68c12dc29329eb9e127fe95c1dcbaa7a30d861cfb55f0ce5a06b82b7a8e395be157130d16df25457f37310147f085942d2c9afd837f
6
+ metadata.gz: adca05171481ba6bd6f08aff36f050ef95ac0f30aa2233f5c660cbae4079212ed27e452a9360714b41cf4067459766885c33b47c1fb242a3ae6c017ac77e64f8
7
+ data.tar.gz: 390625e14a64fb80333a4de9f9d0d9470bd528f2bd43beba00117732209b610a94b837b56f04df13e9e2fcc1dde088b659b5580d8d4672888372e3ccf5dff896
@@ -183,7 +183,7 @@ module SolidusBling
183
183
  payment_method = order.payments.valid.last&.payment_method
184
184
  importation_rules = SolidusBling.config.importation_rules
185
185
  if importation_rules
186
- order.total >= importation_rules[:amount] && importation_rules[:payment_methods].include?(payment_method.type)
186
+ order.total >= importation_rules[:amount] && importation_rules[:payment_methods].include?(payment_method&.type)
187
187
  else
188
188
  false
189
189
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusBling
4
- VERSION = "3.4.3"
4
+ VERSION = "3.4.4"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_bling
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.4.3
4
+ version: 3.4.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Todas Essas Coisas