Skip to content

Commit

Permalink
Add type to SEP-6 platform transaction
Browse files Browse the repository at this point in the history
  • Loading branch information
philipliu committed Oct 24, 2023
1 parent f29e9c9 commit 1457819
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public class PlatformTransactionData {
Kind kind;
SepTransactionStatus status;

String type;

@SerializedName("amount_expected")
Amount amountExpected;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 1457819

Please sign in to comment.