public class Charges extends AbstractApi
clientpublic Charges(Client client)
public ChargeResponse createCharge(CreateChargeRequest request)
public ChargeResponse getCharge(String chargeId)
chargeId - the id of the charge to retrievepublic ChargeResponse updateCharge(String chargeId, String description, Map<String,Object> metadata)
chargeId - the id of the charge to updatedescription - optional updated descriptionmetadata - optional updated metadatapublic ChargeResponse refundCharge(String chargeId)
chargeId - the id of the charge to refundpublic ChargeResponse refundCharge(String chargeId, Integer amount, Integer refundApplicationFee)
chargeId - the id of the charge to refundamount - optional amount to refundrefundApplicationFee - optional refund application feepublic ChargeResponse captureCharge(String chargeId)
chargeId - the id of the charge to capturepublic ChargeResponse captureCharge(String chargeId, Integer amount, Integer applicationFee)
chargeId - the id of the charge to captureamount - optional amount to captureapplicationFee - optional application feepublic ListChargesResponse listCharges(Integer limit)
limit - optional number of charges to returnprotected String buildUrl()
Copyright © 2014. All rights reserved.