text stringlengths 70 351k | source stringclasses 4
values |
|---|---|
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture_v2.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest};
use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture_v2.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest};
use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture_v2.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest};
use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture_v2.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsCaptureRequest};
use super::{Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, Custo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use std::marker::PhantomData;
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use common_utils::errors::CustomResult;
use crate::{
core::{
errors::{self, RouterRes... | ast_fragments |
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use common_utils::errors::CustomResult;
use crate::{
core::{
errors::{self, RouterResult},
payments::{self, helpers, opera... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use common_utils::errors::CustomResult;
use crate::{
core::{
errors::{self, RouterResult},
payments::{self,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use crate::{
core::{
errors::{self, RouterResult},
payments::{self, helpers, operations},
utils::Va... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use common_utils::errors::CustomResult;
use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReque... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use crate::{
core::{
errors::{self, RouterResult},
payments::{self, helpers, operations},
utils::Va... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use crate::{
core::{
errors::{self, RouterResult},
payments::{self, helpers, operations},
utils::Va... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_get_intent.rs | crate: router
use api_models::{enums::FrmSuggestion, payments::PaymentsGetIntentRequest};
use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest};
use crate::{
core::{
er... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use api_models::enums::FrmSuggestion;
use error_stack::{report, ResultExt};
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use api_models::enums::FrmSuggestion;
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers as m_helpers,
payments::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers as m_helpers,
payments::{
self, helpers, operations, Cus... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers as m_helpers,
payments::{
self, helpers, operations, Cus... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use api_models::enums::FrmSuggestion;
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers as m_helpers,
payments::{
... | ast_fragments |
// file: hyperswitch/crates/router/src/core/payments/operations/payment_complete_authorize.rs | crate: router
use std::marker::PhantomData;
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
mandate::helpers as m_helpers,
payments::{
self, helpers, ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture.rs | crate: router
use api_models::enums::FrmSuggestion;
use crate::{
core::{
errors::{self, RouterResult, StorageErrorExt},
payments::{self, helpers, operations, types::MultipleCaptureData},
utils... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture.rs | crate: router
use crate::{
core::{
errors::{self, RouterResult, StorageErrorExt},
payments::{self, helpers, operations, types::MultipleCaptureData},
utils::ValidatePlatformMerchant,
},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/payment_capture.rs | crate: router
use std::marker::PhantomData;
use api_models::enums::FrmSuggestion;
use crate::{
core::{
errors::{self, RouterResult, StorageErrorExt},
payments::{self, helpers, operations, types::Multi... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use async_trait::async_trait;
use common_enums::enums;
use common_utils::types::keymanager::ToEncryptable;
use error_stack::ResultExt;
use hyperswitch_d... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use error_stack::ResultExt;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData, payments::PaymentConfirmData,
};
use crate::{
core::{
errors::{self, CustomResult, ... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData, payments::PaymentConfirmData,
};
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorEx... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData, payments::PaymentConfirmData,
};
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorEx... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use crate::{
core::{
errors::{self, CustomResult, RouterResult, StorageErrorExt},
payments::{
operations::{self, Validat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use super::{Domain, GetTracker, Operation, PostUpdateTracker, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, CustomRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use super::{Domain, GetTracker, Operation, PostUpdateTracker, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, CustomRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use super::{Domain, GetTracker, Operation, PostUpdateTracker, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, CustomRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use super::{Domain, GetTracker, Operation, PostUpdateTracker, UpdateTracker, ValidateRequest};
use crate::{
core::{
errors::{self, CustomRes... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use common_enums::enums;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData, payments::PaymentConfirmData,
};
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/operations/proxy_payments_intent.rs | crate: router
use api_models::payments::ProxyPaymentsRequest;
use common_utils::types::keymanager::ToEncryptable;
use hyperswitch_domain_models::{
payment_method_data::PaymentMethodData, payments::PaymentConfir... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/setup_mandate_flow.rs | crate: router
use router_env::logger;
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
mandate,
payments::{
self, access_token, customers, helpers, tokenization, trans... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/setup_mandate_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
mandate,
payments::{
self, access_token, customers, helpers, tokenization, transformers, PaymentData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/setup_mandate_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
mandate,
payments::{
self, access_token, customers, helpers, tokenization, transformers, PaymentData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/setup_mandate_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
mandate,
payments::{
self, access_token, customers, helpers, tokenization, transformers, PaymentData,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/approve_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
ser... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/approve_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
ser... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/approve_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
ser... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payments/flows/approve_flow.rs | crate: router
use crate::{
core::{
errors::{ApiErrorResponse, NotImplementedMessage, RouterResult},
payments::{self, access_token, helpers, transformers, PaymentData},
},
routes::SessionState,
ser... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation.rs | crate: router
use common_enums::FrmSuggestion;
pub use self::{fraud_check_post::FraudCheckPost, fraud_check_pre::FraudCheckPre};
use super::{
types::{ConnectorDetailsCore, FrmConfigsObject, PaymentToFrmData},
FrmData,
};
use c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/operation.rs | crate: router
use error_stack::{report, ResultExt};
pub use self::{fraud_check_post::FraudCheckPost, fraud_check_pre::FraudCheckPre};
use super::{
types::{ConnectorDetailsCore, FrmConfigsObject, PaymentToFrmData},
FrmData,
};
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/checkout_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::types::FrmData,
payments::{self, helpers},
},
errors, services,
types::{
api::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/checkout_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::types::FrmData,
payments::{self, helpers},
},
errors, services,
types::{
api::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/checkout_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::types::FrmData,
payments::{self, helpers},
},
errors, services,
types::{
api::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/checkout_flow.rs | crate: router
use async_trait::async_trait;
use common_utils::{ext_traits::ValueExt, pii::Email};
use error_stack::ResultExt;
use masking::ExposeInterface;
use super::{ConstructFlowSpecificData, FeatureFrm};
use crate::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/transaction_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
errors,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/transaction_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
errors,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/transaction_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
errors,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/transaction_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
errors,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/transaction_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
errors,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/sale_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
... | ast_fragments |
// file: hyperswitch/crates/router/src/core/fraud_check/flows/sale_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
},
erro... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/sale_flow.rs | crate: router
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
payments::{self, flows::ConstructFlowSpecificData, helpers},
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/sale_flow.rs | crate: router
use common_utils::{ext_traits::ValueExt, pii::Email};
use crate::{
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
payment... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/record_return.rs | crate: router
use crate::{
connector::signifyd::transformers::RefundMethod,
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/record_return.rs | crate: router
use crate::{
connector::signifyd::transformers::RefundMethod,
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/record_return.rs | crate: router
use crate::{
connector::signifyd::transformers::RefundMethod,
core::{
errors::{ConnectorErrorExt, RouterResult},
fraud_check::{FeatureFrm, FraudCheckConnectorData, FrmData},
paym... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/fulfillment_flow.rs | crate: router
use crate::{
core::{
errors::RouterResult, fraud_check::frm_core_types::FrmFulfillmentRequest,
payments::helpers, utils as core_utils,
},
errors,
types::{
domain,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/fraud_check/flows/fulfillment_flow.rs | crate: router
use common_utils::ext_traits::{OptionExt, ValueExt};
use crate::{
core::{
errors::RouterResult, fraud_check::frm_core_types::FrmFulfillmentRequest,
payments::helpers, utils as core_utils,... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use hyperswitch_domain_models::api::ApplicationResponse;
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::SessionState,
utils::user::theme as them... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use common_utils::{
ext_traits::{ByteSliceExt, Encode},
types::theme::ThemeLineage,
};
use diesel_models::user::theme::ThemeNew;
use hyperswitch_domain_models::api::ApplicationRespo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use common_utils::{
ext_traits::{ByteSliceExt, Encode},
types::theme::ThemeLineage,
};
use diesel_models::user::theme::ThemeNew;
use hyperswitch_domain_models::api::ApplicationRespo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use common_utils::{
ext_traits::{ByteSliceExt, Encode},
types::theme::ThemeLineage,
};
use diesel_models::user::theme::ThemeNew;
use hyperswitch_domain_models::api::ApplicationRespo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use common_utils::{
ext_traits::{ByteSliceExt, Encode},
types::theme::ThemeLineage,
};
use diesel_models::user::theme::ThemeNew;
use hyperswitch_domain_models::api::ApplicationRespo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/user/theme.rs | crate: router
use api_models::user::theme as theme_api;
use hyperswitch_domain_models::api::ApplicationResponse;
use crate::{
core::errors::{StorageErrorExt, UserErrors, UserResponse},
routes::SessionState,
utils::user::theme as them... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/verification/utils.rs | crate: router
use common_utils::{errors::CustomResult, id_type::PaymentId};
use crate::{
core::{
errors::{self, utils::StorageErrorExt},
utils,
},
logger,
routes::SessionState,
services::authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/verification/utils.rs | crate: router
use common_utils::{errors::CustomResult, id_type::PaymentId};
use error_stack::{Report, ResultExt};
use crate::{
core::{
errors::{self, utils::StorageErrorExt},
utils,
},
logger,
routes::Sess... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/verification/utils.rs | crate: router
use common_utils::{errors::CustomResult, id_type::PaymentId};
use crate::{
core::{
errors::{self, utils::StorageErrorExt},
utils,
},
logger,
routes::SessionState,
services::authentication... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use api_models::routing::{
MerchantRoutingAlgorithm, RoutingAlgorithm as Algorithm, RoutingAlgorithmKind,
RoutingDictionaryRecord,
};
use crate::{
core::{errors, routing},
types::transformers::{ForeignFrom... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use api_models::routing::{
MerchantRoutingAlgorithm, RoutingAlgorithm as Algorithm, RoutingAlgorithmKind,
RoutingDictionaryRecord,
};
fn foreign_from(value: RoutingAlgorithmKind) -> Self {
<|fim_suffix|>
<|fim_mid... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use api_models::routing::{
MerchantRoutingAlgorithm, RoutingAlgorithm as Algorithm, RoutingAlgorithmKind,
RoutingDictionaryRecord,
};
use diesel_models::{
enums as storage_enums,
routing_algorithm::{Routin... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use api_models::routing::{
MerchantRoutingAlgorithm, RoutingAlgorithm as Algorithm, RoutingAlgorithmKind,
RoutingDictionaryRecord,
};
use diesel_models::{
enums as storage_enums,
routing_algorithm::{Routin... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use api_models::routing::{
MerchantRoutingAlgorithm, RoutingAlgorithm as Algorithm, RoutingAlgorithmKind,
RoutingDictionaryRecord,
};
use diesel_models::{
enums as storage_enums,
routing_algorithm::{Routin... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/routing/transformers.rs | crate: router
use diesel_models::{
enums as storage_enums,
routing_algorithm::{RoutingAlgorithm, RoutingProfileMetadata},
};
fn foreign_from(value: RoutingProfileMetadata) -> Self {
{<|fim_suffix|>
<|fim_middle|>
}}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/errors/error_handlers.rs | crate: router
use actix_web::{body, dev::ServiceResponse, middleware::ErrorHandlerResponse, ResponseError};
use http::StatusCode;
use super::ApiErrorResponse;
use crate::logger;
pub fn custom_error_handlers<B: body::MessageBody + 'sta... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/types.rs | crate: router
use crate::{core::errors, headers, services::request::Maskable, types::storage::enums};
fn add_webhook_header(header: &mut Vec<(String, Maskable<String>)>, signature: String) {
<|fim_suffix|>
<|fim_middle|>
}
| ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
use std::{marker::PhantomData, str::FromStr, time::Instant};
use api_models::webhooks::{self, WebhookResponseTracker};
use common_utils::{
errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerS... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
use std::{marker::PhantomData, str::FromStr, time::Instant};
use common_utils::{
errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerState,
};
use hyperswitch_domain_models::{
payments::{H... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
use std::{marker::PhantomData, str::FromStr, time::Instant};
use actix_web::FromRequest;
use common_utils::{
errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerState,
};
use router_env::{inst... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
use common_utils::{
errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerState,
};
use crate::{
core::{
api_locking,
errors::{self, ConnectorErrorExt, CustomResult, RouterRe... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
use std::{marker::PhantomData, str::FromStr, time::Instant};
use api_models::webhooks::{self, WebhookResponseTracker};
use common_utils::{
errors::ReportSwitchExt, events::ApiEventsType, types::keymanager::KeyManagerS... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
.get_webhook_api_response(&request_details, None)
.switch()
.attach_printable("Could not get incoming webhook api response from connector")?;
let serialized_request = event_object
.mas... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/webhooks/incoming_v2.rs | crate: router
auth_type,
None,
api_event,
req,
req.method(),
);
state.event_handler().log_event(&api_event);
Ok(application_response)
}
#[instrument(skip_all)]
#[allow(clippy::too_ma... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use common_utils::{
crypto::Encryptable,
id_type,
transformers::{ForeignFrom, ForeignTryFrom},
};
use masking::{ExposeInterface... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use error_stack::{report, ResultExt};
use crate::{
core::payment_methods::{
cards::{add_card_to_hs_locker, create_encrypted_dat... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use cards::CardNumber;
use crate::{
core::payment_methods::{
cards::{add_card_to_hs_locker, create_encrypted_data, tokenize_car... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm};
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use cards::CardNumber;
use common_utils::{
crypto::Encryptable,
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use common_utils::{
crypto::Encryptable,
id_type,
transformers::{ForeignFrom, ForeignTryFrom},
};
use router_env::logger;
use c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use common_utils::{
crypto::Encryptable,
id_type,
transformers::{ForeignFrom, ForeignTryFrom},
};
use error_stack::{report, ResultExt};
use masking::{ExposeInterface, Secret};
use router_env::logger;
use c... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use common_utils::{
crypto::Encryptable,
id_type,
transformers::{ForeignFrom, ForeignTryFrom},
};
use masking::{ExposeInterface, Secret};
use router_env::logger;
use crate::{
core::payment_methods::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use common_utils::{
crypto::Encryptable,
id_type,
transformers::{ForeignFrom, ForeignTryFrom},
};
use masking::{ExposeInterface, Secret};
use router_env::logger;
use crate::{
core::payment_methods::{
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use hyperswitch_domain_models::router_request_types as domain_request_types;
use crate::{
core::payment_methods::{
cards::{add_card_to_hs_locker, create_encrypted_data, tokenize_card_flow},
network... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/payment_methods/tokenize.rs | crate: router
use actix_multipart::form::{bytes::Bytes, text::Text, MultipartForm};
use api_models::{enums as api_enums, payment_methods as payment_methods_api};
use common_utils::{
crypto::Encryptable,
id_type,
transfo... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/pm_auth/helpers.rs | crate: router
use pm_auth::types::{self as pm_auth_types, api::BoxedPaymentAuthConnector};
use crate::{
core::errors::{self, ApiErrorResponse},
types::{self, domain, transformers::ForeignTryFrom},
};
pub fn get_connector_auth_type(
... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/authentication/types.rs | crate: router
pub use hyperswitch_domain_models::router_request_types::authentication::{
AcquirerDetails, ExternalThreeDSConnectorMetadata, PreAuthenticationData, ThreeDsMethodData,
};
use crate::{
core::errors,
types::{sto... | ast_fragments |
<|fim_prefix|>
// file: hyperswitch/crates/router/src/core/authentication/utils.rs | crate: router
use crate::{
consts,
core::{
errors::{self, ConnectorErrorExt, StorageErrorExt},
payments,
},
errors::RouterResult,
routes::SessionState,
services::{self, execute_connector_processi... | ast_fragments |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.