com.braintreegateway.UpdateModificationRequest 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;
import java.math.BigDecimal;
public class UpdateModificationRequest extends ModificationRequest {
private String existingId;
public UpdateModificationRequest(ModificationsRequest parent) {
super(parent);
}
public UpdateModificationRequest(ModificationsRequest parent, String existingId) {
super(parent);
this.existingId = existingId;
}
public UpdateModificationRequest existingId(String existingId) {
this.existingId = existingId;
return this;
}
@Override
public UpdateModificationRequest amount(BigDecimal amount) {
super.amount(amount);
return this;
}
@Override
public UpdateModificationRequest neverExpires(Boolean neverExpires) {
super.neverExpires(neverExpires);
return this;
}
@Override
public UpdateModificationRequest numberOfBillingCycles(Integer numberOfBillingCycles) {
super.numberOfBillingCycles(numberOfBillingCycles);
return this;
}
@Override
public UpdateModificationRequest quantity(Integer quantity) {
super.quantity(quantity);
return this;
}
@Override
protected RequestBuilder buildRequest(String root) {
return super.buildRequest(root).addElement("existingId", existingId);
}
}