JFIFxxC      C  " }!1AQa"q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w!1AQaq"2B #3Rbr{ gilour

File "CommonSubscriptionGatewayActions.php"

Full Path: /home/markqprx/iniasli.pro/Gateways/Contracts/CommonSubscriptionGatewayActions.php
File size: 805 bytes
MIME-type: text/x-php
Charset: utf-8

<?php

namespace Common\Billing\Gateways\Contracts;

use Common\Billing\Models\Price;
use Common\Billing\Models\Product;
use Common\Billing\Subscription;

interface CommonSubscriptionGatewayActions
{
    public function isEnabled(): bool;

    /**
     * Sync plan from local database with the gateway
     */
    public function syncPlan(Product $product): bool;

    public function deletePlan(Product $product): bool;

    public function changePlan(
        Subscription $subscription,
        Product $newProduct,
        Price $newPrice
    ): bool;

    public function cancelSubscription(
        Subscription $subscription,
        bool $atPeriodEnd = true
    ): bool;

    public function resumeSubscription(
        Subscription $subscription,
        array $gatewayParams = []
    ): bool;
}