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

com.plaid.client.request.InstitutionsGetRequest 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.BaseClientRequest;

import static com.plaid.client.internal.Util.isBetween;

/**
 * Request for the /institutions/get endpoint.
 *
 * @see https://plaid.com/docs/api
 */
public final class InstitutionsGetRequest extends BaseClientRequest {
  private Integer count;
  private Integer offset;

  public InstitutionsGetRequest(Integer count, Integer offset) {
    isBetween(count, 1, 500, "count");
    isBetween(offset, 0, Integer.MAX_VALUE, "offset");

    this.count = count;
    this.offset = offset;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy