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
#![doc(alias = "points")]
#![doc(alias = "channel.channel_points_custom_reward_redemption")]
use super::{EventSubscription, EventType};
use crate::types;
use serde::{Deserialize, Serialize};
pub mod add;
pub mod update;
#[doc(inline)]
pub use add::{
ChannelPointsCustomRewardRedemptionAddV1, ChannelPointsCustomRewardRedemptionAddV1Payload,
};
#[doc(inline)]
pub use update::{
ChannelPointsCustomRewardRedemptionUpdateV1, ChannelPointsCustomRewardRedemptionUpdateV1Payload,
};
#[derive(Clone, Debug, PartialEq, PartialOrd, Eq, Ord, Hash, Serialize, Deserialize)]
#[cfg_attr(not(feature = "allow_unknown_fields"), serde(deny_unknown_fields))]
#[non_exhaustive]
pub struct Reward {
pub cost: i64,
pub id: types::RewardId,
pub prompt: String,
pub title: String,
}
#[derive(PartialEq, Eq, Serialize, Deserialize, Clone, Debug)]
#[serde(rename_all = "lowercase")]
pub enum RedemptionStatus {
Unfulfilled,
Fulfilled,
Canceled,
Unknown,
}