id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_method_common_utils_GlobalPaymentMethodId_generate
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/payment_methods.rs // impl for GlobalPaymentMethodId pub fn generate(cell_id: &CellId) -> error_stack::Result<Self, GlobalPaymentMethodIdError> { let global_id = GlobalId::generate(cell_id, GlobalEntity::PaymentMethod); Ok(Self(global_id)) }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalPaymentMethodId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_common_utils_GlobalPaymentMethodId_get_string_repr
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/payment_methods.rs // impl for GlobalPaymentMethodId pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalPaymentMethodId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_string_repr", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_common_utils_GlobalPaymentMethodId_generate_from_string
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/payment_methods.rs // impl for GlobalPaymentMethodId pub fn generate_from_string(value: String) -> CustomResult<Self, GlobalPaymentMethodIdError> { let id = GlobalId::from_string(value.into()) .change_context(GlobalPaymentMethodIdError::Const...
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalPaymentMethodId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate_from_string", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_common_utils_GlobalRefundId_get_string_repr
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/refunds.rs // impl for GlobalRefundId pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalRefundId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_string_repr", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_common_utils_GlobalRefundId_generate
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/refunds.rs // impl for GlobalRefundId pub fn generate(cell_id: &crate::id_type::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Refund); Self(global_id) }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalRefundId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_common_utils_GlobalTokenId_get_string_repr
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/token.rs // impl for GlobalTokenId pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalTokenId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_string_repr", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswit...
hyperswitch_method_common_utils_GlobalTokenId_from_string
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/token.rs // impl for GlobalTokenId pub fn from_string(token_string: &str) -> CustomResult<Self, ValidationError> { let token = super::GlobalId::from_string(Cow::Owned(token_string.to_string())) .change_context(ValidationError::IncorrectValueP...
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalTokenId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_string", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch",...
hyperswitch_method_common_utils_GlobalTokenId_generate
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/token.rs // impl for GlobalTokenId pub fn generate(cell_id: &crate::id_type::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Token); Self(global_id) }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalTokenId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_common_utils_GlobalCustomerId_get_string_repr
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/customer.rs // impl for GlobalCustomerId pub fn get_string_repr(&self) -> &str { self.0.get_string_repr() }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalCustomerId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_string_repr", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_common_utils_GlobalCustomerId_generate
clm
method
// hyperswitch/crates/common_utils/src/id_type/global_id/customer.rs // impl for GlobalCustomerId pub fn generate(cell_id: &crate::id_type::CellId) -> Self { let global_id = super::GlobalId::generate(cell_id, super::GlobalEntity::Customer); Self(global_id) }
{ "chunk": null, "crate": "common_utils", "enum_name": null, "file_size": null, "for_type": "GlobalCustomerId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch",...
hyperswitch_method_hyperswitch_domain_models_Tokenization_is_disabled
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/tokenization.rs // impl for Tokenization pub fn is_disabled(&self) -> bool { self.flag == common_enums::TokenizationFlag::Disabled }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Tokenization", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_disabled", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_hyperswitch_domain_models_ResponseId_get_connector_transaction_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_request_types.rs // impl for ResponseId pub fn get_connector_transaction_id( &self, ) -> errors::CustomResult<String, errors::ValidationError> { match self { Self::ConnectorTransactionId(txn_id) => Ok(txn_id.to_string()), ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ResponseId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_transaction_id", "num_enums": null, "num_items": null, "num_structs": nul...
hyperswitch_method_hyperswitch_domain_models_SurchargeDetails_get_total_surcharge_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_request_types.rs // impl for SurchargeDetails pub fn get_total_surcharge_amount(&self) -> MinorUnit { self.surcharge_amount + self.tax_on_surcharge_amount }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "SurchargeDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_total_surcharge_amount", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_CallbackMapper_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/callback_mapper.rs // impl for CallbackMapper pub fn new( id: String, callback_mapper_id_type: common_enums::CallbackMapperIdType, data: CallbackMapperData, created_at: time::PrimitiveDateTime, last_modified_at: time::Primitive...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CallbackMapper", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypersw...
hyperswitch_method_hyperswitch_domain_models_VaultId_get_string_repr
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for VaultId pub fn get_string_repr(&self) -> &String { &self.0 }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "VaultId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_string_repr", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_hyperswitch_domain_models_VaultId_generate
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for VaultId pub fn generate(id: String) -> Self { Self(id) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "VaultId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "generate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswit...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyper...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_get_payment_methods_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn get_payment_methods_data( &self, ) -> Option<domain_payment_method_data::PaymentMethodsData> { self.payment_method_data .clone() .map(|value| value.into_inner().expose()) ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_methods_data", "num_enums": null, "num_items": null, "num_structs": null...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_get_payment_method_type
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn get_payment_method_type(&self) -> Option<storage_enums::PaymentMethod> { self.payment_method_type }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_type", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_get_payment_method_subtype
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn get_payment_method_subtype(&self) -> Option<storage_enums::PaymentMethodType> { self.payment_method_subtype }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_subtype", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_get_common_mandate_reference
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn get_common_mandate_reference(&self) -> Result<CommonMandateReference, ParsingError> { if let Some(value) = &self.connector_mandate_details { Ok(value.clone()) } else { Ok(Comm...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_common_mandate_reference", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_set_payment_method_type
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn set_payment_method_type(&mut self, payment_method_type: common_enums::PaymentMethod) { self.payment_method_type = Some(payment_method_type); }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_payment_method_type", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_PaymentMethod_set_payment_method_subtype
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethod pub fn set_payment_method_subtype( &mut self, payment_method_subtype: common_enums::PaymentMethodType, ) { self.payment_method_subtype = Some(payment_method_subtype); }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_payment_method_subtype", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodSession_apply_changeset
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_methods.rs // impl for PaymentMethodSession pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self { let Self { id, customer_id, billing, psp_tokenization, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodSession", "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_hyperswitch_domain_models_PaymentMethodSession_apply_changeset
clm
method
// hyperswitch/crates/diesel_models/src/payment_methods_session.rs // impl for PaymentMethodSession pub fn apply_changeset(self, update_session: PaymentMethodsSessionUpdateInternal) -> Self { let Self { id, customer_id, billing, psp_tokenization, netw...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodSession", "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_hyperswitch_domain_models_PaymentAddress_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn new( shipping: Option<Address>, billing: Option<Address>, payment_method_billing: Option<Address>, should_unify_address: Option<bool>, ) -> Self { // billing -> .billing,...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypersw...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_get_shipping
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn get_shipping(&self) -> Option<&Address> { self.shipping.as_ref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_get_payment_method_billing
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn get_payment_method_billing(&self) -> Option<&Address> { self.unified_payment_method_billing.as_ref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_billing", "num_enums": null, "num_items": null, "num_structs": n...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_unify_with_payment_method_data_billing
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn unify_with_payment_method_data_billing( self, payment_method_data_billing: Option<Address>, ) -> Self { // Unify the billing details with `payment_method_data.billing_details` le...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "unify_with_payment_method_data_billing", "num_enums": null, "num_items": null, "num...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_unify_with_payment_data_billing
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn unify_with_payment_data_billing( self, other_payment_method_billing: Option<Address>, ) -> Self { let unified_payment_method_billing = self .get_payment_method_billing() ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "unify_with_payment_data_billing", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_get_request_payment_method_billing
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn get_request_payment_method_billing(&self) -> Option<&Address> { self.payment_method_billing.as_ref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_request_payment_method_billing", "num_enums": null, "num_items": null, "num_str...
hyperswitch_method_hyperswitch_domain_models_PaymentAddress_get_payment_billing
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_address.rs // impl for PaymentAddress pub fn get_payment_billing(&self) -> Option<&Address> { self.billing.as_ref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAddress", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_billing", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyp...
hyperswitch_method_hyperswitch_domain_models_MerchantAccount_get_org_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_org_id(&self) -> &common_utils::id_type::OrganizationId { &self.organization_id }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_org_id", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_MerchantAccount_get_merchant_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_merchant_details(&self) -> &OptionalEncryptableValue { &self.merchant_details }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_merchant_details", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_MerchantAccount_get_merchant_tax_registration_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_merchant_tax_registration_id(&self) -> Option<Secret<String>> { self.merchant_details.as_ref().and_then(|details| { details .get_inner() .peek() ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_merchant_tax_registration_id", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_MerchantAccount_is_platform_account
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn is_platform_account(&self) -> bool { matches!( self.merchant_account_type, common_enums::MerchantAccountType::Platform ) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_platform_account", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyp...
hyperswitch_method_hyperswitch_domain_models_MerchantAccount_get_compatible_connector
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_account.rs // impl for MerchantAccount pub fn get_compatible_connector(&self) -> Option<api_models::enums::Connector> { let metadata: Option<api_models::admin::MerchantAccountMetadata> = self.metadata.as_ref().and_then(|meta| { ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_compatible_connector", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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, "re...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_account_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_account_details( &self, ) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError> { use common_utils::ext_traits::ValueE...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_account_details", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_wallets_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_wallets_details(&self) -> Option<Secret<Value>> { self.connector_wallets_details.as_deref().cloned() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_wallets_details", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_test_mode
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_test_mode(&self) -> Option<bool> { todo!() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_test_mode", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_name_as_string
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_name_as_string(&self) -> String { self.connector_name.clone().to_string() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_name_as_string", "num_enums": null, "num_items": null, "num...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_metadata(&self) -> Option<pii::SecretSerdeValue> { self.metadata.clone() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_metadata", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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, "re...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccountTypeDetails_get_mca_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccountTypeDetails pub fn get_mca_id(&self) -> Option<id_type::MerchantConnectorAccountId> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => { So...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccountTypeDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_mca_id", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccountTypeDetails_get_inner_db_merchant_connector_account
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccountTypeDetails pub fn get_inner_db_merchant_connector_account(&self) -> Option<&MerchantConnectorAccount> { match self { Self::MerchantConnectorAccount(merchant_connector_account) => {...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccountTypeDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_inner_db_merchant_connector_account", "num_enums": null, "nu...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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, "re...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_account_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_account_details( &self, ) -> error_stack::Result<router_data::ConnectorAuthType, common_utils::errors::ParsingError> { use common_utils::ext_traits::ValueE...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_account_details", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_wallets_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_wallets_details(&self) -> Option<Secret<Value>> { self.connector_wallets_details.as_deref().cloned() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_wallets_details", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_test_mode
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_test_mode(&self) -> Option<bool> { todo!() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_test_mode", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_name_as_string
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_name_as_string(&self) -> String { self.connector_name.clone().to_string() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_name_as_string", "num_enums": null, "num_items": null, "num...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_metadata(&self) -> Option<pii::SecretSerdeValue> { self.metadata.clone() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_metadata", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_is_disabled
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn is_disabled(&self) -> bool { self.disabled.unwrap_or(false) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_disabled", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_connector_name
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_connector_name(&self) -> common_enums::connector_enums::Connector { self.connector_name }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_name", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_retry_threshold
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_retry_threshold(&self) -> Option<u16> { self.feature_metadata .as_ref() .and_then(|metadata| metadata.revenue_recovery.as_ref()) .map(|recovery| ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_retry_threshold", "num_enums": null, "num_items": null, "num_structs"...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_payment_merchant_connector_account_id_using_account_reference_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_payment_merchant_connector_account_id_using_account_reference_id( &self, account_reference_id: String, ) -> Option<id_type::MerchantConnectorAccountId> { self.fe...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_merchant_connector_account_id_using_account_reference_id", "num_e...
hyperswitch_method_hyperswitch_domain_models_MerchantConnectorAccount_get_account_reference_id_using_payment_merchant_connector_account_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for MerchantConnectorAccount pub fn get_account_reference_id_using_payment_merchant_connector_account_id( &self, payment_merchant_connector_account_id: id_type::MerchantConnectorAccountId, ) -> Option<String> ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantConnectorAccount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_account_reference_id_using_payment_merchant_connector_account_id", "num_e...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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, "re...
hyperswitch_method_hyperswitch_domain_models_FlattenedPaymentMethodsEnabled_from_payment_connectors_list
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_connector_account.rs // impl for FlattenedPaymentMethodsEnabled pub fn from_payment_connectors_list(payment_connectors: Vec<MerchantConnectorAccount>) -> Self { let payment_methods_enabled_flattened_with_connector = payment_connectors .in...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "FlattenedPaymentMethodsEnabled", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_payment_connectors_list", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_id(&self) -> &id_type::GlobalPaymentId { &self.id }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "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": "hyper...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_create_start_redirection_url
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn create_start_redirection_url( &self, base_url: &str, publishable_key: String, ) -> CustomResult<url::Url, errors::api_error_response::ApiErrorResponse> { let start_redirection_url = &for...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_start_redirection_url", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_request_extended_authorization_bool_if_connector_supports
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_request_extended_authorization_bool_if_connector_supports( &self, connector: common_enums::connector_enums::Connector, always_request_extended_authorization_optional: Option<AlwaysRequestExtende...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_request_extended_authorization_bool_if_connector_supports", "num_enums": null, "nu...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_enable_overcapture_bool_if_connector_supports
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_enable_overcapture_bool_if_connector_supports( &self, connector: common_enums::connector_enums::Connector, always_enable_overcapture: Option<primitive_wrappers::AlwaysEnableOvercaptureBool>, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_enable_overcapture_bool_if_connector_supports", "num_enums": null, "num_items": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_create_finish_redirection_url
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn create_finish_redirection_url( &self, base_url: &str, publishable_key: &str, ) -> CustomResult<url::Url, errors::api_error_response::ApiErrorResponse> { let finish_redirection_url = form...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_finish_redirection_url", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_parse_and_get_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn parse_and_get_metadata<T>( &self, type_name: &'static str, ) -> CustomResult<Option<T>, common_utils::errors::ParsingError> where T: for<'de> masking::Deserialize<'de>, { self.me...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "parse_and_get_metadata", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_merge_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn merge_metadata( &self, request_metadata: Value, ) -> Result<Value, common_utils::errors::ParsingError> { if !request_metadata.is_null() { match (&self.metadata, &request_metadata) { ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "merge_metadata", "num_enums": null, "num_items": null, "num_structs": null, "repo"...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_extract_connector_customer_id_from_payment_intent
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn extract_connector_customer_id_from_payment_intent( &self, ) -> Result<String, common_utils::errors::ValidationError> { self.feature_metadata .as_ref() .and_then(|metadata| metada...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "extract_connector_customer_id_from_payment_intent", "num_enums": null, "num_items": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_payment_method_sub_type
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent fn get_payment_method_sub_type(&self) -> Option<common_enums::PaymentMethodType> { self.feature_metadata .as_ref() .and_then(|metadata| metadata.get_payment_method_sub_type()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_sub_type", "num_enums": null, "num_items": null, "num_structs": n...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_payment_method_type
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent fn get_payment_method_type(&self) -> Option<common_enums::PaymentMethod> { self.feature_metadata .as_ref() .and_then(|metadata| metadata.get_payment_method_type()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_type", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_connector_customer_id_from_feature_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_connector_customer_id_from_feature_metadata(&self) -> Option<String> { self.feature_metadata .as_ref() .and_then(|metadata| metadata.payment_revenue_recovery_metadata.as_ref()) ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_customer_id_from_feature_metadata", "num_enums": null, "num_items": null...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_billing_merchant_connector_account_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_billing_merchant_connector_account_id( &self, ) -> Option<id_type::MerchantConnectorAccountId> { self.feature_metadata.as_ref().and_then(|feature_metadata| { feature_metadata.get_billing...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_billing_merchant_connector_account_id", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_request_incremental_authorization_value
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent fn get_request_incremental_authorization_value( request: &api_models::payments::PaymentsCreateIntentRequest, ) -> CustomResult< common_enums::RequestIncrementalAuthorization, errors::api_error_response...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_request_incremental_authorization_value", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_create_domain_model_from_request
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub async fn create_domain_model_from_request( payment_id: &id_type::GlobalPaymentId, merchant_context: &merchant_context::MerchantContext, profile: &business_profile::Profile, request: api_models:...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_domain_model_from_request", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_revenue_recovery_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_revenue_recovery_metadata( &self, ) -> Option<diesel_models::types::PaymentRevenueRecoveryMetadata> { self.feature_metadata .as_ref() .and_then(|feature_metadata| feature_met...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_revenue_recovery_metadata", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_feature_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_feature_metadata(&self) -> Option<FeatureMetadata> { self.feature_metadata.clone() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_feature_metadata", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_create_revenue_recovery_attempt_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn create_revenue_recovery_attempt_data( &self, revenue_recovery_metadata: api_models::payments::PaymentRevenueRecoveryMetadata, billing_connector_account: &merchant_connector_account::MerchantConnecto...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_revenue_recovery_attempt_data", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_optional_customer_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_optional_customer_id( &self, ) -> CustomResult<Option<id_type::CustomerId>, common_utils::errors::ValidationError> { self.customer_id .as_ref() .map(|customer_id| id_type::Cu...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_optional_customer_id", "num_enums": null, "num_items": null, "num_structs": null...
hyperswitch_method_hyperswitch_domain_models_PaymentIntent_get_currency
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentIntent pub fn get_currency(&self) -> storage_enums::Currency { self.amount_details.currency }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntent", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_currency", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_HeaderPayload_with_source
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for HeaderPayload pub fn with_source(payment_confirm_source: common_enums::PaymentSource) -> Self { Self { payment_confirm_source: Some(payment_confirm_source), ..Default::default() } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "HeaderPayload", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "with_source", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_hyperswitch_domain_models_PaymentConfirmData<F>_get_connector_customer_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentConfirmData<F> pub fn get_connector_customer_id( &self, customer: Option<&customer::Customer>, merchant_connector_account: &MerchantConnectorAccountTypeDetails, ) -> Option<String> { match merchant_co...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentConfirmData<F>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_customer_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_PaymentConfirmData<F>_update_payment_method_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentConfirmData<F> pub fn update_payment_method_data( &mut self, payment_method_data: payment_method_data::PaymentMethodData, ) { self.payment_method_data = Some(payment_method_data); }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentConfirmData<F>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_payment_method_data", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_PaymentConfirmData<F>_update_payment_method_and_pm_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentConfirmData<F> pub fn update_payment_method_and_pm_id( &mut self, payment_method_id: id_type::GlobalPaymentMethodId, payment_method: payment_methods::PaymentMethod, ) { self.payment_attempt.payment_me...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentConfirmData<F>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_payment_method_and_pm_id", "num_enums": null, "num_items": null, "num...
hyperswitch_method_hyperswitch_domain_models_PaymentStatusData<F>_get_payment_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentStatusData<F> pub fn get_payment_id(&self) -> &id_type::GlobalPaymentId { &self.payment_intent.id }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentStatusData<F>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_id", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentAttemptRecordData<F>_get_updated_feature_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for PaymentAttemptRecordData<F> pub fn get_updated_feature_metadata( &self, ) -> CustomResult<Option<FeatureMetadata>, errors::api_error_response::ApiErrorResponse> { let payment_intent_feature_metadata = self.payment_intent.ge...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptRecordData<F>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_updated_feature_metadata", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_domain_models_VaultOperation_get_updated_vault_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for VaultOperation pub fn get_updated_vault_data( existing_vault_data: Option<&Self>, payment_method_data: &payment_method_data::PaymentMethodData, ) -> Option<Self> { match (existing_vault_data, payment_method_data) { ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "VaultOperation", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_updated_vault_data", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_VaultData_get_card_vault_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for VaultData pub fn get_card_vault_data(&self) -> Option<payment_method_data::Card> { match self { Self::Card(card_data) => Some(card_data.clone()), Self::NetworkToken(_network_token_data) => None, Self...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "VaultData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card_vault_data", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_hyperswitch_domain_models_VaultData_get_network_token_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments.rs // impl for VaultData pub fn get_network_token_data(&self) -> Option<payment_method_data::NetworkTokenData> { match self { Self::Card(_card_data) => None, Self::NetworkToken(network_token_data) => Some(network_token_data.cl...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "VaultData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_network_token_data", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_hyperswitch_domain_models_MerchantContext_get_merchant_account
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_context.rs // impl for MerchantContext pub fn get_merchant_account(&self) -> &MerchantAccount { match self { Self::NormalMerchant(merchant_account) => &merchant_account.0, } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantContext", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_merchant_account", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_MerchantContext_get_merchant_key_store
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/merchant_context.rs // impl for MerchantContext pub fn get_merchant_key_store(&self) -> &MerchantKeyStore { match self { Self::NormalMerchant(merchant_account) => &merchant_account.1, } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MerchantContext", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_merchant_key_store", "num_enums": null, "num_items": null, "num_structs": null...
hyperswitch_method_hyperswitch_domain_models_RemoteStorageObject<T>_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/lib.rs // impl for RemoteStorageObject<T> pub fn get_id(&self) -> String { match self { Self::ForeignID(id) => id.clone(), Self::Object(i) => i.foreign_id(), } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "RemoteStorageObject<T>", "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_method_hyperswitch_domain_models_Connectors_get_connector_params
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/connector_endpoints.rs // impl for Connectors pub fn get_connector_params( &self, connector: connector_enums::Connector, ) -> CustomResult<ConnectorParams, api_error_response::ApiErrorResponse> { match connector { connector_enu...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Connectors", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_params", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_NoParams_validate
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/connector_endpoints.rs // impl for NoParams pub fn validate(&self, _parent_field: &str) -> Result<(), ApplicationError> { Ok(()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NoParams", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "validate", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_hyperswitch_domain_models_ClientSecret_get_subscription_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/subscription.rs // impl for ClientSecret pub fn get_subscription_id(&self) -> error_stack::Result<String, ApiErrorResponse> { let sub_id = self .0 .split(SECRET_SPLIT) .next() .ok_or(ApiErrorResponse::MissingReq...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ClientSecret", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_subscription_id", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_hyperswitch_domain_models_ClientSecret_new
clm
method
// hyperswitch/crates/api_models/src/subscription.rs // impl for ClientSecret pub fn new(secret: String) -> Self { Self(secret) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ClientSecret", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswit...
hyperswitch_method_hyperswitch_domain_models_Subscription_generate_and_set_client_secret
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/subscription.rs // impl for Subscription 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(cli...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Subscription", "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":...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyp...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyp...
hyperswitch_method_hyperswitch_domain_models_Address_unify_address
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/address.rs // impl for Address pub fn unify_address(&self, other: Option<&Self>) -> Self { let other_address_details = other.and_then(|address| address.address.as_ref()); Self { address: self .address .as_re...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Address", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "unify_address", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...