workarea-api-storefront 4.5.3 → 4.5.4
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 46c493a6520203dddfec3bcc9ae914a661040f550c3bc896c2650f2a7756e8f3
|
4
|
+
data.tar.gz: a20ce0a23aa70ad2ca94331a5c14dcbe28e76199428d35a4a34d384a8e1efd56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80f9aeca36c57411fbade7179e0029f572fa7af309177b936b3153dcbc5bb36bd83bc5bb35e951770f70130804e72c2581fc2b0b874499dd1549e3f59cba533b
|
7
|
+
data.tar.gz: f5bba158201651ab1bd964cf494363f9e2ccedc0ab44529af467c50b9b0d7eea0a3adcdb3dc48fe588055d16defd9b8de9360a55e2cb7500e932b7713fb8a443
|
@@ -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')
|
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.
|
4
|
+
version: 4.5.4
|
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
|
@@ -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.
|
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
|