-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add an independent
Claimant
for use in the response packa…
…ge. (#631)
- Loading branch information
Showing
6 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,14 @@ | ||
package org.stellar.sdk; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.NonNull; | ||
import lombok.Value; | ||
|
||
/** Represents an entity who is eligible to claim the claimable balance. */ | ||
@Value | ||
public class Claimant { | ||
/** The destination account id. */ | ||
@SerializedName("destination") | ||
@NonNull | ||
String destination; | ||
@NonNull String destination; | ||
|
||
/** The predicate for this claimable balance. */ | ||
@SerializedName("predicate") | ||
@NonNull | ||
Predicate predicate; | ||
@NonNull Predicate predicate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package org.stellar.sdk.responses; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import lombok.Value; | ||
import org.stellar.sdk.Predicate; | ||
|
||
/** Represents an entity who is eligible to claim the claimable balance. */ | ||
@Value | ||
public class Claimant { | ||
/** The destination account id. */ | ||
@SerializedName("destination") | ||
String destination; | ||
|
||
/** The predicate for this claimable balance. */ | ||
@SerializedName("predicate") | ||
Predicate predicate; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters