public class Refunds extends AbstractApi
client| Modifier and Type | Method and Description |
|---|---|
protected String |
buildUrl(String chargeId) |
protected String |
buildUrl(String chargeId,
String refundId) |
RefundResponse |
createRefund(String chargeId)
Create a refund (refund a charge)
https://stripe.com/docs/api#create_refund
|
RefundResponse |
createRefund(String chargeId,
CreateRefundRequest request)
Create a refund (refund a charge)
https://stripe.com/docs/api#create_refund
|
RefundResponse |
getRefund(String chargeId,
String refundId)
Retrieve a refund
https://stripe.com/docs/api#retrieve_refund
|
ListRefundsResponse |
listRefunds(String chargeId,
ListRequest listRequest)
List all refunds associated with the given charge
https://stripe.com/docs/api#list_refunds
|
RefundResponse |
updateRefund(String chargeId,
String refundId,
Map<String,Object> metadata)
Update the metadata of a refund
https://stripe.com/docs/api#update_refund
|
public Refunds(Client client)
public RefundResponse createRefund(String chargeId)
chargeId - the id of the charge to refundpublic RefundResponse createRefund(String chargeId, CreateRefundRequest request)
chargeId - the id of the charge to refundrequest - optional refund request parameterspublic RefundResponse getRefund(String chargeId, String refundId)
chargeId - the id of the refunded chargerefundId - the id of the refund to be retrievedpublic RefundResponse updateRefund(String chargeId, String refundId, Map<String,Object> metadata)
chargeId - the id of the refunded chargerefundId - the id of the refund to be updatedmetadata - new metadata for this refundpublic ListRefundsResponse listRefunds(String chargeId, ListRequest listRequest)
chargeId - the id of the refunded chargelistRequest - optional list request parametersCopyright © 2014. All rights reserved.