This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcefef3
commit 9beb8c0
Showing
6 changed files
with
128 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
34 changes: 34 additions & 0 deletions
34
...genico/connect/gateway/sdk/java/merchant/hostedcheckouts/DeleteHostedCheckoutExample.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,34 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.merchant.hostedcheckouts; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.net.URL; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.Client; | ||
import com.ingenico.connect.gateway.sdk.java.CommunicatorConfiguration; | ||
import com.ingenico.connect.gateway.sdk.java.Factory; | ||
|
||
public class DeleteHostedCheckoutExample { | ||
|
||
public void example() throws URISyntaxException, IOException { | ||
Client client = getClient(); | ||
try { | ||
client.merchant("merchantId").hostedcheckouts().delete("hostedCheckoutId"); | ||
} finally { | ||
client.close(); | ||
} | ||
} | ||
|
||
private Client getClient() throws URISyntaxException { | ||
String apiKeyId = System.getProperty("connect.api.apiKeyId", "someKey"); | ||
String secretApiKey = System.getProperty("connect.api.secretApiKey", "someSecret"); | ||
|
||
URL propertiesUrl = getClass().getResource("/example-configuration.properties"); | ||
CommunicatorConfiguration configuration = Factory.createConfiguration(propertiesUrl.toURI(), apiKeyId, secretApiKey); | ||
return Factory.createClient(configuration); | ||
} | ||
} |
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
24 changes: 24 additions & 0 deletions
24
...rated/com/ingenico/connect/gateway/sdk/java/domain/definitions/MicrosoftFraudResults.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,24 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.domain.definitions; | ||
|
||
public class MicrosoftFraudResults { | ||
|
||
private Integer fraudScore = null; | ||
|
||
/** | ||
* Result of the Microsoft Fraud Protection check. This contains the normalized fraud score from a scale of 0 to 100. A higher score indicates an increased risk of fraud. | ||
*/ | ||
public Integer getFraudScore() { | ||
return fraudScore; | ||
} | ||
|
||
/** | ||
* Result of the Microsoft Fraud Protection check. This contains the normalized fraud score from a scale of 0 to 100. A higher score indicates an increased risk of fraud. | ||
*/ | ||
public void setFraudScore(Integer value) { | ||
this.fraudScore = value; | ||
} | ||
} |
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