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(connector): [Payme] Rename types to follow naming conventions (#2096)
Sakil Mostak98d70054e25a
diff --git a/crates/router/src/connector/payme/transformers.rs b/crates/router/src/connector/payme/transformers.rsindex 0989dbd6a0..672cf81135 100644--- a/crates/router/src/connector/payme/transformers.rs+++ b/crates/router/src/connector/payme/transformers.rs@@ -102,24 +102,24 @@ pub struct GenerateSaleRequest {seller_payme_id: Secret<String>,sale_callback_url: String,sale_payment_method: SalePaymentMethod,- services: Option<ThreeDS>,+ services: Option<ThreeDs>,language: String,}#[derive(Debug, Serialize)]-pub struct ThreeDS {- name: ThreeDSType,- settings: ThreeDSSettings,+pub struct ThreeDs {+ name: ThreeDsType,+ settings: ThreeDsSettings,}#[derive(Debug, Serialize)]-pub enum ThreeDSType {+pub enum ThreeDsType {#[serde(rename = "3D Secure")]- ThreeDS,+ ThreeDs,}#[derive(Debug, Serialize)]-pub struct ThreeDSSettings {+pub struct ThreeDsSettings {active: bool,}@@ -939,12 +939,12 @@ impl<F, T>}}-fn get_services(item: &types::PaymentsPreProcessingRouterData) -> Option<ThreeDS> {+fn get_services(item: &types::PaymentsPreProcessingRouterData) -> Option<ThreeDs> {match item.auth_type {api_models::enums::AuthenticationType::ThreeDs => {- let settings = ThreeDSSettings { active: true };- Some(ThreeDS {- name: ThreeDSType::ThreeDS,+ let settings = ThreeDsSettings { active: true };+ Some(ThreeDs {+ name: ThreeDsType::ThreeDs,settings,})}