id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_body_grpc-server_6474833224344867286
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: extract_transaction_id { match &response.transaction_id { Some(id) => match id.id_type.as_ref().unwrap() { IdType::Id(id) => id.clone(), _ => panic!("Expected connector transaction ID"...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_transaction_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_grpc-server_6808827162032027004
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: create_payment_authorize_request { // Initialize with all required fields let mut request = PaymentServiceAuthorizeRequest::default(); // Set request reference ID let mut request_ref_id = Identifier::def...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_authorize_request", "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_grpc-server_-8967050789992120169
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: create_payment_sync_request { PaymentServiceGetRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), request_ref_id: Some(Identifie...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_sync_request", "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_grpc-server_-2650470818879392351
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: create_payment_capture_request { PaymentServiceCaptureRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), amount_to_capture: TEST...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_capture_request", "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_grpc-server_-2922098871816672469
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: create_refund_request { PaymentServiceRefundRequest { refund_id: format!("refund_{}", get_timestamp()), transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string(...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_refund_request", "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_grpc-server_1422767740851790086
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: create_payment_void_request { PaymentServiceVoidRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), cancellation_reason: Some("Cu...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_void_request", "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_grpc-server_-911773784498730869
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_health { grpc_test!(client, HealthClient<Channel>, { let response = client .check(Request::new(HealthCheckRequest { service: "connector_service".to_string(), })) ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_health", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_4222945509478044210
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_payment_authorization_auto_capture { grpc_test!(client, PaymentServiceClient<Channel>, { // Create the payment authorization request let request = create_payment_authorize_request(common_enums::C...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_auto_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_grpc-server_-229242072854148878
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_payment_authorization_manual_capture { grpc_test!(client, PaymentServiceClient<Channel>, { // Create the payment authorization request with manual capture let auth_request = create_payment_author...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_manual_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_grpc-server_5613932586531979458
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_payment_sync { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment to sync let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Manual); ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_sync", "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_grpc-server_-5231900633774868630
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_payment_capture { grpc_test!(client, PaymentServiceClient<Channel>, { // Create the payment authorization request with manual capture let auth_request = create_payment_authorize_request(common_en...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_capture", "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_grpc-server_3525038909911381947
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_refund { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment to refund let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Automatic); ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_refund", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_-5164936181117676341
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/rapyd_payment_flows_test.rs // Function: test_payment_void { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment with manual capture (so it stays in authorized state) let auth_request = create_payment_authorize_requ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_void", "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_grpc-server_-6856345926885329107
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: add_placetopay_metadata { let auth = utils::credential_utils::load_connector_auth(CONNECTOR_NAME) .expect("Failed to load placetopay credentials"); let (api_key, key1) = match auth { domain_...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "add_placetopay_metadata", "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_grpc-server_-2366563515290863855
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: extract_transaction_id { match &response.transaction_id { Some(id) => match id.id_type.as_ref().unwrap() { IdType::Id(id) => { if id == "NoResponseIdMarker" { ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_transaction_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_grpc-server_193363765930568766
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_payment_authorize_request { let mut request = PaymentServiceAuthorizeRequest::default(); // Set request reference ID let mut request_ref_id = Identifier::default(); request_ref_id.id_type = S...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_authorize_request", "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_grpc-server_7085890960054428617
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_payment_sync_request { PaymentServiceGetRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), request_ref_id: Some(Iden...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_sync_request", "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_grpc-server_4583330475245050269
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_payment_capture_request { PaymentServiceCaptureRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), amount_to_capture:...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_capture_request", "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_grpc-server_4411501932134629534
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_refund_request { PaymentServiceRefundRequest { refund_id: format!("refund_{}", get_timestamp()), transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_st...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_refund_request", "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_grpc-server_-2281399057436696272
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_refund_sync_request { RefundServiceGetRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), refund_id: refund_id.to_str...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_refund_sync_request", "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_grpc-server_6453156545465505913
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: create_payment_void_request { PaymentServiceVoidRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), cancellation_reason: Som...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_void_request", "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_grpc-server_-1923340524500855355
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_health { grpc_test!(client, HealthClient<Channel>, { let response = client .check(Request::new(HealthCheckRequest { service: "connector_service".to_string(), ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_health", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_-6173925382064794975
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_payment_authorization_auto_capture { grpc_test!(client, PaymentServiceClient<Channel>, { let request = create_payment_authorize_request(common_enums::CaptureMethod::Automatic); let mut grpc_...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_auto_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_grpc-server_726191333064768993
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_payment_authorization_manual_capture { grpc_test!(client, PaymentServiceClient<Channel>, { let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Manual); let mut a...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_manual_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_grpc-server_6078995008677066830
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_payment_sync { grpc_test!(client, PaymentServiceClient<Channel>, { let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Manual); let mut auth_grpc_request = Reque...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_sync", "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_grpc-server_-4077416541843397713
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_payment_capture { grpc_test!(client, PaymentServiceClient<Channel>, { let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Manual); let mut auth_grpc_request = Re...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_capture", "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_grpc-server_-7620005355061820253
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_refund { grpc_test!(client, PaymentServiceClient<Channel>, { let auth_request = create_payment_authorize_request(common_enums::CaptureMethod::Automatic); let mut auth_grpc_request = Request:...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_refund", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_-4571690759108519791
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_refund_sync { grpc_test!(client, PaymentServiceClient<Channel>, { grpc_test!(refund_client, RefundServiceClient<Channel>, { let auth_request = create_payment_authorize_re...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_refund_sync", "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_grpc-server_-8547286777163590743
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/placetopay_payment_flows_test.rs // Function: test_payment_void { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment with manual capture (so it stays in authorized state) let auth_request = create_payment_authorize...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_void", "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_grpc-server_-2338717047285818765
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: build_adyen_webhook_json_body { let mut additional_data = serde_json::Map::new(); if let Some(status) = adyen_dispute_status { additional_data.insert("disputeStatus".to_string(), json!(status)); } ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_adyen_webhook_json_body", "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_grpc-server_-810982133086268311
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: process_webhook_and_get_response { let request_body_bytes = serde_json::to_vec(&json_body).expect("Failed to serialize json_body to Vec<u8>"); let mut request = Request::new(PaymentServiceTransformRequ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "process_webhook_and_get_response", "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_grpc-server_3276088978534043417
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_notification_of_chargeback_undefended { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "NOTIFICATION_OF_CHARGEBACK"; let reason = "Fraudulent transaction"; let ady...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_notification_of_chargeback_undefended", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_body_grpc-server_6294348842367217897
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_notification_of_chargeback_pending { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "NOTIFICATION_OF_CHARGEBACK"; let reason = "Product not received"; let adyen_di...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_notification_of_chargeback_pending", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_grpc-server_-6561497775619879683
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_undefended { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK"; let reason = "Service not rendered"; let adyen_dispute_status = Some("Undefend...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_undefended", "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_grpc-server_-643706451557912285
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_pending { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK"; let reason = "Credit not processed"; let adyen_dispute_status = Some("Pending"); ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_pending", "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_grpc-server_7011379223113711137
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_lost { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK"; let reason = "Duplicate transaction"; let adyen_dispute_status = Some("Lost"); ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_lost", "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_grpc-server_2452759132279295282
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_accepted { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK"; let reason = "Fraudulent transaction - merchant accepted"; let adyen_dispute_sta...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_accepted", "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_grpc-server_8759111116500764547
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_reversed_pending { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK_REVERSED"; let reason = "Defense successful, awaiting bank review"; let ad...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_reversed_pending", "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_grpc-server_1763610019422898052
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_chargeback_reversed_won { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "CHARGEBACK_REVERSED"; let reason = "Defense accepted by bank"; let adyen_dispute_status =...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_chargeback_reversed_won", "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_grpc-server_2290693391100849548
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_second_chargeback_lost { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "SECOND_CHARGEBACK"; let reason = "Defense declined after initial reversal"; let adyen_disp...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_second_chargeback_lost", "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_grpc-server_-5822541887480379236
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_prearbitration_won_with_status_won { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "PREARBITRATION_WON"; let reason = "Pre-arbitration won by merchant"; let adyen...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_prearbitration_won_with_status_won", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_grpc-server_3642135410451944204
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_prearbitration_won_with_status_pending { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "PREARBITRATION_WON"; let reason = "Pre-arbitration outcome pending"; let a...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_prearbitration_won_with_status_pending", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "r...
connector-service_body_grpc-server_5552120373384158439
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/adyen_dispute_webhook_test.rs // Function: test_prearbitration_lost { grpc_test!(client, PaymentServiceClient<Channel>, { let event_code = "PREARBITRATION_LOST"; let reason = "Pre-arbitration lost by merchant"; let adyen_dispute_stat...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_prearbitration_lost", "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_grpc-server_4706076031612857411
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: add_checkout_metadata { let auth = utils::credential_utils::load_connector_auth(CONNECTOR_NAME) .expect("Failed to load checkout credentials"); let (api_key, key1, api_secret) = match auth { d...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "add_checkout_metadata", "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_grpc-server_5820732395734419377
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: extract_transaction_id { match &response.transaction_id { Some(id) => match id.id_type.as_ref().unwrap() { IdType::Id(id) => id.clone(), _ => panic!("Expected connector transaction ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_transaction_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_grpc-server_4595777573539780981
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_payment_authorize_request { // Select the correct card number based on capture method let card_number = match capture_method { CaptureMethod::Automatic => Some(CardNumber::from_str(AUTO_CAPTURE_...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_authorize_request", "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_grpc-server_5336258093730585690
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_payment_sync_request { PaymentServiceGetRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), request_ref_id: Some(Identi...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_sync_request", "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_grpc-server_8240227680250458399
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_payment_capture_request { PaymentServiceCaptureRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), amount_to_capture: T...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_capture_request", "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_grpc-server_-2140092786085460549
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_refund_request { PaymentServiceRefundRequest { refund_id: format!("refund_{}", get_timestamp()), transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_stri...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_refund_request", "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_grpc-server_137174863991672591
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_refund_sync_request { RefundServiceGetRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), refund_id: refund_id.to_strin...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_refund_sync_request", "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_grpc-server_8298773930503719867
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: create_payment_void_request { PaymentServiceVoidRequest { transaction_id: Some(Identifier { id_type: Some(IdType::Id(transaction_id.to_string())), }), cancellation_reason: None,...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_payment_void_request", "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_grpc-server_7801870842629390671
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_health { grpc_test!(client, HealthClient<Channel>, { let response = client .check(Request::new(HealthCheckRequest { service: "connector_service".to_string(), })...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_health", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_-28809517737214015
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_payment_authorization_auto_capture { grpc_test!(client, PaymentServiceClient<Channel>, { // Create the payment authorization request let request = create_payment_authorize_request(CaptureMetho...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_auto_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_body_grpc-server_1187973394456150249
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_payment_authorization_manual_capture { grpc_test!(client, PaymentServiceClient<Channel>, { // Create the payment authorization request with manual capture let auth_request = create_payment_aut...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_manual_capture", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_grpc-server_7717901774637479810
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_payment_sync { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment to sync let auth_request = create_payment_authorize_request(CaptureMethod::Automatic); // ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_sync", "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_grpc-server_5695693638899768234
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_refund { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment with manual capture (same as the script) let auth_request = create_payment_authorize_request(CaptureMetho...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_refund", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_1049752648820201524
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_refund_sync { grpc_test!(client, PaymentServiceClient<Channel>, { grpc_test!(refund_client, RefundServiceClient<Channel>, { // First create a payment with manual capture (same as the scrip...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_refund_sync", "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_grpc-server_-115467468143069565
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/checkout_payment_flows_test.rs // Function: test_payment_void { grpc_test!(client, PaymentServiceClient<Channel>, { // First create a payment with manual capture to void let auth_request = create_payment_authorize_request(CaptureMethod::Manu...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_void", "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_grpc-server_703477179468502883
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: build_authorizedotnet_payment_profile_webhook_json_body { let notification_id = "7201C905-B01E-4622-B807-AC2B646A3815"; // Default let event_date = "2016-03-23T06:19:09.5297562Z"; // Default let webhook_i...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_authorizedotnet_payment_profile_webhook_json_body", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs"...
connector-service_body_grpc-server_5879050093636716450
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: build_authorizedotnet_customer_webhook_json_body { let notification_id = "5c3f7e00-1265-4e8e-abd0-a7d734163881"; // Default let event_date = "2016-03-23T05:23:06.5430555Z"; // Default let webhook_id = "0b...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_authorizedotnet_customer_webhook_json_body", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_body_grpc-server_-2377574083274192817
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: build_authorizedotnet_webhook_json_body { let notification_id = "550e8400-e29b-41d4-a716-446655440000"; // Default let event_date = "2023-12-01T12:00:00Z"; // Default let webhook_id = "webhook_123"; // De...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_authorizedotnet_webhook_json_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_grpc-server_-2956507259936022522
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: generate_webhook_signature { let crypto_algorithm = HmacSha512; let signature = crypto_algorithm .sign_message(secret.as_bytes(), webhook_body) .expect("Failed to generate signature"); //...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "generate_webhook_signature", "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_grpc-server_8305648893872008640
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: process_webhook_request { let request_body_bytes = serde_json::to_vec(&json_body).expect("Failed to serialize json_body to Vec<u8>"); let mut headers = std::collections::HashMap::new(); // Get w...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "process_webhook_request", "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_grpc-server_-8454518852040019216
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authorization_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; // Approved ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_approved", "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_grpc-server_-1195284913643216819
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authorization_declined { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 2; // Declined ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_declined", "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_grpc-server_-9023330362309175828
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authorization_held { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 4; // Held for review ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authorization_held", "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_grpc-server_-2197385030546999586
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authcapture_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authcapture.created"; let response_code = 1; // Approved let...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authcapture_approved", "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_grpc-server_4054078324515054841
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authcapture_declined { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authcapture.created"; let response_code = 2; // Declined let...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authcapture_declined", "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_grpc-server_1846606794386089532
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_authcapture_held { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authcapture.created"; let response_code = 4; // Held for review ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_authcapture_held", "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_grpc-server_8619828451467589771
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_capture_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.capture.created"; let response_code = 1; // Approved let transac...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_capture_approved", "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_grpc-server_-4819681515814303589
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_capture_declined { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.capture.created"; let response_code = 2; // Declined let transac...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_capture_declined", "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_grpc-server_-8828684149653912756
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_void_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.void.created"; let response_code = 1; // Approved let transaction_i...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_void_approved", "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_grpc-server_1819545801148407365
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_void_failed { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.void.created"; let response_code = 2; // Failed let transaction_id = ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_void_failed", "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_grpc-server_-1188403364202903403
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_prior_auth_capture_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.priorAuthCapture.created"; let response_code = 1; // Approved...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_prior_auth_capture_approved", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_grpc-server_-8002912689017333135
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_prior_auth_capture_declined { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.priorAuthCapture.created"; let response_code = 2; // Declined...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_prior_auth_capture_declined", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_body_grpc-server_-8270919732520877127
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_refund_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.refund.created"; let response_code = 1; // Approved let transacti...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_refund_approved", "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_grpc-server_7933279977396257378
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_refund_declined { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.refund.created"; let response_code = 2; // Declined let transacti...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_refund_declined", "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_grpc-server_221061400862828105
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_payment_refund_held { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.refund.created"; let response_code = 4; // Held for review let transa...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_payment_refund_held", "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_grpc-server_6587451462553560
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_signature_verification_valid { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; let t...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_signature_verification_valid", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_body_grpc-server_9051257252490488269
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_missing_signature { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; let transaction_...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_missing_signature", "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_grpc-server_-1954193537915659751
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_malformed_body { grpc_test!(client, PaymentServiceClient<Channel>, { let malformed_json = json!({ "invalid": "structure", "missing": "required_fields" }); ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_malformed_body", "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_grpc-server_-3066266767033294047
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_customer_created_approved { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.customer.created"; let customer_profile_id = "394"; let payment_profile...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_customer_created_approved", "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_grpc-server_5551554661721760779
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_customer_created_with_different_customer_id { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.customer.created"; let customer_profile_id = "395"; l...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_customer_created_with_different_customer_id", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_body_grpc-server_-7532320274900399331
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_customer_payment_profile_created_individual { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.customer.paymentProfile.created"; let customer_profile_id = 3...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_customer_payment_profile_created_individual", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_body_grpc-server_1024572921489789549
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_customer_payment_profile_created_business { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.customer.paymentProfile.created"; let customer_profile_id = 395...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_customer_payment_profile_created_business", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_body_grpc-server_5056199700254575243
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_unknown_event_type { grpc_test!(client, PaymentServiceClient<Channel>, { let unknown_event_type = "net.authorize.unknown.event.type"; let response_code = 1; let transaction_id...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_unknown_event_type", "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_grpc-server_7473656802158035898
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_source_verification_valid_signature { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_source_verification_valid_signature", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_body_grpc-server_-7003069592166008417
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_source_verification_invalid_signature { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_source_verification_invalid_signature", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_body_grpc-server_4847658437013322577
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_source_verification_missing_signature { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_source_verification_missing_signature", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_body_grpc-server_-5276036055561152114
clm
function_body
// connector-service/backend/grpc-server/tests/beta_tests/authorizedotnet_webhook_test.rs // Function: test_webhook_source_verification_no_secret_provided { grpc_test!(client, PaymentServiceClient<Channel>, { let event_type = "net.authorize.payment.authorization.created"; let response_code = 1; ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_webhook_source_verification_no_secret_provided", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nu...
connector-service_body_grpc-server_1169013752174622920
clm
function_body
// connector-service/backend/grpc-server/src/request.rs // Function: from_grpc_request { let (metadata, extensions, payload) = request.into_parts(); // Construct MetadataPayload from raw metadata (existing functions need it) let metadata_payload = get_metadata_payload(&metadata, co...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from_grpc_request", "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_grpc-server_-4638357111146167043
clm
function_body
// connector-service/backend/grpc-server/src/error.rs // Function: switch { match self { Self::HeaderMapConstructionFailed | Self::InvalidProxyConfiguration | Self::ClientConstructionFailed | Self::CertificateDecodeFailed | Self::BodySerializationFail...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "switch", "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_grpc-server_-4393861171365267638
clm
function_body
// connector-service/backend/grpc-server/src/error.rs // Function: into_grpc_status { logger::error!(error=?self); match self.current_context() { ApplicationErrorResponse::Unauthorized(api_error) => { Status::unauthenticated(&api_error.error_message) } ...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "into_grpc_status", "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_grpc-server_7986719775498184719
clm
function_body
// connector-service/backend/grpc-server/src/error.rs // Function: new { Self { status, error_message, error_code, status_code, } }
{ "chunk": null, "crate": "grpc-server", "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_line...
connector-service_body_grpc-server_3131108957424278738
clm
function_body
// connector-service/backend/grpc-server/src/error.rs // Function: from { Self { transaction_id: None, redirection_data: None, network_txn_id: None, response_ref_id: None, incremental_authorization_allowed: None, status: error.status.into(...
{ "chunk": null, "crate": "grpc-server", "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", "start_lin...
connector-service_body_grpc-server_-5178415969516707214
clm
function_body
// connector-service/backend/grpc-server/src/configs.rs // Function: validate { let Self { environment } = self; match environment { consts::Env::Development | consts::Env::Production | consts::Env::Sandbox => Ok(()), } }
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "validate", "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_grpc-server_-3725551289089815187
clm
function_body
// connector-service/backend/grpc-server/src/configs.rs // Function: new_with_config_path { let env = consts::Env::current_env(); let config_path = Self::config_path(&env, explicit_config_path); let config = Self::builder(&env)? .add_source(config::File::from(config_path).required(...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new_with_config_path", "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_grpc-server_-5479896815067414845
clm
function_body
// connector-service/backend/grpc-server/src/configs.rs // Function: builder { config::Config::builder() // Here, it should be `set_override()` not `set_default()`. // "env" can't be altered by config field. // Should be single source of truth. .set_override("env...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "builder", "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_grpc-server_-7800825469119508484
clm
function_body
// connector-service/backend/grpc-server/src/configs.rs // Function: config_path { let mut config_path = PathBuf::new(); if let Some(explicit_config_path_val) = explicit_config_path { config_path.push(explicit_config_path_val); } else { let config_directory: String = "co...
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "config_path", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "st...
connector-service_body_grpc-server_1717037988323564786
clm
function_body
// connector-service/backend/grpc-server/src/configs.rs // Function: tcp_listener { let loc = format!("{}:{}", self.host, self.port); tracing::info!(loc = %loc, "binding the server"); Ok(tokio::net::TcpListener::bind(loc).await?) }
{ "chunk": null, "crate": "grpc-server", "enum_name": null, "file_size": null, "for_type": null, "function_name": "tcp_listener", "is_async": null, "is_pub": null, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "s...