Skip to content

Commit

Permalink
telegram bot api 7.7 (#177)
Browse files Browse the repository at this point in the history
  • Loading branch information
ayrat555 authored Jul 14, 2024
1 parent 2f94a22 commit 9d9f038
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions src/objects.rs
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,10 @@ pub struct Message {
#[builder(setter(into, strip_option), default)]
pub successful_payment: Option<Box<SuccessfulPayment>>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
pub refunded_payment: Option<Box<RefundedPayment>>,

#[serde(skip_serializing_if = "Option::is_none")]
#[builder(setter(into, strip_option), default)]
pub users_shared: Option<Box<UsersShared>>,
Expand Down Expand Up @@ -3676,6 +3680,23 @@ pub struct SuccessfulPayment {
pub provider_payment_charge_id: String,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)]
pub struct RefundedPayment {
#[builder(setter(into))]
pub currency: String,

pub total_amount: u32,

#[builder(setter(into))]
pub invoice_payload: String,

#[builder(setter(into))]
pub telegram_payment_charge_id: String,

#[builder(setter(into))]
pub provider_payment_charge_id: Option<String>,
}

#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq, Builder)]
pub struct ShippingQuery {
#[builder(setter(into))]
Expand Down

0 comments on commit 9d9f038

Please sign in to comment.