pub struct PaymentDetail {Show 16 fields
pub amount: String,
pub chain: Option<String>,
pub completion_fee: Option<String>,
pub disbursement_method: Option<String>,
pub disbursement_ref: Option<String>,
pub disbursement_tx_hash: Option<String>,
pub escrow_capture_tx_hash: Option<String>,
pub escrow_channel_id: Option<String>,
pub escrow_hold_tx_hash: Option<String>,
pub held_at: Option<DateTime<Utc>>,
pub memo: Option<String>,
pub memo_hash: Option<String>,
pub provider_escrow_ref: Option<String>,
pub released_at: Option<DateTime<Utc>>,
pub status: String,
pub task_id: Uuid,
}Expand description
PaymentDetail
JSON schema
{
"type": "object",
"required": [
"amount",
"status",
"task_id"
],
"properties": {
"amount": {
"description": "Escrowed task amount",
"examples": [
"100.00"
],
"type": "string"
},
"chain": {
"description": "Settlement chain (e.g. `tempo`)",
"examples": [
"tempo"
],
"type": "string"
},
"completion_fee": {
"description": "Marketplace completion fee deducted from payout",
"examples": [
"10.00"
],
"type": [
"string",
"null"
]
},
"disbursement_method": {
"type": [
"string",
"null"
]
},
"disbursement_ref": {
"description": "Provider-side transfer identifier for the disbursement",
"type": [
"string",
"null"
]
},
"disbursement_tx_hash": {
"description": "On-chain transaction hash for the final agent payout",
"type": [
"string",
"null"
]
},
"escrow_capture_tx_hash": {
"description": "On-chain transaction hash for the escrow hold capture",
"type": [
"string",
"null"
]
},
"escrow_channel_id": {
"description": "Tempo stream channel identifier",
"type": [
"string",
"null"
]
},
"escrow_hold_tx_hash": {
"description": "On-chain transaction hash for the escrow hold",
"type": [
"string",
"null"
]
},
"held_at": {
"description": "When escrow was confirmed",
"type": [
"string",
"null"
],
"format": "date-time"
},
"memo": {
"description": "Optional plaintext memo associated with the payment",
"type": [
"string",
"null"
]
},
"memo_hash": {
"description": "Hex-encoded keccak hash of the memo (`0x` prefix)",
"type": [
"string",
"null"
]
},
"provider_escrow_ref": {
"description": "Tempo Session / provider escrow reference",
"type": [
"string",
"null"
]
},
"released_at": {
"description": "When disbursement was initiated",
"type": [
"string",
"null"
],
"format": "date-time"
},
"status": {
"description": "Current payment lifecycle status",
"examples": [
"disbursement_pending"
],
"type": "string"
},
"task_id": {
"description": "Task identifier",
"type": "string",
"format": "uuid"
}
},
"additionalProperties": false
}Fields§
§amount: StringEscrowed task amount
chain: Option<String>Settlement chain (e.g. tempo)
completion_fee: Option<String>Marketplace completion fee deducted from payout
disbursement_method: Option<String>§disbursement_ref: Option<String>Provider-side transfer identifier for the disbursement
disbursement_tx_hash: Option<String>On-chain transaction hash for the final agent payout
escrow_capture_tx_hash: Option<String>On-chain transaction hash for the escrow hold capture
escrow_channel_id: Option<String>Tempo stream channel identifier
escrow_hold_tx_hash: Option<String>On-chain transaction hash for the escrow hold
held_at: Option<DateTime<Utc>>When escrow was confirmed
memo: Option<String>Optional plaintext memo associated with the payment
memo_hash: Option<String>Hex-encoded keccak hash of the memo (0x prefix)
provider_escrow_ref: Option<String>Tempo Session / provider escrow reference
released_at: Option<DateTime<Utc>>When disbursement was initiated
status: StringCurrent payment lifecycle status
task_id: UuidTask identifier
Trait Implementations§
Source§impl Clone for PaymentDetail
impl Clone for PaymentDetail
Source§fn clone(&self) -> PaymentDetail
fn clone(&self) -> PaymentDetail
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PaymentDetail
impl Debug for PaymentDetail
Source§impl<'de> Deserialize<'de> for PaymentDetail
impl<'de> Deserialize<'de> for PaymentDetail
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for PaymentDetail
impl RefUnwindSafe for PaymentDetail
impl Send for PaymentDetail
impl Sync for PaymentDetail
impl Unpin for PaymentDetail
impl UnsafeUnpin for PaymentDetail
impl UnwindSafe for PaymentDetail
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more