public static void Encode(IByteWriter stream, PaymentResultCode value) { XdrEncoding.EncodeInt32((int)value.InnerValue, stream); }