com.braintreegateway.TextEvidenceRequest 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.
The newest version!
package com.braintreegateway;
/**
* Provides a fluent interface to build up requests around TextEvidence.
*/
public class TextEvidenceRequest extends Request {
private String content;
private String category;
private String sequenceNumber;
public TextEvidenceRequest content(String content) {
this.content = content;
return this;
}
public String getContent() {
return content;
}
public TextEvidenceRequest category(String category) {
this.category = category;
return this;
}
public TextEvidenceRequest sequenceNumber(String sequenceNumber) {
this.sequenceNumber = sequenceNumber;
return this;
}
@Override
public String toXML() {
return buildRequest("evidence").toXML();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root)
.addElement("comments", content)
.addElement("category", category)
.addElement("sequenceNumber", sequenceNumber);
}
}