stripe/resources/generated/
custom_unit_amount.rs

1// ======================================
2// This file was automatically generated.
3// ======================================
4
5use serde::{Deserialize, Serialize};
6
7/// The resource representing a Stripe "CustomUnitAmount".
8#[derive(Clone, Debug, Default, Deserialize, Serialize)]
9pub struct CustomUnitAmount {
10    /// The maximum unit amount the customer can specify for this item.
11    pub maximum: Option<i64>,
12
13    /// The minimum unit amount the customer can specify for this item.
14    ///
15    /// Must be at least the minimum charge amount.
16    pub minimum: Option<i64>,
17
18    /// The starting unit amount which can be updated by the customer.
19    pub preset: Option<i64>,
20}