Skip to content

Commit

Permalink
refactor: resolve ci checks
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakilmostak committed May 27, 2024
1 parent e06c78a commit 3d062e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/api_models/src/webhooks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,9 @@ impl WebhookResponseTracker {
Self::Payment { payment_id, .. }
| Self::Refund { payment_id, .. }
| Self::Dispute { payment_id, .. } => Some(payment_id.to_string()),
Self::NoEffect | Self::Payout { .. } | Self::Mandate { .. } => None,
Self::NoEffect | Self::Mandate { .. } => None,
#[cfg(feature = "payouts")]
Self::Payout { .. } => None,
}
}
}
Expand Down Expand Up @@ -184,6 +186,7 @@ pub enum ObjectReferenceId {
RefundId(RefundIdType),
MandateId(MandateIdType),
ExternalAuthenticationID(AuthenticationIdType),
#[cfg(feature = "payouts")]
PayoutId(PayoutIdType),
}

Expand Down
2 changes: 2 additions & 0 deletions crates/router/src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ pub async fn get_mca_from_payment_intent(
}
}

#[cfg(feature = "payouts")]
pub async fn get_mca_from_payout_attempt(
db: &dyn StorageInterface,
merchant_account: &domain::MerchantAccount,
Expand Down Expand Up @@ -534,6 +535,7 @@ pub async fn get_mca_from_object_reference_id(
)
.await
}
#[cfg(feature = "payouts")]
webhooks::ObjectReferenceId::PayoutId(payout_id_type) => {
get_mca_from_payout_attempt(
db,
Expand Down

0 comments on commit 3d062e4

Please sign in to comment.