Interface B2BOrderFacade
-
- All Superinterfaces:
OrderFacade
- All Known Implementing Classes:
DefaultB2BOrderFacade,SapCreditCheckB2BOrderFacade,SapOrdermgmtB2BOrderFacade
public interface B2BOrderFacade extends OrderFacade
Interface responsible for B2B order services.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description voidaddAdditionalComment(java.lang.String orderCode, java.lang.String comment)Add a comment to an order.voidcancelOrder(java.lang.String orderCode, java.lang.String comment)Cancels an order.voidcancelReplenishment(java.lang.String jobCode, java.lang.String user)Stops the order replenishment process.voidcreateAndSetNewOrderFromApprovedQuote(java.lang.String orderCode, java.lang.String comment)Deprecated.Since 6.3.voidcreateAndSetNewOrderFromNegotiateQuote(java.lang.String orderCode, java.lang.String comment)Deprecated.Since 6.3.voidcreateAndSetNewOrderFromRejectedQuote(java.lang.String orderCode)Deprecated.Since 6.3.B2BOrderApprovalDatagetOrderApprovalDetailsForCode(java.lang.String code)Retrieves the approval details of a specific order codejava.util.List<B2BOrderHistoryEntryData>getOrderHistoryEntryData(java.lang.String orderCode)Retrieves the history entry data of an order.java.util.List<B2BOrderApprovalData>getOrdersForApproval()Retrieves the order list for approval dashboardSearchPageData<B2BOrderApprovalData>getPagedOrdersForApproval(WorkflowActionType[] actionTypes, PageableData pageableData)Retrieves the order list for approval with configurable parameters.SearchPageData<ScheduledCartData>getPagedReplenishmentHistory(PageableData pageableData)Retrieves replenishment cron jobs associated to the session user with paging supportSearchPageData<? extends OrderHistoryData>getPagedReplenishmentOrderHistory(java.lang.String jobCode, PageableData pageableData)Retrieves all the scheduled order for a given jobCode with configurable parameters.java.util.List<ScheduledCartData>getReplenishmentHistory()Retrieves replenishment cron jobs associated to the session user.ScheduledCartDatagetReplenishmentOrderDetailsForCode(java.lang.String code, java.lang.String user)Gets the schedule Cart Data for replenishment given a code.java.util.List<? extends OrderHistoryData>getReplenishmentOrderHistory(java.lang.String jobCode, java.lang.String user)Retrieves all the scheduled order for a given jobCode.B2BOrderApprovalDatasetOrderApprovalDecision(B2BOrderApprovalData b2bOrderApprovalData)Sets the order approval decision to the workflow.-
Methods inherited from interface de.hybris.platform.commercefacades.order.OrderFacade
getOrderDetailsForCode, getOrderDetailsForCodeWithoutUser, getOrderDetailsForGUID, getOrderHistoryForStatuses, getPagedOrderHistoryForStatuses
-
-
-
-
Method Detail
-
getReplenishmentOrderDetailsForCode
ScheduledCartData getReplenishmentOrderDetailsForCode(java.lang.String code, java.lang.String user)
Gets the schedule Cart Data for replenishment given a code.- Parameters:
code- unique job identifieruser- a customer assigned to the cart- Returns:
for given code and user
-
getReplenishmentHistory
java.util.List<ScheduledCartData> getReplenishmentHistory()
Retrieves replenishment cron jobs associated to the session user.- Returns:
- the replenishment order history.
-
getPagedReplenishmentHistory
SearchPageData<ScheduledCartData> getPagedReplenishmentHistory(PageableData pageableData)
Retrieves replenishment cron jobs associated to the session user with paging support- Parameters:
pageableData- the pagination information (PageableData)- Returns:
- the replenishment order history.
-
cancelReplenishment
void cancelReplenishment(java.lang.String jobCode, java.lang.String user)Stops the order replenishment process.- Parameters:
jobCode- unique code for the replenishment cron job.user- customer assigned to the cart
-
getReplenishmentOrderHistory
java.util.List<? extends OrderHistoryData> getReplenishmentOrderHistory(java.lang.String jobCode, java.lang.String user)
Retrieves all the scheduled order for a given jobCode.- Parameters:
jobCode- a cron job codeuser- a customer assigned to the cart- Returns:
- orders associated to a schedule job.
-
getOrdersForApproval
java.util.List<B2BOrderApprovalData> getOrdersForApproval()
Retrieves the order list for approval dashboard- Returns:
- all orders pending approval
-
getPagedOrdersForApproval
SearchPageData<B2BOrderApprovalData> getPagedOrdersForApproval(WorkflowActionType[] actionTypes, PageableData pageableData)
Retrieves the order list for approval with configurable parameters.- Parameters:
actionTypes- the action typespageableData- the pagination information- Returns:
- all orders pending approval
-
getOrderApprovalDetailsForCode
B2BOrderApprovalData getOrderApprovalDetailsForCode(java.lang.String code)
Retrieves the approval details of a specific order code- Parameters:
code- the order code.- Returns:
- the B2B order approval data
-
setOrderApprovalDecision
B2BOrderApprovalData setOrderApprovalDecision(B2BOrderApprovalData b2bOrderApprovalData)
Sets the order approval decision to the workflow.- Parameters:
b2bOrderApprovalData- the approval comments and decision action.- Returns:
- the B2B order approval data
-
getPagedReplenishmentOrderHistory
SearchPageData<? extends OrderHistoryData> getPagedReplenishmentOrderHistory(java.lang.String jobCode, PageableData pageableData)
Retrieves all the scheduled order for a given jobCode with configurable parameters.- Parameters:
jobCode- unique code for the replenishment cron job.pageableData- the pagination information- Returns:
- a list of scheduled orders
-
getOrderHistoryEntryData
java.util.List<B2BOrderHistoryEntryData> getOrderHistoryEntryData(java.lang.String orderCode)
Retrieves the history entry data of an order.- Parameters:
orderCode- the unique code of an order.- Returns:
- a list of history entries.
-
createAndSetNewOrderFromRejectedQuote
@Deprecated(since="6.3") void createAndSetNewOrderFromRejectedQuote(java.lang.String orderCode)
Deprecated.Since 6.3. Use quote functionality from commerce instead. (QuoteFacade).
Creates an order from a rejected quote.- Parameters:
orderCode- the unique code of an order.
-
createAndSetNewOrderFromNegotiateQuote
@Deprecated(since="6.3") void createAndSetNewOrderFromNegotiateQuote(java.lang.String orderCode, java.lang.String comment)Deprecated.Since 6.3. Use quote functionality from commerce instead. (QuoteFacade).
Creates an order from a negotiate quote.- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
createAndSetNewOrderFromApprovedQuote
@Deprecated(since="6.3") void createAndSetNewOrderFromApprovedQuote(java.lang.String orderCode, java.lang.String comment)Deprecated.Since 6.3. Use quote functionality from commerce instead. (QuoteFacade).
Creates an order from an approved quote.- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
cancelOrder
void cancelOrder(java.lang.String orderCode, java.lang.String comment)Cancels an order.- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
addAdditionalComment
void addAdditionalComment(java.lang.String orderCode, java.lang.String comment)Add a comment to an order.- Parameters:
orderCode- the unique code of an order.comment- comment string.
-
-