Skip to content
Open
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
8 changes: 8 additions & 0 deletions CHANGES.MD
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
3.23.0 (2026-08-20)
=================
- Added support for `$nationality`, `$year_of_birth` fields to `$create_account`, `$update_account` events
- Added support for `$kyc` complex field to `$create_account`, `$update_account`, `$transaction`,
`$create_order`, `$update_order`, `$verification` events
- Added support for `$geo`, `$bot_identification` complex fields to `$create_account`,
`$update_account`, `$login`, `$transaction`, `$create_order`, `$update_order` events

3.22.0 (2026-01-05)
=================
- Added support for `$user_email`, `$review.$reviewed_user_id` fields to `$create_content`, `$update_content` events
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ Java 1.7 or later.
<dependency>
<groupId>com.siftscience</groupId>
<artifactId>sift-java</artifactId>
<version>3.22.0</version>
<version>3.23.0</version>
</dependency>
```
### Gradle
```
dependencies {
compile 'com.siftscience:sift-java:3.22.0'
compile 'com.siftscience:sift-java:3.23.0'
}
```
### Other
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'signing'
apply plugin: 'java-library-distribution'

group = 'com.siftscience'
version = '3.22.0'
version = '3.23.0'

repositories {
mavenCentral()
Expand Down
50 changes: 50 additions & 0 deletions src/main/java/com/siftscience/model/BaseAccountFieldSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ public abstract class BaseAccountFieldSet<T extends BaseAccountFieldSet<T>>
@Expose @SerializedName("$social_sign_on_type") private String socialSignOnType;
@Expose @SerializedName("$merchant_profile") private MerchantProfile merchantProfile;
@Expose @SerializedName(VERIFICATION_PHONE_NUMBER) private String verificationPhoneNumber;
@Expose @SerializedName("$nationality") private String nationality;
@Expose @SerializedName("$year_of_birth") private Integer yearOfBirth;
@Expose @SerializedName("$kyc") private Kyc kyc;
@Expose @SerializedName("$geo") private Geo geo;
@Expose @SerializedName("$bot_identification") private BotIdentification botIdentification;

public String getUserEmail() {
return userEmail;
Expand Down Expand Up @@ -117,4 +122,49 @@ public T setPromotions(List<Promotion> promotions) {
this.promotions = promotions;
return (T) this;
}

public String getNationality() {
return nationality;
}

public T setNationality(String nationality) {
this.nationality = nationality;
return (T) this;
}

public Integer getYearOfBirth() {
return yearOfBirth;
}

public T setYearOfBirth(Integer yearOfBirth) {
this.yearOfBirth = yearOfBirth;
return (T) this;
}

public Kyc getKyc() {
return kyc;
}

public T setKyc(Kyc kyc) {
this.kyc = kyc;
return (T) this;
}

public Geo getGeo() {
return geo;
}

public T setGeo(Geo geo) {
this.geo = geo;
return (T) this;
}

public BotIdentification getBotIdentification() {
return botIdentification;
}

public T setBotIdentification(BotIdentification botIdentification) {
this.botIdentification = botIdentification;
return (T) this;
}
}
30 changes: 30 additions & 0 deletions src/main/java/com/siftscience/model/BaseOrderFieldSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ public abstract class BaseOrderFieldSet<T extends BaseOrderFieldSet<T>>
@Expose @SerializedName("$merchant_profile") private MerchantProfile merchantProfile;
@Expose @SerializedName(VERIFICATION_PHONE_NUMBER) private String verificationPhoneNumber;
@Expose @SerializedName("$digital_orders") private List<DigitalOrder> digitalOrders;
@Expose @SerializedName("$kyc") private Kyc kyc;
@Expose @SerializedName("$geo") private Geo geo;
@Expose @SerializedName("$bot_identification") private BotIdentification botIdentification;

public String getOrderId() {
return orderId;
Expand Down Expand Up @@ -211,4 +214,31 @@ public T setDigitalOrders(List<DigitalOrder> digitalOrders) {
this.digitalOrders = digitalOrders;
return (T) this;
}

public Kyc getKyc() {
return kyc;
}

public T setKyc(Kyc kyc) {
this.kyc = kyc;
return (T) this;
}

public Geo getGeo() {
return geo;
}

public T setGeo(Geo geo) {
this.geo = geo;
return (T) this;
}

public BotIdentification getBotIdentification() {
return botIdentification;
}

public T setBotIdentification(BotIdentification botIdentification) {
this.botIdentification = botIdentification;
return (T) this;
}
}
27 changes: 27 additions & 0 deletions src/main/java/com/siftscience/model/BotIdentification.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.siftscience.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class BotIdentification {
@Expose @SerializedName("$result") private String result;
@Expose @SerializedName("$provider") private String provider;

public String getResult() {
return result;
}

public BotIdentification setResult(String result) {
this.result = result;
return this;
}

public String getProvider() {
return provider;
}

public BotIdentification setProvider(String provider) {
this.provider = provider;
return this;
}
}
27 changes: 27 additions & 0 deletions src/main/java/com/siftscience/model/Geo.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
package com.siftscience.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Geo {
@Expose @SerializedName("$uuid") private String uuid;
@Expose @SerializedName("$provider") private String provider;

public String getUuid() {
return uuid;
}

public Geo setUuid(String uuid) {
this.uuid = uuid;
return this;
}

public String getProvider() {
return provider;
}

public Geo setProvider(String provider) {
this.provider = provider;
return this;
}
}
47 changes: 47 additions & 0 deletions src/main/java/com/siftscience/model/Kyc.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
package com.siftscience.model;

import com.google.gson.annotations.Expose;
import com.google.gson.annotations.SerializedName;

public class Kyc {
@Expose @SerializedName("$names_match") private Boolean namesMatch;
@Expose @SerializedName("$kyc_level") private String kycLevel;
@Expose @SerializedName("$bin_nationality_match") private Boolean binNationalityMatch;
@Expose @SerializedName("$provider") private String provider;

public Boolean getNamesMatch() {
return namesMatch;
}

public Kyc setNamesMatch(Boolean namesMatch) {
this.namesMatch = namesMatch;
return this;
}

public String getKycLevel() {
return kycLevel;
}

public Kyc setKycLevel(String kycLevel) {
this.kycLevel = kycLevel;
return this;
}

public Boolean getBinNationalityMatch() {
return binNationalityMatch;
}

public Kyc setBinNationalityMatch(Boolean binNationalityMatch) {
this.binNationalityMatch = binNationalityMatch;
return this;
}

public String getProvider() {
return provider;
}

public Kyc setProvider(String provider) {
this.provider = provider;
return this;
}
}
20 changes: 20 additions & 0 deletions src/main/java/com/siftscience/model/LoginFieldSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ public static LoginFieldSet fromJson(String json) {
@Expose @SerializedName("$account_types") private List<String> accountTypes;
@Expose @SerializedName(USER_EMAIL) private String userEmail;
@Expose @SerializedName(VERIFICATION_PHONE_NUMBER) private String verificationPhoneNumber;
@Expose @SerializedName("$geo") private Geo geo;
@Expose @SerializedName("$bot_identification") private BotIdentification botIdentification;

@Override
public String getEventType() {
Expand Down Expand Up @@ -79,4 +81,22 @@ public LoginFieldSet setVerificationPhoneNumber(String verificationPhoneNumber)
this.verificationPhoneNumber = verificationPhoneNumber;
return this;
}

public Geo getGeo() {
return geo;
}

public LoginFieldSet setGeo(Geo geo) {
this.geo = geo;
return this;
}

public BotIdentification getBotIdentification() {
return botIdentification;
}

public LoginFieldSet setBotIdentification(BotIdentification botIdentification) {
this.botIdentification = botIdentification;
return this;
}
}
30 changes: 30 additions & 0 deletions src/main/java/com/siftscience/model/TransactionFieldSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ public class TransactionFieldSet extends BaseAppBrowserSiteBrandFieldSet<Transac
@Expose @SerializedName("$maximum_withdrawal_amount") private Long maximumWithdrawalAmount;
@Expose @SerializedName("$current_balance") private Long currentBalance;
@Expose @SerializedName("$new_balance") private Long newBalance;
@Expose @SerializedName("$kyc") private Kyc kyc;
@Expose @SerializedName("$geo") private Geo geo;
@Expose @SerializedName("$bot_identification") private BotIdentification botIdentification;


@Override
Expand Down Expand Up @@ -328,4 +331,31 @@ public TransactionFieldSet setNewBalance(Long newBalance) {
this.newBalance = newBalance;
return this;
}

public Kyc getKyc() {
return kyc;
}

public TransactionFieldSet setKyc(Kyc kyc) {
this.kyc = kyc;
return this;
}

public Geo getGeo() {
return geo;
}

public TransactionFieldSet setGeo(Geo geo) {
this.geo = geo;
return this;
}

public BotIdentification getBotIdentification() {
return botIdentification;
}

public TransactionFieldSet setBotIdentification(BotIdentification botIdentification) {
this.botIdentification = botIdentification;
return this;
}
}
10 changes: 10 additions & 0 deletions src/main/java/com/siftscience/model/VerificationFieldSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ public static VerificationFieldSet fromJson(String json) {
@Expose @SerializedName("$reason") private String reason;
@Expose @SerializedName("$verified_event") private String verifiedEvent;
@Expose @SerializedName("$verified_entity_id") private String verifiedEntityId;
@Expose @SerializedName("$kyc") private Kyc kyc;

@Override
public String getEventType() {
Expand Down Expand Up @@ -67,4 +68,13 @@ public VerificationFieldSet setVerifiedEntityId(String verifiedEntityId) {
this.verifiedEntityId = verifiedEntityId;
return this;
}

public Kyc getKyc() {
return kyc;
}

public VerificationFieldSet setKyc(Kyc kyc) {
this.kyc = kyc;
return this;
}
}
Loading
Loading