Package ru.bitel.bgbilling.modules.subscription.common.service

# Interface SubscriptionService

public interface SubscriptionService

- ## Method Summary

  Modifier and Type
  Method
  Description
  `int[]`
  `groupOperationActivateSubscription(int[] contractIds, int[] subscriptionTypeIds)`
  `int[]`
  `groupOperationAddSubscription(int[] contractIds, int[] subscriptionTypeIds, Subscription subscription)`
  `int[]`
  `groupOperationCloseSubscription(int[] contractIds, int[] subscriptionTypeIds, Date dateTo)`
  `void`
  `subscriptionActivate(int subscriptionId)`
  `int`
  `subscriptionDelete(int id)`
  `Subscription`
  `subscriptionGet(int id)`
  `List<Subscription>`
  `subscriptionList(int contractId, boolean loadRegistrationPeriod)`
  `List<RegistrationPeriod>`
  `subscriptionRegistrationPeriodList(int subscriptionId)`
  `Boolean[][]`
  `subscriptionStatusMatrixGet(List<Integer> subscriptionIds, List<Integer> statusIds, boolean replaceDefaultToValue)`
  `void`
  `subscriptionStatusMatrixUpdate(List<Integer> subscriptionIds, List<Integer> statusIds, Boolean[][] values)`
  `int`
  `subscriptionTypeDelete(int id)`
  `SubscriptionType`
  `subscriptionTypeGet(int id)`
  `List<SubscriptionType>`
  `subscriptionTypeList()`
  `List<SubscriptionType>`
  `subscriptionTypes()`
  `int`
  `subscriptionTypeUpdate(SubscriptionType type)`
  `int`
  `subscriptionUpdate(Subscription subscription)`

- ## Method Details

  - ### subscriptionActivate

    void subscriptionActivate(int subscriptionId) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionList

    List<Subscription> subscriptionList(int contractId, boolean loadRegistrationPeriod) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionRegistrationPeriodList

    List<RegistrationPeriod> subscriptionRegistrationPeriodList(int subscriptionId) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionGet

    Subscription subscriptionGet(int id) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionUpdate

    int subscriptionUpdate(Subscription subscription) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionDelete

    int subscriptionDelete(int id) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionTypeList

    List<SubscriptionType> subscriptionTypeList() throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionTypeGet

    SubscriptionType subscriptionTypeGet(int id) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionTypeUpdate

    int subscriptionTypeUpdate(SubscriptionType type) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionTypeDelete

    int subscriptionTypeDelete(int id) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### groupOperationAddSubscription

    int[] groupOperationAddSubscription(int[] contractIds, int[] subscriptionTypeIds, Subscription subscription) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### groupOperationCloseSubscription

    int[] groupOperationCloseSubscription(int[] contractIds, int[] subscriptionTypeIds, Date dateTo) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### groupOperationActivateSubscription

    int[] groupOperationActivateSubscription(int[] contractIds, int[] subscriptionTypeIds) throws ru.bitel.bgbilling.common.BGException
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionTypes

    List<SubscriptionType> subscriptionTypes() throws ru.bitel.bgbilling.common.BGException
    Returns:
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionStatusMatrixGet

    Boolean[][] subscriptionStatusMatrixGet(List<Integer> subscriptionIds, List<Integer> statusIds, boolean replaceDefaultToValue) throws ru.bitel.bgbilling.common.BGException
    Parameters:
      `subscriptionIds` -
      `statusIds` -
      `replaceDefaultToValue` -
    Returns:
    Throws:
      `ru.bitel.bgbilling.common.BGException`

  - ### subscriptionStatusMatrixUpdate

    void subscriptionStatusMatrixUpdate(List<Integer> subscriptionIds, List<Integer> statusIds, Boolean[][] values) throws ru.bitel.bgbilling.common.BGException
    Parameters:
      `subscriptionIds` -
      `statusIds` -
      `values` -
    Throws:
      `ru.bitel.bgbilling.common.BGException`