Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 18 additions & 79 deletions src/main/java/io/castle/client/model/generated/Address.java
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -13,54 +13,39 @@

package io.castle.client.model.generated;

import java.util.Objects;
import java.util.Arrays;
import com.google.gson.TypeAdapter;
import com.google.gson.annotations.JsonAdapter;
import com.google.gson.annotations.SerializedName;
import com.google.gson.stream.JsonReader;
import com.google.gson.stream.JsonWriter;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.io.IOException;
import org.openapitools.jackson.nullable.JsonNullable;

import java.util.Objects;
/**
* Address
*/
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2023-06-05T10:18:20.077062+02:00[Europe/Stockholm]")
public class Address {
public static final String SERIALIZED_NAME_LINE1 = "line1";
@SerializedName(SERIALIZED_NAME_LINE1)
private String line1;

public static final String SERIALIZED_NAME_LINE2 = "line2";
@SerializedName(SERIALIZED_NAME_LINE2)
private String line2;
@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2025-01-20T18:58:06.855017776Z[GMT]")

public class Address {
@SerializedName("line1")
private String line1 = null;

public static final String SERIALIZED_NAME_CITY = "city";
@SerializedName(SERIALIZED_NAME_CITY)
private String city;
@SerializedName("line2")
private String line2 = null;

public static final String SERIALIZED_NAME_COUNTRY_CODE = "country_code";
@SerializedName(SERIALIZED_NAME_COUNTRY_CODE)
private String countryCode;
@SerializedName("city")
private String city = null;

public static final String SERIALIZED_NAME_REGION_CODE = "region_code";
@SerializedName(SERIALIZED_NAME_REGION_CODE)
private String regionCode;
@SerializedName("country_code")
private String countryCode = null;

public static final String SERIALIZED_NAME_POSTAL_CODE = "postal_code";
@SerializedName(SERIALIZED_NAME_POSTAL_CODE)
private String postalCode;
@SerializedName("region_code")
private String regionCode = null;

public static final String SERIALIZED_NAME_FINGERPRINT = "fingerprint";
@SerializedName(SERIALIZED_NAME_FINGERPRINT)
private String fingerprint;
@SerializedName("postal_code")
private String postalCode = null;

@SerializedName("fingerprint")
private String fingerprint = null;

public Address line1(String line1) {

this.line1 = line1;
return this;
}
Expand All @@ -69,21 +54,16 @@ public Address line1(String line1) {
* Get line1
* @return line1
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "60 Rausch Street", value = "")

public String getLine1() {
return line1;
}


public void setLine1(String line1) {
this.line1 = line1;
}


public Address line2(String line2) {

this.line2 = line2;
return this;
}
Expand All @@ -92,21 +72,16 @@ public Address line2(String line2) {
* Get line2
* @return line2
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")

public String getLine2() {
return line2;
}


public void setLine2(String line2) {
this.line2 = line2;
}


public Address city(String city) {

this.city = city;
return this;
}
Expand All @@ -115,21 +90,16 @@ public Address city(String city) {
* Name of the city associated to this address.
* @return city
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "San Francisco", value = "Name of the city associated to this address.")

public String getCity() {
return city;
}


public void setCity(String city) {
this.city = city;
}


public Address countryCode(String countryCode) {

this.countryCode = countryCode;
return this;
}
Expand All @@ -138,21 +108,16 @@ public Address countryCode(String countryCode) {
* ISO-3166 country code
* @return countryCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "US", required = true, value = "ISO-3166 country code")

public String getCountryCode() {
return countryCode;
}


public void setCountryCode(String countryCode) {
this.countryCode = countryCode;
}


public Address regionCode(String regionCode) {

this.regionCode = regionCode;
return this;
}
Expand All @@ -161,21 +126,16 @@ public Address regionCode(String regionCode) {
* ISO region code
* @return regionCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "CA", value = "ISO region code")

public String getRegionCode() {
return regionCode;
}


public void setRegionCode(String regionCode) {
this.regionCode = regionCode;
}


public Address postalCode(String postalCode) {

this.postalCode = postalCode;
return this;
}
Expand All @@ -184,21 +144,16 @@ public Address postalCode(String postalCode) {
* Get postalCode
* @return postalCode
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "94103", value = "")

public String getPostalCode() {
return postalCode;
}


public void setPostalCode(String postalCode) {
this.postalCode = postalCode;
}


public Address fingerprint(String fingerprint) {

this.fingerprint = fingerprint;
return this;
}
Expand All @@ -207,14 +162,11 @@ public Address fingerprint(String fingerprint) {
* Get fingerprint
* @return fingerprint
**/
@javax.annotation.Nullable
@ApiModelProperty(example = "8a33j2lir9", value = "")

public String getFingerprint() {
return fingerprint;
}


public void setFingerprint(String fingerprint) {
this.fingerprint = fingerprint;
}
Expand All @@ -238,23 +190,11 @@ public boolean equals(Object o) {
Objects.equals(this.fingerprint, address.fingerprint);
}

private static <T> boolean equalsNullable(JsonNullable<T> a, JsonNullable<T> b) {
return a == b || (a != null && b != null && a.isPresent() && b.isPresent() && a.get().getClass().isArray() ? Arrays.equals((T[])a.get(), (T[])b.get()) : Objects.equals(a.get(), b.get()));
}

@Override
public int hashCode() {
return Objects.hash(line1, line2, city, countryCode, regionCode, postalCode, fingerprint);
}

private static <T> int hashCodeNullable(JsonNullable<T> a) {
if (a == null) {
return 1;
}
return a.isPresent()
? (a.get().getClass().isArray() ? Arrays.hashCode((T[])a.get()) : Objects.hashCode(a.get()))
: 31;
}

@Override
public String toString() {
Expand Down Expand Up @@ -283,4 +223,3 @@ private String toIndentedString(Object o) {
}

}

87 changes: 87 additions & 0 deletions src/main/java/io/castle/client/model/generated/Behavior.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
/*
* Castle API
* ## Introduction **Just getting started? Check out our [quick start guide](https://docs.castle.io/docs/quickstart)** Castle APIs uses standard HTTP response codes, authentication and verbs. JSON is used as data exchange format, both for parsing incoming request bodies, and in the returned response. This means that the `Content-Type` header should to be set to `application/json` in requests with a body, such as `POST` or `PUT`. All API requests must be made over [HTTPS](http://en.wikipedia.org/wiki/HTTP_Secure). Non-HTTPS calls will fail and the **TLS version needs to be 1.1 or higher**. ## Supported types For a list of supported types, see our [Types Reference](https://docs.castle.io/docs/events). ## Rate limits Our APIs implement rate-limiting based on the number of requests made to them. Each request will return the following headers: - `X-RateLimit-Limit` - The maximum number of requests you're permitted to make in the current time window. - `X-RateLimit-Remaining` - The number of requests remaining in the current time window. - `X-RateLimit-Reset` - The remaining time in seconds until the current time window resets. Additionally, Our Risk, Filter (and the legacy Authenticate) APIs have a per-user-id rate limit of 6 requests per second and 10 requests per 5 seconds.
*
* OpenAPI spec version: 1
*
*
* NOTE: This class is auto generated by the swagger code generator program.
* https://github.com/swagger-api/swagger-codegen.git
* Do not edit the class manually.
*/

package io.castle.client.model.generated;

import com.google.gson.annotations.SerializedName;
import io.swagger.annotations.ApiModelProperty;

import java.util.Objects;
/**
* FilterAndRiskResponseBehavior
*/

@javax.annotation.Generated(value = "io.swagger.codegen.v3.generators.java.JavaClientCodegen", date = "2025-01-20T18:58:06.855017776Z[GMT]")

public class Behavior {
@SerializedName("fingerprint")
private String fingerprint = null;

public Behavior fingerprint(String fingerprint) {
this.fingerprint = fingerprint;
return this;
}

/**
* Get fingerprint
* @return fingerprint
**/
@ApiModelProperty(example = "vOch_0a_fpkl1Tf-pVPuDA", value = "")
public String getFingerprint() {
return fingerprint;
}

public void setFingerprint(String fingerprint) {
this.fingerprint = fingerprint;
}


@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
Behavior behavior = (Behavior) o;
return Objects.equals(this.fingerprint, behavior.fingerprint);
}

@Override
public int hashCode() {
return Objects.hash(fingerprint);
}


@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class FilterAndRiskResponseBehavior {\n");

sb.append(" fingerprint: ").append(toIndentedString(fingerprint)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces
* (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

}
Loading