mundipagg/magento2

View on GitHub
Api/ProductSubscriptionApiInterface.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

namespace MundiPagg\MundiPagg\Api;

use MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface;

interface ProductSubscriptionApiInterface
{
    /**
     * Save product subscription
     *
     * @param \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface $productSubscription
     * @param int $id
     * @return \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface|array
     */
    public function save($productSubscription, $id = null);

    /**
     * Save product subscription
     *
     * @param array $form
     * @param int $id
     * @return \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface|array
     */
    public function saveFormData();

    /**
     * List product subscription
     *
     * @return \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface[]
     */
    public function list();

    /**
     * Update product subscription
     *
     * @param int $id
     * @param \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface $productSubscription
     * @return \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface|array
     */
    public function update($id, $productSubscription);

    /**
     * Get a product subscription
     *
     * @param int $id
     * @return \MundiPagg\MundiPagg\Api\ObjectMapper\ProductSubscription\ProductSubscriptionMapperInterface
     */
    public function getProductSubscription($id);

    /**
     * Delete product subscription
     *
     * @param int $id
     * @return mixed
     */
    public function delete($id);

}