[][src]Struct opennode::withdrawal::Withdrawal

pub struct Withdrawal {
    pub id: String,
    pub amount: u64,
    pub fiat_value: Option<u64>,
    pub kind: Type,
    pub reference: String,
    pub fee: Option<u64>,
    pub status: Status,
    pub processed_at: Option<u64>,
    pub error: Option<String>,
    pub hashed_order: Option<String>,
}

Withdrawal is a withdrawal resource.

Fields

id: Stringamount: u64

Withdrawal amount in satoshis

fiat_value: Option<u64>

Withdrawal fiat_value

kind: Type

kind of the transaction ln/chain

reference: String

invoice or tx

fee: Option<u64>

Withdrawal fee in satoshis

status: Status

unpaid/processing/paid

processed_at: Option<u64>

timestamp

error: Option<String>

error if status == failed

hashed_order: Option<String>

Hashed Order OpenNode signs all charge related events it sends to your endpoints by including a hashed_order field on the event payload. This allows you to validate that the events were sent by OpenNode and not by a third party.

You can verify the signatures by computing an HMAC with the SHA256 hash function. Use the api-key used on the charge creation as the key, and the charge id as the message.

Trait Implementations

impl Debug for Withdrawal[src]

impl Serialize for Withdrawal[src]

impl<'de> Deserialize<'de> for Withdrawal[src]

Auto Trait Implementations

Blanket Implementations

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]