text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, core::{ ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, core::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use super::utils as connector_utils; use...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{self, CustomRes...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, core::{ ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use super::utils as connector_utils; use crate::{ c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use transformers as nmi; use crate::{ configs::settings, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use crate::{ configs::settings, core::{ errors::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/nmi.rs | crate: router use common_utils::{ crypto, ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, FloatMajorUnit, FloatMajorUnitForConnector}, }; use diesel_models::enums; use crate::{ configs::settings, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use router_env::{instrument, tracing}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router auth.profile_id.peek() )) } fn get_headers( &self, req: &types::PayoutsRouterData<api::PoQuote>, connectors: &settings::Connectors, ) -> CustomResult<Vec<(String, request::Mas...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use error_stack::{report, ResultExt}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, headers, services::{ s...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use router_env::{instrument, tracing}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, headers, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use router_env::{instrument, tracing}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, eve...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use super::utils::convert_amount; use crate::{ configs::settings, core::errors::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, headers, ...
ast_fragments
// file: hyperswitch/crates/router/src/connector/wise.rs | crate: router use common_utils::request::RequestContent; use common_utils::types::{AmountConvertor, MinorUnit, MinorUnitForConnector}; use self::transformers as wise; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connec...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router fn test_get_error_code_error_message_based_on_priority() { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use diesel_models::{enums, types::OrderDetailsWithAmount}; use crate::{ consts, core::{ errors::{self, ApiErrorResponse...
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 std::{ collections::{HashMap, HashSet}, str::FromStr, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, typ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router pub fn collect_values_by_removing_signature( value: &serde_json::Value, signature: &String, ) -> Vec<String> { <|fim_suffix|> <|fim_middle|> }
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 LocalBankTransfer, Mifinity, Fps, PromptPay, VietQr, OpenBanking, NetworkToken, DirectCarrierBilling, InstantBankTransfer, } impl From<domain::payments::PaymentMethodData> for PaymentMethodDataT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router ); assert_eq!( error_code_error_message_user, Some(ErrorCodeAndMessage { error_code: "03".to_string(), error_message: "INVALID_CVV".to_string(), })...
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::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router ); assert_eq!( error_code_error_message_user, Some(ErrorCodeAndMessage { error_code: "03".to_string(), error_message: "INVALID_CVV".to_string(), })...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router .unwrap_or(consts::NO_ERROR_MESSAGE.to_string()), reason, status_code: http_code, attempt_status, connector_transaction_id, network_advice_code: None, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use diesel_models::{enums, types::OrderDetailsWithAmount}; use crate::{ consts, core::{ errors::{self, ApiErrorResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use diesel_models::{enums, types::OrderDetailsWithAmount}; use crate::{ consts, core::{ errors::{self, ApiErrorResponse...
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 time::PrimitiveDateTime; pub fn get_timestamp_in_milliseconds(datetime: &PrimitiveDateTime) -> i64 { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router pub fn generate_random_bytes(length: usize) -> Vec<u8> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use diesel_models::{enums, types::OrderDetailsWithAmount}; use crate::{ consts, core::{ errors::{self, ApiErrorResponse...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router pub fn get_error_code_error_message_based_on_priority( connector: impl ConnectorErrorTypeMapping, error_list: Vec<ErrorCodeAndMessage>, ) -> Option<ErrorCodeAndMessage> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; pub fn get_webhook_merchant_secret_key(connector_label: &str, merchant_id: &str) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router pub fn collect_and_sort_values_by_removing_signature( value: &serde_json::Value, signature: &String, ) -> Vec<String> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use serde::Serializer; type Error = error_stack::Report<errors::ConnectorError>; pub fn str_to_f32<S>(value: &str, serializer: S) -> Result<S::Ok, S::Error> where...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, Repo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, Repo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use api_models::{ enums::{CanadaStatesAbbreviation, UsStatesAbbreviation}, payments, }; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::StringExt, id_type, pii::{self, Email, IpAddress}, types::{AmountConvertor, MinorUnit}, }; use crate::{ consts, cor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use masking::{Deserialize, ExposeInterface, Secret}; use serde::Serializer; type Error = error_stack::Report<errors::ConnectorError>; pub fn to_connector_meta_fro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; use serde::Serializer; type Error = error_stack::Report<errors::ConnectorError>; pub fn to_connector_meta<T>(connector_meta: Option<serde_json::Value>) -> Result<...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router type Error = error_stack::Report<errors::ConnectorError>; pub fn get_connector_meta( connector_meta: Option<serde_json::Value>, ) -> Result<serde_json::Value, Error> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use std::{ collections::{HashMap, HashSet}, str::FromStr, }; pub fn to_boolean(string: String) -> bool { <|fim_suffix|> <|fim_middle|> }
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
<|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
// 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
<|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 std::{ collections::{HashMap, HashSet}, str::FromStr, }; use api_models::payouts::{self, PayoutVendorAccountDetails}; use common_utils::{ date_time, errors::{ParsingError, ReportSwitchExt}, ext_traits::Strin...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/utils.rs | crate: router use masking::{Deserialize, ExposeInterface, Secret}; use crate::{ consts, core::{ errors::{self, ApiErrorResponse, CustomResult}, payments::{types::AuthenticationData, PaymentData}, }, pii::PeekInter...
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