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
//! Model struct for SubscriptionPricing type.

use crate::models::Money;
use crate::models::enums::SubscriptionPricingType;
use serde::{Deserialize, Serialize};

/// Describes the pricing for the subscription.
#[derive(Clone, Debug, Default, Deserialize, Eq, PartialEq, Serialize)]
pub struct SubscriptionPricing {
    /// `RELATIVE` or `STATIC`
    pub r#type: Option<SubscriptionPricingType>,
    /// The ids of the discount catalog objects
    pub discount_ids: Option<Vec<String>>,
    /// The price of the subscription, if STATIC
    pub price_money: Option<Money>,
}