workarea-storefront 3.4.35 → 3.4.40

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c588d8b08c81fbfc1285b0604c0930ac4b329c0602ba31ab8f2e55dec15426e6
4
- data.tar.gz: d595c48ad2af14dcb8eb51a28d9d9e8de6abab5e71ccee668c1b1146a2729bc1
3
+ metadata.gz: 8ac484ab96c9e5827d426a6d60a7ebf0936382fa991741f84a90456b8c59b326
4
+ data.tar.gz: 01acc88e15e6f6b1422e8d8a7e53923a87f5458e4c16dcfb9a65774c367b2054
5
5
  SHA512:
6
- metadata.gz: 6a5c4d36837437aea5cdb7e4af8174f80aea7703d65dd43ca3445d8237a90a80aab554d7dbfd66473393bf1fc8ac2744e3850436d8c7a8219e44f0b0312f38a4
7
- data.tar.gz: fa319e2eb878babef617a146933364fb4d06404ad9771d830435bdc6b74ecb4e211ff29f22a6943f708b35fa903e58378bff1a5355b192879dc469b14cdd17f1
6
+ metadata.gz: 07fbcbddabaa4685624f67c75c22917ea92f199292fd20d3f6b88063d583684f18cf2c18a7a4ce2f09dce7215921b6408676987d868e9bf741e74c8570a627cc
7
+ data.tar.gz: 1ed115cf6f0b00a249636686d5c11b8c504858459d5eaaadcbe84331a150c756cb357313ea6e2e0165cbbaa5b116aecb9869d03f893708c93fdf45df8c2af259
@@ -61,11 +61,8 @@ module Workarea
61
61
  params[:credit_card].permit(
62
62
  :first_name,
63
63
  :last_name,
64
- :number,
65
- :month,
66
- :year,
67
- :cvv,
68
- :default
64
+ :default,
65
+ *Workarea.config.credit_card_attributes
69
66
  )
70
67
  end
71
68
 
@@ -9,7 +9,13 @@ module Workarea
9
9
  end
10
10
 
11
11
  def subjects
12
- Workarea.config.inquiry_subjects.map { |k, v| [v, k] }
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
@@ -3,7 +3,9 @@ require 'test_helper'
3
3
  module Workarea
4
4
  module Storefront
5
5
  class PlaceOrderIntegrationTest < Workarea::IntegrationTest
6
- setup do
6
+ setup :setup_checkout
7
+
8
+ def setup_checkout
7
9
  create_tax_category(
8
10
  name: 'Sales Tax',
9
11
  code: '001',
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.4.35
4
+ version: 3.4.40
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-06-25 00:00:00.000000000 Z
11
+ date: 2020-09-16 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.4.35
19
+ version: 3.4.40
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.4.35
26
+ version: 3.4.40
27
27
  description: Provides user-facing ecommerce storefront functionality for the Workarea
28
28
  Commerce Platform.
29
29
  email: