com.braintreegateway.PayPalAccountRequest 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 PayPalAccountRequest extends Request {
private String token;
private PayPalAccountOptionsRequest optionsRequest;
public PayPalAccountRequest token(String token) {
this.token = token;
return this;
}
public PayPalAccountOptionsRequest options() {
this.optionsRequest = new PayPalAccountOptionsRequest(this);
return optionsRequest;
}
@Override
public String toXML() {
return buildRequest("paypalAccount").toXML();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root)
.addElement("options", optionsRequest)
.addElement("token", token);
}
}