id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_fn_connector-integration_663277235311379812
clm
function
// connector-service/backend/connector-integration/src/connectors/novalnet/transformers.rs pub fn get_incoming_webhook_event( status: WebhookEventType, transaction_status: NovalnetTransactionStatus, ) -> EventType { match status { WebhookEventType::Payment => match transaction_status { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_incoming_webhook_event", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
connector-service_fn_connector-integration_-6952957663247157186
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/test.rs fn test_build_request_valid() { let api_key = "test_adyen_api_key".to_string(); // Hardcoded dummy value let key1 = "test_adyen_key1".to_string(); // Hardcoded dummy value let req: RouterDataV2< ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_valid", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_fn_connector-integration_-5681562439064172875
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/test.rs fn test_build_request_missing() { let api_key = "test_adyen_api_key_missing".to_string(); // Hardcoded dummy value let key1 = "test_adyen_key1_missing".to_string(); // Hardcoded dummy value let req: Rout...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_missing", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo":...
connector-service_fn_connector-integration_-4241795342393484524
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn from( item: &RouterDataV2< SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData, >, ) -> Self { match item.request.off_sessio...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_167136384757826940
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn try_from( value: ResponseRouterData<AdyenDefendDisputeResponse, Self>, ) -> Result<Self, Self::Error> { let ResponseRouterData { response, router_data, http_code, }...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_8179419796355489933
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_amount_data< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &AdyenRouterData< RouterDataV2<Authoriz...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_amount_data", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector...
connector-service_fn_connector-integration_7518099285019130191
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_adyen_payment_status( is_manual_capture: bool, adyen_status: AdyenStatus, _pmt: Option<common_enums::PaymentMethodType>, ) -> AttemptStatus { match adyen_status { AdyenStatus::AuthenticationFinished =...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_adyen_payment_status", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_fn_connector-integration_-7674069107723274930
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn foreign_try_from(item: AdyenVoidStatus) -> Result<Self, Self::Error> { match item { AdyenVoidStatus::Received => Ok(Self::Voided), AdyenVoidStatus::Processing => Ok(Self::VoidInitiated), }...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "foreign_try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_fn_connector-integration_5367736282980672519
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_adyen_response( response: AdyenResponse, is_capture_manual: bool, status_code: u16, pmt: Option<common_enums::PaymentMethodType>, ) -> CustomResult< ( common_enums::AttemptStatus, Opti...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_adyen_response", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_fn_connector-integration_2801762041728564160
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_redirection_response( response: RedirectionResponse, is_manual_capture: bool, status_code: u16, pmt: Option<common_enums::PaymentMethodType>, ) -> CustomResult< ( common_enums::AttemptStatus, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_redirection_response", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_fn_connector-integration_6071155414175732482
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_wait_screen_metadata( next_action: &RedirectionResponse, ) -> CustomResult<Option<serde_json::Value>, domain_types::errors::ConnectorError> { match next_action.action.payment_method_type { PaymentType::Bl...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_wait_screen_metadata", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_fn_connector-integration_3561066937783713324
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn is_success_scenario(is_success: &str) -> bool { is_success == "true" }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_success_scenario", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_fn_connector-integration_-3798901867030574420
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub(crate) fn get_adyen_payment_webhook_event( code: WebhookEventCode, is_success: String, ) -> Result<AttemptStatus, errors::ConnectorError> { match code { WebhookEventCode::Authorisation => { if is...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_adyen_payment_webhook_event", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_fn_connector-integration_-6403774252104309111
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub(crate) fn get_adyen_refund_webhook_event( code: WebhookEventCode, is_success: String, ) -> Result<RefundStatus, errors::ConnectorError> { match code { WebhookEventCode::Refund | WebhookEventCode::CancelOrRef...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_adyen_refund_webhook_event", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_fn_connector-integration_7571493179599046255
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub(crate) fn get_adyen_webhook_event_type(code: WebhookEventCode) -> EventType { match code { WebhookEventCode::Authorisation => EventType::PaymentIntentAuthorizationSuccess, WebhookEventCode::Cancellation => E...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_adyen_webhook_event_type", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_fn_connector-integration_-1298008982947510298
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_webhook_object_from_body( body: Vec<u8>, ) -> Result<AdyenNotificationRequestItemWH, error_stack::Report<errors::ConnectorError>> { let mut webhook: AdyenIncomingWebhook = body .parse_struct("AdyenIncomin...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_webhook_object_from_body", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_fn_connector-integration_-7646778122907162140
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn build_shopper_reference( customer_id: &Option<common_utils::id_type::CustomerId>, merchant_id: common_utils::id_type::MerchantId, ) -> Option<String> { customer_id.clone().map(|c_id| { format!( "{...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_shopper_reference", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_fn_connector-integration_-8386024224868229444
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_recurring_processing_model< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2<Authorize, Payment...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_recurring_processing_model", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_fn_connector-integration_-8798471421830085579
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn is_mandate_payment< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2<Authorize, PaymentFlowData, Pa...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_mandate_payment", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_78658032047515618
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_address_info( address: Option<&domain_types::payment_address::Address>, ) -> Option<Result<Address, error_stack::Report<domain_types::errors::ConnectorError>>> { address.and_then(|add| { add.address.as_re...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_address_info", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector...
connector-service_fn_connector-integration_-2107408566965000745
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_additional_data< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2<Authorize, PaymentFlowData, P...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_additional_data", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_fn_connector-integration_6960544220320963518
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub fn get_risk_data(metadata: serde_json::Value) -> Option<RiskData> { let item_i_d = get_str("riskdata.basket.item1.itemID", &metadata); let product_title = get_str("riskdata.basket.item1.productTitle", &metadata); le...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_risk_data", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-se...
connector-service_fn_connector-integration_8517754732124571319
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_str(key: &str, riskdata: &serde_json::Value) -> Option<String> { riskdata .get(key) .and_then(|v| v.as_str()) .map(|s| s.to_string()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_str", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service...
connector-service_fn_connector-integration_3605896462610306993
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_bool(key: &str, riskdata: &serde_json::Value) -> Option<bool> { riskdata.get(key).and_then(|v| v.as_bool()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_bool", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_5334923471569566333
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_amount_data_for_setup_mandate< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &AdyenRouterData< Rou...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_amount_data_for_setup_mandate", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_fn_connector-integration_5705254874498825781
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_recurring_processing_model_for_setup_mandate< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2<...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_recurring_processing_model_for_setup_mandate", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_str...
connector-service_fn_connector-integration_6768865710378008378
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_additional_data_for_setup_mandate< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2< Se...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_additional_data_for_setup_mandate", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null...
connector-service_fn_connector-integration_7767464531085360465
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn is_mandate_payment_for_setup_mandate< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &RouterDataV2< Set...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_mandate_payment_for_setup_mandate", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null,...
connector-service_fn_connector-integration_1903287790605873704
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_defence_documents(item: SubmitEvidenceData) -> Option<Vec<DefenseDocuments>> { let mut defense_documents: Vec<DefenseDocuments> = Vec::new(); if let Some(shipping_documentation) = item.shipping_documentation { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_defence_documents", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_fn_connector-integration_844114116097667743
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs fn get_content(item: Vec<u8>) -> String { STANDARD.encode(item) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_content", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-ser...
connector-service_fn_connector-integration_4575633659855848483
clm
function
// connector-service/backend/connector-integration/src/connectors/adyen/transformers.rs pub(crate) fn get_dispute_stage_and_status( code: WebhookEventCode, dispute_status: Option<DisputeStatus>, ) -> (common_enums::DisputeStage, common_enums::DisputeStatus) { use common_enums::{DisputeStage, DisputeStatus ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_dispute_stage_and_status", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_fn_connector-integration_3599345303620624584
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn extract_report_group( connector_meta_data: &Option<hyperswitch_masking::Secret<serde_json::Value>>, ) -> Option<String> { connector_meta_data.as_ref().and_then(|metadata| { let metadata_value = metadata....
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "extract_report_group", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_fn_connector-integration_-2933899005532021293
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn serialize<S>(&self, serializer: S) -> Result<S::Ok, S::Error> where S: serde::Serializer, { let full_xml = crate::utils::serialize_to_xml_string_with_root("cnpOnlineRequest", &self.cn...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "serialize", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servi...
connector-service_fn_connector-integration_-2920064525125606314
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn try_from( item: ResponseRouterData< CnpOnlineResponse, RouterDataV2< VoidPC, PaymentFlowData, PaymentsCancelPostCaptureData, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_3035509291250244028
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn from(payment_method_data: PaymentMethodData<T>) -> Self { match payment_method_data { PaymentMethodData::Wallet(WalletData::ApplePay(_)) => Self::ApplePay, PaymentMethodData::Wallet(Walle...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_-7654649454580742779
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_payment_flow_type( merchant_txn_id: &str, ) -> Result<WorldpayvantivPaymentFlow, ConnectorError> { let merchant_txn_id_lower = merchant_txn_id.to_lowercase(); if merchant_txn_id_lower.contains("auth") { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_flow_type", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_fn_connector-integration_-9124039887709848639
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn determine_attempt_status_for_psync( payment_status: PaymentStatus, merchant_txn_id: &str, current_status: common_enums::AttemptStatus, ) -> Result<common_enums::AttemptStatus, ConnectorError> { let flow_...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "determine_attempt_status_for_psync", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_fn_connector-integration_-1274446670798807345
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn create_raw_card_number_from_string<T: PaymentMethodDataTypes>( card_string: String, ) -> Result<RawCardNumber<T>, error_stack::Report<ConnectorError>> where T::Inner: From<String>, { Ok(RawCardNumber(T::Inne...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_raw_card_number_from_string", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_fn_connector-integration_178137810697241402
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_payment_info<T: PaymentMethodDataTypes>( payment_method_data: &PaymentMethodData<T>, payment_method_token: Option<PaymentMethodToken>, ) -> Result<PaymentInfo<T>, error_stack::Report<ConnectorError>> where ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_payment_info", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_fn_connector-integration_3194244177523120164
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn determine_apple_pay_card_type( network: &str, ) -> Result<WorldpayvativCardType, error_stack::Report<ConnectorError>> { match network.to_lowercase().as_str() { "visa" => Ok(WorldpayvativCardType::Visa), ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "determine_apple_pay_card_type", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "rep...
connector-service_fn_connector-integration_-8885578609909770066
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn determine_google_pay_card_type( network: &str, ) -> Result<WorldpayvativCardType, error_stack::Report<ConnectorError>> { match network.to_lowercase().as_str() { "visa" => Ok(WorldpayvativCardType::Visa),...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "determine_google_pay_card_type", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_fn_connector-integration_1255259492471053568
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_billing_address( billing_address: &Option<domain_types::payment_address::Address>, ) -> Option<BillToAddress> { billing_address.as_ref().map(|addr| BillToAddress { name: addr.get_optional_full_name()...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_billing_address", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_fn_connector-integration_8626123784555749664
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_shipping_address( shipping_address: &Option<domain_types::payment_address::Address>, ) -> Option<ShipToAddress> { shipping_address.as_ref().map(|addr| ShipToAddress { name: addr.get_optional_full_nam...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_shipping_address", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_fn_connector-integration_335763248767403508
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_valid_transaction_id( id: String, _error_field_name: &str, ) -> Result<String, error_stack::Report<ConnectorError>> { if id.len() <= worldpayvantiv_constants::MAX_PAYMENT_REFERENCE_ID_LENGTH { Ok...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_valid_transaction_id", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_fn_connector-integration_7159559712404024324
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn get_attempt_status( flow: WorldpayvantivPaymentFlow, response: WorldpayvantivResponseCode, ) -> Result<common_enums::AttemptStatus, ConnectorError> { match response { WorldpayvantivResponseCode::Appr...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_attempt_status", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_3754702375660269929
clm
function
// connector-service/backend/connector-integration/src/connectors/worldpayvantiv/transformers.rs fn is_payment_failure(status: common_enums::AttemptStatus) -> bool { matches!( status, common_enums::AttemptStatus::Failure | common_enums::AttemptStatus::AuthorizationFailed | c...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_payment_failure", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_-5155121359121515293
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn create_raw_card_number_for_default_pci( card_string: String, ) -> Result<RawCardNumber<DefaultPCIHolder>, Error> { let card_number = cards::CardNumber::from_str(&card_string) .change_context(ConnectorEr...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_raw_card_number_for_default_pci", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_fn_connector-integration_-2219739182727366911
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn create_raw_card_number_for_vault_token(card_string: String) -> RawCardNumber<VaultTokenHolder> { RawCardNumber(card_string) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_raw_card_number_for_vault_token", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": nul...
connector-service_fn_connector-integration_6721622592975040523
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn get_random_string() -> String { Alphanumeric.sample_string(&mut rand::thread_rng(), MAX_ID_LENGTH) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_random_string", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_fn_connector-integration_-2986431828104026782
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn get_invoice_number_or_random(merchant_order_reference_id: Option<String>) -> String { match merchant_order_reference_id { Some(num) if num.len() <= MAX_ID_LENGTH => num, None | Some(_) => get_random...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_invoice_number_or_random", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_fn_connector-integration_-4308006372678627083
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn validate_customer_id_length(customer_id: Option<String>) -> Option<String> { customer_id.filter(|id| id.len() <= MAX_ID_LENGTH) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "validate_customer_id_length", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo"...
connector-service_fn_connector-integration_-3854798871631725056
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn metadata_to_user_fields( metadata: Option<serde_json::Value>, needs_serialization: bool, ) -> Result<Option<UserFields>, Error> { let meta = match metadata { Some(m) => m, None => return Ok(...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "metadata_to_user_fields", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_fn_connector-integration_-2330294263747065860
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs pub fn from_card_number_string(card_number: String) -> Result<Self, Error> { let card_number = cards::CardNumber::from_str(&card_number) .change_context(ConnectorError::RequestEncodingFailed)?; ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from_card_number_string", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "co...
connector-service_fn_connector-integration_-2333010937321597690
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs pub fn from_token_string(token: String) -> Self { AuthorizedotnetRawCardNumber(RawCardNumber(token)) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from_token_string", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_fn_connector-integration_3451905258368451318
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn from(wrapper: AuthorizedotnetRawCardNumber<T>) -> Self { wrapper.0 }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_1449465646301967676
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn try_from( item: AuthorizedotnetRouterData< RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, VaultTokenHolder, >, ) -> Result<Self, Self::Error> { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_5951716956232968074
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn foreign_try_from(metadata: serde_json::Value) -> Result<Self, Self::Error> { let mut vector = Self::new(); if let serde_json::Value::Object(obj) = metadata { for (key, value) in obj { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "foreign_try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connecto...
connector-service_fn_connector-integration_-8393901036551814101
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn create_regular_transaction_request< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >( item: &AuthorizedotnetRo...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "create_regular_transaction_request", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_fn_connector-integration_-3734865662635749939
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs fn get_avs_response_description(code: &str) -> Option<&'static str> { match code { "A" => Some("The street address matched, but the postal code did not."), "B" => Some("No address information was provi...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_avs_response_description", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo...
connector-service_fn_connector-integration_-4656878146433900601
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs convert_to_additional_payment_method_connector_response( transaction_response: &AuthorizedotnetTransactionResponse, ) -> Option<domain_types::router_data::AdditionalPaymentMethodConnectorResponse> { match transac...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "nvert_to_additional_payment_method_connector_response(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, ...
connector-service_fn_connector-integration_6010903139813919966
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs from(response: AuthorizedotnetPaymentsResponse) -> Self { Self(response) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om(r", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_9037382331236320121
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs try_from( value: ResponseRouterData< AuthorizedotnetCreateConnectorCustomerResponse, RouterDataV2< CreateConnectorCustomer, PaymentFlowData, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "y_from(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servi...
connector-service_fn_connector-integration_-8564265908370233728
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs extract_error_details( response: &AuthorizedotnetPaymentsResponse, trans_res: Option<&AuthorizedotnetTransactionResponse>, ) -> (String, String) { let error_code = trans_res .and_then(|tr| { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "tract_error_details(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "co...
connector-service_fn_connector-integration_5855480377509409594
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs create_error_response( http_status_code: u16, error_code: String, error_message: String, status: AttemptStatus, connector_transaction_id: Option<String>, _raw_connector_response: Option<Secret<Str...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "eate_error_response(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "co...
connector-service_fn_connector-integration_417871852355829100
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs from(item: AuthorizedotnetRefundStatus) -> Self { match item { AuthorizedotnetRefundStatus::Declined | AuthorizedotnetRefundStatus::Error => { Self::Failure } A...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om(i", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_5412980936206162976
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs get_hs_status( response: &AuthorizedotnetPaymentsResponse, _http_status_code: u16, operation: Operation, capture_method: Option<enums::CaptureMethod>, ) -> AttemptStatus { // Return failure immediatel...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "t_hs_status(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-...
connector-service_fn_connector-integration_-2858375450846860317
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs build_connector_metadata( transaction_response: &AuthorizedotnetTransactionResponse, ) -> Option<serde_json::Value> { // Check if accountNumber is available // Note: accountType contains card brand (e.g., "Ma...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "ild_connector_metadata(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": ...
connector-service_fn_connector-integration_3436968530880363225
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs b fn convert_to_payments_response_data_or_error( response: &AuthorizedotnetPaymentsResponse, http_status_code: u16, operation: Operation, capture_method: Option<enums::CaptureMethod>, raw_connector_res...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "nvert_to_payments_response_data_or_error(\n", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs"...
connector-service_fn_connector-integration_919126133519516816
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs from(transaction_status: RSyncStatus) -> Self { match transaction_status { RSyncStatus::RefundSettledSuccessfully => Self::Success, RSyncStatus::RefundPendingSettlement => Self::Pending, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om(t", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_1890478765028840185
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs get_the_truncate_id(id: Option<String>, max_length: usize) -> Option<String> { id.map(|s| { if s.len() > max_length { s[..max_length].to_string() } else { s } }) } ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "t_the_truncate_id(i", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_fn_connector-integration_-2179520109239481419
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs from(event_type: AuthorizedotnetWebhookEvent) -> Self { match event_type { AuthorizedotnetWebhookEvent::AuthorizationCreated => Self::AuthorizedPendingCapture, AuthorizedotnetWebhookEvent:...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "om(e", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_2758684568890164551
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs b fn get_trans_id(details: &AuthorizedotnetWebhookObjectId) -> Result<String, ConnectorError> { match details.event_type { AuthorizedotnetWebhookEvent::CustomerPaymentProfileCreated => { // For pay...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "t_trans_id(d", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-se...
connector-service_fn_connector-integration_-5371550544248545374
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs try_from(item: AuthorizedotnetWebhookObjectId) -> Result<Self, Self::Error> { Ok(Self { transaction: Some(SyncTransactionResponse { transaction_id: get_trans_id(&item)?, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "y_from(i", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_-6131087668102972734
clm
function
// connector-service/backend/connector-integration/src/connectors/authorizedotnet/transformers.rs extract_customer_id_from_error(error_text: &str) -> Option<String> { // Look for pattern "ID <numbers>" error_text .split_whitespace() .skip_while(|&word| word != "ID") .nth(1) // Get the ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "tract_customer_id_from_error(e", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "re...
connector-service_fn_connector-integration_3396203944950998792
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs fn is_manual_capture(capture_method: Option<enums::CaptureMethod>) -> bool { matches!(capture_method, Some(enums::CaptureMethod::Manual)) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "is_manual_capture", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_fn_connector-integration_1803423271331507929
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs fn try_from( item: ResponseRouterData< responses::PayloadRefundResponse, RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, >, ) -> Result<Self, Self::Error> { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_-9163984201023871770
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs fn build_payload_cards_request_data<T: PaymentMethodDataTypes>( payment_method_data: &PaymentMethodData<T>, connector_auth_type: &ConnectorAuthType, currency: enums::Currency, amount: FloatMajorUnit, resource_...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_payload_cards_request_data", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "...
connector-service_fn_connector-integration_-5848746094280989925
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs fn from(item: responses::RefundStatus) -> Self { match item { responses::RefundStatus::Processed => Self::Success, responses::RefundStatus::Processing => Self::Pending, responses::Refun...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_-8615135968919749553
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs fn handle_payment_response<F, T>( response: responses::PayloadPaymentsResponse, router_data: RouterDataV2<F, PaymentFlowData, T, PaymentsResponseData>, http_code: u16, is_mandate_payment: bool, ) -> Result<RouterD...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "handle_payment_response", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "c...
connector-service_fn_connector-integration_4668990175512520684
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs pub fn parse_webhook_event( body: &[u8], ) -> Result<PayloadWebhookEvent, error_stack::Report<errors::ConnectorError>> { serde_json::from_slice::<PayloadWebhookEvent>(body) .change_context(errors::ConnectorError::...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "parse_webhook_event", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_3895517059563962266
clm
function
// connector-service/backend/connector-integration/src/connectors/payload/transformers.rs pub fn get_event_type_from_trigger( trigger: responses::PayloadWebhooksTrigger, ) -> domain_types::connector_types::EventType { match trigger { // Payment Success Events responses::PayloadWebhooksTrigger::...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_event_type_from_trigger", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo":...
connector-service_fn_connector-integration_-2778568033487643384
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/test.rs fn test_build_request_valid() { let api_key = "test_bluecode_api_key".to_string(); let req: RouterDataV2< Authorize, PaymentFlowData, PaymentsAuthorizeData<DefaultP...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_valid", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "...
connector-service_fn_connector-integration_1629462245576856132
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/test.rs fn test_build_request_missing_fields() { let api_key = "test_bluecode_api_key_missing".to_string(); let req: RouterDataV2< Authorize, PaymentFlowData, PaymentsAutho...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "test_build_request_missing_fields", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, ...
connector-service_fn_connector-integration_712796704108455929
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/transformers.rs fn try_from(item: ResponseRouterData<BluecodeSyncResponse, Self>) -> Result<Self, Self::Error> { let ResponseRouterData { response, router_data, http_code, } = item; le...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_6464085239513599515
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/transformers.rs fn from(item: BluecodePaymentStatus) -> Self { match item { BluecodePaymentStatus::ManualProcessing => Self::Pending, BluecodePaymentStatus::Pending | BluecodePaymentStatus::PaymentInitiated => { ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_-2217067328481082276
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/transformers.rs pub fn sort_and_minify_json(value: &Value) -> Result<String, errors::ConnectorError> { fn sort_value(val: &Value) -> Value { match val { Value::Object(map) => { let mut entries: Vec<_> = m...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "sort_and_minify_json", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conne...
connector-service_fn_connector-integration_171653661457081326
clm
function
// connector-service/backend/connector-integration/src/connectors/bluecode/transformers.rs fn sort_value(val: &Value) -> Value { match val { Value::Object(map) => { let mut entries: Vec<_> = map.iter().collect(); entries.sort_by_key(|(k, _)| k.to_owned()); ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "sort_value", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-serv...
connector-service_fn_connector-integration_-544205696326195527
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs fn try_from(notif: FiuuRefundSyncResponse) -> Result<Self, Self::Error> { match notif { FiuuRefundSyncResponse::Webhook(fiuu_webhooks_refund_response) => Ok(Self { connector_refund_id: Some(fiuu_w...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "try_from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-servic...
connector-service_fn_connector-integration_-1178774123721862547
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn calculate_check_sum( req: FiuuRecurringRequest, ) -> CustomResult<Secret<String>, errors::ConnectorError> { let formatted_string = format!( "{}{}{}{}{}{}{}", req.record_type, req.merchant_id.pe...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "calculate_check_sum", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_1148353608393418178
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn calculate_signature( signature_data: String, ) -> Result<Secret<String>, error_stack::Report<errors::ConnectorError>> { let message = signature_data.as_bytes(); let encoded_data = hex::encode( crypto::Md5 ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "calculate_signature", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...
connector-service_fn_connector-integration_8988377329679646038
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs fn from(value: FiuuRefundsWebhookStatus) -> Self { match value { FiuuRefundsWebhookStatus::RefundSuccess => Self::RefundSuccess, FiuuRefundsWebhookStatus::RefundFailure => Self::RefundFailure, ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "from", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", ...
connector-service_fn_connector-integration_7436998386497302050
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs fn capture_status_codes() -> HashMap<&'static str, &'static str> { [ ("00", "Capture successful"), ("11", "Capture failed"), ("12", "Invalid or unmatched security hash string"), ("13", "Not a cred...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "capture_status_codes", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_fn_connector-integration_-8534463597789796036
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs fn void_status_codes() -> HashMap<&'static str, &'static str> { [ ("00", "Success (will proceed the request)"), ("11", "Failure"), ("12", "Invalid or unmatched security hash string"), ("13", "Not ...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "void_status_codes", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connect...
connector-service_fn_connector-integration_764780647771770914
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn get_qr_metadata( response: &DuitNowQrCodeResponse, ) -> CustomResult<Option<serde_json::Value>, errors::ConnectorError> { let image_data = QrImage::new_colored_from_data( response.txn_data.request_data.qr_data...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_qr_metadata", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-...
connector-service_fn_connector-integration_-7862255721192696591
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs fn get_form_data(&self) -> reqwest::multipart::Form { build_form_from_struct(self).unwrap_or_else(|_| reqwest::multipart::Form::new()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_form_data", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-s...
connector-service_fn_connector-integration_-4757302051768782463
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn build_form_from_struct<T: Serialize>( data: T, ) -> Result<reqwest::multipart::Form, errors::ParsingError> { let mut form = reqwest::multipart::Form::new(); let serialized = serde_json::to_value(&data).map...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "build_form_from_struct", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "con...
connector-service_fn_connector-integration_5459057106939751601
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn new_from_data(data: String) -> Result<Self, error_stack::Report<QrCodeError>> { let qr_code = qrcode::QrCode::new(data.as_bytes()) .change_context(QrCodeError::FailedToCreateQrCode)?; let qrcode_i...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new_from_data", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-se...
connector-service_fn_connector-integration_-313731343863386829
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn new_colored_from_data( data: String, hex_color: &str, ) -> Result<Self, error_stack::Report<QrCodeError>> { let qr_code = qrcode::QrCode::new(data.as_bytes()) .change_context(QrCodeErro...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "new_colored_from_data", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "conn...
connector-service_fn_connector-integration_1626286669194681363
clm
function
// connector-service/backend/connector-integration/src/connectors/fiuu/transformers.rs pub fn parse_hex_color(hex: &str) -> Result<(u8, u8, u8), QrCodeError> { let hex = hex.trim_start_matches('#'); if hex.len() == 6 { let r = u8::from_str_radix(&hex[0..2], 16).ok(); let g = u8:...
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "parse_hex_color", "is_async": false, "is_pub": true, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-...
connector-service_fn_connector-integration_8919356045498212877
clm
function
// connector-service/backend/connector-integration/src/connectors/aci/transformers.rs fn get_capture_method(&self) -> Option<common_enums::CaptureMethod> { None }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": "get_capture_method", "is_async": false, "is_pub": false, "lines": null, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connec...