public interface OrderService
| Modifier and Type | Method and Description |
|---|---|
void |
deleteOrder(int orderId)
Удалит заказ
|
java.util.List<Component> |
getComponentItems(int copyId,
boolean showHidden,
boolean customer) |
java.math.BigDecimal |
getCostComponent(java.lang.String componentName,
int count,
int copyId)
Вернет стоимость соответсвующего компонента
|
java.lang.Integer |
getCountOrderedComponents(java.lang.String componentName,
int copyId)
Вернет кол-во заказанных, подтвержденных.
|
java.util.List<NewPermanentOrder> |
getNewPermanentOrders(int copyId)
Получим список постоянных заказов со статусом новый.
|
java.util.List<NewTestOrder> |
getNewTestOrders(int copyId)
Получим список тестовых заказов со статусом новый.
|
Order |
getOrder(int orderId)
Вернет заказ
|
java.util.List<Order> |
getOrders(int copyId,
java.lang.String testFilter,
java.lang.String permanentFilter,
int componentFilter)
Если все 3 фильтра незначимые (filterPermanentStatus=null ,filterTestStatus=null ,filterComponentItemId=-1 ), то выведит все заказы.
|
java.util.List<Order> |
getOrdersList(int copyId,
int type,
int status,
int componentId) |
int |
orderCreate(int contractId,
Order order,
boolean customer) |
java.util.List<OrderBillData> |
ordersBillDataList(int contractId,
int copyId,
java.util.Set<java.lang.Integer> orderIds)
Получение списка данных (общее/добавленное кол-во, стоимость) по заказам.
|
void |
ordersCopy(int contractId,
int copyId,
java.util.Set<java.lang.Integer> orderIds,
int term)
Копирование новых постоянных заказов в тестовые.
|
void |
ordersDelete(int contractId,
int copyId,
java.util.Set<java.lang.Integer> orderIds)
Удаление заказов.
|
void |
updateOrder(Order order)
Создает или изменяет существующий заказ.
|
java.util.List<Order> getOrders(int copyId, java.lang.String testFilter, java.lang.String permanentFilter, int componentFilter) throws ru.bitel.bgbilling.common.BGException
copyId - testFilter - - фильтр для "тестовых" заказов в виде 0,1,3 или 3,1 или 0 , где в скобках соответсвующий id (0-новый , 1-отказано, 3 -подтвержден).
Если передать null или пустую строку, фильтр не будет выводить "тестовые" заказы.permanentFilter - - фильтр для "постоянных" заказов в виде 0,1,2 или 2,1 или 0 , где в скобках соответсвующий id (0-новый , 1-отказано, 2 -выполнен).
Если передать null или пустую строку, фильтр не будет выводить "постоянные" заказы.componentFilter - - id компонента, фильтр по компоненту ну там id email или id ipn или id npay ну и т.д. или -1 если фильтр по нему не нужен.ru.bitel.bgbilling.common.BGExceptionjava.util.List<Order> getOrdersList(int copyId, int type, int status, int componentId) throws ru.bitel.bgbilling.common.BGException
copyId - - код продуктаtype - - тип, Тестовый - 0, Постоянный - 1. Все - <1status - - статус, Новый - 0, Отказано - 1, Подтвержденные(тестовые) и Постоянные( не тестовые) - 2. Все - <1componentId - - ид компонента. Все - <1ru.bitel.bgbilling.common.BGExceptionOrder getOrder(int orderId) throws ru.bitel.bgbilling.common.BGException
orderId - ид заказаru.bitel.bgbilling.common.BGExceptionvoid updateOrder(Order order) throws ru.bitel.bgbilling.common.BGException
order - - заказ, в случае когда order.id == 0 создает заказru.bitel.bgbilling.common.BGExceptionvoid deleteOrder(int orderId)
throws ru.bitel.bgbilling.common.BGException,
ru.bitel.bgbilling.common.BGMessageException
orderId - ид заказаru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionjava.util.List<Component> getComponentItems(int copyId, boolean showHidden, boolean customer) throws ru.bitel.bgbilling.common.BGException
ru.bitel.bgbilling.common.BGExceptionjava.math.BigDecimal getCostComponent(java.lang.String componentName,
int count,
int copyId)
throws ru.bitel.bgbilling.common.BGException
componentName - - название компонентаcount - - кол-во элементовcontractId - - номер договораru.bitel.bgbilling.common.BGExceptionjava.lang.Integer getCountOrderedComponents(java.lang.String componentName,
int copyId)
throws ru.bitel.bgbilling.common.BGException
componentName - - название компонентаcopyId - - код копии продуктаru.bitel.bgbilling.common.BGExceptionjava.util.List<NewPermanentOrder> getNewPermanentOrders(int copyId) throws ru.bitel.bgbilling.common.BGException
copyId - код копии продуктаru.bitel.bgbilling.common.BGExceptionjava.util.List<NewTestOrder> getNewTestOrders(int copyId) throws ru.bitel.bgbilling.common.BGException
copyId - код копии продуктаru.bitel.bgbilling.common.BGExceptionint orderCreate(int contractId,
Order order,
boolean customer)
throws ru.bitel.bgbilling.common.BGException,
ru.bitel.bgbilling.common.BGMessageException,
ru.bitel.bgbilling.common.BGIllegalArgumentException
ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentExceptionvoid ordersCopy(int contractId,
int copyId,
java.util.Set<java.lang.Integer> orderIds,
int term)
throws ru.bitel.bgbilling.common.BGException,
ru.bitel.bgbilling.common.BGMessageException,
ru.bitel.bgbilling.common.BGIllegalArgumentException
contractId - copyId - orderIds - term - ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentExceptionvoid ordersDelete(int contractId,
int copyId,
java.util.Set<java.lang.Integer> orderIds)
throws ru.bitel.bgbilling.common.BGException,
ru.bitel.bgbilling.common.BGMessageException,
ru.bitel.bgbilling.common.BGIllegalArgumentException
contractId - copyId - orderIds - term - ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentExceptionjava.util.List<OrderBillData> ordersBillDataList(int contractId, int copyId, java.util.Set<java.lang.Integer> orderIds) throws ru.bitel.bgbilling.common.BGException, ru.bitel.bgbilling.common.BGMessageException, ru.bitel.bgbilling.common.BGIllegalArgumentException
contractId - orderIds - ru.bitel.bgbilling.common.BGExceptionru.bitel.bgbilling.common.BGMessageExceptionru.bitel.bgbilling.common.BGIllegalArgumentException