Class AsyncRawTransactionsClient
- java.lang.Object
-
- com.flagright.api.resources.transactions.AsyncRawTransactionsClient
-
public class AsyncRawTransactionsClient extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected ClientOptionsclientOptions
-
Constructor Summary
Constructors Constructor Description AsyncRawTransactionsClient(ClientOptions clientOptions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionWithRulesResult>>get(java.lang.String transactionId)GET Transactionsjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionWithRulesResult>>get(java.lang.String transactionId, RequestOptions requestOptions)GET Transactionsjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionsVerifyResponse>>verify(TransactionsVerifyRequest request)POST Transactionsjava.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionsVerifyResponse>>verify(TransactionsVerifyRequest request, RequestOptions requestOptions)POST Transactions
-
-
-
Field Detail
-
clientOptions
protected final ClientOptions clientOptions
-
-
Constructor Detail
-
AsyncRawTransactionsClient
public AsyncRawTransactionsClient(ClientOptions clientOptions)
-
-
Method Detail
-
verify
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionsVerifyResponse>> verify(TransactionsVerifyRequest request)
POST Transactions
/transactionsendpoint allows you to operate on the Transaction entity.In order to pass the payload of a transaction to Flagright and verify the transaction, you will need to call this endpoint with the transaction payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.
Payload
Here are some of the most used payload fields explained (you can find the full payload schema below with 1 line descriptions):
type: Type of transaction (Ex:WITHDRAWAL,DEPOSIT,TRANSFERetc).transactionId- Unique Identifier for the transaction.timestamp- UNIX timestamp in milliseconds of when the transaction took placetransactionState- The state of the transaction, set toCREATEDby default. More details hereoriginUserId- Unique identifier (if any) of the user who is sending the money. This user must be created within the Flagright system before using the create a consumer user or create a business user endpointdestinationUserId- Unique identifier (if any) of the user who is receiving the money. This user must be created within the Flagright system before using the create a consumer user or create a business user endpointoriginAmountDetails- Details of the amount being sent from the origindestinationAmountDetails- Details of the amount being received at the destinationoriginPaymentDetails- Payment details (if any) used at the origin (ex:CARD,IBAN,WALLETetc). You can click on the dropdown next to the field in the schema below to view all supported payment types.destinationPaymentDetails- Payment details (if any) used at the destination (ex:CARD,IBAN,WALLETetc). You can click on the dropdown next to the field in the schema below to view all supported payment types.
-
verify
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionsVerifyResponse>> verify(TransactionsVerifyRequest request, RequestOptions requestOptions)
POST Transactions
/transactionsendpoint allows you to operate on the Transaction entity.In order to pass the payload of a transaction to Flagright and verify the transaction, you will need to call this endpoint with the transaction payload. Not all fields are mandatory, you will only need to pass in the fields that you have and are relevant for your compliance setup.
Payload
Here are some of the most used payload fields explained (you can find the full payload schema below with 1 line descriptions):
type: Type of transaction (Ex:WITHDRAWAL,DEPOSIT,TRANSFERetc).transactionId- Unique Identifier for the transaction.timestamp- UNIX timestamp in milliseconds of when the transaction took placetransactionState- The state of the transaction, set toCREATEDby default. More details hereoriginUserId- Unique identifier (if any) of the user who is sending the money. This user must be created within the Flagright system before using the create a consumer user or create a business user endpointdestinationUserId- Unique identifier (if any) of the user who is receiving the money. This user must be created within the Flagright system before using the create a consumer user or create a business user endpointoriginAmountDetails- Details of the amount being sent from the origindestinationAmountDetails- Details of the amount being received at the destinationoriginPaymentDetails- Payment details (if any) used at the origin (ex:CARD,IBAN,WALLETetc). You can click on the dropdown next to the field in the schema below to view all supported payment types.destinationPaymentDetails- Payment details (if any) used at the destination (ex:CARD,IBAN,WALLETetc). You can click on the dropdown next to the field in the schema below to view all supported payment types.
-
get
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionWithRulesResult>> get(java.lang.String transactionId)
GET Transactions
/transactionsendpoint allows you to operate on the Transaction entity.Calling
GET /transactions/{transactionId}will return the entire transaction payload and rule execution results for the transaction with the correspondingtransactionId
-
get
public java.util.concurrent.CompletableFuture<FlagrightHttpResponse<TransactionWithRulesResult>> get(java.lang.String transactionId, RequestOptions requestOptions)
GET Transactions
/transactionsendpoint allows you to operate on the Transaction entity.Calling
GET /transactions/{transactionId}will return the entire transaction payload and rule execution results for the transaction with the correspondingtransactionId
-
-