This commit is contained in:
Edgar 2022-05-12 09:58:44 +02:00
parent a4c4838aaf
commit 7714124270
No known key found for this signature in database
GPG key ID: 8731E6C0166EAA85
5 changed files with 15 additions and 9 deletions

View file

@ -103,7 +103,9 @@ pub struct GetInvoice {
impl GetInvoice {
/// New constructor.
pub fn new(invoice_id: impl ToString) -> Self {
Self { invoice_id: invoice_id.to_string() }
Self {
invoice_id: invoice_id.to_string(),
}
}
}
@ -172,7 +174,9 @@ pub struct DeleteInvoice {
impl DeleteInvoice {
/// New constructor.
pub fn new(invoice_id: impl ToString) -> Self {
Self { invoice_id: invoice_id.to_string() }
Self {
invoice_id: invoice_id.to_string(),
}
}
}
@ -255,7 +259,10 @@ pub struct CancelInvoice {
impl CancelInvoice {
/// New constructor.
pub fn new(invoice_id: impl ToString, reason: CancelReason) -> Self {
Self { invoice_id: invoice_id.to_string(), reason }
Self {
invoice_id: invoice_id.to_string(),
reason,
}
}
}

View file

@ -2,8 +2,7 @@
use serde::{Deserialize, Serialize};
use super::common::{AuthorizationStatusDetails, Money, SellerProtection, LinkDescription};
use super::common::{AuthorizationStatusDetails, LinkDescription, Money, SellerProtection};
/// Payment Status
#[derive(Debug, Serialize, Deserialize, Eq, PartialEq, Clone, Copy)]