kodekeep/paddle-sdk

View on GitHub
src/Api/Endpoints/Subscription/Modifiers.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

/*
 * This file is part of Paddle SDK.
 *
 * (c) KodeKeep <hello@kodekeep.com>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace KodeKeep\Paddle\Api\Endpoints\Subscription;

use KodeKeep\Paddle\Api\Endpoints\Endpoint;

class Modifiers extends Endpoint
{
    /**
     * @see https://developer.paddle.com/api-reference/subscription-api/modifiers/listmodifiers
     */
    public function all(array $data = []): array
    {
        return $this->post('/2.0/subscription/modifiers', $data);
    }

    /**
     * @see https://developer.paddle.com/api-reference/subscription-api/modifiers/createmodifier
     */
    public function create(array $data = []): array
    {
        return $this->post('/2.0/subscription/modifiers/create', $data);
    }

    /**
     * @see https://developer.paddle.com/api-reference/subscription-api/modifiers/deletemodifier
     */
    public function delete(array $data = []): array
    {
        return $this->post('/2.0/subscription/modifiers/delete', $data);
    }
}