com.braintreegateway.PaymentMethodGrantRevokeRequest 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 PaymentMethodGrantRevokeRequest extends Request {
private String sharedPaymentMethodToken;
public PaymentMethodGrantRevokeRequest() {
}
protected PaymentMethodGrantRevokeRequest sharedPaymentMethodToken(String sharedPaymentMethodToken) {
this.sharedPaymentMethodToken = sharedPaymentMethodToken;
return this;
}
@Override
public String toXML() {
return buildRequest("payment-method").toXML();
}
protected RequestBuilder buildRequest(String root) {
RequestBuilder builder = new RequestBuilder(root)
.addElement("shared-payment-method-token", sharedPaymentMethodToken);
return builder;
}
}