# Class Opencart\Catalog\Model\Account\Subscription

`extends` | `Model`

Class Subscription

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

Located at catalog\model\account\subscription.php

Methods
`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(int $start = 0, int $limit = 20): array<int, array<string, mixed>>` Get Subscriptions Get Subscriptions | #
`public` | `getTotalSubscriptions(): int` Get Total Subscriptions Get Total Subscriptions | #
`public` | `getTotalSubscriptionByShippingAddressId(int $address_id): int` Get Total Subscription By Shipping Address ID Get Total Subscription By Shipping Address ID | #
`public` | `getTotalSubscriptionByPaymentAddressId(int $address_id): int` Get Total Subscription By Payment Address ID Get Total Subscription By Payment Address ID | #
`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` | `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 | #

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