# Class Opencart\Catalog\Model\Checkout\Subscription

`extends` | `Model`

Class Subscription

- Opencart\System\Engine\Model
  - Opencart\Catalog\Model\Checkout\Subscription

Located at catalog\model\checkout\subscription.php

Methods
`public` | `addSubscription(array<string, mixed> $data): int` Add Subscription Add Subscription | #
`public` | `editSubscription(int $subscription_id, array<string, mixed> $data): void` Edit Subscription Edit Subscription | #
`public` | `deleteSubscriptionByOrderId(int $order_id): void` Delete Subscription By Order ID Delete Subscription By Order ID | #
`public` | `getSubscriptionByOrderProductId(int $order_id, int $order_product_id): array<string, mixed>` Get Subscription By Order Product ID Get Subscription By Order Product ID | #
`public` | `addHistory(int $subscription_id, int $subscription_status_id, string $comment = '', bool $notify = false): void` Add History Add History | #
`public` | `editSubscriptionStatus(int $subscription_id, bool $subscription_status_id): void` Edit Subscription Status Edit Subscription Status | #
`public` | `editTrialRemaining(int $subscription_id, int $trial_remaining): void` Edit Trial Remaining Edit Trial Remaining | #
`public` | `editDateNext(int $subscription_id, string $date_next): void` Edit Date Next Edit Date Next | #
`public` | `getSubscriptions(array<string, mixed> $data): array<int, array<string, mixed>>` Get Subscriptions Get Subscriptions | #

Methods inherited from Opencart\System\Engine\Model
`__construct(), __get(), __set(), __isset()`

Properties inherited from Opencart\System\Engine\Model
`$registry`

OpenCart API API documentation generated by ApiGen dev-master