workarea-api-storefront 4.5.0 → 4.5.6

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: ae0d2a306dbdc516984394960bb8419f831836108a70e59d7df7c62653103770
4
- data.tar.gz: 82ab83341a50980101a3e67bad447454c23825314bdb1c93ad0c525cbba8cabb
3
+ metadata.gz: c66392daf9d5f67fb4d7a33d5d614e2c618f706ad6a5d529c8a1878778b90ff6
4
+ data.tar.gz: b6a0563760e55b88468015bc12a805f444e505f9344c4ae6e2e67bc891671fbf
5
5
  SHA512:
6
- metadata.gz: f2f47996cf078f62e2ba219f6904f2e7d0d29311bfb84b0ec2f1b6be6a303ae2aaba86ea8c34abcb245eb056479b72e2cea252a945dcb7518579d9264a0bb9db
7
- data.tar.gz: d93ffbe23d2e961d49ae0b8d3f4955c4a804a36a2b6780ce11e819756c4ecaabed70f243ef950c0297e173aa24e6fd80db4d29da49052eb030191f15c9af7674
6
+ metadata.gz: 5b21316e71b8b5c3d77d8651bf7cd43c5e331cda556cdf6e54f7803ac22e2a2d32e079b33d0be1fd57c6b54a3f9940f64b41fccefb19c8941292fe40ae49d52c
7
+ data.tar.gz: 749f8b7f245f9e9774decf9a033ef90566ff256d93d8c649403885ce17ebe4f8f6e7a1bad3d2bf8639e82c5e35635702daee520e4f68ad29ac6f737695b497ec
@@ -85,6 +85,27 @@ module Workarea
85
85
  end
86
86
  end
87
87
 
88
+ def test_and_document_update_failure
89
+ description 'Failure to update a checkout'
90
+ route storefront_api.checkout_path(':id')
91
+ explanation <<-EOS
92
+ This is an example of what occurs when you fail to send in the correct parameters for your checkout.
93
+ EOS
94
+
95
+ record_request do
96
+ patch storefront_api.checkout_path(@order),
97
+ as: :json,
98
+ params: {
99
+ email: 'susanb@workarea.com',
100
+ shipping_address: address.except(:first_name),
101
+ billing_address: address.except(:last_name),
102
+ shipping_service: 'Express'
103
+ }
104
+
105
+ assert_equal(422, response.status)
106
+ end
107
+ end
108
+
88
109
  def test_and_document_complete
89
110
  description 'Completing a checkout'
90
111
  route storefront_api.complete_checkout_path(':id')
@@ -72,7 +72,7 @@ module Workarea
72
72
  }
73
73
  }
74
74
 
75
- assert_equal(200, response.status)
75
+ assert_equal(422, response.status)
76
76
  end
77
77
  end
78
78
  end
@@ -14,6 +14,6 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.required_ruby_version = '>= 2.3.0'
16
16
 
17
- s.add_dependency 'workarea', '~> 3.x', '>= 3.2.x'
18
- s.add_dependency 'responders', '~> 2.4.0'
17
+ s.add_dependency 'workarea', '~> 3.x', '>= 3.5.x'
18
+ s.add_dependency 'responders', '~> 3.0.0'
19
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: workarea-api-storefront
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.5.0
4
+ version: 4.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Crouse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-11-27 00:00:00.000000000 Z
11
+ date: 2020-12-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: workarea
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: 3.x
20
20
  - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: 3.2.x
22
+ version: 3.5.x
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,21 +29,21 @@ dependencies:
29
29
  version: 3.x
30
30
  - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: 3.2.x
32
+ version: 3.5.x
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: responders
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: 2.4.0
39
+ version: 3.0.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: 2.4.0
46
+ version: 3.0.0
47
47
  description: This provides a storefront JSON REST API for the Workarea Commerce Platform.
48
48
  Useful for building apps, kiosks, etc.
49
49
  email:
@@ -274,7 +274,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
274
274
  - !ruby/object:Gem::Version
275
275
  version: '0'
276
276
  requirements: []
277
- rubygems_version: 3.0.6
277
+ rubygems_version: 3.0.3
278
278
  signing_key:
279
279
  specification_version: 4
280
280
  summary: Storefront JSON REST API for the Workarea Commerce Platform