text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan impl api::PaymentToken for Jpmorgan {} impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Jpmorgan { // Not Impl...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan fn get_content_type(&self) -> &'static str { self.common_get_content_type() } fn get_url( &self, req: &RefundSyncRouterData, connectors: &Conne...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, MinorUnit, MinorUnitFor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { self.build_error_response(res, event_builder) ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, MinorUnit, MinorUnitFor...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/jpmorgan.rs | crate: hyperswitch_connectors | connector: jpmorgan use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, MinorUnit, MinorUnitFor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu.rs | crate: hyperswitch_connectors | connector: payu let amount = utils::convert_amount( self.amount_converter, req.request.minor_amount, req.request.currency, )?; let conne...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payu.rs | crate: hyperswitch_connectors | connector: payu use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, MinorUnit, MinorUnitForConn...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/paybox.rs | crate: hyperswitch_connectors | connector: paybox impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Paybox { fn get_headers( &self, req: &PaymentsSyncRouterData, connectors: &Connectors, ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz use api_models::enums::AuthenticationType; use common_enums::enums; use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, Co...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz fn get_headers( &self, req: &RefundsRouterData<Execute>, connectors: &Connectors, ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::Co...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz Ok(format!("{}void", self.base_url(connectors))) } fn get_request_body( &self, req: &RouterData<Void, PaymentsCancelData, PaymentsRespon...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> { self.build_headers(req, connectors) } fn get_url( &sel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz } } impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Powertranz { fn get_headers( &self, req: &PaymentsCancelRouter...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz RequestBuilder::new() .method(Method::Post) .url(&PaymentsAuthorizeType::get_url(self, req, connectors)?) .attach_default_he...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/powertranz.rs | crate: hyperswitch_connectors | connector: powertranz use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications, ConnectorValidation, }, confi...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank.rs | crate: hyperswitch_connectors | connector: deutschebank } fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorEr...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank.rs | crate: hyperswitch_connectors | connector: deutschebank ) -> CustomResult<RequestContent, errors::ConnectorError> { let amount = utils::convert_amount( self.amount_converter, req.request.minor_amount,...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank.rs | crate: hyperswitch_connectors | connector: deutschebank let req = Some( RequestBuilder::new() .method(Method::Post) .headers(headers) .url(&types::RefreshTokenType::ge...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank.rs | crate: hyperswitch_connectors | connector: deutschebank } impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Deutschebank { //TODO: implement sessions flow } impl ConnectorIntegration<SetupMandate, S...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/deutschebank.rs | crate: hyperswitch_connectors | connector: deutschebank use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications, ConnectorValidation, }, c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/ctp_mastercard.rs | crate: hyperswitch_connectors | connector: ctp_mastercard use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications, ConnectorValid...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/facilitapay.rs | crate: hyperswitch_connectors | connector: facilitapay use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMinorUnit, ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | crate: hyperswitch_connectors | connector: digitalvirgo _req: &RefundsRouterData<Execute>, _connectors: &Connectors, ) -> CustomResult<Option<Request>, errors::ConnectorError> { Err(errors::ConnectorError::Fl...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | crate: hyperswitch_connectors | connector: digitalvirgo use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse, ConnectorSpecifications, Connec...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/digitalvirgo.rs | crate: hyperswitch_connectors | connector: digitalvirgo use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorRedirectResponse, ConnectorSpecifications, Connec...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity.rs | crate: hyperswitch_connectors | connector: mifinity fn get_headers( &self, req: &PaymentsSyncRouterData, connectors: &Connectors, ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorE...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity.rs | crate: hyperswitch_connectors | connector: mifinity fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Base } fn common_get_content_type(&self) -> &'static str { "application/json" } ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | crate: hyperswitch_connectors | connector: bankofamerica use common_utils::{ consts, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use hyperswi...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | crate: hyperswitch_connectors | connector: bankofamerica fn get_url( &self, req: &PaymentsCaptureRouterData, connectors: &Connectors, ) -> CustomResult<String, errors::ConnectorError> { let conne...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/bankofamerica.rs | crate: hyperswitch_connectors | connector: bankofamerica self.build_headers(req, connectors) } fn get_content_type(&self) -> &'static str { self.common_get_content_type() } fn get_url( &self, ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs | crate: hyperswitch_connectors | connector: square } fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs | crate: hyperswitch_connectors | connector: square Ok(vec![( headers::CONTENT_TYPE.to_string(), PaymentsAuthorizeType::get_content_type(self) .to_string() .into(), ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs | crate: hyperswitch_connectors | connector: square fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError>...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/square.rs | crate: hyperswitch_connectors | connector: square ) -> CustomResult<Option<Request>, errors::ConnectorError> { Err( errors::ConnectorError::NotImplemented("Setup Mandate flow for Square".to_string()) ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys.rs | crate: hyperswitch_connectors | connector: redsys use hyperswitch_interfaces::{ api::{ self, ConnectorCommon, ConnectorCommonExt, ConnectorIntegration, ConnectorSpecifications, ConnectorValidation, }, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys.rs | crate: hyperswitch_connectors | connector: redsys ) -> CustomResult<Option<Request>, errors::ConnectorError> { Ok(Some( RequestBuilder::new() .method(Method::Post) .url(&R...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys.rs | crate: hyperswitch_connectors | connector: redsys res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { self.build_error_response(res, ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/redsys.rs | crate: hyperswitch_connectors | connector: redsys Ok(Some( RequestBuilder::new() .method(Method::Post) .url(&PaymentsPreProcessingType::get_url(self, req, connectors)?) .atta...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/opennode.rs | crate: hyperswitch_connectors | connector: opennode use common_utils::{ crypto, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use hyperswitch_domain_models::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/opennode.rs | crate: hyperswitch_connectors | connector: opennode use common_utils::{ crypto, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use hyperswitch_interfaces::{ api...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/opennode.rs | crate: hyperswitch_connectors | connector: opennode use common_utils::{ crypto, errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use hyperswitch_domain_models::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4.rs | crate: hyperswitch_connectors | connector: shift4 )?) .attach_default_headers() .headers(types::PaymentsPreProcessingType::get_headers( self, req, connectors, ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4.rs | crate: hyperswitch_connectors | connector: shift4 })?, req.request .currency .ok_or_else(|| errors::ConnectorError::MissingRequiredField { field_name: "currency", ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/shift4.rs | crate: hyperswitch_connectors | connector: shift4 { // Not Implemented (R) } impl api::ConnectorAccessToken for Shift4 {} impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Shift4 { // Not Implemente...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk.rs | crate: hyperswitch_connectors | connector: billwerk .url(&types::RefundExecuteType::get_url(self, req, connectors)?) .attach_default_headers() .headers(types::RefundExecuteType::get_headers( ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk.rs | crate: hyperswitch_connectors | connector: billwerk fn get_headers( &self, req: &PaymentsAuthorizeRouterData, connectors: &Connectors, ) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::Conne...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/billwerk.rs | crate: hyperswitch_connectors | connector: billwerk fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci &self, req: &RefundsRouterData<Execute>, connectors: &Connectors, ) -> CustomResult<String, errors::ConnectorError> { let connector_payment_id = req.request.conne...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, StringMajorUnitF...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { self.build_error_response(res, event_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci } fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, S...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci } fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, errors::ConnectorError...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci connectors: &Connectors, ) -> CustomResult<Option<Request>, errors::ConnectorError> { Ok(Some( RequestBuilder::new() .method(Method::Ge...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/aci.rs | crate: hyperswitch_connectors | connector: aci _req: &RouterData<SetupMandate, SetupMandateRequestData, PaymentsResponseData>, _connectors: &Connectors, ) -> CustomResult<Option<Request>, errors::ConnectorError...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon.rs | crate: hyperswitch_connectors | connector: elavon use hyperswitch_domain_models::{ router_data::{AccessToken, ErrorResponse, RouterData}, router_flow_types::{ access_token_auth::AccessTokenAuth, payments::{Authorize, C...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon.rs | crate: hyperswitch_connectors | connector: elavon use common_utils::{ errors::CustomResult, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, StringMajorUnitForConnector}, }; use...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon.rs | crate: hyperswitch_connectors | connector: elavon use common_utils::{ errors::CustomResult, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, StringMajorUnitForConnector}, }; use...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/elavon.rs | crate: hyperswitch_connectors | connector: elavon use common_utils::{ errors::CustomResult, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, StringMajorUnitForCon...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/payeezy.rs | crate: hyperswitch_connectors | connector: payeezy use common_utils::{ errors::CustomResult, ext_traits::ByteSliceExt, request::{Method, Request, RequestBuilder, RequestContent}, }; use hyperswitch_interfaces::{ api::{ ...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiservemea.rs | crate: hyperswitch_connectors | connector: fiservemea ) -> CustomResult<RequestContent, errors::ConnectorError> { let amount = utils::convert_amount( self.amount_converter, req.request.minor_amount_to_c...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/fiservemea.rs | crate: hyperswitch_connectors | connector: fiservemea use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, Stri...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay ) -> CustomResult<String, errors::ConnectorError> { let connector_payment_id = get_payment_id(( req.request.connector_metadata.clone(), Some(nexixpay::N...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay nexixpay::NexixpayPaymentIntent::Capture => nexixpay_meta_data.capture_operation_id, nexixpay::NexixpayPaymentIntent::Authorize => nexixpay_meta_data.authori...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay }) } fn get_error_response( &self, res: Response, event_builder: Option<&mut ConnectorEvent>, ) -> CustomResult<ErrorResponse, e...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay fn get_url( &self, req: &PaymentsAuthorizeRouterData, connectors: &Connectors, ) -> CustomResult<String, errors::ConnectorError> { if req.request.of...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay fn get_content_type(&self) -> &'static str { self.common_get_content_type() } fn get_url( &self, _req: &SetupMandateRouterData, connectors: &Co...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay HashSet::from([PaymentMethodDataType::Card]); utils::is_mandate_supported(pm_data, pm_type, mandate_supported_pmd, self.id()) } } impl ConnectorIntegration<Session...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/nexixpay.rs | crate: hyperswitch_connectors | connector: nexixpay fn get_currency_unit(&self) -> api::CurrencyUnit { api::CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/json" } ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use hyperswitch_domain_models::{ router_data::{ConnectorAuthType, RouterData}, router_request_types::unified...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/unified_authentication_service/transformers.rs | crate: hyperswitch_connectors | connector: unified_authentication_service use common_enums::enums; use common_utils::types::FloatMajorUnit; use hyperswitch_domain_models::{ router_data::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs | crate: hyperswitch_connectors | connector: facilitapay use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs | crate: hyperswitch_connectors | connector: facilitapay use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs | crate: hyperswitch_connectors | connector: facilitapay fn from(item: FacilitapayPaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/facilitapay/transformers.rs | crate: hyperswitch_connectors | connector: facilitapay use hyperswitch_domain_models::{ payment_method_data::PaymentMethodData, router_data::{ConnectorAuthType, RouterData}, router_flow_types::refu...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | crate: hyperswitch_connectors | connector: mifinity use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{PaymentMethodData, WalletData}, router_data::{ConnectorAuthType, RouterD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | crate: hyperswitch_connectors | connector: mifinity use common_enums::enums; use hyperswitch_domain_models::{ payment_method_data::{PaymentMethodData, WalletData}, router_data::{ConnectorAuthType, RouterD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | crate: hyperswitch_connectors | connector: mifinity fn from(item: MifinityPaymentStatus) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_connectors/src/connectors/mifinity/transformers.rs | crate: hyperswitch_connectors | connector: mifinity use common_enums::enums; use common_utils::{ pii::{self, Email}, types::StringMajorUnit, }; use error_stack::ResultExt; use hyperswitch_domain_models::{...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/itaubank.rs | crate: hyperswitch_connectors | connector: itaubank use common_utils::{ errors::CustomResult, ext_traits::BytesExt, request::{Method, Request, RequestBuilder, RequestContent}, types::{AmountConvertor, StringMajorUnit, String...
ast_fragments
// file: hyperswitch/crates/hyperswitch_connectors/src/connectors/itaubank.rs | crate: hyperswitch_connectors | connector: itaubank impl api::RefundSync for Itaubank {} impl api::PaymentToken for Itaubank {} impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData> for Itau...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::crypto::aes256::GcmAes256; use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; use std::num::NonZeroUsize; use config::File; use rustc_hash::FxHashMap; use serde::D...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; use std::sync::Arc; use crate::services::aws::{AwsKmsClient, AwsKmsConfig}; use crate::crypto::vault::{Vault, VaultSettings...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; pub fn validate(&self) { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use config::File; use std::path::PathBuf; pub fn with_config_path(environment: Environment, config_path: Option<PathBuf>) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::crypto::aes256::GcmAes256; use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; use std::num::NonZeroUsize; use config::File; use std::sync::Arc; use crate::services...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; fn validate(&self) -> CustomResult<(), errors::ParsingError> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; use std::num::NonZeroUsize; use std::sync::Arc; use std::path::PathBuf; pub fn which() -> Self { <|fim_suffix|> <|fim_middl...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/config.rs | crate: src use crate::{ crypto::KeyManagerClient, env::observability::LogConfig, errors::{self, CustomResult}, }; fn config_path(&self) -> &str { { Self::Production => "production.toml",<|fim_suffix|> <|fim_middle|> Self::Dev => "develop...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/storage.rs | crate: src use crate::{ config::Config, errors::{self, CustomResult}, }; use self::adapter::{DbAdapter, DbAdapterType}; pub async fn get_conn( &self, ) -> CustomResult<<Self as DbAdapter>::Conn<'_>, errors::ConnectionError> { {<...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/storage.rs | crate: src use crate::{ config::Config, errors::{self, CustomResult}, }; use self::adapter::{DbAdapter, DbAdapterType}; /// # Panics /// /// Panics if unable to connect to Database pub async fn from_config( config: &Conf...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/app.rs | crate: src pub(crate) type StorageState = DbState<Pool<AsyncPgConnection>, adapter::PostgreSQL>; pub(crate) type StorageState = DbState<scylla::CachingSession, adapter::Cassandra>; pub fn db_pool(&self) -> &StorageState { {<|fim_suffix|> <|fim_middle|>...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/app.rs | crate: src use crate::{ config::{Config, TenantConfig}, crypto::blake3::Blake3, crypto::KeyManagerClient, multitenancy::{MultiTenant, TenantId, TenantState}, storage::DbState, }; use rayon::{ThreadPool, ThreadPoolBuilder}; pub(crate...
ast_fragments
<|fim_prefix|> // file: hyperswitch-encryption-service/src/app.rs | crate: src use crate::{ config::{Config, TenantConfig}, crypto::blake3::Blake3, crypto::KeyManagerClient, multitenancy::{MultiTenant, TenantId, TenantState}, storage::DbState, }; use std::sync::Arc; use rustc_hash::FxHashMap; pub(cr...
ast_fragments