| Total Complexity | 2 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | class Subscription extends ApiResource |
||
| 6 | { |
||
| 7 | const OBJECT_NAME = 'subscriptions'; |
||
| 8 | |||
| 9 | use ApiOperations\All; |
||
| 10 | |||
| 11 | /** |
||
| 12 | * @param string $subscriptionId |
||
| 13 | * @return array|object |
||
| 14 | * @link https://developer.flutterwave.com/reference#cancel-a-subscription-1 |
||
| 15 | */ |
||
| 16 | public static function cancel(string $subscriptionId) |
||
| 17 | { |
||
| 18 | $url = static::endPointUrl("{$subscriptionId}/cancel"); |
||
| 19 | |||
| 20 | return static::staticRequest('PUT', $url); |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * @param string $subscriptionId |
||
| 25 | * @return array|object |
||
| 26 | * @link https://developer.flutterwave.com/reference#activate-a-subscription-1 |
||
| 27 | * |
||
| 28 | */ |
||
| 29 | public static function activate(string $subscriptionId) |
||
| 34 | } |
||
| 35 | } |
||
| 36 |