@@ -254,7 +254,7 @@ fn display_solver_dispute_info(dispute_info: &mostro_core::dispute::SolverDisput
254254
255255 // Basic dispute information
256256 rows. push ( Row :: from ( vec ! [
257- Cell :: new( "🆔 Dispute ID" ) ,
257+ Cell :: new( "📋 Order ID: " ) ,
258258 Cell :: new( dispute_info. id. to_string( ) ) ,
259259 ] ) ) ;
260260 rows. push ( Row :: from ( vec ! [
@@ -589,12 +589,14 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
589589 print_success_message ( "Trade index synchronized successfully!" ) ;
590590 }
591591 }
592- Err ( _) => return Err ( anyhow:: anyhow!( "Failed to get user" ) ) ,
592+ Err ( _) => {
593+ println ! ( "⚠️ Warning: Last trade index but received unexpected payload structure: {:#?}" , message. payload) ;
594+ }
593595 }
594- Ok ( ( ) )
595596 } else {
596- Err ( anyhow :: anyhow !( "No trade index found in message" ) )
597+ println ! ( "⚠️ Warning: Last trade index but received unexpected payload structure: {:#?}" , message . payload ) ;
597598 }
599+ Ok ( ( ) )
598600 }
599601 Action :: DisputeInitiatedByYou => {
600602 if let Some ( Payload :: Dispute ( dispute_id, _) ) = & message. payload {
@@ -627,6 +629,22 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
627629 Ok ( ( ) )
628630 }
629631 }
632+ Action :: HoldInvoicePaymentAccepted => {
633+ if let Some ( order_id) = & message. id {
634+ println ! ( "🎉 Hold Invoice Payment Accepted" ) ;
635+ println ! ( "═══════════════════════════════════════" ) ;
636+ println ! ( "📋 Order ID: {}" , order_id) ;
637+ println ! ( "✅ Hold invoice payment accepted successfully!" ) ;
638+ println ! ( "💰 Bitcoin has been released to the buyer" ) ;
639+ println ! ( "🎊 Trade completed successfully!" ) ;
640+ Ok ( ( ) )
641+ } else {
642+ println ! (
643+ "⚠️ Warning: Hold invoice payment accepted but received unexpected payload structure"
644+ ) ;
645+ Ok ( ( ) )
646+ }
647+ }
630648 Action :: HoldInvoicePaymentSettled | Action :: Released => {
631649 println ! ( "🎉 Payment Settled & Released" ) ;
632650 println ! ( "═══════════════════════════════════════" ) ;
@@ -638,10 +656,13 @@ pub async fn print_commands_results(message: &MessageKind, ctx: &Context) -> Res
638656 Action :: Orders => {
639657 if let Some ( Payload :: Orders ( orders) ) = & message. payload {
640658 handle_orders_list_display ( orders) ;
641- Ok ( ( ) )
642659 } else {
643- Err ( anyhow:: anyhow!( "No orders payload found in message" ) )
660+ println ! (
661+ "⚠️ Warning: Orders list but received unexpected payload structure: {:#?}" ,
662+ message. payload
663+ ) ;
644664 }
665+ Ok ( ( ) )
645666 }
646667 Action :: AdminTookDispute => {
647668 if let Some ( Payload :: Dispute ( _, Some ( dispute_info) ) ) = & message. payload {
0 commit comments