Interface WeChatPayPaymentTransactionDao
- All Superinterfaces:
GenericDao<WeChatPayPaymentTransactionModel>
- All Known Implementing Classes:
DefaultWeChatPayPaymentTransactionDao
public interface WeChatPayPaymentTransactionDao
extends GenericDao<WeChatPayPaymentTransactionModel>
Provide method to find WeChatPay Payment Transaction with given params
-
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 WeChatPayCode
-
Method Details
-
findTransactionByLatestRequestEntry
Optional<WeChatPayPaymentTransactionModel> findTransactionByLatestRequestEntry(OrderModel orderModel, boolean limit) Get 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.- Parameters:
orderModel- The order contains the WeChatPayPaymentTransactionModel- Returns:
- WeChatPayPaymentTransactionModel if found and an empty Optional otherwise
-
findTransactionByWeChatPayCode
Get WeChatPayPaymentTransaction by WeChatPayCode- Parameters:
WeChatPayCode- The WeChatPayCode of the wanted WeChatPayPaymentTransactionModel- Returns:
- WeChatPayPaymentTransactionModel if found and an empty Optional otherwise
-