1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
// ======================================
// This file was automatically generated.
// ======================================
use crate::ids::{RadarValueListItemId};
use crate::params::{Object, Timestamp};
use serde::{Deserialize, Serialize};
/// The resource representing a Stripe "RadarListListItem".
///
/// For more details see <https://stripe.com/docs/api/radar/value_list_items/object>
#[derive(Clone, Debug, Default, Deserialize, Serialize)]
pub struct RadarValueListItem {
/// Unique identifier for the object.
pub id: RadarValueListItemId,
/// Time at which the object was created.
///
/// Measured in seconds since the Unix epoch.
#[serde(skip_serializing_if = "Option::is_none")]
pub created: Option<Timestamp>,
/// The name or email address of the user who added this item to the value list.
#[serde(skip_serializing_if = "Option::is_none")]
pub created_by: Option<String>,
// Always true for a deleted object
#[serde(default)]
pub deleted: bool,
/// Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.
#[serde(skip_serializing_if = "Option::is_none")]
pub livemode: Option<bool>,
/// The value of the item.
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
/// The identifier of the value list this item belongs to.
#[serde(skip_serializing_if = "Option::is_none")]
pub value_list: Option<String>,
}
impl Object for RadarValueListItem {
type Id = RadarValueListItemId;
fn id(&self) -> Self::Id {
self.id.clone()
}
fn object(&self) -> &'static str {
"radar.value_list_item"
}
}