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

com.braintreegateway.PaymentMethodGrantRevokeRequest Maven / Gradle / Ivy

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy