mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-10-30 09:38:33 +08:00
fix(routing/tests): fix unit tests for routing (#4438)
This commit is contained in:
@ -304,7 +304,7 @@ mod tests {
|
||||
& payment_method /= reward
|
||||
& payment_method /= voucher
|
||||
& payment_method /= gift_card
|
||||
|
||||
& payment_method /= card_redirect
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -306,7 +306,7 @@ pub enum DirKeyKind {
|
||||
#[serde(rename = "setup_future_usage")]
|
||||
SetupFutureUsage,
|
||||
#[strum(
|
||||
serialize = "card_redirect_type",
|
||||
serialize = "card_redirect",
|
||||
detailed_message = "Supported types of Card Redirect payment method",
|
||||
props(Category = "Payment Method Types")
|
||||
)]
|
||||
@ -559,7 +559,7 @@ impl DirValue {
|
||||
Self::CardBin(_) => (DirKeyKind::CardBin, None),
|
||||
Self::RewardType(_) => (DirKeyKind::RewardType, None),
|
||||
Self::BusinessCountry(_) => (DirKeyKind::BusinessCountry, None),
|
||||
Self::BillingCountry(_) => (DirKeyKind::CardBin, None),
|
||||
Self::BillingCountry(_) => (DirKeyKind::BillingCountry, None),
|
||||
Self::BankTransferType(_) => (DirKeyKind::BankTransferType, None),
|
||||
Self::UpiType(_) => (DirKeyKind::UpiType, None),
|
||||
Self::CardType(_) => (DirKeyKind::CardType, None),
|
||||
|
||||
@ -544,6 +544,7 @@ mod tests {
|
||||
"connector_type": "payment_processor",
|
||||
"connector_name": "bluesnap",
|
||||
"merchant_connector_id": "REDACTED",
|
||||
"status": "inactive",
|
||||
"connector_account_details": {
|
||||
"auth_type": "BodyKey",
|
||||
"api_key": "REDACTED",
|
||||
@ -625,6 +626,7 @@ mod tests {
|
||||
"connector_type": "payment_processor",
|
||||
"connector_name": "stripe",
|
||||
"merchant_connector_id": "REDACTED",
|
||||
"status": "inactive",
|
||||
"connector_account_details": {
|
||||
"auth_type": "HeaderKey",
|
||||
"api_key": "REDACTED"
|
||||
|
||||
Reference in New Issue
Block a user