feat(connector): [Gigadat] Implement interac payouts (#9566)

This commit is contained in:
Swangi Kumari
2025-10-01 14:17:18 +05:30
committed by GitHub
parent 654ffe472f
commit cf30da2df0
17 changed files with 510 additions and 14 deletions

View File

@ -48,6 +48,7 @@ pub enum PayoutConnectors {
Adyenplatform,
Cybersource,
Ebanx,
Gigadat,
Nomupay,
Nuvei,
Payone,
@ -75,6 +76,7 @@ impl From<PayoutConnectors> for RoutableConnectors {
PayoutConnectors::Adyenplatform => Self::Adyenplatform,
PayoutConnectors::Cybersource => Self::Cybersource,
PayoutConnectors::Ebanx => Self::Ebanx,
PayoutConnectors::Gigadat => Self::Gigadat,
PayoutConnectors::Nomupay => Self::Nomupay,
PayoutConnectors::Nuvei => Self::Nuvei,
PayoutConnectors::Payone => Self::Payone,
@ -93,6 +95,7 @@ impl From<PayoutConnectors> for Connector {
PayoutConnectors::Adyenplatform => Self::Adyenplatform,
PayoutConnectors::Cybersource => Self::Cybersource,
PayoutConnectors::Ebanx => Self::Ebanx,
PayoutConnectors::Gigadat => Self::Gigadat,
PayoutConnectors::Nomupay => Self::Nomupay,
PayoutConnectors::Nuvei => Self::Nuvei,
PayoutConnectors::Payone => Self::Payone,

View File

@ -1597,6 +1597,12 @@ pub struct BrowserInformation {
/// The device model of the client
pub device_model: Option<String>,
/// Accept-language of the browser
pub accept_language: Option<String>,
/// Identifier of the source that initiated the request.
pub referer: Option<String>,
}
impl RequestSurchargeDetails {

View File

@ -1,6 +1,8 @@
use std::collections::HashMap;
use cards::CardNumber;
#[cfg(feature = "v2")]
use common_utils::types::BrowserInformation;
use common_utils::{
consts::default_payouts_list_limit,
crypto, id_type, link_utils, payout_method_utils,
@ -9,6 +11,8 @@ use common_utils::{
types::{UnifiedCode, UnifiedMessage},
};
use masking::Secret;
#[cfg(feature = "v1")]
use payments::BrowserInformation;
use router_derive::FlatStruct;
use serde::{Deserialize, Serialize};
use time::PrimitiveDateTime;
@ -191,6 +195,10 @@ pub struct PayoutCreateRequest {
/// Identifier for payout method
pub payout_method_id: Option<String>,
/// Additional details required by 3DS 2.0
#[schema(value_type = Option<BrowserInformation>)]
pub browser_info: Option<BrowserInformation>,
}
impl PayoutCreateRequest {