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): [CALIDA] Changed Connector Name From Bluecode to Calida (#9712)
Sayak Bhattacharya04a14e39c2ba
diff --git a/api-reference/v1/openapi_spec_v1.json b/api-reference/v1/openapi_spec_v1.jsonindex 2a80307a43..496b8cb8d7 100644--- a/api-reference/v1/openapi_spec_v1.json+++ b/api-reference/v1/openapi_spec_v1.json@@ -12119,7 +12119,7 @@"bitpay","bluesnap","blackhawknetwork",- "bluecode",+ "calida","boku","braintree","breadpay",@@ -30518,7 +30518,7 @@"blackhawknetwork","bamboraapac","bluesnap",- "bluecode",+ "calida","boku","braintree","breadpay",diff --git a/api-reference/v2/openapi_spec_v2.json b/api-reference/v2/openapi_spec_v2.jsonindex 37bbc56c7e..434bbd298b 100644--- a/api-reference/v2/openapi_spec_v2.json+++ b/api-reference/v2/openapi_spec_v2.json@@ -8659,7 +8659,7 @@"bitpay","bluesnap","blackhawknetwork",- "bluecode",+ "calida","boku","braintree","breadpay",@@ -23990,7 +23990,7 @@"blackhawknetwork","bamboraapac","bluesnap",- "bluecode",+ "calida","boku","braintree","breadpay",diff --git a/config/config.example.toml b/config/config.example.tomlindex d588c22a63..986a94540d 100644--- a/config/config.example.toml+++ b/config/config.example.toml@@ -200,7 +200,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://$-api4-stage.boku.com"@@ -916,8 +916,8 @@ apple_pay = { country = "AU,NZ,CN,HK,JP,SG,MY,KR,TW,VN,GB,IE,FR,DE,IT,ES,PT,NL,B[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]-bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }+[pm_filters.calida]+calida = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.dwolla]ach = { country = "US", currency = "USD" }diff --git a/config/deployments/integration_test.toml b/config/deployments/integration_test.tomlindex a24fb4c9ce..11cd0026ea 100644--- a/config/deployments/integration_test.toml+++ b/config/deployments/integration_test.toml@@ -39,7 +39,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://$-api4-stage.boku.com"@@ -810,7 +810,7 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.boku]diff --git a/config/deployments/production.toml b/config/deployments/production.tomlindex 1117c41b50..bf94c7358e 100644--- a/config/deployments/production.toml+++ b/config/deployments/production.toml@@ -42,7 +42,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://bitpay.com"blackhawknetwork.base_url = "https://api.blackhawknetwork.com/"-bluecode.base_url = "https://app.eorder.reloadhero.com/"+calida.base_url = "https://app.eorder.reloadhero.com/"bluesnap.base_url = "https://ws.bluesnap.com/"bluesnap.secondary_base_url = "https://pay.bluesnap.com/"boku.base_url = "https://country-api4-stage.boku.com"@@ -811,7 +811,7 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.boku]diff --git a/config/deployments/sandbox.toml b/config/deployments/sandbox.tomlindex 48f3d2dce5..4c402c8c73 100644--- a/config/deployments/sandbox.toml+++ b/config/deployments/sandbox.toml@@ -42,7 +42,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://$-api4-stage.boku.com"@@ -822,7 +822,7 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.boku]diff --git a/config/development.toml b/config/development.tomlindex 5d62b903de..7bc13f554b 100644--- a/config/development.toml+++ b/config/development.toml@@ -238,7 +238,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://$-api4-stage.boku.com"@@ -875,7 +875,7 @@ credit = { country = "AF,DZ,AW,AU,AZ,BS,BH,BD,BB,BZ,BM,BT,BO,BA,BW,BR,BN,BG,BI,Kapple_pay = { country = "AF,DZ,AW,AU,AZ,BS,BH,BD,BB,BZ,BM,BT,BO,BA,BW,BR,BN,BG,BI,KH,CA,CV,KY,CL,CO,KM,CD,CR,CZ,DK,DJ,ST,DO,EC,EG,SV,ER,ET,FK,FJ,GM,GE,GH,GI,GT,GN,GY,HT,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IL,IT,JM,JP,JO,KZ,KE,KW,LA,LB,LS,LR,LY,LT,MO,MK,MG,MW,MY,MV,MR,MU,MX,MD,MN,MA,MZ,MM,NA,NZ,NI,NG,KP,NO,AR,PK,PG,PY,PE,UY,PH,PL,GB,QA,OM,RO,RU,RW,WS,SG,ST,ZA,KR,LK,SH,SD,SR,SZ,SE,CH,SY,TW,TJ,TZ,TH,TT,TN,TR,UG,UA,US,UZ,VU,VE,VN,ZM,ZW", currency = "AFN,DZD,ANG,AWG,AUD,AZN,BSD,BHD,BDT,BBD,BZD,BMD,BTN,BOB,BAM,BWP,BRL,BND,BGN,BIF,KHR,CAD,CVE,KYD,XOF,XAF,XPF,CLP,COP,KMF,CDF,CRC,EUR,CZK,DKK,DJF,DOP,XCD,EGP,SVC,ERN,ETB,EUR,FKP,FJD,GMD,GEL,GHS,GIP,GTQ,GNF,GYD,HTG,HNL,HKD,HUF,ISK,INR,IDR,IRR,IQD,ILS,JMD,JPY,JOD,KZT,KES,KWD,LAK,LBP,LSL,LRD,LYD,MOP,MKD,MGA,MWK,MYR,MVR,MRU,MUR,MXN,MDL,MNT,MAD,MZN,MMK,NAD,NPR,NZD,NIO,NGN,KPW,NOK,ARS,PKR,PAB,PGK,PYG,PEN,UYU,PHP,PLN,GBP,QAR,OMR,RON,RUB,RWF,WST,SAR,RSD,SCR,SLL,SGD,STN,SBD,SOS,ZAR,KRW,LKR,SHP,SDG,SRD,SZL,SEK,CHF,SYP,TWD,TJS,TZS,THB,TOP,TTD,TND,TRY,TMT,AED,UGX,UAH,USD,UZS,VUV,VND,YER,CNY,ZMW,ZWL" }google_pay = { country = "AF,DZ,AW,AU,AZ,BS,BH,BD,BB,BZ,BM,BT,BO,BA,BW,BR,BN,BG,BI,KH,CA,CV,KY,CL,CO,KM,CD,CR,CZ,DK,DJ,ST,DO,EC,EG,SV,ER,ET,FK,FJ,GM,GE,GH,GI,GT,GN,GY,HT,HN,HK,HU,IS,IN,ID,IR,IQ,IE,IL,IT,JM,JP,JO,KZ,KE,KW,LA,LB,LS,LR,LY,LT,MO,MK,MG,MW,MY,MV,MR,MU,MX,MD,MN,MA,MZ,MM,NA,NZ,NI,NG,KP,NO,AR,PK,PG,PY,PE,UY,PH,PL,GB,QA,OM,RO,RU,RW,WS,SG,ST,ZA,KR,LK,SH,SD,SR,SZ,SE,CH,SY,TW,TJ,TZ,TH,TT,TN,TR,UG,UA,US,UZ,VU,VE,VN,ZM,ZW", currency = "AFN,DZD,ANG,AWG,AUD,AZN,BSD,BHD,BDT,BBD,BZD,BMD,BTN,BOB,BAM,BWP,BRL,BND,BGN,BIF,KHR,CAD,CVE,KYD,XOF,XAF,XPF,CLP,COP,KMF,CDF,CRC,EUR,CZK,DKK,DJF,DOP,XCD,EGP,SVC,ERN,ETB,EUR,FKP,FJD,GMD,GEL,GHS,GIP,GTQ,GNF,GYD,HTG,HNL,HKD,HUF,ISK,INR,IDR,IRR,IQD,ILS,JMD,JPY,JOD,KZT,KES,KWD,LAK,LBP,LSL,LRD,LYD,MOP,MKD,MGA,MWK,MYR,MVR,MRU,MUR,MXN,MDL,MNT,MAD,MZN,MMK,NAD,NPR,NZD,NIO,NGN,KPW,NOK,ARS,PKR,PAB,PGK,PYG,PEN,UYU,PHP,PLN,GBP,QAR,OMR,RON,RUB,RWF,WST,SAR,RSD,SCR,SLL,SGD,STN,SBD,SOS,ZAR,KRW,LKR,SHP,SDG,SRD,SZL,SEK,CHF,SYP,TWD,TJS,TZS,THB,TOP,TTD,TND,TRY,TMT,AED,UGX,UAH,USD,UZS,VUV,VND,YER,CNY,ZMW,ZWL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[file_upload_config]diff --git a/config/docker_compose.toml b/config/docker_compose.tomlindex 8f412ccd3b..acfd8c7bcd 100644--- a/config/docker_compose.toml+++ b/config/docker_compose.toml@@ -126,7 +126,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://$-api4-stage.boku.com"@@ -951,7 +951,7 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.boku]diff --git a/crates/common_enums/src/connector_enums.rs b/crates/common_enums/src/connector_enums.rsindex 532123c350..3a92de5350 100644--- a/crates/common_enums/src/connector_enums.rs+++ b/crates/common_enums/src/connector_enums.rs@@ -74,7 +74,7 @@ pub enum RoutableConnectors {Blackhawknetwork,Bamboraapac,Bluesnap,- Bluecode,+ Calida,Boku,Braintree,Breadpay,@@ -249,7 +249,7 @@ pub enum Connector {Bitpay,Bluesnap,Blackhawknetwork,- Bluecode,+ Calida,Boku,Braintree,Breadpay,@@ -457,7 +457,7 @@ impl Connector {| Self::Bitpay| Self::Bluesnap| Self::Blackhawknetwork- | Self::Bluecode+ | Self::Calida| Self::Boku| Self::Braintree| Self::Breadpay@@ -643,7 +643,7 @@ impl From<RoutableConnectors> for Connector {RoutableConnectors::Bamboraapac => Self::Bamboraapac,RoutableConnectors::Bluesnap => Self::Bluesnap,RoutableConnectors::Blackhawknetwork => Self::Blackhawknetwork,- RoutableConnectors::Bluecode => Self::Bluecode,+ RoutableConnectors::Calida => Self::Calida,RoutableConnectors::Boku => Self::Boku,RoutableConnectors::Braintree => Self::Braintree,RoutableConnectors::Breadpay => Self::Breadpay,@@ -782,7 +782,7 @@ impl TryFrom<Connector> for RoutableConnectors {Connector::Bamboraapac => Ok(Self::Bamboraapac),Connector::Bluesnap => Ok(Self::Bluesnap),Connector::Blackhawknetwork => Ok(Self::Blackhawknetwork),- Connector::Bluecode => Ok(Self::Bluecode),+ Connector::Calida => Ok(Self::Calida),Connector::Boku => Ok(Self::Boku),Connector::Braintree => Ok(Self::Braintree),Connector::Breadpay => Ok(Self::Breadpay),diff --git a/crates/connector_configs/src/connector.rs b/crates/connector_configs/src/connector.rsindex 95594dfb4a..be428b1ef1 100644--- a/crates/connector_configs/src/connector.rs+++ b/crates/connector_configs/src/connector.rs@@ -246,7 +246,7 @@ pub struct ConnectorConfig {pub billwerk: Option<ConnectorTomlConfig>,pub bitpay: Option<ConnectorTomlConfig>,pub blackhawknetwork: Option<ConnectorTomlConfig>,- pub bluecode: Option<ConnectorTomlConfig>,+ pub calida: Option<ConnectorTomlConfig>,pub bluesnap: Option<ConnectorTomlConfig>,pub boku: Option<ConnectorTomlConfig>,pub braintree: Option<ConnectorTomlConfig>,@@ -468,7 +468,7 @@ impl ConnectorConfig {Connector::Billwerk => Ok(connector_data.billwerk),Connector::Bitpay => Ok(connector_data.bitpay),Connector::Bluesnap => Ok(connector_data.bluesnap),- Connector::Bluecode => Ok(connector_data.bluecode),+ Connector::Calida => Ok(connector_data.calida),Connector::Blackhawknetwork => Ok(connector_data.blackhawknetwork),Connector::Boku => Ok(connector_data.boku),Connector::Braintree => Ok(connector_data.braintree),diff --git a/crates/connector_configs/toml/development.toml b/crates/connector_configs/toml/development.tomlindex 6fa379821d..e56bc1f05c 100644--- a/crates/connector_configs/toml/development.toml+++ b/crates/connector_configs/toml/development.toml@@ -6877,18 +6877,18 @@ payment_method_type = "upi_intent"api_key="Signing key"api_secret="website name"key1="merchant_id"-[bluecode]-[[bluecode.wallet]]+[calida]+[[calida.wallet]]payment_method_type = "bluecode"-[bluecode.connector_auth.HeaderKey]+[calida.connector_auth.HeaderKey]api_key = "E-Order Token"-[bluecode.metadata.shop_name]+[calida.metadata.shop_name]name="shop_name"label="Shop Name"placeholder="Enter your Shop Name"required=truetype="Text"-[bluecode.connector_webhook_details]+[calida.connector_webhook_details]merchant_secret="Source verification key"[katapult]diff --git a/crates/connector_configs/toml/production.toml b/crates/connector_configs/toml/production.tomlindex 32f3c61d73..8d8c61f4e7 100644--- a/crates/connector_configs/toml/production.toml+++ b/crates/connector_configs/toml/production.toml@@ -5610,18 +5610,18 @@ key1="merchant_id"[mpgs.connector_auth.HeaderKey]api_key = "API Key"-[bluecode]-[[bluecode.wallet]]+[calida]+[[calida.wallet]]payment_method_type = "bluecode"-[bluecode.connector_auth.HeaderKey]+[calida.connector_auth.HeaderKey]api_key = "E-Order Token"-[bluecode.metadata.shop_name]+[calida.metadata.shop_name]name="shop_name"label="Shop Name"placeholder="Enter your Shop Name"required=truetype="Text"-[bluecode.connector_webhook_details]+[calida.connector_webhook_details]merchant_secret="Source verification key"[katapult]diff --git a/crates/connector_configs/toml/sandbox.toml b/crates/connector_configs/toml/sandbox.tomlindex 9435e3eae8..4cb91ba253 100644--- a/crates/connector_configs/toml/sandbox.toml+++ b/crates/connector_configs/toml/sandbox.toml@@ -6857,18 +6857,18 @@ payment_method_type = "upi_intent"api_key="Signing key"api_secret="website name"key1="merchant_id"-[bluecode]-[[bluecode.wallet]]+[calida]+[[calida.wallet]]payment_method_type = "bluecode"-[bluecode.connector_auth.HeaderKey]+[calida.connector_auth.HeaderKey]api_key = "E-Order Token"-[bluecode.metadata.shop_name]+[calida.metadata.shop_name]name="shop_name"label="Shop Name"placeholder="Enter your Shop Name"required=truetype="Text"-[bluecode.connector_webhook_details]+[calida.connector_webhook_details]merchant_secret="Source verification key"[katapult]diff --git a/crates/hyperswitch_connectors/src/connectors.rs b/crates/hyperswitch_connectors/src/connectors.rsindex 63257b72a9..b7d0bce3ca 100644--- a/crates/hyperswitch_connectors/src/connectors.rs+++ b/crates/hyperswitch_connectors/src/connectors.rs@@ -14,11 +14,11 @@ pub mod barclaycard;pub mod billwerk;pub mod bitpay;pub mod blackhawknetwork;-pub mod bluecode;pub mod bluesnap;pub mod boku;pub mod braintree;pub mod breadpay;+pub mod calida;pub mod cashtocode;pub mod celero;pub mod chargebee;@@ -139,8 +139,8 @@ pub use self::{amazonpay::Amazonpay, archipel::Archipel, authipay::Authipay, authorizedotnet::Authorizedotnet,bambora::Bambora, bamboraapac::Bamboraapac, bankofamerica::Bankofamerica,barclaycard::Barclaycard, billwerk::Billwerk, bitpay::Bitpay,- blackhawknetwork::Blackhawknetwork, bluecode::Bluecode, bluesnap::Bluesnap, boku::Boku,- braintree::Braintree, breadpay::Breadpay, cashtocode::Cashtocode, celero::Celero,+ blackhawknetwork::Blackhawknetwork, bluesnap::Bluesnap, boku::Boku, braintree::Braintree,+ breadpay::Breadpay, calida::Calida, cashtocode::Cashtocode, celero::Celero,chargebee::Chargebee, checkbook::Checkbook, checkout::Checkout, coinbase::Coinbase,coingate::Coingate, cryptopay::Cryptopay, ctp_mastercard::CtpMastercard,custombilling::Custombilling, cybersource::Cybersource, datatrans::Datatrans,diff --git a/crates/hyperswitch_connectors/src/connectors/bluecode.rs b/crates/hyperswitch_connectors/src/connectors/calida.rssimilarity index 84%rename from crates/hyperswitch_connectors/src/connectors/bluecode.rsrename to crates/hyperswitch_connectors/src/connectors/calida.rsindex 138e7279c4..e374b7fddd 100644--- a/crates/hyperswitch_connectors/src/connectors/bluecode.rs+++ b/crates/hyperswitch_connectors/src/connectors/calida.rs@@ -47,17 +47,17 @@ use hyperswitch_interfaces::{use masking::{ExposeInterface, Mask, Secret};use ring::hmac;use serde_json::Value;-use transformers as bluecode;+use transformers as calida;use crate::{constants::headers, types::ResponseRouterData, utils};-const BLUECODE_API_VERSION: &str = "v1";+const CALIDA_API_VERSION: &str = "v1";#[derive(Clone)]-pub struct Bluecode {+pub struct Calida {amount_converter: &'static (dyn AmountConvertor<Output = FloatMajorUnit> + Sync),}-impl Bluecode {+impl Calida {pub fn new() -> &'static Self {&Self {amount_converter: &FloatMajorUnitForConnector,@@ -65,26 +65,26 @@ impl Bluecode {}}-impl api::Payment for Bluecode {}-impl api::PaymentSession for Bluecode {}-impl api::ConnectorAccessToken for Bluecode {}-impl api::MandateSetup for Bluecode {}-impl api::PaymentAuthorize for Bluecode {}-impl api::PaymentSync for Bluecode {}-impl api::PaymentCapture for Bluecode {}-impl api::PaymentVoid for Bluecode {}-impl api::Refund for Bluecode {}-impl api::RefundExecute for Bluecode {}-impl api::RefundSync for Bluecode {}-impl api::PaymentToken for Bluecode {}+impl api::Payment for Calida {}+impl api::PaymentSession for Calida {}+impl api::ConnectorAccessToken for Calida {}+impl api::MandateSetup for Calida {}+impl api::PaymentAuthorize for Calida {}+impl api::PaymentSync for Calida {}+impl api::PaymentCapture for Calida {}+impl api::PaymentVoid for Calida {}+impl api::Refund for Calida {}+impl api::RefundExecute for Calida {}+impl api::RefundSync for Calida {}+impl api::PaymentToken for Calida {}impl ConnectorIntegration<PaymentMethodToken, PaymentMethodTokenizationData, PaymentsResponseData>- for Bluecode+ for Calida{// Not Implemented (R)}-impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for Bluecode+impl<Flow, Request, Response> ConnectorCommonExt<Flow, Request, Response> for CalidawhereSelf: ConnectorIntegration<Flow, Request, Response>,{@@ -103,9 +103,9 @@ where}}-impl ConnectorCommon for Bluecode {+impl ConnectorCommon for Calida {fn id(&self) -> &'static str {- "bluecode"+ "calida"}fn get_currency_unit(&self) -> api::CurrencyUnit {@@ -117,14 +117,14 @@ impl ConnectorCommon for Bluecode {}fn base_url<'a>(&self, connectors: &'a Connectors) -> &'a str {- connectors.bluecode.base_url.as_ref()+ connectors.calida.base_url.as_ref()}fn get_auth_header(&self,auth_type: &ConnectorAuthType,) -> CustomResult<Vec<(String, masking::Maskable<String>)>, errors::ConnectorError> {- let auth = bluecode::BluecodeAuthType::try_from(auth_type)+ let auth = calida::CalidaAuthType::try_from(auth_type).change_context(errors::ConnectorError::FailedToObtainAuthType)?;Ok(vec![(headers::AUTHORIZATION.to_string(),@@ -137,9 +137,9 @@ impl ConnectorCommon for Bluecode {res: Response,event_builder: Option<&mut ConnectorEvent>,) -> CustomResult<ErrorResponse, errors::ConnectorError> {- let response: bluecode::BluecodeErrorResponse = res+ let response: calida::CalidaErrorResponse = res.response- .parse_struct("BluecodeErrorResponse")+ .parse_struct("CalidaErrorResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));@@ -160,7 +160,7 @@ impl ConnectorCommon for Bluecode {}}-impl ConnectorValidation for Bluecode {+impl ConnectorValidation for Calida {fn validate_mandate_payment(&self,_pm_type: Option<enums::PaymentMethodType>,@@ -186,16 +186,13 @@ impl ConnectorValidation for Bluecode {}}-impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Bluecode {}+impl ConnectorIntegration<Session, PaymentsSessionData, PaymentsResponseData> for Calida {}-impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Bluecode {}+impl ConnectorIntegration<AccessTokenAuth, AccessTokenRequestData, AccessToken> for Calida {}-impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData>- for Bluecode-{-}+impl ConnectorIntegration<SetupMandate, SetupMandateRequestData, PaymentsResponseData> for Calida {}-impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Bluecode {+impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData> for Calida {fn get_headers(&self,req: &PaymentsAuthorizeRouterData,@@ -216,7 +213,7 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseDataOk(format!("{}api/{}/order/payin/start",self.base_url(connectors),- BLUECODE_API_VERSION+ CALIDA_API_VERSION))}@@ -231,8 +228,8 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseDatareq.request.currency,)?;- let connector_router_data = bluecode::BluecodeRouterData::from((amount, req));- let connector_req = bluecode::BluecodePaymentsRequest::try_from(&connector_router_data)?;+ let connector_router_data = calida::CalidaRouterData::from((amount, req));+ let connector_req = calida::CalidaPaymentsRequest::try_from(&connector_router_data)?;Ok(RequestContent::Json(Box::new(connector_req)))}@@ -264,9 +261,9 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseDataevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<PaymentsAuthorizeRouterData, errors::ConnectorError> {- let response: bluecode::BluecodePaymentsResponse = res+ let response: calida::CalidaPaymentsResponse = res.response- .parse_struct("Bluecode PaymentsAuthorizeResponse")+ .parse_struct("Calida PaymentsAuthorizeResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));@@ -301,7 +298,7 @@ impl ConnectorIntegration<Authorize, PaymentsAuthorizeData, PaymentsResponseData}}-impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Bluecode {+impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Calida {fn get_headers(&self,req: &PaymentsSyncRouterData,@@ -328,7 +325,7 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for BluOk(format!("{}api/{}/order/{}/status",self.base_url(connectors),- BLUECODE_API_VERSION,+ CALIDA_API_VERSION,connector_transaction_id))}@@ -354,9 +351,9 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Bluevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<PaymentsSyncRouterData, errors::ConnectorError> {- let response: bluecode::BluecodeSyncResponse = res+ let response: calida::CalidaSyncResponse = res.response- .parse_struct("bluecode PaymentsSyncResponse")+ .parse_struct("calida PaymentsSyncResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));@@ -391,7 +388,7 @@ impl ConnectorIntegration<PSync, PaymentsSyncData, PaymentsResponseData> for Blu}}-impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Bluecode {+impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> for Calida {fn get_headers(&self,req: &PaymentsCaptureRouterData,@@ -411,7 +408,7 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo) -> CustomResult<String, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "Capture".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -423,7 +420,7 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo) -> CustomResult<RequestContent, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "Capture".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -454,9 +451,9 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> foevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<PaymentsCaptureRouterData, errors::ConnectorError> {- let response: bluecode::BluecodePaymentsResponse = res+ let response: calida::CalidaPaymentsResponse = res.response- .parse_struct("Bluecode PaymentsCaptureResponse")+ .parse_struct("Calida PaymentsCaptureResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));router_env::logger::info!(connector_response=?response);@@ -476,9 +473,9 @@ impl ConnectorIntegration<Capture, PaymentsCaptureData, PaymentsResponseData> fo}}-impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Bluecode {}+impl ConnectorIntegration<Void, PaymentsCancelData, PaymentsResponseData> for Calida {}-impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Bluecode {+impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Calida {fn get_headers(&self,req: &RefundsRouterData<Execute>,@@ -498,7 +495,7 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Bluecod) -> CustomResult<String, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "Refund".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -510,7 +507,7 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Bluecod) -> CustomResult<RequestContent, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "Refund".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -540,10 +537,10 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Bluecodevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<RefundsRouterData<Execute>, errors::ConnectorError> {- let response: bluecode::RefundResponse = res- .response- .parse_struct("bluecode RefundResponse")- .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;+ let response: calida::RefundResponse =+ res.response+ .parse_struct("calida RefundResponse")+ .change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));router_env::logger::info!(connector_response=?response);RouterData::try_from(ResponseRouterData {@@ -562,7 +559,7 @@ impl ConnectorIntegration<Execute, RefundsData, RefundsResponseData> for Bluecod}}-impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Bluecode {+impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Calida {fn get_headers(&self,req: &RefundSyncRouterData,@@ -582,7 +579,7 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Bluecode) -> CustomResult<String, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "RSync".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -594,7 +591,7 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Bluecode) -> CustomResult<Option<Request>, errors::ConnectorError> {Err(errors::ConnectorError::FlowNotSupported {flow: "RSync".to_string(),- connector: "Bluecode".to_string(),+ connector: "Calida".to_string(),}.into())}@@ -605,9 +602,9 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Bluecodeevent_builder: Option<&mut ConnectorEvent>,res: Response,) -> CustomResult<RefundSyncRouterData, errors::ConnectorError> {- let response: bluecode::RefundResponse = res+ let response: calida::RefundResponse = res.response- .parse_struct("bluecode RefundSyncResponse")+ .parse_struct("calida RefundSyncResponse").change_context(errors::ConnectorError::ResponseDeserializationFailed)?;event_builder.map(|i| i.set_response_body(&response));router_env::logger::info!(connector_response=?response);@@ -628,7 +625,7 @@ impl ConnectorIntegration<RSync, RefundsData, RefundsResponseData> for Bluecode}#[async_trait::async_trait]-impl webhooks::IncomingWebhook for Bluecode {+impl webhooks::IncomingWebhook for Calida {fn get_webhook_source_verification_algorithm(&self,_request: &webhooks::IncomingWebhookRequestDetails<'_>,@@ -680,7 +677,7 @@ impl webhooks::IncomingWebhook for Bluecode {let parsed: Value = serde_json::from_slice(request.body).map_err(|_| errors::ConnectorError::WebhookSourceVerificationFailed)?;- let sorted_payload = bluecode::sort_and_minify_json(&parsed)?;+ let sorted_payload = calida::sort_and_minify_json(&parsed)?;let key = hmac::Key::new(hmac::HMAC_SHA512, secret_bytes);@@ -710,9 +707,7 @@ impl webhooks::IncomingWebhook for Bluecode {let webhook_body = transformers::get_webhook_object_from_body(request.body).change_context(errors::ConnectorError::WebhookEventTypeNotFound)?;- Ok(transformers::get_bluecode_webhook_event(- webhook_body.status,- ))+ Ok(transformers::get_calida_webhook_event(webhook_body.status))}fn get_webhook_resource_object(@@ -726,45 +721,44 @@ impl webhooks::IncomingWebhook for Bluecode {}}-static BLUECODE_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> =- LazyLock::new(|| {- let supported_capture_methods = vec![enums::CaptureMethod::Automatic];-- let mut santander_supported_payment_methods = SupportedPaymentMethods::new();-- santander_supported_payment_methods.add(- enums::PaymentMethod::Wallet,- enums::PaymentMethodType::Bluecode,- PaymentMethodDetails {- mandates: enums::FeatureStatus::NotSupported,- refunds: enums::FeatureStatus::NotSupported,- supported_capture_methods,- specific_features: None,- },- );-- santander_supported_payment_methods- });--static BLUECODE_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {- display_name: "Bluecode",- description: "Bluecode is building a global payment network that combines Alipay+, Discover and EMPSA and enables seamless payments in 75 countries. With over 160 million acceptance points, payments are processed according to the highest European security and data protection standards to make Europe less dependent on international players.",+static CALIDA_SUPPORTED_PAYMENT_METHODS: LazyLock<SupportedPaymentMethods> = LazyLock::new(|| {+ let supported_capture_methods = vec![enums::CaptureMethod::Automatic];++ let mut santander_supported_payment_methods = SupportedPaymentMethods::new();++ santander_supported_payment_methods.add(+ enums::PaymentMethod::Wallet,+ enums::PaymentMethodType::Bluecode,+ PaymentMethodDetails {+ mandates: enums::FeatureStatus::NotSupported,+ refunds: enums::FeatureStatus::NotSupported,+ supported_capture_methods,+ specific_features: None,+ },+ );++ santander_supported_payment_methods+});++static CALIDA_CONNECTOR_INFO: ConnectorInfo = ConnectorInfo {+ display_name: "Calida",+ description: "Calida is building a global payment network that combines Alipay+, Discover and EMPSA and enables seamless payments in 75 countries. With over 160 million acceptance points, payments are processed according to the highest European security and data protection standards to make Europe less dependent on international players.",connector_type: enums::HyperswitchConnectorCategory::AlternativePaymentMethod,integration_status: enums::ConnectorIntegrationStatus::Alpha,};-static BLUECODE_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 1] = [enums::EventClass::Payments];+static CALIDA_SUPPORTED_WEBHOOK_FLOWS: [enums::EventClass; 1] = [enums::EventClass::Payments];-impl ConnectorSpecifications for Bluecode {+impl ConnectorSpecifications for Calida {fn get_connector_about(&self) -> Option<&'static ConnectorInfo> {- Some(&BLUECODE_CONNECTOR_INFO)+ Some(&CALIDA_CONNECTOR_INFO)}fn get_supported_payment_methods(&self) -> Option<&'static SupportedPaymentMethods> {- Some(&*BLUECODE_SUPPORTED_PAYMENT_METHODS)+ Some(&*CALIDA_SUPPORTED_PAYMENT_METHODS)}fn get_supported_webhook_flows(&self) -> Option<&'static [enums::EventClass]> {- Some(&BLUECODE_SUPPORTED_WEBHOOK_FLOWS)+ Some(&CALIDA_SUPPORTED_WEBHOOK_FLOWS)}}diff --git a/crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs b/crates/hyperswitch_connectors/src/connectors/calida/transformers.rssimilarity index 76%rename from crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rsrename to crates/hyperswitch_connectors/src/connectors/calida/transformers.rsindex 2bcecbe13c..f9a62315af 100644--- a/crates/hyperswitch_connectors/src/connectors/bluecode/transformers.rs+++ b/crates/hyperswitch_connectors/src/connectors/calida/transformers.rs@@ -27,12 +27,12 @@ use crate::{utils::{self as connector_utils, PaymentsAuthorizeRequestData, RouterData as OtherRouterData},};-pub struct BluecodeRouterData<T> {+pub struct CalidaRouterData<T> {pub amount: FloatMajorUnit,pub router_data: T,}-impl<T> From<(FloatMajorUnit, T)> for BluecodeRouterData<T> {+impl<T> From<(FloatMajorUnit, T)> for CalidaRouterData<T> {fn from((amount, item): (FloatMajorUnit, T)) -> Self {Self {amount,@@ -42,11 +42,11 @@ impl<T> From<(FloatMajorUnit, T)> for BluecodeRouterData<T> {}#[derive(Debug, Default, Serialize, Deserialize)]-pub struct BluecodeMetadataObject {+pub struct CalidaMetadataObject {pub shop_name: String,}-impl TryFrom<&Option<common_utils::pii::SecretSerdeValue>> for BluecodeMetadataObject {+impl TryFrom<&Option<common_utils::pii::SecretSerdeValue>> for CalidaMetadataObject {type Error = error_stack::Report<errors::ConnectorError>;fn try_from(meta_data: &Option<common_utils::pii::SecretSerdeValue>,@@ -60,7 +60,7 @@ impl TryFrom<&Option<common_utils::pii::SecretSerdeValue>> for BluecodeMetadataO}#[derive(Debug, Serialize, PartialEq)]-pub struct BluecodePaymentsRequest {+pub struct CalidaPaymentsRequest {pub amount: FloatMajorUnit,pub currency: enums::Currency,pub payment_provider: String,@@ -79,7 +79,7 @@ pub struct BluecodePaymentsRequest {}#[derive(Default, Debug, Serialize, Eq, PartialEq)]-pub struct BluecodeCard {+pub struct CalidaCard {number: cards::CardNumber,expiry_month: Secret<String>,expiry_year: Secret<String>,@@ -87,41 +87,50 @@ pub struct BluecodeCard {complete: bool,}-impl TryFrom<&BluecodeRouterData<&PaymentsAuthorizeRouterData>> for BluecodePaymentsRequest {+impl TryFrom<&CalidaRouterData<&PaymentsAuthorizeRouterData>> for CalidaPaymentsRequest {type Error = error_stack::Report<errors::ConnectorError>;fn try_from(- item: &BluecodeRouterData<&PaymentsAuthorizeRouterData>,+ item: &CalidaRouterData<&PaymentsAuthorizeRouterData>,) -> Result<Self, Self::Error> {- if item.router_data.request.capture_method != Some(enums::CaptureMethod::Automatic) {- return Err(errors::ConnectorError::FlowNotSupported {- flow: format!("{:?}", item.router_data.request.capture_method),- connector: "Bluecode".to_string(),+ match item.router_data.request.capture_method {+ Some(enums::CaptureMethod::Manual)+ | Some(enums::CaptureMethod::ManualMultiple)+ | Some(enums::CaptureMethod::Scheduled)+ | Some(enums::CaptureMethod::SequentialAutomatic) => {+ Err(errors::ConnectorError::FlowNotSupported {+ flow: format!("{:?}", item.router_data.request.capture_method),+ connector: "Calida".to_string(),+ }+ .into())}- .into());- }- match item.router_data.request.payment_method_data.clone() {- PaymentMethodData::Wallet(WalletData::BluecodeRedirect {}) => {- let bluecode_mca_metadata =- BluecodeMetadataObject::try_from(&item.router_data.connector_meta_data)?;- Self::try_from((item, &bluecode_mca_metadata))+ Some(enums::CaptureMethod::Automatic) | None => {+ match item.router_data.request.payment_method_data.clone() {+ PaymentMethodData::Wallet(WalletData::BluecodeRedirect {}) => {+ let calida_mca_metadata =+ CalidaMetadataObject::try_from(&item.router_data.connector_meta_data)?;+ Self::try_from((item, &calida_mca_metadata))+ }+ _ => Err(+ errors::ConnectorError::NotImplemented("Payment method".to_string()).into(),+ ),+ }}- _ => Err(errors::ConnectorError::NotImplemented("Payment method".to_string()).into()),}}}implTryFrom<(- &BluecodeRouterData<&PaymentsAuthorizeRouterData>,- &BluecodeMetadataObject,- )> for BluecodePaymentsRequest+ &CalidaRouterData<&PaymentsAuthorizeRouterData>,+ &CalidaMetadataObject,+ )> for CalidaPaymentsRequest{type Error = error_stack::Report<errors::ConnectorError>;fn try_from(value: (- &BluecodeRouterData<&PaymentsAuthorizeRouterData>,- &BluecodeMetadataObject,+ &CalidaRouterData<&PaymentsAuthorizeRouterData>,+ &CalidaMetadataObject,),) -> Result<Self, Self::Error> {let item = value.0;@@ -146,11 +155,11 @@ impl}}-pub struct BluecodeAuthType {+pub struct CalidaAuthType {pub(super) api_key: Secret<String>,}-impl TryFrom<&ConnectorAuthType> for BluecodeAuthType {+impl TryFrom<&ConnectorAuthType> for CalidaAuthType {type Error = error_stack::Report<errors::ConnectorError>;fn try_from(auth_type: &ConnectorAuthType) -> Result<Self, Self::Error> {match auth_type {@@ -162,42 +171,42 @@ impl TryFrom<&ConnectorAuthType> for BluecodeAuthType {}}-impl From<BluecodePaymentStatus> for common_enums::AttemptStatus {- fn from(item: BluecodePaymentStatus) -> Self {+impl From<CalidaPaymentStatus> for common_enums::AttemptStatus {+ fn from(item: CalidaPaymentStatus) -> Self {match item {- BluecodePaymentStatus::ManualProcessing => Self::Pending,- BluecodePaymentStatus::Pending | BluecodePaymentStatus::PaymentInitiated => {+ CalidaPaymentStatus::ManualProcessing => Self::Pending,+ CalidaPaymentStatus::Pending | CalidaPaymentStatus::PaymentInitiated => {Self::AuthenticationPending}- BluecodePaymentStatus::Failed => Self::Failure,- BluecodePaymentStatus::Completed => Self::Charged,+ CalidaPaymentStatus::Failed => Self::Failure,+ CalidaPaymentStatus::Completed => Self::Charged,}}}#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]-pub struct BluecodePaymentsResponse {+pub struct CalidaPaymentsResponse {pub id: i64,pub order_id: String,pub amount: FloatMajorUnit,pub currency: enums::Currency,pub charged_amount: FloatMajorUnit,pub charged_currency: enums::Currency,- pub status: BluecodePaymentStatus,+ pub status: CalidaPaymentStatus,pub payment_link: url::Url,pub etoken: Secret<String>,pub payment_request_id: String,}#[derive(Debug, Clone, Serialize, Deserialize, PartialEq)]-pub struct BluecodeSyncResponse {+pub struct CalidaSyncResponse {pub id: Option<i64>,pub order_id: String,pub user_id: Option<i64>,pub customer_id: Option<String>,pub customer_email: Option<Email>,pub customer_phone: Option<String>,- pub status: BluecodePaymentStatus,+ pub status: CalidaPaymentStatus,pub payment_provider: Option<String>,pub payment_connector: Option<String>,pub payment_method: Option<String>,@@ -239,7 +248,7 @@ pub struct BluecodeSyncResponse {#[derive(Debug, Clone, Copy, Serialize, Deserialize, PartialEq)]#[serde(rename_all = "SCREAMING_SNAKE_CASE")]-pub enum BluecodePaymentStatus {+pub enum CalidaPaymentStatus {Pending,PaymentInitiated,ManualProcessing,@@ -247,12 +256,12 @@ pub enum BluecodePaymentStatus {Completed,}-impl<F, T> TryFrom<ResponseRouterData<F, BluecodePaymentsResponse, T, PaymentsResponseData>>+impl<F, T> TryFrom<ResponseRouterData<F, CalidaPaymentsResponse, T, PaymentsResponseData>>for RouterData<F, T, PaymentsResponseData>{type Error = error_stack::Report<errors::ConnectorError>;fn try_from(- item: ResponseRouterData<F, BluecodePaymentsResponse, T, PaymentsResponseData>,+ item: ResponseRouterData<F, CalidaPaymentsResponse, T, PaymentsResponseData>,) -> Result<Self, Self::Error> {let url = item.response.payment_link.clone();let redirection_data = Some(RedirectForm::from((url, Method::Get)));@@ -273,12 +282,12 @@ impl<F, T> TryFrom<ResponseRouterData<F, BluecodePaymentsResponse, T, PaymentsRe}}-impl<F, T> TryFrom<ResponseRouterData<F, BluecodeSyncResponse, T, PaymentsResponseData>>+impl<F, T> TryFrom<ResponseRouterData<F, CalidaSyncResponse, T, PaymentsResponseData>>for RouterData<F, T, PaymentsResponseData>{type Error = error_stack::Report<errors::ConnectorError>;fn try_from(- item: ResponseRouterData<F, BluecodeSyncResponse, T, PaymentsResponseData>,+ item: ResponseRouterData<F, CalidaSyncResponse, T, PaymentsResponseData>,) -> Result<Self, Self::Error> {Ok(Self {status: common_enums::AttemptStatus::from(item.response.status),@@ -289,13 +298,13 @@ impl<F, T> TryFrom<ResponseRouterData<F, BluecodeSyncResponse, T, PaymentsRespon}#[derive(Default, Debug, Serialize)]-pub struct BluecodeRefundRequest {+pub struct CalidaRefundRequest {pub amount: FloatMajorUnit,}-impl<F> TryFrom<&BluecodeRouterData<&RefundsRouterData<F>>> for BluecodeRefundRequest {+impl<F> TryFrom<&CalidaRouterData<&RefundsRouterData<F>>> for CalidaRefundRequest {type Error = error_stack::Report<errors::ConnectorError>;- fn try_from(item: &BluecodeRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {+ fn try_from(item: &CalidaRouterData<&RefundsRouterData<F>>) -> Result<Self, Self::Error> {Ok(Self {amount: item.amount.to_owned(),})@@ -362,24 +371,24 @@ impl TryFrom<RefundsResponseRouterData<RSync, RefundResponse>> for RefundsRouter}#[derive(Default, Debug, Serialize, Deserialize, PartialEq)]-pub struct BluecodeErrorResponse {+pub struct CalidaErrorResponse {pub message: String,pub context_data: HashMap<String, Value>,}-pub(crate) fn get_bluecode_webhook_event(- status: BluecodePaymentStatus,+pub(crate) fn get_calida_webhook_event(+ status: CalidaPaymentStatus,) -> api_models::webhooks::IncomingWebhookEvent {match status {- BluecodePaymentStatus::Completed => {+ CalidaPaymentStatus::Completed => {api_models::webhooks::IncomingWebhookEvent::PaymentIntentSuccess}- BluecodePaymentStatus::PaymentInitiated- | BluecodePaymentStatus::ManualProcessing- | BluecodePaymentStatus::Pending => {+ CalidaPaymentStatus::PaymentInitiated+ | CalidaPaymentStatus::ManualProcessing+ | CalidaPaymentStatus::Pending => {api_models::webhooks::IncomingWebhookEvent::PaymentIntentProcessing}- BluecodePaymentStatus::Failed => {+ CalidaPaymentStatus::Failed => {api_models::webhooks::IncomingWebhookEvent::PaymentIntentFailure}}@@ -387,8 +396,8 @@ pub(crate) fn get_bluecode_webhook_event(pub(crate) fn get_webhook_object_from_body(body: &[u8],-) -> CustomResult<BluecodeSyncResponse, common_utils::errors::ParsingError> {- let webhook: BluecodeSyncResponse = body.parse_struct("BluecodeIncomingWebhook")?;+) -> CustomResult<CalidaSyncResponse, common_utils::errors::ParsingError> {+ let webhook: CalidaSyncResponse = body.parse_struct("CalidaIncomingWebhook")?;Ok(webhook)}diff --git a/crates/hyperswitch_connectors/src/default_implementations.rs b/crates/hyperswitch_connectors/src/default_implementations.rsindex e7e39adaf8..be8aee1441 100644--- a/crates/hyperswitch_connectors/src/default_implementations.rs+++ b/crates/hyperswitch_connectors/src/default_implementations.rs@@ -185,7 +185,7 @@ default_imp_for_authorize_session_token!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -332,7 +332,7 @@ default_imp_for_calculate_tax!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -481,7 +481,7 @@ default_imp_for_session_update!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -628,7 +628,7 @@ default_imp_for_post_session_tokens!(connectors::Barclaycard,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -774,7 +774,7 @@ default_imp_for_create_order!(connectors::Barclaycard,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -922,7 +922,7 @@ default_imp_for_update_metadata!(connectors::Barclaycard,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1070,7 +1070,7 @@ default_imp_for_cancel_post_capture!(connectors::Barclaycard,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1217,7 +1217,7 @@ default_imp_for_complete_authorize!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Boku,connectors::Cashtocode,connectors::Celero,@@ -1346,7 +1346,7 @@ default_imp_for_incremental_authorization!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1491,7 +1491,7 @@ default_imp_for_create_customer!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1631,7 +1631,7 @@ default_imp_for_connector_redirect_response!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bamboraapac,connectors::Bankofamerica,connectors::Barclaycard,@@ -1761,7 +1761,7 @@ default_imp_for_pre_authenticate_steps!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -1908,7 +1908,7 @@ default_imp_for_authenticate_steps!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -2055,7 +2055,7 @@ default_imp_for_post_authenticate_steps!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -2201,7 +2201,7 @@ default_imp_for_pre_processing_steps!(connectors::Bankofamerica,connectors::Billwerk,connectors::Bitpay,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2336,7 +2336,7 @@ default_imp_for_post_processing_steps!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2485,7 +2485,7 @@ default_imp_for_approve!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2635,7 +2635,7 @@ default_imp_for_reject!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2786,7 +2786,7 @@ default_imp_for_webhook_source_verification!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2934,7 +2934,7 @@ default_imp_for_accept_dispute!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3081,7 +3081,7 @@ default_imp_for_submit_evidence!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3227,7 +3227,7 @@ default_imp_for_defend_dispute!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3374,7 +3374,7 @@ default_imp_for_fetch_disputes!(connectors::Bankofamerica,connectors::Barclaycard,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Billwerk,connectors::Bitpay,connectors::Bluesnap,@@ -3526,7 +3526,7 @@ default_imp_for_dispute_sync!(connectors::Bitpay,connectors::Bluesnap,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Breadpay,connectors::Boku,@@ -3682,7 +3682,7 @@ default_imp_for_file_upload!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3821,7 +3821,7 @@ default_imp_for_payouts!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3963,7 +3963,7 @@ default_imp_for_payouts_create!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4109,7 +4109,7 @@ default_imp_for_payouts_retrieve!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4256,7 +4256,7 @@ default_imp_for_payouts_eligibility!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4404,7 +4404,7 @@ default_imp_for_payouts_fulfill!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4545,7 +4545,7 @@ default_imp_for_payouts_cancel!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4693,7 +4693,7 @@ default_imp_for_payouts_quote!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4841,7 +4841,7 @@ default_imp_for_payouts_recipient!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4989,7 +4989,7 @@ default_imp_for_payouts_recipient_account!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5139,7 +5139,7 @@ default_imp_for_frm_sale!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5289,7 +5289,7 @@ default_imp_for_frm_checkout!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5439,7 +5439,7 @@ default_imp_for_frm_transaction!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5589,7 +5589,7 @@ default_imp_for_frm_fulfillment!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5739,7 +5739,7 @@ default_imp_for_frm_record_return!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -5886,7 +5886,7 @@ default_imp_for_revoking_mandates!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Breadpay,@@ -6032,7 +6032,7 @@ default_imp_for_uas_pre_authentication!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -6178,7 +6178,7 @@ default_imp_for_uas_post_authentication!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -6327,7 +6327,7 @@ default_imp_for_uas_authentication_confirmation!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -6467,7 +6467,7 @@ default_imp_for_connector_request_id!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -6609,7 +6609,7 @@ default_imp_for_fraud_check!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -6781,7 +6781,7 @@ default_imp_for_connector_authentication!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -6925,7 +6925,7 @@ default_imp_for_uas_authentication!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -7066,7 +7066,7 @@ default_imp_for_revenue_recovery!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7243,7 +7243,7 @@ default_imp_for_subscriptions!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7392,7 +7392,7 @@ default_imp_for_billing_connector_payment_sync!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7535,7 +7535,7 @@ default_imp_for_revenue_recovery_record_back!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7683,7 +7683,7 @@ default_imp_for_billing_connector_invoice_sync!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7826,7 +7826,7 @@ default_imp_for_external_vault!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -7974,7 +7974,7 @@ default_imp_for_external_vault_insert!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -8119,7 +8119,7 @@ default_imp_for_gift_card_balance_check!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -8270,7 +8270,7 @@ default_imp_for_external_vault_retrieve!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -8418,7 +8418,7 @@ default_imp_for_external_vault_delete!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -8569,7 +8569,7 @@ default_imp_for_external_vault_create!(connectors::Bluesnap,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Braintree,connectors::Boku,connectors::Breadpay,@@ -8715,7 +8715,7 @@ default_imp_for_connector_authentication_token!(connectors::Bankofamerica,connectors::Billwerk,connectors::Bitpay,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Blackhawknetwork,connectors::Boku,@@ -8864,7 +8864,7 @@ default_imp_for_external_vault_proxy_payments_create!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Breadpay,diff --git a/crates/hyperswitch_connectors/src/default_implementations_v2.rs b/crates/hyperswitch_connectors/src/default_implementations_v2.rsindex 260f5984a8..5cbc7a8531 100644--- a/crates/hyperswitch_connectors/src/default_implementations_v2.rs+++ b/crates/hyperswitch_connectors/src/default_implementations_v2.rs@@ -284,7 +284,7 @@ default_imp_for_new_connector_integration_payment!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -435,7 +435,7 @@ default_imp_for_new_connector_integration_refund!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -717,7 +717,7 @@ default_imp_for_new_connector_integration_connector_access_token!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -868,7 +868,7 @@ default_imp_for_new_connector_integration_accept_dispute!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1017,7 +1017,7 @@ default_imp_for_new_connector_integration_fetch_disputes!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -1168,7 +1168,7 @@ default_imp_for_new_connector_integration_dispute_sync!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Braintree,@@ -1319,7 +1319,7 @@ default_imp_for_new_connector_integration_defend_dispute!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1469,7 +1469,7 @@ default_imp_for_new_connector_integration_submit_evidence!(connectors::Billwerk,connectors::Bitpay,connectors::Bluesnap,- connectors::Bluecode,+ connectors::Calida,connectors::Blackhawknetwork,connectors::Braintree,connectors::Breadpay,@@ -1628,7 +1628,7 @@ default_imp_for_new_connector_integration_file_upload!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1780,7 +1780,7 @@ default_imp_for_new_connector_integration_payouts_create!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -1932,7 +1932,7 @@ default_imp_for_new_connector_integration_payouts_eligibility!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2084,7 +2084,7 @@ default_imp_for_new_connector_integration_payouts_fulfill!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2236,7 +2236,7 @@ default_imp_for_new_connector_integration_payouts_cancel!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2388,7 +2388,7 @@ default_imp_for_new_connector_integration_payouts_quote!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2540,7 +2540,7 @@ default_imp_for_new_connector_integration_payouts_recipient!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2692,7 +2692,7 @@ default_imp_for_new_connector_integration_payouts_sync!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2844,7 +2844,7 @@ default_imp_for_new_connector_integration_payouts_recipient_account!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -2994,7 +2994,7 @@ default_imp_for_new_connector_integration_webhook_source_verification!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3146,7 +3146,7 @@ default_imp_for_new_connector_integration_frm_sale!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3298,7 +3298,7 @@ default_imp_for_new_connector_integration_frm_checkout!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3450,7 +3450,7 @@ default_imp_for_new_connector_integration_frm_transaction!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3602,7 +3602,7 @@ default_imp_for_new_connector_integration_frm_fulfillment!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3754,7 +3754,7 @@ default_imp_for_new_connector_integration_frm_record_return!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -3904,7 +3904,7 @@ default_imp_for_new_connector_integration_revoking_mandates!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4043,7 +4043,7 @@ default_imp_for_new_connector_integration_frm!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Breadpay,@@ -4192,7 +4192,7 @@ default_imp_for_new_connector_integration_connector_authentication!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Breadpay,@@ -4330,7 +4330,7 @@ default_imp_for_new_connector_integration_revenue_recovery!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Boku,connectors::Breadpay,@@ -4481,7 +4481,7 @@ default_imp_for_new_connector_integration_external_vault!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Boku,@@ -4631,7 +4631,7 @@ default_imp_for_new_connector_integration_external_vault_proxy!(connectors::Billwerk,connectors::Bitpay,connectors::Blackhawknetwork,- connectors::Bluecode,+ connectors::Calida,connectors::Bluesnap,connectors::Braintree,connectors::Breadpay,diff --git a/crates/hyperswitch_domain_models/src/connector_endpoints.rs b/crates/hyperswitch_domain_models/src/connector_endpoints.rsindex 5847ba826e..920a224253 100644--- a/crates/hyperswitch_domain_models/src/connector_endpoints.rs+++ b/crates/hyperswitch_domain_models/src/connector_endpoints.rs@@ -28,7 +28,7 @@ pub struct Connectors {pub billwerk: ConnectorParams,pub bitpay: ConnectorParams,pub blackhawknetwork: ConnectorParams,- pub bluecode: ConnectorParams,+ pub calida: ConnectorParams,pub bluesnap: ConnectorParamsWithSecondaryBaseUrl,pub boku: ConnectorParams,pub braintree: ConnectorParams,diff --git a/crates/payment_methods/src/configs/payment_connector_required_fields.rs b/crates/payment_methods/src/configs/payment_connector_required_fields.rsindex b9af92239c..f52390c0dc 100644--- a/crates/payment_methods/src/configs/payment_connector_required_fields.rs+++ b/crates/payment_methods/src/configs/payment_connector_required_fields.rs@@ -3576,7 +3576,7 @@ fn get_bank_transfer_required_fields() -> HashMap<enums::PaymentMethodType, Conn},),(- Connector::Bluecode,+ Connector::Calida,RequiredFieldFinal {mandate: HashMap::new(),non_mandate: HashMap::new(),diff --git a/crates/router/src/connector.rs b/crates/router/src/connector.rsindex b4eab9ea6e..7bb2de0ffd 100644--- a/crates/router/src/connector.rs+++ b/crates/router/src/connector.rs@@ -9,9 +9,9 @@ pub use hyperswitch_connectors::connectors::{authorizedotnet::Authorizedotnet, bambora, bambora::Bambora, bamboraapac,bamboraapac::Bamboraapac, bankofamerica, bankofamerica::Bankofamerica, barclaycard,barclaycard::Barclaycard, billwerk, billwerk::Billwerk, bitpay, bitpay::Bitpay,- blackhawknetwork, blackhawknetwork::Blackhawknetwork, bluecode, bluecode::Bluecode, bluesnap,- bluesnap::Bluesnap, boku, boku::Boku, braintree, braintree::Braintree, breadpay,- breadpay::Breadpay, cashtocode, cashtocode::Cashtocode, celero, celero::Celero, chargebee,+ blackhawknetwork, blackhawknetwork::Blackhawknetwork, bluesnap, bluesnap::Bluesnap, boku,+ boku::Boku, braintree, braintree::Braintree, breadpay, breadpay::Breadpay, calida,+ calida::Calida, cashtocode, cashtocode::Cashtocode, celero, celero::Celero, chargebee,chargebee::Chargebee, checkbook, checkbook::Checkbook, checkout, checkout::Checkout, coinbase,coinbase::Coinbase, coingate, coingate::Coingate, cryptopay, cryptopay::Cryptopay,ctp_mastercard, ctp_mastercard::CtpMastercard, custombilling, custombilling::Custombilling,diff --git a/crates/router/src/core/connector_validation.rs b/crates/router/src/core/connector_validation.rsindex bcd766b116..db8f6be6b9 100644--- a/crates/router/src/core/connector_validation.rs+++ b/crates/router/src/core/connector_validation.rs@@ -141,9 +141,9 @@ impl ConnectorAuthTypeAndMetadataValidation<'_> {blackhawknetwork::transformers::BlackhawknetworkAuthType::try_from(self.auth_type)?;Ok(())}- api_enums::Connector::Bluecode => {- bluecode::transformers::BluecodeAuthType::try_from(self.auth_type)?;- bluecode::transformers::BluecodeMetadataObject::try_from(self.connector_meta_data)?;+ api_enums::Connector::Calida => {+ calida::transformers::CalidaAuthType::try_from(self.auth_type)?;+ calida::transformers::CalidaMetadataObject::try_from(self.connector_meta_data)?;Ok(())}api_enums::Connector::Braintree => {diff --git a/crates/router/src/types/api/connector_mapping.rs b/crates/router/src/types/api/connector_mapping.rsindex 5587462df8..ba8d741c37 100644--- a/crates/router/src/types/api/connector_mapping.rs+++ b/crates/router/src/types/api/connector_mapping.rs@@ -152,8 +152,8 @@ impl ConnectorData {enums::Connector::Bluesnap => {Ok(ConnectorEnum::Old(Box::new(connector::Bluesnap::new())))}- enums::Connector::Bluecode => {- Ok(ConnectorEnum::Old(Box::new(connector::Bluecode::new())))+ enums::Connector::Calida => {+ Ok(ConnectorEnum::Old(Box::new(connector::Calida::new())))}enums::Connector::Boku => Ok(ConnectorEnum::Old(Box::new(connector::Boku::new()))),enums::Connector::Braintree => {diff --git a/crates/router/src/types/api/feature_matrix.rs b/crates/router/src/types/api/feature_matrix.rsindex 20bb99a6bc..604ffc8b6d 100644--- a/crates/router/src/types/api/feature_matrix.rs+++ b/crates/router/src/types/api/feature_matrix.rs@@ -67,12 +67,9 @@ impl FeatureMatrixConnectorData {enums::Connector::Bluesnap => {Ok(ConnectorEnum::Old(Box::new(connector::Bluesnap::new())))}- enums::Connector::Bluecode => {- Ok(ConnectorEnum::Old(Box::new(connector::Bluecode::new())))+ enums::Connector::Calida => {+ Ok(ConnectorEnum::Old(Box::new(connector::Calida::new())))}- // enums::Connector::Bluecode => {- // Ok(ConnectorEnum::Old(Box::new(connector::Bluecode::new())))- // }enums::Connector::Boku => Ok(ConnectorEnum::Old(Box::new(connector::Boku::new()))),enums::Connector::Braintree => {Ok(ConnectorEnum::Old(Box::new(connector::Braintree::new())))diff --git a/crates/router/src/types/connector_transformers.rs b/crates/router/src/types/connector_transformers.rsindex 1455b3a871..34895bbdd1 100644--- a/crates/router/src/types/connector_transformers.rs+++ b/crates/router/src/types/connector_transformers.rs@@ -24,7 +24,7 @@ impl ForeignTryFrom<api_enums::Connector> for common_enums::RoutableConnectors {api_enums::Connector::Bitpay => Self::Bitpay,api_enums::Connector::Bluesnap => Self::Bluesnap,api_enums::Connector::Blackhawknetwork => Self::Blackhawknetwork,- api_enums::Connector::Bluecode => Self::Bluecode,+ api_enums::Connector::Calida => Self::Calida,api_enums::Connector::Boku => Self::Boku,api_enums::Connector::Braintree => Self::Braintree,api_enums::Connector::Breadpay => Self::Breadpay,diff --git a/crates/router/tests/connectors/bluecode.rs b/crates/router/tests/connectors/calida.rssimilarity index 97%rename from crates/router/tests/connectors/bluecode.rsrename to crates/router/tests/connectors/calida.rsindex a911cffc0f..2307570c8d 100644--- a/crates/router/tests/connectors/bluecode.rs+++ b/crates/router/tests/connectors/calida.rs@@ -6,13 +6,13 @@ use test_utils::connector_auth;use crate::utils::{self, ConnectorActions};#[derive(Clone, Copy)]-struct BluecodeTest;-impl ConnectorActions for BluecodeTest {}-impl utils::Connector for BluecodeTest {+struct CalidaTest;+impl ConnectorActions for CalidaTest {}+impl utils::Connector for CalidaTest {fn get_data(&self) -> api::ConnectorData {- use router::connector::Bluecode;+ use router::connector::Calida;utils::construct_connector_data_old(- Box::new(Bluecode::new()),+ Box::new(Calida::new()),types::Connector::Plaid,api::GetToken::Connector,None,@@ -22,18 +22,18 @@ impl utils::Connector for BluecodeTest {fn get_auth_token(&self) -> types::ConnectorAuthType {utils::to_connector_auth_type(connector_auth::ConnectorAuthentication::new()- .bluecode+ .calida.expect("Missing connector authentication configuration").into(),)}fn get_name(&self) -> String {- "bluecode".to_string()+ "calida".to_string()}}-static CONNECTOR: BluecodeTest = BluecodeTest {};+static CONNECTOR: CalidaTest = CalidaTest {};fn get_default_payment_info() -> Option<utils::PaymentInfo> {Nonediff --git a/crates/router/tests/connectors/main.rs b/crates/router/tests/connectors/main.rsindex a43b1ef45f..205222f28b 100644--- a/crates/router/tests/connectors/main.rs+++ b/crates/router/tests/connectors/main.rs@@ -22,10 +22,10 @@ mod barclaycard;mod billwerk;mod bitpay;mod blackhawknetwork;-mod bluecode;mod bluesnap;mod boku;mod breadpay;+mod calida;mod cashtocode;mod celero;mod chargebee;diff --git a/crates/router/tests/connectors/sample_auth.toml b/crates/router/tests/connectors/sample_auth.tomlindex f48e67aff8..45ce89a56c 100644--- a/crates/router/tests/connectors/sample_auth.toml+++ b/crates/router/tests/connectors/sample_auth.toml@@ -364,7 +364,7 @@ key1="Client Secret"[payload]api_key="API Key"-[bluecode]+[calida]api_key="EOrder Token"[peachpayments]diff --git a/crates/test_utils/src/connector_auth.rs b/crates/test_utils/src/connector_auth.rsindex 1f4dbbef0f..b7456ae8d1 100644--- a/crates/test_utils/src/connector_auth.rs+++ b/crates/test_utils/src/connector_auth.rs@@ -29,7 +29,7 @@ pub struct ConnectorAuthentication {pub billwerk: Option<HeaderKey>,pub bitpay: Option<HeaderKey>,pub blackhawknetwork: Option<HeaderKey>,- pub bluecode: Option<HeaderKey>,+ pub calida: Option<HeaderKey>,pub bluesnap: Option<BodyKey>,pub boku: Option<BodyKey>,pub breadpay: Option<BodyKey>,diff --git a/loadtest/config/development.toml b/loadtest/config/development.tomlindex fc2180a278..f3b4b20c30 100644--- a/loadtest/config/development.toml+++ b/loadtest/config/development.toml@@ -93,7 +93,7 @@ billwerk.base_url = "https://api.reepay.com/"billwerk.secondary_base_url = "https://card.reepay.com/"bitpay.base_url = "https://test.bitpay.com"blackhawknetwork.base_url = "https://api-sandbox.blackhawknetwork.com/"-bluecode.base_url = "https://dev.eorder.reloadhero.com/"+calida.base_url = "https://dev.eorder.reloadhero.com/"bluesnap.base_url = "https://sandbox.bluesnap.com/"bluesnap.secondary_base_url = "https://sandpay.bluesnap.com/"boku.base_url = "https://country-api4-stage.boku.com"@@ -644,7 +644,7 @@ eft = { country = "NG, ZA, GH, KE, CI", currency = "NGN, GHS, ZAR, KES, USD" }[pm_filters.santander]pix = { country = "BR", currency = "BRL" }-[pm_filters.bluecode]+[pm_filters.calida]bluecode = { country = "AT,BE,BG,HR,CY,CZ,DK,EE,FI,FR,DE,GR,HU,IE,IT,LV,LT,LU,MT,NL,PL,PT,RO,SK,SI,ES,SE,IS,LI,NO", currency = "EUR" }[pm_filters.airwallex]