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
fix(connector): [DummyConnector] change dummy connector names (#1328)
Mani Chandra6645c4d12339
diff --git a/crates/api_models/src/enums.rs b/crates/api_models/src/enums.rsindex 380f4917d2..79acaf983c 100644--- a/crates/api_models/src/enums.rs+++ b/crates/api_models/src/enums.rs@@ -596,16 +596,16 @@ pub enum Connector {Cybersource,Iatapay,#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector1")]- #[strum(serialize = "dummyconnector1")]+ #[serde(rename = "phonypay")]+ #[strum(serialize = "phonypay")]DummyConnector1,#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector2")]- #[strum(serialize = "dummyconnector2")]+ #[serde(rename = "fauxpay")]+ #[strum(serialize = "fauxpay")]DummyConnector2,#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector3")]- #[strum(serialize = "dummyconnector3")]+ #[serde(rename = "pretendpay")]+ #[strum(serialize = "pretendpay")]DummyConnector3,Opennode,Bambora,@@ -669,16 +669,16 @@ impl Connector {#[strum(serialize_all = "snake_case")]pub enum RoutableConnectors {#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector1")]- #[strum(serialize = "dummyconnector1")]+ #[serde(rename = "phonypay")]+ #[strum(serialize = "phonypay")]DummyConnector1,#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector2")]- #[strum(serialize = "dummyconnector2")]+ #[serde(rename = "fauxpay")]+ #[strum(serialize = "fauxpay")]DummyConnector2,#[cfg(feature = "dummy_connector")]- #[serde(rename = "dummyconnector3")]- #[strum(serialize = "dummyconnector3")]+ #[serde(rename = "pretendpay")]+ #[strum(serialize = "pretendpay")]DummyConnector3,Aci,Adyen,diff --git a/crates/router/src/connector/dummyconnector.rs b/crates/router/src/connector/dummyconnector.rsindex 2d71219b49..5246f39a0c 100644--- a/crates/router/src/connector/dummyconnector.rs+++ b/crates/router/src/connector/dummyconnector.rs@@ -75,10 +75,10 @@ whereimpl<const T: u8> ConnectorCommon for DummyConnector<T> {fn id(&self) -> &'static str {match T {- 1 => "dummyconnector1",- 2 => "dummyconnector2",- 3 => "dummyconnector3",- _ => "dummyconnector",+ 1 => "phonypay",+ 2 => "fauxpay",+ 3 => "pretendpay",+ _ => "phonypay",}}