Interface NPayService
public interface NPayService
-
Method Summary
Modifier and TypeMethodDescriptionvoidaccountClear(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet) List<ru.bitel.bgbilling.common.model.KeyValue> Параметры конфигурацииvoidconfigValueUpdate(List<ru.bitel.bgbilling.common.model.KeyValue> keyValues) Сохранение параметров конфигурацииgetAmountForUnlock(int contractId) Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.Список наборов для дебитовых договоров (модульные набор аккаунтов).Список наборов для тарифов (модульные наборы услуг).precalculateAccount(int contractId, int serviceSet, Date dateFrom, Date dateTo, int status) Вычисление будущей наработки для определения рекомендуемого платежа.voidrecalculatePay(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet, boolean detail, String comment, String email) serviceObjectChangeLog(int contractId, int serviceObjectId) voidserviceObjectDelete(int contractId, int serviceId) serviceObjectGet(int id) voidserviceObjectGroupOperation(String type, List<Integer> contractIds, List<Integer> serviceIds, BigDecimal amount, Date dateFrom, Date dateTo) Групповая операция над абонплатами: добавление (add) или прерывание (wrap).serviceObjectList(int contractId, int objectId, int entityModuleId, int entityId, boolean hiddenClosed) voidserviceObjectMove(int id, int contractId, int contractIdTo) Перенос абонплаты на другой договор.voidserviceObjectUpdate(int contractId, ServiceObject serviceObject) voidserviceObjectWrap(int id, int contractId, int contractIdTo, Date dateFrom) Перенос абонплаты на другой договор с даты (разрыв).serviceSetGet(int parseInt) Boolean[][]serviceStatusMatrixGet(List<Integer> serviceIds, List<Integer> statusIds, boolean replaceDefaultToValue) void
-
Method Details
-
precalculateAccount
BigDecimal precalculateAccount(int contractId, int serviceSet, Date dateFrom, Date dateTo, int status) throws ru.bitel.bgbilling.common.BGException Вычисление будущей наработки для определения рекомендуемого платежа.- Parameters:
contractId- ID договора.serviceSet- набор услуг модуля.dateFrom- дата начала активности договора (должна быть в одном месяце с dateTo).dateTo- дата окончания активности договора (должна быть в одном месяце с dateFrom).- Returns:
-
getAmountForUnlock
Для заблокированных дебетовых договоров возвращает сумму платежа необходимого для разблокировки.- Parameters:
contractId- ID договора.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectList
List<ServiceObject> serviceObjectList(int contractId, int objectId, int entityModuleId, int entityId, boolean hiddenClosed) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectUpdate
void serviceObjectUpdate(int contractId, ServiceObject serviceObject) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectChangeLog
List<ServiceObject> serviceObjectChangeLog(int contractId, int serviceObjectId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectDelete
void serviceObjectDelete(int contractId, int serviceId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectMove
void serviceObjectMove(int id, int contractId, int contractIdTo) throws ru.bitel.bgbilling.common.BGException Перенос абонплаты на другой договор.- Parameters:
id- ID абонплаты.contractId- ID договора, с которого переносится абонплата.contractIdTo- ID договора, на который переносится абонплата.- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectWrap
void serviceObjectWrap(int id, int contractId, int contractIdTo, Date dateFrom) throws ru.bitel.bgbilling.common.BGException Перенос абонплаты на другой договор с даты (разрыв).- Parameters:
id- ID абонплаты.contractId- ID договора, с которого переносится абонплата.contractIdTo- ID договора, на который переносится абонплата.dateFrom- дата, с которой переносится абонплата.- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceObjectGroupOperation
void serviceObjectGroupOperation(String type, List<Integer> contractIds, List<Integer> serviceIds, BigDecimal amount, Date dateFrom, Date dateTo) throws ru.bitel.bgbilling.common.BGException Групповая операция над абонплатами: добавление (add) или прерывание (wrap).- Parameters:
type- тип операции: "add" - добавление, "wrap" - прерывание.contractIds- ID договоров, к которым применяется операция.serviceIds- ID услуг (абонплат), к которым применяется операция.amount- количество (только для type = "add").dateFrom- дата начала (только для type = "add" обязательна).dateTo- дата окончания (опционально).- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceStatusMatrixGet
Boolean[][] serviceStatusMatrixGet(List<Integer> serviceIds, List<Integer> statusIds, boolean replaceDefaultToValue) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceStatusMatrixUpdate
void serviceStatusMatrixUpdate(List<Integer> serviceIds, List<Integer> statusIds, Boolean[][] values) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
serviceSetGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
serviceSetList
- Throws:
ru.bitel.bgbilling.common.BGException
-
moduleAccountList
Список наборов для дебитовых договоров (модульные набор аккаунтов).- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
moduleAmountList
Список наборов для тарифов (модульные наборы услуг).- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
configValueList
List<ru.bitel.bgbilling.common.model.KeyValue> configValueList() throws ru.bitel.bgbilling.common.BGExceptionПараметры конфигурации- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
configValueUpdate
void configValueUpdate(List<ru.bitel.bgbilling.common.model.KeyValue> keyValues) throws ru.bitel.bgbilling.common.BGException Сохранение параметров конфигурации- Parameters:
keyValues-- Throws:
ru.bitel.bgbilling.common.BGException
-
accountClear
void accountClear(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
recalculatePay
void recalculatePay(Period period, List<Integer> contractIds, List<Integer> contractLabelIds, int serviceSet, boolean detail, String comment, String email) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-