square_api_client/models/
pause_subscription_response.rs

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