mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-29 17:19:15 +08:00
feat(payouts): extend routing capabilities to payout operation (#3531)
Co-authored-by: Kashif <mohammed.kashif@juspay.in>
This commit is contained in:
@ -12,7 +12,7 @@ pub use euclid::{
|
||||
use serde::{Deserialize, Serialize};
|
||||
use utoipa::ToSchema;
|
||||
|
||||
use crate::enums::{self, RoutableConnectors};
|
||||
use crate::enums::{self, RoutableConnectors, TransactionType};
|
||||
|
||||
#[derive(Debug, Clone, Serialize, Deserialize, ToSchema)]
|
||||
#[serde(tag = "type", content = "data", rename_all = "snake_case")]
|
||||
@ -85,6 +85,7 @@ pub struct MerchantRoutingAlgorithm {
|
||||
pub algorithm: RoutingAlgorithm,
|
||||
pub created_at: i64,
|
||||
pub modified_at: i64,
|
||||
pub algorithm_for: TransactionType,
|
||||
}
|
||||
|
||||
impl EuclidDirFilter for ConnectorSelection {
|
||||
@ -538,6 +539,7 @@ pub struct RoutingDictionaryRecord {
|
||||
pub description: String,
|
||||
pub created_at: i64,
|
||||
pub modified_at: i64,
|
||||
pub algorithm_for: Option<TransactionType>,
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, serde::Serialize, serde::Deserialize, ToSchema)]
|
||||
|
||||
Reference in New Issue
Block a user