use crate::Request;
use serde::{Deserialize, Serialize};
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct Discounts {
#[serde(rename = "index")]
pub index: Option<i32>,
#[serde(rename = "rate")]
pub rate: Option<i32>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PddAdApiPlanUpdatePlanDiscount {
#[serde(rename = "planDiscount")]
pub plan_discount: Option<PlanDiscount>,
#[serde(rename = "planId")]
pub plan_id: Option<i64>,
}
#[derive(Serialize, Deserialize, Debug, Default)]
pub struct PlanDiscount {
#[serde(rename = "discounts")]
pub discounts: Option<Vec<Discounts>>,
}
impl Request for PddAdApiPlanUpdatePlanDiscount {
fn get_type() -> String {
"pdd.ad.api.plan.update.plan.discount".to_string()
}
fn get_response_name() -> String {
"response".to_string()
}
}