Skip to content

Commit

Permalink
feat: add missed errors structures
Browse files Browse the repository at this point in the history
  • Loading branch information
TheUnderScorer committed Feb 27, 2024
1 parent c66373e commit efb8fd6
Show file tree
Hide file tree
Showing 3 changed files with 72 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/SignalResponseRawDeviceAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
| Name | Type | Description | Notes |
|------------ | ------------- | ------------- | -------------|
|**data** | [**Map<String, RawDeviceAttributesResultValue>**](RawDeviceAttributesResultValue.md) | It includes 35+ raw browser identification attributes to provide Fingerprint users with even more information than our standard visitor ID provides. This enables Fingerprint users to not have to run our open-source product in conjunction with Fingerprint Pro Plus and Enterprise to get those additional attributes. Warning: The raw signals data can change at any moment as we improve the product. We cannot guarantee the internal shape of raw device attributes to be stable, so typical semantic versioning rules do not apply here. Use this data with caution without assuming a specific structure beyond the generic type provided here. | [optional] |
|**error** | [**ProductError**](ProductError.md) | | [optional] |



38 changes: 35 additions & 3 deletions src/main/java/com/fingerprint/model/EventResponse.java
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,17 @@
*/
@ApiModel(description = "Contains results from all activated products - Fingerprint Pro, Bot Detection, and others.")
@JsonPropertyOrder({
EventResponse.JSON_PROPERTY_PRODUCTS
EventResponse.JSON_PROPERTY_PRODUCTS,
EventResponse.JSON_PROPERTY_ERROR
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class EventResponse {
public static final String JSON_PROPERTY_PRODUCTS = "products";
private ProductsResponse products;

public static final String JSON_PROPERTY_ERROR = "error";
private ProductError error;

public EventResponse() {
}

Expand Down Expand Up @@ -71,6 +75,32 @@ public void setProducts(ProductsResponse products) {
}


public EventResponse error(ProductError error) {
this.error = error;
return this;
}

/**
* Get error
* @return error
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public ProductError getError() {
return error;
}


@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setError(ProductError error) {
this.error = error;
}


/**
* Return true if this EventResponse object is equal to o.
*/
Expand All @@ -83,19 +113,21 @@ public boolean equals(Object o) {
return false;
}
EventResponse eventResponse = (EventResponse) o;
return Objects.equals(this.products, eventResponse.products);
return Objects.equals(this.products, eventResponse.products) &&
Objects.equals(this.error, eventResponse.error);
}

@Override
public int hashCode() {
return Objects.hash(products);
return Objects.hash(products, error);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class EventResponse {\n");
sb.append(" products: ").append(toIndentedString(products)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeName;
import com.fasterxml.jackson.annotation.JsonValue;
import com.fingerprint.model.ProductError;
import com.fingerprint.model.RawDeviceAttributesResultValue;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
Expand All @@ -35,13 +36,17 @@
* SignalResponseRawDeviceAttributes
*/
@JsonPropertyOrder({
SignalResponseRawDeviceAttributes.JSON_PROPERTY_DATA
SignalResponseRawDeviceAttributes.JSON_PROPERTY_DATA,
SignalResponseRawDeviceAttributes.JSON_PROPERTY_ERROR
})
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen")
public class SignalResponseRawDeviceAttributes {
public static final String JSON_PROPERTY_DATA = "data";
private Map<String, RawDeviceAttributesResultValue> data = null;

public static final String JSON_PROPERTY_ERROR = "error";
private ProductError error;

public SignalResponseRawDeviceAttributes() {
}

Expand Down Expand Up @@ -79,6 +84,32 @@ public void setData(Map<String, RawDeviceAttributesResultValue> data) {
}


public SignalResponseRawDeviceAttributes error(ProductError error) {
this.error = error;
return this;
}

/**
* Get error
* @return error
**/
@javax.annotation.Nullable
@ApiModelProperty(value = "")
@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

public ProductError getError() {
return error;
}


@JsonProperty(JSON_PROPERTY_ERROR)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setError(ProductError error) {
this.error = error;
}


/**
* Return true if this SignalResponseRawDeviceAttributes object is equal to o.
*/
Expand All @@ -91,19 +122,21 @@ public boolean equals(Object o) {
return false;
}
SignalResponseRawDeviceAttributes signalResponseRawDeviceAttributes = (SignalResponseRawDeviceAttributes) o;
return Objects.equals(this.data, signalResponseRawDeviceAttributes.data);
return Objects.equals(this.data, signalResponseRawDeviceAttributes.data) &&
Objects.equals(this.error, signalResponseRawDeviceAttributes.error);
}

@Override
public int hashCode() {
return Objects.hash(data);
return Objects.hash(data, error);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class SignalResponseRawDeviceAttributes {\n");
sb.append(" data: ").append(toIndentedString(data)).append("\n");
sb.append(" error: ").append(toIndentedString(error)).append("\n");
sb.append("}");
return sb.toString();
}
Expand Down

0 comments on commit efb8fd6

Please sign in to comment.