<?php
namespace SabaiApps\Directories\Component\PaymentGateway\EntityBundleType;

use SabaiApps\Directories\Component\Entity;

class DiscountEntityBundleType extends Entity\BundleType\AbstractBundleType {

	protected function _entityBundleTypeInfo() {
		return array(
			'type'                   => $this->_name,
			'entity_type'            => 'post',
			'slug'                   => 'discounts',
			'suffix'                 => 'pay_dsc',
			'component'              => 'PaymentGateway',
			'icon'                   => 'fas fa-percent',
			'public'                 => false,
			'no_content'             => true,
			'content_field'          => 'paymentgateway_discount',
			'label'                  => __( 'Discounts', 'directories-pro' ),
			'label_singular'         => __( 'Discount', 'directories-pro' ),
			'label_all'              => __( 'Discounts', 'directories-pro' ),
			'label_add'              => __( 'Add Discount', 'directories-pro' ),
			'fields'                 => __DIR__ . '/discount_fields.php',
			'displays'               => __DIR__ . '/discount_displays.php',
			'properties'             => array(),
			'entity_permissions'     => false,
			'dashboard_disable'      => true,
			'frontendsubmit_disable' => true,
			'restorable'             => true,
			'addable'                => false,
			'configurable'           => false,
			'faker_disable'          => true,
			'csv_disable'            => true, // to be implemented in the future
		);
	}

	public function entityBundleTypeSettingsForm( array $settings, array $parents = array() ) {
		return array();
	}
}
