id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_body_connector-integration_8988377329679646038
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: from { match value { FiuuRefundsWebhookStatus::RefundSuccess => Self::RefundSuccess, FiuuRefundsWebhookStatus::RefundFailure => Self::RefundFailure, FiuuRefundsWebhookStatus::...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_7436998386497302050
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: capture_status_codes { [ ("00", "Capture successful"), ("11", "Capture failed"), ("12", "Invalid or unmatched security hash string"), ("13", "Not a credit card transaction"), ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "capture_status_codes", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_body_connector-integration_-8534463597789796036
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: void_status_codes { [ ("00", "Success (will proceed the request)"), ("11", "Failure"), ("12", "Invalid or unmatched security hash string"), ("13", "Not a refundable transaction"), ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "void_status_codes", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector...
connector-service_body_connector-integration_764780647771770914
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: get_qr_metadata { let image_data = QrImage::new_colored_from_data( response.txn_data.request_data.qr_data.peek().clone(), DUIT_NOW_BRAND_COLOR, ) .change_context(errors::ConnectorError::Respo...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_qr_metadata", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-s...
connector-service_body_connector-integration_-4757302051768782463
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: build_form_from_struct { let mut form = reqwest::multipart::Form::new(); let serialized = serde_json::to_value(&data).map_err(|_| errors::ParsingError::EncodeError("json-value"))?; let serialized_obj...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_form_from_struct", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_5459057106939751601
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: new_from_data { let qr_code = qrcode::QrCode::new(data.as_bytes()) .change_context(QrCodeError::FailedToCreateQrCode)?; let qrcode_image_buffer = qr_code.render::<Luma<u8>>().build(); ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new_from_data", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-ser...
connector-service_body_connector-integration_-313731343863386829
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: new_colored_from_data { let qr_code = qrcode::QrCode::new(data.as_bytes()) .change_context(QrCodeError::FailedToCreateQrCode)?; let qrcode_image_buffer = qr_code.render::<Luma<u8>>().build()...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new_colored_from_data", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_1626286669194681363
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs // Function: parse_hex_color { let hex = hex.trim_start_matches('#'); if hex.len() == 6 { let r = u8::from_str_radix(&hex[0..2], 16).ok(); let g = u8::from_str_radix(&hex[2..4], 16).ok(); ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "parse_hex_color", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-s...
connector-service_body_connector-integration_-2475670696279178684
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: try_from { let auth = AciAuthType::try_from(&item.router_data.connector_auth_type)?; let amount = item .connector .amount_converter .convert( item.route...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_5868182820372981165
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: get_aci_payment_brand { match card_network { Some(common_enums::CardNetwork::Visa) => Ok(PaymentBrand::Visa), Some(common_enums::CardNetwork::Mastercard) => Ok(PaymentBrand::Mastercard), Some(...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_aci_payment_brand", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_5993362075725529143
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: get_transaction_details { let auth = AciAuthType::try_from(&item.router_data.connector_auth_type)?; let amount = item .connector .amount_converter .convert( item.router_data.re...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_transaction_details", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_body_connector-integration_-6818782463916748221
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: get_instruction_details { if item.router_data.request.customer_acceptance.is_some() && item.router_data.request.setup_future_usage == Some(common_enums::FutureUsage::OffSession) { retu...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_instruction_details", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_body_connector-integration_-5309365021088424429
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: get_recurring_type { if item.router_data.request.customer_acceptance.is_some() && item.router_data.request.setup_future_usage == Some(common_enums::FutureUsage::OffSession) { Some(AciR...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_recurring_type", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_-6266609253027953232
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: map_aci_attempt_status { match item { AciPaymentStatus::Succeeded => { if auto_capture { common_enums::AttemptStatus::Charged } else { common_enums::Att...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "map_aci_attempt_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_-2349756336930730154
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: from_str { if FAILURE_CODES.contains(&s) { Ok(Self::Failed) } else if PENDING_CODES.contains(&s) { Ok(Self::Pending) } else if SUCCESSFUL_CODES.contains(&s) { O...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from_str", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-324582186595130169
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: map_aci_capture_status { match item { AciStatus::Succeeded => common_enums::AttemptStatus::Charged, AciStatus::Failed => common_enums::AttemptStatus::Failure, AciStatus::Pending => common_enum...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "map_aci_capture_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_4759838529303483321
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: map_aci_void_status { match item { AciStatus::Succeeded => common_enums::AttemptStatus::Voided, AciStatus::Failed => common_enums::AttemptStatus::VoidFailed, AciStatus::Pending => common_enums...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "map_aci_void_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_body_connector-integration_5967455669209128865
clm
function_body
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs // Function: from { match item { AciRefundStatus::Succeeded => Self::Success, AciRefundStatus::Failed => Self::Failure, AciRefundStatus::Pending => Self::Pending, } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_6772711868557895414
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiserv/transformers.rs // Function: get_card_expiry_year_4_digit_placeholder { let year_str = year_yy.peek(); if year_str.len() == 2 && year_str.chars().all(char::is_numeric) { Ok(Secret::new(format!("20{year_str}"))) } else if year_...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_card_expiry_year_4_digit_placeholder", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_body_connector-integration_2816155212846388580
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiserv/transformers.rs // Function: try_from { let ResponseRouterData { response, router_data, http_code, } = item; let error_details = response .error .as_ref() ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_4136552758440614962
clm
function_body
// connector-service/backend/connector-integration/src/connectors/fiserv/transformers.rs // Function: from { match item { FiservPaymentStatus::Captured | FiservPaymentStatus::Succeeded | FiservPaymentStatus::Authorized => Self::Success, FiservPaymentStatus::Decli...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_-3758289943798318162
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: to_connector_meta { connector_meta .map(|meta| { serde_json::from_value::<CheckoutMeta>(meta) .map_err(|_| report!(errors::ConnectorError::ResponseDeserializationFailed)) ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_connector_meta", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector...
connector-service_body_connector-integration_-6306299953775902384
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: get_connector_meta { match capture_method { enums::CaptureMethod::Automatic | enums::CaptureMethod::SequentialAutomatic => { Ok(serde_json::json!(CheckoutMeta { psync_flow: Ch...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_connector_meta", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_5289544423721072476
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: get_attempt_status_cap { let (status, capture_method) = item; match status { CheckoutPaymentStatus::Authorized => { if capture_method == Some(enums::CaptureMethod::Automatic) || capture_m...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_attempt_status_cap", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_5008216598957983708
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: get_attempt_status_intent { let (status, psync_flow) = item; match status { CheckoutPaymentStatus::Authorized => { if psync_flow == CheckoutPaymentIntent::Capture { enums...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_attempt_status_intent", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_body_connector-integration_5133014760509552792
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: get_attempt_status_bal { let (status, balances) = item; match status { CheckoutPaymentStatus::Authorized => { if let Some(Balances { available_to_capture: 0, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_attempt_status_bal", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_-3841855297523034765
clm
function_body
// connector-service/backend/connector-integration/src/connectors/checkout/transformers.rs // Function: try_from { let ResponseRouterData { response, router_data, http_code, } = item; // Get the refund status using the From implementation let refund_...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-2434093513669160601
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashtocode/transformers.rs // Function: get_mid { match CashtocodeAuth::try_from((connector_auth_type, &currency)) { Ok(cashtocode_auth) => match payment_method_type { Some(common_enums::PaymentMethodType::ClassicReward) => Ok(ca...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_mid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service",...
connector-service_body_connector-integration_1867878338672038562
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashtocode/transformers.rs // Function: try_from { let ResponseRouterData { response, router_data, http_code, } = item; let (status, response) = match response { CashtocodePaymentsR...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-5154119684211301797
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashtocode/transformers.rs // Function: from { match item { CashtocodePaymentStatus::Succeeded => Self::Charged, CashtocodePaymentStatus::Processing => Self::AuthenticationPending, } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_6883614331911483996
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashtocode/transformers.rs // Function: get_redirect_form_data { match payment_method_type { common_enums::PaymentMethodType::ClassicReward => Ok(RedirectForm::Form { //redirect form is manually constructed because the connector ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_redirect_form_data", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_8339934356743527216
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: card_issuer_to_string { let card_type = match card_issuer { CardIssuer::AmericanExpress => "003", CardIssuer::Master => "002", //"042" is the type code for Masetro Cards(International)...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "card_issuer_to_string", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_7619619377881359831
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: try_from { let commerce_indicator = solution .as_ref() .map(|pm_solution| match pm_solution { PaymentSolution::ApplePay | PaymentSolution::SamsungPay => network ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-4165971609938476048
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: from { match item { CybersourceRefundStatus::Succeeded | CybersourceRefundStatus::Transmitted => { Self::Success } CybersourceRefundStatus::Cancelled ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_-8019715245686394547
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_authentication_data_for_check_enrollment_response { let trans_status = response .validate_response .pares_status .map(common_enums::TransactionStatus::from); // CAVV is populat...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_authentication_data_for_check_enrollment_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_...
connector-service_body_connector-integration_305558305954841632
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_authentication_data_for_validation_response { let trans_status = response .validate_response .pares_status .map(common_enums::TransactionStatus::from); // CAVV is populated fro...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_authentication_data_for_validation_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_struct...
connector-service_body_connector-integration_7498401018909472574
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: truncate_string { let exposed = state.clone().expose(); let truncated = exposed.get(..max_len).unwrap_or(&exposed); Secret::new(truncated.to_string()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "truncate_string", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-s...
connector-service_body_connector-integration_8046806024228547471
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: build_bill_to { let default_address = BillTo { first_name: None, last_name: None, address1: None, locality: None, administrative_area: None, postal_code: None, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_bill_to", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-ser...
connector-service_body_connector-integration_-8939643827257498663
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: convert_metadata_to_merchant_defined_info { let hashmap: std::collections::BTreeMap<String, Value> = serde_json::from_str(&metadata.to_string()).unwrap_or(std::collections::BTreeMap::new()); let m...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "convert_metadata_to_merchant_defined_info", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nu...
connector-service_body_connector-integration_-8248328403727091815
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_samsung_pay_payment_information { let samsung_pay_fluid_data_value = get_samsung_pay_fluid_data_value(&samsung_pay_data.payment_credential.token_data)?; let samsung_pay_fluid_data_str = serde...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_samsung_pay_payment_information", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_body_connector-integration_5532048770562631172
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_samsung_pay_fluid_data_value { let samsung_pay_header = jwt::decode_header(samsung_pay_token_data.data.clone().peek()) .change_context(errors::ConnectorError::RequestEncodingFailed) .attac...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_samsung_pay_fluid_data_value", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_body_connector-integration_8082865412243660934
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: map_cybersource_attempt_status { match status { CybersourcePaymentStatus::Authorized => { if capture { // Because Cybersource will return Payment Status as Authorized even ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "map_cybersource_attempt_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_connector-integration_-4136628398086485022
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_error_response_if_failure { if domain_types::utils::is_payment_failure(status) { Some(get_error_response( &info_response.error_information, &info_response.processor_informa...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_error_response_if_failure", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_connector-integration_-2599135435502679244
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_payment_response { let error_response = get_error_response_if_failure((info_response, status, http_code)); match error_response { Some(error) => Err(Box::new(error)), None => { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_body_connector-integration_-1078727645221439739
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_error_response { let avs_message = risk_information .clone() .map(|client_risk_information| { client_risk_information.rules.map(|rules| { rules ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_error_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_-439592443807537185
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_error_reason { match (error_info, detailed_error_info, avs_error_info) { (Some(message), Some(details), Some(avs_message)) => Some(format!( "{message}, detailed_error_information: {det...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_error_reason", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-...
connector-service_body_connector-integration_7012713584769309075
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cybersource/transformers.rs // Function: get_cybersource_card_type { match card_network { common_enums::CardNetwork::Visa => Some("001"), common_enums::CardNetwork::Mastercard => Some("002"), common_enums::CardNetwork::Americ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_cybersource_card_type", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_body_connector-integration_-445441321632269646
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cryptopay/transformers.rs // Function: try_from { let status = common_enums::AttemptStatus::from(notif.data.status.clone()); if is_payment_failure(status) { Ok(Self { error_code: Some( noti...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-5655207447427497326
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cryptopay/transformers.rs // Function: from { match item { CryptopayPaymentStatus::New => Self::AuthenticationPending, CryptopayPaymentStatus::Completed => Self::Charged, CryptopayPaymentStatus::Cancelled => S...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_6584227525461909224
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/test.rs // Function: test_upi_flow_determination { // Add tests for UPI flow determination logic // TODO: Implement comprehensive tests }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_upi_flow_determination", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
connector-service_body_connector-integration_1558662536331175589
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/test.rs // Function: test_create_order_request_building { // Add tests for create order request building // TODO: Implement comprehensive tests }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_create_order_request_building", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "...
connector-service_body_connector-integration_7335008701231297933
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/test.rs // Function: test_payments_request_building { // Add tests for payments request building // TODO: Implement comprehensive tests }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payments_request_building", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_connector-integration_1676547017282257746
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/transformers.rs // Function: generate_authorization_header { match self { RazorpayV2AuthType::AuthToken(token) => format!("Bearer {}", token.peek()), RazorpayV2AuthType::ApiKeySecret { api_key, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "generate_authorization_header", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_connector-integration_-4026817227612703553
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/transformers.rs // Function: try_from { let amount_in_minor_units = item.amount.get_amount_as_i64(); Ok(Self { amount: amount_in_minor_units, }) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_593002213147923887
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/transformers.rs // Function: get_psync_razorpay_payment_status { match razorpay_status { RazorpayStatus::Created => AttemptStatus::Pending, RazorpayStatus::Authorized => AttemptStatus::Authorized, RazorpayStatus::C...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_psync_razorpay_payment_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "r...
connector-service_body_connector-integration_-2965787975485232033
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpayv2/transformers.rs // Function: foreign_try_from { let payments_response_data = PaymentsResponseData::TransactionResponse { resource_id: ResponseId::ConnectorTransactionId(response.id), redirection_data: None, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "foreign_try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-...
connector-service_body_connector-integration_-1285128844360666749
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: try_from { match (item.response.access_token, item.response.expires_in) { (Some(access_token), Some(expires_in)) => Ok(Self { response: Ok(AccessTokenResponseData { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_7812994628977182480
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: error_message { match self { Self::EmptyCvvNotAllowed => "Empty CVV for VISA, MASTER not allowed", Self::SessionRejected => "Referenced session is rejected (no action possible)", ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "error_message", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-ser...
connector-service_body_connector-integration_1583704845102738579
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: from { match item { TrustpayBankRedirectPaymentStatus::Paid => Self::Success, TrustpayBankRedirectPaymentStatus::Rejected => Self::Failure, _ => Self::Pending, } ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_-5912870118739466683
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: is_payment_failed { let status_code = TrustpayPaymentStatusCode::from(payment_status); (status_code.is_failure(), status_code.error_message()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_payment_failed", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector...
connector-service_body_connector-integration_6622341884730005451
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: is_payment_successful { match payment_status { "000.400.100" => Ok(true), _ => { let allowed_prefixes = [ "000.000.", "000.100.1", "000...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_payment_successful", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_2952569615443560748
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: get_pending_status_based_on_redirect_url { match redirect_url { Some(_url) => enums::AttemptStatus::AuthenticationPending, None => enums::AttemptStatus::Pending, } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_pending_status_based_on_redirect_url", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_body_connector-integration_-5915264256727995919
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: get_transaction_status { // We don't get payment_status only in case, when the user doesn't complete the authentication step. // If we receive status, then return the proper status based on the connector res...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_transaction_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_body_connector-integration_1583055968923952888
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: handle_cards_response { let (status, message) = get_transaction_status( response.payment_status.to_owned(), response.redirect_url.to_owned(), )?; let form_fields = response.redirect_para...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_cards_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_-3517347824656025567
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: handle_bank_redirects_response { let status = enums::AttemptStatus::AuthenticationPending; let error = None; let payment_response_data = PaymentsResponseData::TransactionResponse { resource_id: R...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_bank_redirects_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_connector-integration_-4374479314201853124
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: handle_bank_redirects_error_response { let status = if matches!(response.payment_result_info.result_code, 1132014 | 1132005) { previous_attempt_status } else { enums::AttemptStatus::Authoriza...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_bank_redirects_error_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_body_connector-integration_-1347416815255535494
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: handle_bank_redirects_sync_response { let status = enums::AttemptStatus::from(response.payment_information.status); let error = if domain_types::utils::is_payment_failure(status) { let reason_info = ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_bank_redirects_sync_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_body_connector-integration_-2715685907814403815
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: handle_webhook_response { let status = enums::AttemptStatus::try_from(payment_information.status)?; let error = if domain_types::utils::is_payment_failure(status) { let reason_info = payment_informat...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_webhook_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_body_connector-integration_1129761068507008509
clm
function_body
// connector-service/backend/connector-integration/src/connectors/trustpay/transformers.rs // Function: get_trustpay_response { match response { TrustpayPaymentsResponse::CardsPayments(response) => { handle_cards_response(*response, status_code) } TrustpayPaymentsResponse::BankR...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_trustpay_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_-6845142066205286710
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: try_from { let ResponseRouterData { response, router_data, http_code, } = item; Ok(Self { response: Ok(RefundsResponseData { conn...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-7764359483446056564
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: is_auto_capture { match data.capture_method { Some(common_enums::CaptureMethod::Automatic) | None => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(Connect...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_auto_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-s...
connector-service_body_connector-integration_2957072239002240268
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: is_auto_capture_psync { match data.capture_method { Some(common_enums::CaptureMethod::Automatic) | None => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(C...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_auto_capture_psync", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_body_connector-integration_1220201645857116306
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: map_payment_response_to_attempt_status { match response.status { PaymentStatus::Failed => common_enums::AttemptStatus::Failure, PaymentStatus::Succeeded | PaymentStatus::Verified => { i...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "map_payment_response_to_attempt_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_body_connector-integration_4328141175566158444
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: from { match item { RefundStatus::Succeeded => Self::Success, RefundStatus::Failed | RefundStatus::Cancelled => Self::Failure, RefundStatus::Pending | RefundStatus::Requires...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_-7080870094687339040
clm
function_body
// connector-service/backend/connector-integration/src/connectors/xendit/transformers.rs // Function: is_mandate_payment { (item.setup_future_usage == Some(common_enums::enums::FutureUsage::OffSession)) || item .mandate_id .as_ref() .and_then(|mandate_ids| mandate_ids.ma...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_mandate_payment", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_-5499501572199064837
clm
function_body
// connector-service/backend/connector-integration/src/connectors/volt/transformers.rs // Function: try_from { Ok(Self { response: Ok(RefundsResponseData { connector_refund_id: item.response.id.to_string(), refund_status: common_enums::RefundStatus::Pending, //We get...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-4471542057309744522
clm
function_body
// connector-service/backend/connector-integration/src/connectors/volt/transformers.rs // Function: get_attempt_status { match item { VoltPaymentStatus::Received | VoltPaymentStatus::Settled => AttemptStatus::Charged, VoltPaymentStatus::Completed | VoltPaymentStatus::DelayedAtBank => AttemptStatus:...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_attempt_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_-8121934653120202201
clm
function_body
// connector-service/backend/connector-integration/src/connectors/volt/transformers.rs // Function: from { match status { VoltWebhookBodyEventType::Payment(payment_data) => match payment_data.status { VoltWebhookPaymentStatus::Received => Self::PaymentIntentSuccess, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_4840959861993344353
clm
function_body
// connector-service/backend/connector-integration/src/connectors/noon/transformers.rs // Function: get_value_as_string { match value { serde_json::Value::String(string) => string.to_owned(), serde_json::Value::Null | serde_json::Value::Bool(_) | serde_json::Value::Number(_) ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_value_as_string", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_body_connector-integration_3000270290517726204
clm
function_body
// connector-service/backend/connector-integration/src/connectors/noon/transformers.rs // Function: new { let metadata_as_string = metadata.to_string(); let hash_map: std::collections::BTreeMap<String, serde_json::Value> = serde_json::from_str(&metadata_as_string).unwrap_or(std::collections...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "...
connector-service_body_connector-integration_4862076425151944515
clm
function_body
// connector-service/backend/connector-integration/src/connectors/noon/transformers.rs // Function: try_from { let order = item.response.result.order; let current_attempt_status = item.router_data.resource_common_data.status; let status = get_payment_status((order.status, current_attempt_status...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_6624040959457726474
clm
function_body
// connector-service/backend/connector-integration/src/connectors/noon/transformers.rs // Function: get_payment_status { let (item, current_status) = data; match item { NoonPaymentStatus::Authorized => AttemptStatus::Authorized, NoonPaymentStatus::Captured | NoonPaymentStatus::Partially...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_body_connector-integration_253263964257174660
clm
function_body
// connector-service/backend/connector-integration/src/connectors/noon/transformers.rs // Function: from { Self { result: NoonPaymentsResponseResult { order: NoonPaymentsOrderResponse { status: value.order_status, id: value.order_id, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_-8659267270991720171
clm
function_body
// connector-service/backend/connector-integration/src/connectors/placetopay/transformers.rs // Function: try_from { Ok(Self { response: Ok(RefundsResponseData { connector_refund_id: item.response.internal_reference.to_string(), refund_status: common_enums::RefundSta...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service"...
connector-service_body_connector-integration_-6218284339970308393
clm
function_body
// connector-service/backend/connector-integration/src/connectors/placetopay/transformers.rs // Function: from { match item { PlacetopayRefundStatus::Ok | PlacetopayRefundStatus::Approved | PlacetopayRefundStatus::Refunded => Self::Success, PlacetopayRefundStatus...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_body_connector-integration_3152717781405429979
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_build_request_valid { let email = Email::try_from("testuser@gmail.com".to_string()).unwrap(); let test_router_data = RouterDataV2 { flow: std::marker::PhantomData, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_valid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "co...
connector-service_body_connector-integration_-6108357518927124253
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_build_request_missing { use common_enums::Currency; use common_utils::{id_type::MerchantId, types::MinorUnit}; use domain_types::{ connector_types::PaymentCreateOrder...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_missing", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_body_connector-integration_-4559112145041872844
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_build_request_invalid { use common_enums::{ AttemptStatus, AuthenticationType, Currency, PaymentMethod, PaymentMethodType, }; use common_utils::{id_type::MerchantId, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_invalid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_body_connector-integration_-3871210758204669158
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_v2_valid_authorize_response { use std::str::FromStr; use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; u...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_v2_valid_authorize_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_struc...
connector-service_body_connector-integration_-8922597920826393306
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_authorize_error_response { use domain_types::{ connector_flow::Authorize, connector_types::{PaymentFlowData, PaymentsAuthorizeData, PaymentsResponseData}, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_authorize_error_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_body_connector-integration_901397538912186964
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_authorize_missing_required_fields { use domain_types::{ connector_flow::Authorize, connector_types::{PaymentFlowData, PaymentsAuthorizeData, PaymentsResponseData}, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_authorize_missing_required_fields", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs"...
connector-service_body_connector-integration_-4972240173322938778
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_authorize_invalid_error_fields { use domain_types::{ connector_flow::Authorize, connector_types::{PaymentFlowData, PaymentsAuthorizeData, PaymentsResponseData}, }; ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_authorize_invalid_error_fields", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": n...
connector-service_body_connector-integration_8878164691626727343
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_v2_missing_fields_authorize_response { use std::str::FromStr; use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; use doma...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_v2_missing_fields_authorize_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "...
connector-service_body_connector-integration_-1262477012638053872
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_v2_invalid_json_authorize_response { use std::str::FromStr; use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; use domain...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_v2_invalid_json_authorize_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "nu...
connector-service_body_connector-integration_-7908791156729419999
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_build_request_valid_order { use common_enums::Currency; use common_utils::{id_type::MerchantId, request::RequestContent, types::MinorUnit}; use domain_types::{ connec...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_valid_order", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_connector-integration_-2250098341918712889
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_v2_valid_order_response { use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; use domain_types::{ connector_types::{Pay...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_v2_valid_order_response", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs":...
connector-service_body_connector-integration_6941333131051758840
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_missing { use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; use domain_types::{ connector_types::PaymentCreateOrderDa...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_missing", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo":...
connector-service_body_connector-integration_989211878059782093
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_response_invalid { use common_enums::Currency; use common_utils::{id_type::MerchantId, pii::Email, types::MinorUnit}; use domain_types::{ connector_types::PaymentCreateOrderDa...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_response_invalid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo":...
connector-service_body_connector-integration_3435598897392635562
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_error_response_valid { let http_response = Response { headers: None, response: br#"{ "error": { "code": "BAD_REQUEST_ERROR", ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_error_response_valid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_body_connector-integration_8132296736493886026
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_error_response_invalid_json { let http_response = Response { headers: None, response: br#"{ "error": { "code": "BAD_REQUEST_ERROR" "#.to_vec().into(), status_code: 400...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_error_response_invalid_json", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null...