All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.plaid.client.request.AccountsGetRequest Maven / Gradle / Ivy

There is a newer version: 27.0.0
Show newest version
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;
    }
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy