com.checkout.financial.FinancialClientImpl 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.financial;
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 FinancialClientImpl extends AbstractClient implements FinancialClient {
private static final String FINANCIAL_ACTIONS_PATH = "financial-actions";
public FinancialClientImpl(final ApiClient apiClient, final CheckoutConfiguration configuration) {
super(apiClient, configuration, SdkAuthorizationType.SECRET_KEY_OR_OAUTH);
}
public CompletableFuture query(final FinancialActionsQueryFilter queryFilter) {
validateParams("queryFilter", queryFilter);
return apiClient.queryAsync(
FINANCIAL_ACTIONS_PATH,
sdkAuthorization(),
queryFilter,
FinancialActionsQueryResponse.class);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy