com.checkout.sources.previous.SourcesClientImpl Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of checkout-sdk-java Show documentation
Show all versions of checkout-sdk-java Show documentation
Checkout SDK for Java https://checkout.com
package com.checkout.sources.previous;
import com.checkout.AbstractClient;
import com.checkout.ApiClient;
import com.checkout.CheckoutConfiguration;
import com.checkout.SdkAuthorizationType;
import java.util.concurrent.CompletableFuture;
import static com.checkout.common.CheckoutUtils.validateParams;
public class SourcesClientImpl extends AbstractClient implements SourcesClient {
private static final String SOURCES_PATH = "sources";
public SourcesClientImpl(final ApiClient apiClient, final CheckoutConfiguration configuration) {
super(apiClient, configuration, SdkAuthorizationType.SECRET_KEY);
}
@Override
public CompletableFuture createSepaSource(final SepaSourceRequest sepaSourceRequest) {
validateParams("sepaSourceRequest", sepaSourceRequest);
return apiClient.postAsync(SOURCES_PATH, sdkAuthorization(), SepaSourceResponse.class, sepaSourceRequest, null);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy