com.stripe.model.ApplePayDomain Maven / Gradle / Ivy
// Generated by delombok at Fri May 03 17:08:00 PDT 2019
// Generated by com.stripe.generator.entity.SdkBuilder
package com.stripe.model;
import com.google.gson.annotations.SerializedName;
import com.stripe.Stripe;
import com.stripe.exception.StripeException;
import com.stripe.net.ApiResource;
import com.stripe.net.RequestOptions;
import com.stripe.param.ApplePayDomainCreateParams;
import com.stripe.param.ApplePayDomainListParams;
import com.stripe.param.ApplePayDomainRetrieveParams;
import java.util.Map;
public class ApplePayDomain extends ApiResource implements HasId {
/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
@SerializedName("created")
Long created;
/**
* Always true for a deleted object.
*/
@SerializedName("deleted")
Boolean deleted;
@SerializedName("domain_name")
String domainName;
/**
* Unique identifier for the object.
*/
@SerializedName("id")
String id;
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object
* exists in test mode.
*/
@SerializedName("livemode")
Boolean livemode;
/**
* String representing the object's type. Objects of the same type share the same value.
*/
@SerializedName("object")
String object;
/**
* List apple pay domains.
*/
public static ApplePayDomainCollection list(Map params) throws StripeException {
return list(params, (RequestOptions) null);
}
/**
* List apple pay domains.
*/
public static ApplePayDomainCollection list(Map params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), "/v1/apple_pay/domains");
return requestCollection(url, params, ApplePayDomainCollection.class, options);
}
/**
* List apple pay domains.
*/
public static ApplePayDomainCollection list(ApplePayDomainListParams params) throws StripeException {
return list(params, (RequestOptions) null);
}
/**
* List apple pay domains.
*/
public static ApplePayDomainCollection list(ApplePayDomainListParams params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), "/v1/apple_pay/domains");
return requestCollection(url, params, ApplePayDomainCollection.class, options);
}
/**
* Create an apple pay domain.
*/
public static ApplePayDomain create(Map params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
* Create an apple pay domain.
*/
public static ApplePayDomain create(Map params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), "/v1/apple_pay/domains");
return request(ApiResource.RequestMethod.POST, url, params, ApplePayDomain.class, options);
}
/**
* Create an apple pay domain.
*/
public static ApplePayDomain create(ApplePayDomainCreateParams params) throws StripeException {
return create(params, (RequestOptions) null);
}
/**
* Create an apple pay domain.
*/
public static ApplePayDomain create(ApplePayDomainCreateParams params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), "/v1/apple_pay/domains");
return request(ApiResource.RequestMethod.POST, url, params, ApplePayDomain.class, options);
}
/**
* Retrieve an apple pay domain.
*/
public static ApplePayDomain retrieve(String domain) throws StripeException {
return retrieve(domain, (Map) null, (RequestOptions) null);
}
/**
* Retrieve an apple pay domain.
*/
public static ApplePayDomain retrieve(String domain, RequestOptions options) throws StripeException {
return retrieve(domain, (Map) null, options);
}
/**
* Retrieve an apple pay domain.
*/
public static ApplePayDomain retrieve(String domain, Map params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(domain)));
return request(ApiResource.RequestMethod.GET, url, params, ApplePayDomain.class, options);
}
/**
* Retrieve an apple pay domain.
*/
public static ApplePayDomain retrieve(String domain, ApplePayDomainRetrieveParams params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(domain)));
return request(ApiResource.RequestMethod.GET, url, params, ApplePayDomain.class, options);
}
/**
* Delete an apple pay domain.
*/
public ApplePayDomain delete() throws StripeException {
return delete((Map) null, (RequestOptions) null);
}
/**
* Delete an apple pay domain.
*/
public ApplePayDomain delete(RequestOptions options) throws StripeException {
return delete((Map) null, options);
}
/**
* Delete an apple pay domain.
*/
public ApplePayDomain delete(Map params) throws StripeException {
return delete(params, (RequestOptions) null);
}
/**
* Delete an apple pay domain.
*/
public ApplePayDomain delete(Map params, RequestOptions options) throws StripeException {
String url = String.format("%s%s", Stripe.getApiBase(), String.format("/v1/apple_pay/domains/%s", ApiResource.urlEncodeId(this.getId())));
return request(ApiResource.RequestMethod.DELETE, url, params, ApplePayDomain.class, options);
}
/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Long getCreated() {
return this.created;
}
/**
* Always true for a deleted object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getDeleted() {
return this.deleted;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getDomainName() {
return this.domainName;
}
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object
* exists in test mode.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public Boolean getLivemode() {
return this.livemode;
}
/**
* String representing the object's type. Objects of the same type share the same value.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getObject() {
return this.object;
}
/**
* Time at which the object was created. Measured in seconds since the Unix epoch.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setCreated(final Long created) {
this.created = created;
}
/**
* Always true for a deleted object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setDeleted(final Boolean deleted) {
this.deleted = deleted;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setDomainName(final String domainName) {
this.domainName = domainName;
}
/**
* Unique identifier for the object.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setId(final String id) {
this.id = id;
}
/**
* Has the value `true` if the object exists in live mode or the value `false` if the object
* exists in test mode.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setLivemode(final Boolean livemode) {
this.livemode = livemode;
}
/**
* String representing the object's type. Objects of the same type share the same value.
*/
@java.lang.SuppressWarnings("all")
@lombok.Generated
public void setObject(final String object) {
this.object = object;
}
@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 ApplePayDomain)) return false;
final ApplePayDomain other = (ApplePayDomain) o;
if (!other.canEqual((java.lang.Object) this)) 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$domainName = this.getDomainName();
final java.lang.Object other$domainName = other.getDomainName();
if (this$domainName == null ? other$domainName != null : !this$domainName.equals(other$domainName)) 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$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$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;
return true;
}
@java.lang.SuppressWarnings("all")
@lombok.Generated
protected boolean canEqual(final java.lang.Object other) {
return other instanceof ApplePayDomain;
}
@java.lang.Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public int hashCode() {
final int PRIME = 59;
int result = 1;
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 $domainName = this.getDomainName();
result = result * PRIME + ($domainName == null ? 43 : $domainName.hashCode());
final java.lang.Object $id = this.getId();
result = result * PRIME + ($id == null ? 43 : $id.hashCode());
final java.lang.Object $livemode = this.getLivemode();
result = result * PRIME + ($livemode == null ? 43 : $livemode.hashCode());
final java.lang.Object $object = this.getObject();
result = result * PRIME + ($object == null ? 43 : $object.hashCode());
return result;
}
/**
* Unique identifier for the object.
*/
@Override
@java.lang.SuppressWarnings("all")
@lombok.Generated
public String getId() {
return this.id;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy