id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_body_connector-integration_4630970440140951762
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/test.rs // Function: test_handle_error_response_missing_error_field { let http_response = Response { headers: None, response: br#"{ "message": "Some generic message", "status": "failed" ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_handle_error_response_missing_error_field", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs...
connector-service_body_connector-integration_-9078528393221723888
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: try_from { use domain_types::payment_method_data::{PaymentMethodData, UpiData}; use hyperswitch_masking::PeekInterface; // Determine flow type and extract VPA based on UPI payment method ...
{ "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_5939746031037116638
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: generate_authorization_header { let auth_type_name = match self { RazorpayAuthType::AuthToken(_) => "AuthToken", RazorpayAuthType::ApiKeySecret { .. } => "ApiKeySecret", }; ...
{ "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_-7098095553287580584
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: extract_payment_method_and_data { match payment_method_data { PaymentMethodData::Card(card_data) => { let card_holder_name = customer_name.clone(); let card = PaymentMethodSpecif...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_payment_method_and_data", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_connector-integration_-7952878649503609795
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: foreign_try_from { let (transaction_id, redirection_data) = match upi_response { RazorpayUpiPaymentsResponse::SuccessIntent { razorpay_payment_id, link, ...
{ "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_-4037744963478676863
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: get_authorization_razorpay_payment_status_from_action { if has_next_action { AttemptStatus::AuthenticationPending } else if is_manual_capture { AttemptStatus::Authorized } else { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_authorization_razorpay_payment_status_from_action", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_...
connector-service_body_connector-integration_-6631758940601854582
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: get_psync_razorpay_payment_status { match razorpay_status { RazorpayStatus::Created => AttemptStatus::Pending, RazorpayStatus::Authorized => { if is_manual_capture { A...
{ "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_-3972311658588693386
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: get_webhook_object_from_body { let webhook: RazorpayWebhook = body .parse_struct("RazorpayWebhook") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(webhook.payload) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_webhook_object_from_body", "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_-8908402265636698198
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: get_razorpay_payment_webhook_status { match entity { RazorpayEntity::Payment => match status { RazorpayPaymentStatus::Authorized => Ok(AttemptStatus::Authorized), RazorpayPaymentS...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_razorpay_payment_webhook_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_-2901555541874008960
clm
function_body
// connector-service/backend/connector-integration/src/connectors/razorpay/transformers.rs // Function: get_razorpay_refund_webhook_status { match entity { RazorpayEntity::Refund => match status { RazorpayRefundStatus::Processed => Ok(common_enums::RefundStatus::Success), RazorpayRe...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_razorpay_refund_webhook_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_-1636434888078594297
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: try_from { Ok(Self { response: Ok(RefundsResponseData { connector_refund_id: item.response.transaction_id, refund_status: enums::RefundStatus::from(item.response.s...
{ "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_8550670897078209958
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_status { match status { NexinetsPaymentStatus::Success => match method { NexinetsTransactionType::Preauth => AttemptStatus::Authorized, NexinetsTransactionType::Debit | Nexine...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_body_connector-integration_3537089937280467251
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: from { match item { RefundStatus::Success => Self::Success, RefundStatus::Failure | RefundStatus::Declined => Self::Failure, RefundStatus::InProgress | RefundStatus::Ok =>...
{ "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_-2322373070182054017
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_payment_details_and_product { match &item.request.payment_method_data { PaymentMethodData::Card(card) => Ok(( Some(get_card_data(item, card)?), NexinetsProduct::Creditcard, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_details_and_product", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_connector-integration_2241953456805645297
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_card_data { let (card_data, cof_contract) = match is_mandate_payment(&item.request) { true => { let card_data = match item.request.off_session { Some(true) => CardDataDeta...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_card_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_-2901233954996636942
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_applepay_details { let payment_data = WalletData::get_wallet_token_as_json(wallet_data, "Apple Pay".to_string())?; Ok(ApplePayDetails { payment_data, payment_method: ApplepayPaymentMethod...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_applepay_details", "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_-6177214858470529762
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_card_details { Ok(CardDetails { card_number: req_card.card_number.clone(), expiry_month: req_card.card_exp_month.clone(), expiry_year: req_card.card_exp_year.clone(), verifica...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_card_details", "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_3485731755972331756
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_wallet_details { match wallet { WalletData::PaypalRedirect(_) => Ok((None, NexinetsProduct::Paypal)), WalletData::ApplePay(applepay_data) => Ok(( Some(NexinetsPaymentDetails::Wall...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_wallet_details", "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_-2834110669664230917
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_order_id { let order_id = meta.order_id.clone().ok_or( errors::ConnectorError::MissingConnectorRelatedTransactionID { id: "order_id".to_string(), }, )?; Ok(order_id) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_order_id", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-serv...
connector-service_body_connector-integration_-2064561617091103254
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/transformers.rs // Function: get_transaction_id { let transaction_id = meta.transaction_id.clone().ok_or( errors::ConnectorError::MissingConnectorRelatedTransactionID { id: "transaction_id".to_string(), }, )?...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_transaction_id", "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_4959836677832181844
clm
function_body
// connector-service/backend/connector-integration/src/connectors/nexinets/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....
{ "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_-7118840584028584861
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashfree/test.rs // Function: test_cashfree_connector_creation { // Basic test to ensure connector can be created let connector: &connectors::cashfree::Cashfree<DefaultPCIHolder> = super::super::Cashfree::new(); asser...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_cashfree_connector_creation", "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_-913117386941814465
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashfree/transformers.rs // Function: try_from { let response = item.response; let (status, redirection_data) = match response.channel.as_str() { "link" => { // Intent flow - extract deep link from payload._d...
{ "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_3976411639051272969
clm
function_body
// connector-service/backend/connector-integration/src/connectors/cashfree/transformers.rs // Function: get_cashfree_payment_method_data { match payment_method_data { PaymentMethodData::Upi(upi_data) => { match upi_data { domain_types::payment_method_data::UpiData::UpiCollect(co...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_cashfree_payment_method_data", "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_4556260266317788542
clm
function_body
// connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs // Function: try_from { let refund_status = common_enums::RefundStatus::from(item.response.status); Ok(Self { response: Ok(RefundsResponseData { connector_refund_id: item.response.id, ...
{ "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_3421055711721102464
clm
function_body
// connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs // Function: get_payer_name { let first_name = address .first_name .clone() .map_or("".to_string(), |first_name| first_name.peek().to_string()); let last_name = address .last_name .c...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payer_name", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-se...
connector-service_body_connector-integration_-5799409836123546819
clm
function_body
// connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs // Function: from { match item { RefundStatus::Success => Self::Success, RefundStatus::Pending => Self::Pending, RefundStatus::Rejected => Self::ManualReview, RefundStatus::C...
{ "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_8581464554531103985
clm
function_body
// connector-service/backend/connector-integration/src/connectors/dlocal/transformers.rs // Function: get_doc_from_currency { let doc = match country.as_str() { "BR" => "91483309223", "ZA" => "2001014800086", "BD" | "GT" | "HN" | "PK" | "SN" | "TH" => "1234567890001", "CR" | "SV" | ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_doc_from_currency", "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_7689147486421063469
clm
function_body
// connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs // Function: try_from { let (connector_refund_id, refund_status) = match item.response.data { Some(data) => (data.id, common_enums::RefundStatus::from(data.status)), None => ( item.re...
{ "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_-1598684213023246236
clm
function_body
// connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs // Function: get_status { match (status, next_action) { (RapydPaymentStatus::Closed, _) => common_enums::AttemptStatus::Charged, ( RapydPaymentStatus::Active, NextAction::ThreedsVerificat...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_status", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_body_connector-integration_377161422644771364
clm
function_body
// connector-service/backend/connector-integration/src/connectors/rapyd/transformers.rs // Function: from { match item { RefundStatus::Completed => Self::Success, RefundStatus::Error | RefundStatus::Rejected => Self::Failure, RefundStatus::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_4119764694675366801
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: try_from { match auth_type { ConnectorAuthType::SignatureKey { api_key, key1, api_secret, } => { Ok(Self { ...
{ "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_-3185481980065317347
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: determine_upi_flow { match payment_method_data { PaymentMethodData::Upi(upi_data) => { match upi_data { UpiData::UpiCollect(collect_data) => { // If VPA is pr...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "determine_upi_flow", "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_-7439446151973128045
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: extract_upi_vpa { match payment_method_data { PaymentMethodData::Upi(UpiData::UpiCollect(collect_data)) => { if let Some(vpa_id) = &collect_data.vpa_id { let vpa = vpa_id.peek()....
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_upi_vpa", "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_-6957289705848226931
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: generate_paytm_signature { // Step 1: Generate random salt bytes using ring (same logic, different implementation) let rng = SystemRandom::new(); let mut salt_bytes = [0u8; constants::SALT_LENGTH]; rng....
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "generate_paytm_signature", "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_-5853728846929343125
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: crypt(data: // PayTM uses fixed IV as specified in PayTMv1 implementation let iv = get_paytm_iv(); let key_bytes = key.as_bytes(); let data_bytes = data.as_bytes(); // Determine AES variant based on ke...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "crypt(data:", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servi...
connector-service_body_connector-integration_-3913032980729359843
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: ytm_iv() -> // This is the exact IV used by PayTM v2 as found in the Haskell codebase *constants::PAYTM_IV } pub
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "ytm_iv() -> ", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-serv...
connector-service_body_connector-integration_-6797924368998403143
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: _paytm_header( let _payload = serde_json::to_string(request_body) .change_context(errors::ConnectorError::RequestEncodingFailed)?; let signature = generate_paytm_signature(&_payload, auth.merchant_key....
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "_paytm_header(\n ", "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_-1354961511510201592
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: om_with_converter( let amount = amount_converter .convert(item.request.minor_amount, item.request.currency) .change_context(errors::ConnectorError::AmountConversionFailed)?; let...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om_with_converter(\n ", "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_5259596103797085652
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: om_with_auth( let body = PaytmTransactionStatusReqBody { mid: Secret::new(auth.merchant_id.peek().to_string()), order_id: item.payment_id.clone(), txn_type: item.txn_type.cl...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om_with_auth(\n ", "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_9052962118483078786
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: om_with_auth<T: do // Extract UPI VPA for collect flow let vpa = extract_upi_vpa(&item.payment_method_data)?.ok_or( errors::ConnectorError::MissingRequiredField { field_name: "vp...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om_with_auth<T: do", "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_-2773304284711643439
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: om( let response = &item.response; let mut router_data = item.router_data; // Handle both success and failure cases from the enum body let (resource_id, connector_txn_id) = match &resp...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om(\n ", "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_4077306061252374201
clm
function_body
// connector-service/backend/connector-integration/src/connectors/paytm/transformers.rs // Function: ytm_status_to_attempt_status(resul match result_code { // Success "01" => AttemptStatus::Charged, // TXN_SUCCESS "0000" => AttemptStatus::AuthenticationPending, // Success - wait...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "ytm_status_to_attempt_status(resul", "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_2054285568921142490
clm
function_body
// connector-service/backend/connector-integration/src/connectors/mifinity/transformers.rs // Function: try_from { let payload = item.response.payload.first(); match payload { Some(payload) => { let status = payload.status.clone(); let payment_response = pay...
{ "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_-2217055865063992973
clm
function_body
// connector-service/backend/connector-integration/src/connectors/mifinity/transformers.rs // Function: from { match item { MifinityPaymentStatus::Successful => Self::Charged, MifinityPaymentStatus::Failed => Self::Failure, MifinityPaymentStatus::NotCompleted => Self::Authen...
{ "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_-3994609864851356532
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: try_from { let item = value.router_data; let mandate_metadata = match &item.request.mandate_reference { MandateReferenceId::ConnectorMandateId(mandate_data) => { Some(manda...
{ "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_1173613580111018141
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: from { match item { RefundStatus::Succeeded => Self::Success, RefundStatus::Failed => Self::Failure, RefundStatus::Pending => Self::Pending, RefundStatus::Requir...
{ "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_8518057686944955326
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: validate_shipping_address_against_payment_method { match payment_method { Some(StripePaymentMethodType::AfterpayClearpay) => match shipping_address { Some(address) => { let miss...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "validate_shipping_address_against_payment_method", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_struc...
connector-service_body_connector-integration_-8850820069584541922
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_stripe_payment_method_type_from_wallet_data { match wallet_data { WalletData::AliPayRedirect(_) => Ok(Some(StripePaymentMethodType::Alipay)), WalletData::ApplePay(_) => Ok(None), Wallet...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_stripe_payment_method_type_from_wallet_data", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_struct...
connector-service_body_connector-integration_-5598417203105720999
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_bank_debit_data { match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { account_number, routing_number, .. } => { let ach_da...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_bank_debit_data", "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_-8522391454159232776
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: create_stripe_payment_method { match payment_method_data { PaymentMethodData::Card(card_details) => { let payment_method_auth_type = match payment_request_details.auth_type { co...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_stripe_payment_method", "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_-4635542134191482774
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_stripe_card_network { match card_network { common_enums::CardNetwork::Visa => Some(StripeCardNetwork::Visa), common_enums::CardNetwork::Mastercard => Some(StripeCardNetwork::Mastercard), ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_stripe_card_network", "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_7891244608112781997
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_stripe_overcapture_request { match enable_overcapture { true => Some(StripeRequestOvercaptureBool::IfAvailable), false => None, } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_stripe_overcapture_request", "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_-8968230207100467703
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_overcapture_status { match self { Self::ChargeObject(charge_object) => charge_object .payment_method_details .as_ref() .and_then(|payment_method_...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_overcapture_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_-6203313107654536436
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_maximum_capturable_amount { match self { Self::ChargeObject(charge_object) => { if let Some(payment_method_details) = charge_object.payment_method_details.as_ref() ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_maximum_capturable_amount", "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_6531673111307194203
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_additional_payment_method_data { match self { Self::Card { card } => Some(AdditionalPaymentMethodDetails { payment_checks: card.checks.clone(), authentication_de...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_additional_payment_method_data", "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_-6852380513523657294
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: extract_payment_method_connector_response_from_latest_charge { let is_overcapture_enabled = stripe_charge_enum.get_overcapture_status(); let additional_payment_method_details = if let StripeChargeEnum:...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_payment_method_connector_response_from_latest_charge", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, ...
connector-service_body_connector-integration_1369774013258447293
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_connector_metadata { let next_action_response = next_action .and_then(|next_action_response| match next_action_response { StripeNextActionResponse::DisplayBankTransferInstructions(response)...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_connector_metadata", "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_8571177012977070044
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_payment_method_id { match latest_charge { Some(StripeChargeEnum::ChargeObject(charge)) => match charge.payment_method_details { Some(StripePaymentMethodDetailsResponse::Bancontact { bancont...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_method_id", "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_-4318103245275833434
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: extract_payment_method_connector_response_from_latest_attempt { if let LatestAttempt::PaymentIntentAttempt(intent_attempt) = stripe_latest_attempt { intent_attempt .payment_method_details ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_payment_method_connector_response_from_latest_attempt", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null,...
connector-service_body_connector-integration_-1974308769895143293
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: stripe_opt_latest_attempt_to_opt_string { match latest_attempt { Some(LatestAttempt::PaymentIntentAttempt(attempt)) => attempt .payment_method_options .and_then(|payment_method_opti...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "stripe_opt_latest_attempt_to_opt_string", "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_-3003017068298081302
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_url { match self { Self::RedirectToUrl(redirect_to_url) | Self::AlipayHandleRedirect(redirect_to_url) => { Some(redirect_to_url.url.to_owned()) } Self::W...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_url", "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_-9207417217826604558
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: deserialize { #[derive(Deserialize)] struct Wrapper { #[serde(rename = "type")] _ignore: String, #[serde(flatten, with = "StripeNextActionResponse")] inn...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "deserialize", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servi...
connector-service_body_connector-integration_-4265241655935995837
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: serialize { match *self { Self::CashappHandleRedirectOrDisplayQrCode(ref i) => { Serialize::serialize(i, serializer) } Self::RedirectToUrl(ref i) => Serializ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "serialize", "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_5655059225716532881
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: mandatory_parameters_for_sepa_bank_debit_mandates { let billing_name = billing_details .clone() .and_then(|billing_data| billing_data.name.clone()); let billing_email = billing_details ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "mandatory_parameters_for_sepa_bank_debit_mandates", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_stru...
connector-service_body_connector-integration_8735047973494365850
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_transaction_metadata { let mut meta_data = HashMap::from([("metadata[order_id]".to_string(), order_id)]); let mut request_hash_map = HashMap::new(); if let Some(metadata) = merchant_metadata { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_transaction_metadata", "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_3511277782673471065
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_stripe_payments_response_data { let (code, error_message) = match response { Some(error_details) => ( error_details .code .to_owned() .unwrap...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_stripe_payments_response_data", "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_-7552552949357001475
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: construct_charge_response { let charge_request = request.get_split_payment_data(); if let Some(domain_types::connector_types::SplitPaymentsRequest::StripeSplitPayment( stripe_split_payment, )) = ch...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "construct_charge_response", "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_5659715827989969682
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: transform_headers_for_connect_platform { if let common_enums::PaymentChargeType::Stripe(common_enums::StripeChargeType::Direct) = charge_type { let mut customer_account_header = vec![( ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "transform_headers_for_connect_platform", "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_5162255066699953247
clm
function_body
// connector-service/backend/connector-integration/src/connectors/stripe/transformers.rs // Function: get_payment_method_type_for_saved_payment_method_payment { if item.resource_common_data.payment_method == common_enums::PaymentMethod::Card { Ok(Some(StripePaymentMethodType::Card)) //stripe takes ["Card"]...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_method_type_for_saved_payment_method_payment", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "n...
connector-service_body_connector-integration_1303099440923219256
clm
function_body
// connector-service/backend/connector-integration/src/utils/xml_utils.rs // Function: preprocess_xml_response_bytes { // Log raw bytes for debugging tracing::info!(bytes=?xml_data, "Raw XML bytes received for preprocessing"); // Convert to UTF-8 string let response_str = std::str::from_utf8(&xml_data...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "preprocess_xml_response_bytes", "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_4550111238108691031
clm
function_body
// connector-service/backend/connector-integration/src/utils/xml_utils.rs // Function: flatten_json_structure { let mut flattened = Map::new(); // Extract txn object if present let txn_obj = if let Some(obj) = json_value.as_object() { if let Some(txn) = obj.get("txn") { txn.as_object()...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "flatten_json_structure", "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_tracing-kafka_5072961068641949251
clm
function_body
// connector-service/backend/tracing-kafka/src/metrics.rs // Function: initialize_all_metrics { // Force evaluation of all lazy metrics to fail fast if registration fails. let _ = &*KAFKA_LOGS_SENT; let _ = &*KAFKA_LOGS_DROPPED; let _ = &*KAFKA_QUEUE_SIZE; let _ = &*KAFKA_DROPS_QUEUE_FULL; let ...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "initialize_all_metrics", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-se...
connector-service_body_tracing-kafka_-1568421221257796721
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: delivery { let message_type = *opaque; let is_success = delivery_result.is_ok(); #[cfg(feature = "kafka-metrics")] { match (message_type, is_success) { (KafkaMessageType::Event, true) => K...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "delivery", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "sta...
connector-service_body_tracing-kafka_-274270537329133485
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: fmt { f.debug_struct("KafkaWriter") .field("topic", &self.topic) .finish() }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "fmt", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_li...
connector-service_body_tracing-kafka_290730444913273393
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: new { let mut config = ClientConfig::new(); config.set("bootstrap.servers", brokers.join(",")); if let Some(min_backoff) = reconnect_backoff_min_ms { config.set("reconnect.backoff.ms", min_backoff.to_string()); ...
{ "chunk": null, "crate": "tracing-kafka", "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", "start_li...
connector-service_body_tracing-kafka_7845295661283135444
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: publish_event { #[cfg(feature = "kafka-metrics")] { let queue_size = self.producer.in_flight_count(); KAFKA_AUDIT_EVENT_QUEUE_SIZE.set(queue_size.into()); } let mut record = BaseRecord::with_o...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "publish_event", "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_tracing-kafka_5832403107327964822
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: write { #[cfg(feature = "kafka-metrics")] { let queue_size = self.producer.in_flight_count(); KAFKA_QUEUE_SIZE.set(queue_size.into()); } let record = BaseRecord::with_opaque_to(&self.topic, Bo...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "write", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_...
connector-service_body_tracing-kafka_2916428861070231651
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: flush { self.producer .flush(rdkafka::util::Timeout::After(Duration::from_secs(5))) .map_err(|e: KafkaError| io::Error::other(format!("Kafka flush failed: {e}"))) }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "flush", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_...
connector-service_body_tracing-kafka_-3597087384805780269
clm
function_body
// connector-service/backend/tracing-kafka/src/writer.rs // Function: drop { // Only flush if this is the last reference to the producer if Arc::strong_count(&self.producer) == 1 { // Try to flush pending messages with a 5 second timeout let _ = self .producer ...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "drop", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_l...
connector-service_body_tracing-kafka_451995750384660228
clm
function_body
// connector-service/backend/tracing-kafka/src/layer.rs // Function: from_writer { let config = JsonFormattingLayerConfig { static_top_level_fields: static_fields, top_level_keys: HashSet::new(), log_span_lifecycles: true, additional_fields_placement: AdditionalF...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from_writer", "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_tracing-kafka_3885294031497186191
clm
function_body
// connector-service/backend/tracing-kafka/src/layer.rs // Function: brokers { self.writer_builder = self .writer_builder .brokers(brokers.iter().map(|s| s.to_string()).collect()); self }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "brokers", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "star...
connector-service_body_tracing-kafka_-8683759213552624078
clm
function_body
// connector-service/backend/tracing-kafka/src/layer.rs // Function: queue_buffering_max_messages { self.writer_builder = self.writer_builder.queue_buffering_max_messages(size); self }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "queue_buffering_max_messages", "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_tracing-kafka_7474325781935482254
clm
function_body
// connector-service/backend/tracing-kafka/src/layer.rs // Function: queue_buffering_max_kbytes { self.writer_builder = self.writer_builder.queue_buffering_max_kbytes(size); self }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "queue_buffering_max_kbytes", "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_tracing-kafka_-6882464342109674018
clm
function_body
// connector-service/backend/tracing-kafka/src/layer.rs // Function: build { let kafka_writer = self.writer_builder.build()?; KafkaLayer::from_writer(kafka_writer, self.static_fields) }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_...
connector-service_body_tracing-kafka_-512760633133803525
clm
function_body
// connector-service/backend/tracing-kafka/src/builder.rs // Function: reconnect_backoff { self.reconnect_backoff_min_ms = min.as_millis().try_into().ok(); self.reconnect_backoff_max_ms = max.as_millis().try_into().ok(); self }
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "reconnect_backoff", "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_tracing-kafka_108416459605169019
clm
function_body
// connector-service/backend/tracing-kafka/src/builder.rs // Function: build { let brokers = self.brokers.ok_or_else(|| { KafkaWriterError::ProducerCreation(rdkafka::error::KafkaError::ClientCreation( "No brokers specified. Use .brokers()".to_string(), )) })?; ...
{ "chunk": null, "crate": "tracing-kafka", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_...
connector-service_body_ucs_common_enums_1302335836922554835
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: to_currency_base_unit { let amount_f64 = self.to_currency_base_unit_asf64(amount)?; Ok(format!("{amount_f64:.2}")) }
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_currency_base_unit", "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_ucs_common_enums_6717620428198109433
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: to_currency_base_unit_asf64 { let exponent = self.number_of_digits_after_decimal_point()?; let divisor = 10_u32.pow(exponent.into()); let amount_f64 = amount as f64 / f64::from(divisor); Ok(amount_f64) }
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_currency_base_unit_asf64", "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_ucs_common_enums_1935645549446957743
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: to_currency_lower_unit { let amount_decimal = amount .parse::<f64>() .map_err(|_| CurrencyError::UnsupportedCurrency { currency: format!("Invalid amount format: {amount}"), ...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_currency_lower_unit", "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_ucs_common_enums_-6063022065528235099
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: to_currency_base_unit_with_zero_decimal_check { if self.is_zero_decimal_currency() { Ok(amount.to_string()) } else { self.to_currency_base_unit(amount) } }
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_currency_base_unit_with_zero_decimal_check", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_body_ucs_common_enums_-7698180591797718585
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: iso_4217 { match self { Self::AED => "784", Self::AFN => "971", Self::ALL => "008", Self::AMD => "051", Self::ANG => "532", Self::AOA => "973", Self::ARS => "0...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "iso_4217", "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_ucs_common_enums_1863457751328752310
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: is_zero_decimal_currency { matches!( self, Self::BIF | Self::CLP | Self::DJF | Self::GNF | Self::JPY | Self::KMF | Self::KR...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_zero_decimal_currency", "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_ucs_common_enums_4729465804705572647
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: is_three_decimal_currency { matches!( self, Self::BHD | Self::JOD | Self::KWD | Self::OMR | Self::TND ) }
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_three_decimal_currency", "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_ucs_common_enums_5162897720359370202
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: number_of_digits_after_decimal_point { if self.is_zero_decimal_currency() { Ok(0) } else if self.is_three_decimal_currency() { Ok(3) } else if self.is_four_decimal_currency() { Ok(4) ...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "number_of_digits_after_decimal_point", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_ucs_common_enums_2898546609219124294
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: is_two_decimal_currency { matches!( self, Self::AED | Self::AFN | Self::ALL | Self::AMD | Self::ANG | Self::AOA | Self::ARS...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_two_decimal_currency", "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_ucs_common_enums_952033036474932759
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: to_display_name { match self { Self::ApplePay => "Apple Pay".to_string(), Self::GooglePay => "Google Pay".to_string(), Self::SamsungPay => "Samsung Pay".to_string(), Self::AliPay => "AliPay".to_s...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "to_display_name", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_body_ucs_common_enums_-734669285405537828
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: try_from { Ok(match value { 1 => AttemptStatus::Started, 2 => AttemptStatus::AuthenticationFailed, 3 => AttemptStatus::RouterDeclined, 4 => AttemptStatus::AuthenticationPending, 5 => ...
{ "chunk": null, "crate": "ucs_common_enums", "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_ucs_common_enums_-2103179282539849872
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: is_terminal_status { matches!( self, Self::Charged | Self::AutoRefunded | Self::Voided | Self::VoidedPostCapture | Self::PartialCharged | S...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_terminal_status", "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_ucs_common_enums_1659218272502078584
clm
function_body
// connector-service/backend/common_enums/src/enums.rs // Function: is_global_network { matches!( self, Self::Visa | Self::Mastercard | Self::AmericanExpress | Self::JCB | Self::DinersClub | Self::Discover ...
{ "chunk": null, "crate": "ucs_common_enums", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_global_network", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-serv...