<?php
namespace Woo_BG\Admin;

defined( 'ABSPATH' ) || exit;

class Ajax {
	public function __construct() {
		add_action( 'wp_ajax_woo_bg_save_settings', array( 'Woo_BG\Admin\Tabs\Settings_Tab', 'woo_bg_save_settings_callback' ) );
		add_action( 'wp_ajax_woo_bg_send_request', array( 'Woo_BG\Admin\Tabs\Help_Tab', 'woo_bg_send_request_callback') );

		add_action( 'wp_ajax_woo_bg_export_nap', array( 'Woo_BG\Admin\Tabs\Export_Tab', 'woo_bg_export_nap_callback' ) );
		add_action( 'wp_ajax_woo_bg_export_microinvest', array( 'Woo_BG\Admin\Tabs\Export_Tab', 'woo_bg_export_microinvest_callback' ) );
		add_action( 'wp_ajax_woo_bg_export_invoice_archive', array( 'Woo_BG\Admin\Tabs\Export_Tab', 'woo_bg_export_invoice_archive_callback' ) );

		add_action( 'wp_ajax_woo_bg_generate_label_from_listing_page', array( 'Woo_BG\Admin\Order\Labels', 'generate_label_from_listing_page_callback') );
		add_action( 'wp_ajax_woo_bg_nekorekten_submit', array( 'Woo_BG\Admin\Nekorekten_Com', 'submit_callback') );
		add_action( 'wp_ajax_woo_bg_boxnow_message_dismiss', array( 'Woo_BG\Admin\BoxNow', 'message_dismiss_callback') );
		
		add_action( 'wp_ajax_woo_bg_change_bgn_to_eur', array( 'Woo_BG\Front_End\Multi_Currency_Converter', 'update_products_from_bgn_to_eur' ) );
		add_action( 'wp_ajax_woo_bg_change_shop_currency_to_eur', array( 'Woo_BG\Front_End\Multi_Currency_Converter', 'change_shop_currency_to_eur' ) );
	}
}
