com.braintreegateway.CustomerPager Maven / Gradle / Ivy
package com.braintreegateway;
import java.util.List;
public class CustomerPager implements Pager {
private CustomerGateway gateway;
private CustomerSearchRequest query;
public CustomerPager(CustomerGateway gateway, CustomerSearchRequest query) {
this.gateway = gateway;
this.query = query;
}
public List getPage(List ids) {
return gateway.fetchCustomers(query, ids);
}
}