id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_method_hyperswitch_domain_models_AddressDetails_get_optional_full_name
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/address.rs // impl for AddressDetails pub fn get_optional_full_name(&self) -> Option<Secret<String>> { match (self.first_name.as_ref(), self.last_name.as_ref()) { (Some(first_name), Some(last_name)) => Some(Secret::new(format!( "{}...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AddressDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_optional_full_name", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_AddressDetails_unify_address_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/address.rs // impl for AddressDetails pub fn unify_address_details(&self, other: Option<&Self>) -> Self { if let Some(other) = other { let (first_name, last_name) = if self .first_name .as_ref() .is_...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AddressDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "unify_address_details", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_EncryptedJsonType<T>_serialize_json_bytes
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs // impl for EncryptedJsonType<T> fn serialize_json_bytes(&self) -> CustomResult<Secret<Vec<u8>>, errors::CryptoError> { common_utils::ext_traits::Encode::encode_to_vec(self.inner()) .change_context(errors::CryptoError::E...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "EncryptedJsonType<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "serialize_json_bytes", "num_enums": null, "num_items": null, "num_structs": n...
hyperswitch_method_hyperswitch_domain_models_EncryptedJsonType<T>_deserialize_json_bytes
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs // impl for EncryptedJsonType<T> fn deserialize_json_bytes<S>( bytes: Secret<Vec<u8>>, ) -> CustomResult<Secret<Self, S>, errors::ParsingError> where S: masking::Strategy<Self>, { bytes ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "EncryptedJsonType<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "deserialize_json_bytes", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_EncryptedJsonType<T>_inner
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs // impl for EncryptedJsonType<T> pub fn inner(&self) -> &T { &self.0 }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "EncryptedJsonType<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "inner", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_EncryptedJsonType<T>_into_inner
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/type_encryption.rs // impl for EncryptedJsonType<T> pub fn into_inner(self) -> T { self.0 }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "EncryptedJsonType<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, "re...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_country
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_country(&self) -> Option<common_enums::enums::CountryAlpha2> { self.shipping_details .as_ref() .and_then(|address| address.country) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_country", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_city
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_city(&self) -> Option<String> { self.shipping_details .as_ref() .and_then(|address| address.city.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_city", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_state
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_state(&self) -> Option<Secret<String>> { self.shipping_details .as_ref() .and_then(|address| address.state.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_state", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_origin_zip
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_origin_zip(&self) -> Option<Secret<String>> { self.shipping_details .as_ref() .and_then(|address| address.origin_zip.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_origin_zip", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_zip
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_zip(&self) -> Option<Secret<String>> { self.shipping_details .as_ref() .and_then(|address| address.zip.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_zip", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_address_line1
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_address_line1(&self) -> Option<Secret<String>> { self.shipping_details .as_ref() .and_then(|address| address.line1.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_address_line1", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_L2L3Data_get_shipping_address_line2
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for L2L3Data pub fn get_shipping_address_line2(&self) -> Option<Secret<String>> { self.shipping_details .as_ref() .and_then(|address| address.line2.clone()) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "L2L3Data", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_address_line2", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_ApplePayPredecryptDataInternal_get_four_digit_expiry_year
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ApplePayPredecryptDataInternal fn get_four_digit_expiry_year( &self, ) -> Result<Secret<String>, common_utils::errors::ValidationError> { Ok(Secret::new(format!( "20{}", self.application_expiratio...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptDataInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_four_digit_expiry_year", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_domain_models_ApplePayPredecryptDataInternal_get_expiry_month
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ApplePayPredecryptDataInternal fn get_expiry_month(&self) -> Result<Secret<String>, common_utils::errors::ValidationError> { Ok(Secret::new( self.application_expiration_date .get(2..4) .ok...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ApplePayPredecryptDataInternal", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_expiry_month", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_ConnectorResponseData_with_additional_payment_method_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ConnectorResponseData pub fn with_additional_payment_method_data( additional_payment_method_data: AdditionalPaymentMethodConnectorResponse, ) -> Self { Self { additional_payment_method_data: Some(additional_p...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "with_additional_payment_method_data", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_domain_models_ConnectorResponseData_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ConnectorResponseData pub fn new( additional_payment_method_data: Option<AdditionalPaymentMethodConnectorResponse>, is_overcapture_enabled: Option<primitive_wrappers::OvercaptureEnabledBool>, extended_authorization_r...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorResponseData", "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_method_hyperswitch_domain_models_ConnectorResponseData_get_extended_authorization_response_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ConnectorResponseData pub fn get_extended_authorization_response_data( &self, ) -> Option<&ExtendedAuthorizationResponseData> { self.extended_authorization_response_data.as_ref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_extended_authorization_response_data", "num_enums": null, "num_items": nul...
hyperswitch_method_hyperswitch_domain_models_ConnectorResponseData_is_overcapture_enabled
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ConnectorResponseData pub fn is_overcapture_enabled(&self) -> Option<primitive_wrappers::OvercaptureEnabledBool> { self.is_overcapture_enabled }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_overcapture_enabled", "num_enums": null, "num_items": null, "num_structs"...
hyperswitch_method_hyperswitch_domain_models_ErrorResponse_get_not_implemented
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_data.rs // impl for ErrorResponse pub fn get_not_implemented() -> Self { Self { code: "IR_00".to_string(), message: "This API is under development and will be made available soon.".to_string(), reason: None, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ErrorResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_not_implemented", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_domain_models_ErrorResponse_get_not_implemented
clm
method
// hyperswitch/crates/pm_auth/src/types.rs // impl for ErrorResponse fn get_not_implemented() -> Self { Self { code: "IR_00".to_string(), message: "This API is under development and will be made available soon.".to_string(), reason: None, status_code: http::Statu...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ErrorResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_not_implemented", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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...
hyperswitch_method_hyperswitch_domain_models_Invoice_to_invoice
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/invoice.rs // impl for Invoice pub fn to_invoice( subscription_id: common_utils::id_type::SubscriptionId, merchant_id: common_utils::id_type::MerchantId, profile_id: common_utils::id_type::ProfileId, merchant_connector_id: common_utils...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Invoice", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_invoice", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypersw...
hyperswitch_method_hyperswitch_domain_models_InvoiceUpdateRequest_update_amount_and_currency
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/invoice.rs // impl for InvoiceUpdateRequest pub fn update_amount_and_currency(amount: MinorUnit, currency: String) -> Self { Self::Amount(AmountAndCurrencyUpdate { amount, currency }) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "InvoiceUpdateRequest", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_amount_and_currency", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_InvoiceUpdateRequest_update_connector_and_status
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/invoice.rs // impl for InvoiceUpdateRequest pub fn update_connector_and_status( connector_invoice_id: common_utils::id_type::InvoiceId, status: common_enums::connector_enums::InvoiceStatus, ) -> Self { Self::Connector(ConnectorAndStatusUpd...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "InvoiceUpdateRequest", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_connector_and_status", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_InvoiceUpdateRequest_update_payment_and_status
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/invoice.rs // impl for InvoiceUpdateRequest pub fn update_payment_and_status( payment_method_id: Option<Secret<String>>, payment_intent_id: Option<common_utils::id_type::PaymentId>, status: common_enums::connector_enums::InvoiceStatus, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "InvoiceUpdateRequest", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "update_payment_and_status", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyperswi...
hyperswitch_method_hyperswitch_domain_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": "hyperswitch_domain_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": "hyperswi...
hyperswitch_method_hyperswitch_domain_models_ConnectorCustomerResponseData_new_with_customer_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for ConnectorCustomerResponseData pub fn new_with_customer_id(connector_customer_id: String) -> Self { Self::new(connector_customer_id, None, None, None) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorCustomerResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new_with_customer_id", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_hyperswitch_domain_models_ConnectorCustomerResponseData_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for ConnectorCustomerResponseData pub fn new( connector_customer_id: String, name: Option<String>, email: Option<String>, billing_address: Option<AddressDetails>, ) -> Self { Self { ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ConnectorCustomerResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_domain_models_CaptureSyncResponse_get_amount_captured
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for CaptureSyncResponse pub fn get_amount_captured(&self) -> Option<MinorUnit> { match self { Self::Success { amount, .. } | Self::Error { amount, .. } => *amount, } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CaptureSyncResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_amount_captured", "num_enums": null, "num_items": null, "num_structs": nul...
hyperswitch_method_hyperswitch_domain_models_CaptureSyncResponse_get_connector_response_reference_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for CaptureSyncResponse pub fn get_connector_response_reference_id(&self) -> Option<String> { match self { Self::Success { connector_response_reference_id, .. } => connec...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CaptureSyncResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_response_reference_id", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_domain_models_PaymentsResponseData_get_connector_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for PaymentsResponseData pub fn get_connector_metadata(&self) -> Option<masking::Secret<serde_json::Value>> { match self { Self::TransactionResponse { connector_metadata, .. } ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentsResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_metadata", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_domain_models_PaymentsResponseData_get_network_transaction_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for PaymentsResponseData pub fn get_network_transaction_id(&self) -> Option<String> { match self { Self::TransactionResponse { network_txn_id, .. } => network_txn_id.clone(), _ => None, } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentsResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_network_transaction_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_PaymentsResponseData_get_connector_transaction_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for PaymentsResponseData pub fn get_connector_transaction_id( &self, ) -> Result<String, error_stack::Report<ApiErrorResponse>> { match self { Self::TransactionResponse { resource_id: Re...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentsResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_transaction_id", "num_enums": null, "num_items": null, "num_str...
hyperswitch_method_hyperswitch_domain_models_PaymentsResponseData_merge_transaction_responses
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for PaymentsResponseData pub fn merge_transaction_responses( auth_response: &Self, capture_response: &Self, ) -> Result<Self, error_stack::Report<ApiErrorResponse>> { match (auth_response, capture_response)...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentsResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "merge_transaction_responses", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_domain_models_PaymentsResponseData_get_updated_connector_token_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_response_types.rs // impl for PaymentsResponseData pub fn get_updated_connector_token_details( &self, original_connector_mandate_request_reference_id: Option<String>, ) -> Option<diesel_models::ConnectorTokenDetails> { if let Self::...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentsResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_updated_connector_token_details", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_domain_models_RecoveryPaymentAttempt_get_attempt_triggered_by
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/revenue_recovery.rs // impl for RecoveryPaymentAttempt pub fn get_attempt_triggered_by(&self) -> Option<common_enums::TriggeredBy> { self.feature_metadata.as_ref().and_then(|metadata| { metadata .revenue_recovery .a...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "RecoveryPaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_attempt_triggered_by", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodData_get_payment_method
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for PaymentMethodData pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> { match self { Self::Card(_) | Self::NetworkToken(_) | Self::CardDetailsForNetworkTransactionId(_) => { So...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodData_get_wallet_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for PaymentMethodData pub fn get_wallet_data(&self) -> Option<&WalletData> { if let Self::Wallet(wallet_data) = self { Some(wallet_data) } else { None } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_wallet_data", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodData_is_network_token_payment_method_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for PaymentMethodData pub fn is_network_token_payment_method_data(&self) -> bool { matches!(self, Self::NetworkToken(_)) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_network_token_payment_method_data", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodData_get_card_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for PaymentMethodData pub fn get_card_data(&self) -> Option<&Card> { if let Self::Card(card) = self { Some(card) } else { None } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card_data", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodData_extract_debit_routing_saving_percentage
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for PaymentMethodData pub fn extract_debit_routing_saving_percentage( &self, network: &common_enums::CardNetwork, ) -> Option<f64> { self.get_co_badged_card_data()? .co_badged_card_networks_info ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "extract_debit_routing_saving_percentage", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_domain_models_CardDetailsForNetworkTransactionId_get_nti_and_card_details_for_mit_flow
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for CardDetailsForNetworkTransactionId pub fn get_nti_and_card_details_for_mit_flow( recurring_details: mandates::RecurringDetails, ) -> Option<(api_models::payments::MandateReferenceId, Self)> { let network_transact...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CardDetailsForNetworkTransactionId", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_nti_and_card_details_for_mit_flow", "num_enums": null, "num_i...
hyperswitch_method_hyperswitch_domain_models_WalletData_get_paze_wallet_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for WalletData pub fn get_paze_wallet_data(&self) -> Option<&PazeWalletData> { if let Self::Paze(paze_wallet_data) = self { Some(paze_wallet_data) } else { None } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "WalletData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_paze_wallet_data", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_WalletData_get_apple_pay_wallet_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for WalletData pub fn get_apple_pay_wallet_data(&self) -> Option<&ApplePayWalletData> { if let Self::ApplePay(apple_pay_wallet_data) = self { Some(apple_pay_wallet_data) } else { None } ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "WalletData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_apple_pay_wallet_data", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_WalletData_get_google_pay_wallet_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for WalletData pub fn get_google_pay_wallet_data(&self) -> Option<&GooglePayWalletData> { if let Self::GooglePay(google_pay_wallet_data) = self { Some(google_pay_wallet_data) } else { None ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "WalletData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_google_pay_wallet_data", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_CardDetailsPaymentMethod_to_card_details_from_locker
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for CardDetailsPaymentMethod pub fn to_card_details_from_locker(self) -> payment_methods::CardDetailFromLocker { payment_methods::CardDetailFromLocker { card_number: None, card_holder_name: self.card_hold...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CardDetailsPaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_card_details_from_locker", "num_enums": null, "num_items": null, "num_...
hyperswitch_method_hyperswitch_domain_models_CardDetailsPaymentMethod_get_issuer_country_alpha2
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for CardDetailsPaymentMethod pub fn get_issuer_country_alpha2(self) -> Option<common_enums::CountryAlpha2> { self.issuer_country .as_ref() .map(|c| api_enums::CountryAlpha2::from_str(c)) .tran...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "CardDetailsPaymentMethod", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_issuer_country_alpha2", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_hyperswitch_domain_models_SingleUsePaymentMethodToken_get_single_use_token_from_payment_method_token
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for SingleUsePaymentMethodToken pub fn get_single_use_token_from_payment_method_token( token: Secret<String>, mca_id: id_type::MerchantConnectorAccountId, ) -> Self { Self { token, mer...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "SingleUsePaymentMethodToken", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_single_use_token_from_payment_method_token", "num_enums": null, "num...
hyperswitch_method_hyperswitch_domain_models_SingleUseTokenKey_store_key
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for SingleUseTokenKey pub fn store_key(payment_method_id: &id_type::GlobalPaymentMethodId) -> Self { let new_token = format!("single_use_token_{}", payment_method_id.get_string_repr()); Self(new_token) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "SingleUseTokenKey", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "store_key", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_hyperswitch_domain_models_SingleUseTokenKey_get_store_key
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payment_method_data.rs // impl for SingleUseTokenKey pub fn get_store_key(&self) -> &str { &self.0 }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "SingleUseTokenKey", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_store_key", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_MandateAmountData_get_end_date
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs // impl for MandateAmountData pub fn get_end_date( &self, format: date_time::DateFormat, ) -> error_stack::Result<Option<String>, ParsingError> { self.end_date .map(|date| { date_time::format_date(da...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "MandateAmountData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_end_date", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_MandateAmountData_get_metadata
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/mandates.rs // impl for MandateAmountData 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": "MandateAmountData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_metadata", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_ApplicationResponse<R>_get_json_body
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/api.rs // impl for ApplicationResponse<R> pub fn get_json_body( self, ) -> common_utils::errors::CustomResult<R, common_utils::errors::ValidationError> { match self { Self::Json(body) | Self::JsonWithHeaders((body, _)) => Ok(body), ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "ApplicationResponse<R>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_json_body", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_Relay_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/relay.rs // impl for Relay pub fn new( relay_request: &api_models::relay::RelayRequest, merchant_id: &id_type::MerchantId, profile_id: &id_type::ProfileId, ) -> Self { let relay_id = id_type::RelayId::generate(); Self { ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "Relay", "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_hyperswitch_domain_models_PaymentMethodVaultingData_get_card
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/vault.rs // impl for PaymentMethodVaultingData pub fn get_card(&self) -> Option<&payment_methods::CardDetail> { match self { Self::Card(card) => Some(card), #[cfg(feature = "v2")] Self::NetworkToken(_) => None, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodVaultingData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentMethodVaultingData_get_payment_methods_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/vault.rs // impl for PaymentMethodVaultingData pub fn get_payment_methods_data(&self) -> payment_method_data::PaymentMethodsData { match self { Self::Card(card) => payment_method_data::PaymentMethodsData::Card( payment_method_data:...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentMethodVaultingData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_methods_data", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_hyperswitch_domain_models_AttemptAmountDetails_get_net_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for AttemptAmountDetails pub fn get_net_amount(&self) -> MinorUnit { self.net_amount }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AttemptAmountDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_net_amount", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_AttemptAmountDetails_get_amount_to_capture
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for AttemptAmountDetails pub fn get_amount_to_capture(&self) -> Option<MinorUnit> { self.amount_to_capture }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AttemptAmountDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_amount_to_capture", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_hyperswitch_domain_models_AttemptAmountDetails_get_amount_capturable
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for AttemptAmountDetails pub fn get_amount_capturable(&self) -> MinorUnit { self.amount_capturable }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AttemptAmountDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_amount_capturable", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_hyperswitch_domain_models_AttemptAmountDetails_set_amount_to_capture
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for AttemptAmountDetails pub fn set_amount_to_capture(&mut self, amount_to_capture: MinorUnit) { self.amount_to_capture = Some(amount_to_capture); }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AttemptAmountDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_amount_to_capture", "num_enums": null, "num_items": null, "num_structs": ...
hyperswitch_method_hyperswitch_domain_models_AttemptAmountDetails_validate_amount_to_capture
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for AttemptAmountDetails pub fn validate_amount_to_capture( &self, request_amount_to_capture: MinorUnit, ) -> Result<(), ValidationError> { common_utils::fp_utils::when(request_amount_to_capture > self.g...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "AttemptAmountDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "validate_amount_to_capture", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_payment_method
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_payment_method(&self) -> Option<storage_enums::PaymentMethod> { // TODO: check if we can fix this Some(self.payment_method_type) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_payment_method_type
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_payment_method_type(&self) -> Option<storage_enums::PaymentMethodType> { // TODO: check if we can fix this Some(self.payment_method_subtype) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "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_PaymentAttempt_get_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_id(&self) -> &id_type::GlobalAttemptId { &self.id }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "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": "hype...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_connector_payment_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_connector_payment_id(&self) -> Option<&str> { self.connector_payment_id.as_deref() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_payment_id", "num_enums": null, "num_items": null, "num_structs": nul...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_create_domain_model
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub async fn create_domain_model( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, request: &api_models::payme...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_domain_model", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_proxy_create_domain_model
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub async fn proxy_create_domain_model( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, request: &api_models:...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "proxy_create_domain_model", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_external_vault_proxy_create_domain_model
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub async fn external_vault_proxy_create_domain_model( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, reques...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "external_vault_proxy_create_domain_model", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_create_domain_model_using_record_request
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub async fn create_domain_model_using_record_request( payment_intent: &super::PaymentIntent, cell_id: id_type::CellId, storage_scheme: storage_enums::MerchantStorageScheme, reques...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "create_domain_model_using_record_request", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_attempt_merchant_connector_account_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_attempt_merchant_connector_account_id( &self, ) -> CustomResult< id_type::MerchantConnectorAccountId, errors::api_error_response::ApiErrorResponse, > { let merch...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_attempt_merchant_connector_account_id", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_domain_models_NetAmount_get_surcharge_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_surcharge_amount(&self) -> Option<MinorUnit> { self.surcharge_amount }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_surcharge_amount", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_NetAmount_get_tax_on_surcharge
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_tax_on_surcharge(&self) -> Option<MinorUnit> { self.tax_on_surcharge }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_tax_on_surcharge", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_NetAmount_get_shipping_cost
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_shipping_cost(&self) -> Option<MinorUnit> { self.shipping_cost }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_shipping_cost", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_hyperswitch_domain_models_NetAmount_get_order_tax_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_order_tax_amount(&self) -> Option<MinorUnit> { self.order_tax_amount }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_order_tax_amount", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_NetAmount_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn new( order_amount: MinorUnit, shipping_cost: Option<MinorUnit>, order_tax_amount: Option<MinorUnit>, surcharge_amount: Option<MinorUnit>, tax_on_surcharge: Option<MinorUn...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "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_hyperswitch_domain_models_NetAmount_get_order_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_order_amount(&self) -> MinorUnit { self.order_amount }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_order_amount", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_NetAmount_get_additional_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn get_additional_amount(&self) -> MinorUnit { self.get_total_amount() - self.get_order_amount() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_additional_amount", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_NetAmount_set_order_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn set_order_amount(&mut self, order_amount: MinorUnit) { self.order_amount = order_amount; }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_order_amount", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_domain_models_NetAmount_set_order_tax_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn set_order_tax_amount(&mut self, order_tax_amount: Option<MinorUnit>) { self.order_tax_amount = order_tax_amount; }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_order_tax_amount", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_domain_models_NetAmount_set_surcharge_details
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn set_surcharge_details( &mut self, surcharge_details: Option<router_request_types::SurchargeDetails>, ) { self.surcharge_amount = surcharge_details .clone() .m...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_surcharge_details", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_NetAmount_from_payments_request
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn from_payments_request( payments_request: &api_models::payments::PaymentsRequest, order_amount: MinorUnit, ) -> Self { let surcharge_amount = payments_request .surcharge_d...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_payments_request", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_NetAmount_from_payments_request_and_payment_attempt
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for NetAmount pub fn from_payments_request_and_payment_attempt( payments_request: &api_models::payments::PaymentsRequest, payment_attempt: Option<&PaymentAttempt>, ) -> Option<Self> { let option_order_am...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "NetAmount", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_payments_request_and_payment_attempt", "num_enums": null, "num_items": null, "num_s...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_total_surcharge_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> { self.net_amount.get_total_surcharge_amount() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "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": n...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_total_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_total_amount(&self) -> MinorUnit { self.net_amount.get_total_amount() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_total_amount", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_extract_card_network
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn extract_card_network(&self) -> Option<common_enums::CardNetwork> { self.payment_method_data .as_ref() .and_then(|value| { value .clone() ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "extract_card_network", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_total_surcharge_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_total_surcharge_amount(&self) -> Option<MinorUnit> { self.net_amount.get_total_surcharge_amount() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "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": n...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_total_amount
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_total_amount(&self) -> MinorUnit { self.net_amount.get_total_amount() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_total_amount", "num_enums": null, "num_items": null, "num_structs": null, "re...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_extract_card_network
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn extract_card_network(&self) -> Option<common_enums::CardNetwork> { self.payment_method_data .as_ref() .and_then(|value| { value .clone() ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "extract_card_network", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_set_debit_routing_savings
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn set_debit_routing_savings(&mut self, debit_routing_savings: Option<&MinorUnit>) { self.debit_routing_savings = debit_routing_savings.copied(); }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "set_debit_routing_savings", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentAttempt_get_payment_method_data
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttempt pub fn get_payment_method_data(&self) -> Option<api_models::payments::AdditionalPaymentData> { self.payment_method_data .clone() .and_then(|data| match data { serde...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttempt", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payment_method_data", "num_enums": null, "num_items": null, "num_structs": null...
hyperswitch_method_hyperswitch_domain_models_PaymentAttemptUpdate_to_storage_model
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttemptUpdate pub fn to_storage_model(self) -> diesel_models::PaymentAttemptUpdate { match self { Self::Update { net_amount, currency, status, ...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_storage_model", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_domain_models_PaymentAttemptUpdate_get_debit_routing_savings
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_attempt.rs // impl for PaymentAttemptUpdate pub fn get_debit_routing_savings(&self) -> Option<&MinorUnit> { match self { Self::ResponseUpdate { debit_routing_savings, .. } => debit_routi...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentAttemptUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_debit_routing_savings", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_domain_models_PaymentIntentUpdate_is_confirm_operation
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_intent.rs // impl for PaymentIntentUpdate pub fn is_confirm_operation(&self) -> bool { matches!(self, Self::ConfirmIntent { .. }) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntentUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_confirm_operation", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentIntentUpdate_is_confirm_operation
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_intent.rs // impl for PaymentIntentUpdate pub fn is_confirm_operation(&self) -> bool { matches!(self, Self::ConfirmIntent { .. }) }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntentUpdate", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_confirm_operation", "num_enums": null, "num_items": null, "num_structs": nu...
hyperswitch_method_hyperswitch_domain_models_PaymentIntentFetchConstraints_get_profile_id_list
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_intent.rs // impl for PaymentIntentFetchConstraints pub fn get_profile_id_list(&self) -> Option<Vec<id_type::ProfileId>> { if let Self::List(pi_list_params) = self { pi_list_params.profile_id.clone() } else { N...
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntentFetchConstraints", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_profile_id_list", "num_enums": null, "num_items": null, "num_str...
hyperswitch_method_hyperswitch_domain_models_PaymentIntentFetchConstraints_get_profile_id
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/payments/payment_intent.rs // impl for PaymentIntentFetchConstraints pub fn get_profile_id(&self) -> Option<id_type::ProfileId> { let Self::List(pi_list_params) = self; pi_list_params.profile_id.clone() }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "PaymentIntentFetchConstraints", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_profile_id", "num_enums": null, "num_items": null, "num_structs"...
hyperswitch_method_hyperswitch_domain_models_GetSubscriptionPlansRequest_new
clm
method
// hyperswitch/crates/hyperswitch_domain_models/src/router_request_types/subscriptions.rs // impl for GetSubscriptionPlansRequest pub fn new(limit: Option<u32>, offset: Option<u32>) -> Self { Self { limit, offset } }
{ "chunk": null, "crate": "hyperswitch_domain_models", "enum_name": null, "file_size": null, "for_type": "GetSubscriptionPlansRequest", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "re...