Interface OmsOrderFacade

    • Method Detail

      • getOrders

        SearchPageData<OrderData> getOrders​(PageableData pageableData)
        API to get all orders in the system
        Parameters:
        pageableData - pageable object that contains info on the number or pages and how many items in each page in addition the sorting info
        Returns:
        SearchPageData that contains a list of orders
      • getOrderForCode

        OrderData getOrderForCode​(java.lang.String orderCode)
        API to get an order by it's code
        Parameters:
        orderCode - the order's code
        Returns:
        the order
      • getOrdersByStatuses

        SearchPageData<OrderData> getOrdersByStatuses​(PageableData pageableData,
                                                      java.util.Set<OrderStatus> orderStatusSet)
        API to get all orders in the system that have certain status(es)
        Parameters:
        pageableData - pageable object that contains info on the number or pages and how many items in each page in addition the sorting info
        orderStatusSet - set of order status(s) in which we want to get list of orders for
        Returns:
        SearchPageData that contains a list of orders that complies with passed order status(es)
      • getOrderStatuses

        java.util.List<OrderStatus> getOrderStatuses()
        API to get all order statuses
        Returns:
        a list of OrderStatus
      • getOrderEntriesForOrderCode

        SearchPageData<OrderEntryData> getOrderEntriesForOrderCode​(java.lang.String orderCode,
                                                                   PageableData pageableData)
        API to get orderEntries for the given AbstractOrderModel.CODE
        Parameters:
        orderCode - the order's code
        pageableData - pageable object that contains info on the number or pages and how many items in each page in addition the sorting info
        Returns:
        SearchPageData that contains a list of the orderEntries for the given order
      • getOrderEntryForOrderCodeAndEntryNumber

        OrderEntryData getOrderEntryForOrderCodeAndEntryNumber​(java.lang.String orderCode,
                                                               java.lang.Integer entryNumber)
        API to get an orderEntry by it's entryNumber and its order's code
        Parameters:
        orderCode - the order's code
        entryNumber - the order entry's number
        Returns:
        the order entry
      • getOrderFraudReports

        java.util.List<FraudReportData> getOrderFraudReports​(java.lang.String orderCode)
        API to get an order's fraud reports
        Parameters:
        orderCode - code of the order for which to get the fraud reports
        Returns:
        a list of fraud reports
      • approvePotentiallyFraudulentOrder

        void approvePotentiallyFraudulentOrder​(java.lang.String orderCode)
        API to approve a potentially fraudulent order
        Parameters:
        orderCode - code of the order for which to approve the fraud check
      • rejectPotentiallyFraudulentOrder

        void rejectPotentiallyFraudulentOrder​(java.lang.String orderCode)
        API to reject a potentially fraudulent order
        Parameters:
        orderCode - code of the order for which to reject the fraud check
      • getCancelReasons

        java.util.List<CancelReason> getCancelReasons()
        API to get all order cancel reasons
        Returns:
        a list of CancelReason
      • manuallyReleasePaymentVoid

        void manuallyReleasePaymentVoid​(java.lang.String orderCode)
        API to manually release void payment in waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE
      • manuallyReleaseTaxVoid

        void manuallyReleaseTaxVoid​(java.lang.String orderCode)
        API to manually release void tax in waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE
      • manuallyReleaseTaxCommit

        void manuallyReleaseTaxCommit​(java.lang.String orderCode)
        API to manually commit tax and release OrderModel from waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE
      • manuallyReleaseTaxRequote

        void manuallyReleaseTaxRequote​(java.lang.String orderCode)
        API to manually requote tax and release OrderModel from waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE
      • manuallyReleasePaymentReauth

        void manuallyReleasePaymentReauth​(java.lang.String orderCode)
        API to manually reauth payment and release OrderModel from waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE
      • manuallyReleaseDeliveryCostCommit

        void manuallyReleaseDeliveryCostCommit​(java.lang.String orderCode)
        API to manually commit delivery cost taxes and release OrderModel from waiting step.
        Parameters:
        orderCode - the AbstractOrderModel.CODE