mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 00:49:42 +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>,
|
||||
/// error message unified across the connectors is received here if there was an error while calling connector
|
||||
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(
|
||||
|
||||
@ -933,6 +933,8 @@ impl ForeignFrom<storage::PaymentAttempt> for payments::PaymentAttemptResponse {
|
||||
reference_id: payment_attempt.connector_response_reference_id,
|
||||
unified_code: payment_attempt.unified_code,
|
||||
unified_message: payment_attempt.unified_message,
|
||||
client_source: payment_attempt.client_source,
|
||||
client_version: payment_attempt.client_version,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -12587,6 +12587,16 @@
|
||||
"type": "string",
|
||||
"description": "error message unified across the connectors is received here if there was an error while calling connector",
|
||||
"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