Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

Commit

Permalink
Release 6.26.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Nov 8, 2021
1 parent fcefef3 commit 9beb8c0
Show file tree
Hide file tree
Showing 6 changed files with 128 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

<groupId>com.ingenico.connect.gateway</groupId>
<artifactId>connect-sdk-java</artifactId>
<version>6.25.0</version>
<version>6.26.0</version>
<packaging>jar</packaging>

<name>connect-sdk-java</name>
Expand Down
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ public class CardFraudResults extends FraudResults {

private FraugsterResults fraugster = null;

private MicrosoftFraudResults microsoftFraudProtection = null;

private FraudResultsRetailDecisions retailDecisions = null;

/**
Expand Down Expand Up @@ -129,6 +131,20 @@ public void setFraugster(FraugsterResults value) {
this.fraugster = value;
}

/**
* Results of Microsoft Fraud Protection risk assessment. Microsoft collects transaction data points and uses Adaptive AI that continuously learns to protect you against payment fraud.
*/
public MicrosoftFraudResults getMicrosoftFraudProtection() {
return microsoftFraudProtection;
}

/**
* Results of Microsoft Fraud Protection risk assessment. Microsoft collects transaction data points and uses Adaptive AI that continuously learns to protect you against payment fraud.
*/
public void setMicrosoftFraudProtection(MicrosoftFraudResults value) {
this.microsoftFraudProtection = value;
}

/**
* Additional response data returned by RetailDecisions
*/
Expand Down
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -136,4 +136,56 @@ public GetHostedCheckoutResponse get(String hostedCheckoutId, CallContext contex
throw createException(e.getStatusCode(), e.getBody(), errorObject, context);
}
}

/**
* Resource /{merchantId}/hostedcheckouts/{hostedCheckoutId}
* - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/hostedcheckouts/delete.html">Delete hosted checkout</a>
*
* @param hostedCheckoutId String
* @throws ValidationException if the request was not correct and couldn't be processed (HTTP status code 400)
* @throws AuthorizationException if the request was not allowed (HTTP status code 403)
* @throws ReferenceException if an object was attempted to be referenced that doesn't exist or has been removed,
* or there was a conflict (HTTP status code 404, 409 or 410)
* @throws GlobalCollectException if something went wrong at the Ingenico ePayments platform,
* the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
* or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
* @throws ApiException if the Ingenico ePayments platform returned any other error
*/
public void delete(String hostedCheckoutId) {
delete(hostedCheckoutId, null);
}

/**
* Resource /{merchantId}/hostedcheckouts/{hostedCheckoutId}
* - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/hostedcheckouts/delete.html">Delete hosted checkout</a>
*
* @param hostedCheckoutId String
* @param context CallContext
* @throws ValidationException if the request was not correct and couldn't be processed (HTTP status code 400)
* @throws AuthorizationException if the request was not allowed (HTTP status code 403)
* @throws IdempotenceException if an idempotent request caused a conflict (HTTP status code 409)
* @throws ReferenceException if an object was attempted to be referenced that doesn't exist or has been removed,
* or there was a conflict (HTTP status code 404, 409 or 410)
* @throws GlobalCollectException if something went wrong at the Ingenico ePayments platform,
* the Ingenico ePayments platform was unable to process a message from a downstream partner/acquirer,
* or the service that you're trying to reach is temporary unavailable (HTTP status code 500, 502 or 503)
* @throws ApiException if the Ingenico ePayments platform returned any other error
*/
public void delete(String hostedCheckoutId, CallContext context) {
Map<String, String> pathContext = new TreeMap<String, String>();
pathContext.put("hostedCheckoutId", hostedCheckoutId);
String uri = instantiateUri("/v1/{merchantId}/hostedcheckouts/{hostedCheckoutId}", pathContext);
try {
communicator.delete(
uri,
getClientHeaders(),
null,
void.class,
context);
} catch (ResponseException e) {
final Class<?> errorType = ErrorResponse.class;
final Object errorObject = communicator.getMarshaller().unmarshal(e.getBody(), errorType);
throw createException(e.getStatusCode(), e.getBody(), errorObject, context);
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
*/
public class MetaDataProvider {

private static final String SDK_VERSION = "6.25.0";
private static final String SDK_VERSION = "6.26.0";

private static final String SERVER_META_INFO_HEADER = "X-GCS-ServerMetaInfo";
static final Set<String> PROHIBITED_HEADERS;
Expand Down

0 comments on commit 9beb8c0

Please sign in to comment.