com.braintreegateway.PayPalOnlyAccountRequest 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 PayPalOnlyAccountRequest extends Request {
private String clientId;
private String clientSecret;
private MerchantRequest parent;
public PayPalOnlyAccountRequest() {
}
public PayPalOnlyAccountRequest(MerchantRequest parent) {
this.parent = parent;
}
public MerchantRequest done() {
return parent;
}
public String getClientId() {
return clientId;
}
public String getClientSecret() {
return clientSecret;
}
public PayPalOnlyAccountRequest clientId(String clientId) {
this.clientId = clientId;
return this;
}
public PayPalOnlyAccountRequest clientSecret(String clientSecret) {
this.clientSecret = clientSecret;
return this;
}
@Override
public String toXML() {
return new RequestBuilder("paypalAccount")
.addElement("clientId", clientId)
.addElement("clientSecret", clientSecret)
.toXML();
}
}