effective_orders 6.25.2 → 6.25.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 997019591c0afbc15cd753ec5be961fc741cb9aa27b2106237949d57556f1009
|
4
|
+
data.tar.gz: 2db2ecb0f21460b43ab088e081fe0fca6e43a68288f12240535f7f90d94781a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0c36e3d457379454db871feb90a69f7e1076e1daa5695925d527d2854fb2f28547c01ffee1dfa41a4269b5e596dbae9d1739ac3ba18465f380b0041ee34de39
|
7
|
+
data.tar.gz: 8c85e37a9931ffc619f79424b62d7658e5c566bc51fa91f446196afaf0ff9dc8cc0b76992c4394978705c6dc821658d0ae591e031c974b464aee9939ce39cf68
|
@@ -308,6 +308,8 @@ module Effective
|
|
308
308
|
|
309
309
|
billingAddress = if (address = order.billing_address).present?
|
310
310
|
{
|
311
|
+
firstName: order.billing_first_name,
|
312
|
+
lastName: order.billing_last_name,
|
311
313
|
email: order.email,
|
312
314
|
address: scrub(address.address1, limit: 250),
|
313
315
|
address2: scrub(address.address2),
|
@@ -320,6 +322,8 @@ module Effective
|
|
320
322
|
|
321
323
|
shippingAddress = if (address = order.shipping_address).present?
|
322
324
|
{
|
325
|
+
firstName: order.shipping_first_name,
|
326
|
+
lastName: order.shipping_last_name,
|
323
327
|
address: scrub(address.address1, limit: 250),
|
324
328
|
address2: scrub(address.address2),
|
325
329
|
city: scrub(address.city, limit: 50),
|
@@ -642,9 +642,10 @@ module Effective
|
|
642
642
|
true
|
643
643
|
end
|
644
644
|
|
645
|
-
# Used
|
645
|
+
# Used to indicate the order has a billing address and is ready for checkout
|
646
646
|
def confirm!
|
647
647
|
return false if purchased?
|
648
|
+
return save! if deferred?
|
648
649
|
confirmed!
|
649
650
|
end
|
650
651
|
|
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.25.
|
4
|
+
version: 6.25.4
|
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-07-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|