-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
SuspectScore
smart signal support
- Loading branch information
1 parent
044109e
commit c66373e
Showing
9 changed files
with
386 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
|
||
# SignalResponseSuspectScore | ||
|
||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
|------------ | ------------- | ------------- | -------------| | ||
|**data** | [**SuspectScoreResult**](SuspectScoreResult.md) | | [optional] | | ||
|**error** | [**ProductError**](ProductError.md) | | [optional] | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
|
||
|
||
# SuspectScoreResult | ||
|
||
|
||
## Properties | ||
|
||
| Name | Type | Description | Notes | | ||
|------------ | ------------- | ------------- | -------------| | ||
|**result** | **Integer** | Suspect Score is an easy way to integrate Smart Signals into your fraud protection work flow. It is a weighted representation of all Smart Signals present in the payload that helps identify suspicious activity. The value range is [0; S] where S is sum of all Smart Signals weights. See more details here: https://dev.fingerprint.com/docs/suspect-score | | | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
146 changes: 146 additions & 0 deletions
146
src/main/java/com/fingerprint/model/SignalResponseSuspectScore.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
/* | ||
* Fingerprint Pro Server API | ||
* Fingerprint Pro Server API allows you to get information about visitors and about individual events in a server environment. It can be used for data exports, decision-making, and data analysis scenarios. Server API is intended for server-side usage, it's not intended to be used from the client side, whether it's a browser or a mobile device. | ||
* | ||
* The version of the OpenAPI document: 3 | ||
* Contact: support@fingerprint.com | ||
* | ||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). | ||
* https://openapi-generator.tech | ||
* Do not edit the class manually. | ||
*/ | ||
|
||
|
||
package com.fingerprint.model; | ||
|
||
import java.util.Objects; | ||
import java.util.Arrays; | ||
import java.util.Map; | ||
import java.util.HashMap; | ||
import com.fasterxml.jackson.annotation.JsonInclude; | ||
import com.fasterxml.jackson.annotation.JsonProperty; | ||
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.SuspectScoreResult; | ||
import io.swagger.annotations.ApiModel; | ||
import io.swagger.annotations.ApiModelProperty; | ||
import com.fasterxml.jackson.annotation.JsonPropertyOrder; | ||
import com.fingerprint.sdk.JSON; | ||
|
||
|
||
/** | ||
* SignalResponseSuspectScore | ||
*/ | ||
@JsonPropertyOrder({ | ||
SignalResponseSuspectScore.JSON_PROPERTY_DATA, | ||
SignalResponseSuspectScore.JSON_PROPERTY_ERROR | ||
}) | ||
@javax.annotation.Generated(value = "org.openapitools.codegen.languages.JavaClientCodegen") | ||
public class SignalResponseSuspectScore { | ||
public static final String JSON_PROPERTY_DATA = "data"; | ||
private SuspectScoreResult data; | ||
|
||
public static final String JSON_PROPERTY_ERROR = "error"; | ||
private ProductError error; | ||
|
||
public SignalResponseSuspectScore() { | ||
} | ||
|
||
public SignalResponseSuspectScore data(SuspectScoreResult data) { | ||
this.data = data; | ||
return this; | ||
} | ||
|
||
/** | ||
* Get data | ||
* @return data | ||
**/ | ||
@javax.annotation.Nullable | ||
@ApiModelProperty(value = "") | ||
@JsonProperty(JSON_PROPERTY_DATA) | ||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
|
||
public SuspectScoreResult getData() { | ||
return data; | ||
} | ||
|
||
|
||
@JsonProperty(JSON_PROPERTY_DATA) | ||
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) | ||
public void setData(SuspectScoreResult data) { | ||
this.data = data; | ||
} | ||
|
||
|
||
public SignalResponseSuspectScore 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 SignalResponseSuspectScore object is equal to o. | ||
*/ | ||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) { | ||
return true; | ||
} | ||
if (o == null || getClass() != o.getClass()) { | ||
return false; | ||
} | ||
SignalResponseSuspectScore signalResponseSuspectScore = (SignalResponseSuspectScore) o; | ||
return Objects.equals(this.data, signalResponseSuspectScore.data) && | ||
Objects.equals(this.error, signalResponseSuspectScore.error); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(data, error); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
StringBuilder sb = new StringBuilder(); | ||
sb.append("class SignalResponseSuspectScore {\n"); | ||
sb.append(" data: ").append(toIndentedString(data)).append("\n"); | ||
sb.append(" error: ").append(toIndentedString(error)).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 "); | ||
} | ||
|
||
} | ||
|
Oops, something went wrong.