text
stringlengths
70
351k
source
stringclasses
4 values
<|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
<|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
<|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 try_f...
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, }, }; 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, }, }; use comm...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use common_utils::{ id_type, new_type::{ MaskedBankAccount, MaskedIban, MaskedRoutingNumber, MaskedSortCode, MaskedUpiVpaId, }, pii::{self, Email}, }; pub fn store_k...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(item: NetworkTokenDetailsPaymentMethod) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models use common_utils::{ id_type, new_type::{ MaskedBankAccount, MaskedIban, MaskedRoutingNumber, MaskedSortCode, MaskedUpiVpaId, }, pii::{self, Email}, }; use masking::{...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(item: NetworkTokenDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
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 fn saved_in_locker_default() -> bool { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(item: GooglePayWalletData) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(value: Card) -> Self { <|fim_suffix|> <|fim_middle|> }
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 fn from(value: MobilePaymentData) -> Self { <|fim_suffix|> <|fim_middle|> }
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 fn from(value: OpenBankingData) -> Self { {<|fim_suffix|> <|fim_middle|> }}
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 fn from(value: RealTimePaymentData) -> Self { {<|fim_suffix|> <|fim_middle|> }}
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 fn from(value: CardToken) -> Self { <|fim_suffix|> <|fim_middle|> }
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
<|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 fn from(value: VoucherData) -> Self { <|fim_suffix|> <|fim_middle|> }
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
<|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
// 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_utils::{ ...
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 fn from(value: CryptoData) -> Self { <|fim_suffix|> <|fim_middle|> }
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
<|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
<|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
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(value: CardRedirectData) -> Self { <|fim_suffix|> <|fim_middle|> }
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
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs | crate: hyperswitch_domain_models fn from(item: &Card) -> Self { {<|fim_suffix|> <|fim_middle|> }}
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, }, }; pub fn g...
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/routing.rs | crate: hyperswitch_domain_models fn from(value: PaymentRoutingInfoSerde) -> Self { { PaymentRoutingInfoSerde::OnlyAlgorithm(algo) => Self { algorithm: Some(*algo), pre_routing_results: None, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/routing.rs | crate: hyperswitch_domain_models fn from(value: PaymentRoutingInfo) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/routing.rs | crate: hyperswitch_domain_models fn from(value: PaymentRoutingInfoSerde) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: PaymentsMandateReferenceRecord) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: ConnectorTokenReferenceRecord) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::PaymentsMandateReferenceRecord) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::ConnectorTokenReferenceRecord) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: PayoutsMandateReferenceRecord) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::PayoutsMandateReferenceRecord) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: PaymentsTokenReference) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::PaymentsTokenReference) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: PaymentsMandateReference) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::PaymentsMandateReference) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: PayoutsMandateReference) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::PayoutsMandateReference) -> Self { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use std::collections::HashMap; use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use common_utils::{ date_time, errors::{CustomResult, ParsingError}, pii, types::MinorUnit, }; use error_stack::ResultExt; pub fn get_end_date( &self, format: date_time...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use common_utils::{ date_time, errors::{CustomResult, ParsingError}, pii, types::MinorUnit, }; use time::PrimitiveDateTime; pub fn get_accepted_at(&self) -> PrimitiveDateTime { <|fim_s...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models pub fn get_user_agent(&self) -> Option<String> { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models pub fn get_ip_address(&self) -> Option<String> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateType, Online...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use std::collections::HashMap; use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateD...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: MandateDataType) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models use api_models::payments::{ AcceptanceType as ApiAcceptanceType, CustomerAcceptance as ApiCustomerAcceptance, MandateAmountData as ApiMandateAmountData, MandateData as ApiMandateData, MandateT...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: diesel_models::enums::MandateDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs | crate: hyperswitch_domain_models fn from(value: MandateDetails) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/api.rs | crate: hyperswitch_domain_models use common_utils::{ events::{ApiEventMetric, ApiEventsType}, impl_api_event_type, }; fn get_api_event_type(&self) -> Option<ApiEventsType> { { Self::Json(r) => r.get_api_event_type(),<|fim_suffix|>...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/api.rs | crate: hyperswitch_domain_models use common_utils::{ events::{ApiEventMetric, ApiEventsType}, impl_api_event_type, }; pub fn get_json_body( self, ) -> common_utils::errors::CustomResult<R, common_utils::errors::Validat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/api.rs | crate: hyperswitch_domain_models use common_utils::{ events::{ApiEventMetric, ApiEventsType}, impl_api_event_type, }; pub fn get_json_body( self, ) -> common_utils::errors::CustomResult<R, common_utils::errors::Validat...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models fn get_vaulting_data_key(&self) -> String { { Self::Card(card) => card.card_number.to_string(),<|fim_suffix|> <|fim_middle|> Self::NetworkToken(network_token) => network_token.network_token.to_string(), ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models use crate::payment_method_data; pub fn get_payment_methods_data(&self) -> payment_method_data::PaymentMethodsData { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models use api_models::payment_methods; fn from(item: payment_methods::PaymentMethodCreateData) -> Self { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models fn get_vaulting_data_key(&self) -> String { {<|fim_suffix|> <|fim_middle|> }}
ast_fragments
// file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models use crate::payment_method_data; pub fn get_payment_methods_data(&self) -> payment_method_data::PaymentMethodsData { match self { Self::Card(card) => payment_method_data::PaymentMethodsData::Card( ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/vault.rs | crate: hyperswitch_domain_models use api_models::payment_methods; pub fn get_card(&self) -> Option<&payment_methods::CardDetail> { <|fim_suffix|> <|fim_middle|> }
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | crate: hyperswitch_domain_models use api_models::enums::Connector; use common_utils::{ errors::{CustomResult, ValidationError}, ext_traits::OptionExt, id_type, pii, types::{ keymanager::{self, ...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | crate: hyperswitch_domain_models use common_utils::{ errors::{CustomResult, ValidationError}, ext_traits::OptionExt, id_type, pii, types::{ keymanager::{self, KeyManagerState}, Connecto...
ast_fragments
<|fim_prefix|> // file: hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs | crate: hyperswitch_domain_models use common_utils::{ errors::{CustomResult, ValidationError}, ext_traits::OptionExt, id_type, pii, types::{ keymanager::{self, KeyManagerState}, Connecto...
ast_fragments