feat(router): add sdk_next_action in payment method list response (#9922)

Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
Sai Harsha Vardhan
2025-10-29 12:35:37 +05:30
committed by GitHub
parent d6bbdde18c
commit 0d43f48c45
7 changed files with 78 additions and 3 deletions

View File

@ -2044,6 +2044,10 @@ pub struct PaymentMethodListResponse {
/// flag that indicates whether to calculate tax on the order amount
pub is_tax_calculation_enabled: bool,
/// indicates the next action to be performed by the SDK
#[schema(value_type = SdkNextAction)]
pub sdk_next_action: payments::SdkNextAction,
}
#[cfg(feature = "v1")]

View File

@ -8113,6 +8113,8 @@ pub enum NextActionCall {
AwaitMerchantCallback,
/// The next action is to deny the payment with an error message
Deny { message: String },
/// The next action is to perform eligibility check
EligibilityCheck,
}
#[derive(Debug, Clone, Eq, PartialEq, serde::Serialize, serde::Deserialize, ToSchema)]