# Class Opencart\Admin\Model\Sale\Subscription

`extends` | `Model`

Class Subscription

- Opencart\System\Engine\Model
  - Opencart\Admin\Model\Sale\Subscription

Located at admin\model\sale\subscription.php

Methods
`public` | `editSubscription(int $subscription_id, array<string, mixed> $data): void` Edit Subscription Edit Subscription | #
`public` | `editPaymentMethod(int $subscription_id, int $customer_payment_id): void` Edit Payment Method Edit Payment Method | #
`public` | `editSubscriptionPlan(int $subscription_id, int $subscription_plan_id): void` Edit Subscription Plan Edit Subscription Plan | #
`public` | `editRemaining(int $subscription_id, int $remaining): void` Edit Remaining Edit Remaining | #
`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` | `deleteSubscriptionByCustomerPaymentId(int $customer_payment_id): void` Delete Subscription By Customer Payment ID Delete Subscription By Customer Payment ID | #
`public` | `getSubscription(int $subscription_id): array<string, mixed>` Get Subscription Get Subscription | #
`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` | `getSubscriptions(array<string, mixed> $data): array<int, array<string, mixed>>` Get Subscriptions Get Subscriptions | #
`public` | `getTotalSubscriptions(array<string, mixed> $data = []): int` Get Total Subscriptions Get Total Subscriptions | #
`public` | `getTotalSubscriptionsByStoreId(int $store_id): int` Get Total Subscriptions By Store ID Get Total Subscriptions By Store ID | #
`public` | `getTotalSubscriptionsBySubscriptionStatusId(int $subscription_status_id): int` Get Total Subscriptions By Subscription Status ID Get Total Subscriptions By Subscription Status ID | #
`public` | `addHistory(int $subscription_id, int $subscription_status_id, string $comment = '', bool $notify = false): void` Add History Add History | #
`public` | `getHistories(int $subscription_id, int $start = 0, int $limit = 10): array<int, array<string, mixed>>` Get Histories Get Histories | #
`public` | `getTotalHistories(int $subscription_id): int` Get Total Histories Get Total Histories | #
`public` | `getTotalHistoriesBySubscriptionStatusId(int $subscription_status_id): int` Get Total Histories By Subscription Status ID Get Total Histories By Subscription Status ID | #

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