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