text
stringlengths
70
351k
source
stringclasses
4 values
// file: hyperswitch/crates/router/tests/connectors/elavon.rs | crate: router | connector: elavon use masking::Secret; use router::types::{self, api, storage::enums}; use crate::utils::{self, ConnectorActions}; fn get_data(&self) -> api::ConnectorData { use router::connector::Elavon; utils::construct_co...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/authorizedotnet.rs | crate: router | connector: authorizedotnet use router::types::{self, domain, storage::enums}; async fn should_fail_payment_for_empty_card_number() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/authorizedotnet.rs | crate: router | connector: authorizedotnet use masking::Secret; use router::types::{self, domain, storage::enums}; fn get_payment_method_data() -> domain::Card { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/tests/connectors/payeezy.rs | crate: router | connector: payeezy | op: capture use router::{ core::errors, types::{self, storage::enums, PaymentsAuthorizeData}, }; async fn should_refund_manually_captured_payment() { let authorize_response = CONNECTOR .authorize_pa...
ast_fragments
// file: hyperswitch/crates/router/tests/connectors/payeezy.rs | crate: router | connector: payeezy | op: refund use router::{ core::errors, types::{self, storage::enums, PaymentsAuthorizeData}, }; async fn should_fail_for_refund_amount_higher_than_payment_amount() { let captured_response = CONNECTOR.make_p...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/payeezy.rs | crate: router | connector: payeezy use router::{ core::errors, types::{self, storage::enums, PaymentsAuthorizeData}, }; fn get_request_interval(self) -> u64 { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/payeezy.rs | crate: router | connector: payeezy use router::{ core::errors, types::{self, storage::enums, PaymentsAuthorizeData}, }; fn get_payment_data() -> Option<PaymentsAuthorizeData> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/tests/connectors/wise.rs | crate: router | connector: wise | op: payout use hyperswitch_domain_models::address::{Address, AddressDetails}; use masking::Secret; use router::{ types, types::{api, storage::enums, PaymentAddress}, }; fn get_payout_info() -> Option<PaymentInfo> { ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/wise.rs | crate: router | connector: wise | op: payout use router::{ types, types::{api, storage::enums, PaymentAddress}, }; async fn should_create_bacs_payout() { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/wise.rs | crate: router | connector: wise | op: payout use masking::Secret; use router::{ types, types::{api, storage::enums, PaymentAddress}, }; use crate::{ connector_auth, utils::{self, ConnectorActions, PaymentInfo}, }; fn get_payout...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/tests/connectors/trustpay.rs | crate: router | connector: trustpay use router::types::{self, api, domain, storage::enums, BrowserInformation}; fn get_default_browser_info() -> BrowserInformation { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/router/tests/connectors/nexixpay.rs | crate: router | connector: nexixpay use hyperswitch_domain_models::payment_method_data::{Card, PaymentMethodData}; use masking::Secret; use router::types::{self, api, storage::enums}; async fn should_fail_payment_for_invalid_exp_month() { let respons...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/cors.rs | crate: router use crate::configs::settings; pub fn cors(config: settings::CorsSettings) -> actix_cors::Cors { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use common_utils::id_type; use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterf...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use common_utils::id_type; use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterf...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterface, MockDb}; pub use self:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use common_utils::id_type; use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use router_env::logger; use storage_impl::{errors::StorageError, redis::k...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use common_utils::id_type; use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use router_env::logger; use storage_impl::{errors::StorageError, redis::k...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use router_env::logger; use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterface...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use router_env::logger; use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterface...
ast_fragments
// file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{KafkaError, Kaf...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use ::payment_methods::state::PaymentMethodsStorageInterface; use common_utils::id_type; use diesel_models::{ fraud_check::{FraudCheck, FraudCheckUpdate}, organization::{Organization, OrganizationNew, OrganizationUpdate}, }; use error_s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
// file: hyperswitch/crates/router/src/db.rs | crate: router use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterface, MockDb}; pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router use storage_impl::{errors::StorageError, redis::kv_store::RedisConnInterface, MockDb}; pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/db.rs | crate: router pub use self::kafka_store::KafkaStore; use self::{fraud_check::FraudCheckInterface, organization::OrganizationInterface}; pub use crate::{ core::errors::{self, ProcessTrackerError}, errors::CustomResult, services::{ kafka::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/analytics_validator.rs | crate: router use analytics::errors::AnalyticsError; use api_models::analytics::AnalyticsRequest; use common_utils::errors::CustomResult; use currency_conversion::types::ExchangeRates; use router_env::logger; use crate::core::currency::get_f...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connection.rs | crate: router use bb8::PooledConnection; use diesel::PgConnection; use storage_impl::errors as storage_errors; use crate::errors; pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; pub type PgPooledConn = async_bb8_diesel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connection.rs | crate: router use bb8::PooledConnection; use diesel::PgConnection; use storage_impl::errors as storage_errors; use crate::errors; pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; pub type PgPooledConn = async_bb8_diesel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connection.rs | crate: router use bb8::PooledConnection; use diesel::PgConnection; use storage_impl::errors as storage_errors; use crate::errors; pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; pub type PgPooledConn = async_bb8_diesel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connection.rs | crate: router use bb8::PooledConnection; use diesel::PgConnection; use storage_impl::errors as storage_errors; use crate::errors; pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; pub type PgPooledConn = async_bb8_diesel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connection.rs | crate: router use crate::errors; pub type PgPool = bb8::Pool<async_bb8_diesel::ConnectionManager<PgConnection>>; pub type PgPooledConn = async_bb8_diesel::Connection<PgConnection>; pub async fn redis_connection( conf: &crate::configs::Settings, )...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe.rs | crate: router use actix_web::{web, Scope}; use crate::routes; pub fn server(state: routes::AppState) -> Scope { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/app.rs | crate: router use actix_web::{web, Scope}; use crate::routes::{self, mandates, webhooks}; pub fn server(config: routes::AppState) -> Scope { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/router/src/compatibility/stripe/app.rs | crate: router use actix_web::{web, Scope}; use super::{payment_intents::*, setup_intents::*}; use crate::routes::{self, mandates, webhooks}; pub fn server(state: routes::AppState) -> Scope { web::scope("/setup_intents") .app_data(w...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use api_models::payment_methods as api_types; fn from(item: api_types::CardDetailFromLocker) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use std::{convert::From, default::Default}; use api_models::payment_methods as api_types; fn from(item: api_types::CustomerPaymentMethod) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use std::{convert::From, default::Default}; use crate::types::{api, api::enums as api_enums}; fn from(item: api::CustomerPaymentMethodsListResponse) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use crate::types::{api, api::enums as api_enums}; fn from(cust: api::CustomerDeleteResponse) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use common_utils::{crypto::Encryptable, date_time}; use crate::logger; use crate::types::{api, api::enums as api_enums}; fn from(cust: api::CustomerResponse) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use std::{convert::From, default::Default}; fn from(req: CustomerUpdateRequest) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router use std::{convert::From, default::Default}; use common_utils::{crypto::Encryptable, date_time}; use common_utils::{ id_type, pii::{self, Email}, types::Description, }; fn from(req: CreateCustomerReq...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/compatibility/stripe/customers/types.rs | crate: router fn from(address: StripeAddressDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/payment_methods.rs | crate: router use crate::{ consts, types::{api, domain, storage}, }; fn get_vaulting_flow_name() -> &'static str { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/payment_methods.rs | crate: router use crate::{ consts, types::{api, domain, storage}, }; fn get_vaulting_request_url() -> &'static str { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/router/src/types/payment_methods.rs | crate: router use crate::{ consts, types::{api, domain, storage}, }; fn get_vaulting_flow_name() -> &'static str { consts::VAULT_ADD_FLOW_TYPE }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use common_utils::types::MinorUnit; use diesel_models::{capture::CaptureNew, enums}; pub use hyperswitch_domain_models::payments::payment_attempt::{ PaymentAttempt, PaymentAttemptUpdate, }; use crate::{ core::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use common_utils::types::MinorUnit; use diesel_models::{capture::CaptureNew, enums}; pub use hyperswitch_domain_models::payments::payment_attempt::{ PaymentAttempt, PaymentAttemptUpdate, }; use crate::{ core::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router async fn create_single_connection_test_transaction_pool() -> routes::AppState { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use diesel_models::{capture::CaptureNew, enums}; fn maps_to_intent_status(self, intent_status: enums::IntentStatus) -> bool { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use common_utils::types::MinorUnit; fn get_total_amount(&self) -> MinorUnit { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router pub use hyperswitch_domain_models::payments::payment_attempt::{ PaymentAttempt, PaymentAttemptUpdate, }; fn get_surcharge_details(&self) -> Option<api_models::payments::RequestSurchargeDetails> { <|fim_suffix|> <|...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router fn get_next_capture_id(&self) -> String { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use common_utils::types::MinorUnit; use diesel_models::{capture::CaptureNew, enums}; pub use hyperswitch_domain_models::payments::payment_attempt::{ PaymentAttempt, PaymentAttemptUpdate, }; use crate::{ core::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/payment_attempt.rs | crate: router use common_utils::types::MinorUnit; use diesel_models::{capture::CaptureNew, enums}; pub use hyperswitch_domain_models::payments::payment_attempt::{ PaymentAttempt, PaymentAttemptUpdate, }; use crate::{ core::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/storage/ephemeral_key.rs | crate: router pub use diesel_models::ephemeral_key::{ClientSecretType, ClientSecretTypeNew}; pub use diesel_models::ephemeral_key::{EphemeralKey, EphemeralKeyNew}; use crate::db::errors; use crate::types::transformers::ForeignTryFrom...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/payment_methods.rs | crate: router use error_stack::report; use crate::core::{ errors::{self, RouterResult}, payments::helpers::validate_payment_method_type_against_payment_method, }; fn validate(&self) -> RouterResult<()> { <|fim_suffix|> <|fim_mi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/fraud_check.rs | crate: router use api_models::enums; use common_utils::errors::CustomResult; use crate::{connector, core::errors, services::connector_integration_interface::ConnectorEnum}; fn convert_connector( connector_name: enums::FrmConnectors...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/payment_link.rs | crate: router use crate::{ consts::DEFAULT_SESSION_EXPIRY, core::{errors::RouterResult, payment_link}, types::storage::{self}, }; async fn from_db_payment_link(payment_link: storage::PaymentLink) -> RouterResult<Self> { {<|fim...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/customers.rs | crate: router use api_models::customers; pub use api_models::customers::{ CustomerDeleteResponse, CustomerListRequest, CustomerRequest, CustomerUpdateRequest, CustomerUpdateRequestInternal, }; use crate::{ newtype, types::{do...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/customers.rs | crate: router use api_models::customers; pub use api_models::customers::{ CustomerDeleteResponse, CustomerListRequest, CustomerRequest, CustomerUpdateRequest, CustomerUpdateRequestInternal, }; use super::payments; use crate::{ ne...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/mandates.rs | crate: router use api_models::mandates; pub use api_models::mandates::{MandateId, MandateResponse, MandateRevokedResponse}; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payment_methods, }, ne...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/api/mandates.rs | crate: router use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payment_methods, }, newtype, routes::SessionState, types::{ api, domain, storage::{self, enums as storage_en...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/domain/types.rs | crate: router fn from(state: &crate::SessionState) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/domain/address.rs | crate: router use common_utils::{ crypto::{self, Encryptable}, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, id_type, pii, type_name, types::keymanager::{Identifier, KeyManagerState, ToE...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/types/domain/address.rs | crate: router use common_utils::{ crypto::{self, Encryptable}, date_time, encryption::Encryption, errors::{CustomResult, ValidationError}, id_type, pii, type_name, types::keymanager::{Identifier, KeyManagerState, ToE...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/workflows/tokenized_data.rs | crate: router use crate::{errors, logger::error, routes::SessionState, types::storage}; async fn error_handler<'a>( &'a self, _state: &'a SessionState, process: storage::ProcessTracker, _error: errors::Pr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/workflows/tokenized_data.rs | crate: router use crate::{errors, logger::error, routes::SessionState, types::storage}; async fn execute_workflow<'a>( &'a self, _state: &'a SessionState, _process: storage::ProcessTracker, ) -> Result<(), er...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/workflows/attach_payout_account_workflow.rs | crate: router use scheduler::{ consumer::{self, workflows::ProcessTrackerWorkflow}, errors, }; use crate::{ core::payouts, errors as core_errors, routes::SessionState, types::{api, storage}, }; as...
ast_fragments
// file: hyperswitch/crates/router/src/workflows/refund_router.rs | crate: router use crate::{errors, logger::error, routes::SessionState, types::storage}; async fn error_handler<'a>( &'a self, _state: &'a SessionState, process: storage::ProcessTracker, _error: errors::ProcessTrackerErro...
ast_fragments
// file: hyperswitch/crates/router/src/workflows/refund_router.rs | crate: router use crate::core::refunds as refund_flow; use crate::{errors, logger::error, routes::SessionState, types::storage}; async fn execute_workflow<'a>( &'a self, state: &'a SessionState, process: storage::ProcessTracker,...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/utils/connector_onboarding/paypal.rs | crate: router use common_utils::request::{Method, Request, RequestBuilder, RequestContent}; use http::header; use crate::{ connector, core::errors::{ApiErrorResponse, RouterResult}, routes::SessionState, types, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/utils/connector_onboarding/paypal.rs | crate: router use common_utils::request::{Method, Request, RequestBuilder, RequestContent}; use http::header; use crate::{ connector, core::errors::{ApiErrorResponse, RouterResult}, routes::SessionState, types, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/utils/connector_onboarding/paypal.rs | crate: router use crate::{ connector, core::errors::{ApiErrorResponse, RouterResult}, routes::SessionState, types, types::api::{ enums, verify_connector::{self as verify_connector_types, Veri...
ast_fragments
// file: hyperswitch/crates/router/src/configs/validations.rs | crate: router use common_utils::ext_traits::ConfigExt; use masking::PeekInterface; use storage_impl::errors::ApplicationError; pub fn validate(&self) -> Result<(), ApplicationError> { use common_utils::fp_utils::when; when(self.redis_lock_...
ast_fragments
// file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::request::RequestContent; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use masking::Secret; use ring::hmac;...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::request::RequestContent; use error_stack::report; use masking::Maskable; use masking::Secret; use self::transformers as adyenplatform; use crate::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::request::RequestContent; use error_stack::report; use self::transformers as adyenplatform; use crate::{ configs::settings, core::errors::{sel...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use http::HeaderName; use hyperswitch_interfaces::webhooks::IncomingWebhookFlowError; use masking::Maskable; use masking::Secret; use self::transformers as adyenplatfo...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::request::RequestContent; use error_stack::report; use hyperswitch_interfaces::webhooks::IncomingWebhookFlowError; use self::transformers as adyenplat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::request::RequestContent; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use hyperswitch_inter...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use self::transformers as adyenplatform; use crate::{ config...
ast_fragments
// file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use router_env::{instrument, tracing}; use self::transformers as adyenplatform;...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use masking::Maskable; use self::transformers as adyenplatform; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use router_env::{instrument, tracing}; use self::transformers as...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/adyenplatform.rs | crate: router use api_models::{self, webhooks::IncomingWebhookEvent}; use common_utils::types::MinorUnitForConnector; use common_utils::types::{AmountConvertor, MinorUnit}; use masking::Maskable; use self::transformers as adyenplatform; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use transformers as netcetera; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEven...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use transformers as netcetera; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEven...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, headers, services::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use common_utils::{ext_traits::ByteSliceExt, request::RequestContent}; use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use crate::{ configs::settings, core::errors::{self, CustomResult}, e...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use common_utils::{ext_traits::ByteSliceExt, request::RequestContent}; use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use transformers as netcetera; use crate::{ configs::settings, core::erro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, headers, services::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use common_utils::{ext_traits::ByteSliceExt, request::RequestContent}; use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use crate::{ configs::settings, core::errors::{self, CustomResult}, e...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use common_utils::{ext_traits::ByteSliceExt, request::RequestContent}; use transformers as netcetera; use crate::{ configs::settings, core::errors::{self, CustomResult}, events::connector_api_logs::ConnectorEvent, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/connector/netcetera.rs | crate: router use common_utils::{ext_traits::ByteSliceExt, request::RequestContent}; use hyperswitch_interfaces::authentication::ExternalAuthenticationPayload; use transformers as netcetera; use crate::{ configs::settings, core::erro...
ast_fragments