public class TokenService extends Object
| Constructor and Description |
|---|
TokenService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
Boolean |
checkTokenCreationPossible(Long spaceId,
Long transactionId)
Check If Token Creation Is Possible
This operation checks if the given transaction can be used to create a token out of it.
|
Boolean |
checkTokenCreationPossible(Long spaceId,
Long transactionId,
Map<String,Object> params)
Check If Token Creation Is Possible
This operation checks if the given transaction can be used to create a token out of it.
|
com.google.api.client.http.HttpResponse |
checkTokenCreationPossibleForHttpResponse(Long spaceId,
Long transactionId) |
com.google.api.client.http.HttpResponse |
checkTokenCreationPossibleForHttpResponse(Long spaceId,
Long transactionId,
Map<String,Object> params) |
Long |
count(EntityQueryFilter filter,
Long spaceId,
Map<String,Object> params)
Count
Counts the number of items in the database as restricted by the given filter.
|
Long |
count(Long spaceId,
EntityQueryFilter filter)
Count
Counts the number of items in the database as restricted by the given filter.
|
com.google.api.client.http.HttpResponse |
countForHttpResponse(EntityQueryFilter filter,
Long spaceId,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(Long spaceId,
EntityQueryFilter filter) |
com.google.api.client.http.HttpResponse |
countForHttpResponse(Long spaceId,
InputStream filter,
String mediaType) |
Token |
create(Long spaceId,
TokenCreate entity)
Create
Creates the entity with the given properties.
|
Token |
create(Long spaceId,
TokenCreate entity,
Map<String,Object> params)
Create
Creates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
InputStream entity,
String mediaType) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
TokenCreate entity) |
com.google.api.client.http.HttpResponse |
createForHttpResponse(Long spaceId,
TokenCreate entity,
Map<String,Object> params) |
TokenVersion |
createTokenBasedOnTransaction(Long spaceId,
Long transactionId)
Create Token Based On Transaction
This operation creates a token for the given transaction and fills it with the stored payment information of the transaction.
|
TokenVersion |
createTokenBasedOnTransaction(Long spaceId,
Long transactionId,
Map<String,Object> params)
Create Token Based On Transaction
This operation creates a token for the given transaction and fills it with the stored payment information of the transaction.
|
com.google.api.client.http.HttpResponse |
createTokenBasedOnTransactionForHttpResponse(Long spaceId,
Long transactionId) |
com.google.api.client.http.HttpResponse |
createTokenBasedOnTransactionForHttpResponse(Long spaceId,
Long transactionId,
Map<String,Object> params) |
Transaction |
createTransactionForTokenUpdate(Long spaceId,
Long tokenId)
Create Transaction for Token Update
This operation creates a transaction which allows the updating of the provided token.
|
Transaction |
createTransactionForTokenUpdate(Long spaceId,
Long tokenId,
Map<String,Object> params)
Create Transaction for Token Update
This operation creates a transaction which allows the updating of the provided token.
|
com.google.api.client.http.HttpResponse |
createTransactionForTokenUpdateForHttpResponse(Long spaceId,
Long tokenId) |
com.google.api.client.http.HttpResponse |
createTransactionForTokenUpdateForHttpResponse(Long spaceId,
Long tokenId,
Map<String,Object> params) |
void |
delete(Long spaceId,
Long id)
Delete
Deletes the entity with the given id.
|
void |
delete(Long spaceId,
Long id,
Map<String,Object> params)
Delete
Deletes the entity with the given id.
|
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
InputStream id,
String mediaType) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
deleteForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
ApiClient |
getApiClient() |
Charge |
processTransaction(Long spaceId,
Long transactionId)
Process Transaction
This operation processes the given transaction by using the token associated with the transaction.
|
Charge |
processTransaction(Long spaceId,
Long transactionId,
Map<String,Object> params)
Process Transaction
This operation processes the given transaction by using the token associated with the transaction.
|
com.google.api.client.http.HttpResponse |
processTransactionForHttpResponse(Long spaceId,
Long transactionId) |
com.google.api.client.http.HttpResponse |
processTransactionForHttpResponse(Long spaceId,
Long transactionId,
Map<String,Object> params) |
Token |
read(Long spaceId,
Long id)
Read
Reads the entity with the given 'id' and returns it.
|
Token |
read(Long spaceId,
Long id,
Map<String,Object> params)
Read
Reads the entity with the given 'id' and returns it.
|
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
readForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
List<Token> |
search(Long spaceId,
EntityQuery query)
Search
Searches for the entities as specified by the given query.
|
List<Token> |
search(Long spaceId,
EntityQuery query,
Map<String,Object> params)
Search
Searches for the entities as specified by the given query.
|
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
EntityQuery query) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
EntityQuery query,
Map<String,Object> params) |
com.google.api.client.http.HttpResponse |
searchForHttpResponse(Long spaceId,
InputStream query,
String mediaType) |
void |
setApiClient(ApiClient apiClient) |
Token |
update(Long spaceId,
TokenUpdate entity)
Update
This updates the entity with the given properties.
|
Token |
update(Long spaceId,
TokenUpdate entity,
Map<String,Object> params)
Update
This updates the entity with the given properties.
|
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
InputStream entity,
String mediaType) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
TokenUpdate entity) |
com.google.api.client.http.HttpResponse |
updateForHttpResponse(Long spaceId,
TokenUpdate entity,
Map<String,Object> params) |
public TokenService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public Boolean checkTokenCreationPossible(Long spaceId, Long transactionId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to check if the token can be created or not.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Boolean checkTokenCreationPossible(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to check if the token can be created or not.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse checkTokenCreationPossibleForHttpResponse(Long spaceId, Long transactionId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse checkTokenCreationPossibleForHttpResponse(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
IOExceptionpublic Long count(Long spaceId, EntityQueryFilter filter) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - filter - The filter which restricts the entities which are used to calculate the count.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Long count(EntityQueryFilter filter, Long spaceId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse countForHttpResponse(Long spaceId, EntityQueryFilter filter) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(Long spaceId, InputStream filter, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse countForHttpResponse(EntityQueryFilter filter, Long spaceId, Map<String,Object> params) throws IOException
IOExceptionpublic Token create(Long spaceId, TokenCreate entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The token object with the properties which should be created.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Token create(Long spaceId, TokenCreate entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The token object with the properties which should be created.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, TokenCreate entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createForHttpResponse(Long spaceId, TokenCreate entity, Map<String,Object> params) throws IOException
IOExceptionpublic TokenVersion createTokenBasedOnTransaction(Long spaceId, Long transactionId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to create the token.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public TokenVersion createTokenBasedOnTransaction(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to create the token.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse createTokenBasedOnTransactionForHttpResponse(Long spaceId, Long transactionId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createTokenBasedOnTransactionForHttpResponse(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
IOExceptionpublic Transaction createTransactionForTokenUpdate(Long spaceId, Long tokenId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - tokenId - The id of the token which should be updated.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Transaction createTransactionForTokenUpdate(Long spaceId, Long tokenId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - tokenId - The id of the token which should be updated.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse createTransactionForTokenUpdateForHttpResponse(Long spaceId, Long tokenId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse createTransactionForTokenUpdateForHttpResponse(Long spaceId, Long tokenId, Map<String,Object> params) throws IOException
IOExceptionpublic void delete(Long spaceId, Long id) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public void delete(Long spaceId, Long id, Map<String,Object> params) throws IOException
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, InputStream id, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse deleteForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic Charge processTransaction(Long spaceId, Long transactionId) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to check if the token can be created or not.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Charge processTransaction(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - transactionId - The id of the transaction for which we want to check if the token can be created or not.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse processTransactionForHttpResponse(Long spaceId, Long transactionId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse processTransactionForHttpResponse(Long spaceId, Long transactionId, Map<String,Object> params) throws IOException
IOExceptionpublic Token read(Long spaceId, Long id) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the token which should be returned.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Token read(Long spaceId, Long id, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - id - The id of the token which should be returned.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse readForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse readForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic List<Token> search(Long spaceId, EntityQuery query) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - query - The query restricts the tokens which are returned by the search.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public List<Token> search(Long spaceId, EntityQuery query, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - query - The query restricts the tokens which are returned by the search.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, InputStream query, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse searchForHttpResponse(Long spaceId, EntityQuery query, Map<String,Object> params) throws IOException
IOExceptionpublic Token update(Long spaceId, TokenUpdate entity) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The object with all the properties which should be updated. The id and the version are required properties.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Token update(Long spaceId, TokenUpdate entity, Map<String,Object> params) throws IOException
200 - This status code indicates that a client request was successfully received, understood, and accepted.
409 - This status code indicates that there was a conflict with the current version of the data in the database and the provided data in the request.
442 - This status code indicates that the server cannot or will not process the request due to something that is perceived to be a client error.
542 - This status code indicates that the server encountered an unexpected condition that prevented it from fulfilling the client request.
spaceId - entity - The object with all the properties which should be updated. The id and the version are required properties.params - Map of query params. A collection will be interpreted as passing in multiple instances of the same query param.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, TokenUpdate entity) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, InputStream entity, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse updateForHttpResponse(Long spaceId, TokenUpdate entity, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2021. All rights reserved.