mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-01 11:06:50 +08:00
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:
committed by
GitHub
parent
d6bbdde18c
commit
0d43f48c45
@ -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")]
|
||||
|
||||
@ -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)]
|
||||
|
||||
Reference in New Issue
Block a user