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

com.braintreegateway.MerchantAccountCreateForCurrencyRequest Maven / Gradle / Ivy

There is a newer version: 3.32.0_1
Show newest version
package com.braintreegateway;

public class MerchantAccountCreateForCurrencyRequest extends Request {

    private String currency;
    private String id;

    public MerchantAccountCreateForCurrencyRequest currency(String currency) {
        this.currency = currency;
        return this;
    }

    public MerchantAccountCreateForCurrencyRequest id(String id) {
        this.id = id;
        return this;
    }

    @Override
    public String toXML() {
        return buildRequest("merchant_account").toXML();
    }

    protected RequestBuilder buildRequest(String root) {
        return new RequestBuilder(root)
                .addElement("currency", currency)
                .addElement("id", id);
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy