1 2 3 4 5 6 7 8 9 10 11 12 13
//! Model for TaxCalculationPhase enum.
use serde::{Deserialize, Serialize};
/// When to calculate the taxes due on a cart.
#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
#[serde(rename_all = "SCREAMING_SNAKE_CASE")]
pub enum TaxCalculationPhase {
/// The fee is calculated based on the payment's subtotal.
TaxSubtotalPhase,
/// The fee is calculated based on the payment's total.
TaxTotalPhase,
}