mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 20:23:43 +08:00
fix: include client columns in payment attempts response struct (#4761)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -630,6 +630,10 @@ pub struct PaymentAttemptResponse {
|
|||||||
pub unified_code: Option<String>,
|
pub unified_code: Option<String>,
|
||||||
/// error message unified across the connectors is received here if there was an error while calling connector
|
/// error message unified across the connectors is received here if there was an error while calling connector
|
||||||
pub unified_message: Option<String>,
|
pub unified_message: Option<String>,
|
||||||
|
/// Value passed in X-CLIENT-SOURCE header during payments confirm request by the client
|
||||||
|
pub client_source: Option<String>,
|
||||||
|
/// Value passed in X-CLIENT-VERSION header during payments confirm request by the client
|
||||||
|
pub client_version: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(
|
#[derive(
|
||||||
|
|||||||
@ -933,6 +933,8 @@ impl ForeignFrom<storage::PaymentAttempt> for payments::PaymentAttemptResponse {
|
|||||||
reference_id: payment_attempt.connector_response_reference_id,
|
reference_id: payment_attempt.connector_response_reference_id,
|
||||||
unified_code: payment_attempt.unified_code,
|
unified_code: payment_attempt.unified_code,
|
||||||
unified_message: payment_attempt.unified_message,
|
unified_message: payment_attempt.unified_message,
|
||||||
|
client_source: payment_attempt.client_source,
|
||||||
|
client_version: payment_attempt.client_version,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -12587,6 +12587,16 @@
|
|||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "error message unified across the connectors is received here if there was an error while calling connector",
|
"description": "error message unified across the connectors is received here if there was an error while calling connector",
|
||||||
"nullable": true
|
"nullable": true
|
||||||
|
},
|
||||||
|
"client_source": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Value passed in X-CLIENT-SOURCE header during payments confirm request by the client",
|
||||||
|
"nullable": true
|
||||||
|
},
|
||||||
|
"client_version": {
|
||||||
|
"type": "string",
|
||||||
|
"description": "Value passed in X-CLIENT-VERSION header during payments confirm request by the client",
|
||||||
|
"nullable": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in New Issue
Block a user