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

com.stripe.model.BitcoinReceiver Maven / Gradle / Ivy

// Generated by delombok at Thu Nov 08 14:01:03 PST 2018
package com.stripe.model;

import com.stripe.Stripe;
import com.stripe.exception.StripeException;
import com.stripe.net.RequestOptions;
import java.util.Map;

public class BitcoinReceiver extends ExternalAccount {
  Boolean active;
  Long amount;
  Long amountReceived;
  Long bitcoinAmount;
  Long bitcoinAmountReceived;
  String bitcoinUri;
  Long created;
  String currency;
  String description;
  String email;
  Boolean filled;
  String inboundAddress;
  Boolean livemode;
  String payment;
  String refundAddress;
  Boolean rejectTransactions;
  String status;
  BitcoinTransactionCollection transactions;
  Boolean uncapturedFunds;
  Boolean usedForPayment;
  Boolean deleted;

  @Deprecated
  public static BitcoinReceiverCollection all(Map params) throws StripeException {
    return list(params, null);
  }

  @Deprecated
  public static BitcoinReceiverCollection all(Map params, RequestOptions options) throws StripeException {
    return list(params, options);
  }

  public static BitcoinReceiverCollection list(Map params) throws StripeException {
    return list(params, null);
  }

  public static BitcoinReceiverCollection list(Map params, RequestOptions options) throws StripeException {
    String url = String.format("%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers");
    return requestCollection(url, params, BitcoinReceiverCollection.class, options);
  }

  public static BitcoinReceiver retrieve(String id) throws StripeException {
    return retrieve(id, null);
  }

  public static BitcoinReceiver retrieve(String id, RequestOptions options) throws StripeException {
    return request(RequestMethod.GET, String.format("%s/%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers", id), null, BitcoinReceiver.class, options);
  }

