All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.braintreegateway.PaymentMethodDeleteRequest Maven / Gradle / Ivy

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));
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy