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
14
15
16
17
//! Response body struct for the Cancel Subscription API.

use serde::Deserialize;

use super::{Subscription, SubscriptionAction, errors::Error};

/// This is a model struct for CancelSubscriptionResponse type.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
pub struct CancelSubscriptionResponse {
    /// Errors encountered during the request.
    pub errors: Option<Vec<Error>>,
    /// The specified subscription scheduled for cancellation according to the action created by the
    /// request.
    pub subscription: Option<Subscription>,
    /// A list of a single `CANCEL` action scheduled for the subscription.
    pub actions: Option<Vec<SubscriptionAction>>,
}