Package org.stellar.sdk.xdr
Class PaymentResult
java.lang.Object
org.stellar.sdk.xdr.PaymentResult
PaymentResult's original definition in the XDR file is:
union PaymentResult switch (PaymentResultCode code) { case PAYMENT_SUCCESS: void; case PAYMENT_MALFORMED: case PAYMENT_UNDERFUNDED: case PAYMENT_SRC_NO_TRUST: case PAYMENT_SRC_NOT_AUTHORIZED: case PAYMENT_NO_DESTINATION: case PAYMENT_NO_TRUST: case PAYMENT_NOT_AUTHORIZED: case PAYMENT_LINE_FULL: case PAYMENT_NO_ISSUER: void; };
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static PaymentResult
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static PaymentResult
fromXdrBase64
(String xdr) static PaymentResult
fromXdrByteArray
(byte[] xdr) int
hashCode()
void
setDiscriminant
(PaymentResultCode discriminant) toString()
default String
default byte[]
-
Constructor Details
-
PaymentResult
public PaymentResult() -
PaymentResult
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
setDiscriminant
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-