mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
refactor(FRM): refactor frm configs (#4581)
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
This commit is contained in:
@ -729,8 +729,11 @@ pub struct FrmPaymentMethod {
|
||||
///payment methods(card, wallet, etc) that can be used in the payment
|
||||
#[schema(value_type = PaymentMethod,example = "card")]
|
||||
pub payment_method: Option<common_enums::PaymentMethod>,
|
||||
///payment method types(credit, debit) that can be used in the payment
|
||||
pub payment_method_types: Vec<FrmPaymentMethodType>,
|
||||
///payment method types(credit, debit) that can be used in the payment. This field is deprecated. It has not been removed to provide backward compatibility.
|
||||
pub payment_method_types: Option<Vec<FrmPaymentMethodType>>,
|
||||
///frm flow type to be used, can be pre/post
|
||||
#[schema(value_type = Option<FrmPreferredFlowTypes>)]
|
||||
pub flow: Option<api_enums::FrmPreferredFlowTypes>,
|
||||
}
|
||||
|
||||
///Details of FrmPaymentMethodType are mentioned here... it should be passed in payment connector create api call, and stored in merchant_connector_table
|
||||
@ -743,7 +746,7 @@ pub struct FrmPaymentMethodType {
|
||||
///card networks(like visa mastercard) types that can be used in the payment
|
||||
#[schema(value_type = CardNetwork)]
|
||||
pub card_networks: Option<Vec<common_enums::CardNetwork>>,
|
||||
///frm flow type to be used...can be pre/post
|
||||
///frm flow type to be used, can be pre/post
|
||||
#[schema(value_type = FrmPreferredFlowTypes)]
|
||||
pub flow: api_enums::FrmPreferredFlowTypes,
|
||||
///action that the frm would take, in case fraud is detected
|
||||
|
||||
Reference in New Issue
Block a user