id
stringlengths
11
116
type
stringclasses
1 value
granularity
stringclasses
4 values
content
stringlengths
16
477k
metadata
dict
fn_clm_router_get_default_payment_info_7918136725039118747
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/custombilling fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_7918136725039118747
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/custombilling fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_7918136725039118747
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/custombilling // Implementation of CustombillingTest for utils::Connector fn get_name(&self) -> String { "custombilling".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_7918136725039118747
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/custombilling // Implementation of CustombillingTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Custombilling; api::ConnectorData { connector: Box::new(Custombilling::new()), connector_name: types::Connector::Custombilling, get_token: types::api::GetToken::Connector, merchant_connector_id: None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_router_get_auth_token_7918136725039118747
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/custombilling // Implementation of CustombillingTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .custombilling .expect("Missing connector authentication configuration").into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_8833710052355924707
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/silverflow fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_8833710052355924707
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/silverflow fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_8833710052355924707
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/silverflow // Implementation of SilverflowTest for utils::Connector fn get_name(&self) -> String { "silverflow".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_8833710052355924707
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/silverflow // Implementation of SilverflowTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Silverflow; utils::construct_connector_data_old( Box::new(Silverflow::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_8833710052355924707
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/silverflow // Implementation of SilverflowTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .silverflow .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_payment_info_2575513157601210764
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/cashtocode // Inherent implementation for CashtocodeTest fn get_payment_info() -> Option<utils::PaymentInfo> { Some(utils::PaymentInfo { address: Some(types::PaymentAddress::new( None, Some(Address { address: Some(AddressDetails { country: Some(api_models::enums::CountryAlpha2::US), ..Default::default() }), phone: None, email: None, }), None, None, )), ..Default::default() }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 341, "total_crates": null }
fn_clm_router_get_payment_authorize_data_2575513157601210764
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/cashtocode // Inherent implementation for CashtocodeTest fn get_payment_authorize_data( payment_method_type: Option<enums::PaymentMethodType>, payment_method_data: domain::PaymentMethodData, ) -> Option<types::PaymentsAuthorizeData> { let cust_id = id_type::CustomerId::try_from(std::borrow::Cow::from("John Doe")); Some(types::PaymentsAuthorizeData { amount: 1000, currency: enums::Currency::EUR, payment_method_data, confirm: true, statement_descriptor_suffix: None, statement_descriptor: None, setup_future_usage: None, mandate_id: None, off_session: None, setup_mandate_details: None, capture_method: None, browser_info: None, order_details: None, order_category: None, email: None, customer_name: None, payment_experience: None, payment_method_type, session_token: None, enrolled_for_3ds: false, related_transaction_id: None, router_return_url: Some(String::from("https://google.com")), webhook_url: None, complete_authorize_url: None, customer_id: cust_id.ok(), surcharge_details: None, request_incremental_authorization: false, metadata: None, authentication_data: None, customer_acceptance: None, ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 225, "total_crates": null }
fn_clm_router_get_name_2575513157601210764
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/cashtocode // Implementation of CashtocodeTest for utils::Connector fn get_name(&self) -> String { "cashtocode".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_2575513157601210764
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/cashtocode // Implementation of CashtocodeTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Cashtocode; utils::construct_connector_data_old( Box::new(Cashtocode::new()), types::Connector::Cashtocode, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_2575513157601210764
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/cashtocode // Implementation of CashtocodeTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .cashtocode .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_-198172856687476892
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/stax fn get_default_payment_info( connector_customer: Option<String>, payment_method_token: Option<String>, ) -> Option<utils::PaymentInfo> { Some(utils::PaymentInfo { address: None, auth_type: None, access_token: None, connector_meta_data: None, connector_customer, payment_method_token, #[cfg(feature = "payouts")] payout_method_data: None, #[cfg(feature = "payouts")] currency: None, }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_-198172856687476892
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/stax fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { Some(types::PaymentsAuthorizeData { ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4400, "total_crates": null }
fn_clm_router_create_customer_and_get_token_-198172856687476892
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/stax async fn create_customer_and_get_token() -> Option<String> { let customer_response = CONNECTOR .create_connector_customer(customer_details(), get_default_payment_info(None, None)) .await .expect("Authorize payment response"); let connector_customer_id = match customer_response.response.unwrap() { PaymentsResponseData::ConnectorCustomerResponse(customer_data) => { Some(customer_data.connector_customer_id) } _ => None, }; let token_response = CONNECTOR .create_connector_pm_token( token_details(), get_default_payment_info(connector_customer_id, None), ) .await .expect("Authorize payment response"); match token_response.response.unwrap() { PaymentsResponseData::TokenizationResponse { token } => Some(token), _ => None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 63, "total_crates": null }
fn_clm_router_get_name_-198172856687476892
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/stax // Implementation of StaxTest for utils::Connector fn get_name(&self) -> String { "stax".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_-198172856687476892
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/stax // Implementation of StaxTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Stax; utils::construct_connector_data_old( Box::new(&Stax), types::Connector::Stax, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_router_get_default_payment_info_-4653616026908578393
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/prophetpay fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_-4653616026908578393
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/prophetpay fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_-4653616026908578393
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/prophetpay // Implementation of ProphetpayTest for utils::Connector fn get_name(&self) -> String { "prophetpay".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_-4653616026908578393
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/prophetpay // Implementation of ProphetpayTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Prophetpay; utils::construct_connector_data_old( Box::new(&Prophetpay), types::Connector::Prophetpay, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_router_get_auth_token_-4653616026908578393
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/prophetpay // Implementation of ProphetpayTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .prophetpay .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_authorize_data_3378348839083229701
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/bambora fn get_default_payment_authorize_data() -> Option<types::PaymentsAuthorizeData> { Some(types::PaymentsAuthorizeData { payment_method_data: domain::PaymentMethodData::Card(domain::Card { card_number: cards::CardNumber::from_str("4030000010001234").unwrap(), card_exp_year: Secret::new("25".to_string()), card_cvc: Secret::new("123".to_string()), ..utils::CCardType::default().0 }), ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 115, "total_crates": null }
fn_clm_router_get_name_3378348839083229701
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/bambora // Implementation of BamboraTest for utils::Connector fn get_name(&self) -> String { "bambora".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_3378348839083229701
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/bambora // Implementation of BamboraTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Bambora; utils::construct_connector_data_old( Box::new(Bambora::new()), types::Connector::Bambora, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_3378348839083229701
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/bambora // Implementation of BamboraTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .bambora .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_should_fail_payment_for_invalid_exp_month_3378348839083229701
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/bambora async fn should_fail_payment_for_invalid_exp_month() { let response = CONNECTOR .make_payment( Some(types::PaymentsAuthorizeData { payment_method_data: domain::PaymentMethodData::Card(domain::Card { card_exp_month: Secret::new("20".to_string()), card_number: cards::CardNumber::from_str("4030000010001234").unwrap(), card_exp_year: Secret::new("25".to_string()), card_cvc: Secret::new("123".to_string()), ..utils::CCardType::default().0 }), ..utils::PaymentAuthorizeType::default().0 }), None, ) .await .unwrap(); assert_eq!( response.response.unwrap_err().reason, Some(r#"[{"field":"card:expiry_month","message":"Invalid expiry date"}]"#.to_string()) ); }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 22, "total_crates": null }
fn_clm_router_get_default_payment_info_7563305907842111352
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/wellsfargopayout fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_7563305907842111352
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/wellsfargopayout fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_7563305907842111352
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/wellsfargopayout // Implementation of WellsfargopayoutTest for utils::Connector fn get_name(&self) -> String { "wellsfargopayout".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_7563305907842111352
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/wellsfargopayout // Implementation of WellsfargopayoutTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Wellsfargopayout; api::ConnectorData { connector: Box::new(Wellsfargopayout::new()), connector_name: types::Connector::Wellsfargopayout, get_token: types::api::GetToken::Connector, merchant_connector_id: None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_router_get_auth_token_7563305907842111352
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/wellsfargopayout // Implementation of WellsfargopayoutTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .wellsfargopayout .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_3183178219079964623
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/forte fn get_default_payment_info() -> Option<utils::PaymentInfo> { Some(utils::PaymentInfo { address: Some(types::PaymentAddress::new( None, Some(Address { address: Some(AddressDetails { first_name: Some(Secret::new("first".to_string())), last_name: Some(Secret::new("last".to_string())), line1: Some(Secret::new("line1".to_string())), line2: Some(Secret::new("line2".to_string())), city: Some("city".to_string()), zip: Some(Secret::new("zip".to_string())), country: Some(api_models::enums::CountryAlpha2::IN), ..Default::default() }), phone: Some(PhoneDetails { number: Some(Secret::new("9123456789".to_string())), country_code: Some("+91".to_string()), }), email: None, }), None, None, )), ..Default::default() }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7312, "total_crates": null }
fn_clm_router_get_payment_data_3183178219079964623
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/forte fn get_payment_data() -> Option<types::PaymentsAuthorizeData> { Some(types::PaymentsAuthorizeData { payment_method_data: domain::PaymentMethodData::Card(domain::Card { card_number: CardNumber::from_str("4111111111111111").unwrap(), ..utils::CCardType::default().0 }), ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 164, "total_crates": null }
fn_clm_router_get_name_3183178219079964623
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/forte // Implementation of ForteTest for utils::Connector fn get_name(&self) -> String { "forte".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_3183178219079964623
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/forte // Implementation of ForteTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Forte; utils::construct_connector_data_old( Box::new(Forte::new()), types::Connector::Forte, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_3183178219079964623
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/forte // Implementation of ForteTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .forte .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_payment_data_1927154425772370683
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/nuvei fn get_payment_data() -> Option<types::PaymentsAuthorizeData> { Some(types::PaymentsAuthorizeData { payment_method_data: types::domain::PaymentMethodData::Card(types::domain::Card { card_number: cards::CardNumber::from_str("4444 3333 2222 1111").unwrap(), ..utils::CCardType::default().0 }), ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 164, "total_crates": null }
fn_clm_router_get_name_1927154425772370683
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/nuvei // Implementation of NuveiTest for utils::Connector fn get_name(&self) -> String { "nuvei".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_1927154425772370683
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/nuvei // Implementation of NuveiTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Nuvei; utils::construct_connector_data_old( Box::new(Nuvei::new()), types::Connector::Nuvei, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_1927154425772370683
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/nuvei // Implementation of NuveiTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .nuvei .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_should_succeed_payment_for_incorrect_expiry_year_1927154425772370683
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/nuvei async fn should_succeed_payment_for_incorrect_expiry_year() { let response = CONNECTOR .make_payment( Some(types::PaymentsAuthorizeData { payment_method_data: types::domain::PaymentMethodData::Card(types::domain::Card { card_number: cards::CardNumber::from_str("4000027891380961").unwrap(), card_exp_year: Secret::new("2000".to_string()), ..utils::CCardType::default().0 }), ..get_payment_data().unwrap() }), None, ) .await .unwrap(); assert_eq!(response.status, enums::AttemptStatus::Charged,); }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14, "total_crates": null }
fn_clm_router_get_default_payment_info_9102762102580611329
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/coingate fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_9102762102580611329
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/coingate fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_9102762102580611329
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/coingate // Implementation of CoingateTest for utils::Connector fn get_name(&self) -> String { "coingate".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_9102762102580611329
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/coingate // Implementation of CoingateTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Coingate; api::ConnectorData { connector: Box::new(Coingate::new()), connector_name: types::Connector::Coingate, get_token: types::api::GetToken::Connector, merchant_connector_id: None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 39, "total_crates": null }
fn_clm_router_get_auth_token_9102762102580611329
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/coingate // Implementation of CoingateTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .coingate .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_new_4824078860602198298
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/jpmorgan // Inherent implementation for JpmorganTest fn new() -> Self { Self }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 14453, "total_crates": null }
fn_clm_router_get_default_payment_info_4824078860602198298
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/jpmorgan fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_4824078860602198298
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/jpmorgan fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_4824078860602198298
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/jpmorgan // Implementation of JpmorganTest for utils::Connector fn get_name(&self) -> String { "jpmorgan".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_4824078860602198298
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/jpmorgan // Implementation of JpmorganTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Jpmorgan; utils::construct_connector_data_old( Box::new(Jpmorgan::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_default_payment_info_624378300867662457
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/payu fn get_default_payment_info() -> Option<utils::PaymentInfo> { Some(utils::PaymentInfo { access_token: get_access_token(), ..Default::default() }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7282, "total_crates": null }
fn_clm_router_get_name_624378300867662457
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/payu // Implementation of Payu for Connector fn get_name(&self) -> String { "payu".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_624378300867662457
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/payu // Implementation of Payu for Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Payu; utils::construct_connector_data_old( Box::new(Payu::new()), types::Connector::Payu, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_should_refund_succeeded_payment_624378300867662457
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/payu async fn should_refund_succeeded_payment() { let connector = Payu {}; let authorize_response = connector .authorize_payment( Some(types::PaymentsAuthorizeData { currency: enums::Currency::PLN, ..PaymentAuthorizeType::default().0 }), get_default_payment_info(), ) .await .unwrap(); assert_eq!(authorize_response.status, enums::AttemptStatus::Pending); if let Some(transaction_id) = utils::get_connector_transaction_id(authorize_response.response) { let sync_response = connector .psync_retry_till_status_matches( enums::AttemptStatus::Authorized, Some(types::PaymentsSyncData { connector_transaction_id: types::ResponseId::ConnectorTransactionId( transaction_id.clone(), ), ..Default::default() }), get_default_payment_info(), ) .await .unwrap(); assert_eq!(sync_response.status, enums::AttemptStatus::Authorized); //Capture the payment in case of Manual Capture let capture_response = connector .capture_payment(transaction_id.clone(), None, get_default_payment_info()) .await .unwrap(); assert_eq!(capture_response.status, enums::AttemptStatus::Pending); let sync_response = connector .psync_retry_till_status_matches( enums::AttemptStatus::Charged, Some(types::PaymentsSyncData { connector_transaction_id: types::ResponseId::ConnectorTransactionId( transaction_id.clone(), ), ..Default::default() }), get_default_payment_info(), ) .await .unwrap(); assert_eq!(sync_response.status, enums::AttemptStatus::Charged); //Refund the payment let refund_response = connector .refund_payment(transaction_id.clone(), None, get_default_payment_info()) .await .unwrap(); assert_eq!( refund_response.response.unwrap().connector_refund_id.len(), 10 ); } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 40, "total_crates": null }
fn_clm_router_get_access_token_624378300867662457
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/payu fn get_access_token() -> Option<AccessToken> { let connector = Payu {}; match connector.get_auth_token() { ConnectorAuthType::BodyKey { api_key, key1 } => Some(AccessToken { token: api_key, expires: key1.peek().parse::<i64>().unwrap(), }), _ => None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 37, "total_crates": null }
fn_clm_router_get_default_payment_info_-8163260357271816862
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paybox fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_-8163260357271816862
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paybox fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_-8163260357271816862
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paybox // Implementation of PayboxTest for utils::Connector fn get_name(&self) -> String { "paybox".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_-8163260357271816862
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paybox // Implementation of PayboxTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Paybox; utils::construct_connector_data_old( Box::new(Paybox::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_-8163260357271816862
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paybox // Implementation of PayboxTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .paybox .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_135014786661074030
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/unified_authentication_service fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_135014786661074030
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/unified_authentication_service fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_135014786661074030
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/unified_authentication_service // Implementation of UnifiedAuthenticationServiceTest for utils::Connector fn get_name(&self) -> String { "unified_authentication_service".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_135014786661074030
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/unified_authentication_service // Implementation of UnifiedAuthenticationServiceTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::UnifiedAuthenticationService; utils::construct_connector_data_old( Box::new(UnifiedAuthenticationService::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_135014786661074030
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/unified_authentication_service // Implementation of UnifiedAuthenticationServiceTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .unified_authentication_service .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_5873285382935488737
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/dummyconnector fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_5873285382935488737
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/dummyconnector fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_5873285382935488737
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/dummyconnector // Implementation of DummyConnectorTest for utils::Connector fn get_name(&self) -> String { "dummyconnector".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_5873285382935488737
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/dummyconnector // Implementation of DummyConnectorTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::DummyConnector; utils::construct_connector_data_old( Box::new(DummyConnector::<1>::new()), types::Connector::DummyConnector1, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_5873285382935488737
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/dummyconnector // Implementation of DummyConnectorTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .dummyconnector .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_2431416551553625997
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/katapult fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_2431416551553625997
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/katapult fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_2431416551553625997
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/katapult // Implementation of KatapultTest for utils::Connector fn get_name(&self) -> String { "katapult".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_2431416551553625997
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/katapult // Implementation of KatapultTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Katapult; utils::construct_connector_data_old( Box::new(Katapult::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_2431416551553625997
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/katapult // Implementation of KatapultTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .katapult .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_327976634523358163
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paytm fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_327976634523358163
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paytm fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_327976634523358163
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paytm // Implementation of PaytmTest for utils::Connector fn get_name(&self) -> String { "paytm".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_327976634523358163
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paytm // Implementation of PaytmTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Paytm; utils::construct_connector_data_old( Box::new(Paytm::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_327976634523358163
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paytm // Implementation of PaytmTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .paytm .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_7498099474638905303
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paypal fn get_default_payment_info() -> Option<utils::PaymentInfo> { Some(utils::PaymentInfo { access_token: get_access_token(), ..Default::default() }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7282, "total_crates": null }
fn_clm_router_get_payment_data_7498099474638905303
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paypal fn get_payment_data() -> Option<types::PaymentsAuthorizeData> { Some(types::PaymentsAuthorizeData { payment_method_data: domain::PaymentMethodData::Card(domain::Card { card_number: cards::CardNumber::from_str("4000020000000000").unwrap(), ..utils::CCardType::default().0 }), ..utils::PaymentAuthorizeType::default().0 }) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 164, "total_crates": null }
fn_clm_router_get_name_7498099474638905303
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paypal // Implementation of PaypalTest for Connector fn get_name(&self) -> String { "paypal".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_7498099474638905303
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paypal // Implementation of PaypalTest for Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Paypal; utils::construct_connector_data_old( Box::new(Paypal::new()), types::Connector::Paypal, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_access_token_7498099474638905303
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/paypal fn get_access_token() -> Option<AccessToken> { let connector = PaypalTest {}; match connector.get_auth_token() { ConnectorAuthType::BodyKey { api_key, key1: _ } => Some(AccessToken { token: api_key, expires: 18600, }), _ => None, } }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 35, "total_crates": null }
fn_clm_router_get_default_payment_info_-2102378662552298779
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/sift fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_-2102378662552298779
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/sift fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_-2102378662552298779
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/sift // Implementation of SiftTest for utils::Connector fn get_name(&self) -> String { "sift".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_-2102378662552298779
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/sift // Implementation of SiftTest for utils::Connector fn get_data(&self) -> api::ConnectorData { use router::connector::Sift; utils::construct_connector_data_old( Box::new(Sift::new()), types::Connector::Plaid, api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_-2102378662552298779
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/sift // Implementation of SiftTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .sift .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }
fn_clm_router_get_default_payment_info_5807058416047615201
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/globepay fn get_default_payment_info() -> Option<utils::PaymentInfo> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 7278, "total_crates": null }
fn_clm_router_payment_method_details_5807058416047615201
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/globepay fn payment_method_details() -> Option<types::PaymentsAuthorizeData> { None }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 4398, "total_crates": null }
fn_clm_router_get_name_5807058416047615201
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/globepay // Implementation of GlobepayTest for utils::Connector fn get_name(&self) -> String { "globepay".to_string() }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 46, "total_crates": null }
fn_clm_router_get_data_5807058416047615201
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/globepay // Implementation of GlobepayTest for utils::Connector fn get_data(&self) -> types::api::ConnectorData { use router::connector::Globepay; utils::construct_connector_data_old( Box::new(Globepay::new()), types::Connector::Globepay, types::api::GetToken::Connector, None, ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 41, "total_crates": null }
fn_clm_router_get_auth_token_5807058416047615201
clm
function
// Repository: hyperswitch // Crate: router // Purpose: Main application server handling HTTP requests, authentication, and business logic orchestration // Module: crates/router/tests/connectors/globepay // Implementation of GlobepayTest for utils::Connector fn get_auth_token(&self) -> types::ConnectorAuthType { utils::to_connector_auth_type( connector_auth::ConnectorAuthentication::new() .globepay .expect("Missing connector authentication configuration") .into(), ) }
{ "crate": "router", "file": null, "file_size": null, "is_async": false, "is_pub": false, "num_enums": null, "num_structs": null, "num_tables": null, "score": 32, "total_crates": null }