From 21ea73eafd8c92a044ca46264231650463c15054 Mon Sep 17 00:00:00 2001 From: p0lunin Date: Fri, 10 Jan 2020 12:27:30 +0200 Subject: [PATCH] SuccessfulPayment::currency type switch to Currency --- src/types/successful_payment.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/types/successful_payment.rs b/src/types/successful_payment.rs index a3508bd7..8b06dc89 100644 --- a/src/types/successful_payment.rs +++ b/src/types/successful_payment.rs @@ -1,6 +1,6 @@ use serde::{Deserialize, Serialize}; -use crate::types::OrderInfo; +use crate::types::{OrderInfo, Currency}; /// This object contains basic information about a successful payment. /// @@ -11,7 +11,7 @@ pub struct SuccessfulPayment { /// Three-letter ISO 4217 [currency] code. /// /// [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 /// float/double). For example, for a price of `US$ 1.45` pass `amount =