feat(frm_routing_algorithm): added frm_routing_algorithm to merchant_account table, to be consumed for frm selection (#1161)

This commit is contained in:
rishavkar
2023-05-17 13:22:00 +05:30
committed by GitHub
parent 600dc33867
commit ea98145318
9 changed files with 30 additions and 0 deletions

View File

@ -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>,

View File

@ -630,6 +630,7 @@ pub enum Connector {
Worldline,
Worldpay,
Zen,
Signifyd,
}
impl Connector {