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

com.recurly.v3.QueryParams Maven / Gradle / Ivy

There is a newer version: 4.58.0
Show newest version
/**
 * This file is automatically created by Recurly's OpenAPI generation process
 * and thus any edits you make by hand will be lost. If you wish to make a
 * change to this file, please create a Github issue explaining the changes you
 * need and we will usher them to the appropriate places.
 */
package com.recurly.v3;

import java.util.HashMap;
import java.util.List;
import org.joda.time.DateTime;

public class QueryParams {

  private HashMap params;

  public QueryParams() {
    this.params = new HashMap();
  }

  public HashMap getParams() {
    return this.params;
  }

  protected void add(final String key, final Object value) {
    this.params.put(key, value);
  }

  public void setIds(final List ids) {
    this.add("ids", String.join(",", ids));
  }

  public void setLimit(final Integer limit) {
    this.add("limit", limit);
  }

  public void setOrder(final Constants.AlphanumericSort order) {
    this.add("order", order);
  }

  public void setSort(final Constants.TimestampSort sort) {
    this.add("sort", sort);
  }

  public void setState(final Constants.ActiveState state) {
    this.add("state", state);
  }

  public void setBeginTime(final DateTime beginTime) {
    this.add("begin_time", beginTime);
  }

  public void setEndTime(final DateTime endTime) {
    this.add("end_time", endTime);
  }

  public void setEmail(final String email) {
    this.add("email", email);
  }

  public void setSubscriber(final Boolean subscriber) {
    this.add("subscriber", subscriber);
  }

  public void setPastDue(final Constants.True pastDue) {
    this.add("past_due", pastDue);
  }

  public void setType(final Constants.FilterInvoiceType type) {
    this.add("type", type);
  }

  public void setOriginal(final Constants.True original) {
    this.add("original", original);
  }

  public void setSuccess(final Constants.True success) {
    this.add("success", success);
  }

  public void setRelatedType(final Constants.RelatedType relatedType) {
    this.add("related_type", relatedType);
  }

  public void setAccountType(final Constants.GeneralLedgerAccountType accountType) {
    this.add("account_type", accountType);
  }

  public void setRefund(final Constants.RefundType refund) {
    this.add("refund", refund);
  }

  public void setCharge(final Boolean charge) {
    this.add("charge", charge);
  }

  public void setBillingStatus(final Constants.BillingStatus billingStatus) {
    this.add("billing_status", billingStatus);
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy