
com.lookfirst.wepay.api.req.AccountFindRequest Maven / Gradle / Ivy
The newest version!
package com.lookfirst.wepay.api.req;
import java.util.List;
import lombok.Data;
import lombok.EqualsAndHashCode;
import com.lookfirst.wepay.api.WePayAccount;
import com.lookfirst.wepay.api.Constants.SortOrder;
/**
* https://stage.wepay.com/developer/reference/account
*
* This call lets you search the accounts of the user associated with the access token used to make the call.
* You can search by name or reference_id, and the response will be an array of all the matching accounts.
* If both name and reference_id are blank, this will return an array of all of the user's accounts.
*
* @author Jon Scott Stevens
* @author Jeff Schnitzer
*/
@Data
@EqualsAndHashCode(callSuper=false)
public class AccountFindRequest extends WePayRequest> {
/** The name of the account you are searching for. */
private String name;
/** The reference ID of the account you are searching for (set by the app in in /account/create or account/modify). */
private String referenceId;
/** Sort the results of the search by time created. Use 'DESC' for most recent to least recent. Use 'ASC' for least recent to most recent. Defaults to 'DESC'. */
private SortOrder sortOrder;
/** */
@Override
public String getEndpoint() {
return "/account/find";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy