workarea-storefront 3.5.12 → 3.5.17
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/controllers/workarea/storefront/checkout/addresses_controller.rb +2 -0
- data/app/controllers/workarea/storefront/users/credit_cards_controller.rb +2 -5
- data/app/view_models/workarea/storefront/inquiry_view_model.rb +7 -1
- data/app/views/workarea/storefront/order_mailer/_summary.html.haml +0 -2
- data/test/integration/workarea/storefront/checkouts_integration_test.rb +27 -0
- data/test/integration/workarea/storefront/place_order_integration_test.rb +3 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64a074d921f25dbc672405c7d30bc81c07f931348a1aad856f01a7e666872b8d
|
4
|
+
data.tar.gz: a1e60284eda37d8ca103056d4df1b0ce304d0b318d6dea254d4938b8aeef9898
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a6a527392e576fa45a89d02ecaf3ef0aff8b20245b27c4c5728f1c6c6c9e6d23dfe9a126aa179f278d4b997567052eef6c9e36288f4aa075d4ea26f1eb1941e
|
7
|
+
data.tar.gz: 4b7e348fd868c930a55410aca15c0432a4f5a9c34bc1ffe3d110e94212e5b81b788f0ae8eb376d9eef9c9d114f58e7d001cc0693819a5af129e86e1f32566640
|
@@ -9,7 +9,13 @@ module Workarea
|
|
9
9
|
end
|
10
10
|
|
11
11
|
def subjects
|
12
|
-
Workarea.config.inquiry_subjects.map
|
12
|
+
Workarea.config.inquiry_subjects.map do |key, default_value|
|
13
|
+
[
|
14
|
+
I18n.t('workarea.inquiry.subjects')[key.optionize.to_sym].presence ||
|
15
|
+
default_value,
|
16
|
+
key
|
17
|
+
]
|
18
|
+
end
|
13
19
|
end
|
14
20
|
|
15
21
|
private
|
@@ -164,8 +164,6 @@
|
|
164
164
|
%tr
|
165
165
|
%td= link_to t('workarea.storefront.orders.download'), download_url(item.token)
|
166
166
|
|
167
|
-
= append_partials('storefront.order_summary_item_details', item: item)
|
168
|
-
|
169
167
|
= append_partials('storefront.order_mailer_summary_order_details', item: item)
|
170
168
|
|
171
169
|
- if item.total_adjustments.many?
|
@@ -351,6 +351,33 @@ module Workarea
|
|
351
351
|
get storefront.checkout_shipping_path
|
352
352
|
assert_equal('foo@bar.com', cookies[:email])
|
353
353
|
end
|
354
|
+
|
355
|
+
def test_no_required_shipping_address_options_flash_message
|
356
|
+
product = create_product(name: 'Digital Product', variants: [{ sku: 'SKU' }])
|
357
|
+
create_fulfillment_sku(id: 'SKU', policy: :download, file: product_image_file)
|
358
|
+
|
359
|
+
post storefront.cart_items_path,
|
360
|
+
params: { product_id: product.id, sku: product.skus.first, quantity: 1 }
|
361
|
+
|
362
|
+
get storefront.checkout_addresses_path
|
363
|
+
|
364
|
+
patch storefront.checkout_addresses_path,
|
365
|
+
params: {
|
366
|
+
email: 'bcrouse@weblinc.com',
|
367
|
+
billing_address: {
|
368
|
+
first_name: 'Ben',
|
369
|
+
last_name: 'Crouse',
|
370
|
+
street: '12 N. 3rd St.',
|
371
|
+
city: 'Philadelphia',
|
372
|
+
region: 'PA',
|
373
|
+
postal_code: '19106',
|
374
|
+
country: 'US',
|
375
|
+
phone_number: '2159251800'
|
376
|
+
}
|
377
|
+
}
|
378
|
+
|
379
|
+
refute(flash[:error].present?)
|
380
|
+
end
|
354
381
|
end
|
355
382
|
end
|
356
383
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: workarea-storefront
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.5.
|
4
|
+
version: 3.5.17
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ben Crouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: workarea-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.5.
|
19
|
+
version: 3.5.17
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.5.
|
26
|
+
version: 3.5.17
|
27
27
|
description: Provides user-facing ecommerce storefront functionality for the Workarea
|
28
28
|
Commerce Platform.
|
29
29
|
email:
|