spree_api 3.7.9 → 3.7.10

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of spree_api might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f284475e9b95a045ca244239eed7abba9248ffd3fe8f717e1630ea720056b5f3
4
- data.tar.gz: 20041f45aedfad6120afdc4fab02e1d7e97460c2051e02dc8a22b0cfd4750988
3
+ metadata.gz: a51b557172e05ed70e620ea24cc37418750ae8049ceb650d037ea8057bc54baa
4
+ data.tar.gz: 5fc424cc9a56d991de332f5eca40cb0910c9d20971a56614c7bc1c3f4dbeecfd
5
5
  SHA512:
6
- metadata.gz: dab9077a7e7b3071905f40f3fcd497d844a3dcfe335c317bd4a31a649024e2083892efc8811a48c963ddb9b70425564322e56d8344cc90402ad5f564ba003cf8
7
- data.tar.gz: 37081d4e0d9d35350395cb5cc8d7cd6b08bbb37e377581e3dc2e55a42758bea6af7d6f3056c0d6abfbbf69fd62bf69d54fa6ce5df051f24df274d2feeeb83eaf
6
+ metadata.gz: 3e1df6df7fda6ea6212b4f75759e9e47480945af34453881264031ae9ddadc80aa3fa89fb8f91f47842c9263652ed945814d0bfba7bfeb4fc1fe463633118a85
7
+ data.tar.gz: 411d354a7f0b06621909d05fb331d9adc0ad6edef8fa9b889c96631504695f628aced3b6937d51d1a8631876d56b5576843ff011be80ef4395d8fedfa2e31d57
@@ -5,6 +5,8 @@ module Spree
5
5
  class OrderStatusController < ::Spree::Api::V2::BaseController
6
6
  include Spree::Api::V2::Storefront::OrderConcern
7
7
 
8
+ before_action :ensure_order_token
9
+
8
10
  def show
9
11
  render_serialized_payload { serialize_resource(resource) }
10
12
  end
@@ -33,6 +35,10 @@ module Spree
33
35
  def resource_serializer
34
36
  Spree::Api::Dependencies.storefront_cart_serializer.constantize
35
37
  end
38
+
39
+ def ensure_order_token
40
+ raise ActiveRecord::RecordNotFound unless order_token
41
+ end
36
42
  end
37
43
  end
38
44
  end
@@ -154,6 +154,8 @@ paths:
154
154
  - $ref: '#/components/parameters/OrderParam'
155
155
  - $ref: '#/components/parameters/CartIncludeParam'
156
156
  - $ref: '#/components/parameters/SparseFieldsParam'
157
+ security:
158
+ - orderToken: []
157
159
  '/cart':
158
160
  post:
159
161
  description: >-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spree_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.7.9
4
+ version: 3.7.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Bigg
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-02 00:00:00.000000000 Z
11
+ date: 2019-12-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jsonapi-rspec
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.7.9
33
+ version: 3.7.10
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.7.9
40
+ version: 3.7.10
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rabl
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -329,7 +329,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
329
  - !ruby/object:Gem::Version
330
330
  version: '0'
331
331
  requirements: []
332
- rubygems_version: 3.0.2
332
+ rubyforge_project:
333
+ rubygems_version: 2.7.3
333
334
  signing_key:
334
335
  specification_version: 4
335
336
  summary: Spree's API