squareup 2.13.0

Rust SDK for the Square Developer API
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
//! Request body struct for the Swap Plan API

use crate::models::PhaseInput;
use serde::Serialize;

/// This is a model struct for the SwapPlanRequest type.
#[derive(Clone, Debug, Default, Eq, PartialEq, Serialize)]
pub struct SwapPlanRequest {
    /// The ID of the new subscription plan variation.
    pub new_plan_variation_id: String,
    /// A list of PhaseInputs, to pass phase-specific information used in the swap.
    pub phases: Option<Vec<PhaseInput>>,
}