fix(routing/tests): fix unit tests for routing (#4438)

This commit is contained in:
Shanks
2024-04-24 14:55:13 +05:30
committed by GitHub
parent 56f14b935d
commit 1d0d94d5e6
3 changed files with 5 additions and 3 deletions

View File

@ -304,7 +304,7 @@ mod tests {
& payment_method /= reward
& payment_method /= voucher
& payment_method /= gift_card
& payment_method /= card_redirect
}
}
}

View File

@ -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),

View File

@ -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"