com.braintreegateway.CreditCardAddressOptionsRequest 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 CreditCardAddressOptionsRequest extends Request {
private CreditCardAddressRequest parent;
private Boolean updateExisting;
public CreditCardAddressOptionsRequest(CreditCardAddressRequest parent) {
this.parent = parent;
}
public CreditCardAddressRequest done() {
return parent;
}
public CreditCardAddressOptionsRequest updateExisting(Boolean updateExisting) {
this.updateExisting = updateExisting;
return this;
}
@Override
public String toQueryString() {
return toQueryString("options");
}
@Override
public String toQueryString(String root) {
return buildRequest(root).toQueryString();
}
@Override
public String toXML() {
return buildRequest("options").toXML();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root)
.addElement("updateExisting", updateExisting);
}
}