com.braintreegateway.MerchantGateway Maven / Gradle / Ivy
package com.braintreegateway;
import com.braintreegateway.util.Http;
import com.braintreegateway.util.NodeWrapper;
public class MerchantGateway {
private Http http;
private Configuration configuration;
public MerchantGateway(Http http, Configuration configuration) {
this.http = http;
this.configuration = configuration;
}
public Result create(MerchantRequest request) {
NodeWrapper response = http.post("/merchants/create_via_api", request);
return new Result(response, Merchant.class);
}
}