public class RefundService
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
RefundService.RefundCreateRequest
Request class for
create() . |
static class |
RefundService.RefundGetRequest
Request class for
get(java.lang.String) . |
static class |
RefundService.RefundListRequest<S>
Request class for
list() . |
static class |
RefundService.RefundUpdateRequest
Request class for
update(java.lang.String) . |
Constructor and Description |
---|
RefundService(HttpClient httpClient)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
RefundService.RefundListRequest<java.lang.Iterable<Refund>> |
all() |
RefundService.RefundCreateRequest |
create()
Creates a new refund object.
|
RefundService.RefundGetRequest |
get(java.lang.String identity)
Retrieves all details for a single refund
|
RefundService.RefundListRequest<ListResponse<Refund>> |
list()
Returns a cursor-paginated list of your refunds.
|
RefundService.RefundUpdateRequest |
update(java.lang.String identity)
Updates a refund object.
|
public RefundService(HttpClient httpClient)
Constructor. Users of this library should have no need to call this - an instance of this class can be obtained by calling GoCardlessClient.refunds()
.
public RefundService.RefundCreateRequest create()
Creates a new refund object.
refund_payment_invalid_state
error if the linked payment isn’t either confirmed
or paid_out
.
total_amount_confirmation_invalid
if the confirmation amount doesn’t match the total amount refunded for the payment. This safeguard is there to prevent two processes from creating refunds without awareness of each other.
number_of_refunds_exceeded
if five or more refunds have already been created against the payment.
public RefundService.RefundListRequest<ListResponse<Refund>> list()
Returns a cursor-paginated list of your refunds.
public RefundService.RefundListRequest<java.lang.Iterable<Refund>> all()
public RefundService.RefundGetRequest get(java.lang.String identity)
Retrieves all details for a single refund
public RefundService.RefundUpdateRequest update(java.lang.String identity)
Updates a refund object.