effective_orders 6.30.4 → 6.30.5
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 +17 -17
- 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: cff04447601ce40291a5c38dd3259e4b3252e4640639d1c8c3222b84a59950de
|
|
4
|
+
data.tar.gz: 9dfca693f05f0b76c51035d7ce231081e1dd39e8633734df1d0966b32db1ab05
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3ab83fbb4f2d5b6be289080bd34fb2b7c2e2e9cbcd6297fbbdde29d854109bdd63f0a6be7f6c28878df0517cc68090001342ed112566727a6d42c1fbbc422778
|
|
7
|
+
data.tar.gz: 28d2849afe7e3636d15442b0bb7cbc0191e3c96b352bd00806e96b4665b8913777853bce34c9cf14560fea6dcf7eff3bd2c2d3b47b2f13e9959e5310d8d18871
|
|
@@ -969,6 +969,23 @@ module Effective
|
|
|
969
969
|
"#{value.to_s.first(8)}...#{value.to_s.last(4)}" if attribute == :delayed_payment_intent && value.present?
|
|
970
970
|
end
|
|
971
971
|
|
|
972
|
+
# Organization first
|
|
973
|
+
def assign_billing_name
|
|
974
|
+
owner = (organization || user)
|
|
975
|
+
|
|
976
|
+
assign_attributes(
|
|
977
|
+
billing_name: owner.to_s.presence,
|
|
978
|
+
billing_first_name: owner.try(:first_name).presence,
|
|
979
|
+
billing_last_name: owner.try(:last_name).presence
|
|
980
|
+
)
|
|
981
|
+
end
|
|
982
|
+
|
|
983
|
+
# User first
|
|
984
|
+
def assign_billing_email
|
|
985
|
+
email = emails.first
|
|
986
|
+
assign_attributes(email: email) if email.present?
|
|
987
|
+
end
|
|
988
|
+
|
|
972
989
|
protected
|
|
973
990
|
|
|
974
991
|
def get_subtotal
|
|
@@ -1094,23 +1111,6 @@ module Effective
|
|
|
1094
1111
|
order_items.reject { |oi| oi.marked_for_destruction? }
|
|
1095
1112
|
end
|
|
1096
1113
|
|
|
1097
|
-
# Organization first
|
|
1098
|
-
def assign_billing_name
|
|
1099
|
-
owner = (organization || user)
|
|
1100
|
-
|
|
1101
|
-
assign_attributes(
|
|
1102
|
-
billing_name: owner.to_s.presence,
|
|
1103
|
-
billing_first_name: owner.try(:first_name).presence,
|
|
1104
|
-
billing_last_name: owner.try(:last_name).presence
|
|
1105
|
-
)
|
|
1106
|
-
end
|
|
1107
|
-
|
|
1108
|
-
# User first
|
|
1109
|
-
def assign_billing_email
|
|
1110
|
-
email = emails.first
|
|
1111
|
-
assign_attributes(email: email) if email.present?
|
|
1112
|
-
end
|
|
1113
|
-
|
|
1114
1114
|
def assign_organization_address
|
|
1115
1115
|
return unless organization.present?
|
|
1116
1116
|
|
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.30.
|
|
4
|
+
version: 6.30.5
|
|
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: 2026-01-
|
|
11
|
+
date: 2026-01-16 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|