pub struct MessagePaymentSuccessfulBot {
pub currency: String,
pub total_amount: i64,
pub subscription_until_date: i32,
pub is_recurring: bool,
pub is_first_recurring: bool,
pub invoice_payload: String,
pub shipping_option_id: String,
pub order_info: Option<OrderInfo>,
pub telegram_payment_charge_id: String,
pub provider_payment_charge_id: String,
}Expand description
A payment has been received by the bot or the business account
Fields§
§currency: StringCurrency for price of the product
total_amount: i64Total price for the product, in the smallest units of the currency
subscription_until_date: i32Point in time (Unix timestamp) when the subscription will expire; 0 if unknown or the payment isn’t recurring
is_recurring: boolTrue, if this is a recurring payment
is_first_recurring: boolTrue, if this is the first recurring payment
invoice_payload: StringInvoice payload
shipping_option_id: StringIdentifier of the shipping option chosen by the user; may be empty if not applicable; for bots only
order_info: Option<OrderInfo>Information about the order; may be null; for bots only
telegram_payment_charge_id: StringTelegram payment identifier
provider_payment_charge_id: StringProvider payment identifier
Trait Implementations§
Source§impl Clone for MessagePaymentSuccessfulBot
impl Clone for MessagePaymentSuccessfulBot
Source§fn clone(&self) -> MessagePaymentSuccessfulBot
fn clone(&self) -> MessagePaymentSuccessfulBot
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MessagePaymentSuccessfulBot
impl Debug for MessagePaymentSuccessfulBot
Source§impl Default for MessagePaymentSuccessfulBot
impl Default for MessagePaymentSuccessfulBot
Source§fn default() -> MessagePaymentSuccessfulBot
fn default() -> MessagePaymentSuccessfulBot
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
impl<'de> Deserialize<'de> for MessagePaymentSuccessfulBot
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl StructuralPartialEq for MessagePaymentSuccessfulBot
Auto Trait Implementations§
impl Freeze for MessagePaymentSuccessfulBot
impl RefUnwindSafe for MessagePaymentSuccessfulBot
impl Send for MessagePaymentSuccessfulBot
impl Sync for MessagePaymentSuccessfulBot
impl Unpin for MessagePaymentSuccessfulBot
impl UnsafeUnpin for MessagePaymentSuccessfulBot
impl UnwindSafe for MessagePaymentSuccessfulBot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more