Interface BillService
- All Superinterfaces:
LoggableService
-
Method Summary
Modifier and TypeMethodDescriptionvoidattributeDelete(int contractId, int attributeId) Удаление реквизита договора.attributeList(int contractId) Получить список реквизитов договора.voidattributeTypeDelete(int attributeTypeId) Удаление типа реквизита.Получение типов реквизитов.voidattributeTypeUpdate(AttributeType attributeType) Обновление(id>0)/создание(id<=0) типа реквизита договора.voidattributeUpdate(int contractId, Attribute attribute) Обновление(id>0)/создание(id<=0) реквизита договора.Список банковских счетов, которые могут быть указаны в счете.intbillDocumentCreate(int contractId, int documentSpecId, int bankAccountId, int year, int month, List<DocumentPosition> documentPositionList) Создание счетаvoidbillDocumentDelete(int contractId, int id, boolean customer) Удаление счета.ru.bitel.bgbilling.common.dto.FileDtobillDocumentDownload(int contractId, int id) Получение счета в формате PDF.billDocumentListForContract(int contractId, Page page) Получение списка счетов для договораvoiddeleteBankAccount(int bankAccountId) voiddeleteOrganization(int organizationId) voiddocTypeDelete(int id) docTypeGet(int id) docTypeList(DocumentType documentType) docTypeListForContract(int contractId, DocumentType documentType) docTypeTitles(int contractId, DocumentType documentType) voiddocTypeUpdate(DocType dt) documentSpecListForCustomer(int contractId) Список разрешенных типов документов для договора, которые клиент/абонент может создать.getBankAccount(int bankAccountId) getBankAccountList(int organizationId, Boolean inUse) getBankAccountTitleList(int contractId, int organizationId, Boolean inUse, jakarta.xml.ws.Holder<Integer> selectedItemId) Список доступных банковских счетов из справочника банковgetDefaultBankAccount(int organizationId) getOrganization(int organizationId) getOrganizationTitleList(int contractId, Boolean inUse, jakarta.xml.ws.Holder<Integer> selectedId) ru.bitel.bgbilling.common.dto.FileDtoinvoiceDocumentDownload(int contractId, int id) Получение счёт-фактуры в формате PDF.invoiceDocumentListForContract(int contractId, boolean onlyReady, Page page) Получение списка счёт-фактурvoidnumerationPoolDelete(int id) numerationPoolGet(int id) voidnumerationPoolUpdate(NumerationPool numerationPool) voidpositionDataDelete(BillPositionType billPositionType, String key) voidpositionDataUpdate(BillPositionType billPositionType, String positionData) booleanpositionDelete(DocumentType documentType, int positionId) positionGet(DocumentType documentType, int positionId) positionList(DocumentType documentType) positionSearch(BillPositionType billPositionType, Page page) positionUpdate(DocumentType documentType, Position position) searchPositionList(DocumentType documentType, Page page) voidsendDocs(DocumentSendParameters senderTaskParameters) Рассылает указанные документы по соответствующим договорам.voidsendDocsForAll(DocumentSendParameters senderTaskParameters) Рассылает документы с компоновкой.voidsetBankAccount(int contractId, int selectedBabkAccountId) Банковский Счет для договора по умолчаниюvoidsetDefaultBankAccount(BankAccount bankAccount) voidsetDefaultOrganization(int organizationId) voidsetOrganization(int contractId, int selectedOrganizationId) templateDocumentPositionList(int contractId, int documentSpecId, int year, int month) Список шаблонов-позиций документа для создания счета клиентом/абонентом.voidupdateBankAccount(BankAccount bankAccount) voidupdateOrganization(Organization organization) Получить структуру возможной XML-ки.
На данный момент она содержит все модули и плагины.Methods inherited from interface ru.bitel.common.model.LoggableService
logList
-
Method Details
-
billDocumentListForContract
Result<BillDocument> billDocumentListForContract(int contractId, Page page) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Получение списка счетов для договора- Parameters:
contractId- ID договораpage- страница- Returns:
- объект result = { list + page }
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
billDocumentDelete
void billDocumentDelete(int contractId, int id, boolean customer) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Удаление счета. Если customer=true, то удаление возможно только в том случае, если счет был создан клиентом (uid=-1) и счет не оплачен (status=0).- Parameters:
contractId- ID договораid- ID счетаcustomer- удаление клиентом/абонентом- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
documentSpecListForCustomer
List<DocType> documentSpecListForCustomer(int contractId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Список разрешенных типов документов для договора, которые клиент/абонент может создать. Типы документов должны быть добавлены в договор, а в конфиге модуля указан дополнительный фильтр allowed.web.bill.types- Parameters:
contractId- ID договора- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
bankAccountList
List<BankAccount> bankAccountList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentExceptionСписок банковских счетов, которые могут быть указаны в счете.- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
templateDocumentPositionList
List<DocumentPosition> templateDocumentPositionList(int contractId, int documentSpecId, int year, int month) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Список шаблонов-позиций документа для создания счета клиентом/абонентом.- Parameters:
contractId- ID договораdocumentSpecId- ID типа документаyear- годmonth- месяц (0 - январь)- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
billDocumentCreate
int billDocumentCreate(int contractId, int documentSpecId, int bankAccountId, int year, int month, List<DocumentPosition> documentPositionList) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Создание счета- Parameters:
contractId- ID договораdocumentSpecId- ID типа документаbankAccountId- ID банковского счета, который будет указан в счетеyear- годmonth- месяц (0 - январь)documentPositionList-- Returns:
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
billDocumentDownload
ru.bitel.bgbilling.common.dto.FileDto billDocumentDownload(int contractId, int id) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Получение счета в формате PDF.- Parameters:
contractId- ID договораid- ID счетаname- результат - имя файлаdata- результат - файл- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
invoiceDocumentListForContract
Result<InvoiceDocument> invoiceDocumentListForContract(int contractId, boolean onlyReady, Page page) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException Получение списка счёт-фактур- Parameters:
contractId- ID договораonlyReady- только готовыеpage- страница- Returns:
- объект result = { list + page }
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
invoiceDocumentDownload
ru.bitel.bgbilling.common.dto.FileDto invoiceDocumentDownload(int contractId, int id) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Получение счёт-фактуры в формате PDF.- Parameters:
contractId- ID договораid- ID счёт-фактуры- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException
-
getBankAccountList
List<BankAccount> getBankAccountList(int organizationId, Boolean inUse) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getDefaultBankAccount
- Throws:
ru.bitel.bgbilling.common.BGException
-
setDefaultBankAccount
- Throws:
ru.bitel.bgbilling.common.BGException
-
getBankAccountTitleList
List<IdTitle> getBankAccountTitleList(int contractId, int organizationId, Boolean inUse, jakarta.xml.ws.Holder<Integer> selectedItemId) throws ru.bitel.bgbilling.common.BGException Список доступных банковских счетов из справочника банков- Returns:
- Throws:
ru.bitel.bgbilling.common.BGException
-
setBankAccount
void setBankAccount(int contractId, int selectedBabkAccountId) throws ru.bitel.bgbilling.common.BGException Банковский Счет для договора по умолчанию- Parameters:
contractId-selectedBabkAccountId-- Throws:
ru.bitel.bgbilling.common.BGException
-
updateBankAccount
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteBankAccount
void deleteBankAccount(int bankAccountId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getBankAccount
- Throws:
ru.bitel.bgbilling.common.BGException
-
getOrganizationList
- Throws:
ru.bitel.bgbilling.common.BGException
-
getDefaultOrganization
- Throws:
ru.bitel.bgbilling.common.BGException
-
getOrganization
- Throws:
ru.bitel.bgbilling.common.BGException
-
updateOrganization
- Throws:
ru.bitel.bgbilling.common.BGException
-
deleteOrganization
void deleteOrganization(int organizationId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
setDefaultOrganization
void setDefaultOrganization(int organizationId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
getOrganizationTitleList
List<IdTitle> getOrganizationTitleList(int contractId, Boolean inUse, jakarta.xml.ws.Holder<Integer> selectedId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
setOrganization
void setOrganization(int contractId, int selectedOrganizationId) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
docTypeList
- Throws:
ru.bitel.bgbilling.common.BGException
-
docTypeListForContract
List<DocType> docTypeListForContract(int contractId, DocumentType documentType) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
docTypeGet
- Throws:
ru.bitel.bgbilling.common.BGException
-
docTypeUpdate
- Throws:
ru.bitel.bgbilling.common.BGException
-
docTypeDelete
void docTypeDelete(int id) throws ru.bitel.bgbilling.common.BGException - Throws:
ru.bitel.bgbilling.common.BGException
-
positionList
- Throws:
ru.bitel.bgbilling.common.BGException
-
xmlComposition
Получить структуру возможной XML-ки.
На данный момент она содержит все модули и плагины. А для договора заполняется в клиенте.- Returns:
- - map, в котором под кодом 1 - модули, 2 - плагины.
- Throws:
ru.bitel.bgbilling.common.BGException
-
searchPositionList
SearchResult<Position> searchPositionList(DocumentType documentType, Page page) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionGet
Position positionGet(DocumentType documentType, int positionId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionUpdate
Position positionUpdate(DocumentType documentType, Position position) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionDelete
boolean positionDelete(DocumentType documentType, int positionId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
sendDocsForAll
void sendDocsForAll(DocumentSendParameters senderTaskParameters) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Рассылает документы с компоновкой. Вызывается из просмотра документа - "разослать на почту"- Parameters:
senderTaskParameters- параметры для рассылки- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
sendDocs
void sendDocs(DocumentSendParameters senderTaskParameters) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Рассылает указанные документы по соответствующим договорам. Вызывается из меню "отослать на почту"- Parameters:
senderTaskParameters- параметры для рассылки- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeTypeList
List<AttributeType> attributeTypeList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageExceptionПолучение типов реквизитов.- Returns:
- - список типов реквизитов.
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeTypeUpdate
void attributeTypeUpdate(AttributeType attributeType) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Обновление(id>0)/создание(id<=0) типа реквизита договора.- Parameters:
attributeType- - тип реквизита.- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeTypeDelete
void attributeTypeDelete(int attributeTypeId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Удаление типа реквизита.- Parameters:
attributeTypeId- - код типа реквизита.- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeList
List<Attribute> attributeList(int contractId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Получить список реквизитов договора.- Parameters:
contractId- - код договора.- Returns:
- - список
- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeUpdate
void attributeUpdate(int contractId, Attribute attribute) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Обновление(id>0)/создание(id<=0) реквизита договора.- Parameters:
contractId- - код договора.attribute- - реквизит.- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
attributeDelete
void attributeDelete(int contractId, int attributeId) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException Удаление реквизита договора.- Parameters:
contractId- - код договора.attributeId- - код реквизита.- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionSearch
List<String> positionSearch(BillPositionType billPositionType, Page page) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionDataUpdate
void positionDataUpdate(BillPositionType billPositionType, String positionData) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
positionDataDelete
void positionDataDelete(BillPositionType billPositionType, String key) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
numerationPoolUpdate
void numerationPoolUpdate(NumerationPool numerationPool) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
numerationPoolDelete
void numerationPoolDelete(int id) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
numerationPoolGet
NumerationPool numerationPoolGet(int id) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException - Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
numerationPoolList
List<NumerationPool> numerationPoolList() throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException- Throws:
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageException
-
docTypeTitles
- Throws:
Exception
-
contractParameters
- Throws:
Exception
-