id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_snippet_-7993544184240262595_200_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<F, FCD, Req, Res>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> where Self: ConnectorIntegrationV2<F, FCD, Req, Res>, { let mut header = vec![( headers::CONTENT_TYPE.to_string(), Self::common_get_content_type(self).to_string().into(), )]; let mut api_key = self.get_auth_header(&req.connector_auth_type)?; header.append(&mut api_key); Ok(header) } pub fn connector_base_url_payments<'a, F, Req, Res>( &self, req: &'a RouterDataV2<F, PaymentFlowData, Req, Res>, ) -> &'a str { &req.resource_common_data.connectors.payload.base_url } pub fn connector_base_url_refunds<'a, F, Req, Res>( &self, req: &'a RouterDataV2<F, RefundFlowData, Req, Res>, ) -> &'a str { &req.resource_common_data.connectors.payload.base_url } } ); impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> ConnectorCommon for Payload<T> { fn id(&self) -> &'static str { "payload" } fn get_currency_unit(&self) -> CurrencyUnit { CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.payload.base_url.as_ref() }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_225_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> &'a str { &req.resource_common_data.connectors.payload.base_url } } ); impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> ConnectorCommon for Payload<T> { fn id(&self) -> &'static str { "payload" } fn get_currency_unit(&self) -> CurrencyUnit { CurrencyUnit::Minor
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_225_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> &'a str { &req.resource_common_data.connectors.payload.base_url } } ); impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> ConnectorCommon for Payload<T> { fn id(&self) -> &'static str { "payload" } fn get_currency_unit(&self) -> CurrencyUnit { CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.payload.base_url.as_ref() } fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { let auth = payload::PayloadAuthType::try_from(auth_type)
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_225_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> &'a str { &req.resource_common_data.connectors.payload.base_url } } ); impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> ConnectorCommon for Payload<T> { fn id(&self) -> &'static str { "payload" } fn get_currency_unit(&self) -> CurrencyUnit { CurrencyUnit::Minor } fn common_get_content_type(&self) -> &'static str { "application/x-www-form-urlencoded" } fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str { connectors.payload.base_url.as_ref() } fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { let auth = payload::PayloadAuthType::try_from(auth_type) .change_context(errors::ConnectorError::FailedToObtainAuthType)?; // The API key is the same for all currencies, so we can take any. let api_key = auth .auths .values() .next() .ok_or(errors::ConnectorError::FailedToObtainAuthType)? .api_key .clone(); let encoded_api_key = BASE64_ENGINE.encode(format!("{}:", api_key.expose())); Ok(vec![( headers::AUTHORIZATION.to_string(), format!("Basic {encoded_api_key}").into_masked(), )]) } fn build_error_response( &self, res: Response,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_250_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { let auth = payload::PayloadAuthType::try_from(auth_type) .change_context(errors::ConnectorError::FailedToObtainAuthType)?; // The API key is the same for all currencies, so we can take any. let api_key = auth .auths .values() .next() .ok_or(errors::ConnectorError::FailedToObtainAuthType)? .api_key .clone();
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_250_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { let auth = payload::PayloadAuthType::try_from(auth_type) .change_context(errors::ConnectorError::FailedToObtainAuthType)?; // The API key is the same for all currencies, so we can take any. let api_key = auth .auths .values() .next() .ok_or(errors::ConnectorError::FailedToObtainAuthType)? .api_key .clone(); let encoded_api_key = BASE64_ENGINE.encode(format!("{}:", api_key.expose())); Ok(vec![( headers::AUTHORIZATION.to_string(), format!("Basic {encoded_api_key}").into_masked(), )]) } fn build_error_response( &self, res: Response, event_builder: Option<&mut events::Event>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { let response: PayloadErrorResponse = res .response .parse_struct("PayloadErrorResponse")
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_250_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn get_auth_header( &self, auth_type: &ConnectorAuthType, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { let auth = payload::PayloadAuthType::try_from(auth_type) .change_context(errors::ConnectorError::FailedToObtainAuthType)?; // The API key is the same for all currencies, so we can take any. let api_key = auth .auths .values() .next() .ok_or(errors::ConnectorError::FailedToObtainAuthType)? .api_key .clone(); let encoded_api_key = BASE64_ENGINE.encode(format!("{}:", api_key.expose())); Ok(vec![( headers::AUTHORIZATION.to_string(), format!("Basic {encoded_api_key}").into_masked(), )]) } fn build_error_response( &self, res: Response, event_builder: Option<&mut events::Event>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { let response: PayloadErrorResponse = res .response .parse_struct("PayloadErrorResponse") .change_context(errors::ConnectorError::ResponseDeserializationFailed)?; with_error_response_body!(event_builder, response); Ok(ErrorResponse { status_code: res.status_code, code: response.error_type, message: response.error_description, reason: response .details .as_ref() .map(|details_value| details_value.to_string()), attempt_status: None, connector_transaction_id: None, network_advice_code: None, network_decline_code: None, network_error_message: None, }) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_275_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs event_builder: Option<&mut events::Event>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { let response: PayloadErrorResponse = res .response .parse_struct("PayloadErrorResponse") .change_context(errors::ConnectorError::ResponseDeserializationFailed)?; with_error_response_body!(event_builder, response); Ok(ErrorResponse { status_code: res.status_code, code: response.error_type, message: response.error_description, reason: response .details
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_275_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs event_builder: Option<&mut events::Event>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { let response: PayloadErrorResponse = res .response .parse_struct("PayloadErrorResponse") .change_context(errors::ConnectorError::ResponseDeserializationFailed)?; with_error_response_body!(event_builder, response); Ok(ErrorResponse { status_code: res.status_code, code: response.error_type, message: response.error_description, reason: response .details .as_ref() .map(|details_value| details_value.to_string()), attempt_status: None, connector_transaction_id: None, network_advice_code: None, network_decline_code: None, network_error_message: None, }) } } // Authorize flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_275_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs event_builder: Option<&mut events::Event>, ) -> CustomResult<ErrorResponse, errors::ConnectorError> { let response: PayloadErrorResponse = res .response .parse_struct("PayloadErrorResponse") .change_context(errors::ConnectorError::ResponseDeserializationFailed)?; with_error_response_body!(event_builder, response); Ok(ErrorResponse { status_code: res.status_code, code: response.error_type, message: response.error_description, reason: response .details .as_ref() .map(|details_value| details_value.to_string()), attempt_status: None, connector_transaction_id: None, network_advice_code: None, network_decline_code: None, network_error_message: None, }) } } // Authorize flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadPaymentsRequest<T>), curl_response: PayloadAuthorizeResponse, flow_name: Authorize, resource_common_data: PaymentFlowData, flow_request: PaymentsAuthorizeData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_300_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs // Authorize flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadPaymentsRequest<T>), curl_response: PayloadAuthorizeResponse, flow_name: Authorize, resource_common_data: PaymentFlowData, flow_request: PaymentsAuthorizeData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_300_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs // Authorize flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadPaymentsRequest<T>), curl_response: PayloadAuthorizeResponse, flow_name: Authorize, resource_common_data: PaymentFlowData, flow_request: PaymentsAuthorizeData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } );
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_300_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs // Authorize flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadPaymentsRequest<T>), curl_response: PayloadAuthorizeResponse, flow_name: Authorize, resource_common_data: PaymentFlowData, flow_request: PaymentsAuthorizeData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // PSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadPSyncResponse, flow_name: PSync, resource_common_data: PaymentFlowData, flow_request: PaymentsSyncData, flow_response: PaymentsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_325_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // PSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadPSyncResponse, flow_name: PSync, resource_common_data: PaymentFlowData, flow_request: PaymentsSyncData, flow_response: PaymentsResponseData, http_method: Get,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_325_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // PSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadPSyncResponse, flow_name: PSync, resource_common_data: PaymentFlowData, flow_request: PaymentsSyncData, flow_response: PaymentsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = req .request
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_325_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // PSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadPSyncResponse, flow_name: PSync, resource_common_data: PaymentFlowData, flow_request: PaymentsSyncData, flow_response: PaymentsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = req .request .connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Capture flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCaptureRequest), curl_response: PayloadCaptureResponse, flow_name: Capture,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_350_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = req .request .connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_350_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = req .request .connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Capture flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCaptureRequest), curl_response: PayloadCaptureResponse, flow_name: Capture, resource_common_data: PaymentFlowData, flow_request: PaymentsCaptureData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_350_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = req .request .connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Capture flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCaptureRequest), curl_response: PayloadCaptureResponse, flow_name: Capture, resource_common_data: PaymentFlowData, flow_request: PaymentsCaptureData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let connector_transaction_id = req.request.connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), connector_transaction_id ))
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_375_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs resource_common_data: PaymentFlowData, flow_request: PaymentsCaptureData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_375_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs resource_common_data: PaymentFlowData, flow_request: PaymentsCaptureData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let connector_transaction_id = req.request.connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), connector_transaction_id )) } } ); // Void flow implementation
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_375_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs resource_common_data: PaymentFlowData, flow_request: PaymentsCaptureData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let connector_transaction_id = req.request.connector_transaction_id .get_connector_transaction_id() .change_context(errors::ConnectorError::MissingConnectorTransactionID)?; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), connector_transaction_id )) } } ); // Void flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadVoidRequest), curl_response: PayloadVoidResponse, flow_name: Void, resource_common_data: PaymentFlowData, flow_request: PaymentVoidData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 375, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_400_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } } ); // Void flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadVoidRequest), curl_response: PayloadVoidResponse, flow_name: Void, resource_common_data: PaymentFlowData, flow_request: PaymentVoidData, flow_response: PaymentsResponseData, http_method: Put,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_400_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } } ); // Void flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadVoidRequest), curl_response: PayloadVoidResponse, flow_name: Void, resource_common_data: PaymentFlowData, flow_request: PaymentVoidData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = &req.request.connector_transaction_id; Ok(format!(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_400_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } } ); // Void flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadVoidRequest), curl_response: PayloadVoidResponse, flow_name: Void, resource_common_data: PaymentFlowData, flow_request: PaymentVoidData, flow_response: PaymentsResponseData, http_method: Put, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = &req.request.connector_transaction_id; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Refund flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRefundRequest), curl_response: PayloadRefundResponse, flow_name: Refund, resource_common_data: RefundFlowData, flow_request: RefundsData, flow_response: RefundsResponseData, http_method: Post, generic_type: T,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 400, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_425_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = &req.request.connector_transaction_id; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Refund flow implementation macros::macro_connector_implementation!(
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_425_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = &req.request.connector_transaction_id; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Refund flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRefundRequest), curl_response: PayloadRefundResponse, flow_name: Refund, resource_common_data: RefundFlowData, flow_request: RefundsData, flow_response: RefundsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_425_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs &self, req: &RouterDataV2<Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { let payment_id = &req.request.connector_transaction_id; Ok(format!( "{}/transactions/{}", self.connector_base_url_payments(req), payment_id )) } } ); // Refund flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRefundRequest), curl_response: PayloadRefundResponse, flow_name: Refund, resource_common_data: RefundFlowData, flow_request: RefundsData, flow_response: RefundsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_refunds(req))) } } ); // RSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadRSyncResponse, flow_name: RSync, resource_common_data: RefundFlowData, flow_request: RefundSyncData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 425, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_450_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_refunds(req))) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_450_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_refunds(req))) } } ); // RSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadRSyncResponse, flow_name: RSync, resource_common_data: RefundFlowData, flow_request: RefundSyncData, flow_response: RefundsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_450_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<Refund, RefundFlowData, RefundsData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_refunds(req))) } } ); // RSync flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_response: PayloadRSyncResponse, flow_name: RSync, resource_common_data: RefundFlowData, flow_request: RefundSyncData, flow_response: RefundsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!( "{}/transactions/{}", self.connector_base_url_refunds(req), req.request.connector_refund_id )) } } ); // SetupMandate flow implementation
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 450, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_475_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs flow_response: RefundsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> {
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_475_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs flow_response: RefundsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!( "{}/transactions/{}", self.connector_base_url_refunds(req), req.request.connector_refund_id )) } } ); // SetupMandate flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCardsRequestData<T>), curl_response: PayloadSetupMandateResponse,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_475_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs flow_response: RefundsResponseData, http_method: Get, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RSync, RefundFlowData, RefundSyncData, RefundsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!( "{}/transactions/{}", self.connector_base_url_refunds(req), req.request.connector_refund_id )) } } ); // SetupMandate flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCardsRequestData<T>), curl_response: PayloadSetupMandateResponse, flow_name: SetupMandate, resource_common_data: PaymentFlowData, flow_request: SetupMandateRequestData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 475, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_500_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCardsRequestData<T>), curl_response: PayloadSetupMandateResponse, flow_name: SetupMandate, resource_common_data: PaymentFlowData, flow_request: SetupMandateRequestData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_500_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCardsRequestData<T>), curl_response: PayloadSetupMandateResponse, flow_name: SetupMandate, resource_common_data: PaymentFlowData, flow_request: SetupMandateRequestData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // Stub implementations for unsupported flows impl<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_500_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadCardsRequestData<T>), curl_response: PayloadSetupMandateResponse, flow_name: SetupMandate, resource_common_data: PaymentFlowData, flow_request: SetupMandateRequestData<T>, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); // Stub implementations for unsupported flows impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 500, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_525_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } ); // Stub implementations for unsupported flows impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateOrder, PaymentFlowData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_525_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } ); // Stub implementations for unsupported flows impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_525_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs } ); // Stub implementations for unsupported flows impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 525, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_550_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_550_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData> for Payload<T>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_550_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData> for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData> for Payload<T> { } // RepeatPayment flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRepeatPaymentRequest<T>), curl_response: PayloadRepeatPaymentResponse, flow_name: RepeatPayment, resource_common_data: PaymentFlowData, flow_request: RepeatPaymentData, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_575_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData> for Payload<T> { } // RepeatPayment flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRepeatPaymentRequest<T>), curl_response: PayloadRepeatPaymentResponse, flow_name: RepeatPayment,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_575_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData> for Payload<T> { } // RepeatPayment flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRepeatPaymentRequest<T>), curl_response: PayloadRepeatPaymentResponse, flow_name: RepeatPayment, resource_common_data: PaymentFlowData, flow_request: RepeatPaymentData, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_575_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData> for Payload<T> { } // RepeatPayment flow implementation macros::macro_connector_implementation!( connector_default_implementations: [get_content_type, get_error_response_v2], connector: Payload, curl_request: FormUrlEncoded(PayloadRepeatPaymentRequest<T>), curl_response: PayloadRepeatPaymentResponse, flow_name: RepeatPayment, resource_common_data: PaymentFlowData, flow_request: RepeatPaymentData, flow_response: PaymentsResponseData, http_method: Post, generic_type: T, [PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize], other_functions: { fn get_headers( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_600_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); impl< T: PaymentMethodDataTypes + std::fmt::Debug
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_600_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData, > for Payload<T> { } impl<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_600_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs ) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError> { self.build_headers(req) } fn get_url( &self, req: &RouterDataV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>, ) -> CustomResult<String, errors::ConnectorError> { Ok(format!("{}/transactions", self.connector_base_url_payments(req))) } } ); impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_625_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PostAuthenticate, PaymentFlowData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_625_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_625_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_650_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_650_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_650_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_675_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::VoidPC,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_675_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, >
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_675_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_700_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_700_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_700_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // SourceVerification implementations for all flows impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_725_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2<
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_725_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // SourceVerification implementations for all flows impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_725_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl< T: PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize, > ConnectorIntegrationV2< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // SourceVerification implementations for all flows impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_750_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_750_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_750_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Capture, PaymentFlowData, PaymentsCaptureData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Refund, RefundFlowData, RefundsData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_775_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_775_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Refund, RefundFlowData, RefundsData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RSync, RefundFlowData, RefundSyncData, RefundsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_775_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Refund, RefundFlowData, RefundsData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RSync, RefundFlowData, RefundSyncData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_800_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< RSync, RefundFlowData, RefundSyncData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_800_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< RSync, RefundFlowData, RefundSyncData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_800_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< RSync, RefundFlowData, RefundSyncData, RefundsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SetupMandate, PaymentFlowData, SetupMandateRequestData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< Accept, DisputeFlowData, AcceptDisputeData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_825_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_825_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_825_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< SubmitEvidence, DisputeFlowData, SubmitEvidenceData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_850_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_850_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_850_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< CreateOrder, PaymentFlowData, PaymentCreateOrderData, PaymentCreateOrderResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< CreateSessionToken, PaymentFlowData, SessionTokenRequestData, SessionTokenResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_875_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_875_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_875_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PostAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPostAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::Authenticate, PaymentFlowData, domain_types::connector_types::PaymentsAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_900_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_900_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_900_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs interfaces::verification::SourceVerification< domain_types::connector_flow::PreAuthenticate, PaymentFlowData, domain_types::connector_types::PaymentsPreAuthenticateData<T>, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::VoidPC, PaymentFlowData, domain_types::connector_types::PaymentsCancelPostCaptureData, PaymentsResponseData, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::PaymentMethodToken, PaymentFlowData, domain_types::connector_types::PaymentMethodTokenizationData<T>, domain_types::connector_types::PaymentMethodTokenResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // Webhook implementation
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_925_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_925_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // Webhook implementation impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> connector_types::IncomingWebhook for Payload<T> { fn get_webhook_source_verification_signature( &self,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_925_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateConnectorCustomer, PaymentFlowData, domain_types::connector_types::ConnectorCustomerData, domain_types::connector_types::ConnectorCustomerResponse, > for Payload<T> { } impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> interfaces::verification::SourceVerification< domain_types::connector_flow::CreateAccessToken, PaymentFlowData, domain_types::connector_types::AccessTokenRequestData, domain_types::connector_types::AccessTokenResponseData, > for Payload<T> { } // Webhook implementation impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> connector_types::IncomingWebhook for Payload<T> { fn get_webhook_source_verification_signature( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { let signature = request .headers .get(headers::X_PAYLOAD_SIGNATURE) .map(|header_value| header_value.as_bytes().to_vec()) .ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?; Ok(signature) } fn get_webhook_source_verification_message( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { Ok(request.body.to_vec()) }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_950_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> connector_types::IncomingWebhook for Payload<T> { fn get_webhook_source_verification_signature( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { let signature = request .headers .get(headers::X_PAYLOAD_SIGNATURE) .map(|header_value| header_value.as_bytes().to_vec()) .ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?; Ok(signature)
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_950_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> connector_types::IncomingWebhook for Payload<T> { fn get_webhook_source_verification_signature( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { let signature = request .headers .get(headers::X_PAYLOAD_SIGNATURE) .map(|header_value| header_value.as_bytes().to_vec()) .ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?; Ok(signature) } fn get_webhook_source_verification_message( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { Ok(request.body.to_vec()) } fn verify_webhook_source( &self, request: domain_types::connector_types::RequestDetails, connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_950_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize> connector_types::IncomingWebhook for Payload<T> { fn get_webhook_source_verification_signature( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { let signature = request .headers .get(headers::X_PAYLOAD_SIGNATURE) .map(|header_value| header_value.as_bytes().to_vec()) .ok_or(errors::ConnectorError::WebhookSourceVerificationFailed)?; Ok(signature) } fn get_webhook_source_verification_message( &self, request: &domain_types::connector_types::RequestDetails, _connector_webhook_secret: &domain_types::connector_types::ConnectorWebhookSecrets, ) -> Result<Vec<u8>, error_stack::Report<errors::ConnectorError>> { Ok(request.body.to_vec()) } fn verify_webhook_source( &self, request: domain_types::connector_types::RequestDetails, connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<bool, error_stack::Report<errors::ConnectorError>> { let algorithm = common_utils::crypto::Sha256; let connector_webhook_secrets = match connector_webhook_secret { Some(secrets) => secrets, None => { return Ok(false); } }; let signature = self .get_webhook_source_verification_signature(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; let message = self .get_webhook_source_verification_message(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; algorithm .verify_signature(&connector_webhook_secrets.secret, &signature, &message)
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_975_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn verify_webhook_source( &self, request: domain_types::connector_types::RequestDetails, connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<bool, error_stack::Report<errors::ConnectorError>> { let algorithm = common_utils::crypto::Sha256; let connector_webhook_secrets = match connector_webhook_secret { Some(secrets) => secrets, None => { return Ok(false); } };
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_975_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn verify_webhook_source( &self, request: domain_types::connector_types::RequestDetails, connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<bool, error_stack::Report<errors::ConnectorError>> { let algorithm = common_utils::crypto::Sha256; let connector_webhook_secrets = match connector_webhook_secret { Some(secrets) => secrets, None => { return Ok(false); } }; let signature = self .get_webhook_source_verification_signature(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; let message = self .get_webhook_source_verification_message(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; algorithm .verify_signature(&connector_webhook_secrets.secret, &signature, &message) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed) } fn get_event_type( &self,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_975_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs fn verify_webhook_source( &self, request: domain_types::connector_types::RequestDetails, connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<bool, error_stack::Report<errors::ConnectorError>> { let algorithm = common_utils::crypto::Sha256; let connector_webhook_secrets = match connector_webhook_secret { Some(secrets) => secrets, None => { return Ok(false); } }; let signature = self .get_webhook_source_verification_signature(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; let message = self .get_webhook_source_verification_message(&request, &connector_webhook_secrets) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed)?; algorithm .verify_signature(&connector_webhook_secrets.secret, &signature, &message) .change_context(errors::ConnectorError::WebhookSourceVerificationFailed) } fn get_event_type( &self, request: domain_types::connector_types::RequestDetails, _connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<domain_types::connector_types::EventType, error_stack::Report<errors::ConnectorError>> { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(transformers::get_event_type_from_trigger( webhook_body.trigger, )) } fn get_webhook_resource_object( &self, request: domain_types::connector_types::RequestDetails, ) -> Result< Box<dyn hyperswitch_masking::ErasedMaskSerialize>,
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 50, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1000_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs .change_context(errors::ConnectorError::WebhookSourceVerificationFailed) } fn get_event_type( &self, request: domain_types::connector_types::RequestDetails, _connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<domain_types::connector_types::EventType, error_stack::Report<errors::ConnectorError>> { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?;
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 15, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1000_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs .change_context(errors::ConnectorError::WebhookSourceVerificationFailed) } fn get_event_type( &self, request: domain_types::connector_types::RequestDetails, _connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<domain_types::connector_types::EventType, error_stack::Report<errors::ConnectorError>> { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(transformers::get_event_type_from_trigger( webhook_body.trigger, )) } fn get_webhook_resource_object( &self, request: domain_types::connector_types::RequestDetails, ) -> Result< Box<dyn hyperswitch_masking::ErasedMaskSerialize>, error_stack::Report<errors::ConnectorError>, > { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent")
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 30, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1000_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs .change_context(errors::ConnectorError::WebhookSourceVerificationFailed) } fn get_event_type( &self, request: domain_types::connector_types::RequestDetails, _connector_webhook_secret: Option<domain_types::connector_types::ConnectorWebhookSecrets>, _connector_account_details: Option<ConnectorAuthType>, ) -> Result<domain_types::connector_types::EventType, error_stack::Report<errors::ConnectorError>> { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(transformers::get_event_type_from_trigger( webhook_body.trigger, )) } fn get_webhook_resource_object( &self, request: domain_types::connector_types::RequestDetails, ) -> Result< Box<dyn hyperswitch_masking::ErasedMaskSerialize>, error_stack::Report<errors::ConnectorError>, > { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(Box::new(webhook_body)) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 35, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1025_15
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs error_stack::Report<errors::ConnectorError>, > { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(Box::new(webhook_body)) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 10, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1025_30
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs error_stack::Report<errors::ConnectorError>, > { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(Box::new(webhook_body)) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 10, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-7993544184240262595_1025_50
clm
snippet
// connector-service/backend/connector-integration/src/connectors/payload.rs error_stack::Report<errors::ConnectorError>, > { let webhook_body: transformers::PayloadWebhookEvent = request .body .parse_struct("PayloadWebhookEvent") .change_context(errors::ConnectorError::WebhookBodyDecodingFailed)?; Ok(Box::new(webhook_body)) } }
{ "chunk": null, "crate": "connector-integration", "enum_name": null, "file_size": null, "for_type": null, "function_name": null, "is_async": null, "is_pub": null, "lines": 10, "method_name": null, "num_enums": null, "num_items": null, "num_structs": null, "repo": "connector-service", "start_line": 1025, "struct_name": null, "total_crates": null, "trait_name": null }