Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
refactor(router): remove default case handling in bambora connector (#4473)
James M1a27ba576427
diff --git a/crates/router/src/connector/bambora/transformers.rs b/crates/router/src/connector/bambora/transformers.rsindex 61ed8bd1ee..a4c377cf9f 100644--- a/crates/router/src/connector/bambora/transformers.rs+++ b/crates/router/src/connector/bambora/transformers.rs@@ -6,7 +6,7 @@ use serde::{Deserialize, Deserializer, Serialize};use crate::{connector::utils::{- AddressDetailsData, BrowserInformationData, CardData as OtherCardData,+ self, AddressDetailsData, BrowserInformationData, CardData as OtherCardData,PaymentsAuthorizeRequestData, PaymentsCompleteAuthorizeRequestData,PaymentsSyncRequestData, RouterData,},@@ -185,7 +185,10 @@ impl TryFrom<BamboraRouterData<&types::PaymentsAuthorizeRouterData>> for Bambora| domain::PaymentMethodData::Voucher(_)| domain::PaymentMethodData::GiftCard(_)| domain::PaymentMethodData::CardToken(_) => {- Err(errors::ConnectorError::NotImplemented("Payment methods".to_string()).into())+ Err(errors::ConnectorError::NotImplemented(+ utils::get_unimplemented_payment_method_error_message("bambora"),+ )+ .into())}}}