mirror of
https://github.com/teloxide/teloxide.git
synced 2025-03-24 23:57:38 +01:00
SuccessfulPayment::currency type switch to Currency
This commit is contained in:
parent
80a9ebebd2
commit
21ea73eafd
1 changed files with 2 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
||||||
use serde::{Deserialize, Serialize};
|
use serde::{Deserialize, Serialize};
|
||||||
|
|
||||||
use crate::types::OrderInfo;
|
use crate::types::{OrderInfo, Currency};
|
||||||
|
|
||||||
/// This object contains basic information about a successful payment.
|
/// This object contains basic information about a successful payment.
|
||||||
///
|
///
|
||||||
|
@ -11,7 +11,7 @@ pub struct SuccessfulPayment {
|
||||||
/// Three-letter ISO 4217 [currency] code.
|
/// Three-letter ISO 4217 [currency] code.
|
||||||
///
|
///
|
||||||
/// [currency]: https://core.telegram.org/bots/payments#supported-currencies
|
/// [currency]: https://core.telegram.org/bots/payments#supported-currencies
|
||||||
pub currency: String,
|
pub currency: Currency,
|
||||||
|
|
||||||
/// Total price in the smallest units of the currency (integer, not
|
/// Total price in the smallest units of the currency (integer, not
|
||||||
/// float/double). For example, for a price of `US$ 1.45` pass `amount =
|
/// float/double). For example, for a price of `US$ 1.45` pass `amount =
|
||||||
|
|
Loading…
Add table
Reference in a new issue