text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router use diesel_models::{ ephemeral_key, payment_attempt::ConnectorMandateReferenceId as DieselConnectorMandateReferenceId, }; use crate::{ consts, core::{ errors::{self, CustomResult, Rou...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router request.retry_action, Some(api_models::enums::RetryAction::Requeue) ), }, )) } } impl PaymentCreate { #[cfg(all(feature = ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router use error_stack::{self, ResultExt}; use crate::{ consts, core::{ errors::{self, CustomResult, RouterResult, StorageErrorExt}, mandate::helpers as m_helpers, payment_link, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router use error_stack::{self, ResultExt}; use hyperswitch_domain_models::{ mandates::MandateDetails, payments::{ payment_attempt::PaymentAttempt, payment_intent::CustomerData, FromRequestEncryptablePaymen...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payment_methods::PaymentMethodsData, payments::GetAddressFromPaymentMethodData, }; use error_stack::{self, ResultExt}; use crate::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payment_methods::PaymentMethodsData, payments::GetAddressFromPaymentMethodData, }; use error_stack::{self, ResultExt}; use hyperswi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router _state: &SessionState, _merchant_account: &domain::MerchantAccount, _key_store: &domain::MerchantKeyStore, _payment_data: &mut PaymentData<F>, ) -> CustomResult<bool, erro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router helpers::create_customer_if_not_exist( state, Box::new(self), payment_data, request, &key_store.merchant_id, key_store, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router request_extended_authorization: None, extended_authorization_applied: None, capture_before: None, card_discovery: None, }, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router storage::PaymentAttemptNew, Option<api_models::payments::AdditionalPaymentData>, )> { todo!() } #[cfg(all( any(feature = "v1", feature = "v2"), not(featur...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_create.rs | crate: router #[derive(Debug, Clone, Copy, PaymentOperation)] #[operation(operations = "all", flow = "authorize")] pub struct PaymentCreate; type PaymentCreateOperation<'a, F> = BoxedOperation<'a, F, api::PaymentsReques...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_cancel.rs | crate: router use api_models::enums::FrmSuggestion; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{helpers, operations, PaymentData}, utils::ValidatePlatformMerc...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_cancel.rs | crate: router #[derive(Debug, Clone, Copy, router_derive::PaymentOperation)] #[operation(operations = "all", flow = "cancel")] pub struct PaymentCancel; type PaymentCancelOperation<'b, F> = BoxedOperation<'b, F, api:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_cancel.rs | crate: router use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{helpers, operations, PaymentData}, utils::ValidatePlatformMerchant, }, events::audit_events:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_cancel.rs | crate: router use std::marker::PhantomData; use api_models::enums::FrmSuggestion; use crate::{ core::{ errors::{self, RouterResult, StorageErrorExt}, payments::{helpers, operations, PaymentData}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::payment_methods::PaymentMethodsData; use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandateReferenceId, ExtendedCardInfo, GetAddressFromPayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use crate::{ core::{ authentication, blocklist::utils as blocklist_utils, card_testing_guard::utils as card_testing_guard_utils, errors::{self, CustomResult, RouterResult...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::payment_methods::PaymentMethodsData; use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router )> where F: 'b + Send, { todo!() } } #[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))] #[async_trait] impl<F: Clone + Sync> UpdateTracker<F, Pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router let get_trackers_response = operations::GetTrackerResponse { operation: Box::new(self), customer_details: Some(customer_details), payment_data, busin...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandateReferenceId, ExtendedCardInfo, GetAddressFromPayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use crate::{ core::{ authentication, blocklist::utils as blocklist_utils, card_testing_guard::utils as card_testing_guard_utils, errors::{self, CustomResult, RouterResult...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use diesel_models::payment_attempt::ConnectorMandateReferenceId as DieselConnectorMandateReferenceId; use hyperswitch_domain_models::payments::payment_intent::PaymentIntentUpdateFields; use crate::{ cor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandateReferenceId, ExtendedCardInfo, GetAddressFromPayment...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router use api_models::payment_methods::PaymentMethodsData; use api_models::{ admin::ExtendedCardInfoConfig, enums::FrmSuggestion, // payment_methods::PaymentMethodsData, payments::{ConnectorMandat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router )> where F: 'b + Send, { todo!() } } #[cfg(all(any(feature = "v1", feature = "v2"), not(feature = "customer_v2")))] #[async_trait] impl<F: Clone + Sync> UpdateTracker<F, Pay...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router != api_models::enums::AuthenticationStatus::Success { *should_continue_confirm_transaction = false; } Some(authenticat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_confirm.rs | crate: router #[derive(Debug, Clone, Copy, PaymentOperation)] #[operation(operations = "all", flow = "authorize")] pub struct PaymentConfirm; type PaymentConfirmOperation<'b, F> = BoxedOperation<'b, F, api::PaymentsReq...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use common_utils::{ errors::CustomResult, ext_traits::{Encode, ValueExt}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router Ok(self) } } type PaymentsUpdateIntentOperation<'b, F> = BoxedOperation<'b, F, PaymentsUpdateIntentRequest, payments::PaymentIntentData<F>>; #[async_trait] impl<F: Send + Clone> GetT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use common_utils::{ errors::CustomResult, ext_traits::{Encode, ValueExt}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use common_utils::{ errors::CustomResult, ext_traits::{Encode, ValueExt}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use hyperswitch_domain_models::{ payments::payment_intent::{PaymentIntentUpdate, Pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use common_utils::{ errors::CustomResult, ext_traits::{Encode, ValueExt}, t...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use crate::{ core::{ errors::{self, RouterResult}, payments::{ ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReque...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReque...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReque...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate:...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateRequest}; use crate:...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use super::{BoxedOperation, Domain, GetTracker, Operation, UpdateTracker, ValidateReque...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_update_intent.rs | crate: router use std::marker::PhantomData; use api_models::{ enums::{FrmSuggestion, UpdateActiveAttempt}, payments::PaymentsUpdateIntentRequest, }; use common_utils::{ errors::CustomResult, ext_traits::{Encode, V...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use hyperswitch_domain_models::payments::payment_intent::{ CustomerData, PaymentIntentUpdateFields, }; use crate::{ core::{ errors::{self, CustomResult, RouterResult, StorageErrorExt}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use error_stack::{report, ResultExt}; use crate::{ core::{ errors::{self, CustomResul...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use crate::{ core::{ errors::{self, CustomResult, RouterResult, StorageErrorExt}, mandate::helpers as m_helpers, payment_methods::cards::create_encrypted_data, payments::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router payment_id, storage_scheme: merchant_account.storage_scheme, requeue: matches!( request.retry_action, Some(api_models::...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use crate::{ core::{ errors::{self, CustomResult, RouterResult, StorageErrorExt}, mandate::helpers as m_helpers, payment_methods::cards::create_encrypted_data, payments::{self, helpers, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use common_utils::{ ext_traits::{AsyncExt, Encode, ValueExt}, pii::Email, types::keymanager::KeyManagerState, }; use crate::{ core::{ errors::{self, CustomResult, RouterResult, Storag...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use hyperswitch_domain_models::payments::payment_intent::{ CustomerData, PaymentIntentUpdateF...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use crate::{ core::{ errors::{self, CustomResult, RouterResult, StorageErrorExt}, ...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use common_utils::{ ext_traits::{AsyncExt, Encode, ValueExt}, pii::Email, types::keymanager::KeyMana...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use common_utils::{ ext_traits::{AsyncExt, Encode, ValueExt}, pii::Email, types::keym...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/operations/payment_update.rs | crate: router use std::marker::PhantomData; use api_models::{ enums::FrmSuggestion, mandates::RecurringDetails, payments::RequestSurchargeDetails, }; use common_utils::{ ext_traits::{AsyncExt, Encode, ValueExt}, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::CurrencyCountryFlowFilter) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::PaymentMethodFilterKey) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use std::collections::HashMap; use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::PaymentMethodFilters) -> Self { <|fim_suffix|> <|fim_midd...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::NotAvailableFlows) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::CurrencyCountryFlowFilter) -> Self { Self { currency: from.currency, co...
ast_fragments
// file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use crate::{ configs::settings, types::transformers::{ForeignFrom, ForeignInto}, }; fn foreign_from(from: settings::PaymentMethodFilterKey) -> Self { match from { settings::PaymentMethodFilterKey::Pa...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use diesel_models::enums as storage_enums; fn foreign_from(from: storage_enums::MandateDataType) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use api_models::{self, routing as routing_types}; fn foreign_from(from: api_models::payments::MandateType) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use api_models::{self, routing as routing_types}; fn foreign_from(from: api_models::payments::AcceptanceType) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use diesel_models::enums as storage_enums; use euclid::{enums as dsl_enums, frontend::ast as dsl_ast}; fn foreign_from(value: storage_enums::CaptureMethod) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/routing/transformers.rs | crate: router use api_models::{self, routing as routing_types}; fn foreign_from(from: routing_types::RoutableConnectorChoice) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use super::{ConstructFlowSpecificData, Feature}; use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/complete_authorize_flow.rs | crate: router use crate::{ core::{ errors::{ApiErrorResponse, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, routes::{metrics, Sess...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/incremental_authorization_flow.rs | crate: router use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::SessionState, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/incremental_authorization_flow.rs | crate: router use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::SessionState, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/incremental_authorization_flow.rs | crate: router use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::SessionState, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/incremental_authorization_flow.rs | crate: router use crate::{ core::{ errors::{ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, Feature, PaymentData}, }, routes::SessionState, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use cr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, help...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use cr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, headers, logger, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, headers, logger, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use crate::{ consts::PROTOCOL, core::{ errors::{self, Con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, headers, logger, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, headers, logger, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use error_stack::{Report, ResultExt}; use crate::{ consts::PROTOCOL, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, helpers, transformers, PaymentData}, }, headers, logger, ro...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use cr...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt, RouterResult}, payments::{self, access_token, help...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; fn get_session_request_for_simplified_apple_pay( apple_pay_merchant_identifier: String, session_token_data: payment_types::SessionTokenForS...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use ma...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use crate::{ consts::PROTOCOL, core::{ errors::{self, Con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use hyperswitch_domain_models::payments::PaymentIntentData; use crate::{ consts::PROTOCOL, core::{ errors::{self, ConnectorErrorExt...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use crate::{ consts::PROTOCOL, core::{ errors::{self, Con...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/router/src/core/payments/flows/session_flow.rs | crate: router use api_models::{admin as admin_types, payments as payment_types}; use common_utils::{ ext_traits::ByteSliceExt, request::RequestContent, types::{AmountConvertor, StringMajorUnitForConnector}, }; use hy...
ast_fragments