com.braintreegateway.TransactionOptionsCloneRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.apache.servicemix.bundles.braintree-java
Show all versions of org.apache.servicemix.bundles.braintree-java
This OSGi bundle wraps ${pkgArtifactId} ${pkgVersion} jar file.
package com.braintreegateway;
public class TransactionOptionsCloneRequest extends Request {
private TransactionCloneRequest parent;
private Boolean submitForSettlement;
public TransactionOptionsCloneRequest(TransactionCloneRequest parent) {
this.parent = parent;
}
public TransactionOptionsCloneRequest submitForSettlement(Boolean submitForSettlement) {
this.submitForSettlement = submitForSettlement;
return this;
}
public TransactionCloneRequest done() {
return parent;
}
@Override
public String toXML() {
return buildRequest("options").toXML();
}
@Override
public String toQueryString() {
return toQueryString("options");
}
@Override
public String toQueryString(String root) {
return buildRequest(root).toQueryString();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root).addElement("submitForSettlement", submitForSettlement);
}
}