refactor(payout): move payout quote call to payout core from execute_pretasks (#4900)

This commit is contained in:
Hrithikesh
2024-06-07 16:14:05 +05:30
committed by GitHub
parent 39d46fd015
commit d0fd7095cd
10 changed files with 71 additions and 160 deletions

View File

@ -155,6 +155,10 @@ impl Connector {
matches!((self, payout_method), (_, PayoutType::Card))
}
#[cfg(feature = "payouts")]
pub fn is_payout_quote_call_required(&self) -> bool {
matches!(self, Self::Wise)
}
#[cfg(feature = "payouts")]
pub fn supports_access_token_for_payout(&self, payout_method: PayoutType) -> bool {
matches!((self, payout_method), (Self::Paypal, _))
}