solidus_api 3.2.9 → 3.3.0

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: 45cb9f474b0e4e734badc69fbee8a3235ec7a8b00b00250971cf9fa5bac65d89
4
- data.tar.gz: 35907678fa58737703b1e50c8dfc5fc06310c2b1538c6b9f338c9ea89a0217c7
3
+ metadata.gz: 15b49c4a768f60da07fa5ac2a2bb1d1faf437d69972e095d9a799e42422c2a36
4
+ data.tar.gz: 507883bc207f6f80e493b14f4ac71699bd94054f68254d6b1dde298e6bdd1f2a
5
5
  SHA512:
6
- metadata.gz: c12dd397ac9f0e00de40421a211e39d46ce202b8bc3047a122b260c86a4312bcd755cecbfdc0bab6c55fb09203c262f071c7a96094c196a633292b8f6a7bb4e7
7
- data.tar.gz: 06de3ede353c2d3e462afc6dc144beb5bf3ac2e49c94d0dd20110c20d729540837ff779c5bf07bd0cdf0661c702c332a645af8e6b244567e14f0873cb60dcbb5
6
+ metadata.gz: e3dbbb9a77fc58b88eec0fbe445229c13a8180320d595d9fbf4228850c75792d75e07e8469b9cfd19e838268132805e3fbc03383a6a1444bb95d89cd55c19efe
7
+ data.tar.gz: b4438238ca798b20ca7998c01296c2b3420fccb9885e8e5a2edc764610af503fe9eff533dde3d391282374e6a981ba4c2b5978e6797ff4d81092b5c17f748d59
@@ -10,7 +10,7 @@ module Spree
10
10
  protect_from_forgery unless: -> { request.format.json? }
11
11
 
12
12
  include CanCan::ControllerAdditions
13
- include Spree::Core::ControllerHelpers::CurrentHost
13
+ include ActiveStorage::SetCurrent
14
14
  include Spree::Core::ControllerHelpers::Store
15
15
  include Spree::Core::ControllerHelpers::Pricing
16
16
  include Spree::Core::ControllerHelpers::StrongParameters
@@ -47,7 +47,7 @@ module Spree
47
47
  def empty
48
48
  authorize! :update, @order, order_token
49
49
  @order.empty!
50
- render plain: nil, status: 204
50
+ respond_with(@order, default_template: :show)
51
51
  end
52
52
 
53
53
  def index
@@ -3,5 +3,5 @@
3
3
  json.(image, *image_attributes)
4
4
  json.(image, :viewable_type, :viewable_id)
5
5
  Spree::Image.attachment_definitions[:attachment][:styles].each do |key, _value|
6
- json.set! "#{key}_url", image.attachment.url(key)
6
+ json.set! "#{key}_url", image.url(key)
7
7
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  class AddApiKeyToSpreeUsers < ActiveRecord::Migration[4.2]
4
4
  def change
5
- unless defined?(User)
5
+ if table_exists?(:spree_users)
6
6
  add_column :spree_users, :api_key, :string, limit: 40
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  class ResizeApiKeyField < ActiveRecord::Migration[4.2]
4
4
  def up
5
- unless defined?(User)
5
+ if table_exists?(:spree_users)
6
6
  change_column :spree_users, :api_key, :string, limit: 48
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  class RenameApiKeyToSpreeApiKey < ActiveRecord::Migration[4.2]
4
4
  def change
5
- unless defined?(User)
5
+ if table_exists?(:spree_users)
6
6
  rename_column :spree_users, :api_key, :spree_api_key
7
7
  end
8
8
  end
@@ -2,7 +2,7 @@
2
2
 
3
3
  class AddIndexToUserSpreeApiKey < ActiveRecord::Migration[4.2]
4
4
  def change
5
- unless defined?(User)
5
+ if table_exists?(:spree_users)
6
6
  add_index :spree_users, :spree_api_key
7
7
  end
8
8
  end
@@ -5143,13 +5143,12 @@ paths:
5143
5143
  '/orders/{order_number}/empty':
5144
5144
  put:
5145
5145
  responses:
5146
- '204':
5146
+ '200':
5147
5147
  description: ''
5148
5148
  content:
5149
5149
  application/json:
5150
5150
  schema:
5151
- type: object
5152
- properties: {}
5151
+ $ref: '#/components/schemas/order-big'
5153
5152
  '401':
5154
5153
  $ref: '#/components/responses/invalid-api-key'
5155
5154
  '404':
@@ -7169,6 +7168,8 @@ components:
7169
7168
  type: boolean
7170
7169
  product_id:
7171
7170
  type: integer
7171
+ shipping_category_id:
7172
+ type: integer
7172
7173
  tax_category_id:
7173
7174
  type: integer
7174
7175
  weight:
@@ -7191,7 +7192,6 @@ components:
7191
7192
  type: array
7192
7193
  items:
7193
7194
  $ref: '#/components/schemas/option-value-input'
7194
-
7195
7195
  options:
7196
7196
  type: object
7197
7197
  description: '`Name` will be the name/presentation of the option type and `Value` will be the name/presentation of the option value. They will be created if not exist.'
data/solidus_api.gemspec CHANGED
@@ -20,7 +20,7 @@ Gem::Specification.new do |s|
20
20
  f.match(%r{^(spec|script)/})
21
21
  end
22
22
 
23
- s.required_ruby_version = '>= 2.5.0'
23
+ s.required_ruby_version = '>= 2.7.0'
24
24
  s.required_rubygems_version = '>= 1.8.23'
25
25
 
26
26
  s.add_dependency 'jbuilder', '~> 2.8'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-14 00:00:00.000000000 Z
11
+ date: 2023-01-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jbuilder
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - '='
60
60
  - !ruby/object:Gem::Version
61
- version: 3.2.9
61
+ version: 3.3.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - '='
67
67
  - !ruby/object:Gem::Version
68
- version: 3.2.9
68
+ version: 3.3.0
69
69
  description: REST API for the Solidus e-commerce framework.
70
70
  email: contact@solidus.io
71
71
  executables: []
@@ -266,14 +266,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
266
266
  requirements:
267
267
  - - ">="
268
268
  - !ruby/object:Gem::Version
269
- version: 2.5.0
269
+ version: 2.7.0
270
270
  required_rubygems_version: !ruby/object:Gem::Requirement
271
271
  requirements:
272
272
  - - ">="
273
273
  - !ruby/object:Gem::Version
274
274
  version: 1.8.23
275
275
  requirements: []
276
- rubygems_version: 3.4.9
276
+ rubygems_version: 3.3.26
277
277
  signing_key:
278
278
  specification_version: 4
279
279
  summary: REST API for the Solidus e-commerce framework.