Download app/Services/Contracts/BaseGatewayService.php from pnacorp/magicai: direct link, hf CLI and curl.
- Browser
- Download file 912 Bytes
-
https://huggingface.co/pnacorp/magicai/resolve/main/app/Services/Contracts/BaseGatewayService.php
- Command line
-
hf download hf://pnacorp/magicai/app/Services/Contracts/BaseGatewayService.php
-
curl -L -o BaseGatewayService.php https://huggingface.co/pnacorp/magicai/resolve/main/app/Services/Contracts/BaseGatewayService.php
912 Bytes
| namespace App\Services\Contracts; | |
| use App\Models\User; | |
| use Illuminate\Http\Request; | |
| interface BaseGatewayService | |
| { | |
| public static function saveAllProducts(); | |
| public static function saveProduct($plan); | |
| public static function subscribe($plan); | |
| public static function subscribeCheckout(Request $request, $referral = null); | |
| public static function prepaidCheckout(Request $request, $referral = null); | |
| public static function prepaid($plan); | |
| public static function subscribeCancel(?User $internalUser = null); | |
| public static function cancelSubscribedPlan($subscription, $planId); | |
| public static function checkIfTrial(); | |
| public static function getSubscriptionRenewDate(); | |
| public static function getSubscriptionStatus($incomingUserId = null); | |
| public static function getSubscriptionDaysLeft(); | |
| public static function handleWebhook(Request $request); | |
| } | |