mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-28 12:15:40 +08:00
feat(frm_routing_algorithm): added frm_routing_algorithm to merchant_account table, to be consumed for frm selection (#1161)
This commit is contained in:
@ -71,6 +71,11 @@ pub struct MerchantAccountCreate {
|
||||
#[cfg(not(feature = "multiple_mca"))]
|
||||
#[schema(value_type = Option<PrimaryBusinessDetails>)]
|
||||
pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>,
|
||||
|
||||
/// The frm routing algorithm to be used for routing payments to desired FRM's
|
||||
#[schema(value_type = Option<Object>,example = json!({"type": "single", "data": "signifyd"}))]
|
||||
pub frm_routing_algorithm: Option<serde_json::Value>,
|
||||
|
||||
///Will be used to expire client secret after certain amount of time to be supplied in seconds
|
||||
///(900) for 15 mins
|
||||
#[schema(example = 900)]
|
||||
@ -136,6 +141,10 @@ pub struct MerchantAccountUpdate {
|
||||
///Default business details for connector routing
|
||||
pub primary_business_details: Option<Vec<PrimaryBusinessDetails>>,
|
||||
|
||||
/// The frm routing algorithm to be used for routing payments to desired FRM's
|
||||
#[schema(value_type = Option<Object>,example = json!({"type": "single", "data": "signifyd"}))]
|
||||
pub frm_routing_algorithm: Option<serde_json::Value>,
|
||||
|
||||
///Will be used to expire client secret after certain amount of time to be supplied in seconds
|
||||
///(900) for 15 mins
|
||||
pub intent_fulfillment_time: Option<u32>,
|
||||
@ -202,6 +211,10 @@ pub struct MerchantAccountResponse {
|
||||
#[schema(value_type = Vec<PrimaryBusinessDetails>)]
|
||||
pub primary_business_details: Vec<PrimaryBusinessDetails>,
|
||||
|
||||
/// The frm routing algorithm to be used to process the incoming request from merchant to outgoing payment FRM.
|
||||
#[schema(value_type = Option<RoutingAlgorithm>, max_length = 255, example = r#"{"type": "single", "data": "stripe" }"#)]
|
||||
pub frm_routing_algorithm: Option<serde_json::Value>,
|
||||
|
||||
///Will be used to expire client secret after certain amount of time to be supplied in seconds
|
||||
///(900) for 15 mins
|
||||
pub intent_fulfillment_time: Option<i64>,
|
||||
|
||||
@ -630,6 +630,7 @@ pub enum Connector {
|
||||
Worldline,
|
||||
Worldpay,
|
||||
Zen,
|
||||
Signifyd,
|
||||
}
|
||||
|
||||
impl Connector {
|
||||
|
||||
Reference in New Issue
Block a user