
com.securionpay.request.CaptureRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of securionpay-java Show documentation
Show all versions of securionpay-java Show documentation
Java client library for SecurionPay API
The newest version!
package com.securionpay.request;
import java.util.HashMap;
import java.util.Map;
import com.fasterxml.jackson.annotation.JsonAnyGetter;
import com.fasterxml.jackson.annotation.JsonAnySetter;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonInclude.Include;
import com.securionpay.response.Charge;
@JsonInclude(Include.NON_NULL)
public class CaptureRequest {
@JsonIgnore
private String chargeId;
@JsonIgnore
private final Map other = new HashMap<>();
public CaptureRequest() {
}
public CaptureRequest(String chargeId) {
chargeId(chargeId);
}
public CaptureRequest(Charge charge) {
charge(charge);
}
public String getChargeId() {
return chargeId;
}
public CaptureRequest chargeId(String chargeId) {
this.chargeId = chargeId;
return this;
}
public CaptureRequest charge(Charge charge) {
return chargeId(charge.getId());
}
@JsonAnyGetter
private Map getOtherMap() {
return other;
}
@JsonAnySetter
public CaptureRequest set(String name, Object value) {
other.put(name, value);
return this;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy