-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
### Description This merges the `sep-6` development branch into `develop`. ### Context Anchor Platform is releasing SEP-6 support in 2.4.0. ### Documentation API docs have been updated in stellar/stellar-docs#253. This will merged be merged alongside this PR. ### Testing - `./gradlew test` ### Known limitations N/A
- Loading branch information
Showing
195 changed files
with
13,387 additions
and
1,971 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
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
12 changes: 12 additions & 0 deletions
12
...schema/src/main/java/org/stellar/anchor/api/exception/SepCustomerInfoNeededException.java
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,12 @@ | ||
package org.stellar.anchor.api.exception; | ||
|
||
import java.util.List; | ||
import lombok.Getter; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
/** Thrown when a customer's info is needed to complete a request. */ | ||
@RequiredArgsConstructor | ||
@Getter | ||
public class SepCustomerInfoNeededException extends AnchorException { | ||
private final List<String> fields; | ||
} |
14 changes: 14 additions & 0 deletions
14
api-schema/src/main/java/org/stellar/anchor/api/platform/CustomerUpdatedResponse.java
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,14 @@ | ||
package org.stellar.anchor.api.platform; | ||
|
||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
|
||
@Data | ||
@Builder | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
public class CustomerUpdatedResponse { | ||
String id; | ||
} |
34 changes: 34 additions & 0 deletions
34
api-schema/src/main/java/org/stellar/anchor/api/platform/GetTransactionsRequest.java
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,34 @@ | ||
package org.stellar.anchor.api.platform; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
import java.util.List; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NonNull; | ||
import org.stellar.anchor.api.sep.SepTransactionStatus; | ||
|
||
/** | ||
* The request body of the GET /transactions endpoint of the Platform API. | ||
* | ||
* @see <a | ||
* href="https://github.com/stellar/stellar-docs/blob/main/openapi/anchor-platform/Platform%20API.yml">Platform | ||
* API</a> | ||
*/ | ||
@Data | ||
@Builder | ||
public class GetTransactionsRequest { | ||
@NonNull private TransactionsSeps sep; | ||
|
||
@SerializedName("order_by") | ||
private TransactionsOrderBy orderBy; | ||
|
||
private TransactionsOrder order; | ||
|
||
private List<SepTransactionStatus> statuses; | ||
|
||
@SerializedName("page_size") | ||
private Integer pageSize; | ||
|
||
@SerializedName("page_number") | ||
private Integer pageNumber; | ||
} |
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
10 changes: 10 additions & 0 deletions
10
api-schema/src/main/java/org/stellar/anchor/api/platform/TransactionsOrder.java
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,10 @@ | ||
package org.stellar.anchor.api.platform; | ||
|
||
import com.google.gson.annotations.SerializedName; | ||
|
||
public enum TransactionsOrder { | ||
@SerializedName("asc") | ||
ASC, | ||
@SerializedName("desc") | ||
DESC | ||
} |
2 changes: 1 addition & 1 deletion
2
...anchor/apiclient/TransactionsOrderBy.java → ...hor/api/platform/TransactionsOrderBy.java
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
2 changes: 1 addition & 1 deletion
2
...ar/anchor/apiclient/TransactionsSeps.java → ...anchor/api/platform/TransactionsSeps.java
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
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
12 changes: 12 additions & 0 deletions
12
api-schema/src/main/java/org/stellar/anchor/api/sep/CustomerInfoNeededResponse.java
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,12 @@ | ||
package org.stellar.anchor.api.sep; | ||
|
||
import java.util.List; | ||
import lombok.Data; | ||
import lombok.RequiredArgsConstructor; | ||
|
||
@RequiredArgsConstructor | ||
@Data | ||
public class CustomerInfoNeededResponse { | ||
private final String type = "non_interactive_customer_info_needed"; | ||
private final List<String> fields; | ||
} |
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
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
Oops, something went wrong.