com.global.api.builders.requestbuilder.gpApi.GpApiMiCRequestBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of globalpayments-sdk Show documentation
Show all versions of globalpayments-sdk Show documentation
API for processing payments through Global Payments
package com.global.api.builders.requestbuilder.gpApi;
import com.global.api.entities.IRequestBuilder;
import com.global.api.entities.exceptions.ApiException;
import com.global.api.entities.gpApi.GpApiRequest;
import com.global.api.gateways.GpApiConnector;
import com.global.api.serviceConfigs.GpApiConfig;
public class GpApiMiCRequestBuilder implements IRequestBuilder {
@Override
public GpApiRequest buildRequest(String builder, GpApiConnector gateway) throws ApiException {
return (GpApiRequest)
new GpApiRequest()
.setVerb(GpApiRequest.HttpMethod.Post)
.setEndpoint(GpApiRequest.DEVICE_ENDPOINT)
.setRequestBody(builder);
}
}