squareup/models/swap_plan_request.rs
1//! Request body struct for the Swap Plan API
2
3use crate::models::PhaseInput;
4use serde::Serialize;
5
6/// This is a model struct for the SwapPlanRequest type.
7#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
8pub struct SwapPlanRequest {
9 /// The ID of the new subscription plan variation.
10 pub new_plan_variation_id: String,
11 /// A list of PhaseInputs, to pass phase-specific information used in the swap.
12 pub phases: Option<Vec<PhaseInput>>,
13}