square_api_client/models/
swap_plan_response.rs

1//! Response body struct for the Swap Plan API
2
3use serde::Deserialize;
4
5use super::{errors::Error, Subscription, SubscriptionAction};
6
7/// This is a model struct for the SwapPlanResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct SwapPlanResponse {
10    /// Errors encountered during the request.
11    pub errors: Option<Vec<Error>>,
12    /// The subscription with the updated subscription plan.
13    pub subscription: Option<Subscription>,
14    /// A list of a `SWAP_PLAN` action created by the request.
15    pub actions: Option<Vec<SubscriptionAction>>,
16}