  @Override
  protected String getInstanceUrl() {
    String result = super.getInstanceUrl();
    if (result == null) {
      return String.format("%s/%s/%s", Stripe.getApiBase(), "v1/bitcoin/receivers", this.getId());
    } else {
      return result;
    }
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getActive() {
    return this.active;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Long getAmount() {
    return this.amount;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Long getAmountReceived() {
    return this.amountReceived;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Long getBitcoinAmount() {
    return this.bitcoinAmount;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Long getBitcoinAmountReceived() {
    return this.bitcoinAmountReceived;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getBitcoinUri() {
    return this.bitcoinUri;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Long getCreated() {
    return this.created;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getCurrency() {
    return this.currency;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getDescription() {
    return this.description;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getEmail() {
    return this.email;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getFilled() {
    return this.filled;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getInboundAddress() {
    return this.inboundAddress;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getLivemode() {
    return this.livemode;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getPayment() {
    return this.payment;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getRefundAddress() {
    return this.refundAddress;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getRejectTransactions() {
    return this.rejectTransactions;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public String getStatus() {
    return this.status;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public BitcoinTransactionCollection getTransactions() {
    return this.transactions;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getUncapturedFunds() {
    return this.uncapturedFunds;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getUsedForPayment() {
    return this.usedForPayment;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public Boolean getDeleted() {
    return this.deleted;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setActive(final Boolean active) {
    this.active = active;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setAmount(final Long amount) {
    this.amount = amount;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setAmountReceived(final Long amountReceived) {
    this.amountReceived = amountReceived;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setBitcoinAmount(final Long bitcoinAmount) {
    this.bitcoinAmount = bitcoinAmount;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setBitcoinAmountReceived(final Long bitcoinAmountReceived) {
    this.bitcoinAmountReceived = bitcoinAmountReceived;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setBitcoinUri(final String bitcoinUri) {
    this.bitcoinUri = bitcoinUri;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setCreated(final Long created) {
    this.created = created;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setCurrency(final String currency) {
    this.currency = currency;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setDescription(final String description) {
    this.description = description;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setEmail(final String email) {
    this.email = email;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setFilled(final Boolean filled) {
    this.filled = filled;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setInboundAddress(final String inboundAddress) {
    this.inboundAddress = inboundAddress;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setLivemode(final Boolean livemode) {
    this.livemode = livemode;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setPayment(final String payment) {
    this.payment = payment;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setRefundAddress(final String refundAddress) {
    this.refundAddress = refundAddress;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setRejectTransactions(final Boolean rejectTransactions) {
    this.rejectTransactions = rejectTransactions;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setStatus(final String status) {
    this.status = status;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setTransactions(final BitcoinTransactionCollection transactions) {
    this.transactions = transactions;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setUncapturedFunds(final Boolean uncapturedFunds) {
    this.uncapturedFunds = uncapturedFunds;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setUsedForPayment(final Boolean usedForPayment) {
    this.usedForPayment = usedForPayment;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setDeleted(final Boolean deleted) {
    this.deleted = deleted;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public boolean equals(final java.lang.Object o) {
    if (o == this) return true;
    if (!(o instanceof BitcoinReceiver)) return false;
    final BitcoinReceiver other = (BitcoinReceiver) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    if (!super.equals(o)) return false;
    final java.lang.Object this$active = this.getActive();
    final java.lang.Object other$active = other.getActive();
    if (this$active == null ? other$active != null : !this$active.equals(other$active)) return false;
    final java.lang.Object this$amount = this.getAmount();
    final java.lang.Object other$amount = other.getAmount();
    if (this$amount == null ? other$amount != null : !this$amount.equals(other$amount)) return false;
    final java.lang.Object this$amountReceived = this.getAmountReceived();
    final java.lang.Object other$amountReceived = other.getAmountReceived();
    if (this$amountReceived == null ? other$amountReceived != null : !this$amountReceived.equals(other$amountReceived)) return false;
    final java.lang.Object this$bitcoinAmount = this.getBitcoinAmount();
    final java.lang.Object other$bitcoinAmount = other.getBitcoinAmount();
    if (this$bitcoinAmount == null ? other$bitcoinAmount != null : !this$bitcoinAmount.equals(other$bitcoinAmount)) return false;
    final java.lang.Object this$bitcoinAmountReceived = this.getBitcoinAmountReceived();
    final java.lang.Object other$bitcoinAmountReceived = other.getBitcoinAmountReceived();
    if (this$bitcoinAmountReceived == null ? other$bitcoinAmountReceived != null : !this$bitcoinAmountReceived.equals(other$bitcoinAmountReceived)) return false;
    final java.lang.Object this$bitcoinUri = this.getBitcoinUri();
    final java.lang.Object other$bitcoinUri = other.getBitcoinUri();
    if (this$bitcoinUri == null ? other$bitcoinUri != null : !this$bitcoinUri.equals(other$bitcoinUri)) return false;
    final java.lang.Object this$created = this.getCreated();
    final java.lang.Object other$created = other.getCreated();
    if (this$created == null ? other$created != null : !this$created.equals(other$created)) return false;
    final java.lang.Object this$currency = this.getCurrency();
    final java.lang.Object other$currency = other.getCurrency();
    if (this$currency == null ? other$currency != null : !this$currency.equals(other$currency)) return false;
    final java.lang.Object this$description = this.getDescription();
    final java.lang.Object other$description = other.getDescription();
    if (this$description == null ? other$description != null : !this$description.equals(other$description)) return false;
    final java.lang.Object this$email = this.getEmail();
    final java.lang.Object other$email = other.getEmail();
    if (this$email == null ? other$email != null : !this$email.equals(other$email)) return false;
    final java.lang.Object this$filled = this.getFilled();
    final java.lang.Object other$filled = other.getFilled();
    if (this$filled == null ? other$filled != null : !this$filled.equals(other$filled)) return false;
    final java.lang.Object this$inboundAddress = this.getInboundAddress();
    final java.lang.Object other$inboundAddress = other.getInboundAddress();
    if (this$inboundAddress == null ? other$inboundAddress != null : !this$inboundAddress.equals(other$inboundAddress)) return false;
    final java.lang.Object this$livemode = this.getLivemode();
    final java.lang.Object other$livemode = other.getLivemode();
    if (this$livemode == null ? other$livemode != null : !this$livemode.equals(other$livemode)) return false;
    final java.lang.Object this$payment = this.getPayment();
    final java.lang.Object other$payment = other.getPayment();
    if (this$payment == null ? other$payment != null : !this$payment.equals(other$payment)) return false;
    final java.lang.Object this$refundAddress = this.getRefundAddress();
    final java.lang.Object other$refundAddress = other.getRefundAddress();
    if (this$refundAddress == null ? other$refundAddress != null : !this$refundAddress.equals(other$refundAddress)) return false;
    final java.lang.Object this$rejectTransactions = this.getRejectTransactions();
    final java.lang.Object other$rejectTransactions = other.getRejectTransactions();
    if (this$rejectTransactions == null ? other$rejectTransactions != null : !this$rejectTransactions.equals(other$rejectTransactions)) return false;
    final java.lang.Object this$status = this.getStatus();
    final java.lang.Object other$status = other.getStatus();
    if (this$status == null ? other$status != null : !this$status.equals(other$status)) return false;
    final java.lang.Object this$transactions = this.getTransactions();
    final java.lang.Object other$transactions = other.getTransactions();
    if (this$transactions == null ? other$transactions != null : !this$transactions.equals(other$transactions)) return false;
    final java.lang.Object this$uncapturedFunds = this.getUncapturedFunds();
    final java.lang.Object other$uncapturedFunds = other.getUncapturedFunds();
    if (this$uncapturedFunds == null ? other$uncapturedFunds != null : !this$uncapturedFunds.equals(other$uncapturedFunds)) return false;
    final java.lang.Object this$usedForPayment = this.getUsedForPayment();
    final java.lang.Object other$usedForPayment = other.getUsedForPayment();
    if (this$usedForPayment == null ? other$usedForPayment != null : !this$usedForPayment.equals(other$usedForPayment)) return false;
    final java.lang.Object this$deleted = this.getDeleted();
    final java.lang.Object other$deleted = other.getDeleted();
    if (this$deleted == null ? other$deleted != null : !this$deleted.equals(other$deleted)) return false;
    return true;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  protected boolean canEqual(final java.lang.Object other) {
    return other instanceof BitcoinReceiver;
  }

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public int hashCode() {
    final int PRIME = 59;
    int result = super.hashCode();
    final java.lang.Object $active = this.getActive();
    result = result * PRIME + ($active == null ? 43 : $active.hashCode());
    final java.lang.Object $amount = this.getAmount();
    result = result * PRIME + ($amount == null ? 43 : $amount.hashCode());
    final java.lang.Object $amountReceived = this.getAmountReceived();
    result = result * PRIME + ($amountReceived == null ? 43 : $amountReceived.hashCode());
    final java.lang.Object $bitcoinAmount = this.getBitcoinAmount();
    result = result * PRIME + ($bitcoinAmount == null ? 43 : $bitcoinAmount.hashCode());
    final java.lang.Object $bitcoinAmountReceived = this.getBitcoinAmountReceived();
    result = result * PRIME + ($bitcoinAmountReceived == null ? 43 : $bitcoinAmountReceived.hashCode());
    final java.lang.Object $bitcoinUri = this.getBitcoinUri();
    result = result * PRIME + ($bitcoinUri == null ? 43 : $bitcoinUri.hashCode());
    final java.lang.Object $created = this.getCreated();
    result = result * PRIME + ($created == null ? 43 : $created.hashCode());
    final java.lang.Object $currency = this.getCurrency();
    result = result * PRIME + ($currency == null ? 43 : $currency.hashCode());
    final java.lang.Object $description = this.getDescription();
    result = result * PRIME + ($description == null ? 43 : $description.hashCode());
    final java.lang.Object $email = this.getEmail();
    result = result * PRIME + ($email == null ? 43 : $email.hashCode());
    final java.lang.Object $filled = this.getFilled();
    result = result * PRIME + ($filled == null ? 43 : $filled.hashCode());
    final java.lang.Object $inboundAddress = this.getInboundAddress();
    result = result * PRIME + ($inboundAddress == null ? 43 : $inboundAddress.hashCode());
    final java.lang.Object $livemode = this.getLivemode();
    result = result * PRIME + ($livemode == null ? 43 : $livemode.hashCode());
    final java.lang.Object $payment = this.getPayment();
    result = result * PRIME + ($payment == null ? 43 : $payment.hashCode());
    final java.lang.Object $refundAddress = this.getRefundAddress();
    result = result * PRIME + ($refundAddress == null ? 43 : $refundAddress.hashCode());
    final java.lang.Object $rejectTransactions = this.getRejectTransactions();
    result = result * PRIME + ($rejectTransactions == null ? 43 : $rejectTransactions.hashCode());
    final java.lang.Object $status = this.getStatus();
    result = result * PRIME + ($status == null ? 43 : $status.hashCode());
    final java.lang.Object $transactions = this.getTransactions();
    result = result * PRIME + ($transactions == null ? 43 : $transactions.hashCode());
    final java.lang.Object $uncapturedFunds = this.getUncapturedFunds();
    result = result * PRIME + ($uncapturedFunds == null ? 43 : $uncapturedFunds.hashCode());
    final java.lang.Object $usedForPayment = this.getUsedForPayment();
    result = result * PRIME + ($usedForPayment == null ? 43 : $usedForPayment.hashCode());
    final java.lang.Object $deleted = this.getDeleted();
    result = result * PRIME + ($deleted == null ? 43 : $deleted.hashCode());
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy