Files
newwalls.pl/modules/mailchimppro/controllers/admin/AdminMailchimpProStoresController.php
2024-12-17 13:43:22 +01:00

45 lines
945 B
PHP

<?php
/**
* PrestaChamps
*
* NOTICE OF LICENSE
*
* This source file is subject to the Commercial License
* you can't distribute, modify or sell this code
*
* DISCLAIMER
*
* Do not edit or add to this file
* If you need help please contact leo@prestachamps.com
*
* @author Mailchimp
* @copyright PrestaChamps
* @license commercial
*/
/**
* Class AdminMailchimpProCartsController
*
* @property Mailchimppro $module
*/
class AdminMailchimpProStoresController extends \PrestaChamps\MailchimpPro\Controllers\BaseMCObjectController
{
public $entityPlural = 'stores';
public $entitySingular = 'store';
protected function getListApiEndpointUrl()
{
return '/ecommerce/stores';
}
protected function deleteEntity($id)
{
$this->mailchimp->delete("/ecommerce/stores/{$id}");
if ($this->mailchimp->success()) {
return true;
}
return false;
}
}