Interface ProductOrderService
public interface ProductOrderService
-
Method Summary
Modifier and TypeMethodDescriptionactiveProductList(int contractId, int accountId, Date time) voidadjustProductPeriod(Product product, ProductSpecActivationMode activationMode, boolean timeFromSet) voidisAllowProductActivate(int moduleId, int contractId) intproductActivate(Product product, boolean customer, boolean sync) Deprecated.intproductActivate(Product product, Date time, boolean customer, boolean sync) Активация продукта с указанным режимом активации.
Если time == null и product.timeFrom == null, то используется текущее время в качестве времени активации.voidproductDeactivate(int contractId, int productId, Date time, boolean customer, boolean sync) Deprecated.voidproductDeactivate(int contractId, int productId, Date time, boolean customer, boolean sync, boolean now) Деактивация продукта.productOfferingGet(Integer moduleId, int contractId, int accountId, int productSpecId, int activationModeId, Date time, boolean availableOnly, boolean customer) productOfferingList(Integer moduleId, int contractId, int accountId, int productSpecId, Date time, boolean availableOnly, boolean customer) Список продуктов для возможной активации и их цены.voidproductReactivate(int contractId, int productId, boolean sync) Реактивация продукта возможна в том случае, если продукт был деактивирован, но при этом product.timeTo еще меньше текущего времени.productTariffOfferingList(Integer moduleId, int tariffId, Date time, boolean availableOnly) Список продуктов для возможной активации (и их цены) для указанного тарифа.booleanvalidateActivationTime(Date productActivateDate)
-
Method Details
-
productOfferingList
List<ProductOffering> productOfferingList(Integer moduleId, int contractId, int accountId, int productSpecId, Date time, boolean availableOnly, boolean customer) throws ru.bitel.bgbilling.common.BGException Список продуктов для возможной активации и их цены.- Parameters:
moduleId-contractId-accountId-productSpecId-time-availableOnly-customer-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
productTariffOfferingList
List<ProductOffering> productTariffOfferingList(Integer moduleId, int tariffId, Date time, boolean availableOnly) throws ru.bitel.bgbilling.common.BGException Список продуктов для возможной активации (и их цены) для указанного тарифа. Вместо данного метода желательно использоватьproductOfferingList(Integer, int, int, int, Date, boolean, boolean).- Parameters:
moduleId-tariffId-time-availableOnly-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
productActivate
@RequestWrapper(className="ru.bitel.oss.systems.order.product.common.jaxws.ProductActivateOldRequest") @ResponseWrapper(className="ru.bitel.oss.systems.order.product.common.jaxws.ProductActivateOldResponse") @Deprecated int productActivate(Product product, boolean customer, boolean sync) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
productActivate
int productActivate(Product product, Date time, boolean customer, boolean sync) throws ru.bitel.bgbilling.common.BGException Активация продукта с указанным режимом активации.
Если time == null и product.timeFrom == null, то используется текущее время в качестве времени активации. Если time !=null, то используется time. В обоих случаях применяются правила режима активации, т.е. timeFrom может отличаться от time или текущего времени.
Если time == null и product.timeFrom != null, то в качестве времени активации используется product.timeFrom, правила режима активации не применяются (время не сдвигается).- Parameters:
product-time-customer-sync- нужна ли синхронизация (не нужна, если MW активировало уже и вызвало этот метод)- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
productDeactivate
@RequestWrapper(className="ru.bitel.oss.systems.order.product.common.jaxws.ProductDeactivateOldRequest") @ResponseWrapper(className="ru.bitel.oss.systems.order.product.common.jaxws.ProductDeactivateOldResponse") @Deprecated void productDeactivate(int contractId, int productId, Date time, boolean customer, boolean sync) throws ru.bitel.bgbilling.common.BGException Deprecated.- Throws:
ru.bitel.bgbilling.common.BGException
-
productDeactivate
void productDeactivate(int contractId, int productId, Date time, boolean customer, boolean sync, boolean now) throws ru.bitel.bgbilling.common.BGException Деактивация продукта.- Parameters:
contractId-productId-time-customer- метод вызывает абонент или нетsync- нужно ли вызывать синхронизацию - не нужно, если MW синхронизирует само, т.е. вызов инициирован со стороны MW.now- нужно ли установить временем окончания time, т.е. не учитываем правила деактивации до конца оплаченного периода- Throws:
ru.bitel.bgbilling.common.BGException
-
productReactivate
void productReactivate(int contractId, int productId, boolean sync) throws ru.bitel.bgbilling.common.BGException Реактивация продукта возможна в том случае, если продукт был деактивирован, но при этом product.timeTo еще меньше текущего времени.- Parameters:
contractId-productId-sync-- Throws:
ru.bitel.bgbilling.common.BGException
-
productOfferingGet
ProductOffering productOfferingGet(Integer moduleId, int contractId, int accountId, int productSpecId, int activationModeId, Date time, boolean availableOnly, boolean customer) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
activeProductList
List<Product> activeProductList(int contractId, int accountId, Date time) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
adjustProductPeriod
void adjustProductPeriod(Product product, ProductSpecActivationMode activationMode, boolean timeFromSet) -
isAllowProductActivate
void isAllowProductActivate(int moduleId, int contractId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
validateActivationTime
-