com.braintreegateway.CustomerOptionsRequest 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;
public class CustomerOptionsRequest extends Request {
private CustomerRequest parent;
private CustomerOptionsPayPalRequest customerOptionsPayPalRequest;
public CustomerOptionsRequest() {
}
public CustomerOptionsRequest(CustomerRequest parent) {
this.parent = parent;
}
public CustomerRequest done() {
return parent;
}
public CustomerOptionsPayPalRequest paypal() {
customerOptionsPayPalRequest = new CustomerOptionsPayPalRequest(this);
return customerOptionsPayPalRequest;
}
@Override
public String toXML() {
return buildRequest("options").toXML();
}
protected RequestBuilder buildRequest(String root) {
return new RequestBuilder(root)
.addElement("paypal", customerOptionsPayPalRequest);
}
}