com.plaid.client.request.AccountsGetRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of plaid-java Show documentation
Show all versions of plaid-java Show documentation
Bindings for the Plaid (plaid.com) API.
package com.plaid.client.request;
import com.plaid.client.request.common.BaseAccessTokenRequest;
import java.util.ArrayList;
import java.util.List;
import static com.plaid.client.internal.Util.notEmpty;
/**
* Request for the /accounts/get endpoint.
*
* @see https://plaid.com/docs/api
*/
public final class AccountsGetRequest extends BaseAccessTokenRequest {
private Options options;
public AccountsGetRequest(String accessToken) {
super(accessToken);
}
public AccountsGetRequest withAccountIds(List accountIds) {
notEmpty(accountIds, "accountIds");
this.options = new Options(new ArrayList<>(accountIds));
return this;
}
private static class Options {
private List accountIds;
private Options(List accountIds) {
this.accountIds = accountIds;
}
}
}