id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
hyperswitch_method_hyperswitch_connectors_TrustpaymentsPaymentResponseData_get_error_reason
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs // impl for TrustpaymentsPaymentResponseData pub fn get_error_reason(&self) -> Option<String> { if !self.errorcode.is_success() { Some(self.errorcode.get_description().to_string()) } else { ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "TrustpaymentsPaymentResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_error_reason", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_connectors_TrustpaymentsErrorResponse_get_connector_error_type
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs // impl for TrustpaymentsErrorResponse pub fn get_connector_error_type(&self) -> errors::ConnectorError { let error_code: TrustpaymentsErrorCode = serde_json::from_str(&format!("\"{}\"", self.code)) ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "TrustpaymentsErrorResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_error_type", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_connectors_TrustpaymentsPaymentResponseData_get_refund_status
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/trustpayments/transformers.rs // impl for TrustpaymentsPaymentResponseData pub fn get_refund_status(&self) -> enums::RefundStatus { match self.errorcode { TrustpaymentsErrorCode::Success => match &self.settlestatus { Some(T...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "TrustpaymentsPaymentResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_refund_status", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_connectors_StoredCredentialMode_get_optional_stored_credential
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs // impl for StoredCredentialMode pub fn get_optional_stored_credential(is_stored_credential: Option<bool>) -> Option<Self> { is_stored_credential.and_then(|is_stored_credential| { if is_stored_credential { ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StoredCredentialMode", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_optional_stored_credential", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_connectors_TransactionType_get_from_capture_method_and_amount_string
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs // impl for TransactionType fn get_from_capture_method_and_amount_string( capture_method: CaptureMethod, amount: &str, ) -> Self { let amount_value = amount.parse::<f64>(); if capture_method == Capture...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "TransactionType", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_from_capture_method_and_amount_string", "num_enums": null, "num_items": null, "nu...
hyperswitch_method_hyperswitch_connectors_veiTransactionSyncResponse {_t_partial_approval(&
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs // impl for veiTransactionSyncResponse { b fn get_partial_approval(&self) -> Option<NuveiPartialApproval> { match &self.partial_approval { Some(partial_approval) => match ( partial_approval.requested_a...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "veiTransactionSyncResponse {", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "t_partial_approval(&", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_connectors_veiPaymentResponseData {_w(
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs // impl for veiPaymentResponseData { b fn new( amount: Option<i64>, is_post_capture_void: bool, payment_method: enums::PaymentMethod, response: &NuveiPaymentsResponse, ) -> Self { Self { ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "veiPaymentResponseData {", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "w(\n", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_connectors_veiPaymentResponseData {_w_from_sync_response(
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nuvei/transformers.rs // impl for veiPaymentResponseData { b fn new_from_sync_response( amount: Option<i64>, is_post_capture_void: bool, payment_method: enums::PaymentMethod, response: &NuveiTransactionSyncResponse, ) -> Se...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "veiPaymentResponseData {", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "w_from_sync_response(\n", "num_enums": null, "num_items": null, "num_structs...
hyperswitch_method_hyperswitch_connectors_NmiMerchantDefinedField_new
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/nmi/transformers.rs // impl for NmiMerchantDefinedField pub fn new(metadata: &serde_json::Value) -> Self { let metadata_as_string = metadata.to_string(); let hash_map: std::collections::BTreeMap<String, serde_json::Value> = serde_j...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "NmiMerchantDefinedField", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_hyperswitch_connectors_NetceteraPreAuthenticationResponseData_get_card_range_if_available
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs // impl for NetceteraPreAuthenticationResponseData pub fn get_card_range_if_available(&self) -> Option<CardRange> { let card_range = self .card_ranges .iter() .max_by_key(|card_range| &card...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "NetceteraPreAuthenticationResponseData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_card_range_if_available", "num_enums": null, "num_items": nu...
hyperswitch_method_hyperswitch_connectors_CardRange_get_three_ds_method_url
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/transformers.rs // impl for CardRange pub fn get_three_ds_method_url(&self) -> Option<String> { self.acs_protocol_versions .iter() .find(|acs_protocol_version| { acs_protocol_version.version == self.hi...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "CardRange", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_three_ds_method_url", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_connectors_SingleOrListElement<T>_get_version_checked
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs // impl for SingleOrListElement<T> fn get_version_checked(message_version: SemanticVersion, value: T) -> Self { if message_version.get_major() >= 2 && message_version.get_minor() >= 3 { Self::List(vec![value]) ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "SingleOrListElement<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_version_checked", "num_enums": null, "num_items": null, "num_structs": nul...
hyperswitch_method_hyperswitch_connectors_SingleOrListElement<T>_new_single
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs // impl for SingleOrListElement<T> pub fn new_single(value: T) -> Self { Self::Single(value) }
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "SingleOrListElement<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new_single", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_connectors_SingleOrListElement<T>_new_list
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs // impl for SingleOrListElement<T> pub fn new_list(value: Vec<T>) -> Self { Self::List(value) }
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "SingleOrListElement<T>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new_list", "num_enums": null, "num_items": null, "num_structs": null, "repo"...
hyperswitch_method_hyperswitch_connectors_ThreeDSRequestor_new
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/netcetera/netcetera_types.rs // impl for ThreeDSRequestor pub fn new( app_ip: Option<std::net::IpAddr>, psd2_sca_exemption_type: Option<common_enums::ScaExemptionType>, force_3ds_challenge: bool, message_version: SemanticVersio...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "ThreeDSRequestor", "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_connectors_StripebillingWebhookBody_get_webhook_object_from_body
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs // impl for StripebillingWebhookBody pub fn get_webhook_object_from_body(body: &[u8]) -> CustomResult<Self, errors::ConnectorError> { let webhook_body: Self = body .parse_struct::<Self>("StripebillingWebhookBo...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripebillingWebhookBody", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_webhook_object_from_body", "num_enums": null, "num_items": null, "num_st...
hyperswitch_method_hyperswitch_connectors_StripebillingInvoiceBody_get_invoice_webhook_data_from_body
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripebilling/transformers.rs // impl for StripebillingInvoiceBody pub fn get_invoice_webhook_data_from_body( body: &[u8], ) -> CustomResult<Self, errors::ConnectorError> { let webhook_body = body .parse_struct::<Self>("Stripeb...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripebillingInvoiceBody", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_invoice_webhook_data_from_body", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_applepay_encrypt_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_applepay_encrypt_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.apple_pay .as_ref() ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_applepay_encrypt_account_id", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_applepay_decrypt_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_applepay_decrypt_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.apple_pay .as_ref() ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_applepay_decrypt_account_id", "num_enums": null, "num_items": null, "...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_no_three_ds_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_no_three_ds_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.card .as_ref() .and_th...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_no_three_ds_account_id", "num_enums": null, "num_items": null, "num_s...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_three_ds_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_three_ds_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.card .as_ref() .and_then(...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_three_ds_account_id", "num_enums": null, "num_items": null, "num_stru...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_skrill_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_skrill_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.skrill .as_ref() .and_then(...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_skrill_account_id", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_interac_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_interac_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.interac .as_ref() .and_the...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_interac_account_id", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_hyperswitch_connectors_PaysafePaymentMethodDetails_get_paysafe_gift_card_account_id
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafePaymentMethodDetails pub fn get_paysafe_gift_card_account_id( &self, currency: Currency, ) -> Result<Secret<String>, errors::ConnectorError> { self.pay_safe_card .as_ref() ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafePaymentMethodDetails", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_paysafe_gift_card_account_id", "num_enums": null, "num_items": null, ...
hyperswitch_method_hyperswitch_connectors_PaysafeStoredCredential_new_customer_initiated_transaction
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafeStoredCredential fn new_customer_initiated_transaction() -> Self { Self { stored_credential_type: PaysafeStoredCredentialType::Adhoc, occurrence: MandateOccurence::Initial, ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafeStoredCredential", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new_customer_initiated_transaction", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_connectors_PaysafeStoredCredential_new_merchant_initiated_transaction
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/paysafe/transformers.rs // impl for PaysafeStoredCredential fn new_merchant_initiated_transaction(initial_transaction_id: String) -> Self { Self { stored_credential_type: PaysafeStoredCredentialType::Topup, occurrence: MandateO...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "PaysafeStoredCredential", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new_merchant_initiated_transaction", "num_enums": null, "num_items": null, "n...
hyperswitch_method_hyperswitch_connectors_StripeChargeEnum_get_overcapture_status
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs // impl for StripeChargeEnum pub fn get_overcapture_status(&self) -> Option<primitive_wrappers::OvercaptureEnabledBool> { match self { Self::ChargeObject(charge_object) => charge_object .payment_metho...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripeChargeEnum", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_overcapture_status", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_connectors_StripeChargeEnum_get_maximum_capturable_amount
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs // impl for StripeChargeEnum pub fn get_maximum_capturable_amount(&self) -> Option<MinorUnit> { match self { Self::ChargeObject(charge_object) => { if let Some(payment_method_details) = charge_object....
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripeChargeEnum", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_maximum_capturable_amount", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_connectors_StripePaymentMethodDetailsResponse_get_additional_payment_method_data
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs // impl for StripePaymentMethodDetailsResponse pub fn get_additional_payment_method_data(&self) -> Option<AdditionalPaymentMethodDetails> { match self { Self::Card { card } => Some(AdditionalPaymentMethodDetails { ...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripePaymentMethodDetailsResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_additional_payment_method_data", "num_enums": null, "num_items":...
hyperswitch_method_hyperswitch_connectors_StripeNextActionResponse_get_url
clm
method
// hyperswitch/crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs // impl for StripeNextActionResponse fn get_url(&self) -> Option<Url> { match self { Self::RedirectToUrl(redirect_to_url) | Self::AlipayHandleRedirect(redirect_to_url) => { Some(redirect_to_url.url.to...
{ "chunk": null, "crate": "hyperswitch_connectors", "enum_name": null, "file_size": null, "for_type": "StripeNextActionResponse", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_url", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_common_enums_CountryAlpha2_from_alpha2_to_alpha3
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for CountryAlpha2 pub const fn from_alpha2_to_alpha3(code: Self) -> CountryAlpha3 { match code { Self::AF => CountryAlpha3::AFG, Self::AX => CountryAlpha3::ALA, Self::AL => CountryAlpha3::ALB, Self::D...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "CountryAlpha2", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_alpha2_to_alpha3", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_common_enums_Country_from_alpha2
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn from_alpha2(code: CountryAlpha2) -> Self { match code { CountryAlpha2::AF => Self::Afghanistan, CountryAlpha2::AX => Self::AlandIslands, CountryAlpha2::AL => Self::Albania, Co...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_alpha2", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "st...
hyperswitch_method_common_enums_Country_to_alpha2
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn to_alpha2(self) -> CountryAlpha2 { match self { Self::Afghanistan => CountryAlpha2::AF, Self::AlandIslands => CountryAlpha2::AX, Self::Albania => CountryAlpha2::AL, Self::Alge...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_alpha2", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "star...
hyperswitch_method_common_enums_Country_from_alpha3
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn from_alpha3(code: CountryAlpha3) -> Self { match code { CountryAlpha3::AFG => Self::Afghanistan, CountryAlpha3::ALA => Self::AlandIslands, CountryAlpha3::ALB => Self::Albania, ...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_alpha3", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "st...
hyperswitch_method_common_enums_Country_to_alpha3
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn to_alpha3(self) -> CountryAlpha3 { match self { Self::Afghanistan => CountryAlpha3::AFG, Self::AlandIslands => CountryAlpha3::ALA, Self::Albania => CountryAlpha3::ALB, Self::A...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_alpha3", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "star...
hyperswitch_method_common_enums_Country_from_numeric
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn from_numeric(code: u32) -> Result<Self, NumericCountryCodeParseError> { match code { 4 => Ok(Self::Afghanistan), 248 => Ok(Self::AlandIslands), 8 => Ok(Self::Albania), 12 => O...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "from_numeric", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "s...
hyperswitch_method_common_enums_Country_to_numeric
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for Country pub const fn to_numeric(self) -> u32 { match self { Self::Afghanistan => 4, Self::AlandIslands => 248, Self::Albania => 8, Self::Algeria => 12, Self::AmericanSamoa => 16, ...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "Country", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_numeric", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", "sta...
hyperswitch_method_common_enums_super::PresenceOfCustomerDuringPayment_as_bool
clm
method
// hyperswitch/crates/common_enums/src/transformers.rs // impl for super::PresenceOfCustomerDuringPayment pub fn as_bool(&self) -> bool { match self { Self::Present => true, Self::Absent => false, } }
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "super::PresenceOfCustomerDuringPayment", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "as_bool", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_common_enums_ApiClientError_is_upstream_timeout
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ApiClientError pub fn is_upstream_timeout(&self) -> bool { self == &Self::RequestTimeoutReceived }
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ApiClientError", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_upstream_timeout", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_common_enums_ApiClientError_is_connection_closed_before_message_could_complete
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ApiClientError pub fn is_connection_closed_before_message_could_complete(&self) -> bool { self == &Self::ConnectionClosedIncompleteMessage }
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ApiClientError", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_connection_closed_before_message_could_complete", "num_enums": null, "num_items": null, "num_...
hyperswitch_method_common_enums_AttemptStatus_is_terminal_status
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for AttemptStatus pub fn is_terminal_status(self) -> bool { match self { Self::RouterDeclined | Self::Charged | Self::AutoRefunded | Self::Voided | Self::VoidedPostCharge | Self::Void...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "AttemptStatus", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_terminal_status", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_common_enums_PaymentResourceUpdateStatus_is_success
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for PaymentResourceUpdateStatus pub fn is_success(&self) -> bool { matches!(self, Self::Success) }
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "PaymentResourceUpdateStatus", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_success", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_common_enums_EventClass_event_types
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for EventClass pub fn event_types(self) -> HashSet<EventType> { match self { Self::Payments => HashSet::from([ EventType::PaymentSucceeded, EventType::PaymentFailed, EventType::PaymentProcessing,...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "EventClass", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "event_types", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswitch", ...
hyperswitch_method_common_enums_IntentStatus_is_in_terminal_state
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for IntentStatus pub fn is_in_terminal_state(self) -> bool { match self { Self::Succeeded | Self::Failed | Self::Cancelled | Self::CancelledPostCapture | Self::PartiallyCaptured | Sel...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "IntentStatus", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "is_in_terminal_state", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyper...
hyperswitch_method_common_enums_IntentStatus_should_force_sync_with_connector
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for IntentStatus pub fn should_force_sync_with_connector(self) -> bool { match self { // Confirm has not happened yet Self::RequiresConfirmation | Self::RequiresPaymentMethod // Once the status is success, f...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "IntentStatus", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "should_force_sync_with_connector", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_common_enums_PaymentMethodType_should_check_for_customer_saved_payment_method_type
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for PaymentMethodType pub fn should_check_for_customer_saved_payment_method_type(self) -> bool { matches!( self, Self::ApplePay | Self::GooglePay | Self::SamsungPay | Self::Paypal | Self::Klarna ) }
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "PaymentMethodType", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "should_check_for_customer_saved_payment_method_type", "num_enums": null, "num_items": null, "...
hyperswitch_method_common_enums_PaymentMethodType_to_display_name
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for PaymentMethodType pub fn to_display_name(&self) -> String { let display_name = match self { Self::Ach => "ACH Direct Debit", Self::Bacs => "BACS Direct Debit", Self::Affirm => "Affirm", Self::AfterpayCle...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "PaymentMethodType", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "to_display_name", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyper...
hyperswitch_method_common_enums_ardNetwork _s_signature_network(
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ardNetwork ub fn is_signature_network(&self) -> bool { match self { Self::Interac | Self::Star | Self::Pulse | Self::Accel | Self::Nyce | Self::CartesBancaires => false, ...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ardNetwork ", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "s_signature_network(", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_common_enums_ardNetwork _s_us_local_network(
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ardNetwork ub fn is_us_local_network(&self) -> bool { match self { Self::Star | Self::Pulse | Self::Accel | Self::Nyce => true, Self::Interac | Self::CartesBancaires | Self::Visa | Self::Mas...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ardNetwork ", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "s_us_local_network(", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypersw...
hyperswitch_method_common_enums_erchantCategoryCode _o_merchant_category_name(
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for erchantCategoryCode ub fn to_merchant_category_name(&self) -> MerchantCategory { match self { Self::Mcc5411 => MerchantCategory::GroceryStoresSupermarkets, Self::Mcc7011 => MerchantCategory::LodgingHotelsMotelsResorts, ...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "erchantCategoryCode ", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "o_merchant_category_name(", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_common_enums_ Self::Extern_r => true, }
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for Self::Extern nticator => true, } } } #[derive( Clone, Copy, Debug, Eq, PartialEq, serde::Serialize, serde::Deserialize, strum::Display, strum::EnumString, )] #[router_derive::diesel_enum(storage_type =
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": " Self::Extern", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "r => true,\n }\n ", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_common_enums_ | Self::Uni_tionService | Self::J
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for | Self::Uni henticationService | Self::Juspaythreedsserver | Self::CtpVisa | Self::Cardinal => false, Self::Gpayments => true, } } pub fn is_jwt_flow(&self) -> bool { match ...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "\n | Self::Uni", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "tionService\n | Self::J", "num_enums": null, "num_items": null, "num_struc...
hyperswitch_method_common_enums_ | Self::Uni_ | Self::
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for | Self::Uni | Self::Juspaythreedsserver | Self::CtpVisa | Self::Gpayments => false, Self::Cardinal => true, } } } #[derive( Clone, Copy, Debug, Eq, Hash, PartialEq...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "\n | Self::Uni", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": " | Self::", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_common_enums_ } pub fn is_fa_bool { sel
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for } pub fn is_fa lf) -> bool { self == Self::Failed } pub fn is_success(self) -> bool { self == Self::Success } } #[derive( Clone, Debug, Eq, Default,
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": " }\n\n pub fn is_fa", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "bool {\n sel", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_common_enums_ } pub fn is_fa_ PartialE
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for } pub fn is_fa sh, PartialEq, serde::Deserialize, serde::Serialize,
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": " }\n\n pub fn is_fa", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": " PartialE", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hypers...
hyperswitch_method_common_enums_ } pub fn is_fa_lay, s
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for } pub fn is_fa m::Display, strum::EnumString, utoipa::ToSchema, Copy, )]
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": " }\n\n pub fn is_fa", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "lay,\n s", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_common_enums_de::Deserialize_erialize, strum::Displ
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for de::Deserialize erde::Serialize, strum::Display, strum::EnumString, )] #[router_derive::diesel_enum(storage_type =
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "de::Deserialize", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "erialize,\n strum::Displ", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_common_enums_n is_terminal_sta_ol {
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for n is_terminal_sta ) -> bool { matches!(self, Self::Success | Self::Failure) } } #[derive( Clone, Copy, Debug, Eq, PartialEq, Hash, serde::Serialize
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "n is_terminal_sta", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "ol {\n ", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswit...
hyperswitch_method_common_enums_n is_terminal_sta_Deserialize,
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for n is_terminal_sta serde::Deserialize, strum::Display, strum::EnumString, strum::EnumIter, )] #[router_deri
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "n is_terminal_sta", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "Deserialize,\n ", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_common_enums_artialEq, serde::Seria_eserial
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for artialEq, serde::Seria erde::Deserialize, Default, ToSchema, )] #[serde(rename_all = "snake_case")] pub enum SurchargeCalculationOverride { /// Skip calcula
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "artialEq, serde::Seria", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "eserial", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyperswi...
hyperswitch_method_common_enums_#[derive( Clone, Copy, D_ialEq,
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for #[derive( Clone, Copy, D q, PartialEq, serde::Deserialize, serde::Serialize, strum::Display, )] #[strum(serialize_all = "snake_case")] #[serde(rename_all = "snake
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "#[derive(\n Clone, Copy, D", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "ialEq, ", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_common_enums_ithPaymentMet_ | Self::ProcessorDeclineIncorrec
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ithPaymentMet | Self::ProcessorDeclineIncorrectData | Self::FrmDecline | Self::HardDecline | Self::SoftDecline => false, } } } #[derive( Clone, Debug, Eq, PartialEq, serde::Deserial...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ithPaymentMet", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": " | Self::ProcessorDeclineIncorrec", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_common_enums_ING" | "DEFAULT_cessRateExploration,
clm
method
// hyperswitch/crates/common_enums/src/enums.rs // impl for ING" | "DEFAULT lf::SuccessRateExploration, "NTW_BASED_ROUTING" => Self::DebitRouting, _ => Self::DefaultFallback, } } } #[derive( Clone, Copy, Debug, Eq, PartialEq, serde::Serialize, serde::Des...
{ "chunk": null, "crate": "common_enums", "enum_name": null, "file_size": null, "for_type": "ING\" | \"DEFAULT", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "cessRateExploration,\n ", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_constraint_graph_Strength_get_resolved_strength
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs // impl for Strength pub fn get_resolved_strength(prev_strength: Self, curr_strength: Self) -> Self { std::cmp::max(prev_strength, curr_strength) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "Strength", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_resolved_strength", "num_enums": null, "num_items": null, "num_structs": null, "...
hyperswitch_method_hyperswitch_constraint_graph_RelationResolution_get_resolved_relation
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs // impl for RelationResolution pub fn get_resolved_relation(prev_relation: Self, curr_relation: Self) -> Self { if prev_relation != curr_relation { Self::Contradiction } else { curr_relation } }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "RelationResolution", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_resolved_relation", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_hyperswitch_constraint_graph_DomainIdentifier_into_inner
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs // impl for DomainIdentifier pub fn into_inner(&self) -> String { self.0.clone() }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DomainIdentifier", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_inner", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_constraint_graph_CycleCheck_new
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/types.rs // impl for CycleCheck pub fn new() -> Self { Self(FxHashMap::default()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "CycleCheck", "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_constraint_graph_ConstraintGraph<V>_get_node_label
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs // impl for ConstraintGraph<V> fn get_node_label(node: &types::Node<V>) -> String { let label = match &node.node_type { types::NodeType::Value(types::NodeValue::Key(key)) => format!("any {}", key.viz()), types::...
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "ConstraintGraph<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_node_label", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_constraint_graph_ConstraintGraph<V>_build_node
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs // impl for ConstraintGraph<V> fn build_node(cg_node_id: types::NodeId, cg_node: &types::Node<V>) -> Node { let viz_node_id = get_node_id(cg_node_id); let viz_node_label = Self::get_node_label(cg_node); node!(viz_node_...
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "ConstraintGraph<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "build_node", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_hyperswitch_constraint_graph_ConstraintGraph<V>_build_edge
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs // impl for ConstraintGraph<V> fn build_edge(cg_edge: &types::Edge) -> Edge { let pred_vertex = get_node_id(cg_edge.pred); let succ_vertex = get_node_id(cg_edge.succ); let arrowhead = match cg_edge.strength { ...
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "ConstraintGraph<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "build_edge", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_hyperswitch_constraint_graph_ConstraintGraph<V>_get_viz_digraph
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs // impl for ConstraintGraph<V> pub fn get_viz_digraph(&self) -> Graph { graph!( strict di id!("constraint_graph"), self.nodes .iter() .map(|(node_id, node)| Self::build_no...
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "ConstraintGraph<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_viz_digraph", "num_enums": null, "num_items": null, "num_structs": null,...
hyperswitch_method_hyperswitch_constraint_graph_ConstraintGraph<V>_get_viz_digraph_string
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/graph.rs // impl for ConstraintGraph<V> pub fn get_viz_digraph_string(&self) -> String { let mut ctx = PrinterContext::default(); let digraph = self.get_viz_digraph(); digraph.print(&mut ctx) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "ConstraintGraph<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_viz_digraph_string", "num_enums": null, "num_items": null, "num_structs"...
hyperswitch_method_hyperswitch_constraint_graph_GraphError<V>_get_analysis_trace
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/error.rs // impl for GraphError<V> pub fn get_analysis_trace(self) -> Result<Weak<AnalysisTrace<V>>, Self> { match self { Self::AnalysisError(trace) => Ok(trace), _ => Err(self), } }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "GraphError<V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_analysis_trace", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_push
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn push(&mut self, elem: V) -> K { let curr_len = self.data.len(); self.data.push(elem); K::with_id(curr_len) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "push", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_get
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn get(&self, idx: K) -> Option<&V> { self.data.get(idx.get_id()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_get_mut
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn get_mut(&mut self, idx: K) -> Option<&mut V> { self.data.get_mut(idx.get_id()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_mut", "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_contains_key
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn contains_key(&self, key: K) -> bool { key.get_id() < self.data.len() }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "contains_key", "num_enums": null, "num_items": null, "num_structs": null, "rep...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_keys
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn keys(&self) -> Keys<K> { Keys::new(0..self.data.len()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "keys", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_into_keys
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn into_keys(self) -> Keys<K> { Keys::new(0..self.data.len()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_keys", "num_enums": null, "num_items": null, "num_structs": null, "repo":...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_values
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn values(&self) -> slice::Iter<'_, V> { self.data.iter() }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "values", "num_enums": null, "num_items": null, "num_structs": null, "repo": "h...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_values_mut
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn values_mut(&mut self) -> slice::IterMut<'_, V> { self.data.iter_mut() }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "values_mut", "num_enums": null, "num_items": null, "num_structs": null, "repo"...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_into_values
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn into_values(self) -> vec::IntoIter<V> { self.data.into_iter() }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "into_values", "num_enums": null, "num_items": null, "num_structs": null, "repo...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_iter
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn iter(&self) -> Iter<'_, K, V> { Iter::new(self.data.iter()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "iter", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hyp...
hyperswitch_method_hyperswitch_constraint_graph_DenseMap<K, V>_iter_mut
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for DenseMap<K, V> pub fn iter_mut(&mut self) -> IterMut<'_, K, V> { IterMut::new(self.data.iter_mut()) }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "DenseMap<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "iter_mut", "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
hyperswitch_method_hyperswitch_constraint_graph_IntoIter<K, V>_new
clm
method
// hyperswitch/crates/hyperswitch_constraint_graph/src/dense_map.rs // impl for IntoIter<K, V> fn new(iter: vec::IntoIter<V>) -> Self { Self { inner: iter.enumerate(), _marker: PhantomData, } }
{ "chunk": null, "crate": "hyperswitch_constraint_graph", "enum_name": null, "file_size": null, "for_type": "IntoIter<K, V>", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "new", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hype...
hyperswitch_method_connector_configs_ConnectorConfig_new
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig fn new() -> Result<Self, String> { let config_str = if cfg!(feature = "production") { include_str!("../toml/production.toml") } else if cfg!(feature = "sandbox") { include_str!("../toml/sandbox....
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "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_connector_configs_ConnectorConfig_get_payout_connector_config
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig pub fn get_payout_connector_config( connector: PayoutConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { PayoutConnectors::Adyen =...
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_payout_connector_config", "num_enums": null, "num_items": null, "num_structs": null, ...
hyperswitch_method_connector_configs_ConnectorConfig_get_authentication_connector_config
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig pub fn get_authentication_connector_config( connector: AuthenticationConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { Authentic...
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_authentication_connector_config", "num_enums": null, "num_items": null, "num_structs":...
hyperswitch_method_connector_configs_ConnectorConfig_get_tax_processor_config
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig pub fn get_tax_processor_config( connector: TaxConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { TaxConnectors::Taxjar => Ok(con...
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_tax_processor_config", "num_enums": null, "num_items": null, "num_structs": null, "r...
hyperswitch_method_connector_configs_ConnectorConfig_get_pm_authentication_processor_config
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig pub fn get_pm_authentication_processor_config( connector: PmAuthConnectors, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { PmAuthConnecto...
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_pm_authentication_processor_config", "num_enums": null, "num_items": null, "num_struct...
hyperswitch_method_connector_configs_ConnectorConfig_get_connector_config
clm
method
// hyperswitch/crates/connector_configs/src/connector.rs // impl for ConnectorConfig pub fn get_connector_config( connector: Connector, ) -> Result<Option<ConnectorTomlConfig>, String> { let connector_data = Self::new()?; match connector { Connector::Aci => Ok(connector_data.aci...
{ "chunk": null, "crate": "connector_configs", "enum_name": null, "file_size": null, "for_type": "ConnectorConfig", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_connector_config", "num_enums": null, "num_items": null, "num_structs": null, "repo"...
hyperswitch_method_common_types_CallbackMapperData_get_network_token_webhook_details
clm
method
// hyperswitch/crates/common_types/src/callback_mapper.rs // impl for CallbackMapperData pub fn get_network_token_webhook_details( &self, ) -> (id_type::MerchantId, String, id_type::CustomerId) { match self { Self::NetworkTokenWebhook { merchant_id, payme...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "CallbackMapperData", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_network_token_webhook_details", "num_enums": null, "num_items": null, "num_structs": nul...
hyperswitch_method_common_types_PaymentMethodsEnabled_get_payment_method
clm
method
// hyperswitch/crates/common_types/src/payment_methods.rs // impl for PaymentMethodsEnabled pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> { Some(self.payment_method_type) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "PaymentMethodsEnabled", "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, "repo":...
hyperswitch_method_common_types_PaymentMethodsEnabled_get_payment_method
clm
method
// hyperswitch/crates/api_models/src/admin.rs // impl for PaymentMethodsEnabled pub fn get_payment_method(&self) -> Option<common_enums::PaymentMethod> { Some(self.payment_method) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "PaymentMethodsEnabled", "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, "repo":...
hyperswitch_method_common_types_PaymentMethodsEnabled_get_payment_method_type
clm
method
// hyperswitch/crates/api_models/src/admin.rs // impl for PaymentMethodsEnabled pub fn get_payment_method_type( &self, ) -> Option<&Vec<payment_methods::RequestPaymentMethodTypes>> { self.payment_method_types.as_ref() }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "PaymentMethodsEnabled", "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, "r...
hyperswitch_method_common_types_RequestPaymentMethodTypes_get_payment_method_type
clm
method
// hyperswitch/crates/common_types/src/payment_methods.rs // impl for RequestPaymentMethodTypes pub fn get_payment_method_type(&self) -> Option<common_enums::PaymentMethodType> { Some(self.payment_method_subtype) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "RequestPaymentMethodTypes", "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_common_types_RequestPaymentMethodTypes_get_payment_method_type
clm
method
// hyperswitch/crates/api_models/src/payment_methods.rs // impl for RequestPaymentMethodTypes pub fn get_payment_method_type(&self) -> Option<api_enums::PaymentMethodType> { Some(self.payment_method_type) }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "RequestPaymentMethodTypes", "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_common_types_AuthenticationConnectorAccountMap_get_click_to_pay_connector_account_id
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for AuthenticationConnectorAccountMap pub fn get_click_to_pay_connector_account_id( &self, ) -> Result<common_utils::id_type::MerchantConnectorAccountId, errors::ValidationError> { self.0 .get(&enums::AuthenticationProduct::Clic...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "AuthenticationConnectorAccountMap", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_click_to_pay_connector_account_id", "num_enums": null, "num_items": null, ...
hyperswitch_method_common_types_MerchantCountryCode_get_country_code
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for MerchantCountryCode pub fn get_country_code(&self) -> String { self.0.clone() }
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "MerchantCountryCode", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "get_country_code", "num_enums": null, "num_items": null, "num_structs": null, "repo": "hy...
hyperswitch_method_common_types_MerchantCountryCode_validate_and_get_country_from_merchant_country_code
clm
method
// hyperswitch/crates/common_types/src/payments.rs // impl for MerchantCountryCode pub fn validate_and_get_country_from_merchant_country_code( &self, ) -> errors::CustomResult<common_enums::Country, errors::ValidationError> { let country_code = self.get_country_code(); let code = country_co...
{ "chunk": null, "crate": "common_types", "enum_name": null, "file_size": null, "for_type": "MerchantCountryCode", "function_name": null, "is_async": null, "is_pub": null, "lines": null, "method_name": "validate_and_get_country_from_merchant_country_code", "num_enums": null, "num_items": null, ...