text
stringlengths
70
351k
source
stringclasses
4 values
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/lib.rs | crate: hyperswitch_domain_models fn from(value: T) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models /// Unify the address details, giving priority to `self` when details are present in both pub fn unify_address_details(&self, other: Option<&Self>) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models /// Unify the address, giving priority to `self` when details are present in both pub fn unify_address(&self, other: Option<&Self>) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(address: api_models::payments::AddressDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(phone: PhoneDetails) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(address: AddressDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(address: Address) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(phone: api_models::payments::PhoneDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(address: api_models::payments::AddressDetails) -> Self { Self { city: address.city, country: address.country, line1: address.line1, line2: address.line2...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models fn from(address: api_models::payments::Address) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/address.rs | crate: hyperswitch_domain_models use masking::{PeekInterface, Secret}; pub fn get_optional_full_name(&self) -> Option<Secret<String>> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identifier, KeyManage...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identifier, KeyManage...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs | crate: hyperswitch_domain_models use common_utils::{ crypto, encryption::Encryption, errors::{self, CustomResult}, ext_traits::AsyncExt, metrics::utils::record_operation_time, types::keymanager::{Identi...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_address::Paymen...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails, PaymentAttemp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models pub fn get_masked_keys(&self) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails, PaymentAttemp...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; use crate::{ network_tokenization::NetworkTokenNumber, payment_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models pub fn get_not_implemented() -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models pub fn get_extended_authorization_response_data( &self, ) -> Option<&ExtendedAuthorizationResponseData> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models pub fn with_additional_payment_method_data( additional_payment_method_data: AdditionalPaymentMethodConnectorResponse, ) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use masking::{ExposeInterface, Secret}; fn mask_key(&self, key: String) -> Secret<String> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; pub fn from_secret_value( value: common_utils::pii::SecretS...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use common_utils::{ errors::IntegrityCheckError, ext_traits::{OptionExt, ValueExt}, id_type, types::MinorUnit, }; pub fn from_option_secret_value( value: Option<common_utils...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use masking::{ExposeInterface, Secret}; use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::{ payment_attempt::{ErrorDetails...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs | crate: hyperswitch_domain_models use masking::{ExposeInterface, Secret}; use crate::{ network_tokenization::NetworkTokenNumber, payment_address::PaymentAddress, payment_method_data, payments, }; use crate::{ payments::...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models use common_utils::{request::Method, types::MinorUnit}; fn from(redirect_form: RedirectForm) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; use crate::{ errors::api_error_response::ApiErrorResponse, router_request_types::{authent...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models use std::collections::HashMap; use common_utils::{request::Method, types::MinorUnit}; pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetails>; ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; use crate::{ errors::api_error_response::ApiErrorResponse, router_request_types::{authent...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetails>; pub type SupportedPaymentMethods = HashMap<common_enums::PaymentMethod, PaymentMethodT...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models use std::collections::HashMap; use common_utils::{request::Method, types::MinorUnit}; pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetails>; pub type Suppor...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetail...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; use crate::{ errors::api_error_response::ApiErrorResponse, router_request_types::{authent...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetail...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; pub type PaymentMethodTypeMetadata = HashMap<common_enums::PaymentMethodType, PaymentMethodDetail...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models use common_utils::{request::Method, types::MinorUnit}; pub use disputes::{AcceptDisputeResponse, DefendDisputeResponse, SubmitEvidenceResponse}; pub type PaymentMethodTypeMetadata = HashM...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs | crate: hyperswitch_domain_models fn from(redirect_form: diesel_models::payment_attempt::RedirectForm) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use api_models::{payments as api_payments, webhooks}; use common_enums::enums as common_enums; fn from(data: &RevenueRecoveryInvoiceData) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use api_models::{payments as api_payments, webhooks}; use common_enums::enums as common_enums; pub fn get_action( event_type: webhooks::IncomingWebhookEvent, attempt_triggered_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use api_models::{payments as api_payments, webhooks}; use common_enums::enums as common_enums; pub fn get_action( event_type: webhooks::IncomingWebhookEvent, attempt_triggered_...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use api_models::{payments as api_payments, webhooks}; fn from(data: &RevenueRecoveryAttemptData) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use crate::router_response_types::revenue_recovery::BillingConnectorPaymentsSyncResponse; fn from(data: &BillingConnectorPaymentsSyncResponse) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs | crate: hyperswitch_domain_models use common_enums::enums as common_enums; use crate::router_response_types::revenue_recovery::BillingConnectorPaymentsSyncResponse; pub fn get_attempt_triggered_by(&self) -> Option<common_enums...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; use common_enums::enums...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; use comm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; fn from(...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; use comm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; fn from(...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use api_models::{ mandates, payment_methods::{self}, payments::{ additional_info as payment_additional_types, AmazonPayRedirectData, ExtendedCardInfo, }, }; fn from(...
ast_fragments