spree_api 4.9.0 → 4.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.md +57 -0
- data/app/controllers/concerns/spree/api/v2/caching.rb +1 -4
- data/app/controllers/spree/api/v2/platform/resource_controller.rb +1 -1
- data/app/controllers/spree/api/v2/storefront/checkout_controller.rb +1 -1
- data/app/serializers/spree/v2/storefront/credit_card_serializer.rb +1 -1
- data/spree_api.gemspec +3 -3
- metadata +11 -8
- data/LICENSE +0 -26
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4c9439192de12b6b1178bee80776eb695521403795e642f0a2705371046127cb
|
4
|
+
data.tar.gz: 22d7e3c800a68a29e4c8a6c5d9a5ec56050b32aa96c64d0a988259293b5e3c59
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f263e4c2eceb996112faef3810743bbde167c048a21899ae32d4fd965f03c6f6666bf6587b12ad4f6fdcb2c45d0b97261dd76102f259d2a792268c12ac919fb3
|
7
|
+
data.tar.gz: 4b77cbc8ad82234718f992ea8482fb8c10931efb2b74e3a3aae1fe1662df862ec56f114f23a3426dda5993c102e5a0843abddb5c6fa294c5724fcac8b9e6c699
|
data/LICENSE.md
ADDED
@@ -0,0 +1,57 @@
|
|
1
|
+
# License
|
2
|
+
|
3
|
+
Copyright © 2024-present, Vendo Connect Inc.
|
4
|
+
|
5
|
+
Copyright © 2015-2024, Spark Solutions Sp. z o.o.
|
6
|
+
|
7
|
+
Copyright © 2007-2015, Spree Commerce Inc.
|
8
|
+
|
9
|
+
Spree Commerce is a free, open-source eCommerce framework giving you full control and customizability.
|
10
|
+
|
11
|
+
For **Spree Commerce versions 4.10** and later in the [spree/spree](https://github.com/spree/spree) repository two licenses apply simultaneously and users are required to comply with the terms of these two licenses at the same time:
|
12
|
+
|
13
|
+
* [AGPL-3.0](https://opensource.org/license/agpl-v3) - for all contributions from version 4.10 onwards
|
14
|
+
|
15
|
+
* [BSD-3-Clause](https://opensource.org/license/bsd-3-clause) - for all other contributions predating version 4.10
|
16
|
+
Effectively, for versions 4.10 and upwards **AGPL-3.0** license applies.
|
17
|
+
|
18
|
+
**Spree Commerce versions 4.9** and earlier in the [spree/spree](https://github.com/spree/spree) repository are available under the **BSD-3-Clause** license and users are required to comply with its terms.
|
19
|
+
|
20
|
+
If you’d like to use Spree Commerce without the AGPL-3.0 restrictions e.g. for a **SaaS** business, please talk to us about obtaining a [Commercial License](#commercial-license).
|
21
|
+
|
22
|
+
All third party components incorporated into this software are licensed under the original license provided by the owner of the applicable component.
|
23
|
+
|
24
|
+
Please refer to our [Licensing FAQ](https://spreecommerce.org/why-spree-is-changing-its-open-source-license-to-agpl-3-0-and-introducing-a-commercial-license/) in case of questions.
|
25
|
+
|
26
|
+
## AGPL-3.0 License - Spree 4.10 upwards
|
27
|
+
|
28
|
+
If you decide to accept the AGPL-3.0 license by using Spree Commerce version 4.10 or later, you must comply with the following terms:
|
29
|
+
|
30
|
+
This program is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
|
31
|
+
|
32
|
+
This program is distributed in the hope that it will be useful,
|
33
|
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
34
|
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
35
|
+
GNU Affero General Public License for more details.
|
36
|
+
|
37
|
+
You should have received a copy of the GNU Affero General Public License
|
38
|
+
along with this program. If not, see [https://www.gnu.org/licenses/](https://www.gnu.org/licenses/).
|
39
|
+
|
40
|
+
## BSD 3-Clause License
|
41
|
+
|
42
|
+
If you decide to accept the BSD-3-Clause license by using Spree Commerce, you must comply with the following terms:
|
43
|
+
|
44
|
+
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
|
45
|
+
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
|
46
|
+
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
|
47
|
+
Neither the name of Spree Commerce Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
|
48
|
+
|
49
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
50
|
+
|
51
|
+
## Commercial License
|
52
|
+
|
53
|
+
Should you decide to use Spree Commerce version 4.10 or later for commercial redistribution (eg. SaaS) - also known as Commercial Distribution - you must do so in accordance with the terms and conditions contained in a separate written agreement between you and [Vendo Connect Inc.](https://www.getvendo.com/).
|
54
|
+
|
55
|
+
For more information about the Commercial License (CL) please contact [sales@getvendo.com](mailto:sales@getvendo.com).
|
56
|
+
|
57
|
+
Please refer to our [Licensing FAQ](https://spreecommerce.org/why-spree-is-changing-its-open-source-license-to-agpl-3-0-and-introducing-a-commercial-license/) in case of questions.
|
@@ -5,13 +5,10 @@ module Spree
|
|
5
5
|
extend ActiveSupport::Concern
|
6
6
|
|
7
7
|
def collection_cache_key(collection)
|
8
|
-
# Calling reselect('*') is a workaround for the joined translations table
|
9
|
-
collection_cache_key = collection.unscope(:includes).unscope(:order).unscope(:group).reselect('*').cache_key_with_version
|
10
|
-
|
11
8
|
params.delete(:page) if params[:page] == 1
|
12
9
|
|
13
10
|
cache_key_parts = [
|
14
|
-
|
11
|
+
collection.cache_key_with_version,
|
15
12
|
resource_includes,
|
16
13
|
sparse_fields,
|
17
14
|
serializer_params_cache_key,
|
@@ -88,7 +88,7 @@ module Spree
|
|
88
88
|
end
|
89
89
|
|
90
90
|
# if using a user oAuth token we need to check CanCanCan abilities
|
91
|
-
# defined in https://github.com/spree/spree/blob/
|
91
|
+
# defined in https://github.com/spree/spree/blob/main/core/app/models/spree/ability.rb
|
92
92
|
def authorize_spree_user
|
93
93
|
return if spree_current_user.nil?
|
94
94
|
|
@@ -36,7 +36,7 @@ module Spree
|
|
36
36
|
result = update_service.call(
|
37
37
|
order: spree_current_order,
|
38
38
|
params: params,
|
39
|
-
# defined in https://github.com/spree/spree/blob/
|
39
|
+
# defined in https://github.com/spree/spree/blob/main/core/lib/spree/core/controller_helpers/strong_parameters.rb#L19
|
40
40
|
permitted_attributes: permitted_checkout_attributes,
|
41
41
|
request_env: request.headers.env
|
42
42
|
)
|
@@ -4,7 +4,7 @@ module Spree
|
|
4
4
|
class CreditCardSerializer < BaseSerializer
|
5
5
|
set_type :credit_card
|
6
6
|
|
7
|
-
attributes :cc_type, :last_digits, :month, :year, :name, :default, :public_metadata
|
7
|
+
attributes :cc_type, :last_digits, :month, :year, :name, :default, :gateway_payment_profile_id, :public_metadata
|
8
8
|
|
9
9
|
belongs_to :payment_method
|
10
10
|
end
|
data/spree_api.gemspec
CHANGED
@@ -3,12 +3,12 @@ require_relative '../core/lib/spree/core/version'
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = 'spree_api'
|
5
5
|
s.version = Spree.version
|
6
|
-
s.authors = ['Ryan Bigg']
|
7
|
-
s.email = ['
|
6
|
+
s.authors = ['Ryan Bigg', 'Spark Solutions Sp. z o.o.', 'Vendo Connect Inc.']
|
7
|
+
s.email = ['hello@spreecommerce.org']
|
8
8
|
s.summary = %q{Spree's API}
|
9
9
|
s.description = %q{Spree's API}
|
10
10
|
s.homepage = 'https://spreecommerce.org'
|
11
|
-
s.
|
11
|
+
s.licenses = ['AGPL-3.0-or-later', 'BSD-3-Clause']
|
12
12
|
|
13
13
|
s.metadata = {
|
14
14
|
'bug_tracker_uri' => 'https://github.com/spree/spree/issues',
|
metadata
CHANGED
@@ -1,14 +1,16 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: spree_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Bigg
|
8
|
+
- Spark Solutions Sp. z o.o.
|
9
|
+
- Vendo Connect Inc.
|
8
10
|
autorequire:
|
9
11
|
bindir: bin
|
10
12
|
cert_chain: []
|
11
|
-
date: 2024-
|
13
|
+
date: 2024-09-06 00:00:00.000000000 Z
|
12
14
|
dependencies:
|
13
15
|
- !ruby/object:Gem::Dependency
|
14
16
|
name: i18n-tasks
|
@@ -114,24 +116,24 @@ dependencies:
|
|
114
116
|
requirements:
|
115
117
|
- - '='
|
116
118
|
- !ruby/object:Gem::Version
|
117
|
-
version: 4.
|
119
|
+
version: 4.10.0
|
118
120
|
type: :runtime
|
119
121
|
prerelease: false
|
120
122
|
version_requirements: !ruby/object:Gem::Requirement
|
121
123
|
requirements:
|
122
124
|
- - '='
|
123
125
|
- !ruby/object:Gem::Version
|
124
|
-
version: 4.
|
126
|
+
version: 4.10.0
|
125
127
|
description: Spree's API
|
126
128
|
email:
|
127
|
-
-
|
129
|
+
- hello@spreecommerce.org
|
128
130
|
executables: []
|
129
131
|
extensions: []
|
130
132
|
extra_rdoc_files: []
|
131
133
|
files:
|
132
134
|
- ".gitignore"
|
133
135
|
- Gemfile
|
134
|
-
- LICENSE
|
136
|
+
- LICENSE.md
|
135
137
|
- Rakefile
|
136
138
|
- app/controllers/concerns/spree/api/v2/caching.rb
|
137
139
|
- app/controllers/concerns/spree/api/v2/coupon_codes_helper.rb
|
@@ -403,12 +405,13 @@ files:
|
|
403
405
|
- spree_api.gemspec
|
404
406
|
homepage: https://spreecommerce.org
|
405
407
|
licenses:
|
408
|
+
- AGPL-3.0-or-later
|
406
409
|
- BSD-3-Clause
|
407
410
|
metadata:
|
408
411
|
bug_tracker_uri: https://github.com/spree/spree/issues
|
409
|
-
changelog_uri: https://github.com/spree/spree/releases/tag/v4.
|
412
|
+
changelog_uri: https://github.com/spree/spree/releases/tag/v4.10.0
|
410
413
|
documentation_uri: https://docs.spreecommerce.org/
|
411
|
-
source_code_uri: https://github.com/spree/spree/tree/v4.
|
414
|
+
source_code_uri: https://github.com/spree/spree/tree/v4.10.0
|
412
415
|
post_install_message:
|
413
416
|
rdoc_options: []
|
414
417
|
require_paths:
|
data/LICENSE
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
Copyright (c) 2007-2015, Spree Commerce, Inc. and other contributors
|
2
|
-
All rights reserved.
|
3
|
-
|
4
|
-
Redistribution and use in source and binary forms, with or without modification,
|
5
|
-
are permitted provided that the following conditions are met:
|
6
|
-
|
7
|
-
* Redistributions of source code must retain the above copyright notice,
|
8
|
-
this list of conditions and the following disclaimer.
|
9
|
-
* Redistributions in binary form must reproduce the above copyright notice,
|
10
|
-
this list of conditions and the following disclaimer in the documentation
|
11
|
-
and/or other materials provided with the distribution.
|
12
|
-
* Neither the name Spree nor the names of its contributors may be used to
|
13
|
-
endorse or promote products derived from this software without specific
|
14
|
-
prior written permission.
|
15
|
-
|
16
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
17
|
-
"AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
18
|
-
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
19
|
-
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
20
|
-
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
21
|
-
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
22
|
-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
23
|
-
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
24
|
-
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
25
|
-
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
26
|
-
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|