square_api_client/models/create_subscription_response.rs
1//! Response struct for the Create Subscription API
2
3use serde::Deserialize;
4
5use super::{errors::Error, Subscription};
6
7/// This is a model struct for CreateSubscriptionResponse type.
8#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq)]
9pub struct CreateSubscriptionResponse {
10 /// Errors encountered during the request.
11 pub errors: Option<Vec<Error>>,
12 /// The newly created subscription.
13 ///
14 /// For more information, see [Subscription
15 /// object](https://developer.squareup.com/docs/subscriptions-api/overview#subscription-object).
16 pub subscription: Subscription,
17}