Shopware6: Neue Shopschnittstelle hinzugefĆ¼gt
[kivitendo-erp.git] / SL / ShopConnector / ALL.pm
1 package SL::ShopConnector::ALL;
2
3 use strict;
4
5 use SL::ShopConnector::Shopware;
6 use SL::ShopConnector::Shopware6;
7 use SL::ShopConnector::WooCommerce;
8
9 my %shop_connector_by_name = (
10   shopware    => 'SL::ShopConnector::Shopware',
11   shopware6   => 'SL::ShopConnector::Shopware6',
12   woocommerce => 'SL::ShopConnector::WooCommerce',
13 );
14
15 my %shop_connector_by_connector = (
16   shopware    => 'SL::ShopConnector::Shopware',
17   shopware6   => 'SL::ShopConnector::Shopware6',
18   woocommerce => 'SL::ShopConnector::WooCommerce',
19 );
20
21 my @shop_connector_order = qw(
22   woocommerce
23   shopware
24   shopware6
25 );
26
27 my @shop_connectors = (
28   { id => "shopware",    description => "Shopware" },
29   { id => "shopware6",   description => "Shopware6" },
30   { id => "woocommerce", description => "WooCommerce" },
31 );
32
33
34 sub all_shop_connectors {
35   map { $shop_connector_by_name{$_} } @shop_connector_order;
36 }
37
38 sub shop_connector_class_by_name {
39   $shop_connector_by_name{$_[1]};
40 }
41
42 sub shop_connector_class_by_connector {
43   $shop_connector_by_connector{$_[1]};
44 }
45
46 sub connectors {
47   \@shop_connectors;
48 }
49 1;