com.braintreegateway.PaymentMethodDeleteRequest 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 PaymentMethodDeleteRequest extends Request {
private boolean revokeAllGrants;
public PaymentMethodDeleteRequest() {
}
public PaymentMethodDeleteRequest revokeAllGrants(boolean revokeAllGrants) {
this.revokeAllGrants = revokeAllGrants;
return this;
}
@Override
public String toQueryString() {
return buildRequest().toQueryString();
}
protected RequestBuilder buildRequest() {
return new RequestBuilder("")
.addTopLevelElement("revokeAllGrants", Boolean.toString(revokeAllGrants));
}
}