Skip to content

Commit

Permalink
Merge pull request #158 from Riskified/TIS-719
Browse files Browse the repository at this point in the history
TIS-719
  • Loading branch information
beksina authored Mar 25, 2024
2 parents d2dc93a + 6663487 commit 2c09ef4
Show file tree
Hide file tree
Showing 5 changed files with 75 additions and 2 deletions.
2 changes: 1 addition & 1 deletion riskified-sdk/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>com.riskified</groupId>
<artifactId>riskified-sdk</artifactId>
<version>v2.9.0</version>
<version>v2.10.0</version>
<name>Riskified SDK</name>
<description>Riskified rest api SDK for java</description>
<url>https://www.riskified.com</url>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1044,7 +1044,7 @@ private HttpPost createPostRequest(String url) {
HttpPost postRequest = new HttpPost(url);
postRequest.setHeader(HttpHeaders.ACCEPT, "application/vnd.riskified.com; version=2");
postRequest.setHeader("X-RISKIFIED-SHOP-DOMAIN", shopUrl);
postRequest.setHeader("User-Agent","riskified_java_sdk/2.9.0"); // TODO: take the version automatically
postRequest.setHeader("User-Agent","riskified_java_sdk/2.10.0"); // TODO: take the version automatically
postRequest.setHeader("Version",versionHeaderValue);
return postRequest;
}
Expand Down
56 changes: 56 additions & 0 deletions riskified-sdk/src/main/java/com/riskified/models/Custom.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@

public class Custom {
private String app_dom_id;
private String customObjTwo;
private String customObjThree;
private String customObjFour;
private String customObjFive;
private String customObjSix;
private String customObjSeven;


public Custom() {
}
Expand All @@ -17,4 +24,53 @@ public String getAppDomId() {
public void setAppDomId(String app_dom_id) {
this.app_dom_id = app_dom_id;
}

public String getCustomObjTwo() {
return customObjTwo;
}

public void setCustomObjTwo(String customObjTwo) {
this.customObjTwo = customObjTwo;
}

public String getCustomObjThree() {
return customObjThree;
}

public void setCustomObjThree(String customObjThree) {
this.customObjThree = customObjThree;
}

public String getCustomObjFour() {
return customObjFour;
}

public void setCustomObjFour(String customObjFour) {
this.customObjFour = customObjFour;
}

public String getCustomObjFive() {
return customObjFive;
}

public void setCustomObjFive(String customObjFive) {
this.customObjFive = customObjFive;
}

public String getCustomObjSix() {
return customObjSix;
}

public void setCustomObjSix(String customObjSix) {
this.customObjSix = customObjSix;
}

public String getCustomObjSeven() {
return customObjSeven;
}

public void setCustomObjSeven(String customObjSeven) {
this.customObjSeven = customObjSeven;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public class RecoveryEligibility {
private String verifiedAt;
private VerificationMethod verificationMethod;

private String challengeType;

private VerificationSessionDetails verificationSessionDetails;

public RecoveryEligibility(String id, String status, String verifiedAt, VerificationMethod verificationMethod){
Expand Down Expand Up @@ -62,6 +64,14 @@ public VerificationSessionDetails getVerificationSessionDetails() {
public void setVerificationSessionDetails(VerificationSessionDetails verificationSessionDetails){
this.verificationSessionDetails = verificationSessionDetails;
}

public String getChallengeType() {
return challengeType;
}

public void setChallengeType(String challengeType){
this.challengeType = challengeType;
}
}


Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package com.riskified.notifications;

import com.riskified.models.Custom;
import com.riskified.models.RecoveryEligibility;

// Shop URL may also be added to the API notifications from Riskified depending on your
// account configuration (contact your Account Manager or Integration Engineer for details).
Expand Down Expand Up @@ -28,6 +29,8 @@ public static class NotificationOrder {
private String category;
private Custom custom;

private RecoveryEligibility recoveryEligibility;

public String getId() {
return id;
}
Expand Down Expand Up @@ -81,5 +84,9 @@ public void setCategory(String category) {
public void setCustom(Custom custom) {
this.custom = custom;
}

public RecoveryEligibility getRecoveryEligibility(){ return recoveryEligibility; }

public void setRecoveryEligibility(RecoveryEligibility recoveryEligibility){this.recoveryEligibility = recoveryEligibility;}
}
}

0 comments on commit 2c09ef4

Please sign in to comment.