mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-27 19:46:48 +08:00
feat: scheme error code and messages in payments api response (#7528)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -5036,6 +5036,12 @@ pub struct PaymentsResponse {
|
||||
/// Method through which card was discovered
|
||||
#[schema(value_type = Option<CardDiscovery>, example = "manual")]
|
||||
pub card_discovery: Option<enums::CardDiscovery>,
|
||||
|
||||
/// Error code received from the issuer in case of failed payments
|
||||
pub issuer_error_code: Option<String>,
|
||||
|
||||
/// Error message received from the issuer in case of failed payments
|
||||
pub issuer_error_message: Option<String>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v2")]
|
||||
|
||||
@ -210,6 +210,10 @@ pub struct RefundResponse {
|
||||
/// Charge specific fields for controlling the revert of funds from either platform or connected account
|
||||
#[schema(value_type = Option<SplitRefund>,)]
|
||||
pub split_refunds: Option<common_types::refunds::SplitRefund>,
|
||||
/// Error code received from the issuer in case of failed refunds
|
||||
pub issuer_error_code: Option<String>,
|
||||
/// Error message received from the issuer in case of failed refunds
|
||||
pub issuer_error_message: Option<String>,
|
||||
}
|
||||
|
||||
#[cfg(feature = "v1")]
|
||||
|
||||
Reference in New Issue
Block a user