Class DefaultWeChatPayPaymentTransactionDao
java.lang.Object
de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao<WeChatPayPaymentTransactionModel>
de.hybris.platform.chinesepspwechatpayservices.dao.impl.DefaultWeChatPayPaymentTransactionDao
- All Implemented Interfaces:
WeChatPayPaymentTransactionDao,GenericDao<WeChatPayPaymentTransactionModel>
public class DefaultWeChatPayPaymentTransactionDao
extends DefaultGenericDao<WeChatPayPaymentTransactionModel>
implements WeChatPayPaymentTransactionDao
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfindTransactionByLatestRequestEntry(OrderModel orderModel, boolean limit) Get WeChatPayPaymentTransaction of the given order which satisfy these conditions: 1.findTransactionByWeChatPayCode(String weChatPayCode) Get WeChatPayPaymentTransaction by WeChatPayCodeMethods inherited from class de.hybris.platform.servicelayer.internal.dao.DefaultGenericDao
find, find, find, find, find, getFlexibleSearchService, setFlexibleSearchService
-
Constructor Details
-
DefaultWeChatPayPaymentTransactionDao
public DefaultWeChatPayPaymentTransactionDao()
-
-
Method Details
-
findTransactionByLatestRequestEntry
public Optional<WeChatPayPaymentTransactionModel> findTransactionByLatestRequestEntry(OrderModel orderModel, boolean limit) Description copied from interface:WeChatPayPaymentTransactionDaoGet WeChatPayPaymentTransaction of the given order which satisfy these conditions: 1. There is only one entry with type Request in this transaction. 2. This entry is the latest among all transactions' entries.- Specified by:
findTransactionByLatestRequestEntryin interfaceWeChatPayPaymentTransactionDao- Parameters:
orderModel- The order contains the WeChatPayPaymentTransactionModel- Returns:
- WeChatPayPaymentTransactionModel if found and an empty Optional otherwise
-
findTransactionByWeChatPayCode
public Optional<WeChatPayPaymentTransactionModel> findTransactionByWeChatPayCode(String weChatPayCode) Description copied from interface:WeChatPayPaymentTransactionDaoGet WeChatPayPaymentTransaction by WeChatPayCode- Specified by:
findTransactionByWeChatPayCodein interfaceWeChatPayPaymentTransactionDao- Returns:
- WeChatPayPaymentTransactionModel if found and an empty Optional otherwise
-