diff --git a/api-schema/src/main/java/org/stellar/anchor/api/platform/PlatformTransactionData.java b/api-schema/src/main/java/org/stellar/anchor/api/platform/PlatformTransactionData.java index af1f683e3b..aee50a7979 100644 --- a/api-schema/src/main/java/org/stellar/anchor/api/platform/PlatformTransactionData.java +++ b/api-schema/src/main/java/org/stellar/anchor/api/platform/PlatformTransactionData.java @@ -30,6 +30,8 @@ public class PlatformTransactionData { Kind kind; SepTransactionStatus status; + String type; + @SerializedName("amount_expected") Amount amountExpected; diff --git a/core/src/main/java/org/stellar/anchor/util/TransactionHelper.java b/core/src/main/java/org/stellar/anchor/util/TransactionHelper.java index 2748bfe335..48e7910186 100644 --- a/core/src/main/java/org/stellar/anchor/util/TransactionHelper.java +++ b/core/src/main/java/org/stellar/anchor/util/TransactionHelper.java @@ -100,6 +100,7 @@ public static GetTransactionResponse toGetTransactionResponse( .sep(PlatformTransactionData.Sep.SEP_6) .kind(PlatformTransactionData.Kind.from(txn.getKind())) .status(SepTransactionStatus.from(txn.getStatus())) + .type(txn.getType()) .amountExpected(new Amount(txn.getAmountExpected(), amountExpectedAsset)) .amountIn(Amount.create(txn.getAmountIn(), amountInAsset)) .amountOut(Amount.create(txn.getAmountOut(), amountOutAsset))