use url::Url;
#[derive(Debug, Clone, PartialEq, Eq)]
#[non_exhaustive]
pub enum NextAction {
RedirectToUrl { url: Url },
EmbeddedCheckout { client_secret: String },
MobileMoneyPrompt { message: String },
None,
}
#[cfg(test)]
mod tests {
use super::*;
#[test]
fn embedded_checkout_action_carries_client_secret() {
let action = NextAction::EmbeddedCheckout {
client_secret: "cs_test_secret_payrail".to_owned(),
};
assert_eq!(
action,
NextAction::EmbeddedCheckout {
client_secret: "cs_test_secret_payrail".to_owned()
}
);
}
}