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

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

// Generated by delombok at Sat Feb 16 18:44:44 CET 2019
package com.stripe.model;

public final class PaymentIntentSourceAction extends StripeObject {
  PaymentIntentSourceActionValueAuthorizeWithUrl authorizeWithUrl;
  String type;
  // This attribute is deprecated and is here for legacy reasons.
  PaymentIntentSourceActionValue value;

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public PaymentIntentSourceActionValueAuthorizeWithUrl getAuthorizeWithUrl() {
    return this.authorizeWithUrl;
  }

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

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public PaymentIntentSourceActionValue getValue() {
    return this.value;
  }

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setAuthorizeWithUrl(final PaymentIntentSourceActionValueAuthorizeWithUrl authorizeWithUrl) {
    this.authorizeWithUrl = authorizeWithUrl;
  }

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

  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public void setValue(final PaymentIntentSourceActionValue value) {
    this.value = value;
  }

  @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 PaymentIntentSourceAction)) return false;
    final PaymentIntentSourceAction other = (PaymentIntentSourceAction) o;
    if (!other.canEqual((java.lang.Object) this)) return false;
    final java.lang.Object this$authorizeWithUrl = this.getAuthorizeWithUrl();
    final java.lang.Object other$authorizeWithUrl = other.getAuthorizeWithUrl();
    if (this$authorizeWithUrl == null ? other$authorizeWithUrl != null : !this$authorizeWithUrl.equals(other$authorizeWithUrl)) return false;
    final java.lang.Object this$type = this.getType();
    final java.lang.Object other$type = other.getType();
    if (this$type == null ? other$type != null : !this$type.equals(other$type)) return false;
    final java.lang.Object this$value = this.getValue();
    final java.lang.Object other$value = other.getValue();
    if (this$value == null ? other$value != null : !this$value.equals(other$value)) return false;
    return true;
  }

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

  @java.lang.Override
  @java.lang.SuppressWarnings("all")
  @lombok.Generated
  public int hashCode() {
    final int PRIME = 59;
    int result = 1;
    final java.lang.Object $authorizeWithUrl = this.getAuthorizeWithUrl();
    result = result * PRIME + ($authorizeWithUrl == null ? 43 : $authorizeWithUrl.hashCode());
    final java.lang.Object $type = this.getType();
    result = result * PRIME + ($type == null ? 43 : $type.hashCode());
    final java.lang.Object $value = this.getValue();
    result = result * PRIME + ($value == null ? 43 : $value.hashCode());
    return result;
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy