<?php
/**
 * This file belongs to the YITH Framework.
 *
 * This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://www.gnu.org/licenses/gpl-3.0.txt
 *
 * @package YITH\PayPalPayouts\
 */

return array(
	'privacy-settings' => array(
		'privacy_options_start'          => array(
			'type' => 'sectionstart',
		),
		'privacy_options_title'          => array(
			'title' => __( 'Personal Data Exporter', 'yith-paypal-payouts-for-woocommerce' ),
			'type'  => 'title',
		),
		'privacy_options_payout'         => array(
			'title'     => __( 'Export payouts in personal data export requests', 'yith-paypal-payouts-for-woocommerce' ),
			'type'      => 'yith-field',
			'yith-type' => 'onoff',
			'default'   => 'yes',
			'desc'      => sprintf(// translators: %1$s is the link , %2$s is the export data name.
				__(
					'Enable to include payouts in an <a href="%1$s">%2$s</a>',
					'yith-paypal-payouts-for-woocommerce'
				),
				esc_url(
					admin_url(
						'tools.php?page=export_personal_data'
					)
				),
				__( 'account personal data export request.', 'yith-paypal-payouts-for-woocommerce' )
			),
			'id'        => 'yith_payouts_export_payout',
		),
		'privacy_options_end'            => array(
			'type' => 'sectionend',
		),
		'accounts-privacy_options_start' => array(
			'type' => 'sectionstart',
		),
		'privacy_eraser_options_title'   => array(
			'title' => __( 'Personal Data Eraser', 'yith-paypal-payouts-for-woocommerce' ),
			'type'  => 'title',
		),
		'privacy_options_eraser'         => array(
			'title'     => _x( 'When handling an account erasure request', '[Admin]Option label', 'yith-paypal-payouts-for-woocommerce' ),
			'type'      => 'yith-field',
			'yith-type' => 'checkbox-array',
			'desc'      => sprintf(// translators: %1$s is the link , %2$s is the erase action.
				__(
					'Choose whether or not to remove the payouts data when handling an <a href="%1$s">%2$s</a>',
					'yith-paypal-payouts-for-woocommerce'
				),
				esc_url(
					admin_url(
						'tools.php?page=remove_personal_data'
					)
				),
				__(
					'account erasure request.',
					'yith-paypal-payouts-for-woocommerce'
				)
			),
			'id'        => 'yith_payouts_privacy_options_eraser',
			'options'   => array(
				'profile'         => __( 'Remove user ID and PayPal email from the receivers list', 'yith-paypal-payouts-for-woocommerce' ),
				'payouts_user_id' => __( 'Remove the PayPal email from receivers payouts', 'yith-paypal-payouts-for-woocommerce' ),
			),
			'default'   => array(),
		),
		'accounts-privacy_options_end'   => array(
			'type' => 'sectionend',
		),
	),
);
