id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_method_common_types_MerchantCountryCode_new
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for MerchantCountryCode pub fn new(country_code: String) -> Self { Self(country_code) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "MerchantCountryCode", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_common_types_CustomerAcceptance_get_ip_address
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for CustomerAcceptance pub fn get_ip_address(&self) -> Option<String> { self.online .as_ref() .and_then(|data| data.ip_address.as_ref().map(|ip| ip.peek().to_owned())) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "CustomerAcceptance", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_ip_address", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyper...
hyperswitch_method_common_types_CustomerAcceptance_get_user_agent
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for CustomerAcceptance pub fn get_user_agent(&self) -> Option<String> { self.online.as_ref().map(|data| data.user_agent.clone()) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "CustomerAcceptance", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_user_agent", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyper...
hyperswitch_method_common_types_CustomerAcceptance_get_accepted_at
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for CustomerAcceptance pub fn get_accepted_at(&self) -> PrimitiveDateTime { self.accepted_at.unwrap_or_else(date_time::now) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "CustomerAcceptance", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_accepted_at", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_common_types_GpayTokenizationData_get_encrypted_google_pay_payment_data_mandatory
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for GpayTokenizationData pub fn get_encrypted_google_pay_payment_data_mandatory( &self, ) -> Result<&GpayEcryptedTokenizationData, errors::ValidationError> { match self { Self::Encrypted(encrypted_data) => Ok(encrypted_data), ...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "GpayTokenizationData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_encrypted_google_pay_payment_data_mandatory", "num_enums": null, "num_items": null, "n...
hyperswitch_method_common_types_GpayTokenizationData_get_encrypted_google_pay_token
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for GpayTokenizationData pub fn get_encrypted_google_pay_token(&self) -> Result<String, errors::ValidationError> { Ok(self .get_encrypted_google_pay_payment_data_mandatory()? .token .clone()) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "GpayTokenizationData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_encrypted_google_pay_token", "num_enums": null, "num_items": null, "num_structs": null...
hyperswitch_method_common_types_GpayTokenizationData_get_encrypted_token_type
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for GpayTokenizationData pub fn get_encrypted_token_type(&self) -> Result<String, errors::ValidationError> { Ok(self .get_encrypted_google_pay_payment_data_mandatory()? .token_type .clone()) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "GpayTokenizationData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_encrypted_token_type", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_common_types_ApplePayPaymentData_get_encrypted_apple_pay_payment_data_optional
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPaymentData pub fn get_encrypted_apple_pay_payment_data_optional(&self) -> Option<&String> { match self { Self::Encrypted(encrypted_data) => Some(encrypted_data), Self::Decrypted(_) => None, } }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPaymentData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_encrypted_apple_pay_payment_data_optional", "num_enums": null, "num_items": null, "num_...
hyperswitch_method_common_types_ApplePayPaymentData_get_decrypted_apple_pay_payment_data_optional
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPaymentData pub fn get_decrypted_apple_pay_payment_data_optional(&self) -> Option<&ApplePayPredecryptData> { match self { Self::Encrypted(_) => None, Self::Decrypted(decrypted_data) => Some(decrypted_data), }...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPaymentData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_decrypted_apple_pay_payment_data_optional", "num_enums": null, "num_items": null, "num_...
hyperswitch_method_common_types_ApplePayPaymentData_get_encrypted_apple_pay_payment_data_mandatory
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPaymentData pub fn get_encrypted_apple_pay_payment_data_mandatory( &self, ) -> Result<&String, errors::ValidationError> { self.get_encrypted_apple_pay_payment_data_optional() .get_required_value("Encrypted Apple Pay ...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPaymentData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_encrypted_apple_pay_payment_data_mandatory", "num_enums": null, "num_items": null, "num...
hyperswitch_method_common_types_ApplePayPaymentData_get_decrypted_apple_pay_payment_data_mandatory
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPaymentData pub fn get_decrypted_apple_pay_payment_data_mandatory( &self, ) -> Result<&ApplePayPredecryptData, errors::ValidationError> { self.get_decrypted_apple_pay_payment_data_optional() .get_required_value("Decr...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPaymentData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_decrypted_apple_pay_payment_data_mandatory", "num_enums": null, "num_items": null, "num...
hyperswitch_method_common_types_ApplePayPredecryptData_get_four_digit_expiry_year
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPredecryptData pub fn get_four_digit_expiry_year(&self) -> Secret<String> { let mut year = self.application_expiration_year.peek().clone(); if year.len() == 2 { year = format!("20{year}"); } Secret::new(y...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_four_digit_expiry_year", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_common_types_ApplePayPredecryptData_get_two_digit_expiry_year
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPredecryptData pub fn get_two_digit_expiry_year(&self) -> Result<Secret<String>, errors::ValidationError> { let binding = self.application_expiration_year.clone(); let year = binding.peek(); Ok(Secret::new( year....
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_two_digit_expiry_year", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_common_types_ApplePayPredecryptData_get_expiry_date_as_mmyy
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPredecryptData pub fn get_expiry_date_as_mmyy(&self) -> Result<Secret<String>, errors::ValidationError> { let year = self.get_two_digit_expiry_year()?.expose(); let month = self.get_expiry_month()?.expose(); Ok(Secret::new(f...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_expiry_date_as_mmyy", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_common_types_ApplePayPredecryptData_get_expiry_month
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPredecryptData pub fn get_expiry_month(&self) -> Result<Secret<String>, errors::ValidationError> { let month_str = self.application_expiration_month.peek(); let month = month_str .parse::<u8>() .map_err(|_| e...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_expiry_month", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_common_types_ApplePayPredecryptData_get_expiry_date_as_yymm
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for ApplePayPredecryptData pub fn get_expiry_date_as_yymm(&self) -> Result<Secret<String>, errors::ValidationError> { let year = self.get_two_digit_expiry_year()?.expose(); let month = self.get_expiry_month()?.expose(); Ok(Secret::new(f...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_expiry_date_as_yymm", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_common_types_GsmFeatureData_get_retry_feature_data
clm
method
// hyperswitch/crates/common_types/src/domain.rs // impl for GsmFeatureData pub fn get_retry_feature_data(&self) -> Option<RetryFeatureData> { match self { Self::Retry(data) => Some(data.clone()), } }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "GsmFeatureData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_retry_feature_data", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_common_types_RequestExtendedAuthorizationBool_is_true
clm
method
// hyperswitch/crates/common_utils/src/types/primitive_wrappers.rs // impl for RequestExtendedAuthorizationBool pub fn is_true(&self) -> bool { self.0 }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "RequestExtendedAuthorizationBool", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_true", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_common_types_AlwaysEnableOvercaptureBool_is_true
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for AlwaysEnableOvercaptureBool pub fn is_true(&self) -> bool { self.0 }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "AlwaysEnableOvercaptureBool", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_true", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_common_types_SafeString_new
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn new(value: String) -> Result<Self, String> { if contains_potential_xss_or_sqli(&value) { return Err("Input contains potentially malicious content".into()); } Ok(Self(value)) ...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_l...
hyperswitch_method_common_types_SafeString_from_string_slice
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn from_string_slice(value: &str) -> Result<Self, String> { Self::new(value.to_string()) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_string_slice", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitc...
hyperswitch_method_common_types_SafeString_as_str
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn as_str(&self) -> &str { &self.0 }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "as_str", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "star...
hyperswitch_method_common_types_SafeString_into_inner
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn into_inner(self) -> String { self.0 }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_inner", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_common_types_SafeString_is_empty
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn is_empty(&self) -> bool { self.0.is_empty() }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_empty", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "st...
hyperswitch_method_common_types_SafeString_len
clm
method
// hyperswitch/crates/common_types/src/primitive_wrappers.rs // impl for SafeString pub fn len(&self) -> usize { self.0.len() }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "SafeString", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "len", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_l...
hyperswitch_method_common_types_ThreeDSDecision_should_force_3ds_challenge
clm
method
// hyperswitch/crates/common_types/src/three_ds_decision_rule_engine.rs // impl for ThreeDSDecision pub fn should_force_3ds_challenge(self) -> bool { matches!(self, Self::ChallengeRequested) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ThreeDSDecision", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "should_force_3ds_challenge", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_common_types_ThreeDSDecisionRule_get_decision
clm
method
// hyperswitch/crates/common_types/src/three_ds_decision_rule_engine.rs // impl for ThreeDSDecisionRule pub fn get_decision(&self) -> ThreeDSDecision { self.decision }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ThreeDSDecisionRule", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_decision", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_common_types_ConnectorCustomerMap_new
clm
method
// hyperswitch/crates/common_types/src/customers.rs // impl for ConnectorCustomerMap pub fn new( map: std::collections::HashMap<common_utils::id_type::MerchantConnectorAccountId, String>, ) -> Self { Self(map) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "ConnectorCustomerMap", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_cards_CardExpirationYear_two_digits
clm
method
// hyperswitch/crates/cards/src/lib.rs // impl for CardExpirationYear pub fn two_digits(&self) -> String { let year = self.peek() % 100; year.to_string() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "CardExpirationYear", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "two_digits", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_cards_CardExpirationYear_four_digits
clm
method
// hyperswitch/crates/cards/src/lib.rs // impl for CardExpirationYear pub fn four_digits(&self) -> String { self.peek().to_string() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "CardExpirationYear", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "four_digits", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_cards_CardExpiration_is_expired
clm
method
// hyperswitch/crates/cards/src/lib.rs // impl for CardExpiration pub fn is_expired(&self) -> Result<bool, error_stack::Report<errors::ValidationError>> { let current_datetime_utc = date_time::now(); let expiration_month = time::Month::try_from(*self.month.peek()).map_err(|_| { report!(err...
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "CardExpiration", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_expired", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_cards_CardExpiration_get_month
clm
method
// hyperswitch/crates/cards/src/lib.rs // impl for CardExpiration pub fn get_month(&self) -> &CardExpirationMonth { &self.month }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "CardExpiration", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_month", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "star...
hyperswitch_method_cards_CardExpiration_get_year
clm
method
// hyperswitch/crates/cards/src/lib.rs // impl for CardExpiration pub fn get_year(&self) -> &CardExpirationYear { &self.year }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "CardExpiration", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_year", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start...
hyperswitch_method_cards_NetworkToken_get_card_isin
clm
method
// hyperswitch/crates/cards/src/validate.rs // impl for NetworkToken pub fn get_card_isin(&self) -> String { self.0.peek().chars().take(6).collect::<String>() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "NetworkToken", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card_isin", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "st...
hyperswitch_method_cards_NetworkToken_get_extended_card_bin
clm
method
// hyperswitch/crates/cards/src/validate.rs // impl for NetworkToken pub fn get_extended_card_bin(&self) -> String { self.0.peek().chars().take(8).collect::<String>() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "NetworkToken", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_extended_card_bin", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch...
hyperswitch_method_cards_NetworkToken_get_card_no
clm
method
// hyperswitch/crates/cards/src/validate.rs // impl for NetworkToken pub fn get_card_no(&self) -> String { self.0.peek().chars().collect::<String>() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "NetworkToken", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card_no", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "star...
hyperswitch_method_cards_NetworkToken_get_last4
clm
method
// hyperswitch/crates/cards/src/validate.rs // impl for NetworkToken pub fn get_last4(&self) -> String { self.0 .peek() .chars() .rev() .take(4) .collect::<String>() .chars() .rev() .collect::<String>() }
{ "chunk": null, "crate": "cards", "enum_name": null, "file_size": null, "for_type": "NetworkToken", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_last4", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_currency_conversion_ExchangeRates_new
clm
method
// hyperswitch/crates/currency_conversion/src/types.rs // impl for ExchangeRates pub fn new(base_currency: Currency, conversion: HashMap<Currency, CurrencyFactors>) -> Self { Self { base_currency, conversion, } }
{ "chunk": null, "crate": "currency_conversion", "enum_name": null, "file_size": null, "for_type": "ExchangeRates", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_currency_conversion_ExchangeRates_forward_conversion
clm
method
// hyperswitch/crates/currency_conversion/src/types.rs // impl for ExchangeRates pub fn forward_conversion( &self, amt: Decimal, from_currency: Currency, ) -> Result<Decimal, CurrencyConversionError> { let from_factor = self .conversion .get(&from_currency) ...
{ "chunk": null, "crate": "currency_conversion", "enum_name": null, "file_size": null, "for_type": "ExchangeRates", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "forward_conversion", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_currency_conversion_ExchangeRates_backward_conversion
clm
method
// hyperswitch/crates/currency_conversion/src/types.rs // impl for ExchangeRates pub fn backward_conversion( &self, amt: Decimal, to_currency: Currency, ) -> Result<Decimal, CurrencyConversionError> { let to_factor = self .conversion .get(&to_currency) ...
{ "chunk": null, "crate": "currency_conversion", "enum_name": null, "file_size": null, "for_type": "ExchangeRates", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "backward_conversion", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_DBOperation_operation
clm
method
// hyperswitch/crates/diesel_models/src/kv.rs // impl for DBOperation pub fn operation<'a>(&self) -> &'a str { match self { Self::Insert { .. } => "insert", Self::Update { .. } => "update", } }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DBOperation", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "operation", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_DBOperation_table
clm
method
// hyperswitch/crates/diesel_models/src/kv.rs // impl for DBOperation pub fn table<'a>(&self) -> &'a str { match self { Self::Insert { insertable } => match **insertable { Insertable::PaymentIntent(_) => "payment_intent", Insertable::PaymentAttempt(_) => "payment_att...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DBOperation", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "table", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_diesel_models_DBOperation_execute
clm
method
// hyperswitch/crates/diesel_models/src/kv.rs // impl for DBOperation pub async fn execute(self, conn: &PgPooledConn) -> crate::StorageResult<DBResult> { Ok(match self { Self::Insert { insertable } => match *insertable { Insertable::PaymentIntent(a) => { DBResult...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "DBOperation", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "execute", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_TypedSql_to_field_value_pairs
clm
method
// hyperswitch/crates/diesel_models/src/kv.rs // impl for TypedSql pub fn to_field_value_pairs( &self, request_id: String, global_id: String, ) -> crate::StorageResult<Vec<(&str, String)>> { let pushed_at = common_utils::date_time::now_unix_timestamp(); Ok(vec![ ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "TypedSql", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_field_value_pairs", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_diesel_models_ConnectorMandateReferenceId_get_connector_mandate_request_reference_id
clm
method
// hyperswitch/crates/diesel_models/src/payment_attempt.rs // impl for ConnectorMandateReferenceId pub fn get_connector_mandate_request_reference_id(&self) -> Option<String> { self.connector_mandate_request_reference_id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ConnectorMandateReferenceId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_mandate_request_reference_id", "num_enums": null, "num_items": null, ...
hyperswitch_method_diesel_models_ConnectorTokenDetails_get_connector_token_request_reference_id
clm
method
// hyperswitch/crates/diesel_models/src/payment_attempt.rs // impl for ConnectorTokenDetails pub fn get_connector_token_request_reference_id(&self) -> Option<String> { self.connector_token_request_reference_id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ConnectorTokenDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_token_request_reference_id", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_diesel_models_PaymentAttemptUpdateInternal_populate_derived_fields
clm
method
// hyperswitch/crates/diesel_models/src/payment_attempt.rs // impl for PaymentAttemptUpdateInternal pub fn populate_derived_fields(self, source: &PaymentAttempt) -> Self { let mut update_internal = self; update_internal.net_amount = Some( update_internal.amount.unwrap_or(source.amount) ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "populate_derived_fields", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_diesel_models_PaymentAttemptUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_attempt.rs // impl for PaymentAttemptUpdate pub fn apply_changeset(self, source: PaymentAttempt) -> PaymentAttempt { let PaymentAttemptUpdateInternal { amount, net_amount, currency, status, connector_tra...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_PaymentAttemptUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_attempt.rs // impl for PaymentAttemptUpdate pub fn apply_changeset(self, source: PaymentAttempt) -> PaymentAttempt { let PaymentAttemptUpdateInternal { amount, net_amount, currency, status, connector_tra...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_Organization_get_organization_type
clm
method
// hyperswitch/crates/diesel_models/src/organization.rs // impl for Organization pub fn get_organization_type(&self) -> common_enums::OrganizationType { self.organization_type.unwrap_or_default() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Organization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_organization_type", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_Organization_get_organization_type
clm
method
// hyperswitch/crates/diesel_models/src/organization.rs // impl for Organization pub fn get_organization_type(&self) -> common_enums::OrganizationType { self.organization_type.unwrap_or_default() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Organization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_organization_type", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_OrganizationNew_new
clm
method
// hyperswitch/crates/diesel_models/src/organization.rs // impl for OrganizationNew pub fn new( id: id_type::OrganizationId, organization_type: common_enums::OrganizationType, organization_name: Option<String>, ) -> Self { Self { id, organization_name, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "OrganizationNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_OrganizationNew_new
clm
method
// hyperswitch/crates/api_models/src/organization.rs // impl for OrganizationNew pub fn new(org_type: OrganizationType, org_name: Option<String>) -> Self { Self { org_id: id_type::OrganizationId::default(), org_type, org_name, } }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "OrganizationNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_OrganizationNew_new
clm
method
// hyperswitch/crates/diesel_models/src/organization.rs // impl for OrganizationNew pub fn new( id: id_type::OrganizationId, organization_type: common_enums::OrganizationType, organization_name: Option<String>, ) -> Self { Self { id, organization_name, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "OrganizationNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_OrganizationNew_new
clm
method
// hyperswitch/crates/api_models/src/organization.rs // impl for OrganizationNew pub fn new(org_type: OrganizationType, org_name: Option<String>) -> Self { Self { org_id: id_type::OrganizationId::default(), org_type, org_name, } }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "OrganizationNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_diesel_models_MerchantAccount_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_id(&self) -> &common_utils::id_type::MerchantId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_MerchantAccount_get_id
clm
method
// hyperswitch/crates/diesel_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_id(&self) -> &common_utils::id_type::MerchantId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_MerchantAccountUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/merchant_account.rs // impl for MerchantAccountUpdateInternal pub fn apply_changeset(self, source: MerchantAccount) -> MerchantAccount { let Self { merchant_name, merchant_details, return_url, webhook_details, s...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccountUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_MerchantAccountUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/merchant_account.rs // impl for MerchantAccountUpdateInternal pub fn apply_changeset(self, source: MerchantAccount) -> MerchantAccount { let Self { merchant_name, merchant_details, return_url, webhook_details, s...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccountUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_PayoutsUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payouts.rs // impl for PayoutsUpdate pub fn apply_changeset(self, source: Payouts) -> Payouts { let PayoutsUpdateInternal { amount, destination_currency, source_currency, description, recurring, auto...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PayoutsUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_diesel_models_PaymentMethod_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn get_id(&self) -> &id_type::GlobalPaymentMethodId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "...
hyperswitch_method_diesel_models_PaymentMethodNew_get_id
clm
method
// hyperswitch/crates/diesel_models/src/payment_method.rs // impl for PaymentMethodNew pub fn get_id(&self) -> &common_utils::id_type::GlobalPaymentMethodId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_PaymentMethodNew_update_storage_scheme
clm
method
// hyperswitch/crates/diesel_models/src/payment_method.rs // impl for PaymentMethodNew pub fn update_storage_scheme(&mut self, storage_scheme: MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_storage_scheme", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_PaymentMethodUpdate_convert_to_payment_method_update
clm
method
// hyperswitch/crates/diesel_models/src/payment_method.rs // impl for PaymentMethodUpdate pub fn convert_to_payment_method_update( self, storage_scheme: MerchantStorageScheme, ) -> PaymentMethodUpdateInternal { let mut update_internal: PaymentMethodUpdateInternal = self.into(); upda...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "convert_to_payment_method_update", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_diesel_models_PaymentMethodUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_method.rs // impl for PaymentMethodUpdateInternal pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod { let Self { metadata, payment_method_data, last_used_at, network_transaction_id, st...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_PaymentMethodUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_method.rs // impl for PaymentMethodUpdateInternal pub fn apply_changeset(self, source: PaymentMethod) -> PaymentMethod { let Self { metadata, payment_method_data, last_used_at, network_transaction_id, st...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_diesel_models_MerchantConnectorAccount_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_MerchantConnectorAccount_get_id
clm
method
// hyperswitch/crates/diesel_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_MerchantConnectorAccount_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_MerchantConnectorAccount_get_id
clm
method
// hyperswitch/crates/diesel_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_id(&self) -> id_type::MerchantConnectorAccountId { self.id.clone() }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_MerchantConnectorAccountUpdateInternal_create_merchant_connector_account
clm
method
// hyperswitch/crates/diesel_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccountUpdateInternal pub fn create_merchant_connector_account( self, source: MerchantConnectorAccount, ) -> MerchantConnectorAccount { MerchantConnectorAccount { connector_type: s...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccountUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_merchant_connector_account", "num_enums": null, "num_items": null,...
hyperswitch_method_diesel_models_MerchantConnectorAccountUpdateInternal_create_merchant_connector_account
clm
method
// hyperswitch/crates/diesel_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccountUpdateInternal pub fn create_merchant_connector_account( self, source: MerchantConnectorAccount, ) -> MerchantConnectorAccount { MerchantConnectorAccount { connector_type: s...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccountUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_merchant_connector_account", "num_enums": null, "num_items": null,...
hyperswitch_method_diesel_models_ConfigUpdateInternal_create_config
clm
method
// hyperswitch/crates/diesel_models/src/configs.rs // impl for ConfigUpdateInternal pub fn create_config(self, source: Config) -> Config { Config { ..source } }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ConfigUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_config", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_RequiredFromNullableWithDefault<T>_into_inner
clm
method
// hyperswitch/crates/diesel_models/src/lib.rs // impl for RequiredFromNullableWithDefault<T> pub fn into_inner(self) -> T { self.0 }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RequiredFromNullableWithDefault<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_inner", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_diesel_models_RoutingProfileMetadata_metadata_is_advanced_rule_for_payments
clm
method
// hyperswitch/crates/diesel_models/src/routing_algorithm.rs // impl for RoutingProfileMetadata pub fn metadata_is_advanced_rule_for_payments(&self) -> bool { matches!(self.kind, enums::RoutingAlgorithmKind::Advanced) && matches!(self.algorithm_for, enums::TransactionType::Payment) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RoutingProfileMetadata", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "metadata_is_advanced_rule_for_payments", "num_enums": null, "num_items": null, "num_str...
hyperswitch_method_diesel_models_SubscriptionNew_generate_and_set_client_secret
clm
method
// hyperswitch/crates/diesel_models/src/subscription.rs // impl for SubscriptionNew pub fn generate_and_set_client_secret(&mut self) -> Secret<String> { let client_secret = generate_id_with_default_len(&format!("{}_secret", self.id.get_string_repr())); self.client_secret = Some(client_secre...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "SubscriptionNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate_and_set_client_secret", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_diesel_models_SubscriptionUpdate_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/subscription.rs // impl for SubscriptionUpdate pub fn new( connector_subscription_id: Option<String>, payment_method_id: Option<Secret<String>>, status: Option<String>, plan_id: Option<String>, item_price_id: Option<String>, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "SubscriptionUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_SubscriptionUpdate_new
clm
method
// hyperswitch/crates/diesel_models/src/subscription.rs // impl for SubscriptionUpdate pub fn new( connector_subscription_id: Option<String>, payment_method_id: Option<Secret<String>>, status: Option<String>, plan_id: Option<String>, item_price_id: Option<String>, ) -> Self ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "SubscriptionUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_AddressUpdateInternal_create_address
clm
method
// hyperswitch/crates/diesel_models/src/address.rs // impl for AddressUpdateInternal pub fn create_address(self, source: Address) -> Address { Address { city: self.city, country: self.country, line1: self.line1, line2: self.line2, line3: self.line3, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "AddressUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_address", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_diesel_models_UserRole_get_entity_id_and_type
clm
method
// hyperswitch/crates/diesel_models/src/user_role.rs // impl for UserRole pub fn get_entity_id_and_type(&self) -> Option<(String, EntityType)> { match (self.version, self.entity_type, self.role_id.as_str()) { (enums::UserRoleVersion::V1, None, consts::ROLE_ID_ORGANIZATION_ADMIN) => { ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "UserRole", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_entity_id_and_type", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_diesel_models_RefundUpdateInternal_create_refund
clm
method
// hyperswitch/crates/diesel_models/src/refund.rs // impl for RefundUpdateInternal pub fn create_refund(self, source: Refund) -> Refund { Refund { connector_refund_id: self.connector_refund_id, refund_status: self.refund_status.unwrap_or_default(), sent_to_gateway: self.sent...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RefundUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_refund", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_RefundUpdateInternal_create_refund
clm
method
// hyperswitch/crates/diesel_models/src/refund.rs // impl for RefundUpdateInternal pub fn create_refund(self, source: Refund) -> Refund { Refund { connector_refund_id: self.connector_refund_id, refund_status: self.refund_status.unwrap_or_default(), sent_to_gateway: self.sent...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RefundUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_refund", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_diesel_models_RefundUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/refund.rs // impl for RefundUpdate pub fn apply_changeset(self, source: Refund) -> Refund { let RefundUpdateInternal { connector_refund_id, refund_status, sent_to_gateway, refund_error_message, refund_arn, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RefundUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswit...
hyperswitch_method_diesel_models_ProcessTracker_is_valid_business_status
clm
method
// hyperswitch/crates/diesel_models/src/process_tracker.rs // impl for ProcessTracker pub fn is_valid_business_status(&self, valid_statuses: &[&str]) -> bool { valid_statuses.iter().any(|&x| x == self.business_status) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ProcessTracker", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_valid_business_status", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_diesel_models_ProcessTrackerNew_new
clm
method
// hyperswitch/crates/diesel_models/src/process_tracker.rs // impl for ProcessTrackerNew pub fn new<T>( process_tracker_id: impl Into<String>, task: impl Into<String>, runner: ProcessTrackerRunner, tag: impl IntoIterator<Item = impl Into<String>>, tracking_data: T, retry...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ProcessTrackerNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_ProfileUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/business_profile.rs // impl for ProfileUpdateInternal pub fn apply_changeset(self, source: Profile) -> Profile { let Self { profile_name, modified_at, return_url, enable_payment_response_hash, payment_response_h...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ProfileUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_Profile_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/business_profile.rs // impl for Profile pub fn get_id(&self) -> &common_utils::id_type::ProfileId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Profile", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_diesel_models_Profile_get_id
clm
method
// hyperswitch/crates/diesel_models/src/business_profile.rs // impl for Profile pub fn get_id(&self) -> &common_utils::id_type::ProfileId { &self.id }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Profile", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "start_...
hyperswitch_method_diesel_models_ProfileUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/business_profile.rs // impl for ProfileUpdateInternal pub fn apply_changeset(self, source: Profile) -> Profile { let Self { profile_name, modified_at, return_url, enable_payment_response_hash, payment_response_h...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "ProfileUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_diesel_models_RevenueRecoveryAlgorithmData_has_exceeded_monitoring_threshold
clm
method
// hyperswitch/crates/diesel_models/src/business_profile.rs // impl for RevenueRecoveryAlgorithmData pub fn has_exceeded_monitoring_threshold(&self, monitoring_threshold_in_seconds: i64) -> bool { let total_threshold_time = self.monitoring_configured_timestamp + Duration::seconds(monitoring_thresho...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "RevenueRecoveryAlgorithmData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "has_exceeded_monitoring_threshold", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_diesel_models_InvoiceUpdate_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/invoice.rs // impl for InvoiceUpdate pub fn new( payment_method_id: Option<String>, status: Option<common_enums::connector_enums::InvoiceStatus>, connector_invoice_id: Option<common_utils::id_type::InvoiceId>, payment_intent_id: Option...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "InvoiceUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_diesel_models_InvoiceUpdate_new
clm
method
// hyperswitch/crates/diesel_models/src/invoice.rs // impl for InvoiceUpdate pub fn new( amount: Option<MinorUnit>, currency: Option<String>, payment_method_id: Option<String>, status: Option<InvoiceStatus>, connector_invoice_id: Option<common_utils::id_type::InvoiceId>, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "InvoiceUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_diesel_models_HashedApiKey_into_inner
clm
method
// hyperswitch/crates/diesel_models/src/api_keys.rs // impl for HashedApiKey pub fn into_inner(self) -> String { self.0 }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "HashedApiKey", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_inner", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_diesel_models_CustomerNew_update_storage_scheme
clm
method
// hyperswitch/crates/diesel_models/src/customers.rs // impl for CustomerNew pub fn update_storage_scheme(&mut self, storage_scheme: common_enums::MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CustomerNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_storage_scheme", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_diesel_models_CustomerNew_update_storage_scheme
clm
method
// hyperswitch/crates/diesel_models/src/customers.rs // impl for CustomerNew pub fn update_storage_scheme(&mut self, storage_scheme: common_enums::MerchantStorageScheme) { self.updated_by = Some(storage_scheme.to_string()); }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CustomerNew", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_storage_scheme", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_diesel_models_CustomerUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/customers.rs // impl for CustomerUpdateInternal pub fn apply_changeset(self, source: Customer) -> Customer { let Self { name, email, phone, description, phone_country_code, metadata, conn...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CustomerUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_CustomerUpdateInternal_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/customers.rs // impl for CustomerUpdateInternal pub fn apply_changeset(self, source: Customer) -> Customer { let Self { name, email, phone, description, phone_country_code, metadata, conn...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "CustomerUpdateInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_diesel_models_PayoutAttemptUpdate_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payout_attempt.rs // impl for PayoutAttemptUpdate pub fn apply_changeset(self, source: PayoutAttempt) -> PayoutAttempt { let PayoutAttemptUpdateInternal { payout_token, connector_payout_id, status, error_message, ...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "PayoutAttemptUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "apply_changeset", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_diesel_models_Authentication_is_separate_authn_required
clm
method
// hyperswitch/crates/diesel_models/src/authentication.rs // impl for Authentication pub fn is_separate_authn_required(&self) -> bool { self.maximum_supported_version .as_ref() .is_some_and(|version| version.get_major() == 2) }
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Authentication", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_separate_authn_required", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_diesel_models_Authentication_is_jwt_flow
clm
method
// hyperswitch/crates/diesel_models/src/authentication.rs // impl for Authentication pub fn is_jwt_flow(&self) -> CustomResult<bool, ValidationError> { Ok(self .authentication_connector .clone() .map(|connector| { common_enums::AuthenticationConnectors::from_...
{ "chunk": null, "crate": "diesel_models", "enum_name": null, "file_size": null, "for_type": "Authentication", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_jwt_flow", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch...