1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
use crate::types::parameters;
use serde::Serialize;
/// Represents an [`InputInvoiceMessageContent`][docs].
///
/// [docs]: https://core.telegram.org/bots/api#inputinvoicemessagecontent
#[derive(Debug, Serialize, Eq, PartialEq, Clone, Hash)]
#[must_use]
pub struct Invoice {
#[serde(flatten)]
invoice: parameters::Invoice,
}
impl Invoice {
/// Construct an `Invoice`.
pub const fn new(invoice: parameters::Invoice) -> Self {
Self { invoice }
}
}