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
22 changes: 22 additions & 0 deletions riskified-sample/src/main/resources/riskified_sdk.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Your shop domain as registered to Riskified
shopUrl=

# Your authentication token string
authKey=

# SANDBOX / PRODUCTION
environment=

# NONE / IGNORE_MISSING / ALL
validation=

# only applicable for PSD2 merchants, please consult with your technical contact at Riskified
#false / true
enable_old_advise_response=

# Proxy configuration
#proxyUrl=<proxy_url>
#proxyPort=<proxy_port>
#proxyUsername=<proxy_username>
#proxyPassword=<proxy_password>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cycode: Secret of type: 'Generic Password' was found.
Severity: High

Would you like to exclude this secret from your status checks?
Tell us what to do with one of the following hashtags:

Tag Short Description
#cycode_secret_ignore_here Applies to this request only


3 changes: 3 additions & 0 deletions riskified-sdk/src/main/java/com/riskified/models/Address.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public Address(String firstName, String lastName, String address1, String city,
this.address1 = address1;
}

public Address() {
}

public void validate(Validation validationType) throws FieldBadFormatException {
if (validationType == Validation.ALL) {
Validate.notNullOrEmpty(this, this.firstName, "First Name");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ public void validate(Validation validationType)
}
}

public CancelOrder() {
}

public String getId() {
return id;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ public class FulfillmentOrder implements IValidated {
private String id;
private List<FulfillmentDetails> fulfillments;

public FulfillmentOrder() {
}

public FulfillmentOrder(String id, List<FulfillmentDetails> fulfillments) {
this.id = id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public class LineItem implements IValidated {
private String color;
private RegistryType registryType;
private Policy policy;

public LineItem() {
}


public LineItem(double price, int quantity, String title) {
Expand Down
13 changes: 7 additions & 6 deletions riskified-sdk/src/main/resources/riskified_sdk.properties
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
# Your shop domain as registered to Riskified
shopUrl=
shopUrl=roomstogo.com

# Your authentication token string
authKey=
authKey=xxxx

# SANDBOX / PRODUCTION
environment=
environment=SANDBOX

# NONE / IGNORE_MISSING / ALL
validation=
validation=ALL

# only applicable for PSD2 merchants, please consult with your technical contact at Riskified
#false / true
enable_old_advise_response=
enable_old_advise_response=true

# Proxy configuration
#proxyUrl=<proxy_url>
#proxyPort=<proxy_port>
#proxyUsername=<proxy_username>
#proxyPassword=<proxy_password>
#proxyPassword=<proxy_password>