diff --git a/src/main/java/io/castle/client/model/generated/Address.java b/src/main/java/io/castle/client/model/generated/Address.java index 06404b6..23f8164 100644 --- a/src/main/java/io/castle/client/model/generated/Address.java +++ b/src/main/java/io/castle/client/model/generated/Address.java @@ -13,22 +13,17 @@ 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.Arrays; +import java.util.Objects; + /** * Address */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Address { public static final String SERIALIZED_NAME_LINE1 = "line1"; @SerializedName(SERIALIZED_NAME_LINE1) diff --git a/src/main/java/io/castle/client/model/generated/AuthenticationMethod.java b/src/main/java/io/castle/client/model/generated/AuthenticationMethod.java index ff847b1..4a6c9cd 100644 --- a/src/main/java/io/castle/client/model/generated/AuthenticationMethod.java +++ b/src/main/java/io/castle/client/model/generated/AuthenticationMethod.java @@ -13,22 +13,15 @@ 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 io.castle.client.model.generated.AuthenticationMethodType; + +import java.util.Objects; /** * AuthenticationMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class AuthenticationMethod { public static final String SERIALIZED_NAME_TYPE = "type"; @SerializedName(SERIALIZED_NAME_TYPE) diff --git a/src/main/java/io/castle/client/model/generated/AuthenticationMethodType.java b/src/main/java/io/castle/client/model/generated/AuthenticationMethodType.java index f6f83d5..88a082c 100644 --- a/src/main/java/io/castle/client/model/generated/AuthenticationMethodType.java +++ b/src/main/java/io/castle/client/model/generated/AuthenticationMethodType.java @@ -13,16 +13,13 @@ package io.castle.client.model.generated; -import java.util.Objects; -import java.util.Arrays; -import com.google.gson.annotations.SerializedName; - -import java.io.IOException; import com.google.gson.TypeAdapter; import com.google.gson.annotations.JsonAdapter; import com.google.gson.stream.JsonReader; import com.google.gson.stream.JsonWriter; +import java.io.IOException; + /** * Gets or Sets AuthenticationMethodType */ @@ -47,7 +44,17 @@ public enum AuthenticationMethodType { SSO("$sso"), - KBA("$kba"); + KBA("$kba"), + + ELECTRONIC_ID("$electronic_id"), + + PHYSICAL_ID("$physical_id"), + + DOCUMENT("$document"), + + VIDEO("$video"), + + OTHER("$other"); private String value; diff --git a/src/main/java/io/castle/client/model/generated/ChangedChangesetEntry.java b/src/main/java/io/castle/client/model/generated/ChangedChangesetEntry.java index 283ab9c..5709191 100644 --- a/src/main/java/io/castle/client/model/generated/ChangedChangesetEntry.java +++ b/src/main/java/io/castle/client/model/generated/ChangedChangesetEntry.java @@ -13,23 +13,19 @@ package io.castle.client.model.generated; -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 java.util.Objects; /** * Information that the attribute changed along with the changed values. Examples: `{ \"password\": { \"changed\": true } }` */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") @ApiModel(description = "Information that the attribute changed along with the changed values. Examples: `{ \"password\": { \"changed\": true } }`") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") public class ChangedChangesetEntry extends BaseChangesetEntry { + public static final String SERIALIZED_NAME_CHANGED = "changed"; @SerializedName(SERIALIZED_NAME_CHANGED) private boolean changed = true; diff --git a/src/main/java/io/castle/client/model/generated/Changeset.java b/src/main/java/io/castle/client/model/generated/Changeset.java index db893e4..aa428a8 100644 --- a/src/main/java/io/castle/client/model/generated/Changeset.java +++ b/src/main/java/io/castle/client/model/generated/Changeset.java @@ -17,15 +17,14 @@ import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; -import java.util.HashMap; import java.util.Objects; /** * An object containing information about attributes that changed due to the event. You can send either anonymous attributes (eg. to track password changes) or full attributes (eg. email changes). To simplify your implementation, Castle *automatically* tracks changes to name, email, and phone, however, if you have the `from` and `to` values at hand, you can also send the changeset yourself, which also allows you to specify changes a user’s password as well as any other custom attributes. Changes to custom attributes won’t be searchable in the dashboard, but they will appear in the event stream. */ @ApiModel(description = "An object containing information about attributes that changed due to the event. You can send either anonymous attributes (eg. to track password changes) or full attributes (eg. email changes). To simplify your implementation, Castle *automatically* tracks changes to name, email, and phone, however, if you have the `from` and `to` values at hand, you can also send the changeset yourself, which also allows you to specify changes a user’s password as well as any other custom attributes. Changes to custom attributes won’t be searchable in the dashboard, but they will appear in the event stream.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") public class Changeset { +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public static final String SERIALIZED_NAME_PASSWORD = "password"; @SerializedName(SERIALIZED_NAME_PASSWORD) private BaseChangesetEntry password; @@ -77,11 +76,11 @@ public Changeset email(BaseChangesetEntry email) { } /** - * Email address change. Both from and to must be valid emails if provided. You can also inform Castle that the email changed without sending the values explicitly: `{ \"email\": { \"changed\": true } }` + * Email address change. You can also inform Castle that the email changed without sending the values explicitly: `{ \"email\": { \"changed\": true } }` * @return email **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Email address change. Both from and to must be valid emails if provided. You can also inform Castle that the email changed without sending the values explicitly: `{ \"email\": { \"changed\": true } }`") + @ApiModelProperty(value = "Email address change. You can also inform Castle that the email changed without sending the values explicitly: `{ \"email\": { \"changed\": true } }`") public BaseChangesetEntry getEmail() { return email; @@ -100,11 +99,11 @@ public Changeset phone(BaseChangesetEntry phone) { } /** - * Phone number change. Both from and to must be valid phone numbers if provided. You can also inform Castle that the phone changed without sending the values explicitly: `{ \"phone\": { \"changed\": true } }` + * Phone number change. You can also inform Castle that the phone changed without sending the values explicitly: `{ \"phone\": { \"changed\": true } }` * @return phone **/ @javax.annotation.Nullable - @ApiModelProperty(value = "Phone number change. Both from and to must be valid phone numbers if provided. You can also inform Castle that the phone changed without sending the values explicitly: `{ \"phone\": { \"changed\": true } }`") + @ApiModelProperty(value = "Phone number change. You can also inform Castle that the phone changed without sending the values explicitly: `{ \"phone\": { \"changed\": true } }`") public BaseChangesetEntry getPhone() { return phone; diff --git a/src/main/java/io/castle/client/model/generated/ChangesetEntry.java b/src/main/java/io/castle/client/model/generated/ChangesetEntry.java index d02cedf..af3cb7b 100644 --- a/src/main/java/io/castle/client/model/generated/ChangesetEntry.java +++ b/src/main/java/io/castle/client/model/generated/ChangesetEntry.java @@ -13,22 +13,17 @@ 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 java.util.Objects; /** * Information that the attribute changed along with the changed values. Examples: `{ \"email\": { \"from\": \"a@example.com\", \"to\": \"b@example.com\" }`, `{ \"authentication_method.type\": { \"from\": null, \"to\": \"$push\" }` */ @ApiModel(description = "Information that the attribute changed along with the changed values. Examples: `{ \"email\": { \"from\": \"a@example.com\", \"to\": \"b@example.com\" }`, `{ \"authentication_method.type\": { \"from\": null, \"to\": \"$push\" }`") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class ChangesetEntry extends BaseChangesetEntry { public static final String SERIALIZED_NAME_FROM = "from"; @SerializedName(SERIALIZED_NAME_FROM) diff --git a/src/main/java/io/castle/client/model/generated/Context.java b/src/main/java/io/castle/client/model/generated/Context.java index 7b714de..01b433b 100644 --- a/src/main/java/io/castle/client/model/generated/Context.java +++ b/src/main/java/io/castle/client/model/generated/Context.java @@ -24,7 +24,7 @@ /** * Context */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Context { public static final String SERIALIZED_NAME_HEADERS = "headers"; @SerializedName(SERIALIZED_NAME_HEADERS) diff --git a/src/main/java/io/castle/client/model/generated/Device.java b/src/main/java/io/castle/client/model/generated/Device.java index 6c1e58f..4e3e4a9 100644 --- a/src/main/java/io/castle/client/model/generated/Device.java +++ b/src/main/java/io/castle/client/model/generated/Device.java @@ -22,7 +22,7 @@ /** * Device */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Device { public static final String SERIALIZED_NAME_TOKEN = "token"; @SerializedName(SERIALIZED_NAME_TOKEN) diff --git a/src/main/java/io/castle/client/model/generated/DeviceContext.java b/src/main/java/io/castle/client/model/generated/DeviceContext.java index 9c815a2..1e6ec49 100644 --- a/src/main/java/io/castle/client/model/generated/DeviceContext.java +++ b/src/main/java/io/castle/client/model/generated/DeviceContext.java @@ -30,7 +30,7 @@ * Context for the most recent activity */ @ApiModel(description = "Context for the most recent activity") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class DeviceContext { public static final String SERIALIZED_NAME_IP = "ip"; @SerializedName(SERIALIZED_NAME_IP) diff --git a/src/main/java/io/castle/client/model/generated/DeviceContextLocation.java b/src/main/java/io/castle/client/model/generated/DeviceContextLocation.java index a79158c..73d379d 100644 --- a/src/main/java/io/castle/client/model/generated/DeviceContextLocation.java +++ b/src/main/java/io/castle/client/model/generated/DeviceContextLocation.java @@ -13,23 +13,18 @@ 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 java.math.BigDecimal; +import java.util.Objects; /** * Location of matched device. */ @ApiModel(description = "Location of matched device.") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class DeviceContextLocation { public static final String SERIALIZED_NAME_COUNTRY_CODE = "country_code"; @SerializedName(SERIALIZED_NAME_COUNTRY_CODE) diff --git a/src/main/java/io/castle/client/model/generated/DeviceContextUserAgent.java b/src/main/java/io/castle/client/model/generated/DeviceContextUserAgent.java index bdbb802..b07a6ca 100644 --- a/src/main/java/io/castle/client/model/generated/DeviceContextUserAgent.java +++ b/src/main/java/io/castle/client/model/generated/DeviceContextUserAgent.java @@ -13,21 +13,15 @@ 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 java.util.Objects; /** * DeviceContextUserAgent */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class DeviceContextUserAgent { public static final String SERIALIZED_NAME_RAW = "raw"; @SerializedName(SERIALIZED_NAME_RAW) diff --git a/src/main/java/io/castle/client/model/generated/Devices.java b/src/main/java/io/castle/client/model/generated/Devices.java index 6880269..e1c4870 100644 --- a/src/main/java/io/castle/client/model/generated/Devices.java +++ b/src/main/java/io/castle/client/model/generated/Devices.java @@ -13,24 +13,17 @@ 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 java.util.ArrayList; import java.util.List; -import io.castle.client.model.generated.Device; +import java.util.Objects; /** * Devices */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Devices { public static final String SERIALIZED_NAME_TOTAL_COUNT = "total_count"; @SerializedName(SERIALIZED_NAME_TOTAL_COUNT) diff --git a/src/main/java/io/castle/client/model/generated/Filter.java b/src/main/java/io/castle/client/model/generated/Filter.java index 3b9bfeb..8c9adc0 100644 --- a/src/main/java/io/castle/client/model/generated/Filter.java +++ b/src/main/java/io/castle/client/model/generated/Filter.java @@ -24,13 +24,12 @@ import java.io.IOException; import java.util.HashMap; import java.util.Map; - import org.threeten.bp.OffsetDateTime; /** * Filter */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Filter { public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) @@ -56,6 +55,14 @@ public class Filter { @SerializedName(SERIALIZED_NAME_USER) private User user; + public static final String SERIALIZED_NAME_PARAMS = "params"; + @SerializedName(SERIALIZED_NAME_PARAMS) + private FilterRequestParams params; + + public static final String SERIALIZED_NAME_MATCHING_USER_ID = "matching_user_id"; + @SerializedName(SERIALIZED_NAME_MATCHING_USER_ID) + private String matchingUserId; + /** * Gets or Sets type */ @@ -279,11 +286,11 @@ public Filter requestToken(String requestToken) { } /** - * Token generated from a client. Check out our [quick start guide](/v1/getting-started) to generate a `request_token` + * Token generated from a client. Check out our [quick start guide](https://docs.castle.io/docs/quickstart) to generate a `request_token` * @return requestToken **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "test_lZWva9rsNe3u0_EIc6R8V3t5beV38piPAQbhgREGygYCAo2FRSv1tAQ4-cb6ArKHOWK_zG18hO1uZ8K0LDbNqU9njuhscoLyaj3NyGxyiO0iS4ziIkm-oVom3LEsN9i6InSbuzo-w7ErJqrkYW2CrjA23LEyN92wIkCE82dggvktPtWvMmrl42Bj2uM7Zdn2AQGXC6qGTIECRlwaAgZcgcAGeX4", required = true, value = "Token generated from a client. Check out our [quick start guide](/v1/getting-started) to generate a `request_token` ") + @ApiModelProperty(example = "test_lZWva9rsNe3u0_EIc6R8V3t5beV38piPAQbhgREGygYCAo2FRSv1tAQ4-cb6ArKHOWK_zG18hO1uZ8K0LDbNqU9njuhscoLyaj3NyGxyiO0iS4ziIkm-oVom3LEsN9i6InSbuzo-w7ErJqrkYW2CrjA23LEyN92wIkCE82dggvktPtWvMmrl42Bj2uM7Zdn2AQGXC6qGTIECRlwaAgZcgcAGeX4", required = true, value = "Token generated from a client. Check out our [quick start guide](https://docs.castle.io/docs/quickstart) to generate a `request_token` ") public String getRequestToken() { return requestToken; @@ -318,6 +325,52 @@ public void setUser(User user) { } + public Filter params(FilterRequestParams params) { + + this.params = params; + return this; + } + + /** + * Get params + * @return params + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public FilterRequestParams getParams() { + return params; + } + + + public void setParams(FilterRequestParams params) { + this.params = params; + } + + + public Filter matchingUserId(String matchingUserId) { + + this.matchingUserId = matchingUserId; + return this; + } + + /** + * User id related connected with the request + * @return matchingUserId + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "123", value = "User id related connected with the request") + + public String getMatchingUserId() { + return matchingUserId; + } + + + public void setMatchingUserId(String matchingUserId) { + this.matchingUserId = matchingUserId; + } + + public Filter type(TypeEnum type) { this.type = type; @@ -425,6 +478,8 @@ public boolean equals(Object o) { Objects.equals(this.createdAt, filter.createdAt) && Objects.equals(this.requestToken, filter.requestToken) && Objects.equals(this.user, filter.user) && + Objects.equals(this.params, filter.params) && + Objects.equals(this.matchingUserId, filter.matchingUserId) && Objects.equals(this.type, filter.type) && Objects.equals(this.status, filter.status) && Objects.equals(this.authenticationMethod, filter.authenticationMethod) && @@ -433,7 +488,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(context, properties, product, createdAt, requestToken, user, type, status, authenticationMethod, name); + return Objects.hash(context, properties, product, createdAt, requestToken, user, params, matchingUserId, type, status, authenticationMethod, name); } @Override @@ -446,6 +501,8 @@ public String toString() { sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" requestToken: ").append(toIndentedString(requestToken)).append("\n"); sb.append(" user: ").append(toIndentedString(user)).append("\n"); + sb.append(" params: ").append(toIndentedString(params)).append("\n"); + sb.append(" matchingUserId: ").append(toIndentedString(matchingUserId)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" status: ").append(toIndentedString(status)).append("\n"); sb.append(" authenticationMethod: ").append(toIndentedString(authenticationMethod)).append("\n"); diff --git a/src/main/java/io/castle/client/model/generated/FilterRequestParams.java b/src/main/java/io/castle/client/model/generated/FilterRequestParams.java new file mode 100644 index 0000000..c773d96 --- /dev/null +++ b/src/main/java/io/castle/client/model/generated/FilterRequestParams.java @@ -0,0 +1,150 @@ +/* + * 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 Risk, Log (and the legacy Authenticate) APIs have a per-user-id rate limit of 6 requests per second and 10 requests per 5 seconds. + * + * The version of the OpenAPI document: 1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.castle.client.model.generated; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * FilterRequestAllOfParams + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") +public class FilterRequestParams { + public static final String SERIALIZED_NAME_EMAIL = "email"; + @SerializedName(SERIALIZED_NAME_EMAIL) + private String email; + + public static final String SERIALIZED_NAME_PHONE = "phone"; + @SerializedName(SERIALIZED_NAME_PHONE) + private String phone; + + public static final String SERIALIZED_NAME_USERNAME = "username"; + @SerializedName(SERIALIZED_NAME_USERNAME) + private String username; + + + public FilterRequestParams email(String email) { + + this.email = email; + return this; + } + + /** + * The email address sent by the user + * @return email + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "Rhea.Franecki@example.org", value = "The email address sent by the user") + + public String getEmail() { + return email; + } + + + public void setEmail(String email) { + this.email = email; + } + + + public FilterRequestParams phone(String phone) { + + this.phone = phone; + return this; + } + + /** + * The phone number sent by the user + * @return phone + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "+16175551212", value = "The phone number sent by the user") + + public String getPhone() { + return phone; + } + + + public void setPhone(String phone) { + this.phone = phone; + } + + + public FilterRequestParams username(String username) { + + this.username = username; + return this; + } + + /** + * The username sent by the user + * @return username + **/ + @javax.annotation.Nullable + @ApiModelProperty(example = "superhero123", value = "The username sent by the user") + + public String getUsername() { + return username; + } + + + public void setUsername(String username) { + this.username = username; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FilterRequestParams filterRequestAllOfParams = (FilterRequestParams) o; + return Objects.equals(this.email, filterRequestAllOfParams.email) && + Objects.equals(this.phone, filterRequestAllOfParams.phone) && + Objects.equals(this.username, filterRequestAllOfParams.username); + } + + @Override + public int hashCode() { + return Objects.hash(email, phone, username); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FilterRequestAllOfParams {\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).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 "); + } + +} + diff --git a/src/main/java/io/castle/client/model/generated/FilterResponse.java b/src/main/java/io/castle/client/model/generated/FilterResponse.java index efac34e..dfbbcf1 100644 --- a/src/main/java/io/castle/client/model/generated/FilterResponse.java +++ b/src/main/java/io/castle/client/model/generated/FilterResponse.java @@ -14,30 +14,26 @@ 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 java.math.BigDecimal; + import java.util.HashMap; -import java.util.List; import java.util.Map; -import io.castle.client.model.generated.Policy; /** * FilterResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class FilterResponse { public static final String SERIALIZED_NAME_RISK = "risk"; @SerializedName(SERIALIZED_NAME_RISK) private double risk; + public static final String SERIALIZED_NAME_SCORES = "scores"; + @SerializedName(SERIALIZED_NAME_SCORES) + private Scores scores; + public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) private Policy policy; @@ -48,13 +44,14 @@ public class FilterResponse { /** - * Calculated Risk. - * minimum: 0 - * maximum: 1 - * @return risk - **/ + * Calculated Risk Score. + * minimum: 0 + * maximum: 1 + * + * @return risk + **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "0.65", required = true, value = "Calculated Risk.") + @ApiModelProperty(example = "0.65", required = true, value = "Calculated Risk Score.") public double getRisk() { return risk; @@ -63,6 +60,29 @@ public double getRisk() { + public FilterResponse scores(Scores scores) { + + this.scores = scores; + return this; + } + + /** + * Get scores + * @return scores + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Scores getScores() { + return scores; + } + + + public void setScores(Scores scores) { + this.scores = scores; + } + + public FilterResponse policy(Policy policy) { this.policy = policy; @@ -110,13 +130,14 @@ public boolean equals(Object o) { } FilterResponse filterResponse = (FilterResponse) o; return Objects.equals(this.risk, filterResponse.risk) && + Objects.equals(this.scores, filterResponse.scores) && Objects.equals(this.policy, filterResponse.policy) && Objects.equals(this.signals, filterResponse.signals); } @Override public int hashCode() { - return Objects.hash(risk, policy, signals); + return Objects.hash(risk, scores, policy, signals); } @Override @@ -124,6 +145,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class FilterResponse {\n"); sb.append(" risk: ").append(toIndentedString(risk)).append("\n"); + sb.append(" scores: ").append(toIndentedString(scores)).append("\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" signals: ").append(toIndentedString(signals)).append("\n"); sb.append("}"); diff --git a/src/main/java/io/castle/client/model/generated/Log.java b/src/main/java/io/castle/client/model/generated/Log.java index 9e675bb..b2872f3 100644 --- a/src/main/java/io/castle/client/model/generated/Log.java +++ b/src/main/java/io/castle/client/model/generated/Log.java @@ -13,25 +13,25 @@ package io.castle.client.model.generated; -import java.util.*; - 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.ApiModelProperty; +import org.openapitools.jackson.nullable.JsonNullable; +import org.threeten.bp.OffsetDateTime; + import java.io.IOException; +import java.util.Arrays; import java.util.HashMap; import java.util.Map; - -import org.openapitools.jackson.nullable.JsonNullable; -import org.threeten.bp.OffsetDateTime; +import java.util.Objects; /** * Log */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Log { public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) diff --git a/src/main/java/io/castle/client/model/generated/PaymentMethod.java b/src/main/java/io/castle/client/model/generated/PaymentMethod.java index 7e9c7ca..358a503 100644 --- a/src/main/java/io/castle/client/model/generated/PaymentMethod.java +++ b/src/main/java/io/castle/client/model/generated/PaymentMethod.java @@ -13,23 +13,20 @@ 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 io.castle.client.model.generated.Address; -import io.castle.client.model.generated.PaymentMethodCard; +import java.util.Objects; /** * PaymentMethod */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class PaymentMethod { /** * Gets or Sets type diff --git a/src/main/java/io/castle/client/model/generated/PaymentMethodCard.java b/src/main/java/io/castle/client/model/generated/PaymentMethodCard.java index d6c282a..32f2851 100644 --- a/src/main/java/io/castle/client/model/generated/PaymentMethodCard.java +++ b/src/main/java/io/castle/client/model/generated/PaymentMethodCard.java @@ -13,21 +13,20 @@ 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 java.util.Objects; /** * PaymentMethodCard */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class PaymentMethodCard { public static final String SERIALIZED_NAME_BIN = "bin"; @SerializedName(SERIALIZED_NAME_BIN) diff --git a/src/main/java/io/castle/client/model/generated/Policy.java b/src/main/java/io/castle/client/model/generated/Policy.java index ddcdd8b..3448b0e 100644 --- a/src/main/java/io/castle/client/model/generated/Policy.java +++ b/src/main/java/io/castle/client/model/generated/Policy.java @@ -13,8 +13,6 @@ 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; @@ -22,13 +20,15 @@ import com.google.gson.stream.JsonWriter; import io.swagger.annotations.ApiModel; import io.swagger.annotations.ApiModelProperty; + import java.io.IOException; +import java.util.Objects; /** * The matching policy */ @ApiModel(description = "The matching policy") -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Policy { public static final String SERIALIZED_NAME_NAME = "name"; @SerializedName(SERIALIZED_NAME_NAME) diff --git a/src/main/java/io/castle/client/model/generated/Product.java b/src/main/java/io/castle/client/model/generated/Product.java index e9428b1..d25ddd1 100644 --- a/src/main/java/io/castle/client/model/generated/Product.java +++ b/src/main/java/io/castle/client/model/generated/Product.java @@ -13,21 +13,15 @@ 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 java.util.Objects; /** * Product */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Product { public static final String SERIALIZED_NAME_ID = "id"; @SerializedName(SERIALIZED_NAME_ID) diff --git a/src/main/java/io/castle/client/model/generated/Risk.java b/src/main/java/io/castle/client/model/generated/Risk.java index f2f1772..56c664e 100644 --- a/src/main/java/io/castle/client/model/generated/Risk.java +++ b/src/main/java/io/castle/client/model/generated/Risk.java @@ -29,7 +29,7 @@ /** * Risk */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Risk { public static final String SERIALIZED_NAME_CONTEXT = "context"; @SerializedName(SERIALIZED_NAME_CONTEXT) diff --git a/src/main/java/io/castle/client/model/generated/RiskResponse.java b/src/main/java/io/castle/client/model/generated/RiskResponse.java index dbf027f..b4adcff 100644 --- a/src/main/java/io/castle/client/model/generated/RiskResponse.java +++ b/src/main/java/io/castle/client/model/generated/RiskResponse.java @@ -13,24 +13,26 @@ package io.castle.client.model.generated; -import java.util.Objects; - import com.google.gson.annotations.SerializedName; import io.swagger.annotations.ApiModelProperty; -import java.math.BigDecimal; import java.util.HashMap; import java.util.Map; +import java.util.Objects; /** * RiskResponse */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class RiskResponse { public static final String SERIALIZED_NAME_RISK = "risk"; @SerializedName(SERIALIZED_NAME_RISK) private double risk; + public static final String SERIALIZED_NAME_SCORES = "scores"; + @SerializedName(SERIALIZED_NAME_SCORES) + private Scores scores; + public static final String SERIALIZED_NAME_POLICY = "policy"; @SerializedName(SERIALIZED_NAME_POLICY) private Policy policy; @@ -45,19 +47,39 @@ public class RiskResponse { /** - * Calculated Risk. + * Calculated Risk Score. * minimum: 0 * maximum: 1 * @return risk **/ @javax.annotation.Nonnull - @ApiModelProperty(example = "0.65", required = true, value = "Calculated Risk.") + @ApiModelProperty(example = "0.65", required = true, value = "Calculated Risk Score.") public double getRisk() { return risk; } + public RiskResponse scores(Scores scores) { + + this.scores = scores; + return this; + } + + /** + * Get scores + * @return scores + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + public Scores getScores() { + return scores; + } + + + public void setScores(Scores scores) { + this.scores = scores; + } public RiskResponse policy(Policy policy) { @@ -130,6 +152,7 @@ public boolean equals(Object o) { } RiskResponse riskResponse = (RiskResponse) o; return Objects.equals(this.risk, riskResponse.risk) && + Objects.equals(this.scores, riskResponse.scores) && Objects.equals(this.policy, riskResponse.policy) && Objects.equals(this.signals, riskResponse.signals) && Objects.equals(this.device, riskResponse.device); @@ -137,7 +160,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(risk, policy, signals, device); + return Objects.hash(risk, scores, policy, signals, device); } @Override @@ -145,6 +168,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RiskResponse {\n"); sb.append(" risk: ").append(toIndentedString(risk)).append("\n"); + sb.append(" scores: ").append(toIndentedString(scores)).append("\n"); sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); sb.append(" signals: ").append(toIndentedString(signals)).append("\n"); sb.append(" device: ").append(toIndentedString(device)).append("\n"); diff --git a/src/main/java/io/castle/client/model/generated/Score.java b/src/main/java/io/castle/client/model/generated/Score.java new file mode 100644 index 0000000..d6b33b4 --- /dev/null +++ b/src/main/java/io/castle/client/model/generated/Score.java @@ -0,0 +1,82 @@ +/* + * 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 Risk, Log (and the legacy Authenticate) APIs have a per-user-id rate limit of 6 requests per second and 10 requests per 5 seconds. + * + * The version of the OpenAPI document: 1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.castle.client.model.generated; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * Score + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") +public class Score { + public static final String SERIALIZED_NAME_SCORE = "score"; + @SerializedName(SERIALIZED_NAME_SCORE) + private double score; + + + /** + * Calculated Risk Score. + * minimum: 0 + * maximum: 1 + * @return score + **/ + @javax.annotation.Nonnull + @ApiModelProperty(example = "0.65", required = true, value = "Calculated Risk Score.") + + public double getScore() { + return score; + } + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Score score = (Score) o; + return Objects.equals(this.score, score.score); + } + + @Override + public int hashCode() { + return Objects.hash(score); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Score {\n"); + sb.append(" score: ").append(toIndentedString(score)).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 "); + } + +} + diff --git a/src/main/java/io/castle/client/model/generated/Scores.java b/src/main/java/io/castle/client/model/generated/Scores.java new file mode 100644 index 0000000..098160a --- /dev/null +++ b/src/main/java/io/castle/client/model/generated/Scores.java @@ -0,0 +1,150 @@ +/* + * 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 Risk, Log (and the legacy Authenticate) APIs have a per-user-id rate limit of 6 requests per second and 10 requests per 5 seconds. + * + * The version of the OpenAPI document: 1 + * + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +package io.castle.client.model.generated; + +import java.util.Objects; + +import com.google.gson.annotations.SerializedName; +import io.swagger.annotations.ApiModelProperty; + +/** + * FilterResponseScores + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") +public class Scores { + public static final String SERIALIZED_NAME_ACCOUNT_ABUSE = "account_abuse"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_ABUSE) + private Score accountAbuse; + + public static final String SERIALIZED_NAME_ACCOUNT_TAKEOVER = "account_takeover"; + @SerializedName(SERIALIZED_NAME_ACCOUNT_TAKEOVER) + private Score accountTakeover; + + public static final String SERIALIZED_NAME_BOT = "bot"; + @SerializedName(SERIALIZED_NAME_BOT) + private Score bot; + + + public Scores accountAbuse(Score accountAbuse) { + + this.accountAbuse = accountAbuse; + return this; + } + + /** + * Get accountAbuse + * @return accountAbuse + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Score getAccountAbuse() { + return accountAbuse; + } + + + public void setAccountAbuse(Score accountAbuse) { + this.accountAbuse = accountAbuse; + } + + + public Scores accountTakeover(Score accountTakeover) { + + this.accountTakeover = accountTakeover; + return this; + } + + /** + * Get accountTakeover + * @return accountTakeover + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Score getAccountTakeover() { + return accountTakeover; + } + + + public void setAccountTakeover(Score accountTakeover) { + this.accountTakeover = accountTakeover; + } + + + public Scores bot(Score bot) { + + this.bot = bot; + return this; + } + + /** + * Get bot + * @return bot + **/ + @javax.annotation.Nonnull + @ApiModelProperty(required = true, value = "") + + public Score getBot() { + return bot; + } + + + public void setBot(Score bot) { + this.bot = bot; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Scores scores = (Scores) o; + return Objects.equals(this.accountAbuse, scores.accountAbuse) && + Objects.equals(this.accountTakeover, scores.accountTakeover) && + Objects.equals(this.bot, scores.bot); + } + + @Override + public int hashCode() { + return Objects.hash(accountAbuse, accountTakeover, bot); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FilterResponseScores {\n"); + sb.append(" accountAbuse: ").append(toIndentedString(accountAbuse)).append("\n"); + sb.append(" accountTakeover: ").append(toIndentedString(accountTakeover)).append("\n"); + sb.append(" bot: ").append(toIndentedString(bot)).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 "); + } + +} + diff --git a/src/main/java/io/castle/client/model/generated/Transaction.java b/src/main/java/io/castle/client/model/generated/Transaction.java index 17cd6b6..3f004c8 100644 --- a/src/main/java/io/castle/client/model/generated/Transaction.java +++ b/src/main/java/io/castle/client/model/generated/Transaction.java @@ -26,7 +26,7 @@ /** * Transaction */ -@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-05-16T17:44:30.591898+02:00[Europe/Stockholm]") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen", date = "2022-09-05T12:03:37.030848+02:00[Europe/Stockholm]") public class Transaction { /** * Gets or Sets type @@ -99,6 +99,10 @@ public TypeEnum read(final JsonReader jsonReader) throws IOException { @SerializedName(SERIALIZED_NAME_PAYMENT_METHOD) private PaymentMethod paymentMethod; + public static final String SERIALIZED_NAME_SHIPPING_ADDRESS = "shipping_address"; + @SerializedName(SERIALIZED_NAME_SHIPPING_ADDRESS) + private Address shippingAddress; + public Transaction type(TypeEnum type) { @@ -192,6 +196,29 @@ public void setPaymentMethod(PaymentMethod paymentMethod) { } + public Transaction shippingAddress(Address shippingAddress) { + + this.shippingAddress = shippingAddress; + return this; + } + + /** + * Get shippingAddress + * @return shippingAddress + **/ + @javax.annotation.Nullable + @ApiModelProperty(value = "") + + public Address getShippingAddress() { + return shippingAddress; + } + + + public void setShippingAddress(Address shippingAddress) { + this.shippingAddress = shippingAddress; + } + + @Override public boolean equals(Object o) { if (this == o) { @@ -204,12 +231,13 @@ public boolean equals(Object o) { return Objects.equals(this.type, transaction.type) && Objects.equals(this.id, transaction.id) && Objects.equals(this.amount, transaction.amount) && - Objects.equals(this.paymentMethod, transaction.paymentMethod); + Objects.equals(this.paymentMethod, transaction.paymentMethod) && + Objects.equals(this.shippingAddress, transaction.shippingAddress); } @Override public int hashCode() { - return Objects.hash(type, id, amount, paymentMethod); + return Objects.hash(type, id, amount, paymentMethod, shippingAddress); } @Override @@ -220,6 +248,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" shippingAddress: ").append(toIndentedString(shippingAddress)).append("\n"); sb.append("}"); return sb.toString(); }