private function addShopAttributes($eavSetup)
    {
        $entityId  = SellerInterface::ENTITY;
        $attrSetId = RetailerInterface::ATTRIBUTE_SET_RETAILER;
        $groupId   = 'Shipping';

        $eavSetup->addAttributeGroup($entityId, $attrSetId, $groupId, 200);

        $eavSetup->addAttribute(
            SellerInterface::ENTITY,
            'allow_store_delivery',
            [
                'type'         => 'int',
                'label'        => 'Allow Store Delivery',
                'input'        => 'boolean',
                'required'     => true,
                'user_defined' => true,
                'sort_order'   => 10,
                'global'       => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL,
                'source'       => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean',
            ]
        );

        $eavSetup->addAttributeToGroup($entityId, $attrSetId, $groupId, 'allow_store_delivery', 10);
    }
private function addShopAttributes($eavSetup)
    {
        $entityId  = SellerInterface::ENTITY;
        $attrSetId = RetailerInterface::ATTRIBUTE_SET_RETAILER;
        $groupId   = 'Shipping';

        $eavSetup->addAttributeGroup($entityId, $attrSetId, $groupId, 200);

        $eavSetup->addAttribute(
            SellerInterface::ENTITY,
            'allow_store_delivery',
            [
                'type'         => 'int',
                'label'        => 'Allow Store Delivery',
                'input'        => 'boolean',
                'required'     => true,
                'user_defined' => true,
                'sort_order'   => 10,
                'global'       => \Magento\Eav\Model\Entity\Attribute\ScopedAttributeInterface::SCOPE_GLOBAL,
                'source'       => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean',
            ]
        );

        $eavSetup->addAttributeToGroup($entityId, $attrSetId, $groupId, 'allow_store_delivery', 10);
    }
private function addShopAttributes ( $ eavSetup ) { $ entityId = SellerInterface :: ENTITY ; $ attrSetId = RetailerInterface :: ATTRIBUTE_SET_RETAILER ; $ groupId = 'Shipping' ; $ eavSetup -> addAttributeGroup ( $ entityId , $ attrSetId , $ groupId , 200 ) ; $ eavSetup -> addAttribute ( SellerInterface :: ENTITY , 'allow_store_delivery' , [ 'type' => 'int' , 'label' => 'Allow Store Delivery' , 'input' => 'boolean' , 'required' => true , 'user_defined' => true , 'sort_order' => 10 , 'global' => \ Magento \ Eav \ Model \ Entity \ Attribute \ ScopedAttributeInterface :: SCOPE_GLOBAL , 'source' => 'Magento\Eav\Model\Entity\Attribute\Source\Boolean' , ] ) ; $ eavSetup -> addAttributeToGroup ( $ entityId , $ attrSetId , $ groupId , 'allow_store_delivery' , 10 ) ; }
Add allow_store_delivery attribute to Retailer

@param \Magento\Eav\Setup\EavSetup $eavSetup EAV module Setup
Add allow_store_delivery attribute to Retailer