format
This commit is contained in:
parent
a4c4838aaf
commit
7714124270
|
@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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)]
|
||||
|
|
Loading…
Reference in a new issue