Interface CustomerAccountDao

    • Method Detail

      • findOrderByCustomerAndCodeAndStore

        OrderModel findOrderByCustomerAndCodeAndStore​(CustomerModel customerModel,
                                                      java.lang.String code,
                                                      BaseStoreModel store)
        Finds the specified order for the specified user in the current session's active catalog versions
        Parameters:
        customerModel - the customer
        code - the code representing the order
        store - The current store
        Returns:
        The order found
        Throws:
        ModelNotFoundException - if nothing was found
        AmbiguousIdentifierException - if by the given search params to many models where found
      • findOrderByGUIDAndStore

        OrderModel findOrderByGUIDAndStore​(java.lang.String guid,
                                           BaseStoreModel store,
                                           java.util.Date expiryDate)
        Finds the specified order for the specified user in the current session's active catalog versions
        Parameters:
        guid - the guid representing the order
        store - the current store
        expiryDate - Order expiration date
        Returns:
        the order
        Throws:
        ModelNotFoundException - if nothing was found
        AmbiguousIdentifierException - if by the given search params to many models where found
      • findOrdersByCustomerAndStore

        java.util.List<OrderModel> findOrdersByCustomerAndStore​(CustomerModel customerModel,
                                                                BaseStoreModel store,
                                                                OrderStatus[] status)
        Finds orders for the specified user in the current session's active catalog versions
        Parameters:
        customerModel - the customer
        store - The current store
        status - A list of order statuses to include in the result, if null or empty then all statuses are included
        Returns:
        The list of orders owned by the customer associated with the store
      • findOrdersByCustomerAndStore

        SearchPageData<OrderModel> findOrdersByCustomerAndStore​(CustomerModel customerModel,
                                                                BaseStoreModel store,
                                                                OrderStatus[] status,
                                                                PageableData pageableData)
        Finds orders for the specified user in the current session's active catalog versions
        Parameters:
        customerModel - the customer
        store - The current store
        status - A list of order statuses to include in the result, if null or empty then all statuses are included
        pageableData - The pagination data
        Returns:
        The list of orders owned by the customer associated with the store
      • findCreditCardPaymentInfosByCustomer

        java.util.List<CreditCardPaymentInfoModel> findCreditCardPaymentInfosByCustomer​(CustomerModel customerModel,
                                                                                        boolean saved)
        Retrieves the customer's list of credit card payment infos
        Parameters:
        customerModel - the customer
        saved - true to retrieve only saved credit card payment infos
        Returns:
        the list of credit card payment infos
      • findCreditCardPaymentInfoByCustomer

        CreditCardPaymentInfoModel findCreditCardPaymentInfoByCustomer​(CustomerModel customerModel,
                                                                       java.lang.String code)
        Retrieves the customer's credit card payment info
        Parameters:
        customerModel - the customer
        code - the code of the credit card payment info
        Returns:
        the credit card payment info
      • findOrderByCodeAndStore

        OrderModel findOrderByCodeAndStore​(java.lang.String code,
                                           BaseStoreModel store)
        Retrieves the order by order code and base store
        Parameters:
        code - order code
        store - store
        Returns:
        order details
      • findAddressBookDeliveryEntriesForCustomer

        java.util.List<AddressModel> findAddressBookDeliveryEntriesForCustomer​(CustomerModel customerModel,
                                                                               java.util.Collection<CountryModel> deliveryCountries)
        Find address book delivery entries for customer.
        Parameters:
        customerModel - the customer model
        deliveryCountries - the delivery countries
        Returns:
        the list of delivery address