spree_multi_vendor 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +21 -0
- data/.rspec +3 -0
- data/.travis.yml +44 -0
- data/Appraisals +11 -0
- data/Gemfile +7 -0
- data/LICENSE +26 -0
- data/README.md +166 -0
- data/Rakefile +21 -0
- data/app/controllers/spree/admin/vendor_settings_controller.rb +34 -0
- data/app/controllers/spree/admin/vendors_controller.rb +60 -0
- data/app/controllers/spree/api/v2/storefront/vendors_controller.rb +28 -0
- data/app/controllers/spree_multi_vendor/spree/admin/base_controller_decorator.rb +10 -0
- data/app/controllers/spree_multi_vendor/spree/admin/option_types_controller_decorator.rb +7 -0
- data/app/controllers/spree_multi_vendor/spree/admin/products_controller_decorator.rb +24 -0
- data/app/controllers/spree_multi_vendor/spree/admin/properties_controller_decorator.rb +7 -0
- data/app/controllers/spree_multi_vendor/spree/admin/resource_controller_decorator.rb +8 -0
- data/app/controllers/spree_multi_vendor/spree/admin/shipping_methods_controller_decorator.rb +7 -0
- data/app/controllers/spree_multi_vendor/spree/admin/stock_locations_controller_decorator.rb +7 -0
- data/app/controllers/spree_multi_vendor/spree/admin/users_controller_decorator.rb +13 -0
- data/app/controllers/spree_multi_vendor/spree/admin/variants_controller_decorator.rb +7 -0
- data/app/controllers/spree_multi_vendor/spree/api/v1/variants_controller_decorator.rb +22 -0
- data/app/finders/spree_multi_vendor/products_finder_decorator.rb +31 -0
- data/app/helpers/spree/admin/vendor_helper.rb +15 -0
- data/app/mailers/spree/vendor_mailer.rb +15 -0
- data/app/models/concerns/spree/vendor_concern.rb +11 -0
- data/app/models/spree/order_commission.rb +11 -0
- data/app/models/spree/vendor.rb +77 -0
- data/app/models/spree/vendor_ability.rb +140 -0
- data/app/models/spree/vendor_image.rb +18 -0
- data/app/models/spree/vendor_order_totals.rb +28 -0
- data/app/models/spree/vendor_user.rb +16 -0
- data/app/models/spree_multi_vendor/configuration.rb +10 -0
- data/app/models/spree_multi_vendor/spree/ability_decorator.rb +9 -0
- data/app/models/spree_multi_vendor/spree/base_decorator.rb +13 -0
- data/app/models/spree_multi_vendor/spree/line_item_decorator.rb +48 -0
- data/app/models/spree_multi_vendor/spree/order_decorator.rb +105 -0
- data/app/models/spree_multi_vendor/spree/shipment_decorator.rb +8 -0
- data/app/models/spree_multi_vendor/spree/stock/package_decorator.rb +14 -0
- data/app/models/spree_multi_vendor/spree/user_decorator.rb +8 -0
- data/app/models/spree_multi_vendor/spree/variant_decorator.rb +41 -0
- data/app/overrides/spree/admin/orders/_form.rb +13 -0
- data/app/overrides/spree/admin/orders/_line_items.rb +6 -0
- data/app/overrides/spree/admin/orders/_line_items_edit_form.rb +6 -0
- data/app/overrides/spree/admin/orders/index.rb +6 -0
- data/app/overrides/spree/admin/products/form.rb +29 -0
- data/app/overrides/spree/admin/products/new.rb +16 -0
- data/app/overrides/spree/admin/shared/_main_menu.rb +23 -0
- data/app/overrides/spree/admin/shared/_order_summary.rb +35 -0
- data/app/overrides/spree/admin/users/_form.rb +13 -0
- data/app/serializers/spree/v2/storefront/vendor_image_serializer.rb +11 -0
- data/app/serializers/spree/v2/storefront/vendor_order_totals_serializer.rb +18 -0
- data/app/serializers/spree/v2/storefront/vendor_serializer.rb +14 -0
- data/app/serializers/spree_multi_vendor/cart_serializer_decorator.rb +19 -0
- data/app/serializers/spree_multi_vendor/serializer_decorator.rb +23 -0
- data/app/services/spree/orders/generate_commissions.rb +34 -0
- data/app/views/spree/admin/translations/vendor.html.erb +21 -0
- data/app/views/spree/admin/vendor_settings/edit.html.erb +47 -0
- data/app/views/spree/admin/vendors/_form.html.erb +36 -0
- data/app/views/spree/admin/vendors/edit.html.erb +11 -0
- data/app/views/spree/admin/vendors/index.html.erb +83 -0
- data/app/views/spree/admin/vendors/new.html.erb +11 -0
- data/app/views/spree/vendor_mailer/vendor_notification_email.html.erb +81 -0
- data/app/views/spree/vendor_mailer/vendor_notification_email.text.erb +36 -0
- data/bin/rails +7 -0
- data/config/initializers/spree_permitted_attributes.rb +10 -0
- data/config/locales/en.yml +34 -0
- data/config/locales/es.yml +33 -0
- data/config/locales/fr.yml +33 -0
- data/config/routes.rb +19 -0
- data/db/default/vendors.rb +13 -0
- data/db/migrate/20170406102250_create_spree_vendors.rb +9 -0
- data/db/migrate/20170406102944_add_vendor_id_to_spree_models.rb +10 -0
- data/db/migrate/20170410111150_add_state_to_vendors.rb +6 -0
- data/db/migrate/20170412124925_add_deleted_at_to_spree_vendors.rb +6 -0
- data/db/migrate/20170413094447_create_spree_vendor_users.rb +11 -0
- data/db/migrate/20190212161426_add_slug_to_spree_vendors.rb +6 -0
- data/db/migrate/20190214120226_add_about_us_to_spree_vendors.rb +5 -0
- data/db/migrate/20190214142526_add_contact_us_to_spree_vendors.rb +5 -0
- data/db/migrate/20190305120337_add_commission_to_spree_vendors.rb +5 -0
- data/db/migrate/20190308091546_add_priority_to_vendor.rb +8 -0
- data/db/migrate/20190312130754_create_spree_order_commissions.rb +14 -0
- data/db/migrate/20190322133128_add_notification_email_to_vendors.rb +5 -0
- data/db/migrate/20200416030721_add_translations_to_vendor.rb +19 -0
- data/gemfiles/spree_4_2.gemfile +9 -0
- data/gemfiles/spree_master.gemfile +9 -0
- data/lib/generators/spree_multi_vendor/install/install_generator.rb +21 -0
- data/lib/generators/spree_multi_vendor/mailers_preview/mailers_preview_generator.rb +22 -0
- data/lib/generators/spree_multi_vendor/mailers_preview/templates/mailers/previews/vendor_notification_preview.rb +5 -0
- data/lib/spree_multi_vendor.rb +14 -0
- data/lib/spree_multi_vendor/engine.rb +24 -0
- data/lib/spree_multi_vendor/factories.rb +7 -0
- data/lib/spree_multi_vendor/version.rb +11 -0
- data/lib/tasks/vendors.rake +8 -0
- data/spec/factories/spree/vendor_factory.rb +22 -0
- data/spec/factories/spree/vendor_image_factory.rb +5 -0
- data/spec/factories/spree/vendor_user_factory.rb +6 -0
- data/spec/features/spree/admin/orders_spec.rb +36 -0
- data/spec/features/spree/admin/product_spec.rb +177 -0
- data/spec/features/spree/admin/shipping_method_spec.rb +72 -0
- data/spec/features/spree/admin/stock_location_spec.rb +90 -0
- data/spec/features/spree/admin/vendor_settings_spec.rb +76 -0
- data/spec/features/spree/admin/vendor_spec.rb +125 -0
- data/spec/fixtures/thinking-cat.jpg +0 -0
- data/spec/mailers/vendor_mailer_spec.rb +45 -0
- data/spec/models/spree/line_item_spec.rb +32 -0
- data/spec/models/spree/order_commission_spec.rb +8 -0
- data/spec/models/spree/order_spec.rb +179 -0
- data/spec/models/spree/product_spec.rb +19 -0
- data/spec/models/spree/variant_spec.rb +104 -0
- data/spec/models/spree/vendor_order_totals_spec.rb +33 -0
- data/spec/models/spree/vendor_spec.rb +57 -0
- data/spec/models/spree/vendor_user_spec.rb +12 -0
- data/spec/requests/spree/api/v2/storefront/cart_spec.rb +67 -0
- data/spec/requests/spree/api/v2/storefront/products_spec.rb +93 -0
- data/spec/requests/spree/api/v2/storefront/vendors_spec.rb +52 -0
- data/spec/serializers/spree/v2/storefront/stock_location_serializer_spec.rb +32 -0
- data/spec/serializers/spree/v2/storefront/vendor_image_serializer_spec.rb +18 -0
- data/spec/serializers/spree/v2/storefront/vendor_order_totals_serializer_spec.rb +54 -0
- data/spec/serializers/spree/v2/storefront/vendor_serializer_spec.rb +34 -0
- data/spec/spec_helper.rb +11 -0
- data/spec/support/shoulda_matchers.rb +6 -0
- data/spree_multi_vendor.gemspec +41 -0
- metadata +313 -0
@@ -0,0 +1,32 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::V2::Storefront::StockLocationSerializer do
|
4
|
+
let(:vendor) { create(:vendor, name: 'Test', about_us: 'Hello World') }
|
5
|
+
let(:stock_location) { create(:stock_location, vendor: vendor) }
|
6
|
+
|
7
|
+
subject { described_class.new(stock_location) }
|
8
|
+
|
9
|
+
it { expect(subject.serializable_hash).to be_kind_of(Hash) }
|
10
|
+
it do
|
11
|
+
expect(subject.serializable_hash).to eq(
|
12
|
+
{
|
13
|
+
data: {
|
14
|
+
id: stock_location.id.to_s,
|
15
|
+
type: :stock_location,
|
16
|
+
attributes: {
|
17
|
+
name: stock_location.name
|
18
|
+
},
|
19
|
+
relationships: {
|
20
|
+
vendor: {
|
21
|
+
data: {
|
22
|
+
id: vendor.id.to_s,
|
23
|
+
type: :vendor
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
)
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::V2::Storefront::VendorImageSerializer do
|
4
|
+
let!(:vendor_image) { create(:vendor_image) }
|
5
|
+
let!(:vendor) { create(:active_vendor, name: 'vendor', image: vendor_image) }
|
6
|
+
|
7
|
+
subject { described_class.new(vendor_image) }
|
8
|
+
|
9
|
+
it { expect(subject.serializable_hash).to be_kind_of(Hash) }
|
10
|
+
|
11
|
+
it 'returns right data attributes' do
|
12
|
+
expect(subject.serializable_hash[:data].keys).to contain_exactly(:id, :type, :attributes)
|
13
|
+
end
|
14
|
+
|
15
|
+
it 'returns right vendor_image attributes' do
|
16
|
+
expect(subject.serializable_hash[:data][:attributes].keys).to contain_exactly(:styles)
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,54 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::V2::Storefront::VendorOrderTotalsSerializer do
|
4
|
+
let(:vendor) { create(:vendor, name: 'Test', about_us: 'Hello World') }
|
5
|
+
let(:order) { create(:completed_order_with_totals, line_items_count: 6, line_items_price: 100, shipment_cost: 50) }
|
6
|
+
let!(:shipment) { create(:shipment, order: order, cost: 20, pre_tax_amount: 20, stock_location: vendor.stock_locations.first) }
|
7
|
+
let!(:promotion) { create(:promotion_with_item_adjustment, adjustment_rate: 10, code: '10off') }
|
8
|
+
|
9
|
+
let(:vendor_order_totals) { Spree::VendorOrderTotals.new(order: order, vendor: vendor) }
|
10
|
+
|
11
|
+
before do
|
12
|
+
order.products.update_all(vendor_id: vendor.id)
|
13
|
+
order.vendor_line_items(vendor).update_all(additional_tax_total: 10)
|
14
|
+
order.vendor_line_items(vendor).update_all(included_tax_total: 5)
|
15
|
+
order.vendor_shipments(vendor).update_all(adjustment_total: 5)
|
16
|
+
order.vendor_line_items(vendor).update_all(promo_total: 10)
|
17
|
+
end
|
18
|
+
|
19
|
+
subject { described_class.new(vendor_order_totals) }
|
20
|
+
|
21
|
+
let(:expected_hash) do
|
22
|
+
{
|
23
|
+
data: {
|
24
|
+
id: vendor.id.to_s,
|
25
|
+
type: :vendor_totals,
|
26
|
+
attributes: {
|
27
|
+
name: 'Test',
|
28
|
+
additional_tax_total: BigDecimal(60),
|
29
|
+
display_additional_tax_total: Spree::Money.new(60),
|
30
|
+
included_tax_total: BigDecimal(30),
|
31
|
+
display_included_tax_total: Spree::Money.new(30),
|
32
|
+
ship_total: BigDecimal(25),
|
33
|
+
display_ship_total: Spree::Money.new(25),
|
34
|
+
subtotal: BigDecimal(600),
|
35
|
+
display_subtotal: Spree::Money.new(600),
|
36
|
+
promo_total: BigDecimal(60),
|
37
|
+
display_promo_total: Spree::Money.new(60),
|
38
|
+
total: BigDecimal(625),
|
39
|
+
display_total: Spree::Money.new(625),
|
40
|
+
item_count: 6,
|
41
|
+
pre_tax_item_amount: BigDecimal(600),
|
42
|
+
display_pre_tax_item_amount: Spree::Money.new(600),
|
43
|
+
pre_tax_ship_amount: BigDecimal(20),
|
44
|
+
display_pre_tax_ship_amount: Spree::Money.new(20),
|
45
|
+
pre_tax_total: BigDecimal(620),
|
46
|
+
display_pre_tax_total: Spree::Money.new(620)
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
it { expect(subject.serializable_hash).to be_kind_of(Hash) }
|
53
|
+
it { expect(subject.serializable_hash).to eq(expected_hash) }
|
54
|
+
end
|
@@ -0,0 +1,34 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
describe Spree::V2::Storefront::VendorSerializer do
|
4
|
+
let(:vendor) { create(:active_vendor, name: 'Test', about_us: 'Hello World', contact_us: 'Contact Info') }
|
5
|
+
|
6
|
+
subject { described_class.new(vendor) }
|
7
|
+
|
8
|
+
it { expect(subject.serializable_hash).to be_kind_of(Hash) }
|
9
|
+
|
10
|
+
it do
|
11
|
+
expect(subject.serializable_hash).to eq(
|
12
|
+
{
|
13
|
+
data: {
|
14
|
+
id: vendor.id.to_s,
|
15
|
+
type: :vendor,
|
16
|
+
relationships: {
|
17
|
+
image: {
|
18
|
+
data: nil
|
19
|
+
},
|
20
|
+
products: {
|
21
|
+
data: []
|
22
|
+
}
|
23
|
+
},
|
24
|
+
attributes: {
|
25
|
+
name: 'Test',
|
26
|
+
contact_us: 'Contact Info',
|
27
|
+
about_us: 'Hello World',
|
28
|
+
slug: 'test'
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
)
|
33
|
+
end
|
34
|
+
end
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV['RAILS_ENV'] = 'test'
|
3
|
+
|
4
|
+
require File.expand_path('../dummy/config/environment.rb', __FILE__)
|
5
|
+
|
6
|
+
require 'shoulda/matchers'
|
7
|
+
require 'spree_dev_tools/rspec/spec_helper'
|
8
|
+
|
9
|
+
# Requires supporting ruby files with custom matchers and macros, etc,
|
10
|
+
# in spec/support/ and its subdirectories.
|
11
|
+
Dir[File.join(File.dirname(__FILE__), 'support/**/*.rb')].sort.each { |f| require f }
|
@@ -0,0 +1,41 @@
|
|
1
|
+
# encoding: UTF-8
|
2
|
+
lib = File.expand_path('../lib/', __FILE__)
|
3
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
4
|
+
|
5
|
+
require 'spree_multi_vendor/version'
|
6
|
+
|
7
|
+
Gem::Specification.new do |s|
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.name = 'spree_multi_vendor'
|
10
|
+
s.version = SpreeMultiVendor.version
|
11
|
+
s.summary = 'Spree Commerce multi vendor marketplace extension'
|
12
|
+
s.description = 'Spree Commerce multi vendor marketplace extension'
|
13
|
+
s.required_ruby_version = '>= 2.5'
|
14
|
+
|
15
|
+
s.author = 'Spark Solutions'
|
16
|
+
s.email = 'we@sparksolutions.co'
|
17
|
+
s.homepage = 'https://sparksolutions.co'
|
18
|
+
s.license = 'BSD-3-Clause'
|
19
|
+
|
20
|
+
s.metadata = {
|
21
|
+
'bug_tracker_uri' => 'https://github.com/spree-contrib/spree_multi_vendor/issues',
|
22
|
+
'changelog_uri' => "https://github.com/spree-contrib/spree_multi_vendor/releases/tag/v#{s.version}",
|
23
|
+
'documentation_uri' => 'https://guides.spreecommerce.org/',
|
24
|
+
'source_code_uri' => "https://github.com/spree-contrib/spree_multi_vendor/tree/v#{s.version}",
|
25
|
+
}
|
26
|
+
|
27
|
+
s.files = `git ls-files`.split("\n")
|
28
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
29
|
+
s.require_path = 'lib'
|
30
|
+
s.requirements << 'none'
|
31
|
+
|
32
|
+
spree_version = '>= 4.2.0.rc5', '< 5.0'
|
33
|
+
s.add_dependency 'spree_core', spree_version
|
34
|
+
s.add_dependency 'spree_api', spree_version
|
35
|
+
s.add_dependency 'spree_backend', spree_version
|
36
|
+
s.add_dependency 'spree_extension'
|
37
|
+
s.add_dependency 'deface', '~> 1.0'
|
38
|
+
|
39
|
+
s.add_development_dependency 'shoulda-matchers'
|
40
|
+
s.add_development_dependency 'spree_dev_tools'
|
41
|
+
end
|
metadata
ADDED
@@ -0,0 +1,313 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: spree_multi_vendor
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 2.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Spark Solutions
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-02-10 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: spree_core
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.0.rc5
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
23
|
+
type: :runtime
|
24
|
+
prerelease: false
|
25
|
+
version_requirements: !ruby/object:Gem::Requirement
|
26
|
+
requirements:
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: 4.2.0.rc5
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
33
|
+
- !ruby/object:Gem::Dependency
|
34
|
+
name: spree_api
|
35
|
+
requirement: !ruby/object:Gem::Requirement
|
36
|
+
requirements:
|
37
|
+
- - ">="
|
38
|
+
- !ruby/object:Gem::Version
|
39
|
+
version: 4.2.0.rc5
|
40
|
+
- - "<"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '5.0'
|
43
|
+
type: :runtime
|
44
|
+
prerelease: false
|
45
|
+
version_requirements: !ruby/object:Gem::Requirement
|
46
|
+
requirements:
|
47
|
+
- - ">="
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
version: 4.2.0.rc5
|
50
|
+
- - "<"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '5.0'
|
53
|
+
- !ruby/object:Gem::Dependency
|
54
|
+
name: spree_backend
|
55
|
+
requirement: !ruby/object:Gem::Requirement
|
56
|
+
requirements:
|
57
|
+
- - ">="
|
58
|
+
- !ruby/object:Gem::Version
|
59
|
+
version: 4.2.0.rc5
|
60
|
+
- - "<"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '5.0'
|
63
|
+
type: :runtime
|
64
|
+
prerelease: false
|
65
|
+
version_requirements: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 4.2.0.rc5
|
70
|
+
- - "<"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '5.0'
|
73
|
+
- !ruby/object:Gem::Dependency
|
74
|
+
name: spree_extension
|
75
|
+
requirement: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - ">="
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '0'
|
80
|
+
type: :runtime
|
81
|
+
prerelease: false
|
82
|
+
version_requirements: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '0'
|
87
|
+
- !ruby/object:Gem::Dependency
|
88
|
+
name: deface
|
89
|
+
requirement: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '1.0'
|
94
|
+
type: :runtime
|
95
|
+
prerelease: false
|
96
|
+
version_requirements: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - "~>"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: '1.0'
|
101
|
+
- !ruby/object:Gem::Dependency
|
102
|
+
name: shoulda-matchers
|
103
|
+
requirement: !ruby/object:Gem::Requirement
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: '0'
|
108
|
+
type: :development
|
109
|
+
prerelease: false
|
110
|
+
version_requirements: !ruby/object:Gem::Requirement
|
111
|
+
requirements:
|
112
|
+
- - ">="
|
113
|
+
- !ruby/object:Gem::Version
|
114
|
+
version: '0'
|
115
|
+
- !ruby/object:Gem::Dependency
|
116
|
+
name: spree_dev_tools
|
117
|
+
requirement: !ruby/object:Gem::Requirement
|
118
|
+
requirements:
|
119
|
+
- - ">="
|
120
|
+
- !ruby/object:Gem::Version
|
121
|
+
version: '0'
|
122
|
+
type: :development
|
123
|
+
prerelease: false
|
124
|
+
version_requirements: !ruby/object:Gem::Requirement
|
125
|
+
requirements:
|
126
|
+
- - ">="
|
127
|
+
- !ruby/object:Gem::Version
|
128
|
+
version: '0'
|
129
|
+
description: Spree Commerce multi vendor marketplace extension
|
130
|
+
email: we@sparksolutions.co
|
131
|
+
executables: []
|
132
|
+
extensions: []
|
133
|
+
extra_rdoc_files: []
|
134
|
+
files:
|
135
|
+
- ".gitignore"
|
136
|
+
- ".rspec"
|
137
|
+
- ".travis.yml"
|
138
|
+
- Appraisals
|
139
|
+
- Gemfile
|
140
|
+
- LICENSE
|
141
|
+
- README.md
|
142
|
+
- Rakefile
|
143
|
+
- app/controllers/spree/admin/vendor_settings_controller.rb
|
144
|
+
- app/controllers/spree/admin/vendors_controller.rb
|
145
|
+
- app/controllers/spree/api/v2/storefront/vendors_controller.rb
|
146
|
+
- app/controllers/spree_multi_vendor/spree/admin/base_controller_decorator.rb
|
147
|
+
- app/controllers/spree_multi_vendor/spree/admin/option_types_controller_decorator.rb
|
148
|
+
- app/controllers/spree_multi_vendor/spree/admin/products_controller_decorator.rb
|
149
|
+
- app/controllers/spree_multi_vendor/spree/admin/properties_controller_decorator.rb
|
150
|
+
- app/controllers/spree_multi_vendor/spree/admin/resource_controller_decorator.rb
|
151
|
+
- app/controllers/spree_multi_vendor/spree/admin/shipping_methods_controller_decorator.rb
|
152
|
+
- app/controllers/spree_multi_vendor/spree/admin/stock_locations_controller_decorator.rb
|
153
|
+
- app/controllers/spree_multi_vendor/spree/admin/users_controller_decorator.rb
|
154
|
+
- app/controllers/spree_multi_vendor/spree/admin/variants_controller_decorator.rb
|
155
|
+
- app/controllers/spree_multi_vendor/spree/api/v1/variants_controller_decorator.rb
|
156
|
+
- app/finders/spree_multi_vendor/products_finder_decorator.rb
|
157
|
+
- app/helpers/spree/admin/vendor_helper.rb
|
158
|
+
- app/mailers/spree/vendor_mailer.rb
|
159
|
+
- app/models/concerns/spree/vendor_concern.rb
|
160
|
+
- app/models/spree/order_commission.rb
|
161
|
+
- app/models/spree/vendor.rb
|
162
|
+
- app/models/spree/vendor_ability.rb
|
163
|
+
- app/models/spree/vendor_image.rb
|
164
|
+
- app/models/spree/vendor_order_totals.rb
|
165
|
+
- app/models/spree/vendor_user.rb
|
166
|
+
- app/models/spree_multi_vendor/configuration.rb
|
167
|
+
- app/models/spree_multi_vendor/spree/ability_decorator.rb
|
168
|
+
- app/models/spree_multi_vendor/spree/base_decorator.rb
|
169
|
+
- app/models/spree_multi_vendor/spree/line_item_decorator.rb
|
170
|
+
- app/models/spree_multi_vendor/spree/order_decorator.rb
|
171
|
+
- app/models/spree_multi_vendor/spree/shipment_decorator.rb
|
172
|
+
- app/models/spree_multi_vendor/spree/stock/package_decorator.rb
|
173
|
+
- app/models/spree_multi_vendor/spree/user_decorator.rb
|
174
|
+
- app/models/spree_multi_vendor/spree/variant_decorator.rb
|
175
|
+
- app/overrides/spree/admin/orders/_form.rb
|
176
|
+
- app/overrides/spree/admin/orders/_line_items.rb
|
177
|
+
- app/overrides/spree/admin/orders/_line_items_edit_form.rb
|
178
|
+
- app/overrides/spree/admin/orders/index.rb
|
179
|
+
- app/overrides/spree/admin/products/form.rb
|
180
|
+
- app/overrides/spree/admin/products/new.rb
|
181
|
+
- app/overrides/spree/admin/shared/_main_menu.rb
|
182
|
+
- app/overrides/spree/admin/shared/_order_summary.rb
|
183
|
+
- app/overrides/spree/admin/users/_form.rb
|
184
|
+
- app/serializers/spree/v2/storefront/vendor_image_serializer.rb
|
185
|
+
- app/serializers/spree/v2/storefront/vendor_order_totals_serializer.rb
|
186
|
+
- app/serializers/spree/v2/storefront/vendor_serializer.rb
|
187
|
+
- app/serializers/spree_multi_vendor/cart_serializer_decorator.rb
|
188
|
+
- app/serializers/spree_multi_vendor/serializer_decorator.rb
|
189
|
+
- app/services/spree/orders/generate_commissions.rb
|
190
|
+
- app/views/spree/admin/translations/vendor.html.erb
|
191
|
+
- app/views/spree/admin/vendor_settings/edit.html.erb
|
192
|
+
- app/views/spree/admin/vendors/_form.html.erb
|
193
|
+
- app/views/spree/admin/vendors/edit.html.erb
|
194
|
+
- app/views/spree/admin/vendors/index.html.erb
|
195
|
+
- app/views/spree/admin/vendors/new.html.erb
|
196
|
+
- app/views/spree/vendor_mailer/vendor_notification_email.html.erb
|
197
|
+
- app/views/spree/vendor_mailer/vendor_notification_email.text.erb
|
198
|
+
- bin/rails
|
199
|
+
- config/initializers/spree_permitted_attributes.rb
|
200
|
+
- config/locales/en.yml
|
201
|
+
- config/locales/es.yml
|
202
|
+
- config/locales/fr.yml
|
203
|
+
- config/routes.rb
|
204
|
+
- db/default/vendors.rb
|
205
|
+
- db/migrate/20170406102250_create_spree_vendors.rb
|
206
|
+
- db/migrate/20170406102944_add_vendor_id_to_spree_models.rb
|
207
|
+
- db/migrate/20170410111150_add_state_to_vendors.rb
|
208
|
+
- db/migrate/20170412124925_add_deleted_at_to_spree_vendors.rb
|
209
|
+
- db/migrate/20170413094447_create_spree_vendor_users.rb
|
210
|
+
- db/migrate/20190212161426_add_slug_to_spree_vendors.rb
|
211
|
+
- db/migrate/20190214120226_add_about_us_to_spree_vendors.rb
|
212
|
+
- db/migrate/20190214142526_add_contact_us_to_spree_vendors.rb
|
213
|
+
- db/migrate/20190305120337_add_commission_to_spree_vendors.rb
|
214
|
+
- db/migrate/20190308091546_add_priority_to_vendor.rb
|
215
|
+
- db/migrate/20190312130754_create_spree_order_commissions.rb
|
216
|
+
- db/migrate/20190322133128_add_notification_email_to_vendors.rb
|
217
|
+
- db/migrate/20200416030721_add_translations_to_vendor.rb
|
218
|
+
- gemfiles/spree_4_2.gemfile
|
219
|
+
- gemfiles/spree_master.gemfile
|
220
|
+
- lib/generators/spree_multi_vendor/install/install_generator.rb
|
221
|
+
- lib/generators/spree_multi_vendor/mailers_preview/mailers_preview_generator.rb
|
222
|
+
- lib/generators/spree_multi_vendor/mailers_preview/templates/mailers/previews/vendor_notification_preview.rb
|
223
|
+
- lib/spree_multi_vendor.rb
|
224
|
+
- lib/spree_multi_vendor/engine.rb
|
225
|
+
- lib/spree_multi_vendor/factories.rb
|
226
|
+
- lib/spree_multi_vendor/version.rb
|
227
|
+
- lib/tasks/vendors.rake
|
228
|
+
- spec/factories/spree/vendor_factory.rb
|
229
|
+
- spec/factories/spree/vendor_image_factory.rb
|
230
|
+
- spec/factories/spree/vendor_user_factory.rb
|
231
|
+
- spec/features/spree/admin/orders_spec.rb
|
232
|
+
- spec/features/spree/admin/product_spec.rb
|
233
|
+
- spec/features/spree/admin/shipping_method_spec.rb
|
234
|
+
- spec/features/spree/admin/stock_location_spec.rb
|
235
|
+
- spec/features/spree/admin/vendor_settings_spec.rb
|
236
|
+
- spec/features/spree/admin/vendor_spec.rb
|
237
|
+
- spec/fixtures/thinking-cat.jpg
|
238
|
+
- spec/mailers/vendor_mailer_spec.rb
|
239
|
+
- spec/models/spree/line_item_spec.rb
|
240
|
+
- spec/models/spree/order_commission_spec.rb
|
241
|
+
- spec/models/spree/order_spec.rb
|
242
|
+
- spec/models/spree/product_spec.rb
|
243
|
+
- spec/models/spree/variant_spec.rb
|
244
|
+
- spec/models/spree/vendor_order_totals_spec.rb
|
245
|
+
- spec/models/spree/vendor_spec.rb
|
246
|
+
- spec/models/spree/vendor_user_spec.rb
|
247
|
+
- spec/requests/spree/api/v2/storefront/cart_spec.rb
|
248
|
+
- spec/requests/spree/api/v2/storefront/products_spec.rb
|
249
|
+
- spec/requests/spree/api/v2/storefront/vendors_spec.rb
|
250
|
+
- spec/serializers/spree/v2/storefront/stock_location_serializer_spec.rb
|
251
|
+
- spec/serializers/spree/v2/storefront/vendor_image_serializer_spec.rb
|
252
|
+
- spec/serializers/spree/v2/storefront/vendor_order_totals_serializer_spec.rb
|
253
|
+
- spec/serializers/spree/v2/storefront/vendor_serializer_spec.rb
|
254
|
+
- spec/spec_helper.rb
|
255
|
+
- spec/support/shoulda_matchers.rb
|
256
|
+
- spree_multi_vendor.gemspec
|
257
|
+
homepage: https://sparksolutions.co
|
258
|
+
licenses:
|
259
|
+
- BSD-3-Clause
|
260
|
+
metadata:
|
261
|
+
bug_tracker_uri: https://github.com/spree-contrib/spree_multi_vendor/issues
|
262
|
+
changelog_uri: https://github.com/spree-contrib/spree_multi_vendor/releases/tag/v2.0.1
|
263
|
+
documentation_uri: https://guides.spreecommerce.org/
|
264
|
+
source_code_uri: https://github.com/spree-contrib/spree_multi_vendor/tree/v2.0.1
|
265
|
+
post_install_message:
|
266
|
+
rdoc_options: []
|
267
|
+
require_paths:
|
268
|
+
- lib
|
269
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
270
|
+
requirements:
|
271
|
+
- - ">="
|
272
|
+
- !ruby/object:Gem::Version
|
273
|
+
version: '2.5'
|
274
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
275
|
+
requirements:
|
276
|
+
- - ">="
|
277
|
+
- !ruby/object:Gem::Version
|
278
|
+
version: '0'
|
279
|
+
requirements:
|
280
|
+
- none
|
281
|
+
rubygems_version: 3.2.3
|
282
|
+
signing_key:
|
283
|
+
specification_version: 4
|
284
|
+
summary: Spree Commerce multi vendor marketplace extension
|
285
|
+
test_files:
|
286
|
+
- spec/factories/spree/vendor_factory.rb
|
287
|
+
- spec/factories/spree/vendor_image_factory.rb
|
288
|
+
- spec/factories/spree/vendor_user_factory.rb
|
289
|
+
- spec/features/spree/admin/orders_spec.rb
|
290
|
+
- spec/features/spree/admin/product_spec.rb
|
291
|
+
- spec/features/spree/admin/shipping_method_spec.rb
|
292
|
+
- spec/features/spree/admin/stock_location_spec.rb
|
293
|
+
- spec/features/spree/admin/vendor_settings_spec.rb
|
294
|
+
- spec/features/spree/admin/vendor_spec.rb
|
295
|
+
- spec/fixtures/thinking-cat.jpg
|
296
|
+
- spec/mailers/vendor_mailer_spec.rb
|
297
|
+
- spec/models/spree/line_item_spec.rb
|
298
|
+
- spec/models/spree/order_commission_spec.rb
|
299
|
+
- spec/models/spree/order_spec.rb
|
300
|
+
- spec/models/spree/product_spec.rb
|
301
|
+
- spec/models/spree/variant_spec.rb
|
302
|
+
- spec/models/spree/vendor_order_totals_spec.rb
|
303
|
+
- spec/models/spree/vendor_spec.rb
|
304
|
+
- spec/models/spree/vendor_user_spec.rb
|
305
|
+
- spec/requests/spree/api/v2/storefront/cart_spec.rb
|
306
|
+
- spec/requests/spree/api/v2/storefront/products_spec.rb
|
307
|
+
- spec/requests/spree/api/v2/storefront/vendors_spec.rb
|
308
|
+
- spec/serializers/spree/v2/storefront/stock_location_serializer_spec.rb
|
309
|
+
- spec/serializers/spree/v2/storefront/vendor_image_serializer_spec.rb
|
310
|
+
- spec/serializers/spree/v2/storefront/vendor_order_totals_serializer_spec.rb
|
311
|
+
- spec/serializers/spree/v2/storefront/vendor_serializer_spec.rb
|
312
|
+
- spec/spec_helper.rb
|
313
|
+
- spec/support/shoulda_matchers.rb
|