Struct offchain::types::PaymentObject [−][src]
pub struct PaymentObject {
pub sender: PaymentActorObject,
pub receiver: PaymentActorObject,
pub reference_id: Uuid,
pub originial_payment_reference_id: Option<Uuid>,
pub recipient_signature: Option<String>,
pub action: PaymentActionObject,
pub description: Option<String>,
}Expand description
Some fields are immutable after they are defined once. Others can be updated multiple times (see below). Updating immutable fields with a different value results in a Command error.
Fields
sender: PaymentActorObjectInformation about the sender in this payment
receiver: PaymentActorObjectInformation about the receiver in this payment
reference_id: UuidUnique reference ID of this payment on the payment initiator VASP (the VASP which originally created this payment Object). This value should be globally unique. This field is mandatory on payment creation and immutable after that. We recommend using a 128 bits long UUID according to RFC4122 with “-”’s included.
originial_payment_reference_id: Option<Uuid>Used to refer an old payment known to the other VASP. For example, used for refunds. The reference ID of the original payment will be placed into this field. This field is mandatory on refund and immutable
recipient_signature: Option<String>Signature of the recipient of this transaction encoded in hex. The is signed with the compliance key of the recipient VASP and is used for on-chain attestation from the recipient party. This may be omitted on blockchains which do not require on-chain attestation.
action: PaymentActionObjectNumber of cryptocurrency + currency type (XUS, etc.)1 + type of action to take. This field is mandatory and immutable
description: Option<String>Description of the payment. To be displayed to the user. Unicode utf-8 encoded max length of 255 characters. This field is optional but can only be written once.
Implementations
Trait Implementations
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
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for PaymentObject
impl Send for PaymentObject
impl Sync for PaymentObject
impl Unpin for PaymentObject
impl UnwindSafe for PaymentObject
Blanket Implementations
Mutably borrows from an owned value. Read more
Instruments this type with the provided Span, returning an
Instrumented wrapper. Read more
type Output = T
type Output = T
Should always be Self
Generates a hash used only for tests.