effective_orders 6.21.1 → 6.21.3
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 +4 -4
- data/app/models/effective/order.rb +9 -3
- data/lib/effective_orders/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 342b57d2357589ac84b7b8864e75a4948d662bbcf899cafb9dcd1134c16d4a16
|
4
|
+
data.tar.gz: e1b3942a707ac68de5e7c883b3ee178621146ae9faf9825f0774e75c8351c547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 432194cc453ba1b16415e4efa6c68560ee075440acaa010c53c407dd4716a1e7cab7943fb0b9267e24dd950f0f40bf86788943aa6b26f34dd291ae6cc3dbe154
|
7
|
+
data.tar.gz: d0009c4d688f25c982557dd58e6c750c585745c9ece99e176a4a108ac4bb24b844a7bfa01d7538bcd2bca792bcdd56ca4f0d45807f0049d45e07cc70562b9a3a
|
@@ -628,9 +628,7 @@ module Effective
|
|
628
628
|
self.addresses.clear if addresses.any? { |address| address.valid? == false }
|
629
629
|
save!
|
630
630
|
|
631
|
-
if
|
632
|
-
after_commit { send_payment_request_to_buyer! }
|
633
|
-
end
|
631
|
+
after_commit { send_payment_request_to_buyer! } if send_payment_request_to_buyer?
|
634
632
|
|
635
633
|
true
|
636
634
|
end
|
@@ -895,6 +893,10 @@ module Effective
|
|
895
893
|
end
|
896
894
|
end
|
897
895
|
|
896
|
+
def send_payment_request_to_buyer?
|
897
|
+
EffectiveResources.truthy?(send_payment_request_to_buyer)
|
898
|
+
end
|
899
|
+
|
898
900
|
# Admin datatable action
|
899
901
|
def send_payment_request_to_buyer!
|
900
902
|
EffectiveOrders.send_email(:order_email, self, payment_request: true) unless (purchased? || refund?)
|
@@ -905,6 +907,10 @@ module Effective
|
|
905
907
|
EffectiveOrders.send_email(:order_email, self) if purchased_or_deferred?
|
906
908
|
end
|
907
909
|
|
910
|
+
def log_changes_formatted_value(attribute, value)
|
911
|
+
"#{value.to_s.first(8)}...#{value.to_s.last(4)}" if attribute == :delayed_payment_intent && value.present?
|
912
|
+
end
|
913
|
+
|
908
914
|
protected
|
909
915
|
|
910
916
|
def get_subtotal
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_orders
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.21.
|
4
|
+
version: 6.21.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-
|
11
|
+
date: 2025-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|