id stringlengths 20 153 | type stringclasses 1
value | granularity stringclasses 14
values | content stringlengths 16 84.3k | metadata dict |
|---|---|---|---|---|
connector-service_snippet_8422386202000302436_575_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PaymentMethodToken,
PaymentFlowData,
PaymentMethodTokenizationData<T>,
PaymentMethodTokenResponse,
> for Cashfree<T>
{
}
// CreateSessionToken stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData,
> for Cashfree<T>
{
}
// CreateAccessToken stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData,
> for Cashfree<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": 575,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_600_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
ConnectorIntegrationV2<
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData,
> for Cashfree<T>
{
}
// CreateAccessToken stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
| {
"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_8422386202000302436_600_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
ConnectorIntegrationV2<
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData,
> for Cashfree<T>
{
}
// CreateAccessToken stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData,
> for Cashfree<T>
{
}
// CreateConnectorCustomer stub implementation
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": 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_8422386202000302436_600_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
ConnectorIntegrationV2<
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData,
> for Cashfree<T>
{
}
// CreateAccessToken stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData,
> for Cashfree<T>
{
}
// CreateConnectorCustomer stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse,
> for Cashfree<T>
{
}
// Trait implementations for all flows
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_8422386202000302436_625_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
}
// CreateConnectorCustomer stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
| {
"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_8422386202000302436_625_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
}
// CreateConnectorCustomer stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse,
> for Cashfree<T>
{
}
// Trait implementations for all flows
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData>
for Cashfree<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": 625,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_625_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
}
// CreateConnectorCustomer stub implementation
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse,
> for Cashfree<T>
{
}
// Trait implementations for all flows
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData>
for Cashfree<T>
{
}
// Default ConnectorIntegrationV2 implementations for unsupported flows
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>
for Cashfree<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": 625,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_650_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData>
for Cashfree<T>
{
}
// Default ConnectorIntegrationV2 implementations for unsupported flows
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": 650,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_650_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData>
for Cashfree<T>
{
}
// Default ConnectorIntegrationV2 implementations for unsupported flows
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>
for Cashfree<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": 650,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_650_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorIntegrationV2<DefendDispute, DisputeFlowData, DisputeDefendData, DisputeResponseData>
for Cashfree<T>
{
}
// Default ConnectorIntegrationV2 implementations for unsupported flows
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<RepeatPayment, PaymentFlowData, RepeatPaymentData, PaymentsResponseData>
for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Cashfree<T>
{
}
// SourceVerification implementations for all flows
macro_rules! impl_source_verification_stub {
($flow:ty, $common_data:ty, $req:ty, $resp:ty) => {
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> SourceVerification<$flow, $common_data, $req, $resp> for Cashfree<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": 650,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_675_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Cashfree<T>
{
}
// SourceVerification implementations for all flows
| {
"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_8422386202000302436_675_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Cashfree<T>
{
}
// SourceVerification implementations for all flows
macro_rules! impl_source_verification_stub {
($flow:ty, $common_data:ty, $req:ty, $resp:ty) => {
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> SourceVerification<$flow, $common_data, $req, $resp> for Cashfree<T>
{
fn get_secrets(
&self,
_secrets: ConnectorSourceVerificationSecrets,
) -> CustomResult<Vec<u8>, 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": 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_8422386202000302436_675_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Cashfree<T>
{
}
// SourceVerification implementations for all flows
macro_rules! impl_source_verification_stub {
($flow:ty, $common_data:ty, $req:ty, $resp:ty) => {
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> SourceVerification<$flow, $common_data, $req, $resp> for Cashfree<T>
{
fn get_secrets(
&self,
_secrets: ConnectorSourceVerificationSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_algorithm(
&self,
) -> CustomResult<
Box<dyn common_utils::crypto::VerifySignature + Send>,
errors::ConnectorError,
> {
Ok(Box::new(common_utils::crypto::NoAlgorithm)) // Stub implementation
}
fn get_signature(
&self,
_payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
| {
"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_8422386202000302436_700_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
{
fn get_secrets(
&self,
_secrets: ConnectorSourceVerificationSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_algorithm(
&self,
) -> CustomResult<
Box<dyn common_utils::crypto::VerifySignature + Send>,
errors::ConnectorError,
> {
Ok(Box::new(common_utils::crypto::NoAlgorithm)) // Stub 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": 700,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_700_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
{
fn get_secrets(
&self,
_secrets: ConnectorSourceVerificationSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_algorithm(
&self,
) -> CustomResult<
Box<dyn common_utils::crypto::VerifySignature + Send>,
errors::ConnectorError,
> {
Ok(Box::new(common_utils::crypto::NoAlgorithm)) // Stub implementation
}
fn get_signature(
&self,
_payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_message(
&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": 700,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_700_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
{
fn get_secrets(
&self,
_secrets: ConnectorSourceVerificationSecrets,
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_algorithm(
&self,
) -> CustomResult<
Box<dyn common_utils::crypto::VerifySignature + Send>,
errors::ConnectorError,
> {
Ok(Box::new(common_utils::crypto::NoAlgorithm)) // Stub implementation
}
fn get_signature(
&self,
_payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_message(
&self,
payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(payload.to_owned()) // Stub implementation
}
}
};
}
// Apply to all flows
impl_source_verification_stub!(
Authorize,
PaymentFlowData,
PaymentsAuthorizeData<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": 700,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_725_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_message(
&self,
payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(payload.to_owned()) // Stub 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": 725,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_725_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_message(
&self,
payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(payload.to_owned()) // Stub implementation
}
}
};
}
// Apply to all flows
impl_source_verification_stub!(
Authorize,
PaymentFlowData,
PaymentsAuthorizeData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
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": 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_8422386202000302436_725_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(Vec::new()) // Stub implementation
}
fn get_message(
&self,
payload: &[u8],
_router_data: &domain_types::router_data_v2::RouterDataV2<
$flow,
$common_data,
$req,
$resp,
>,
_secrets: &[u8],
) -> CustomResult<Vec<u8>, errors::ConnectorError> {
Ok(payload.to_owned()) // Stub implementation
}
}
};
}
// Apply to all flows
impl_source_verification_stub!(
Authorize,
PaymentFlowData,
PaymentsAuthorizeData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
CreateOrder,
PaymentFlowData,
PaymentCreateOrderData,
PaymentCreateOrderResponse
);
impl_source_verification_stub!(
PSync,
PaymentFlowData,
PaymentsSyncData,
PaymentsResponseData
);
impl_source_verification_stub!(
Capture,
PaymentFlowData,
PaymentsCaptureData,
PaymentsResponseData
);
impl_source_verification_stub!(Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData);
impl_source_verification_stub!(Refund, RefundFlowData, RefundsData, RefundsResponseData);
impl_source_verification_stub!(RSync, RefundFlowData, RefundSyncData, RefundsResponseData);
impl_source_verification_stub!(
SetupMandate,
| {
"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_8422386202000302436_750_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentsResponseData
);
impl_source_verification_stub!(
CreateOrder,
PaymentFlowData,
PaymentCreateOrderData,
PaymentCreateOrderResponse
);
impl_source_verification_stub!(
PSync,
PaymentFlowData,
PaymentsSyncData,
PaymentsResponseData
);
impl_source_verification_stub!(
| {
"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_8422386202000302436_750_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentsResponseData
);
impl_source_verification_stub!(
CreateOrder,
PaymentFlowData,
PaymentCreateOrderData,
PaymentCreateOrderResponse
);
impl_source_verification_stub!(
PSync,
PaymentFlowData,
PaymentsSyncData,
PaymentsResponseData
);
impl_source_verification_stub!(
Capture,
PaymentFlowData,
PaymentsCaptureData,
PaymentsResponseData
);
impl_source_verification_stub!(Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData);
impl_source_verification_stub!(Refund, RefundFlowData, RefundsData, RefundsResponseData);
impl_source_verification_stub!(RSync, RefundFlowData, RefundSyncData, RefundsResponseData);
impl_source_verification_stub!(
SetupMandate,
PaymentFlowData,
SetupMandateRequestData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
| {
"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_8422386202000302436_750_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentsResponseData
);
impl_source_verification_stub!(
CreateOrder,
PaymentFlowData,
PaymentCreateOrderData,
PaymentCreateOrderResponse
);
impl_source_verification_stub!(
PSync,
PaymentFlowData,
PaymentsSyncData,
PaymentsResponseData
);
impl_source_verification_stub!(
Capture,
PaymentFlowData,
PaymentsCaptureData,
PaymentsResponseData
);
impl_source_verification_stub!(Void, PaymentFlowData, PaymentVoidData, PaymentsResponseData);
impl_source_verification_stub!(Refund, RefundFlowData, RefundsData, RefundsResponseData);
impl_source_verification_stub!(RSync, RefundFlowData, RefundSyncData, RefundsResponseData);
impl_source_verification_stub!(
SetupMandate,
PaymentFlowData,
SetupMandateRequestData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
RepeatPayment,
PaymentFlowData,
RepeatPaymentData,
PaymentsResponseData
);
impl_source_verification_stub!(
Accept,
DisputeFlowData,
AcceptDisputeData,
DisputeResponseData
);
impl_source_verification_stub!(
SubmitEvidence,
DisputeFlowData,
SubmitEvidenceData,
DisputeResponseData
);
impl_source_verification_stub!(
DefendDispute,
DisputeFlowData,
| {
"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_8422386202000302436_775_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
SetupMandateRequestData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
RepeatPayment,
PaymentFlowData,
RepeatPaymentData,
PaymentsResponseData
);
impl_source_verification_stub!(
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": 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_8422386202000302436_775_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
SetupMandateRequestData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
RepeatPayment,
PaymentFlowData,
RepeatPaymentData,
PaymentsResponseData
);
impl_source_verification_stub!(
Accept,
DisputeFlowData,
AcceptDisputeData,
DisputeResponseData
);
impl_source_verification_stub!(
SubmitEvidence,
DisputeFlowData,
SubmitEvidenceData,
DisputeResponseData
);
impl_source_verification_stub!(
DefendDispute,
DisputeFlowData,
DisputeDefendData,
DisputeResponseData
);
impl_source_verification_stub!(
CreateSessionToken,
| {
"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_8422386202000302436_775_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
SetupMandateRequestData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
RepeatPayment,
PaymentFlowData,
RepeatPaymentData,
PaymentsResponseData
);
impl_source_verification_stub!(
Accept,
DisputeFlowData,
AcceptDisputeData,
DisputeResponseData
);
impl_source_verification_stub!(
SubmitEvidence,
DisputeFlowData,
SubmitEvidenceData,
DisputeResponseData
);
impl_source_verification_stub!(
DefendDispute,
DisputeFlowData,
DisputeDefendData,
DisputeResponseData
);
impl_source_verification_stub!(
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData
);
impl_source_verification_stub!(
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData
);
impl_source_verification_stub!(
PaymentMethodToken,
PaymentFlowData,
PaymentMethodTokenizationData<T>,
PaymentMethodTokenResponse
);
// Authentication flow ConnectorIntegrationV2 implementations
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": 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_8422386202000302436_800_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
DisputeDefendData,
DisputeResponseData
);
impl_source_verification_stub!(
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData
);
impl_source_verification_stub!(
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData
);
| {
"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_8422386202000302436_800_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
DisputeDefendData,
DisputeResponseData
);
impl_source_verification_stub!(
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData
);
impl_source_verification_stub!(
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData
);
impl_source_verification_stub!(
PaymentMethodToken,
PaymentFlowData,
PaymentMethodTokenizationData<T>,
PaymentMethodTokenResponse
);
// Authentication flow ConnectorIntegrationV2 implementations
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": 800,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_800_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
DisputeDefendData,
DisputeResponseData
);
impl_source_verification_stub!(
CreateSessionToken,
PaymentFlowData,
SessionTokenRequestData,
SessionTokenResponseData
);
impl_source_verification_stub!(
CreateAccessToken,
PaymentFlowData,
AccessTokenRequestData,
AccessTokenResponseData
);
impl_source_verification_stub!(
PaymentMethodToken,
PaymentFlowData,
PaymentMethodTokenizationData<T>,
PaymentMethodTokenResponse
);
// Authentication flow ConnectorIntegrationV2 implementations
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
Authenticate,
| {
"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_8422386202000302436_825_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<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": 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_8422386202000302436_825_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<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": 825,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_825_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
// Authentication flow SourceVerification implementations
| {
"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_8422386202000302436_850_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<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": 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_8422386202000302436_850_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
// Authentication flow SourceVerification implementations
impl_source_verification_stub!(
PreAuthenticate,
PaymentFlowData,
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": 850,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_850_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData,
> for Cashfree<T>
{
}
// Authentication flow SourceVerification implementations
impl_source_verification_stub!(
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse
);
impl_source_verification_stub!(
| {
"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_8422386202000302436_875_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
impl_source_verification_stub!(
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
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": 875,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_8422386202000302436_875_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
impl_source_verification_stub!(
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse
);
impl_source_verification_stub!(
VoidPC,
PaymentFlowData,
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": 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_8422386202000302436_875_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/cashfree.rs
impl_source_verification_stub!(
PreAuthenticate,
PaymentFlowData,
PaymentsPreAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
Authenticate,
PaymentFlowData,
PaymentsAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
PostAuthenticate,
PaymentFlowData,
PaymentsPostAuthenticateData<T>,
PaymentsResponseData
);
impl_source_verification_stub!(
CreateConnectorCustomer,
PaymentFlowData,
ConnectorCustomerData,
ConnectorCustomerResponse
);
impl_source_verification_stub!(
VoidPC,
PaymentFlowData,
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": 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_3706374737360175375_0_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
pub mod transformers;
use std::fmt::Debug;
use base64::Engine;
use common_enums::{enums, CurrencyUnit};
use common_utils::{
errors::CustomResult, events, ext_traits::ByteSliceExt, types::StringMajorUnit,
};
use domain_types::{
connector_flow::{
Accept, Authenticate, Authorize, Capture, CreateAccessToken, CreateConnectorCustomer,
CreateOrder, CreateSessionToken, DefendDispute, PSync, PaymentMethodToken,
PostAuthenticate, PreAuthenticate, RSync, Refund, RepeatPayment, SetupMandate,
SubmitEvidence, Void, 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": 0,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_0_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
pub mod transformers;
use std::fmt::Debug;
use base64::Engine;
use common_enums::{enums, CurrencyUnit};
use common_utils::{
errors::CustomResult, events, ext_traits::ByteSliceExt, types::StringMajorUnit,
};
use domain_types::{
connector_flow::{
Accept, Authenticate, Authorize, Capture, CreateAccessToken, CreateConnectorCustomer,
CreateOrder, CreateSessionToken, DefendDispute, PSync, PaymentMethodToken,
PostAuthenticate, PreAuthenticate, RSync, Refund, RepeatPayment, SetupMandate,
SubmitEvidence, Void, VoidPC,
},
connector_types::{
AcceptDisputeData, AccessTokenRequestData, AccessTokenResponseData, ConnectorCustomerData,
ConnectorCustomerResponse, DisputeDefendData, DisputeFlowData, DisputeResponseData,
PaymentCreateOrderData, PaymentCreateOrderResponse, PaymentFlowData,
PaymentMethodTokenResponse, PaymentMethodTokenizationData, PaymentVoidData,
PaymentsAuthenticateData, PaymentsAuthorizeData, PaymentsCancelPostCaptureData,
PaymentsCaptureData, PaymentsPostAuthenticateData, PaymentsPreAuthenticateData,
PaymentsResponseData, PaymentsSyncData, RefundFlowData, RefundSyncData, RefundsData,
RefundsResponseData, RepeatPaymentData, SessionTokenRequestData, SessionTokenResponseData,
SetupMandateRequestData, SubmitEvidenceData,
},
errors::{self, ConnectorError},
payment_method_data::PaymentMethodDataTypes,
router_data::{ConnectorAuthType, ErrorResponse},
| {
"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": 0,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_0_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
pub mod transformers;
use std::fmt::Debug;
use base64::Engine;
use common_enums::{enums, CurrencyUnit};
use common_utils::{
errors::CustomResult, events, ext_traits::ByteSliceExt, types::StringMajorUnit,
};
use domain_types::{
connector_flow::{
Accept, Authenticate, Authorize, Capture, CreateAccessToken, CreateConnectorCustomer,
CreateOrder, CreateSessionToken, DefendDispute, PSync, PaymentMethodToken,
PostAuthenticate, PreAuthenticate, RSync, Refund, RepeatPayment, SetupMandate,
SubmitEvidence, Void, VoidPC,
},
connector_types::{
AcceptDisputeData, AccessTokenRequestData, AccessTokenResponseData, ConnectorCustomerData,
ConnectorCustomerResponse, DisputeDefendData, DisputeFlowData, DisputeResponseData,
PaymentCreateOrderData, PaymentCreateOrderResponse, PaymentFlowData,
PaymentMethodTokenResponse, PaymentMethodTokenizationData, PaymentVoidData,
PaymentsAuthenticateData, PaymentsAuthorizeData, PaymentsCancelPostCaptureData,
PaymentsCaptureData, PaymentsPostAuthenticateData, PaymentsPreAuthenticateData,
PaymentsResponseData, PaymentsSyncData, RefundFlowData, RefundSyncData, RefundsData,
RefundsResponseData, RepeatPaymentData, SessionTokenRequestData, SessionTokenResponseData,
SetupMandateRequestData, SubmitEvidenceData,
},
errors::{self, ConnectorError},
payment_method_data::PaymentMethodDataTypes,
router_data::{ConnectorAuthType, ErrorResponse},
router_data_v2::RouterDataV2,
router_response_types::Response,
types::Connectors,
};
use error_stack::ResultExt;
use hyperswitch_masking::Maskable;
use interfaces::{
api::ConnectorCommon, connector_integration_v2::ConnectorIntegrationV2, connector_types,
};
use serde::Serialize;
pub const BASE64_ENGINE: base64::engine::GeneralPurpose = base64::engine::general_purpose::STANDARD;
use transformers::{
is_upi_collect_flow, PayuAuthType, PayuPaymentRequest, PayuPaymentResponse, PayuSyncRequest,
PayuSyncResponse,
};
use super::macros;
use crate::types::ResponseRouterData;
| {
"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": 0,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_25_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
SetupMandateRequestData, SubmitEvidenceData,
},
errors::{self, ConnectorError},
payment_method_data::PaymentMethodDataTypes,
router_data::{ConnectorAuthType, ErrorResponse},
router_data_v2::RouterDataV2,
router_response_types::Response,
types::Connectors,
};
use error_stack::ResultExt;
use hyperswitch_masking::Maskable;
use interfaces::{
api::ConnectorCommon, connector_integration_v2::ConnectorIntegrationV2, connector_types,
};
use serde::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": 25,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_25_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
SetupMandateRequestData, SubmitEvidenceData,
},
errors::{self, ConnectorError},
payment_method_data::PaymentMethodDataTypes,
router_data::{ConnectorAuthType, ErrorResponse},
router_data_v2::RouterDataV2,
router_response_types::Response,
types::Connectors,
};
use error_stack::ResultExt;
use hyperswitch_masking::Maskable;
use interfaces::{
api::ConnectorCommon, connector_integration_v2::ConnectorIntegrationV2, connector_types,
};
use serde::Serialize;
pub const BASE64_ENGINE: base64::engine::GeneralPurpose = base64::engine::general_purpose::STANDARD;
use transformers::{
is_upi_collect_flow, PayuAuthType, PayuPaymentRequest, PayuPaymentResponse, PayuSyncRequest,
PayuSyncResponse,
};
use super::macros;
use crate::types::ResponseRouterData;
// Trait implementations with generic type parameters
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": 30,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 25,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_25_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
SetupMandateRequestData, SubmitEvidenceData,
},
errors::{self, ConnectorError},
payment_method_data::PaymentMethodDataTypes,
router_data::{ConnectorAuthType, ErrorResponse},
router_data_v2::RouterDataV2,
router_response_types::Response,
types::Connectors,
};
use error_stack::ResultExt;
use hyperswitch_masking::Maskable;
use interfaces::{
api::ConnectorCommon, connector_integration_v2::ConnectorIntegrationV2, connector_types,
};
use serde::Serialize;
pub const BASE64_ENGINE: base64::engine::GeneralPurpose = base64::engine::general_purpose::STANDARD;
use transformers::{
is_upi_collect_flow, PayuAuthType, PayuPaymentRequest, PayuPaymentResponse, PayuSyncRequest,
PayuSyncResponse,
};
use super::macros;
use crate::types::ResponseRouterData;
// Trait implementations with generic type parameters
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ConnectorServiceTrait<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthorizeV2<T> for Payu<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": 25,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_50_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Trait implementations with generic type parameters
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ConnectorServiceTrait<T> for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 50,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_50_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Trait implementations with generic type parameters
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ConnectorServiceTrait<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthorizeV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSyncV2 for Payu<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": 50,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_50_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Trait implementations with generic type parameters
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ConnectorServiceTrait<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthorizeV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSyncV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSessionToken for Payu<T>
{
}
impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
connector_types::PaymentAccessToken for Payu<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": 50,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_75_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSyncV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSessionToken for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 75,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_75_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSyncV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSessionToken for Payu<T>
{
}
impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
connector_types::PaymentAccessToken for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::CreateConnectorCustomer for Payu<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": 75,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_75_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSyncV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentSessionToken for Payu<T>
{
}
impl<T: PaymentMethodDataTypes + Debug + Sync + Send + 'static + Serialize>
connector_types::PaymentAccessToken for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::CreateConnectorCustomer for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundSyncV2 for Payu<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": 75,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_100_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::CreateConnectorCustomer for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidV2 for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 100,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_100_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::CreateConnectorCustomer for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundSyncV2 for Payu<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": 30,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 100,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_100_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::CreateConnectorCustomer for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundSyncV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentCapture for Payu<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": 100,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_125_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundV2 for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 125,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_125_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentCapture for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SetupMandateV2<T> for Payu<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": 125,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_125_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RefundV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentCapture for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SetupMandateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::AcceptDispute for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SubmitEvidenceV2 for Payu<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": 125,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_150_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SetupMandateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::AcceptDispute for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 150,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_150_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SetupMandateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::AcceptDispute for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SubmitEvidenceV2 for Payu<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": 30,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 150,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_150_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SetupMandateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::AcceptDispute for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::SubmitEvidenceV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::DisputeDefend for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::IncomingWebhook for Payu<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": 150,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_175_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::DisputeDefend for Payu<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": 15,
"method_name": null,
"num_enums": null,
"num_items": null,
"num_structs": null,
"repo": "connector-service",
"start_line": 175,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_175_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::DisputeDefend for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::IncomingWebhook for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentOrderCreate for Payu<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": 175,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_175_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::DisputeDefend for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::IncomingWebhook for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentOrderCreate for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ValidationTrait for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RepeatPaymentV2 for Payu<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": 175,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_200_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentOrderCreate for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ValidationTrait for Payu<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": 15,
"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_3706374737360175375_200_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentOrderCreate for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ValidationTrait for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RepeatPaymentV2 for Payu<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": 30,
"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_3706374737360175375_200_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentOrderCreate for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::ValidationTrait for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::RepeatPaymentV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentTokenV2<T> for Payu<T>
{
}
// Authentication trait implementations
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPreAuthenticateV2<T> for Payu<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": 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_3706374737360175375_225_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentTokenV2<T> for Payu<T>
{
}
// Authentication trait implementations
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": 225,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_225_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentTokenV2<T> for Payu<T>
{
}
// Authentication trait implementations
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPreAuthenticateV2<T> for Payu<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": 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_3706374737360175375_225_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentTokenV2<T> for Payu<T>
{
}
// Authentication trait implementations
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPreAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPostAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
| {
"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_3706374737360175375_250_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
| {
"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_3706374737360175375_250_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPostAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidPostCaptureV2 for Payu<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": 250,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_250_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentPostAuthenticateV2<T> for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> connector_types::PaymentVoidPostCaptureV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Payu<T>
{
}
// Set up connector using macros with all framework integrations
macros::create_all_prerequisites!(
| {
"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_3706374737360175375_275_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ 'static
+ Serialize,
> connector_types::PaymentVoidPostCaptureV2 for Payu<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": 275,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_275_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ 'static
+ Serialize,
> connector_types::PaymentVoidPostCaptureV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Payu<T>
{
}
// Set up connector using macros with all framework integrations
macros::create_all_prerequisites!(
connector_name: Payu,
generic_type: T,
api: [
(
flow: Authorize,
| {
"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_3706374737360175375_275_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
+ 'static
+ Serialize,
> connector_types::PaymentVoidPostCaptureV2 for Payu<T>
{
}
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
>
ConnectorIntegrationV2<
VoidPC,
PaymentFlowData,
PaymentsCancelPostCaptureData,
PaymentsResponseData,
> for Payu<T>
{
}
// Set up connector using macros with all framework integrations
macros::create_all_prerequisites!(
connector_name: Payu,
generic_type: T,
api: [
(
flow: Authorize,
request_body: PayuPaymentRequest,
response_body: PayuPaymentResponse,
router_data: RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
),
(
flow: PSync,
request_body: PayuSyncRequest,
response_body: PayuSyncResponse,
router_data: RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
)
],
amount_converters: [
amount_converter: StringMajorUnit
],
member_functions: {
pub fn build_headers<F, FCD, Req, Res>(
&self,
_req: &RouterDataV2<F, FCD, Req, Res>,
) -> CustomResult<Vec<(String, Maskable<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_3706374737360175375_300_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_name: Payu,
generic_type: T,
api: [
(
flow: Authorize,
request_body: PayuPaymentRequest,
response_body: PayuPaymentResponse,
router_data: RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
),
(
flow: PSync,
request_body: PayuSyncRequest,
response_body: PayuSyncResponse,
router_data: RouterDataV2<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": 300,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_300_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_name: Payu,
generic_type: T,
api: [
(
flow: Authorize,
request_body: PayuPaymentRequest,
response_body: PayuPaymentResponse,
router_data: RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
),
(
flow: PSync,
request_body: PayuSyncRequest,
response_body: PayuSyncResponse,
router_data: RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
)
],
amount_converters: [
amount_converter: StringMajorUnit
],
member_functions: {
pub fn build_headers<F, FCD, Req, Res>(
&self,
_req: &RouterDataV2<F, FCD, Req, Res>,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError>
where
Self: ConnectorIntegrationV2<F, FCD, Req, Res>,
{
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
| {
"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_3706374737360175375_300_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_name: Payu,
generic_type: T,
api: [
(
flow: Authorize,
request_body: PayuPaymentRequest,
response_body: PayuPaymentResponse,
router_data: RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
),
(
flow: PSync,
request_body: PayuSyncRequest,
response_body: PayuSyncResponse,
router_data: RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
)
],
amount_converters: [
amount_converter: StringMajorUnit
],
member_functions: {
pub fn build_headers<F, FCD, Req, Res>(
&self,
_req: &RouterDataV2<F, FCD, Req, Res>,
) -> CustomResult<Vec<(String, Maskable<String>)>, errors::ConnectorError>
where
Self: ConnectorIntegrationV2<F, FCD, Req, Res>,
{
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
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.payu.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.payu.base_url
}
pub fn preprocess_response_bytes<F, FCD, Res>(
&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": 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_3706374737360175375_325_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
where
Self: ConnectorIntegrationV2<F, FCD, Req, Res>,
{
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
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.payu.base_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": 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_3706374737360175375_325_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
where
Self: ConnectorIntegrationV2<F, FCD, Req, Res>,
{
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
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.payu.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.payu.base_url
}
pub fn preprocess_response_bytes<F, FCD, Res>(
&self,
req: &RouterDataV2<F, FCD, PaymentsAuthorizeData<T>, Res>,
bytes: bytes::Bytes,
) -> CustomResult<bytes::Bytes, ConnectorError> {
if is_upi_collect_flow(&req.request) {
// For UPI collect flows, we need to return base64 decoded 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": 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_3706374737360175375_325_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
where
Self: ConnectorIntegrationV2<F, FCD, Req, Res>,
{
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
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.payu.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.payu.base_url
}
pub fn preprocess_response_bytes<F, FCD, Res>(
&self,
req: &RouterDataV2<F, FCD, PaymentsAuthorizeData<T>, Res>,
bytes: bytes::Bytes,
) -> CustomResult<bytes::Bytes, ConnectorError> {
if is_upi_collect_flow(&req.request) {
// For UPI collect flows, we need to return base64 decoded response
let decoded_value = BASE64_ENGINE.decode(bytes.clone());
match decoded_value {
Ok(decoded_bytes) => Ok(decoded_bytes.into()),
Err(_) => Ok(bytes.clone())
}
} else {
// For other flows, we can use the response itself
Ok(bytes)
}
}
}
);
// Implement PSync flow using macro framework
macros::macro_connector_implementation!(
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuSyncRequest),
curl_response: PayuSyncResponse,
flow_name: PSync,
| {
"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_3706374737360175375_350_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
req: &RouterDataV2<F, FCD, PaymentsAuthorizeData<T>, Res>,
bytes: bytes::Bytes,
) -> CustomResult<bytes::Bytes, ConnectorError> {
if is_upi_collect_flow(&req.request) {
// For UPI collect flows, we need to return base64 decoded response
let decoded_value = BASE64_ENGINE.decode(bytes.clone());
match decoded_value {
Ok(decoded_bytes) => Ok(decoded_bytes.into()),
Err(_) => Ok(bytes.clone())
}
} else {
// For other flows, we can use the response itself
Ok(bytes)
}
}
| {
"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_3706374737360175375_350_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
req: &RouterDataV2<F, FCD, PaymentsAuthorizeData<T>, Res>,
bytes: bytes::Bytes,
) -> CustomResult<bytes::Bytes, ConnectorError> {
if is_upi_collect_flow(&req.request) {
// For UPI collect flows, we need to return base64 decoded response
let decoded_value = BASE64_ENGINE.decode(bytes.clone());
match decoded_value {
Ok(decoded_bytes) => Ok(decoded_bytes.into()),
Err(_) => Ok(bytes.clone())
}
} else {
// For other flows, we can use the response itself
Ok(bytes)
}
}
}
);
// Implement PSync flow using macro framework
macros::macro_connector_implementation!(
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuSyncRequest),
curl_response: PayuSyncResponse,
flow_name: PSync,
resource_common_data: PaymentFlowData,
flow_request: PaymentsSyncData,
flow_response: PaymentsResponseData,
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": 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_3706374737360175375_350_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
req: &RouterDataV2<F, FCD, PaymentsAuthorizeData<T>, Res>,
bytes: bytes::Bytes,
) -> CustomResult<bytes::Bytes, ConnectorError> {
if is_upi_collect_flow(&req.request) {
// For UPI collect flows, we need to return base64 decoded response
let decoded_value = BASE64_ENGINE.decode(bytes.clone());
match decoded_value {
Ok(decoded_bytes) => Ok(decoded_bytes.into()),
Err(_) => Ok(bytes.clone())
}
} else {
// For other flows, we can use the response itself
Ok(bytes)
}
}
}
);
// Implement PSync flow using macro framework
macros::macro_connector_implementation!(
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuSyncRequest),
curl_response: PayuSyncResponse,
flow_name: PSync,
resource_common_data: PaymentFlowData,
flow_request: PaymentsSyncData,
flow_response: PaymentsResponseData,
http_method: Post,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
_req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
fn get_url(
&self,
req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell implementation: uses /merchant/postservice.php?form=2 for verification
// Test: https://test.payu.in/merchant/postservice.php?form=2
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/merchant/postservice.php?form=2"))
| {
"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_3706374737360175375_375_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
resource_common_data: PaymentFlowData,
flow_request: PaymentsSyncData,
flow_response: PaymentsResponseData,
http_method: Post,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
_req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
| {
"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_3706374737360175375_375_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
resource_common_data: PaymentFlowData,
flow_request: PaymentsSyncData,
flow_response: PaymentsResponseData,
http_method: Post,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
_req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
fn get_url(
&self,
req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell implementation: uses /merchant/postservice.php?form=2 for verification
// Test: https://test.payu.in/merchant/postservice.php?form=2
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/merchant/postservice.php?form=2"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
| {
"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_3706374737360175375_375_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
resource_common_data: PaymentFlowData,
flow_request: PaymentsSyncData,
flow_response: PaymentsResponseData,
http_method: Post,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
_req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
Ok(vec![
("Content-Type".to_string(), "application/x-www-form-urlencoded".into()),
("Accept".to_string(), "application/json".into()),
])
}
fn get_url(
&self,
req: &RouterDataV2<PSync, PaymentFlowData, PaymentsSyncData, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell implementation: uses /merchant/postservice.php?form=2 for verification
// Test: https://test.payu.in/merchant/postservice.php?form=2
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/merchant/postservice.php?form=2"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU sync may return error responses in different formats
let response: PayuSyncResponse = res
.response
.parse_struct("PayU Sync ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if PayU returned error status (0 = error)
if response.status == Some(0) {
Ok(ErrorResponse {
status_code: res.status_code,
code: "PAYU_SYNC_ERROR".to_string(),
message: response.msg.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
| {
"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_3706374737360175375_400_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU sync may return error responses in different formats
let response: PayuSyncResponse = res
.response
.parse_struct("PayU Sync ErrorResponse")
| {
"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_3706374737360175375_400_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU sync may return error responses in different formats
let response: PayuSyncResponse = res
.response
.parse_struct("PayU Sync ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if PayU returned error status (0 = error)
if response.status == Some(0) {
Ok(ErrorResponse {
status_code: res.status_code,
code: "PAYU_SYNC_ERROR".to_string(),
message: response.msg.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: 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": 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_3706374737360175375_400_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU sync may return error responses in different formats
let response: PayuSyncResponse = res
.response
.parse_struct("PayU Sync ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if PayU returned error status (0 = error)
if response.status == Some(0) {
Ok(ErrorResponse {
status_code: res.status_code,
code: "PAYU_SYNC_ERROR".to_string(),
message: response.msg.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// Generic error response
Ok(ErrorResponse {
status_code: res.status_code,
code: "SYNC_UNKNOWN_ERROR".to_string(),
message: "Unknown PayU sync error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
}
}
}
);
// Implement authorize flow using macro framework
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": 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_3706374737360175375_425_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// Generic error response
Ok(ErrorResponse {
status_code: res.status_code,
code: "SYNC_UNKNOWN_ERROR".to_string(),
message: "Unknown PayU sync error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: 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": 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_3706374737360175375_425_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// Generic error response
Ok(ErrorResponse {
status_code: res.status_code,
code: "SYNC_UNKNOWN_ERROR".to_string(),
message: "Unknown PayU sync error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
}
}
}
);
// Implement authorize flow using macro framework
macros::macro_connector_implementation!(
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuPaymentRequest),
curl_response: PayuPaymentResponse,
flow_name: Authorize,
| {
"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_3706374737360175375_425_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// Generic error response
Ok(ErrorResponse {
status_code: res.status_code,
code: "SYNC_UNKNOWN_ERROR".to_string(),
message: "Unknown PayU sync error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
}
}
}
);
// Implement authorize flow using macro framework
macros::macro_connector_implementation!(
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuPaymentRequest),
curl_response: PayuPaymentResponse,
flow_name: Authorize,
resource_common_data: PaymentFlowData,
flow_request: PaymentsAuthorizeData<T>,
flow_response: PaymentsResponseData,
http_method: Post,
preprocess_response: true,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
self.build_headers(req)
}
fn get_url(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell Endpoints.hs: uses /_payment endpoint for UPI transactions
| {
"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_3706374737360175375_450_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuPaymentRequest),
curl_response: PayuPaymentResponse,
flow_name: Authorize,
resource_common_data: PaymentFlowData,
flow_request: PaymentsAuthorizeData<T>,
flow_response: PaymentsResponseData,
http_method: Post,
preprocess_response: true,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::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": 450,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_450_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuPaymentRequest),
curl_response: PayuPaymentResponse,
flow_name: Authorize,
resource_common_data: PaymentFlowData,
flow_request: PaymentsAuthorizeData<T>,
flow_response: PaymentsResponseData,
http_method: Post,
preprocess_response: true,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
self.build_headers(req)
}
fn get_url(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell Endpoints.hs: uses /_payment endpoint for UPI transactions
// Test: https://test.payu.in/_payment
// Prod: https://secure.payu.in/_payment
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/_payment"))
}
| {
"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_3706374737360175375_450_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
connector_default_implementations: [],
connector: Payu,
curl_request: FormUrlEncoded(PayuPaymentRequest),
curl_response: PayuPaymentResponse,
flow_name: Authorize,
resource_common_data: PaymentFlowData,
flow_request: PaymentsAuthorizeData<T>,
flow_response: PaymentsResponseData,
http_method: Post,
preprocess_response: true,
generic_type: T,
[PaymentMethodDataTypes + std::fmt::Debug + std::marker::Sync + std::marker::Send + 'static + Serialize],
other_functions: {
fn get_headers(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<Vec<(String, Maskable<String>)>, ConnectorError> {
self.build_headers(req)
}
fn get_url(
&self,
req: &RouterDataV2<Authorize, PaymentFlowData, PaymentsAuthorizeData<T>, PaymentsResponseData>,
) -> CustomResult<String, ConnectorError> {
// Based on Haskell Endpoints.hs: uses /_payment endpoint for UPI transactions
// Test: https://test.payu.in/_payment
// Prod: https://secure.payu.in/_payment
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/_payment"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU returns error responses in the same JSON format as success responses
// We need to parse the response and check for error fields
let response: PayuPaymentResponse = res
.response
.parse_struct("PayU ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if this is an error response
if response.error.is_some() {
Ok(ErrorResponse {
status_code: res.status_code,
code: response.error.unwrap_or_default(),
| {
"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_3706374737360175375_475_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Test: https://test.payu.in/_payment
// Prod: https://secure.payu.in/_payment
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/_payment"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU returns error responses in the same JSON format as success responses
// We need to parse the response and check for error fields
| {
"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_3706374737360175375_475_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Test: https://test.payu.in/_payment
// Prod: https://secure.payu.in/_payment
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/_payment"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU returns error responses in the same JSON format as success responses
// We need to parse the response and check for error fields
let response: PayuPaymentResponse = res
.response
.parse_struct("PayU ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if this is an error response
if response.error.is_some() {
Ok(ErrorResponse {
status_code: res.status_code,
code: response.error.unwrap_or_default(),
message: response.message.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: response.reference_id,
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": 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_3706374737360175375_475_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
// Test: https://test.payu.in/_payment
// Prod: https://secure.payu.in/_payment
let base_url = self.base_url(&req.resource_common_data.connectors);
Ok(format!("{base_url}/_payment"))
}
fn get_content_type(&self) -> &'static str {
"application/x-www-form-urlencoded"
}
fn get_error_response_v2(
&self,
res: Response,
_event_builder: Option<&mut events::Event>,
) -> CustomResult<ErrorResponse, ConnectorError> {
// PayU returns error responses in the same JSON format as success responses
// We need to parse the response and check for error fields
let response: PayuPaymentResponse = res
.response
.parse_struct("PayU ErrorResponse")
.change_context(ConnectorError::ResponseDeserializationFailed)?;
// Check if this is an error response
if response.error.is_some() {
Ok(ErrorResponse {
status_code: res.status_code,
code: response.error.unwrap_or_default(),
message: response.message.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: response.reference_id,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// This shouldn't happen as successful responses go through normal flow
// But fallback to generic error
Ok(ErrorResponse {
status_code: res.status_code,
code: "UNKNOWN_ERROR".to_string(),
message: "Unknown PayU error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: 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": 475,
"struct_name": null,
"total_crates": null,
"trait_name": null
} |
connector-service_snippet_3706374737360175375_500_15 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
message: response.message.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: response.reference_id,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// This shouldn't happen as successful responses go through normal flow
// But fallback to generic error
Ok(ErrorResponse {
status_code: res.status_code,
code: "UNKNOWN_ERROR".to_string(),
message: "Unknown PayU error".to_string(),
| {
"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_3706374737360175375_500_30 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
message: response.message.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: response.reference_id,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// This shouldn't happen as successful responses go through normal flow
// But fallback to generic error
Ok(ErrorResponse {
status_code: res.status_code,
code: "UNKNOWN_ERROR".to_string(),
message: "Unknown PayU error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
}
}
}
);
// Implement ConnectorCommon trait
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": 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_3706374737360175375_500_50 | clm | snippet | // connector-service/backend/connector-integration/src/connectors/payu.rs
message: response.message.unwrap_or_default(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: response.reference_id,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
} else {
// This shouldn't happen as successful responses go through normal flow
// But fallback to generic error
Ok(ErrorResponse {
status_code: res.status_code,
code: "UNKNOWN_ERROR".to_string(),
message: "Unknown PayU error".to_string(),
reason: None,
attempt_status: Some(enums::AttemptStatus::Failure),
connector_transaction_id: None,
network_error_message: None,
network_advice_code: None,
network_decline_code: None,
})
}
}
}
);
// Implement ConnectorCommon trait
impl<
T: PaymentMethodDataTypes
+ std::fmt::Debug
+ std::marker::Sync
+ std::marker::Send
+ 'static
+ Serialize,
> ConnectorCommon for Payu<T>
{
fn id(&self) -> &'static str {
"payu"
}
fn get_currency_unit(&self) -> common_enums::CurrencyUnit {
CurrencyUnit::Minor
}
fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {
&connectors.payu.base_url
}
fn get_auth_header(
| {
"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
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.