Interface WeChatPayPaymentTransactionDao

    • Method Detail

      • findTransactionByLatestRequestEntry

        java.util.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

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