use crate::models;
use serde::{Deserialize, Serialize};
#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)]
#[serde(untagged)]
pub enum CashBackPriceInfoResponse {
CashBackFixedPriceInfoResponse(Box<models::CashBackFixedPriceInfoResponse>),
CashBackPercentagePriceInfoResponse(Box<models::CashBackPercentagePriceInfoResponse>),
}
impl Default for CashBackPriceInfoResponse {
fn default() -> Self {
Self::CashBackFixedPriceInfoResponse(Box::new(Default::default()))
}
}
impl From<models::CashBackFixedPriceInfoResponse> for CashBackPriceInfoResponse {
fn from(value: models::CashBackFixedPriceInfoResponse) -> Self {
CashBackPriceInfoResponse::CashBackFixedPriceInfoResponse(Box::new(value))
}
}
impl From<models::CashBackPercentagePriceInfoResponse> for CashBackPriceInfoResponse {
fn from(value: models::CashBackPercentagePriceInfoResponse) -> Self {
CashBackPriceInfoResponse::CashBackPercentagePriceInfoResponse(Box::new(value))
}
}