id
stringlengths
20
153
type
stringclasses
1 value
granularity
stringclasses
14 values
content
stringlengths
16
84.3k
metadata
dict
connector-service_snippet_-6262692988738800615_1550_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PaymentIntentAuthorizationSuccess | Self::PaymentIntentAuthorizationFailure | Self::PaymentIntentCaptureSuccess | Self::PaymentIntentCaptureFailure | Self::PaymentIntentExpired | Self::PaymentActionRequired | Self::SourceChargeable | Self::SourceTransactionCreated | Self::Payment ) } /// Returns true if this event type is refund-related pub fn is_refund_event(&self) -> bool { matches!(
{ "chunk": null, "crate": "domain_types", "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": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1550_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PaymentIntentAuthorizationSuccess | Self::PaymentIntentAuthorizationFailure | Self::PaymentIntentCaptureSuccess | Self::PaymentIntentCaptureFailure | Self::PaymentIntentExpired | Self::PaymentActionRequired | Self::SourceChargeable | Self::SourceTransactionCreated | Self::Payment ) } /// Returns true if this event type is refund-related pub fn is_refund_event(&self) -> bool { matches!( self, Self::RefundFailure | Self::RefundSuccess | Self::Refund ) } /// Returns true if this event type is dispute-related pub fn is_dispute_event(&self) -> bool { matches!( self, Self::DisputeOpened | Self::DisputeExpired | Self::DisputeAccepted | Self::DisputeCancelled | Self::DisputeChallenged | Self::DisputeWon
{ "chunk": null, "crate": "domain_types", "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": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1550_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PaymentIntentAuthorizationSuccess | Self::PaymentIntentAuthorizationFailure | Self::PaymentIntentCaptureSuccess | Self::PaymentIntentCaptureFailure | Self::PaymentIntentExpired | Self::PaymentActionRequired | Self::SourceChargeable | Self::SourceTransactionCreated | Self::Payment ) } /// Returns true if this event type is refund-related pub fn is_refund_event(&self) -> bool { matches!( self, Self::RefundFailure | Self::RefundSuccess | Self::Refund ) } /// Returns true if this event type is dispute-related pub fn is_dispute_event(&self) -> bool { matches!( self, Self::DisputeOpened | Self::DisputeExpired | Self::DisputeAccepted | Self::DisputeCancelled | Self::DisputeChallenged | Self::DisputeWon | Self::DisputeLost | Self::Dispute ) } /// Returns true if this event type is mandate-related pub fn is_mandate_event(&self) -> bool { matches!(self, Self::MandateActive | Self::MandateRevoked) } /// Returns true if this event type is payout-related pub fn is_payout_event(&self) -> bool { matches!( self, Self::PayoutSuccess | Self::PayoutFailure | Self::PayoutProcessing | Self::PayoutCancelled | Self::PayoutCreated | Self::PayoutExpired
{ "chunk": null, "crate": "domain_types", "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": 1550, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1575_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::DisputeExpired | Self::DisputeAccepted | Self::DisputeCancelled | Self::DisputeChallenged | Self::DisputeWon | Self::DisputeLost | Self::Dispute ) } /// Returns true if this event type is mandate-related pub fn is_mandate_event(&self) -> bool { matches!(self, Self::MandateActive | Self::MandateRevoked) }
{ "chunk": null, "crate": "domain_types", "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": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1575_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::DisputeExpired | Self::DisputeAccepted | Self::DisputeCancelled | Self::DisputeChallenged | Self::DisputeWon | Self::DisputeLost | Self::Dispute ) } /// Returns true if this event type is mandate-related pub fn is_mandate_event(&self) -> bool { matches!(self, Self::MandateActive | Self::MandateRevoked) } /// Returns true if this event type is payout-related pub fn is_payout_event(&self) -> bool { matches!( self, Self::PayoutSuccess | Self::PayoutFailure | Self::PayoutProcessing | Self::PayoutCancelled | Self::PayoutCreated | Self::PayoutExpired | Self::PayoutReversed ) } /// Returns true if this event type is recovery-related
{ "chunk": null, "crate": "domain_types", "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": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1575_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::DisputeExpired | Self::DisputeAccepted | Self::DisputeCancelled | Self::DisputeChallenged | Self::DisputeWon | Self::DisputeLost | Self::Dispute ) } /// Returns true if this event type is mandate-related pub fn is_mandate_event(&self) -> bool { matches!(self, Self::MandateActive | Self::MandateRevoked) } /// Returns true if this event type is payout-related pub fn is_payout_event(&self) -> bool { matches!( self, Self::PayoutSuccess | Self::PayoutFailure | Self::PayoutProcessing | Self::PayoutCancelled | Self::PayoutCreated | Self::PayoutExpired | Self::PayoutReversed ) } /// Returns true if this event type is recovery-related pub fn is_recovery_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending | Self::RecoveryInvoiceCancel ) } /// Returns true if this event type is miscellaneous pub fn is_misc_event(&self) -> bool { matches!( self, Self::EndpointVerification | Self::ExternalAuthenticationAres | Self::FrmApproved | Self::FrmRejected | Self::IncomingWebhookEventUnspecified )
{ "chunk": null, "crate": "domain_types", "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": 1575, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1600_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PayoutReversed ) } /// Returns true if this event type is recovery-related pub fn is_recovery_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending | Self::RecoveryInvoiceCancel ) }
{ "chunk": null, "crate": "domain_types", "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": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1600_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PayoutReversed ) } /// Returns true if this event type is recovery-related pub fn is_recovery_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending | Self::RecoveryInvoiceCancel ) } /// Returns true if this event type is miscellaneous pub fn is_misc_event(&self) -> bool { matches!( self, Self::EndpointVerification | Self::ExternalAuthenticationAres | Self::FrmApproved | Self::FrmRejected | Self::IncomingWebhookEventUnspecified ) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookEventType> for EventType { type Error = ApplicationErrorResponse;
{ "chunk": null, "crate": "domain_types", "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": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1600_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs | Self::PayoutReversed ) } /// Returns true if this event type is recovery-related pub fn is_recovery_event(&self) -> bool { matches!( self, Self::RecoveryPaymentFailure | Self::RecoveryPaymentSuccess | Self::RecoveryPaymentPending | Self::RecoveryInvoiceCancel ) } /// Returns true if this event type is miscellaneous pub fn is_misc_event(&self) -> bool { matches!( self, Self::EndpointVerification | Self::ExternalAuthenticationAres | Self::FrmApproved | Self::FrmRejected | Self::IncomingWebhookEventUnspecified ) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookEventType> for EventType { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookEventType, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::WebhookEventType::PaymentIntentFailure => { Ok(Self::PaymentIntentFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentSuccess => { Ok(Self::PaymentIntentSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentProcessing => { Ok(Self::PaymentIntentProcessing) } grpc_api_types::payments::WebhookEventType::PaymentIntentPartiallyFunded => { Ok(Self::PaymentIntentPartiallyFunded) } grpc_api_types::payments::WebhookEventType::PaymentIntentCancelled => { Ok(Self::PaymentIntentCancelled) }
{ "chunk": null, "crate": "domain_types", "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": 1600, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1625_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } } impl ForeignTryFrom<grpc_api_types::payments::WebhookEventType> for EventType { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookEventType, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::WebhookEventType::PaymentIntentFailure => { Ok(Self::PaymentIntentFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentSuccess => { Ok(Self::PaymentIntentSuccess)
{ "chunk": null, "crate": "domain_types", "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": 1625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1625_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } } impl ForeignTryFrom<grpc_api_types::payments::WebhookEventType> for EventType { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookEventType, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::WebhookEventType::PaymentIntentFailure => { Ok(Self::PaymentIntentFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentSuccess => { Ok(Self::PaymentIntentSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentProcessing => { Ok(Self::PaymentIntentProcessing) } grpc_api_types::payments::WebhookEventType::PaymentIntentPartiallyFunded => { Ok(Self::PaymentIntentPartiallyFunded) } grpc_api_types::payments::WebhookEventType::PaymentIntentCancelled => { Ok(Self::PaymentIntentCancelled) } grpc_api_types::payments::WebhookEventType::PaymentIntentCancelFailure => { Ok(Self::PaymentIntentCancelFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess)
{ "chunk": null, "crate": "domain_types", "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": 1625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1625_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } } impl ForeignTryFrom<grpc_api_types::payments::WebhookEventType> for EventType { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookEventType, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::WebhookEventType::PaymentIntentFailure => { Ok(Self::PaymentIntentFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentSuccess => { Ok(Self::PaymentIntentSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentProcessing => { Ok(Self::PaymentIntentProcessing) } grpc_api_types::payments::WebhookEventType::PaymentIntentPartiallyFunded => { Ok(Self::PaymentIntentPartiallyFunded) } grpc_api_types::payments::WebhookEventType::PaymentIntentCancelled => { Ok(Self::PaymentIntentCancelled) } grpc_api_types::payments::WebhookEventType::PaymentIntentCancelFailure => { Ok(Self::PaymentIntentCancelFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureSuccess => { Ok(Self::PaymentIntentCaptureSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureFailure => { Ok(Self::PaymentIntentCaptureFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentExpired => { Ok(Self::PaymentIntentExpired) } grpc_api_types::payments::WebhookEventType::PaymentActionRequired => { Ok(Self::PaymentActionRequired) } grpc_api_types::payments::WebhookEventType::SourceChargeable => { Ok(Self::SourceChargeable) } grpc_api_types::payments::WebhookEventType::SourceTransactionCreated => {
{ "chunk": null, "crate": "domain_types", "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": 1625, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1650_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::PaymentIntentCancelFailure => { Ok(Self::PaymentIntentCancelFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureSuccess => { Ok(Self::PaymentIntentCaptureSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureFailure => { Ok(Self::PaymentIntentCaptureFailure) }
{ "chunk": null, "crate": "domain_types", "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": 1650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1650_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::PaymentIntentCancelFailure => { Ok(Self::PaymentIntentCancelFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureSuccess => { Ok(Self::PaymentIntentCaptureSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureFailure => { Ok(Self::PaymentIntentCaptureFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentExpired => { Ok(Self::PaymentIntentExpired) } grpc_api_types::payments::WebhookEventType::PaymentActionRequired => { Ok(Self::PaymentActionRequired) } grpc_api_types::payments::WebhookEventType::SourceChargeable => { Ok(Self::SourceChargeable) } grpc_api_types::payments::WebhookEventType::SourceTransactionCreated => { Ok(Self::SourceTransactionCreated) } grpc_api_types::payments::WebhookEventType::WebhookRefundFailure => { Ok(Self::RefundFailure) }
{ "chunk": null, "crate": "domain_types", "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": 1650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1650_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::PaymentIntentCancelFailure => { Ok(Self::PaymentIntentCancelFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureSuccess => { Ok(Self::PaymentIntentCaptureSuccess) } grpc_api_types::payments::WebhookEventType::PaymentIntentCaptureFailure => { Ok(Self::PaymentIntentCaptureFailure) } grpc_api_types::payments::WebhookEventType::PaymentIntentExpired => { Ok(Self::PaymentIntentExpired) } grpc_api_types::payments::WebhookEventType::PaymentActionRequired => { Ok(Self::PaymentActionRequired) } grpc_api_types::payments::WebhookEventType::SourceChargeable => { Ok(Self::SourceChargeable) } grpc_api_types::payments::WebhookEventType::SourceTransactionCreated => { Ok(Self::SourceTransactionCreated) } grpc_api_types::payments::WebhookEventType::WebhookRefundFailure => { Ok(Self::RefundFailure) } grpc_api_types::payments::WebhookEventType::WebhookRefundSuccess => { Ok(Self::RefundSuccess) } grpc_api_types::payments::WebhookEventType::WebhookDisputeOpened => { Ok(Self::DisputeOpened) } grpc_api_types::payments::WebhookEventType::WebhookDisputeExpired => { Ok(Self::DisputeExpired) } grpc_api_types::payments::WebhookEventType::WebhookDisputeAccepted => { Ok(Self::DisputeAccepted) } grpc_api_types::payments::WebhookEventType::WebhookDisputeCancelled => { Ok(Self::DisputeCancelled) } grpc_api_types::payments::WebhookEventType::WebhookDisputeChallenged => { Ok(Self::DisputeChallenged) } grpc_api_types::payments::WebhookEventType::WebhookDisputeWon => Ok(Self::DisputeWon), grpc_api_types::payments::WebhookEventType::WebhookDisputeLost => Ok(Self::DisputeLost),
{ "chunk": null, "crate": "domain_types", "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": 1650, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1675_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::SourceTransactionCreated) } grpc_api_types::payments::WebhookEventType::WebhookRefundFailure => { Ok(Self::RefundFailure) } grpc_api_types::payments::WebhookEventType::WebhookRefundSuccess => { Ok(Self::RefundSuccess) } grpc_api_types::payments::WebhookEventType::WebhookDisputeOpened => { Ok(Self::DisputeOpened) } grpc_api_types::payments::WebhookEventType::WebhookDisputeExpired => { Ok(Self::DisputeExpired) } grpc_api_types::payments::WebhookEventType::WebhookDisputeAccepted => {
{ "chunk": null, "crate": "domain_types", "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": 1675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1675_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::SourceTransactionCreated) } grpc_api_types::payments::WebhookEventType::WebhookRefundFailure => { Ok(Self::RefundFailure) } grpc_api_types::payments::WebhookEventType::WebhookRefundSuccess => { Ok(Self::RefundSuccess) } grpc_api_types::payments::WebhookEventType::WebhookDisputeOpened => { Ok(Self::DisputeOpened) } grpc_api_types::payments::WebhookEventType::WebhookDisputeExpired => { Ok(Self::DisputeExpired) } grpc_api_types::payments::WebhookEventType::WebhookDisputeAccepted => { Ok(Self::DisputeAccepted) } grpc_api_types::payments::WebhookEventType::WebhookDisputeCancelled => { Ok(Self::DisputeCancelled) } grpc_api_types::payments::WebhookEventType::WebhookDisputeChallenged => { Ok(Self::DisputeChallenged) } grpc_api_types::payments::WebhookEventType::WebhookDisputeWon => Ok(Self::DisputeWon), grpc_api_types::payments::WebhookEventType::WebhookDisputeLost => Ok(Self::DisputeLost), grpc_api_types::payments::WebhookEventType::MandateActive => Ok(Self::MandateActive), grpc_api_types::payments::WebhookEventType::MandateRevoked => Ok(Self::MandateRevoked), grpc_api_types::payments::WebhookEventType::EndpointVerification => { Ok(Self::EndpointVerification) }
{ "chunk": null, "crate": "domain_types", "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": 1675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1675_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::SourceTransactionCreated) } grpc_api_types::payments::WebhookEventType::WebhookRefundFailure => { Ok(Self::RefundFailure) } grpc_api_types::payments::WebhookEventType::WebhookRefundSuccess => { Ok(Self::RefundSuccess) } grpc_api_types::payments::WebhookEventType::WebhookDisputeOpened => { Ok(Self::DisputeOpened) } grpc_api_types::payments::WebhookEventType::WebhookDisputeExpired => { Ok(Self::DisputeExpired) } grpc_api_types::payments::WebhookEventType::WebhookDisputeAccepted => { Ok(Self::DisputeAccepted) } grpc_api_types::payments::WebhookEventType::WebhookDisputeCancelled => { Ok(Self::DisputeCancelled) } grpc_api_types::payments::WebhookEventType::WebhookDisputeChallenged => { Ok(Self::DisputeChallenged) } grpc_api_types::payments::WebhookEventType::WebhookDisputeWon => Ok(Self::DisputeWon), grpc_api_types::payments::WebhookEventType::WebhookDisputeLost => Ok(Self::DisputeLost), grpc_api_types::payments::WebhookEventType::MandateActive => Ok(Self::MandateActive), grpc_api_types::payments::WebhookEventType::MandateRevoked => Ok(Self::MandateRevoked), grpc_api_types::payments::WebhookEventType::EndpointVerification => { Ok(Self::EndpointVerification) } grpc_api_types::payments::WebhookEventType::ExternalAuthenticationAres => { Ok(Self::ExternalAuthenticationAres) } grpc_api_types::payments::WebhookEventType::FrmApproved => Ok(Self::FrmApproved), grpc_api_types::payments::WebhookEventType::FrmRejected => Ok(Self::FrmRejected), grpc_api_types::payments::WebhookEventType::PayoutSuccess => Ok(Self::PayoutSuccess), grpc_api_types::payments::WebhookEventType::PayoutFailure => Ok(Self::PayoutFailure), grpc_api_types::payments::WebhookEventType::PayoutProcessing => { Ok(Self::PayoutProcessing) } grpc_api_types::payments::WebhookEventType::PayoutCancelled => { Ok(Self::PayoutCancelled) } grpc_api_types::payments::WebhookEventType::PayoutCreated => Ok(Self::PayoutCreated), grpc_api_types::payments::WebhookEventType::PayoutExpired => Ok(Self::PayoutExpired), grpc_api_types::payments::WebhookEventType::PayoutReversed => Ok(Self::PayoutReversed), grpc_api_types::payments::WebhookEventType::RecoveryPaymentFailure => { Ok(Self::RecoveryPaymentFailure) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentSuccess => {
{ "chunk": null, "crate": "domain_types", "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": 1675, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1700_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::MandateActive => Ok(Self::MandateActive), grpc_api_types::payments::WebhookEventType::MandateRevoked => Ok(Self::MandateRevoked), grpc_api_types::payments::WebhookEventType::EndpointVerification => { Ok(Self::EndpointVerification) } grpc_api_types::payments::WebhookEventType::ExternalAuthenticationAres => { Ok(Self::ExternalAuthenticationAres) } grpc_api_types::payments::WebhookEventType::FrmApproved => Ok(Self::FrmApproved), grpc_api_types::payments::WebhookEventType::FrmRejected => Ok(Self::FrmRejected), grpc_api_types::payments::WebhookEventType::PayoutSuccess => Ok(Self::PayoutSuccess), grpc_api_types::payments::WebhookEventType::PayoutFailure => Ok(Self::PayoutFailure), grpc_api_types::payments::WebhookEventType::PayoutProcessing => { Ok(Self::PayoutProcessing) }
{ "chunk": null, "crate": "domain_types", "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": 1700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1700_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::MandateActive => Ok(Self::MandateActive), grpc_api_types::payments::WebhookEventType::MandateRevoked => Ok(Self::MandateRevoked), grpc_api_types::payments::WebhookEventType::EndpointVerification => { Ok(Self::EndpointVerification) } grpc_api_types::payments::WebhookEventType::ExternalAuthenticationAres => { Ok(Self::ExternalAuthenticationAres) } grpc_api_types::payments::WebhookEventType::FrmApproved => Ok(Self::FrmApproved), grpc_api_types::payments::WebhookEventType::FrmRejected => Ok(Self::FrmRejected), grpc_api_types::payments::WebhookEventType::PayoutSuccess => Ok(Self::PayoutSuccess), grpc_api_types::payments::WebhookEventType::PayoutFailure => Ok(Self::PayoutFailure), grpc_api_types::payments::WebhookEventType::PayoutProcessing => { Ok(Self::PayoutProcessing) } grpc_api_types::payments::WebhookEventType::PayoutCancelled => { Ok(Self::PayoutCancelled) } grpc_api_types::payments::WebhookEventType::PayoutCreated => Ok(Self::PayoutCreated), grpc_api_types::payments::WebhookEventType::PayoutExpired => Ok(Self::PayoutExpired), grpc_api_types::payments::WebhookEventType::PayoutReversed => Ok(Self::PayoutReversed), grpc_api_types::payments::WebhookEventType::RecoveryPaymentFailure => { Ok(Self::RecoveryPaymentFailure) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentSuccess => { Ok(Self::RecoveryPaymentSuccess) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentPending => { Ok(Self::RecoveryPaymentPending) }
{ "chunk": null, "crate": "domain_types", "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": 1700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1700_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs grpc_api_types::payments::WebhookEventType::MandateActive => Ok(Self::MandateActive), grpc_api_types::payments::WebhookEventType::MandateRevoked => Ok(Self::MandateRevoked), grpc_api_types::payments::WebhookEventType::EndpointVerification => { Ok(Self::EndpointVerification) } grpc_api_types::payments::WebhookEventType::ExternalAuthenticationAres => { Ok(Self::ExternalAuthenticationAres) } grpc_api_types::payments::WebhookEventType::FrmApproved => Ok(Self::FrmApproved), grpc_api_types::payments::WebhookEventType::FrmRejected => Ok(Self::FrmRejected), grpc_api_types::payments::WebhookEventType::PayoutSuccess => Ok(Self::PayoutSuccess), grpc_api_types::payments::WebhookEventType::PayoutFailure => Ok(Self::PayoutFailure), grpc_api_types::payments::WebhookEventType::PayoutProcessing => { Ok(Self::PayoutProcessing) } grpc_api_types::payments::WebhookEventType::PayoutCancelled => { Ok(Self::PayoutCancelled) } grpc_api_types::payments::WebhookEventType::PayoutCreated => Ok(Self::PayoutCreated), grpc_api_types::payments::WebhookEventType::PayoutExpired => Ok(Self::PayoutExpired), grpc_api_types::payments::WebhookEventType::PayoutReversed => Ok(Self::PayoutReversed), grpc_api_types::payments::WebhookEventType::RecoveryPaymentFailure => { Ok(Self::RecoveryPaymentFailure) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentSuccess => { Ok(Self::RecoveryPaymentSuccess) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentPending => { Ok(Self::RecoveryPaymentPending) } grpc_api_types::payments::WebhookEventType::RecoveryInvoiceCancel => { Ok(Self::RecoveryInvoiceCancel) } grpc_api_types::payments::WebhookEventType::IncomingWebhookEventUnspecified => { Ok(Self::IncomingWebhookEventUnspecified) } } } } impl ForeignTryFrom<EventType> for grpc_api_types::payments::WebhookEventType { type Error = ApplicationErrorResponse; fn foreign_try_from(value: EventType) -> Result<Self, error_stack::Report<Self::Error>> { match value { EventType::PaymentIntentFailure => Ok(Self::PaymentIntentFailure), EventType::PaymentIntentSuccess => Ok(Self::PaymentIntentSuccess), EventType::PaymentIntentProcessing => Ok(Self::PaymentIntentProcessing), EventType::PaymentIntentPartiallyFunded => Ok(Self::PaymentIntentPartiallyFunded), EventType::PaymentIntentCancelled => Ok(Self::PaymentIntentCancelled),
{ "chunk": null, "crate": "domain_types", "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": 1700, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1725_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::RecoveryPaymentSuccess) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentPending => { Ok(Self::RecoveryPaymentPending) } grpc_api_types::payments::WebhookEventType::RecoveryInvoiceCancel => { Ok(Self::RecoveryInvoiceCancel) } grpc_api_types::payments::WebhookEventType::IncomingWebhookEventUnspecified => { Ok(Self::IncomingWebhookEventUnspecified) } } } }
{ "chunk": null, "crate": "domain_types", "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": 1725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1725_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::RecoveryPaymentSuccess) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentPending => { Ok(Self::RecoveryPaymentPending) } grpc_api_types::payments::WebhookEventType::RecoveryInvoiceCancel => { Ok(Self::RecoveryInvoiceCancel) } grpc_api_types::payments::WebhookEventType::IncomingWebhookEventUnspecified => { Ok(Self::IncomingWebhookEventUnspecified) } } } } impl ForeignTryFrom<EventType> for grpc_api_types::payments::WebhookEventType { type Error = ApplicationErrorResponse; fn foreign_try_from(value: EventType) -> Result<Self, error_stack::Report<Self::Error>> { match value { EventType::PaymentIntentFailure => Ok(Self::PaymentIntentFailure), EventType::PaymentIntentSuccess => Ok(Self::PaymentIntentSuccess), EventType::PaymentIntentProcessing => Ok(Self::PaymentIntentProcessing), EventType::PaymentIntentPartiallyFunded => Ok(Self::PaymentIntentPartiallyFunded), EventType::PaymentIntentCancelled => Ok(Self::PaymentIntentCancelled), EventType::PaymentIntentCancelFailure => Ok(Self::PaymentIntentCancelFailure), EventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } EventType::PaymentIntentAuthorizationFailure => {
{ "chunk": null, "crate": "domain_types", "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": 1725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1725_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Ok(Self::RecoveryPaymentSuccess) } grpc_api_types::payments::WebhookEventType::RecoveryPaymentPending => { Ok(Self::RecoveryPaymentPending) } grpc_api_types::payments::WebhookEventType::RecoveryInvoiceCancel => { Ok(Self::RecoveryInvoiceCancel) } grpc_api_types::payments::WebhookEventType::IncomingWebhookEventUnspecified => { Ok(Self::IncomingWebhookEventUnspecified) } } } } impl ForeignTryFrom<EventType> for grpc_api_types::payments::WebhookEventType { type Error = ApplicationErrorResponse; fn foreign_try_from(value: EventType) -> Result<Self, error_stack::Report<Self::Error>> { match value { EventType::PaymentIntentFailure => Ok(Self::PaymentIntentFailure), EventType::PaymentIntentSuccess => Ok(Self::PaymentIntentSuccess), EventType::PaymentIntentProcessing => Ok(Self::PaymentIntentProcessing), EventType::PaymentIntentPartiallyFunded => Ok(Self::PaymentIntentPartiallyFunded), EventType::PaymentIntentCancelled => Ok(Self::PaymentIntentCancelled), EventType::PaymentIntentCancelFailure => Ok(Self::PaymentIntentCancelFailure), EventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } EventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } EventType::PaymentIntentCaptureSuccess => Ok(Self::PaymentIntentCaptureSuccess), EventType::PaymentIntentCaptureFailure => Ok(Self::PaymentIntentCaptureFailure), EventType::PaymentIntentExpired => Ok(Self::PaymentIntentExpired), EventType::PaymentActionRequired => Ok(Self::PaymentActionRequired), EventType::SourceChargeable => Ok(Self::SourceChargeable), EventType::SourceTransactionCreated => Ok(Self::SourceTransactionCreated), EventType::RefundFailure => Ok(Self::WebhookRefundFailure), EventType::RefundSuccess => Ok(Self::WebhookRefundSuccess), EventType::DisputeOpened => Ok(Self::WebhookDisputeOpened), EventType::DisputeExpired => Ok(Self::WebhookDisputeExpired), EventType::DisputeAccepted => Ok(Self::WebhookDisputeAccepted), EventType::DisputeCancelled => Ok(Self::WebhookDisputeCancelled), EventType::DisputeChallenged => Ok(Self::WebhookDisputeChallenged), EventType::DisputeWon => Ok(Self::WebhookDisputeWon), EventType::DisputeLost => Ok(Self::WebhookDisputeLost), EventType::MandateActive => Ok(Self::MandateActive), EventType::MandateRevoked => Ok(Self::MandateRevoked), EventType::EndpointVerification => Ok(Self::EndpointVerification),
{ "chunk": null, "crate": "domain_types", "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": 1725, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1750_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::PaymentIntentCancelFailure => Ok(Self::PaymentIntentCancelFailure), EventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } EventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } EventType::PaymentIntentCaptureSuccess => Ok(Self::PaymentIntentCaptureSuccess), EventType::PaymentIntentCaptureFailure => Ok(Self::PaymentIntentCaptureFailure), EventType::PaymentIntentExpired => Ok(Self::PaymentIntentExpired), EventType::PaymentActionRequired => Ok(Self::PaymentActionRequired), EventType::SourceChargeable => Ok(Self::SourceChargeable), EventType::SourceTransactionCreated => Ok(Self::SourceTransactionCreated), EventType::RefundFailure => Ok(Self::WebhookRefundFailure), EventType::RefundSuccess => Ok(Self::WebhookRefundSuccess),
{ "chunk": null, "crate": "domain_types", "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": 1750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1750_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::PaymentIntentCancelFailure => Ok(Self::PaymentIntentCancelFailure), EventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } EventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } EventType::PaymentIntentCaptureSuccess => Ok(Self::PaymentIntentCaptureSuccess), EventType::PaymentIntentCaptureFailure => Ok(Self::PaymentIntentCaptureFailure), EventType::PaymentIntentExpired => Ok(Self::PaymentIntentExpired), EventType::PaymentActionRequired => Ok(Self::PaymentActionRequired), EventType::SourceChargeable => Ok(Self::SourceChargeable), EventType::SourceTransactionCreated => Ok(Self::SourceTransactionCreated), EventType::RefundFailure => Ok(Self::WebhookRefundFailure), EventType::RefundSuccess => Ok(Self::WebhookRefundSuccess), EventType::DisputeOpened => Ok(Self::WebhookDisputeOpened), EventType::DisputeExpired => Ok(Self::WebhookDisputeExpired), EventType::DisputeAccepted => Ok(Self::WebhookDisputeAccepted), EventType::DisputeCancelled => Ok(Self::WebhookDisputeCancelled), EventType::DisputeChallenged => Ok(Self::WebhookDisputeChallenged), EventType::DisputeWon => Ok(Self::WebhookDisputeWon), EventType::DisputeLost => Ok(Self::WebhookDisputeLost), EventType::MandateActive => Ok(Self::MandateActive), EventType::MandateRevoked => Ok(Self::MandateRevoked), EventType::EndpointVerification => Ok(Self::EndpointVerification), EventType::ExternalAuthenticationAres => Ok(Self::ExternalAuthenticationAres), EventType::FrmApproved => Ok(Self::FrmApproved), EventType::FrmRejected => Ok(Self::FrmRejected), EventType::PayoutSuccess => Ok(Self::PayoutSuccess), EventType::PayoutFailure => Ok(Self::PayoutFailure),
{ "chunk": null, "crate": "domain_types", "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": 1750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1750_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::PaymentIntentCancelFailure => Ok(Self::PaymentIntentCancelFailure), EventType::PaymentIntentAuthorizationSuccess => { Ok(Self::PaymentIntentAuthorizationSuccess) } EventType::PaymentIntentAuthorizationFailure => { Ok(Self::PaymentIntentAuthorizationFailure) } EventType::PaymentIntentCaptureSuccess => Ok(Self::PaymentIntentCaptureSuccess), EventType::PaymentIntentCaptureFailure => Ok(Self::PaymentIntentCaptureFailure), EventType::PaymentIntentExpired => Ok(Self::PaymentIntentExpired), EventType::PaymentActionRequired => Ok(Self::PaymentActionRequired), EventType::SourceChargeable => Ok(Self::SourceChargeable), EventType::SourceTransactionCreated => Ok(Self::SourceTransactionCreated), EventType::RefundFailure => Ok(Self::WebhookRefundFailure), EventType::RefundSuccess => Ok(Self::WebhookRefundSuccess), EventType::DisputeOpened => Ok(Self::WebhookDisputeOpened), EventType::DisputeExpired => Ok(Self::WebhookDisputeExpired), EventType::DisputeAccepted => Ok(Self::WebhookDisputeAccepted), EventType::DisputeCancelled => Ok(Self::WebhookDisputeCancelled), EventType::DisputeChallenged => Ok(Self::WebhookDisputeChallenged), EventType::DisputeWon => Ok(Self::WebhookDisputeWon), EventType::DisputeLost => Ok(Self::WebhookDisputeLost), EventType::MandateActive => Ok(Self::MandateActive), EventType::MandateRevoked => Ok(Self::MandateRevoked), EventType::EndpointVerification => Ok(Self::EndpointVerification), EventType::ExternalAuthenticationAres => Ok(Self::ExternalAuthenticationAres), EventType::FrmApproved => Ok(Self::FrmApproved), EventType::FrmRejected => Ok(Self::FrmRejected), EventType::PayoutSuccess => Ok(Self::PayoutSuccess), EventType::PayoutFailure => Ok(Self::PayoutFailure), EventType::PayoutProcessing => Ok(Self::PayoutProcessing), EventType::PayoutCancelled => Ok(Self::PayoutCancelled), EventType::PayoutCreated => Ok(Self::PayoutCreated), EventType::PayoutExpired => Ok(Self::PayoutExpired), EventType::PayoutReversed => Ok(Self::PayoutReversed), EventType::RecoveryPaymentFailure => Ok(Self::RecoveryPaymentFailure), EventType::RecoveryPaymentSuccess => Ok(Self::RecoveryPaymentSuccess), EventType::RecoveryPaymentPending => Ok(Self::RecoveryPaymentPending), EventType::RecoveryInvoiceCancel => Ok(Self::RecoveryInvoiceCancel), EventType::IncomingWebhookEventUnspecified => Ok(Self::IncomingWebhookEventUnspecified), // Legacy broad categories (for backward compatibility) EventType::Payment => Ok(Self::PaymentIntentSuccess), // Map broad Payment to PaymentIntentSuccess EventType::Refund => Ok(Self::WebhookRefundSuccess), // Map broad Refund to WebhookRefundSuccess EventType::Dispute => Ok(Self::WebhookDisputeOpened), // Map broad Dispute to WebhookDisputeOpened } } } impl ForeignTryFrom<grpc_api_types::payments::HttpMethod> for HttpMethod {
{ "chunk": null, "crate": "domain_types", "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": 1750, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1775_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::ExternalAuthenticationAres => Ok(Self::ExternalAuthenticationAres), EventType::FrmApproved => Ok(Self::FrmApproved), EventType::FrmRejected => Ok(Self::FrmRejected), EventType::PayoutSuccess => Ok(Self::PayoutSuccess), EventType::PayoutFailure => Ok(Self::PayoutFailure), EventType::PayoutProcessing => Ok(Self::PayoutProcessing), EventType::PayoutCancelled => Ok(Self::PayoutCancelled), EventType::PayoutCreated => Ok(Self::PayoutCreated), EventType::PayoutExpired => Ok(Self::PayoutExpired), EventType::PayoutReversed => Ok(Self::PayoutReversed), EventType::RecoveryPaymentFailure => Ok(Self::RecoveryPaymentFailure), EventType::RecoveryPaymentSuccess => Ok(Self::RecoveryPaymentSuccess), EventType::RecoveryPaymentPending => Ok(Self::RecoveryPaymentPending), EventType::RecoveryInvoiceCancel => Ok(Self::RecoveryInvoiceCancel), EventType::IncomingWebhookEventUnspecified => Ok(Self::IncomingWebhookEventUnspecified),
{ "chunk": null, "crate": "domain_types", "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": 1775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1775_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::ExternalAuthenticationAres => Ok(Self::ExternalAuthenticationAres), EventType::FrmApproved => Ok(Self::FrmApproved), EventType::FrmRejected => Ok(Self::FrmRejected), EventType::PayoutSuccess => Ok(Self::PayoutSuccess), EventType::PayoutFailure => Ok(Self::PayoutFailure), EventType::PayoutProcessing => Ok(Self::PayoutProcessing), EventType::PayoutCancelled => Ok(Self::PayoutCancelled), EventType::PayoutCreated => Ok(Self::PayoutCreated), EventType::PayoutExpired => Ok(Self::PayoutExpired), EventType::PayoutReversed => Ok(Self::PayoutReversed), EventType::RecoveryPaymentFailure => Ok(Self::RecoveryPaymentFailure), EventType::RecoveryPaymentSuccess => Ok(Self::RecoveryPaymentSuccess), EventType::RecoveryPaymentPending => Ok(Self::RecoveryPaymentPending), EventType::RecoveryInvoiceCancel => Ok(Self::RecoveryInvoiceCancel), EventType::IncomingWebhookEventUnspecified => Ok(Self::IncomingWebhookEventUnspecified), // Legacy broad categories (for backward compatibility) EventType::Payment => Ok(Self::PaymentIntentSuccess), // Map broad Payment to PaymentIntentSuccess EventType::Refund => Ok(Self::WebhookRefundSuccess), // Map broad Refund to WebhookRefundSuccess EventType::Dispute => Ok(Self::WebhookDisputeOpened), // Map broad Dispute to WebhookDisputeOpened } } } impl ForeignTryFrom<grpc_api_types::payments::HttpMethod> for HttpMethod { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::HttpMethod, ) -> Result<Self, error_stack::Report<Self::Error>> {
{ "chunk": null, "crate": "domain_types", "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": 1775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1775_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs EventType::ExternalAuthenticationAres => Ok(Self::ExternalAuthenticationAres), EventType::FrmApproved => Ok(Self::FrmApproved), EventType::FrmRejected => Ok(Self::FrmRejected), EventType::PayoutSuccess => Ok(Self::PayoutSuccess), EventType::PayoutFailure => Ok(Self::PayoutFailure), EventType::PayoutProcessing => Ok(Self::PayoutProcessing), EventType::PayoutCancelled => Ok(Self::PayoutCancelled), EventType::PayoutCreated => Ok(Self::PayoutCreated), EventType::PayoutExpired => Ok(Self::PayoutExpired), EventType::PayoutReversed => Ok(Self::PayoutReversed), EventType::RecoveryPaymentFailure => Ok(Self::RecoveryPaymentFailure), EventType::RecoveryPaymentSuccess => Ok(Self::RecoveryPaymentSuccess), EventType::RecoveryPaymentPending => Ok(Self::RecoveryPaymentPending), EventType::RecoveryInvoiceCancel => Ok(Self::RecoveryInvoiceCancel), EventType::IncomingWebhookEventUnspecified => Ok(Self::IncomingWebhookEventUnspecified), // Legacy broad categories (for backward compatibility) EventType::Payment => Ok(Self::PaymentIntentSuccess), // Map broad Payment to PaymentIntentSuccess EventType::Refund => Ok(Self::WebhookRefundSuccess), // Map broad Refund to WebhookRefundSuccess EventType::Dispute => Ok(Self::WebhookDisputeOpened), // Map broad Dispute to WebhookDisputeOpened } } } impl ForeignTryFrom<grpc_api_types::payments::HttpMethod> for HttpMethod { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::HttpMethod, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::HttpMethod::Unspecified => Ok(Self::Get), // Default grpc_api_types::payments::HttpMethod::Get => Ok(Self::Get), grpc_api_types::payments::HttpMethod::Post => Ok(Self::Post), grpc_api_types::payments::HttpMethod::Put => Ok(Self::Put), grpc_api_types::payments::HttpMethod::Delete => Ok(Self::Delete), } } } impl ForeignTryFrom<grpc_api_types::payments::RequestDetails> for RequestDetails { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::RequestDetails, ) -> Result<Self, error_stack::Report<Self::Error>> { let method = HttpMethod::foreign_try_from(value.method())?; Ok(Self { method,
{ "chunk": null, "crate": "domain_types", "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": 1775, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1800_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::HttpMethod, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::HttpMethod::Unspecified => Ok(Self::Get), // Default grpc_api_types::payments::HttpMethod::Get => Ok(Self::Get), grpc_api_types::payments::HttpMethod::Post => Ok(Self::Post), grpc_api_types::payments::HttpMethod::Put => Ok(Self::Put), grpc_api_types::payments::HttpMethod::Delete => Ok(Self::Delete), } } }
{ "chunk": null, "crate": "domain_types", "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": 1800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1800_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::HttpMethod, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::HttpMethod::Unspecified => Ok(Self::Get), // Default grpc_api_types::payments::HttpMethod::Get => Ok(Self::Get), grpc_api_types::payments::HttpMethod::Post => Ok(Self::Post), grpc_api_types::payments::HttpMethod::Put => Ok(Self::Put), grpc_api_types::payments::HttpMethod::Delete => Ok(Self::Delete), } } } impl ForeignTryFrom<grpc_api_types::payments::RequestDetails> for RequestDetails { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::RequestDetails, ) -> Result<Self, error_stack::Report<Self::Error>> { let method = HttpMethod::foreign_try_from(value.method())?; Ok(Self { method, uri: value.uri, headers: value.headers, body: value.body, query_params: value.query_params, })
{ "chunk": null, "crate": "domain_types", "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": 1800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1800_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::HttpMethod, ) -> Result<Self, error_stack::Report<Self::Error>> { match value { grpc_api_types::payments::HttpMethod::Unspecified => Ok(Self::Get), // Default grpc_api_types::payments::HttpMethod::Get => Ok(Self::Get), grpc_api_types::payments::HttpMethod::Post => Ok(Self::Post), grpc_api_types::payments::HttpMethod::Put => Ok(Self::Put), grpc_api_types::payments::HttpMethod::Delete => Ok(Self::Delete), } } } impl ForeignTryFrom<grpc_api_types::payments::RequestDetails> for RequestDetails { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::RequestDetails, ) -> Result<Self, error_stack::Report<Self::Error>> { let method = HttpMethod::foreign_try_from(value.method())?; Ok(Self { method, uri: value.uri, headers: value.headers, body: value.body, query_params: value.query_params, }) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookSecrets> for ConnectorWebhookSecrets { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookSecrets, ) -> Result<Self, error_stack::Report<Self::Error>> { Ok(Self { secret: value.secret.into(), additional_secret: value.additional_secret.map(Secret::new), }) } } #[derive(Debug, Default, Clone)] pub struct RefundsData { pub refund_id: String, pub connector_transaction_id: String,
{ "chunk": null, "crate": "domain_types", "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": 1800, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1825_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs uri: value.uri, headers: value.headers, body: value.body, query_params: value.query_params, }) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookSecrets> for ConnectorWebhookSecrets { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookSecrets, ) -> Result<Self, error_stack::Report<Self::Error>> { Ok(Self {
{ "chunk": null, "crate": "domain_types", "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": 1825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1825_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs uri: value.uri, headers: value.headers, body: value.body, query_params: value.query_params, }) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookSecrets> for ConnectorWebhookSecrets { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookSecrets, ) -> Result<Self, error_stack::Report<Self::Error>> { Ok(Self { secret: value.secret.into(), additional_secret: value.additional_secret.map(Secret::new), }) } } #[derive(Debug, Default, Clone)] pub struct RefundsData { pub refund_id: String, pub connector_transaction_id: String, pub connector_refund_id: Option<String>, pub currency: Currency, pub payment_amount: i64, pub reason: Option<String>, pub webhook_url: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 1825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1825_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs uri: value.uri, headers: value.headers, body: value.body, query_params: value.query_params, }) } } impl ForeignTryFrom<grpc_api_types::payments::WebhookSecrets> for ConnectorWebhookSecrets { type Error = ApplicationErrorResponse; fn foreign_try_from( value: grpc_api_types::payments::WebhookSecrets, ) -> Result<Self, error_stack::Report<Self::Error>> { Ok(Self { secret: value.secret.into(), additional_secret: value.additional_secret.map(Secret::new), }) } } #[derive(Debug, Default, Clone)] pub struct RefundsData { pub refund_id: String, pub connector_transaction_id: String, pub connector_refund_id: Option<String>, pub currency: Currency, pub payment_amount: i64, pub reason: Option<String>, pub webhook_url: Option<String>, pub refund_amount: i64, pub connector_metadata: Option<serde_json::Value>, pub refund_connector_metadata: Option<common_utils::pii::SecretSerdeValue>, pub minor_payment_amount: MinorUnit, pub minor_refund_amount: MinorUnit, pub refund_status: common_enums::RefundStatus, pub merchant_account_id: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub integrity_object: Option<RefundIntegrityObject>, pub browser_info: Option<BrowserInformation>, /// Charges associated with the payment pub split_refunds: Option<SplitRefundsRequest>, } impl RefundsData { #[track_caller] pub fn get_connector_refund_id(&self) -> Result<String, Error> { self.connector_refund_id .clone() .get_required_value("connector_refund_id")
{ "chunk": null, "crate": "domain_types", "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": 1825, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1850_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub connector_refund_id: Option<String>, pub currency: Currency, pub payment_amount: i64, pub reason: Option<String>, pub webhook_url: Option<String>, pub refund_amount: i64, pub connector_metadata: Option<serde_json::Value>, pub refund_connector_metadata: Option<common_utils::pii::SecretSerdeValue>, pub minor_payment_amount: MinorUnit, pub minor_refund_amount: MinorUnit, pub refund_status: common_enums::RefundStatus, pub merchant_account_id: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub integrity_object: Option<RefundIntegrityObject>, pub browser_info: Option<BrowserInformation>,
{ "chunk": null, "crate": "domain_types", "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": 1850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1850_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub connector_refund_id: Option<String>, pub currency: Currency, pub payment_amount: i64, pub reason: Option<String>, pub webhook_url: Option<String>, pub refund_amount: i64, pub connector_metadata: Option<serde_json::Value>, pub refund_connector_metadata: Option<common_utils::pii::SecretSerdeValue>, pub minor_payment_amount: MinorUnit, pub minor_refund_amount: MinorUnit, pub refund_status: common_enums::RefundStatus, pub merchant_account_id: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub integrity_object: Option<RefundIntegrityObject>, pub browser_info: Option<BrowserInformation>, /// Charges associated with the payment pub split_refunds: Option<SplitRefundsRequest>, } impl RefundsData { #[track_caller] pub fn get_connector_refund_id(&self) -> Result<String, Error> { self.connector_refund_id .clone() .get_required_value("connector_refund_id") .change_context(ConnectorError::MissingConnectorTransactionID) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone()
{ "chunk": null, "crate": "domain_types", "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": 1850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1850_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub connector_refund_id: Option<String>, pub currency: Currency, pub payment_amount: i64, pub reason: Option<String>, pub webhook_url: Option<String>, pub refund_amount: i64, pub connector_metadata: Option<serde_json::Value>, pub refund_connector_metadata: Option<common_utils::pii::SecretSerdeValue>, pub minor_payment_amount: MinorUnit, pub minor_refund_amount: MinorUnit, pub refund_status: common_enums::RefundStatus, pub merchant_account_id: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub integrity_object: Option<RefundIntegrityObject>, pub browser_info: Option<BrowserInformation>, /// Charges associated with the payment pub split_refunds: Option<SplitRefundsRequest>, } impl RefundsData { #[track_caller] pub fn get_connector_refund_id(&self) -> Result<String, Error> { self.connector_refund_id .clone() .get_required_value("connector_refund_id") .change_context(ConnectorError::MissingConnectorTransactionID) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_connector_metadata(&self) -> Result<serde_json::Value, Error> { self.connector_metadata .clone() .ok_or_else(missing_field_err("connector_metadata")) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) }
{ "chunk": null, "crate": "domain_types", "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": 1850, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1875_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs .change_context(ConnectorError::MissingConnectorTransactionID) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_connector_metadata(&self) -> Result<serde_json::Value, Error> { self.connector_metadata .clone() .ok_or_else(missing_field_err("connector_metadata")) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone()
{ "chunk": null, "crate": "domain_types", "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": 1875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1875_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs .change_context(ConnectorError::MissingConnectorTransactionID) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_connector_metadata(&self) -> Result<serde_json::Value, Error> { self.connector_metadata .clone() .ok_or_else(missing_field_err("connector_metadata")) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } }
{ "chunk": null, "crate": "domain_types", "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": 1875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1875_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs .change_context(ConnectorError::MissingConnectorTransactionID) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_connector_metadata(&self) -> Result<serde_json::Value, Error> { self.connector_metadata .clone() .ok_or_else(missing_field_err("connector_metadata")) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone, Default)] pub struct MultipleCaptureRequestData { pub capture_sequence: i64, pub capture_reference: String, } #[derive(Debug, Default, Clone)] pub struct PaymentsCaptureData { pub amount_to_capture: i64, pub minor_amount_to_capture: MinorUnit, pub currency: Currency, pub connector_transaction_id: ResponseId, pub multiple_capture_data: Option<MultipleCaptureRequestData>, pub connector_metadata: Option<serde_json::Value>, pub integrity_object: Option<CaptureIntegrityObject>, pub browser_info: Option<BrowserInformation>, pub capture_method: Option<common_enums::CaptureMethod>, }
{ "chunk": null, "crate": "domain_types", "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": 1875, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1900_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone, Default)] pub struct MultipleCaptureRequestData { pub capture_sequence: i64, pub capture_reference: String, } #[derive(Debug, Default, Clone)] pub struct PaymentsCaptureData { pub amount_to_capture: i64,
{ "chunk": null, "crate": "domain_types", "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": 1900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1900_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone, Default)] pub struct MultipleCaptureRequestData { pub capture_sequence: i64, pub capture_reference: String, } #[derive(Debug, Default, Clone)] pub struct PaymentsCaptureData { pub amount_to_capture: i64, pub minor_amount_to_capture: MinorUnit, pub currency: Currency, pub connector_transaction_id: ResponseId, pub multiple_capture_data: Option<MultipleCaptureRequestData>, pub connector_metadata: Option<serde_json::Value>, pub integrity_object: Option<CaptureIntegrityObject>, pub browser_info: Option<BrowserInformation>, pub capture_method: Option<common_enums::CaptureMethod>, } impl PaymentsCaptureData { pub fn is_multiple_capture(&self) -> bool { self.multiple_capture_data.is_some() } pub fn get_connector_transaction_id(&self) -> CustomResult<String, ConnectorError> {
{ "chunk": null, "crate": "domain_types", "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": 1900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1900_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone, Default)] pub struct MultipleCaptureRequestData { pub capture_sequence: i64, pub capture_reference: String, } #[derive(Debug, Default, Clone)] pub struct PaymentsCaptureData { pub amount_to_capture: i64, pub minor_amount_to_capture: MinorUnit, pub currency: Currency, pub connector_transaction_id: ResponseId, pub multiple_capture_data: Option<MultipleCaptureRequestData>, pub connector_metadata: Option<serde_json::Value>, pub integrity_object: Option<CaptureIntegrityObject>, pub browser_info: Option<BrowserInformation>, pub capture_method: Option<common_enums::CaptureMethod>, } impl PaymentsCaptureData { pub fn is_multiple_capture(&self) -> bool { self.multiple_capture_data.is_some() } pub fn get_connector_transaction_id(&self) -> CustomResult<String, ConnectorError> { match self.connector_transaction_id.clone() { ResponseId::ConnectorTransactionId(txn_id) => Ok(txn_id), _ => Err(errors::ValidationError::IncorrectValueProvided { field_name: "connector_transaction_id", }) .attach_printable("Expected connector transaction ID not found") .change_context(ConnectorError::MissingConnectorTransactionID)?, } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) })
{ "chunk": null, "crate": "domain_types", "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": 1900, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1925_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs impl PaymentsCaptureData { pub fn is_multiple_capture(&self) -> bool { self.multiple_capture_data.is_some() } pub fn get_connector_transaction_id(&self) -> CustomResult<String, ConnectorError> { match self.connector_transaction_id.clone() { ResponseId::ConnectorTransactionId(txn_id) => Ok(txn_id), _ => Err(errors::ValidationError::IncorrectValueProvided { field_name: "connector_transaction_id", }) .attach_printable("Expected connector transaction ID not found") .change_context(ConnectorError::MissingConnectorTransactionID)?, } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> {
{ "chunk": null, "crate": "domain_types", "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": 1925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1925_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs impl PaymentsCaptureData { pub fn is_multiple_capture(&self) -> bool { self.multiple_capture_data.is_some() } pub fn get_connector_transaction_id(&self) -> CustomResult<String, ConnectorError> { match self.connector_transaction_id.clone() { ResponseId::ConnectorTransactionId(txn_id) => Ok(txn_id), _ => Err(errors::ValidationError::IncorrectValueProvided { field_name: "connector_transaction_id", }) .attach_printable("Expected connector transaction ID not found") .change_context(ConnectorError::MissingConnectorTransactionID)?, } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address"))
{ "chunk": null, "crate": "domain_types", "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": 1925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1925_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs impl PaymentsCaptureData { pub fn is_multiple_capture(&self) -> bool { self.multiple_capture_data.is_some() } pub fn get_connector_transaction_id(&self) -> CustomResult<String, ConnectorError> { match self.connector_transaction_id.clone() { ResponseId::ConnectorTransactionId(txn_id) => Ok(txn_id), _ => Err(errors::ValidationError::IncorrectValueProvided { field_name: "connector_transaction_id", }) .attach_printable("Expected connector transaction ID not found") .change_context(ConnectorError::MissingConnectorTransactionID)?, } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct SetupMandateRequestData<T: PaymentMethodDataTypes> { pub currency: Currency, pub payment_method_data: payment_method_data::PaymentMethodData<T>, pub amount: Option<i64>, pub confirm: bool, pub statement_descriptor_suffix: Option<String>, pub statement_descriptor: Option<String>, pub customer_acceptance: Option<CustomerAcceptance>, pub mandate_id: Option<MandateIds>, pub setup_future_usage: Option<common_enums::FutureUsage>, pub off_session: Option<bool>, pub setup_mandate_details: Option<MandateData>, pub router_return_url: Option<String>, pub webhook_url: Option<String>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>,
{ "chunk": null, "crate": "domain_types", "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": 1925, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1950_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct SetupMandateRequestData<T: PaymentMethodDataTypes> { pub currency: Currency, pub payment_method_data: payment_method_data::PaymentMethodData<T>, pub amount: Option<i64>, pub confirm: bool, pub statement_descriptor_suffix: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 1950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1950_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct SetupMandateRequestData<T: PaymentMethodDataTypes> { pub currency: Currency, pub payment_method_data: payment_method_data::PaymentMethodData<T>, pub amount: Option<i64>, pub confirm: bool, pub statement_descriptor_suffix: Option<String>, pub statement_descriptor: Option<String>, pub customer_acceptance: Option<CustomerAcceptance>, pub mandate_id: Option<MandateIds>, pub setup_future_usage: Option<common_enums::FutureUsage>, pub off_session: Option<bool>, pub setup_mandate_details: Option<MandateData>, pub router_return_url: Option<String>, pub webhook_url: Option<String>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>, pub customer_name: Option<String>, pub return_url: Option<String>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub request_incremental_authorization: bool, pub metadata: Option<serde_json::Value>,
{ "chunk": null, "crate": "domain_types", "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": 1950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1950_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct SetupMandateRequestData<T: PaymentMethodDataTypes> { pub currency: Currency, pub payment_method_data: payment_method_data::PaymentMethodData<T>, pub amount: Option<i64>, pub confirm: bool, pub statement_descriptor_suffix: Option<String>, pub statement_descriptor: Option<String>, pub customer_acceptance: Option<CustomerAcceptance>, pub mandate_id: Option<MandateIds>, pub setup_future_usage: Option<common_enums::FutureUsage>, pub off_session: Option<bool>, pub setup_mandate_details: Option<MandateData>, pub router_return_url: Option<String>, pub webhook_url: Option<String>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>, pub customer_name: Option<String>, pub return_url: Option<String>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub request_incremental_authorization: bool, pub metadata: Option<serde_json::Value>, pub complete_authorize_url: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub merchant_order_reference_id: Option<String>, pub minor_amount: Option<MinorUnit>, pub shipping_cost: Option<MinorUnit>, pub customer_id: Option<common_utils::id_type::CustomerId>, pub integrity_object: Option<SetupMandateIntegrityObject>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, } impl<T: PaymentMethodDataTypes> SetupMandateRequestData<T> { pub fn get_browser_info(&self) -> Result<BrowserInformation, Error> { self.browser_info .clone() .ok_or_else(missing_field_err("browser_info")) } pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn is_card(&self) -> bool {
{ "chunk": null, "crate": "domain_types", "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": 1950, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1975_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub customer_name: Option<String>, pub return_url: Option<String>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub request_incremental_authorization: bool, pub metadata: Option<serde_json::Value>, pub complete_authorize_url: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub merchant_order_reference_id: Option<String>, pub minor_amount: Option<MinorUnit>, pub shipping_cost: Option<MinorUnit>, pub customer_id: Option<common_utils::id_type::CustomerId>, pub integrity_object: Option<SetupMandateIntegrityObject>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, }
{ "chunk": null, "crate": "domain_types", "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": 1975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1975_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub customer_name: Option<String>, pub return_url: Option<String>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub request_incremental_authorization: bool, pub metadata: Option<serde_json::Value>, pub complete_authorize_url: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub merchant_order_reference_id: Option<String>, pub minor_amount: Option<MinorUnit>, pub shipping_cost: Option<MinorUnit>, pub customer_id: Option<common_utils::id_type::CustomerId>, pub integrity_object: Option<SetupMandateIntegrityObject>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, } impl<T: PaymentMethodDataTypes> SetupMandateRequestData<T> { pub fn get_browser_info(&self) -> Result<BrowserInformation, Error> { self.browser_info .clone() .ok_or_else(missing_field_err("browser_info")) } pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn is_card(&self) -> bool { matches!(self.payment_method_data, PaymentMethodData::Card(_)) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone()
{ "chunk": null, "crate": "domain_types", "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": 1975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_1975_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub customer_name: Option<String>, pub return_url: Option<String>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub request_incremental_authorization: bool, pub metadata: Option<serde_json::Value>, pub complete_authorize_url: Option<String>, pub capture_method: Option<common_enums::CaptureMethod>, pub merchant_order_reference_id: Option<String>, pub minor_amount: Option<MinorUnit>, pub shipping_cost: Option<MinorUnit>, pub customer_id: Option<common_utils::id_type::CustomerId>, pub integrity_object: Option<SetupMandateIntegrityObject>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, } impl<T: PaymentMethodDataTypes> SetupMandateRequestData<T> { pub fn get_browser_info(&self) -> Result<BrowserInformation, Error> { self.browser_info .clone() .ok_or_else(missing_field_err("browser_info")) } pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn is_card(&self) -> bool { matches!(self.payment_method_data, PaymentMethodData::Card(_)) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_router_return_url(&self) -> Result<String, Error> { self.router_return_url .clone() .ok_or_else(missing_field_err("return_url")) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) }
{ "chunk": null, "crate": "domain_types", "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": 1975, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2000_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs matches!(self.payment_method_data, PaymentMethodData::Card(_)) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_router_return_url(&self) -> Result<String, Error> { self.router_return_url .clone()
{ "chunk": null, "crate": "domain_types", "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": 2000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2000_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs matches!(self.payment_method_data, PaymentMethodData::Card(_)) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_router_return_url(&self) -> Result<String, Error> { self.router_return_url .clone() .ok_or_else(missing_field_err("return_url")) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } }
{ "chunk": null, "crate": "domain_types", "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": 2000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2000_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs matches!(self.payment_method_data, PaymentMethodData::Card(_)) } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_router_return_url(&self) -> Result<String, Error> { self.router_return_url .clone() .ok_or_else(missing_field_err("return_url")) } pub fn get_ip_address_as_optional(&self) -> Option<Secret<String, IpAddress>> { self.browser_info.clone().and_then(|browser_info| { browser_info .ip_address .map(|ip| Secret::new(ip.to_string())) }) } pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct RepeatPaymentData { pub mandate_reference: MandateReferenceId, pub amount: i64, pub minor_amount: MinorUnit, pub currency: Currency, pub merchant_order_reference_id: Option<String>, pub metadata: Option<SecretSerdeValue>, pub webhook_url: Option<String>, pub integrity_object: Option<RepeatPaymentIntegrityObject>, pub capture_method: Option<common_enums::CaptureMethod>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, pub off_session: Option<bool>, pub router_return_url: Option<String>, pub split_payments: Option<SplitPaymentsRequest>, pub recurring_mandate_payment_data: Option<router_data::RecurringMandatePaymentData>,
{ "chunk": null, "crate": "domain_types", "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": 2000, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2025_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct RepeatPaymentData { pub mandate_reference: MandateReferenceId, pub amount: i64, pub minor_amount: MinorUnit, pub currency: Currency, pub merchant_order_reference_id: Option<String>, pub metadata: Option<SecretSerdeValue>, pub webhook_url: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 2025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2025_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct RepeatPaymentData { pub mandate_reference: MandateReferenceId, pub amount: i64, pub minor_amount: MinorUnit, pub currency: Currency, pub merchant_order_reference_id: Option<String>, pub metadata: Option<SecretSerdeValue>, pub webhook_url: Option<String>, pub integrity_object: Option<RepeatPaymentIntegrityObject>, pub capture_method: Option<common_enums::CaptureMethod>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, pub off_session: Option<bool>, pub router_return_url: Option<String>, pub split_payments: Option<SplitPaymentsRequest>, pub recurring_mandate_payment_data: Option<router_data::RecurringMandatePaymentData>, } impl RepeatPaymentData { pub fn get_mandate_reference(&self) -> &MandateReferenceId { &self.mandate_reference
{ "chunk": null, "crate": "domain_types", "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": 2025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2025_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_ip_address(&self) -> Result<Secret<String, IpAddress>, Error> { self.get_ip_address_as_optional() .ok_or_else(missing_field_err("browser_info.ip_address")) } } #[derive(Debug, Clone)] pub struct RepeatPaymentData { pub mandate_reference: MandateReferenceId, pub amount: i64, pub minor_amount: MinorUnit, pub currency: Currency, pub merchant_order_reference_id: Option<String>, pub metadata: Option<SecretSerdeValue>, pub webhook_url: Option<String>, pub integrity_object: Option<RepeatPaymentIntegrityObject>, pub capture_method: Option<common_enums::CaptureMethod>, pub browser_info: Option<BrowserInformation>, pub email: Option<common_utils::pii::Email>, pub payment_method_type: Option<common_enums::PaymentMethodType>, pub merchant_account_metadata: Option<common_utils::pii::SecretSerdeValue>, pub off_session: Option<bool>, pub router_return_url: Option<String>, pub split_payments: Option<SplitPaymentsRequest>, pub recurring_mandate_payment_data: Option<router_data::RecurringMandatePaymentData>, } impl RepeatPaymentData { pub fn get_mandate_reference(&self) -> &MandateReferenceId { &self.mandate_reference } pub fn is_auto_capture(&self) -> Result<bool, Error> { match self.capture_method { Some(common_enums::CaptureMethod::Automatic) | None | Some(common_enums::CaptureMethod::SequentialAutomatic) => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(ConnectorError::CaptureMethodNotSupported.into()), } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) }
{ "chunk": null, "crate": "domain_types", "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": 2025, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2050_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } impl RepeatPaymentData { pub fn get_mandate_reference(&self) -> &MandateReferenceId { &self.mandate_reference } pub fn is_auto_capture(&self) -> Result<bool, Error> { match self.capture_method { Some(common_enums::CaptureMethod::Automatic) | None | Some(common_enums::CaptureMethod::SequentialAutomatic) => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(ConnectorError::CaptureMethodNotSupported.into()), } }
{ "chunk": null, "crate": "domain_types", "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": 2050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2050_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } impl RepeatPaymentData { pub fn get_mandate_reference(&self) -> &MandateReferenceId { &self.mandate_reference } pub fn is_auto_capture(&self) -> Result<bool, Error> { match self.capture_method { Some(common_enums::CaptureMethod::Automatic) | None | Some(common_enums::CaptureMethod::SequentialAutomatic) => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(ConnectorError::CaptureMethodNotSupported.into()), } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn get_recurring_mandate_payment_data( &self,
{ "chunk": null, "crate": "domain_types", "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": 2050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2050_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } impl RepeatPaymentData { pub fn get_mandate_reference(&self) -> &MandateReferenceId { &self.mandate_reference } pub fn is_auto_capture(&self) -> Result<bool, Error> { match self.capture_method { Some(common_enums::CaptureMethod::Automatic) | None | Some(common_enums::CaptureMethod::SequentialAutomatic) => Ok(true), Some(common_enums::CaptureMethod::Manual) => Ok(false), Some(_) => Err(ConnectorError::CaptureMethodNotSupported.into()), } } pub fn get_optional_language_from_browser_info(&self) -> Option<String> { self.browser_info .clone() .and_then(|browser_info| browser_info.language) } pub fn get_webhook_url(&self) -> Result<String, Error> { self.webhook_url .clone() .ok_or_else(missing_field_err("webhook_url")) } pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn get_recurring_mandate_payment_data( &self, ) -> Result<router_data::RecurringMandatePaymentData, Error> { self.recurring_mandate_payment_data .to_owned() .ok_or_else(missing_field_err("recurring_mandate_payment_data")) } } #[derive(Debug, Clone)] pub struct AcceptDisputeData { pub connector_dispute_id: String, pub integrity_object: Option<AcceptDisputeIntegrityObject>, } #[derive(Debug, Clone)] pub struct DisputeFlowData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub connectors: Connectors, pub defense_reason_code: Option<String>, pub connector_request_reference_id: String,
{ "chunk": null, "crate": "domain_types", "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": 2050, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2075_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn get_recurring_mandate_payment_data( &self, ) -> Result<router_data::RecurringMandatePaymentData, Error> { self.recurring_mandate_payment_data .to_owned() .ok_or_else(missing_field_err("recurring_mandate_payment_data")) } } #[derive(Debug, Clone)] pub struct AcceptDisputeData { pub connector_dispute_id: String,
{ "chunk": null, "crate": "domain_types", "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": 2075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2075_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn get_recurring_mandate_payment_data( &self, ) -> Result<router_data::RecurringMandatePaymentData, Error> { self.recurring_mandate_payment_data .to_owned() .ok_or_else(missing_field_err("recurring_mandate_payment_data")) } } #[derive(Debug, Clone)] pub struct AcceptDisputeData { pub connector_dispute_id: String, pub integrity_object: Option<AcceptDisputeIntegrityObject>, } #[derive(Debug, Clone)] pub struct DisputeFlowData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub connectors: Connectors, pub defense_reason_code: Option<String>, pub connector_request_reference_id: String, pub raw_connector_response: Option<Secret<String>>, pub raw_connector_request: Option<Secret<String>>, pub connector_response_headers: Option<http::HeaderMap>, }
{ "chunk": null, "crate": "domain_types", "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": 2075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2075_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub fn get_email(&self) -> Result<Email, Error> { self.email.clone().ok_or_else(missing_field_err("email")) } pub fn get_recurring_mandate_payment_data( &self, ) -> Result<router_data::RecurringMandatePaymentData, Error> { self.recurring_mandate_payment_data .to_owned() .ok_or_else(missing_field_err("recurring_mandate_payment_data")) } } #[derive(Debug, Clone)] pub struct AcceptDisputeData { pub connector_dispute_id: String, pub integrity_object: Option<AcceptDisputeIntegrityObject>, } #[derive(Debug, Clone)] pub struct DisputeFlowData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub connectors: Connectors, pub defense_reason_code: Option<String>, pub connector_request_reference_id: String, pub raw_connector_response: Option<Secret<String>>, pub raw_connector_request: Option<Secret<String>>, pub connector_response_headers: Option<http::HeaderMap>, } impl RawConnectorRequestResponse for DisputeFlowData { fn set_raw_connector_response(&mut self, response: Option<Secret<String>>) { self.raw_connector_response = response; } fn get_raw_connector_response(&self) -> Option<Secret<String>> { self.raw_connector_response.clone() } fn set_raw_connector_request(&mut self, request: Option<Secret<String>>) { self.raw_connector_request = request; } fn get_raw_connector_request(&self) -> Option<Secret<String>> { self.raw_connector_request.clone() } } impl ConnectorResponseHeaders for DisputeFlowData { fn set_connector_response_headers(&mut self, headers: Option<http::HeaderMap>) {
{ "chunk": null, "crate": "domain_types", "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": 2075, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2100_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub raw_connector_response: Option<Secret<String>>, pub raw_connector_request: Option<Secret<String>>, pub connector_response_headers: Option<http::HeaderMap>, } impl RawConnectorRequestResponse for DisputeFlowData { fn set_raw_connector_response(&mut self, response: Option<Secret<String>>) { self.raw_connector_response = response; } fn get_raw_connector_response(&self) -> Option<Secret<String>> { self.raw_connector_response.clone() } fn set_raw_connector_request(&mut self, request: Option<Secret<String>>) {
{ "chunk": null, "crate": "domain_types", "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": 2100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2100_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub raw_connector_response: Option<Secret<String>>, pub raw_connector_request: Option<Secret<String>>, pub connector_response_headers: Option<http::HeaderMap>, } impl RawConnectorRequestResponse for DisputeFlowData { fn set_raw_connector_response(&mut self, response: Option<Secret<String>>) { self.raw_connector_response = response; } fn get_raw_connector_response(&self) -> Option<Secret<String>> { self.raw_connector_response.clone() } fn set_raw_connector_request(&mut self, request: Option<Secret<String>>) { self.raw_connector_request = request; } fn get_raw_connector_request(&self) -> Option<Secret<String>> { self.raw_connector_request.clone() } } impl ConnectorResponseHeaders for DisputeFlowData { fn set_connector_response_headers(&mut self, headers: Option<http::HeaderMap>) { self.connector_response_headers = headers; } fn get_connector_response_headers(&self) -> Option<&http::HeaderMap> { self.connector_response_headers.as_ref()
{ "chunk": null, "crate": "domain_types", "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": 2100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2100_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub raw_connector_response: Option<Secret<String>>, pub raw_connector_request: Option<Secret<String>>, pub connector_response_headers: Option<http::HeaderMap>, } impl RawConnectorRequestResponse for DisputeFlowData { fn set_raw_connector_response(&mut self, response: Option<Secret<String>>) { self.raw_connector_response = response; } fn get_raw_connector_response(&self) -> Option<Secret<String>> { self.raw_connector_response.clone() } fn set_raw_connector_request(&mut self, request: Option<Secret<String>>) { self.raw_connector_request = request; } fn get_raw_connector_request(&self) -> Option<Secret<String>> { self.raw_connector_request.clone() } } impl ConnectorResponseHeaders for DisputeFlowData { fn set_connector_response_headers(&mut self, headers: Option<http::HeaderMap>) { self.connector_response_headers = headers; } fn get_connector_response_headers(&self) -> Option<&http::HeaderMap> { self.connector_response_headers.as_ref() } } #[derive(Debug, Clone)] pub struct DisputeResponseData { pub connector_dispute_id: String, pub dispute_status: DisputeStatus, pub connector_dispute_status: Option<String>, pub status_code: u16, } #[derive(Debug, Clone, Default)] pub struct SubmitEvidenceData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub integrity_object: Option<SubmitEvidenceIntegrityObject>, pub access_activity_log: Option<String>, pub billing_address: Option<String>, pub cancellation_policy: Option<Vec<u8>>,
{ "chunk": null, "crate": "domain_types", "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": 2100, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2125_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs self.connector_response_headers = headers; } fn get_connector_response_headers(&self) -> Option<&http::HeaderMap> { self.connector_response_headers.as_ref() } } #[derive(Debug, Clone)] pub struct DisputeResponseData { pub connector_dispute_id: String, pub dispute_status: DisputeStatus, pub connector_dispute_status: Option<String>, pub status_code: u16, }
{ "chunk": null, "crate": "domain_types", "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": 2125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2125_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs self.connector_response_headers = headers; } fn get_connector_response_headers(&self) -> Option<&http::HeaderMap> { self.connector_response_headers.as_ref() } } #[derive(Debug, Clone)] pub struct DisputeResponseData { pub connector_dispute_id: String, pub dispute_status: DisputeStatus, pub connector_dispute_status: Option<String>, pub status_code: u16, } #[derive(Debug, Clone, Default)] pub struct SubmitEvidenceData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub integrity_object: Option<SubmitEvidenceIntegrityObject>, pub access_activity_log: Option<String>, pub billing_address: Option<String>, pub cancellation_policy: Option<Vec<u8>>, pub cancellation_policy_file_type: Option<String>, pub cancellation_policy_provider_file_id: Option<String>, pub cancellation_policy_disclosure: Option<String>, pub cancellation_rebuttal: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 2125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2125_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs self.connector_response_headers = headers; } fn get_connector_response_headers(&self) -> Option<&http::HeaderMap> { self.connector_response_headers.as_ref() } } #[derive(Debug, Clone)] pub struct DisputeResponseData { pub connector_dispute_id: String, pub dispute_status: DisputeStatus, pub connector_dispute_status: Option<String>, pub status_code: u16, } #[derive(Debug, Clone, Default)] pub struct SubmitEvidenceData { pub dispute_id: Option<String>, pub connector_dispute_id: String, pub integrity_object: Option<SubmitEvidenceIntegrityObject>, pub access_activity_log: Option<String>, pub billing_address: Option<String>, pub cancellation_policy: Option<Vec<u8>>, pub cancellation_policy_file_type: Option<String>, pub cancellation_policy_provider_file_id: Option<String>, pub cancellation_policy_disclosure: Option<String>, pub cancellation_rebuttal: Option<String>, pub customer_communication: Option<Vec<u8>>, pub customer_communication_file_type: Option<String>, pub customer_communication_provider_file_id: Option<String>, pub customer_email_address: Option<String>, pub customer_name: Option<String>, pub customer_purchase_ip: Option<String>, pub customer_signature: Option<Vec<u8>>, pub customer_signature_file_type: Option<String>, pub customer_signature_provider_file_id: Option<String>, pub product_description: Option<String>, pub receipt: Option<Vec<u8>>, pub receipt_file_type: Option<String>, pub receipt_provider_file_id: Option<String>, pub refund_policy: Option<Vec<u8>>, pub refund_policy_file_type: Option<String>, pub refund_policy_provider_file_id: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 2125, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2150_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub cancellation_policy_file_type: Option<String>, pub cancellation_policy_provider_file_id: Option<String>, pub cancellation_policy_disclosure: Option<String>, pub cancellation_rebuttal: Option<String>, pub customer_communication: Option<Vec<u8>>, pub customer_communication_file_type: Option<String>, pub customer_communication_provider_file_id: Option<String>, pub customer_email_address: Option<String>, pub customer_name: Option<String>, pub customer_purchase_ip: Option<String>, pub customer_signature: Option<Vec<u8>>, pub customer_signature_file_type: Option<String>, pub customer_signature_provider_file_id: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 2150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2150_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub cancellation_policy_file_type: Option<String>, pub cancellation_policy_provider_file_id: Option<String>, pub cancellation_policy_disclosure: Option<String>, pub cancellation_rebuttal: Option<String>, pub customer_communication: Option<Vec<u8>>, pub customer_communication_file_type: Option<String>, pub customer_communication_provider_file_id: Option<String>, pub customer_email_address: Option<String>, pub customer_name: Option<String>, pub customer_purchase_ip: Option<String>, pub customer_signature: Option<Vec<u8>>, pub customer_signature_file_type: Option<String>, pub customer_signature_provider_file_id: Option<String>, pub product_description: Option<String>, pub receipt: Option<Vec<u8>>, pub receipt_file_type: Option<String>, pub receipt_provider_file_id: Option<String>, pub refund_policy: Option<Vec<u8>>, pub refund_policy_file_type: Option<String>, pub refund_policy_provider_file_id: Option<String>, pub refund_policy_disclosure: Option<String>, pub refund_refusal_explanation: Option<String>, pub service_date: Option<String>, pub service_documentation: Option<Vec<u8>>,
{ "chunk": null, "crate": "domain_types", "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": 2150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2150_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub cancellation_policy_file_type: Option<String>, pub cancellation_policy_provider_file_id: Option<String>, pub cancellation_policy_disclosure: Option<String>, pub cancellation_rebuttal: Option<String>, pub customer_communication: Option<Vec<u8>>, pub customer_communication_file_type: Option<String>, pub customer_communication_provider_file_id: Option<String>, pub customer_email_address: Option<String>, pub customer_name: Option<String>, pub customer_purchase_ip: Option<String>, pub customer_signature: Option<Vec<u8>>, pub customer_signature_file_type: Option<String>, pub customer_signature_provider_file_id: Option<String>, pub product_description: Option<String>, pub receipt: Option<Vec<u8>>, pub receipt_file_type: Option<String>, pub receipt_provider_file_id: Option<String>, pub refund_policy: Option<Vec<u8>>, pub refund_policy_file_type: Option<String>, pub refund_policy_provider_file_id: Option<String>, pub refund_policy_disclosure: Option<String>, pub refund_refusal_explanation: Option<String>, pub service_date: Option<String>, pub service_documentation: Option<Vec<u8>>, pub service_documentation_file_type: Option<String>, pub service_documentation_provider_file_id: Option<String>, pub shipping_address: Option<String>, pub shipping_carrier: Option<String>, pub shipping_date: Option<String>, pub shipping_documentation: Option<Vec<u8>>, pub shipping_documentation_file_type: Option<String>, pub shipping_documentation_provider_file_id: Option<String>, pub shipping_tracking_number: Option<String>, pub invoice_showing_distinct_transactions: Option<Vec<u8>>, pub invoice_showing_distinct_transactions_file_type: Option<String>, pub invoice_showing_distinct_transactions_provider_file_id: Option<String>, pub recurring_transaction_agreement: Option<Vec<u8>>, pub recurring_transaction_agreement_file_type: Option<String>, pub recurring_transaction_agreement_provider_file_id: Option<String>, pub uncategorized_file: Option<Vec<u8>>,
{ "chunk": null, "crate": "domain_types", "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": 2150, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2175_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub refund_policy_disclosure: Option<String>, pub refund_refusal_explanation: Option<String>, pub service_date: Option<String>, pub service_documentation: Option<Vec<u8>>, pub service_documentation_file_type: Option<String>, pub service_documentation_provider_file_id: Option<String>, pub shipping_address: Option<String>, pub shipping_carrier: Option<String>, pub shipping_date: Option<String>, pub shipping_documentation: Option<Vec<u8>>, pub shipping_documentation_file_type: Option<String>, pub shipping_documentation_provider_file_id: Option<String>, pub shipping_tracking_number: Option<String>,
{ "chunk": null, "crate": "domain_types", "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": 2175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2175_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub refund_policy_disclosure: Option<String>, pub refund_refusal_explanation: Option<String>, pub service_date: Option<String>, pub service_documentation: Option<Vec<u8>>, pub service_documentation_file_type: Option<String>, pub service_documentation_provider_file_id: Option<String>, pub shipping_address: Option<String>, pub shipping_carrier: Option<String>, pub shipping_date: Option<String>, pub shipping_documentation: Option<Vec<u8>>, pub shipping_documentation_file_type: Option<String>, pub shipping_documentation_provider_file_id: Option<String>, pub shipping_tracking_number: Option<String>, pub invoice_showing_distinct_transactions: Option<Vec<u8>>, pub invoice_showing_distinct_transactions_file_type: Option<String>, pub invoice_showing_distinct_transactions_provider_file_id: Option<String>, pub recurring_transaction_agreement: Option<Vec<u8>>, pub recurring_transaction_agreement_file_type: Option<String>, pub recurring_transaction_agreement_provider_file_id: Option<String>, pub uncategorized_file: Option<Vec<u8>>, pub uncategorized_file_type: Option<String>, pub uncategorized_file_provider_file_id: Option<String>, pub uncategorized_text: Option<String>, }
{ "chunk": null, "crate": "domain_types", "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": 2175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2175_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub refund_policy_disclosure: Option<String>, pub refund_refusal_explanation: Option<String>, pub service_date: Option<String>, pub service_documentation: Option<Vec<u8>>, pub service_documentation_file_type: Option<String>, pub service_documentation_provider_file_id: Option<String>, pub shipping_address: Option<String>, pub shipping_carrier: Option<String>, pub shipping_date: Option<String>, pub shipping_documentation: Option<Vec<u8>>, pub shipping_documentation_file_type: Option<String>, pub shipping_documentation_provider_file_id: Option<String>, pub shipping_tracking_number: Option<String>, pub invoice_showing_distinct_transactions: Option<Vec<u8>>, pub invoice_showing_distinct_transactions_file_type: Option<String>, pub invoice_showing_distinct_transactions_provider_file_id: Option<String>, pub recurring_transaction_agreement: Option<Vec<u8>>, pub recurring_transaction_agreement_file_type: Option<String>, pub recurring_transaction_agreement_provider_file_id: Option<String>, pub uncategorized_file: Option<Vec<u8>>, pub uncategorized_file_type: Option<String>, pub uncategorized_file_provider_file_id: Option<String>, pub uncategorized_text: Option<String>, } /// The trait that provides specifications about the connector pub trait ConnectorSpecifications { /// Details related to payment method supported by the connector fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } /// Supported webhooks flows fn get_supported_webhook_flows(&self) -> Option<&'static [EventClass]> { None } /// About the connector fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { None } } #[macro_export] macro_rules! capture_method_not_supported {
{ "chunk": null, "crate": "domain_types", "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": 2175, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2200_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub uncategorized_file_type: Option<String>, pub uncategorized_file_provider_file_id: Option<String>, pub uncategorized_text: Option<String>, } /// The trait that provides specifications about the connector pub trait ConnectorSpecifications { /// Details related to payment method supported by the connector fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } /// Supported webhooks flows fn get_supported_webhook_flows(&self) -> Option<&'static [EventClass]> { None
{ "chunk": null, "crate": "domain_types", "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": 2200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2200_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub uncategorized_file_type: Option<String>, pub uncategorized_file_provider_file_id: Option<String>, pub uncategorized_text: Option<String>, } /// The trait that provides specifications about the connector pub trait ConnectorSpecifications { /// Details related to payment method supported by the connector fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } /// Supported webhooks flows fn get_supported_webhook_flows(&self) -> Option<&'static [EventClass]> { None } /// About the connector fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { None } } #[macro_export] macro_rules! capture_method_not_supported { ($connector:expr, $capture_method:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for selected payment method", $capture_method), connector: $connector, }
{ "chunk": null, "crate": "domain_types", "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": 2200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2200_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs pub uncategorized_file_type: Option<String>, pub uncategorized_file_provider_file_id: Option<String>, pub uncategorized_text: Option<String>, } /// The trait that provides specifications about the connector pub trait ConnectorSpecifications { /// Details related to payment method supported by the connector fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> { None } /// Supported webhooks flows fn get_supported_webhook_flows(&self) -> Option<&'static [EventClass]> { None } /// About the connector fn get_connector_about(&self) -> Option<&'static ConnectorInfo> { None } } #[macro_export] macro_rules! capture_method_not_supported { ($connector:expr, $capture_method:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for selected payment method", $capture_method), connector: $connector, } .into()) }; ($connector:expr, $capture_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for {}", $capture_method, $payment_method_type), connector: $connector, } .into()) }; } #[macro_export] macro_rules! payment_method_not_supported { ($connector:expr, $payment_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!( "Payment method {} with type {} is not supported", $payment_method, $payment_method_type ), connector: $connector,
{ "chunk": null, "crate": "domain_types", "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": 2200, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2225_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs ($connector:expr, $capture_method:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for selected payment method", $capture_method), connector: $connector, } .into()) }; ($connector:expr, $capture_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for {}", $capture_method, $payment_method_type), connector: $connector, } .into()) }; }
{ "chunk": null, "crate": "domain_types", "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": 2225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2225_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs ($connector:expr, $capture_method:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for selected payment method", $capture_method), connector: $connector, } .into()) }; ($connector:expr, $capture_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for {}", $capture_method, $payment_method_type), connector: $connector, } .into()) }; } #[macro_export] macro_rules! payment_method_not_supported { ($connector:expr, $payment_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!( "Payment method {} with type {} is not supported", $payment_method, $payment_method_type ), connector: $connector, } .into()) }; }
{ "chunk": null, "crate": "domain_types", "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": 2225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2225_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs ($connector:expr, $capture_method:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for selected payment method", $capture_method), connector: $connector, } .into()) }; ($connector:expr, $capture_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!("{} for {}", $capture_method, $payment_method_type), connector: $connector, } .into()) }; } #[macro_export] macro_rules! payment_method_not_supported { ($connector:expr, $payment_method:expr, $payment_method_type:expr) => { Err(errors::ConnectorError::NotSupported { message: format!( "Payment method {} with type {} is not supported", $payment_method, $payment_method_type ), connector: $connector, } .into()) }; } impl<T: PaymentMethodDataTypes> From<PaymentMethodData<T>> for PaymentMethodDataType { fn from(pm_data: PaymentMethodData<T>) -> Self { match pm_data { PaymentMethodData::Card(_) => Self::Card, PaymentMethodData::CardRedirect(card_redirect_data) => match card_redirect_data { payment_method_data::CardRedirectData::Knet {} => Self::Knet, payment_method_data::CardRedirectData::Benefit {} => Self::Benefit, payment_method_data::CardRedirectData::MomoAtm {} => Self::MomoAtm, payment_method_data::CardRedirectData::CardRedirect {} => Self::CardRedirect, }, PaymentMethodData::Wallet(wallet_data) => match wallet_data { payment_method_data::WalletData::BluecodeRedirect { .. } => Self::Bluecode, payment_method_data::WalletData::AliPayQr(_) => Self::AliPayQr, payment_method_data::WalletData::AliPayRedirect(_) => Self::AliPayRedirect, payment_method_data::WalletData::AliPayHkRedirect(_) => Self::AliPayHkRedirect, payment_method_data::WalletData::MomoRedirect(_) => Self::MomoRedirect, payment_method_data::WalletData::KakaoPayRedirect(_) => Self::KakaoPayRedirect, payment_method_data::WalletData::GoPayRedirect(_) => Self::GoPayRedirect, payment_method_data::WalletData::GcashRedirect(_) => Self::GcashRedirect, payment_method_data::WalletData::ApplePay(_) => Self::ApplePay,
{ "chunk": null, "crate": "domain_types", "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": 2225, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2250_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } .into()) }; } impl<T: PaymentMethodDataTypes> From<PaymentMethodData<T>> for PaymentMethodDataType { fn from(pm_data: PaymentMethodData<T>) -> Self { match pm_data { PaymentMethodData::Card(_) => Self::Card, PaymentMethodData::CardRedirect(card_redirect_data) => match card_redirect_data { payment_method_data::CardRedirectData::Knet {} => Self::Knet, payment_method_data::CardRedirectData::Benefit {} => Self::Benefit, payment_method_data::CardRedirectData::MomoAtm {} => Self::MomoAtm, payment_method_data::CardRedirectData::CardRedirect {} => Self::CardRedirect, },
{ "chunk": null, "crate": "domain_types", "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": 2250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2250_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } .into()) }; } impl<T: PaymentMethodDataTypes> From<PaymentMethodData<T>> for PaymentMethodDataType { fn from(pm_data: PaymentMethodData<T>) -> Self { match pm_data { PaymentMethodData::Card(_) => Self::Card, PaymentMethodData::CardRedirect(card_redirect_data) => match card_redirect_data { payment_method_data::CardRedirectData::Knet {} => Self::Knet, payment_method_data::CardRedirectData::Benefit {} => Self::Benefit, payment_method_data::CardRedirectData::MomoAtm {} => Self::MomoAtm, payment_method_data::CardRedirectData::CardRedirect {} => Self::CardRedirect, }, PaymentMethodData::Wallet(wallet_data) => match wallet_data { payment_method_data::WalletData::BluecodeRedirect { .. } => Self::Bluecode, payment_method_data::WalletData::AliPayQr(_) => Self::AliPayQr, payment_method_data::WalletData::AliPayRedirect(_) => Self::AliPayRedirect, payment_method_data::WalletData::AliPayHkRedirect(_) => Self::AliPayHkRedirect, payment_method_data::WalletData::MomoRedirect(_) => Self::MomoRedirect, payment_method_data::WalletData::KakaoPayRedirect(_) => Self::KakaoPayRedirect, payment_method_data::WalletData::GoPayRedirect(_) => Self::GoPayRedirect, payment_method_data::WalletData::GcashRedirect(_) => Self::GcashRedirect, payment_method_data::WalletData::ApplePay(_) => Self::ApplePay, payment_method_data::WalletData::ApplePayRedirect(_) => Self::ApplePayRedirect, payment_method_data::WalletData::ApplePayThirdPartySdk(_) => { Self::ApplePayThirdPartySdk } payment_method_data::WalletData::DanaRedirect {} => Self::DanaRedirect,
{ "chunk": null, "crate": "domain_types", "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": 2250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2250_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } .into()) }; } impl<T: PaymentMethodDataTypes> From<PaymentMethodData<T>> for PaymentMethodDataType { fn from(pm_data: PaymentMethodData<T>) -> Self { match pm_data { PaymentMethodData::Card(_) => Self::Card, PaymentMethodData::CardRedirect(card_redirect_data) => match card_redirect_data { payment_method_data::CardRedirectData::Knet {} => Self::Knet, payment_method_data::CardRedirectData::Benefit {} => Self::Benefit, payment_method_data::CardRedirectData::MomoAtm {} => Self::MomoAtm, payment_method_data::CardRedirectData::CardRedirect {} => Self::CardRedirect, }, PaymentMethodData::Wallet(wallet_data) => match wallet_data { payment_method_data::WalletData::BluecodeRedirect { .. } => Self::Bluecode, payment_method_data::WalletData::AliPayQr(_) => Self::AliPayQr, payment_method_data::WalletData::AliPayRedirect(_) => Self::AliPayRedirect, payment_method_data::WalletData::AliPayHkRedirect(_) => Self::AliPayHkRedirect, payment_method_data::WalletData::MomoRedirect(_) => Self::MomoRedirect, payment_method_data::WalletData::KakaoPayRedirect(_) => Self::KakaoPayRedirect, payment_method_data::WalletData::GoPayRedirect(_) => Self::GoPayRedirect, payment_method_data::WalletData::GcashRedirect(_) => Self::GcashRedirect, payment_method_data::WalletData::ApplePay(_) => Self::ApplePay, payment_method_data::WalletData::ApplePayRedirect(_) => Self::ApplePayRedirect, payment_method_data::WalletData::ApplePayThirdPartySdk(_) => { Self::ApplePayThirdPartySdk } payment_method_data::WalletData::DanaRedirect {} => Self::DanaRedirect, payment_method_data::WalletData::GooglePay(_) => Self::GooglePay, payment_method_data::WalletData::GooglePayRedirect(_) => Self::GooglePayRedirect, payment_method_data::WalletData::GooglePayThirdPartySdk(_) => { Self::GooglePayThirdPartySdk } payment_method_data::WalletData::MbWayRedirect(_) => Self::MbWayRedirect, payment_method_data::WalletData::MobilePayRedirect(_) => Self::MobilePayRedirect, payment_method_data::WalletData::PaypalRedirect(_) => Self::PaypalRedirect, payment_method_data::WalletData::PaypalSdk(_) => Self::PaypalSdk, payment_method_data::WalletData::SamsungPay(_) => Self::SamsungPay, payment_method_data::WalletData::TwintRedirect {} => Self::TwintRedirect, payment_method_data::WalletData::VippsRedirect {} => Self::VippsRedirect, payment_method_data::WalletData::TouchNGoRedirect(_) => Self::TouchNGoRedirect, payment_method_data::WalletData::WeChatPayRedirect(_) => Self::WeChatPayRedirect, payment_method_data::WalletData::WeChatPayQr(_) => Self::WeChatPayQr, payment_method_data::WalletData::CashappQr(_) => Self::CashappQr, payment_method_data::WalletData::SwishQr(_) => Self::SwishQr, payment_method_data::WalletData::Mifinity(_) => Self::Mifinity, payment_method_data::WalletData::AmazonPayRedirect(_) => Self::AmazonPayRedirect, payment_method_data::WalletData::Paze(_) => Self::Paze,
{ "chunk": null, "crate": "domain_types", "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": 2250, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2275_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::ApplePayRedirect(_) => Self::ApplePayRedirect, payment_method_data::WalletData::ApplePayThirdPartySdk(_) => { Self::ApplePayThirdPartySdk } payment_method_data::WalletData::DanaRedirect {} => Self::DanaRedirect, payment_method_data::WalletData::GooglePay(_) => Self::GooglePay, payment_method_data::WalletData::GooglePayRedirect(_) => Self::GooglePayRedirect, payment_method_data::WalletData::GooglePayThirdPartySdk(_) => { Self::GooglePayThirdPartySdk } payment_method_data::WalletData::MbWayRedirect(_) => Self::MbWayRedirect, payment_method_data::WalletData::MobilePayRedirect(_) => Self::MobilePayRedirect, payment_method_data::WalletData::PaypalRedirect(_) => Self::PaypalRedirect, payment_method_data::WalletData::PaypalSdk(_) => Self::PaypalSdk, payment_method_data::WalletData::SamsungPay(_) => Self::SamsungPay,
{ "chunk": null, "crate": "domain_types", "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": 2275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2275_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::ApplePayRedirect(_) => Self::ApplePayRedirect, payment_method_data::WalletData::ApplePayThirdPartySdk(_) => { Self::ApplePayThirdPartySdk } payment_method_data::WalletData::DanaRedirect {} => Self::DanaRedirect, payment_method_data::WalletData::GooglePay(_) => Self::GooglePay, payment_method_data::WalletData::GooglePayRedirect(_) => Self::GooglePayRedirect, payment_method_data::WalletData::GooglePayThirdPartySdk(_) => { Self::GooglePayThirdPartySdk } payment_method_data::WalletData::MbWayRedirect(_) => Self::MbWayRedirect, payment_method_data::WalletData::MobilePayRedirect(_) => Self::MobilePayRedirect, payment_method_data::WalletData::PaypalRedirect(_) => Self::PaypalRedirect, payment_method_data::WalletData::PaypalSdk(_) => Self::PaypalSdk, payment_method_data::WalletData::SamsungPay(_) => Self::SamsungPay, payment_method_data::WalletData::TwintRedirect {} => Self::TwintRedirect, payment_method_data::WalletData::VippsRedirect {} => Self::VippsRedirect, payment_method_data::WalletData::TouchNGoRedirect(_) => Self::TouchNGoRedirect, payment_method_data::WalletData::WeChatPayRedirect(_) => Self::WeChatPayRedirect, payment_method_data::WalletData::WeChatPayQr(_) => Self::WeChatPayQr, payment_method_data::WalletData::CashappQr(_) => Self::CashappQr, payment_method_data::WalletData::SwishQr(_) => Self::SwishQr, payment_method_data::WalletData::Mifinity(_) => Self::Mifinity, payment_method_data::WalletData::AmazonPayRedirect(_) => Self::AmazonPayRedirect, payment_method_data::WalletData::Paze(_) => Self::Paze, payment_method_data::WalletData::RevolutPay(_) => Self::RevolutPay, }, PaymentMethodData::PayLater(pay_later_data) => match pay_later_data { payment_method_data::PayLaterData::KlarnaRedirect { .. } => Self::KlarnaRedirect, payment_method_data::PayLaterData::KlarnaSdk { .. } => Self::KlarnaSdk,
{ "chunk": null, "crate": "domain_types", "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": 2275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2275_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::ApplePayRedirect(_) => Self::ApplePayRedirect, payment_method_data::WalletData::ApplePayThirdPartySdk(_) => { Self::ApplePayThirdPartySdk } payment_method_data::WalletData::DanaRedirect {} => Self::DanaRedirect, payment_method_data::WalletData::GooglePay(_) => Self::GooglePay, payment_method_data::WalletData::GooglePayRedirect(_) => Self::GooglePayRedirect, payment_method_data::WalletData::GooglePayThirdPartySdk(_) => { Self::GooglePayThirdPartySdk } payment_method_data::WalletData::MbWayRedirect(_) => Self::MbWayRedirect, payment_method_data::WalletData::MobilePayRedirect(_) => Self::MobilePayRedirect, payment_method_data::WalletData::PaypalRedirect(_) => Self::PaypalRedirect, payment_method_data::WalletData::PaypalSdk(_) => Self::PaypalSdk, payment_method_data::WalletData::SamsungPay(_) => Self::SamsungPay, payment_method_data::WalletData::TwintRedirect {} => Self::TwintRedirect, payment_method_data::WalletData::VippsRedirect {} => Self::VippsRedirect, payment_method_data::WalletData::TouchNGoRedirect(_) => Self::TouchNGoRedirect, payment_method_data::WalletData::WeChatPayRedirect(_) => Self::WeChatPayRedirect, payment_method_data::WalletData::WeChatPayQr(_) => Self::WeChatPayQr, payment_method_data::WalletData::CashappQr(_) => Self::CashappQr, payment_method_data::WalletData::SwishQr(_) => Self::SwishQr, payment_method_data::WalletData::Mifinity(_) => Self::Mifinity, payment_method_data::WalletData::AmazonPayRedirect(_) => Self::AmazonPayRedirect, payment_method_data::WalletData::Paze(_) => Self::Paze, payment_method_data::WalletData::RevolutPay(_) => Self::RevolutPay, }, PaymentMethodData::PayLater(pay_later_data) => match pay_later_data { payment_method_data::PayLaterData::KlarnaRedirect { .. } => Self::KlarnaRedirect, payment_method_data::PayLaterData::KlarnaSdk { .. } => Self::KlarnaSdk, payment_method_data::PayLaterData::AffirmRedirect {} => Self::AffirmRedirect, payment_method_data::PayLaterData::AfterpayClearpayRedirect { .. } => { Self::AfterpayClearpayRedirect } payment_method_data::PayLaterData::PayBrightRedirect {} => Self::PayBrightRedirect, payment_method_data::PayLaterData::WalleyRedirect {} => Self::WalleyRedirect, payment_method_data::PayLaterData::AlmaRedirect {} => Self::AlmaRedirect, payment_method_data::PayLaterData::AtomeRedirect {} => Self::AtomeRedirect, }, PaymentMethodData::BankRedirect(bank_redirect_data) => match bank_redirect_data { payment_method_data::BankRedirectData::BancontactCard { .. } => { Self::BancontactCard } payment_method_data::BankRedirectData::Bizum {} => Self::Bizum, payment_method_data::BankRedirectData::Blik { .. } => Self::Blik, payment_method_data::BankRedirectData::Eps { .. } => Self::Eps, payment_method_data::BankRedirectData::Giropay { .. } => Self::Giropay, payment_method_data::BankRedirectData::Ideal { .. } => Self::Ideal, payment_method_data::BankRedirectData::Interac { .. } => Self::Interac, payment_method_data::BankRedirectData::OnlineBankingCzechRepublic { .. } => {
{ "chunk": null, "crate": "domain_types", "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": 2275, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2300_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::RevolutPay(_) => Self::RevolutPay, }, PaymentMethodData::PayLater(pay_later_data) => match pay_later_data { payment_method_data::PayLaterData::KlarnaRedirect { .. } => Self::KlarnaRedirect, payment_method_data::PayLaterData::KlarnaSdk { .. } => Self::KlarnaSdk, payment_method_data::PayLaterData::AffirmRedirect {} => Self::AffirmRedirect, payment_method_data::PayLaterData::AfterpayClearpayRedirect { .. } => { Self::AfterpayClearpayRedirect } payment_method_data::PayLaterData::PayBrightRedirect {} => Self::PayBrightRedirect, payment_method_data::PayLaterData::WalleyRedirect {} => Self::WalleyRedirect, payment_method_data::PayLaterData::AlmaRedirect {} => Self::AlmaRedirect, payment_method_data::PayLaterData::AtomeRedirect {} => Self::AtomeRedirect, }, PaymentMethodData::BankRedirect(bank_redirect_data) => match bank_redirect_data {
{ "chunk": null, "crate": "domain_types", "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": 2300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2300_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::RevolutPay(_) => Self::RevolutPay, }, PaymentMethodData::PayLater(pay_later_data) => match pay_later_data { payment_method_data::PayLaterData::KlarnaRedirect { .. } => Self::KlarnaRedirect, payment_method_data::PayLaterData::KlarnaSdk { .. } => Self::KlarnaSdk, payment_method_data::PayLaterData::AffirmRedirect {} => Self::AffirmRedirect, payment_method_data::PayLaterData::AfterpayClearpayRedirect { .. } => { Self::AfterpayClearpayRedirect } payment_method_data::PayLaterData::PayBrightRedirect {} => Self::PayBrightRedirect, payment_method_data::PayLaterData::WalleyRedirect {} => Self::WalleyRedirect, payment_method_data::PayLaterData::AlmaRedirect {} => Self::AlmaRedirect, payment_method_data::PayLaterData::AtomeRedirect {} => Self::AtomeRedirect, }, PaymentMethodData::BankRedirect(bank_redirect_data) => match bank_redirect_data { payment_method_data::BankRedirectData::BancontactCard { .. } => { Self::BancontactCard } payment_method_data::BankRedirectData::Bizum {} => Self::Bizum, payment_method_data::BankRedirectData::Blik { .. } => Self::Blik, payment_method_data::BankRedirectData::Eps { .. } => Self::Eps, payment_method_data::BankRedirectData::Giropay { .. } => Self::Giropay, payment_method_data::BankRedirectData::Ideal { .. } => Self::Ideal, payment_method_data::BankRedirectData::Interac { .. } => Self::Interac, payment_method_data::BankRedirectData::OnlineBankingCzechRepublic { .. } => { Self::OnlineBankingCzechRepublic } payment_method_data::BankRedirectData::OnlineBankingFinland { .. } => { Self::OnlineBankingFinland }
{ "chunk": null, "crate": "domain_types", "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": 2300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2300_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs payment_method_data::WalletData::RevolutPay(_) => Self::RevolutPay, }, PaymentMethodData::PayLater(pay_later_data) => match pay_later_data { payment_method_data::PayLaterData::KlarnaRedirect { .. } => Self::KlarnaRedirect, payment_method_data::PayLaterData::KlarnaSdk { .. } => Self::KlarnaSdk, payment_method_data::PayLaterData::AffirmRedirect {} => Self::AffirmRedirect, payment_method_data::PayLaterData::AfterpayClearpayRedirect { .. } => { Self::AfterpayClearpayRedirect } payment_method_data::PayLaterData::PayBrightRedirect {} => Self::PayBrightRedirect, payment_method_data::PayLaterData::WalleyRedirect {} => Self::WalleyRedirect, payment_method_data::PayLaterData::AlmaRedirect {} => Self::AlmaRedirect, payment_method_data::PayLaterData::AtomeRedirect {} => Self::AtomeRedirect, }, PaymentMethodData::BankRedirect(bank_redirect_data) => match bank_redirect_data { payment_method_data::BankRedirectData::BancontactCard { .. } => { Self::BancontactCard } payment_method_data::BankRedirectData::Bizum {} => Self::Bizum, payment_method_data::BankRedirectData::Blik { .. } => Self::Blik, payment_method_data::BankRedirectData::Eps { .. } => Self::Eps, payment_method_data::BankRedirectData::Giropay { .. } => Self::Giropay, payment_method_data::BankRedirectData::Ideal { .. } => Self::Ideal, payment_method_data::BankRedirectData::Interac { .. } => Self::Interac, payment_method_data::BankRedirectData::OnlineBankingCzechRepublic { .. } => { Self::OnlineBankingCzechRepublic } payment_method_data::BankRedirectData::OnlineBankingFinland { .. } => { Self::OnlineBankingFinland } payment_method_data::BankRedirectData::OnlineBankingPoland { .. } => { Self::OnlineBankingPoland } payment_method_data::BankRedirectData::OnlineBankingSlovakia { .. } => { Self::OnlineBankingSlovakia } payment_method_data::BankRedirectData::OpenBankingUk { .. } => Self::OpenBankingUk, payment_method_data::BankRedirectData::Przelewy24 { .. } => Self::Przelewy24, payment_method_data::BankRedirectData::Sofort { .. } => Self::Sofort, payment_method_data::BankRedirectData::Trustly { .. } => Self::Trustly, payment_method_data::BankRedirectData::OnlineBankingFpx { .. } => { Self::OnlineBankingFpx } payment_method_data::BankRedirectData::OnlineBankingThailand { .. } => { Self::OnlineBankingThailand } payment_method_data::BankRedirectData::LocalBankRedirect {} => { Self::LocalBankRedirect } payment_method_data::BankRedirectData::Eft { .. } => Self::Eft,
{ "chunk": null, "crate": "domain_types", "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": 2300, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2325_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Self::OnlineBankingCzechRepublic } payment_method_data::BankRedirectData::OnlineBankingFinland { .. } => { Self::OnlineBankingFinland } payment_method_data::BankRedirectData::OnlineBankingPoland { .. } => { Self::OnlineBankingPoland } payment_method_data::BankRedirectData::OnlineBankingSlovakia { .. } => { Self::OnlineBankingSlovakia } payment_method_data::BankRedirectData::OpenBankingUk { .. } => Self::OpenBankingUk, payment_method_data::BankRedirectData::Przelewy24 { .. } => Self::Przelewy24, payment_method_data::BankRedirectData::Sofort { .. } => Self::Sofort, payment_method_data::BankRedirectData::Trustly { .. } => Self::Trustly,
{ "chunk": null, "crate": "domain_types", "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": 2325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2325_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Self::OnlineBankingCzechRepublic } payment_method_data::BankRedirectData::OnlineBankingFinland { .. } => { Self::OnlineBankingFinland } payment_method_data::BankRedirectData::OnlineBankingPoland { .. } => { Self::OnlineBankingPoland } payment_method_data::BankRedirectData::OnlineBankingSlovakia { .. } => { Self::OnlineBankingSlovakia } payment_method_data::BankRedirectData::OpenBankingUk { .. } => Self::OpenBankingUk, payment_method_data::BankRedirectData::Przelewy24 { .. } => Self::Przelewy24, payment_method_data::BankRedirectData::Sofort { .. } => Self::Sofort, payment_method_data::BankRedirectData::Trustly { .. } => Self::Trustly, payment_method_data::BankRedirectData::OnlineBankingFpx { .. } => { Self::OnlineBankingFpx } payment_method_data::BankRedirectData::OnlineBankingThailand { .. } => { Self::OnlineBankingThailand } payment_method_data::BankRedirectData::LocalBankRedirect {} => { Self::LocalBankRedirect } payment_method_data::BankRedirectData::Eft { .. } => Self::Eft, }, PaymentMethodData::BankDebit(bank_debit_data) => match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { .. } => Self::AchBankDebit, payment_method_data::BankDebitData::SepaBankDebit { .. } => Self::SepaBankDebit, payment_method_data::BankDebitData::BecsBankDebit { .. } => Self::BecsBankDebit,
{ "chunk": null, "crate": "domain_types", "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": 2325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2325_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs Self::OnlineBankingCzechRepublic } payment_method_data::BankRedirectData::OnlineBankingFinland { .. } => { Self::OnlineBankingFinland } payment_method_data::BankRedirectData::OnlineBankingPoland { .. } => { Self::OnlineBankingPoland } payment_method_data::BankRedirectData::OnlineBankingSlovakia { .. } => { Self::OnlineBankingSlovakia } payment_method_data::BankRedirectData::OpenBankingUk { .. } => Self::OpenBankingUk, payment_method_data::BankRedirectData::Przelewy24 { .. } => Self::Przelewy24, payment_method_data::BankRedirectData::Sofort { .. } => Self::Sofort, payment_method_data::BankRedirectData::Trustly { .. } => Self::Trustly, payment_method_data::BankRedirectData::OnlineBankingFpx { .. } => { Self::OnlineBankingFpx } payment_method_data::BankRedirectData::OnlineBankingThailand { .. } => { Self::OnlineBankingThailand } payment_method_data::BankRedirectData::LocalBankRedirect {} => { Self::LocalBankRedirect } payment_method_data::BankRedirectData::Eft { .. } => Self::Eft, }, PaymentMethodData::BankDebit(bank_debit_data) => match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { .. } => Self::AchBankDebit, payment_method_data::BankDebitData::SepaBankDebit { .. } => Self::SepaBankDebit, payment_method_data::BankDebitData::BecsBankDebit { .. } => Self::BecsBankDebit, payment_method_data::BankDebitData::BacsBankDebit { .. } => Self::BacsBankDebit, }, PaymentMethodData::BankTransfer(bank_transfer_data) => match *bank_transfer_data { payment_method_data::BankTransferData::AchBankTransfer { .. } => { Self::AchBankTransfer } payment_method_data::BankTransferData::SepaBankTransfer { .. } => { Self::SepaBankTransfer } payment_method_data::BankTransferData::BacsBankTransfer { .. } => { Self::BacsBankTransfer } payment_method_data::BankTransferData::MultibancoBankTransfer { .. } => { Self::MultibancoBankTransfer } payment_method_data::BankTransferData::PermataBankTransfer { .. } => { Self::PermataBankTransfer } payment_method_data::BankTransferData::BcaBankTransfer { .. } => { Self::BcaBankTransfer
{ "chunk": null, "crate": "domain_types", "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": 2325, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2350_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs }, PaymentMethodData::BankDebit(bank_debit_data) => match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { .. } => Self::AchBankDebit, payment_method_data::BankDebitData::SepaBankDebit { .. } => Self::SepaBankDebit, payment_method_data::BankDebitData::BecsBankDebit { .. } => Self::BecsBankDebit, payment_method_data::BankDebitData::BacsBankDebit { .. } => Self::BacsBankDebit, }, PaymentMethodData::BankTransfer(bank_transfer_data) => match *bank_transfer_data { payment_method_data::BankTransferData::AchBankTransfer { .. } => { Self::AchBankTransfer } payment_method_data::BankTransferData::SepaBankTransfer { .. } => { Self::SepaBankTransfer } payment_method_data::BankTransferData::BacsBankTransfer { .. } => {
{ "chunk": null, "crate": "domain_types", "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": 2350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2350_30
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs }, PaymentMethodData::BankDebit(bank_debit_data) => match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { .. } => Self::AchBankDebit, payment_method_data::BankDebitData::SepaBankDebit { .. } => Self::SepaBankDebit, payment_method_data::BankDebitData::BecsBankDebit { .. } => Self::BecsBankDebit, payment_method_data::BankDebitData::BacsBankDebit { .. } => Self::BacsBankDebit, }, PaymentMethodData::BankTransfer(bank_transfer_data) => match *bank_transfer_data { payment_method_data::BankTransferData::AchBankTransfer { .. } => { Self::AchBankTransfer } payment_method_data::BankTransferData::SepaBankTransfer { .. } => { Self::SepaBankTransfer } payment_method_data::BankTransferData::BacsBankTransfer { .. } => { Self::BacsBankTransfer } payment_method_data::BankTransferData::MultibancoBankTransfer { .. } => { Self::MultibancoBankTransfer } payment_method_data::BankTransferData::PermataBankTransfer { .. } => { Self::PermataBankTransfer } payment_method_data::BankTransferData::BcaBankTransfer { .. } => { Self::BcaBankTransfer } payment_method_data::BankTransferData::BniVaBankTransfer { .. } => { Self::BniVaBankTransfer } payment_method_data::BankTransferData::BriVaBankTransfer { .. } => {
{ "chunk": null, "crate": "domain_types", "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": 2350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2350_50
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs }, PaymentMethodData::BankDebit(bank_debit_data) => match bank_debit_data { payment_method_data::BankDebitData::AchBankDebit { .. } => Self::AchBankDebit, payment_method_data::BankDebitData::SepaBankDebit { .. } => Self::SepaBankDebit, payment_method_data::BankDebitData::BecsBankDebit { .. } => Self::BecsBankDebit, payment_method_data::BankDebitData::BacsBankDebit { .. } => Self::BacsBankDebit, }, PaymentMethodData::BankTransfer(bank_transfer_data) => match *bank_transfer_data { payment_method_data::BankTransferData::AchBankTransfer { .. } => { Self::AchBankTransfer } payment_method_data::BankTransferData::SepaBankTransfer { .. } => { Self::SepaBankTransfer } payment_method_data::BankTransferData::BacsBankTransfer { .. } => { Self::BacsBankTransfer } payment_method_data::BankTransferData::MultibancoBankTransfer { .. } => { Self::MultibancoBankTransfer } payment_method_data::BankTransferData::PermataBankTransfer { .. } => { Self::PermataBankTransfer } payment_method_data::BankTransferData::BcaBankTransfer { .. } => { Self::BcaBankTransfer } payment_method_data::BankTransferData::BniVaBankTransfer { .. } => { Self::BniVaBankTransfer } payment_method_data::BankTransferData::BriVaBankTransfer { .. } => { Self::BriVaBankTransfer } payment_method_data::BankTransferData::CimbVaBankTransfer { .. } => { Self::CimbVaBankTransfer } payment_method_data::BankTransferData::DanamonVaBankTransfer { .. } => { Self::DanamonVaBankTransfer } payment_method_data::BankTransferData::MandiriVaBankTransfer { .. } => { Self::MandiriVaBankTransfer } payment_method_data::BankTransferData::Pix { .. } => Self::Pix, payment_method_data::BankTransferData::Pse {} => Self::Pse, payment_method_data::BankTransferData::LocalBankTransfer { .. } => { Self::LocalBankTransfer } payment_method_data::BankTransferData::InstantBankTransfer { .. } => { Self::InstantBankTransfer } payment_method_data::BankTransferData::InstantBankTransferFinland { .. } => {
{ "chunk": null, "crate": "domain_types", "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": 2350, "struct_name": null, "total_crates": null, "trait_name": null }
connector-service_snippet_-6262692988738800615_2375_15
clm
snippet
// connector-service/backend/domain_types/src/connector_types.rs } payment_method_data::BankTransferData::BniVaBankTransfer { .. } => { Self::BniVaBankTransfer } payment_method_data::BankTransferData::BriVaBankTransfer { .. } => { Self::BriVaBankTransfer } payment_method_data::BankTransferData::CimbVaBankTransfer { .. } => { Self::CimbVaBankTransfer } payment_method_data::BankTransferData::DanamonVaBankTransfer { .. } => { Self::DanamonVaBankTransfer } payment_method_data::BankTransferData::MandiriVaBankTransfer { .. } => { Self::MandiriVaBankTransfer
{ "chunk": null, "crate": "domain_types", "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": 2375, "struct_name": null, "total_crates": null, "trait_name": null }