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:
Vrishab Srivatsa
2024-05-28 15:55:29 +05:30
committed by GitHub
parent 7645edfa2e
commit d686ec7acd
3 changed files with 16 additions and 0 deletions

View File

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

View File

@ -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,
} }
} }
} }

View File

@ -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
} }
} }
}, },