com.stripe.model.WebhookEndpoint Maven / Gradle / Ivy
// Generated by delombok at Sat Feb 16 18:44:44 CET 2019
package com.stripe.model;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiResource;
import com.stripe.net.RequestOptions;
import java.util.List;
import java.util.Map;
public class WebhookEndpoint extends ApiResource implements HasId {
String id;
String object;
String application;
Boolean connect;
Long created;
Boolean deleted;
List enabledEvents;
Boolean livemode;
String secret;
String status;
String url;
//
/**
* Create a webhook endpoint.
*/
public static WebhookEndpoint create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
* Create a webhook endpoint.
*/
public static WebhookEndpoint create(Map params, RequestOptions options) throws StripeException {
return request(RequestMethod.POST, classUrl(WebhookEndpoint.class), params, WebhookEndpoint.class, options);
}
//
//
/**
* Delete a webhook endpoint.
*/
public WebhookEndpoint delete() throws StripeException {
return delete((RequestOptions) null);
}
/**
* Delete a webhook endpoint.
*/
public WebhookEndpoint delete(RequestOptions options) throws StripeException {
return request(RequestMethod.DELETE, instanceUrl(WebhookEndpoint.class, this.id), null, WebhookEndpoint.class, options);
}
//
//
/**
* List all coupons.
*/
public static WebhookEndpointCollection list(Map params) throws StripeException {
return list(params, null);
}
/**
* List all coupons.
*/
public static WebhookEndpointCollection list(Map params, RequestOptions options) throws StripeException {
return requestCollection(classUrl(WebhookEndpoint.class), params, WebhookEndpointCollection.class, options);
}
//
//
/**
* Retrieve a webhook endpoint.
*/
public static WebhookEndpoint retrieve(String id) throws StripeException {
return retrieve(id, (RequestOptions) null);
}
/**
* Retrieve a webhook endpoint.
*/
public static WebhookEndpoint retrieve(String id, RequestOptions options) throws StripeException {
return retrieve(id, null, options);
}
/**
* Retrieve a webhook endpoint.
*/
public static WebhookEndpoint retrieve(String id, Map params, RequestOptions options) throws StripeException {
return request(RequestMethod.GET, instanceUrl(WebhookEndpoint.class, id), params, WebhookEndpoint.class, options);
}
//
//
/**
* Update a webhook endpoint.
*/
public WebhookEndpoint update(Map params) throws StripeException {
return update(params, (RequestOptions) null);
}
/**
* Update a webhook endpoint.
*/
public WebhookEndpoint update(Map params, RequestOptions options) throws StripeException {
return request(RequestMethod.POST, instanceUrl(WebhookEndpoint.class, this.id), params, WebhookEndpoint.class, options);
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getApplication() {
return this.application;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getConnect() {
return this.connect;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getCreated() {
return this.created;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getDeleted() {
return this.deleted;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public List getEnabledEvents() {
return this.enabledEvents;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getLivemode() {
return this.livemode;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getSecret() {
return this.secret;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getStatus() {
return this.status;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getUrl() {
return this.url;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final String id) {
this.id = id;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setApplication(final String application) {
this.application = application;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setConnect(final Boolean connect) {
this.connect = connect;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCreated(final Long created) {
this.created = created;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setDeleted(final Boolean deleted) {
this.deleted = deleted;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setEnabledEvents(final List enabledEvents) {
this.enabledEvents = enabledEvents;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setLivemode(final Boolean livemode) {
this.livemode = livemode;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setSecret(final String secret) {
this.secret = secret;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setStatus(final String status) {
this.status = status;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setUrl(final String url) {
this.url = url;
}
@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 WebhookEndpoint)) return false;
final WebhookEndpoint other = (WebhookEndpoint) o;
if (!other.canEqual((java.lang.Object) this)) return false;
final java.lang.Object this$id = this.getId();
final java.lang.Object other$id = other.getId();
if (this$id == null ? other$id != null : !this$id.equals(other$id)) 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$application = this.getApplication();
final java.lang.Object other$application = other.getApplication();
if (this$application == null ? other$application != null : !this$application.equals(other$application)) return false;
final java.lang.Object this$connect = this.getConnect();
final java.lang.Object other$connect = other.getConnect();
if (this$connect == null ? other$connect != null : !this$connect.equals(other$connect)) 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$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;
final java.lang.Object this$enabledEvents = this.getEnabledEvents();
final java.lang.Object other$enabledEvents = other.getEnabledEvents();
if (this$enabledEvents == null ? other$enabledEvents != null : !this$enabledEvents.equals(other$enabledEvents)) 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$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;
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$url = this.getUrl();
final java.lang.Object other$url = other.getUrl();
if (this$url == null ? other$url != null : !this$url.equals(other$url)) return false;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof WebhookEndpoint;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
final java.lang.Object $application = this.getApplication();
result = result * PRIME + ($application == null ? 43 : $application.hashCode());
final java.lang.Object $connect = this.getConnect();
result = result * PRIME + ($connect == null ? 43 : $connect.hashCode());
final java.lang.Object $created = this.getCreated();
result = result * PRIME + ($created == null ? 43 : $created.hashCode());
final java.lang.Object $deleted = this.getDeleted();
result = result * PRIME + ($deleted == null ? 43 : $deleted.hashCode());
final java.lang.Object $enabledEvents = this.getEnabledEvents();
result = result * PRIME + ($enabledEvents == null ? 43 : $enabledEvents.hashCode());
final java.lang.Object $livemode = this.getLivemode();
result = result * PRIME + ($livemode == null ? 43 : $livemode.hashCode());
final java.lang.Object $secret = this.getSecret();
result = result * PRIME + ($secret == null ? 43 : $secret.hashCode());
final java.lang.Object $status = this.getStatus();
result = result * PRIME + ($status == null ? 43 : $status.hashCode());
final java.lang.Object $url = this.getUrl();
result = result * PRIME + ($url == null ? 43 : $url.hashCode());
return result;
}
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
//
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy