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 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

      Optional<WeChatPayPaymentTransactionModel> findTransactionByWeChatPayCode(String weChatPayCode)
      Get WeChatPayPaymentTransaction by WeChatPayCode
      Parameters:
      WeChatPayCode - The WeChatPayCode of the wanted WeChatPayPaymentTransactionModel
      Returns:
      WeChatPayPaymentTransactionModel if found and an empty Optional otherwise