public class RefundService extends Object
| Constructor and Description |
|---|
RefundService(ApiClient apiClient) |
| Modifier and Type | Method and Description |
|---|---|
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) |
Refund |
fail(Long spaceId,
Long refundId)
fail
This operation allows to mark a refund as failed which is in state MANUAL_CHECK.
|
Refund |
fail(Long spaceId,
Long refundId,
Map<String,Object> params)
fail
This operation allows to mark a refund as failed which is in state MANUAL_CHECK.
|
com.google.api.client.http.HttpResponse |
failForHttpResponse(Long spaceId,
Long refundId) |
com.google.api.client.http.HttpResponse |
failForHttpResponse(Long spaceId,
Long refundId,
Map<String,Object> params) |
ApiClient |
getApiClient() |
RenderedDocument |
getRefundDocument(Long spaceId,
Long id)
getRefundDocument
Returns the PDF document for the refund with given id.
|
RenderedDocument |
getRefundDocument(Long spaceId,
Long id,
Map<String,Object> params)
getRefundDocument
Returns the PDF document for the refund with given id.
|
com.google.api.client.http.HttpResponse |
getRefundDocumentForHttpResponse(Long spaceId,
Long id) |
com.google.api.client.http.HttpResponse |
getRefundDocumentForHttpResponse(Long spaceId,
Long id,
Map<String,Object> params) |
RenderedDocument |
getRefundDocumentWithTargetMediaType(Long spaceId,
Long id,
Long targetMediaTypeId)
getRefundDocumentWithTargetMediaType
Returns the PDF document for the refund with given id and the given target media type.
|
RenderedDocument |
getRefundDocumentWithTargetMediaType(Long spaceId,
Long id,
Long targetMediaTypeId,
Map<String,Object> params)
getRefundDocumentWithTargetMediaType
Returns the PDF document for the refund with given id and the given target media type.
|
com.google.api.client.http.HttpResponse |
getRefundDocumentWithTargetMediaTypeForHttpResponse(Long spaceId,
Long id,
Long targetMediaTypeId) |
com.google.api.client.http.HttpResponse |
getRefundDocumentWithTargetMediaTypeForHttpResponse(Long spaceId,
Long id,
Long targetMediaTypeId,
Map<String,Object> params) |
Refund |
read(Long spaceId,
Long id)
Read
Reads the entity with the given 'id' and returns it.
|
Refund |
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) |
Refund |
refund(Long spaceId,
RefundCreate refund)
create
This operation creates and executes a refund of a particular transaction.
|
Refund |
refund(Long spaceId,
RefundCreate refund,
Map<String,Object> params)
create
This operation creates and executes a refund of a particular transaction.
|
com.google.api.client.http.HttpResponse |
refundForHttpResponse(Long spaceId,
InputStream refund,
String mediaType) |
com.google.api.client.http.HttpResponse |
refundForHttpResponse(Long spaceId,
RefundCreate refund) |
com.google.api.client.http.HttpResponse |
refundForHttpResponse(Long spaceId,
RefundCreate refund,
Map<String,Object> params) |
List<Refund> |
search(Long spaceId,
EntityQuery query)
Search
Searches for the entities as specified by the given query.
|
List<Refund> |
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) |
Refund |
succeed(Long spaceId,
Long refundId)
succeed
This operation allows to mark a refund as successful which is in state MANUAL_CHECK.
|
Refund |
succeed(Long spaceId,
Long refundId,
Map<String,Object> params)
succeed
This operation allows to mark a refund as successful which is in state MANUAL_CHECK.
|
com.google.api.client.http.HttpResponse |
succeedForHttpResponse(Long spaceId,
Long refundId) |
com.google.api.client.http.HttpResponse |
succeedForHttpResponse(Long spaceId,
Long refundId,
Map<String,Object> params) |
public RefundService(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
public 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 Refund fail(Long spaceId, Long refundId) 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 - refundId - The id of the refund which should be marked as failed.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Refund fail(Long spaceId, Long refundId, 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 - refundId - The id of the refund which should be marked as failed.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 failForHttpResponse(Long spaceId, Long refundId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse failForHttpResponse(Long spaceId, Long refundId, Map<String,Object> params) throws IOException
IOExceptionpublic RenderedDocument getRefundDocument(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 refund to get the document for.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public RenderedDocument getRefundDocument(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 refund to get the document for.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 getRefundDocumentForHttpResponse(Long spaceId, Long id) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse getRefundDocumentForHttpResponse(Long spaceId, Long id, Map<String,Object> params) throws IOException
IOExceptionpublic RenderedDocument getRefundDocumentWithTargetMediaType(Long spaceId, Long id, Long targetMediaTypeId) 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 refund to get the document for.targetMediaTypeId - The id of the target media type for which the refund should be generated for.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public RenderedDocument getRefundDocumentWithTargetMediaType(Long spaceId, Long id, Long targetMediaTypeId, 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 refund to get the document for.targetMediaTypeId - The id of the target media type for which the refund should be generated for.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 getRefundDocumentWithTargetMediaTypeForHttpResponse(Long spaceId, Long id, Long targetMediaTypeId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse getRefundDocumentWithTargetMediaTypeForHttpResponse(Long spaceId, Long id, Long targetMediaTypeId, Map<String,Object> params) throws IOException
IOExceptionpublic Refund 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 refund which should be returned.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Refund 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 refund 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 Refund refund(Long spaceId, RefundCreate refund) 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 - refund - The refund object which should be created.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Refund refund(Long spaceId, RefundCreate refund, 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 - refund - The refund object 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 refundForHttpResponse(Long spaceId, RefundCreate refund) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse refundForHttpResponse(Long spaceId, InputStream refund, String mediaType) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse refundForHttpResponse(Long spaceId, RefundCreate refund, Map<String,Object> params) throws IOException
IOExceptionpublic List<Refund> 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 refunds 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<Refund> 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 refunds 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 Refund succeed(Long spaceId, Long refundId) 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 - refundId - The id of the refund which should be marked as successful.IOException - if an error occurs while attempting to invoke the API
For more information visit this link.public Refund succeed(Long spaceId, Long refundId, 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 - refundId - The id of the refund which should be marked as successful.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 succeedForHttpResponse(Long spaceId, Long refundId) throws IOException
IOExceptionpublic com.google.api.client.http.HttpResponse succeedForHttpResponse(Long spaceId, Long refundId, Map<String,Object> params) throws IOException
IOExceptionCopyright © 2022. All rights reserved.