com.stripe.model.terminal.ConnectionToken Maven / Gradle / Ivy
// Generated by delombok at Mon Sep 24 15:00:09 CEST 2018
package com.stripe.model.terminal;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiResource;
import com.stripe.net.RequestOptions;
import java.util.Map;
public class ConnectionToken extends ApiResource {
String object;
String secret;
//
/**
* Create a connection token.
*/
public static ConnectionToken create(Map params) throws StripeException {
return create(params, null);
}
/**
* Create a connection token.
*/
public static ConnectionToken create(Map params, RequestOptions options) throws StripeException {
return request(RequestMethod.POST, classUrl(ConnectionToken.class), params, ConnectionToken.class, options);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getSecret() {
return this.secret;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setSecret(final String secret) {
this.secret = secret;
}
@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 ConnectionToken)) return false;
final ConnectionToken other = (ConnectionToken) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$object = this.getObject();
final java.lang.Object other$object = other.getObject();
if (this$object == null ? other$object != null : !this$object.equals(other$object)) return false;
final java.lang.Object this$secret = this.getSecret();
final java.lang.Object other$secret = other.getSecret();
if (this$secret == null ? other$secret != null : !this$secret.equals(other$secret)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ConnectionToken;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
final java.lang.Object $secret = this.getSecret();
result = result * PRIME + ($secret == null ? 43 : $secret.hashCode());
return result;
}
//
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy