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

org.knowm.xchange.coinbase.dto.merchant.CoinbaseSubscriptions Maven / Gradle / Ivy

There is a newer version: 5.2.1
Show newest version
package org.knowm.xchange.coinbase.dto.merchant;

import com.fasterxml.jackson.annotation.JsonProperty;
import java.util.List;
import org.knowm.xchange.coinbase.dto.CoinbasePagedResult;

/** @author jamespedwards42 */
public class CoinbaseSubscriptions extends CoinbasePagedResult {

  private final List subscriptions;

  private CoinbaseSubscriptions(
      @JsonProperty("recurring_payments") final List subscriptions,
      @JsonProperty("total_count") final int totalCount,
      @JsonProperty("num_pages") final int numPages,
      @JsonProperty("current_page") final int currentPage) {

    super(totalCount, numPages, currentPage);
    this.subscriptions = subscriptions;
  }

  public List getSubscriptions() {

    return subscriptions;
  }

  @Override
  public String toString() {

    return "CoinbaseSubscriptions [subscriptions=" + subscriptions + "]";
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy