* @copyright 2007-2017 PrestaShop SA * @license https://opensource.org/licenses/OSL-3.0 Open Software License (OSL 3.0) * International Registered Trademark & Property of PrestaShop SA */class WebserviceRequest extends WebserviceRequestCore{ public static function getResources() { $resources = array( 'addresses' => array('description' => 'The Customer, Brand and Customer addresses','class' => 'Address'), 'carriers' => array('description' => 'The Carriers','class' => 'Carrier'), 'carts' => array('description' => 'Customer\'s carts', 'class' => 'Cart'), 'cart_rules' => array('description' => 'Cart rules management', 'class' => 'CartRule'), 'categories' => array('description' => 'The product categories','class' => 'Category'), 'combinations' => array('description' => 'The product combinations','class' => 'Combination'), 'configurations' => array('description' => 'Shop configuration', 'class' => 'Configuration'), 'contacts' => array('description' => 'Shop contacts','class' => 'Contact'), 'countries' => array('description' => 'The countries','class' => 'Country'), 'currencies' => array('description' => 'The currencies', 'class' => 'Currency'), 'customers' => array('description' => 'The e-shop\'s customers','class' => 'Customer'), 'customer_threads' => array('description' => 'Customer services threads','class' => 'CustomerThread'), 'customer_messages' => array('description' => 'Customer services messages','class' => 'CustomerMessage'), 'deliveries' => array('description' => 'Product delivery', 'class' => 'Delivery'), 'groups' => array('description' => 'The customer\'s groups','class' => 'Group'), 'guests' => array('description' => 'The guests', 'class' => 'Guest'), 'images' => array('description' => 'The images', 'specific_management' => true), 'image_types' => array('description' => 'The image types', 'class' => 'ImageType'), 'languages' => array('description' => 'Shop languages', 'class' => 'Language'), 'manufacturers' => array('description' => 'The product brands','class' => 'Manufacturer'), 'messages' => array('description' => 'The Messages','class' => 'Message'), 'order_carriers' => array('description' => 'The Order carriers','class' => 'OrderCarrier'), 'order_details' => array('description' => 'Details of an order', 'class' => 'OrderDetail'), 'order_histories' => array('description' => 'The Order histories','class' => 'OrderHistory'), 'order_invoices' => array('description' => 'The Order invoices','class' => 'OrderInvoice'), 'orders' => array('description' => 'The Customers orders','class' => 'Order'), 'order_payments' => array('description' => 'The Order payments','class' => 'OrderPayment'), 'order_states' => array('description' => 'The Order statuses','class' => 'OrderState'), 'order_slip' => array('description' => 'The Order slips', 'class' => 'OrderSlip'), 'price_ranges' => array('description' => 'Price ranges', 'class' => 'RangePrice'), 'product_features' => array('description' => 'The product features','class' => 'Feature'), 'product_feature_values' => array('description' => 'The product feature values','class' => 'FeatureValue'), 'product_options' => array('description' => 'The product options','class' => 'AttributeGroup'), 'product_option_values' => array('description' => 'The product options value','class' => 'Attribute'), 'products' => array('description' => 'The products','class' => 'Product'), 'states' => array('description' => 'The available states of countries','class' => 'State'), 'stores' => array('description' => 'The stores', 'class' => 'Store'), 'suppliers' => array('description' => 'The product suppliers','class' => 'Supplier'), 'tags' => array('description' => 'The Products tags','class' => 'Tag'), 'translated_configurations' => array('description' => 'Shop configuration', 'class' => 'TranslatedConfiguration'), 'weight_ranges' => array('description' => 'Weight ranges', 'class' => 'RangeWeight'), 'zones' => array('description' => 'The Countries zones','class' => 'Zone'), 'employees' => array('description' => 'The Employees', 'class' => 'Employee'), 'search' => array('description' => 'Search', 'specific_management' => true, 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'content_management_system' => array('description' => 'Content management system', 'class' => 'CMS'), 'shops' => array('description' => 'Shops from multi-shop feature', 'class' => 'Shop'), 'shop_groups' => array('description' => 'Shop groups from multi-shop feature', 'class' => 'ShopGroup'), 'taxes' => array('description' => 'The tax rate', 'class' => 'Tax'), 'stock_movements' => array('description' => 'Stock movements', 'class' => 'StockMvtWS', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'stock_movement_reasons' => array('description' => 'Stock movement reason', 'class' => 'StockMvtReason'), 'warehouses' => array('description' => 'Warehouses', 'class' => 'Warehouse', 'forbidden_method' => array('DELETE')), 'stocks' => array('description' => 'Stocks', 'class' => 'Stock', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'stock_availables' => array('description' => 'Available quantities', 'class' => 'StockAvailable', 'forbidden_method' => array('POST', 'DELETE')), 'warehouse_product_locations' => array('description' => 'Location of products in warehouses', 'class' => 'WarehouseProductLocation', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'supply_orders' => array('description' => 'Supply Orders', 'class' => 'SupplyOrder', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'supply_order_details' => array('description' => 'Supply Order Details', 'class' => 'SupplyOrderDetail', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'supply_order_states' => array('description' => 'Supply Order Statuses', 'class' => 'SupplyOrderState', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'supply_order_histories' => array('description' => 'Supply Order Histories', 'class' => 'SupplyOrderHistory', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'supply_order_receipt_histories' => array('description' => 'Supply Order Receipt Histories', 'class' => 'SupplyOrderReceiptHistory', 'forbidden_method' => array('PUT', 'POST', 'DELETE')), 'product_suppliers' => array('description' => 'Product Suppliers', 'class' => 'ProductSupplier'), 'tax_rules' => array('description' => 'Tax rules entity', 'class' => 'TaxRule'), 'tax_rule_groups' => array('description' => 'Tax rule groups', 'class' => 'TaxRulesGroup'), 'specific_prices' => array('description' => 'Specific price management', 'class' => 'SpecificPrice'), 'specific_price_rules' => array('description' => 'Specific price management', 'class' => 'SpecificPriceRule'), 'shop_urls' => array('description' => 'Shop URLs from multi-shop feature', 'class' => 'ShopUrl'), 'product_customization_fields' => array('description' => 'Customization Field', 'class' => 'CustomizationField'), 'customizations' => array('description' => 'Customization values', 'class' => 'Customization'), 'mr_selecteds' => array('description' => 'Mondial Relay', 'class' => 'ShippingboMondialRelay'), 'mondialrelay_selected_relay' => array('description' => 'Point relais Mondial Relay par panier', 'class' => 'IteckMondialRelay', 'forbidden_method' => array('POST', 'PUT', 'PATCH', 'DELETE')), 'gls_cart_carrier' => array('description' => 'GLS', 'class' => 'ShippingboGlsRelay'), 'dpdfrance_shippings' => array('description' => 'DPD France', 'class' => 'ShippingboDpdRelay'), 'chrono_cart_relais' => array('description' => 'Chronopost', 'class' => 'ShippingboChronopostRelay'), 'xm_orders' => array('description' => 'xm_orders', 'class' => 'XmOrders'), ); $extra_resources = Hook::exec('addWebserviceResources', array('resources' => $resources), null, true, false); if (is_array($extra_resources) && count($extra_resources)) { foreach ($extra_resources as $new_resources) { if (is_array($new_resources) && count($new_resources)) { $resources = array_merge($resources, $new_resources); } } } ksort($resources); return $resources; } }