text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitch...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitch...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
// file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, M...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{Amo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::payouts::{self, PayoutVendorAccountDetails}; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitch...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
// file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, uti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, uti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, uti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
// file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, utils::to_connecto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, uti...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnectorMetaData, uti...
ast_fragments
// file: hyperswitch/crates/router/src/connector/gpayments.rs | crate: router use common_utils::{ request::RequestContent, types::{AmountConvertor, MinorUnit, MinorUnitForConnector}, }; use transformers as gpayments; use crate::{ configs::settings, connector::{gpayments::gpayments_types::GpaymentsConnec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use common_utils::date_time; use serde_json::{json, to_string}; use crate::{ connector::utils::{get_card_details, to_connector_meta, CardData}, consts::{BASE64_ENGINE, NO_ERROR_MESSAGE}, core::erro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router fn from(value: ThreedsecureioTransStatus) -> Self { { ThreedsecureioTransStatus::Y => Self::Success,<|fim_suffix|> <|fim_middle|> ThreedsecureioTransStatus::C => Self::ChallengeRequired, } }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use api_models::payments::{DeviceChannel, ThreeDsCompletionIndicator}; fn from(value: ThreeDsCompletionIndicator) -> Self { { ThreeDsCompletionIndicator::Success => Self::Y,<|fim_suffix|> <|fim_middle|> ThreeD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use crate::{ connector::utils::{get_card_details, to_connector_meta, CardData}, consts::{BASE64_ENGINE, NO_ERROR_MESSAGE}, core::errors, types::{ self, api::{self, MessageCatego...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router fn from(value: ThreedsecureioTransStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use api_models::payments::{DeviceChannel, ThreeDsCompletionIndicator}; fn from(value: ThreeDsCompletionIndicator) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use serde_json::{json, to_string}; fn try_from((amount, router_data): (i64, T)) -> Result<Self, Self::Error> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use base64::Engine; use serde_json::{json, to_string}; use crate::{ connector::utils::{get_card_details, to_connector_meta, CardData}, consts::{BASE64_ENGINE, NO_ERROR_MESSAGE}, core::errors, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/threedsecureio/transformers.rs | crate: router use api_models::payments::{DeviceChannel, ThreeDsCompletionIndicator}; use common_utils::date_time; use iso_currency::Currency; use isocountry; use masking::{ExposeInterface, Secret}; use serde_json::{json, to...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router use api_models::payouts::PayoutMethodData; use common_utils::types::MinorUnit; use crate::connector::{ utils, utils::{get_unimplemented_payment_method_error_message, CardIssuer}, }; type Error = error_stack::R...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router fn foreign_from(payone_status: PayoneStatus) -> Self { { PayoneStatus::AccountCredited => Self::Success,<|fim_suffix|> <|fim_middle|> PayoneStatus::Created | PayoneStatus::PendingApproval | Pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router use crate::connector::{ utils, utils::{get_unimplemented_payment_method_error_message, CardIssuer}, }; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{CardData, Pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{CardData, PayoutsData, RouterData}, core::errors, types::{self, api, storage::e...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router fn foreign_from(payone_status: PayoneStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/payone/transformers.rs | crate: router fn from(error: SubError) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use base64::Engine; use common_utils::{date_time, types::MinorUnit}; use serde_json::to_string; use super::gpayments_types; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use base64::Engine; use common_utils::{date_time, types::MinorUnit}; use serde_json::to_string; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus, BrowserInfoCollected, Gpay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use api_models::payments::DeviceChannel; use common_utils::{date_time, types::MinorUnit}; use masking::{ExposeInterface, Secret}; use serde_json::to_string; use crate::{ connector::{ gpayments::gpayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use api_models::payments::DeviceChannel; use common_utils::{date_time, types::MinorUnit}; use masking::{ExposeInterface, Secret}; use serde_json::to_string; use crate::{ connector::{ gpayments::gpayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use common_utils::{date_time, types::MinorUnit}; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus, BrowserInfoCollected, GpaymentsAuthenticationSuccessResponse, }, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use common_utils::{date_time, types::MinorUnit}; use serde_json::to_string; use super::gpayments_types; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus, BrowserInfoCollect...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use common_utils::{date_time, types::MinorUnit}; use super::gpayments_types; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus, BrowserInfoCollected, GpaymentsAuthentication...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/gpayments/transformers.rs | crate: router use common_utils::{date_time, types::MinorUnit}; use crate::{ connector::{ gpayments::gpayments_types::{ AuthStatus, BrowserInfoCollected, GpaymentsAuthenticationSuccessResponse, }, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router fn foreign_from( (event_type, status, instant_status): ( AdyenplatformWebhookEventType, AdyenplatformWebhookStatus, Option<AdyenplatformInstantStatus>, ), ) -> S...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router fn foreign_from( (event_type, status, instant_status): ( AdyenplatformWebhookEventType, AdyenplatformWebhookStatus, Option<AdyenplatformInstantStatus>, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use error_stack::{report, ResultExt}; use super::{AdyenPlatformRouterData, Error}; use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use error_stack::{report, ResultExt}; use super::{AdyenPlatformRouterData, Error}; use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, }, core::errors, types::{self, api::payouts, storage::enums, transformers:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, }, core::errors, types::{self, api::payouts, storage::enums, transformers:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use super::{AdyenPlatformRouterData, Error}; fn from(adyen_status: AdyenTransferStatus) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use super::{AdyenPlatformRouterData, Error}; use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, }, core::errors, types::{self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform/transformers/payouts.rs | crate: router use super::{AdyenPlatformRouterData, Error}; use crate::{ connector::{ adyen::transformers as adyen, utils::{self, PayoutsData, RouterData}, }, core::errors, types::{self...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use api_models::payouts::PayoutMethodData; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums::{self as storage_enums, PayoutEntityType}, }, }; fn from(entity_type: PayoutEntityType) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router fn from(wise_status: WiseStatus) -> Self { { WiseStatus::Completed => Self::Success,<|fim_suffix|> <|fim_middle|> WiseStatus::Pending | WiseStatus::Processing | WiseStatus::IncomingPaymentWaiting => { Se...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use api_models::payouts::PayoutMethodData; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums::{self as storage_enums, PayoutEntityType}, }, }; fn from(entity_type: PayoutEntityType) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router fn from(wise_status: WiseStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router use common_utils::types::MinorUnit; type Error = error_stack::Report<errors::ConnectorError>; use crate::{ connector::utils::{self, PayoutsData, RouterData}, types::{ api::payouts, storage::enums...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise/transformers.rs | crate: router fn get_payout_address_details( address: Option<&hyperswitch_domain_models::address::Address>, ) -> Option<WiseAddressDetails> { address.and_then(|add| { add.address.as_ref().map(|a| WiseAddressDetails { cou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from( item: types::ResponseRouterData<...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from( item: types::ResponseRouterData<...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_enums::Currency; use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from(item: &types:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from( item: &PlaidRouterData<&types::P...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router fn from(item: PlaidPaymentStatus) -> Self { { PlaidPaymentStatus::PaymentStatusAuthorising => Self::Authorizing,<|fim_suffix|> <|fim_middle|> PlaidPaymentStatus::PaymentStatusInputNeeded => Self::AuthenticationPending,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from(item: &types::PaymentsSyncRouterData) -> ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router use common_utils::types::FloatMajorUnit; use crate::{ connector::utils::is_payment_failure, core::errors, types::{self, api, domain, storage::enums}, }; fn try_from( item: types::ResponseRouterData<...
ast_fragments
// file: hyperswitch/crates/router/src/connector/plaid/transformers.rs | crate: router fn from(item: PlaidPaymentStatus) -> Self { match item { PlaidPaymentStatus::PaymentStatusAuthorising => Self::Authorizing, PlaidPaymentStatus::PaymentStatusBlocked | PlaidPaymentStatus::Pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi/transformers.rs | crate: router use common_utils::{errors::CustomResult, ext_traits::XmlExt, pii::Email, types::FloatMajorUnit}; use crate::{ connector::utils::{ self, AddressDetailsData, PaymentsAuthorizeRequestData, PaymentsComple...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi/transformers.rs | crate: router use common_utils::{errors::CustomResult, ext_traits::XmlExt, pii::Email, types::FloatMajorUnit}; use crate::{ connector::utils::{ self, AddressDetailsData, PaymentsAuthorizeRequestData, PaymentsCompleteAuthorizeRequ...
ast_fragments