square_api_client/models/subscription_action.rs
1//! Model struct for SubscriptionAction type
2
3use serde::{Deserialize, Serialize};
4
5use super::enums::SubscriptionActionType;
6
7/// Represents an action as a pending change to a subscription.
8#[derive(Clone, Debug, Deserialize, Eq, PartialEq, Serialize)]
9pub struct SubscriptionAction {
10 /// The ID of an action scoped to a subscription.
11 pub id: Option<String>,
12 /// The type of the action.
13 pub r#type: Option<SubscriptionActionType>,
14 /// The `YYYY-MM-DD`-formatted date when the action occurs on the subscription.
15 pub effective_date: Option<String>,
16 /// The target subscription plan a subscription switches to, for a `SWAP_PLAN` action.
17 pub new_plan_id: Option<String>,
18}