| 1 |
<?php |
| 2 |
|
| 3 |
namespace SyncBasalam\Actions; |
| 4 |
|
| 5 |
use SyncBasalam\Actions\Controller\ProductActions\CreateAllProducts; |
| 6 |
use SyncBasalam\Actions\Controller\ProductActions\CancelCreateProducts; |
| 7 |
use SyncBasalam\Actions\Controller\ProductActions\UpdateAllProducts; |
| 8 |
use SyncBasalam\Actions\Controller\ProductActions\CancelUpdateProducts; |
| 9 |
use SyncBasalam\Actions\Controller\ProductActions\ConnectAllProducts; |
| 10 |
use SyncBasalam\Actions\Controller\ProductActions\CancelConnectAllProducts; |
| 11 |
use SyncBasalam\Actions\Controller\OrderActions\FetchUnsyncOrders; |
| 12 |
use SyncBasalam\Actions\Controller\OrderActions\CancelFetchOrders; |
| 13 |
use SyncBasalam\Actions\Controller\OrderActions\ConfirmOrder; |
| 14 |
use SyncBasalam\Actions\Controller\OrderActions\CancelOrder; |
| 15 |
use SyncBasalam\Actions\Controller\OrderActions\RequestCancelOrder; |
| 16 |
use SyncBasalam\Actions\Controller\OrderActions\DelayOrder; |
| 17 |
use SyncBasalam\Actions\Controller\OrderActions\TrackingCodeOrder; |
| 18 |
use SyncBasalam\Actions\Controller\OrderActions\AutoConfirmOrders; |
| 19 |
use SyncBasalam\Actions\Controller\OptionActions\CreateMapOption; |
| 20 |
use SyncBasalam\Actions\Controller\OptionActions\RemoveMapOption; |
| 21 |
use SyncBasalam\Actions\Controller\ReviewActions\RemindLaterReview; |
| 22 |
use SyncBasalam\Actions\Controller\ReviewActions\NeverRemindReview; |
| 23 |
use SyncBasalam\Actions\Controller\ReviewActions\SubmitReview; |
| 24 |
use SyncBasalam\Actions\Controller\ProductActions\CreateSingleProduct; |
| 25 |
use SyncBasalam\Actions\Controller\ProductActions\UpdateSingleProduct; |
| 26 |
use SyncBasalam\Actions\Controller\ProductActions\RestoreProduct; |
| 27 |
use SyncBasalam\Actions\Controller\ProductActions\ArchiveProduct; |
| 28 |
use SyncBasalam\Actions\Controller\ProductActions\DisconnectProduct; |
| 29 |
use SyncBasalam\Actions\Controller\ProductActions\ConnectSingleProduct; |
| 30 |
use SyncBasalam\Actions\Controller\ProductActions\DetectionProductCategories; |
| 31 |
use SyncBasalam\Actions\Controller\ProductActions\GetCategoryAttributes; |
| 32 |
use SyncBasalam\Actions\Controller\ProductActions\ClearLogs; |
| 33 |
use SyncBasalam\Actions\Controller\UpdateSettings; |
| 34 |
use SyncBasalam\Actions\Controller\CategoryActions\GetWooCategories; |
| 35 |
use SyncBasalam\Actions\Controller\CategoryActions\FetchBasalamCategories; |
| 36 |
use SyncBasalam\Actions\Controller\CategoryActions\GetCategoryMappings; |
| 37 |
use SyncBasalam\Actions\Controller\CategoryActions\CreateCategoryMap; |
| 38 |
use SyncBasalam\Actions\Controller\CategoryActions\RemoveCategoryMap; |
| 39 |
use SyncBasalam\Actions\Controller\CategoryActions\GetMappingStats; |
| 40 |
use SyncBasalam\Actions\Controller\TicketActions\CreateTicket; |
| 41 |
use SyncBasalam\Actions\Controller\TicketActions\CreateTicketItem; |
| 42 |
use SyncBasalam\Actions\Controller\TicketActions\UploadTicketMediaAjax; |
| 43 |
use SyncBasalam\Actions\Controller\RefreshVendorStatus; |
| 44 |
|
| 45 |
defined('ABSPATH') || exit; |
| 46 |
|
| 47 |
class RegisterActions |
| 48 |
{ |
| 49 |
public function __construct() |
| 50 |
{ |
| 51 |
$this->register(); |
| 52 |
} |
| 53 |
|
| 54 |
private function register() |
| 55 |
{ |
| 56 |
ActionHandler::postAjax('create_products_to_basalam', CreateAllProducts::class); |
| 57 |
ActionHandler::postAction('cancel_create_jobs', CancelCreateProducts::class); |
| 58 |
ActionHandler::postAction('cancel_update_jobs', CancelUpdateProducts::class); |
| 59 |
ActionHandler::postAjax('update_products_in_basalam', UpdateAllProducts::class); |
| 60 |
ActionHandler::postAction('cancel_update_products_in_basalam', CancelUpdateProducts::class); |
| 61 |
ActionHandler::postAjax('connect_products_with_basalam', ConnectAllProducts::class); |
| 62 |
ActionHandler::postAction('cancel_connect_products_with_basalam', CancelConnectAllProducts::class); |
| 63 |
ActionHandler::postAjax('add_unsync_orders_from_basalam', FetchUnsyncOrders::class); |
| 64 |
ActionHandler::postAjax('cancel_fetch_orders', CancelFetchOrders::class); |
| 65 |
ActionHandler::postAjax('basalam_add_map_option', CreateMapOption::class); |
| 66 |
ActionHandler::postAjax('basalam_delete_mapped_option', RemoveMapOption::class); |
| 67 |
ActionHandler::postAjax('create_product_basalam', CreateSingleProduct::class); |
| 68 |
ActionHandler::postAjax('update_product_in_basalam', UpdateSingleProduct::class); |
| 69 |
ActionHandler::postAjax('restore_exist_product_on_basalam', RestoreProduct::class); |
| 70 |
ActionHandler::postAjax('archive_exist_product_on_basalam', ArchiveProduct::class); |
| 71 |
ActionHandler::postAjax('disconnect_exist_product_on_basalam', DisconnectProduct::class); |
| 72 |
ActionHandler::postAction('basalam_update_setting', UpdateSettings::class); |
| 73 |
ActionHandler::postAjax('confirm_basalam_order', ConfirmOrder::class); |
| 74 |
ActionHandler::postAjax('cancel_basalam_order', CancelOrder::class); |
| 75 |
ActionHandler::postAjax('request_cancel_basalam_order', RequestCancelOrder::class); |
| 76 |
ActionHandler::postAjax('delay_req_basalam_order', DelayOrder::class); |
| 77 |
ActionHandler::postAjax('tracking_code_basalam_order', TrackingCodeOrder::class); |
| 78 |
ActionHandler::postAjax('basalam_connect_product', ConnectSingleProduct::class); |
| 79 |
ActionHandler::postAjax('basalam_get_category_ids', DetectionProductCategories::class); |
| 80 |
ActionHandler::postAjax('basalam_get_category_attrs', GetCategoryAttributes::class); |
| 81 |
ActionHandler::postAjax('basalam_clear_logs', ClearLogs::class); |
| 82 |
ActionHandler::postAjax('get_woocommerce_categories', GetWooCategories::class); |
| 83 |
ActionHandler::postAjax('get_basalam_categories', FetchBasalamCategories::class); |
| 84 |
ActionHandler::postAjax('get_category_mappings', GetCategoryMappings::class); |
| 85 |
ActionHandler::postAjax('create_category_mapping', CreateCategoryMap::class); |
| 86 |
ActionHandler::postAjax('delete_category_mapping', RemoveCategoryMap::class); |
| 87 |
ActionHandler::postAjax('get_mapping_stats', GetMappingStats::class); |
| 88 |
ActionHandler::postAction('auto_confirm_order_in_basalam', AutoConfirmOrders::class); |
| 89 |
ActionHandler::postAction('create_ticket', CreateTicket::class); |
| 90 |
ActionHandler::postAjax('create_ticket', CreateTicket::class); |
| 91 |
ActionHandler::postAction('create_ticket_item', CreateTicketItem::class); |
| 92 |
ActionHandler::postAjax('upload_ticket_media', UploadTicketMediaAjax::class); |
| 93 |
ActionHandler::postAjax('sync_basalam_remind_later_review', RemindLaterReview::class); |
| 94 |
ActionHandler::postAjax('sync_basalam_never_remind_review', NeverRemindReview::class); |
| 95 |
ActionHandler::postAjax('sync_basalam_submit_review', SubmitReview::class); |
| 96 |
ActionHandler::postAjax('sync_basalam_refresh_vendor_status', RefreshVendorStatus::class); |
| 97 |
} |
| 98 |
} |
| 99 |
|