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

Commit

Permalink
Release 6.14.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Aug 11, 2020
1 parent 7882217 commit 094b7c9
Show file tree
Hide file tree
Showing 9 changed files with 272 additions and 4 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.13.0</version>
<version>6.14.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,36 @@
/*
* 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.payments;

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;
import com.ingenico.connect.gateway.sdk.java.domain.payment.DeviceFingerprintDetails;

public class GetPaymentDeviceFingerprintDetailsExample {

@SuppressWarnings("unused")
public void example() throws URISyntaxException, IOException {
Client client = getClient();
try {
DeviceFingerprintDetails response = client.merchant("merchantId").payments().devicefingerprint("paymentId");
} 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
@@ -0,0 +1,40 @@
/*
* 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.payment;

public class DeviceFingerprintDetails {

private String paymentId = null;

private String rawDeviceFingerprintOutput = null;

/**
* The ID of the payment that is linked to the Device Fingerprint data.
*/
public String getPaymentId() {
return paymentId;
}

/**
* The ID of the payment that is linked to the Device Fingerprint data.
*/
public void setPaymentId(String value) {
this.paymentId = value;
}

/**
* The detailed data that was collected during the Device Fingerprint collection. The structure will be different depending on the collection method and device fingerprint partner used. Please contact us if you want more information on the details that are returned in this string.
*/
public String getRawDeviceFingerprintOutput() {
return rawDeviceFingerprintOutput;
}

/**
* The detailed data that was collected during the Device Fingerprint collection. The structure will be different depending on the collection method and device fingerprint partner used. Please contact us if you want more information on the details that are returned in this string.
*/
public void setRawDeviceFingerprintOutput(String value) {
this.rawDeviceFingerprintOutput = value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ public class AdditionalOrderInput {

private AirlineData airlineData = null;

private Installments installments = null;

@SuppressWarnings("deprecation")
private Level3SummaryData level3SummaryData = null;

Expand All @@ -35,6 +37,20 @@ public void setAirlineData(AirlineData value) {
this.airlineData = value;
}

/**
* Object containing data related to installments.
*/
public Installments getInstallments() {
return installments;
}

/**
* Object containing data related to installments.
*/
public void setInstallments(Installments value) {
this.installments = value;
}

/**
* Object that holds Level3 summary data
*
Expand Down Expand Up @@ -71,14 +87,20 @@ public void setLoanRecipient(LoanRecipient value) {

/**
* The number of installments
*
* @deprecated Use installments.numberOfInstallments instead
*/
@Deprecated
public Long getNumberOfInstallments() {
return numberOfInstallments;
}

/**
* The number of installments
*
* @deprecated Use installments.numberOfInstallments instead
*/
@Deprecated
public void setNumberOfInstallments(Long value) {
this.numberOfInstallments = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,14 +31,14 @@ public void setFaxNumber(String value) {
}

/**
* International version of the mobile phone number of the customer including the leading + (i.e. +16127779311)
* International version of the mobile phone number of the customer including the leading + (i.e. +16127779311).
*/
public String getMobilePhoneNumber() {
return mobilePhoneNumber;
}

/**
* International version of the mobile phone number of the customer including the leading + (i.e. +16127779311)
* International version of the mobile phone number of the customer including the leading + (i.e. +16127779311).
*/
public void setMobilePhoneNumber(String value) {
this.mobilePhoneNumber = value;
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
/*
* 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.payment.definitions;

import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney;

/**
* Object containing data related to installments.
*/
public class Installments {

private AmountOfMoney amountOfMoneyPerInstallment = null;

private String frequencyOfInstallments = null;

private String interestRate = null;

private Long numberOfInstallments = null;

/**
* The amount that will be paid per installment. The total amount of amountOfMoneyPerInstallment x numberOfInstallments can not be higher than the total amount of this transaction, although we will not validate that.
*/
public AmountOfMoney getAmountOfMoneyPerInstallment() {
return amountOfMoneyPerInstallment;
}

/**
* The amount that will be paid per installment. The total amount of amountOfMoneyPerInstallment x numberOfInstallments can not be higher than the total amount of this transaction, although we will not validate that.
*/
public void setAmountOfMoneyPerInstallment(AmountOfMoney value) {
this.amountOfMoneyPerInstallment = value;
}

/**
* The frequency in which the installments will be collected from the customer.
* The possible values are:
* <ul class="paragraph-width">
* <li>daily
* <li>weekly
* <li>monthly (default)
* <li>quarterly
* </ul>
*/
public String getFrequencyOfInstallments() {
return frequencyOfInstallments;
}

/**
* The frequency in which the installments will be collected from the customer.
* The possible values are:
* <ul class="paragraph-width">
* <li>daily
* <li>weekly
* <li>monthly (default)
* <li>quarterly
* </ul>
*/
public void setFrequencyOfInstallments(String value) {
this.frequencyOfInstallments = value;
}

/**
* The interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%
*/
public String getInterestRate() {
return interestRate;
}

/**
* The interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%
*/
public void setInterestRate(String value) {
this.interestRate = value;
}

/**
* The number of installments in which this transaction will be paid.
*/
public Long getNumberOfInstallments() {
return numberOfInstallments;
}

/**
* The number of installments in which this transaction will be paid.
*/
public void setNumberOfInstallments(Long value) {
this.numberOfInstallments = value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class PaymentProductGroup {

private List<AccountOnFile> accountsOnFile = null;

private Boolean allowsInstallments = null;

private Boolean deviceFingerprintEnabled = null;

private PaymentProductDisplayHints displayHints = null;
Expand All @@ -35,6 +37,28 @@ public void setAccountsOnFile(List<AccountOnFile> value) {
this.accountsOnFile = value;
}

/**
* Indicates if the product supports installments
* <ul class="paragraph-width">
* <li>true - This payment supports installments
* <li>false - This payment does not support installments
* </ul>
*/
public Boolean getAllowsInstallments() {
return allowsInstallments;
}

/**
* Indicates if the product supports installments
* <ul class="paragraph-width">
* <li>true - This payment supports installments
* <li>false - This payment does not support installments
* </ul>
*/
public void setAllowsInstallments(Boolean value) {
this.allowsInstallments = value;
}

/**
* Indicates if device fingerprint is enabled for the product group
* <ul class="paragraph-width"><li>true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import com.ingenico.connect.gateway.sdk.java.domain.payment.CompletePaymentResponse;
import com.ingenico.connect.gateway.sdk.java.domain.payment.CreatePaymentRequest;
import com.ingenico.connect.gateway.sdk.java.domain.payment.CreatePaymentResponse;
import com.ingenico.connect.gateway.sdk.java.domain.payment.DeviceFingerprintDetails;
import com.ingenico.connect.gateway.sdk.java.domain.payment.FindPaymentsResponse;
import com.ingenico.connect.gateway.sdk.java.domain.payment.PaymentApprovalResponse;
import com.ingenico.connect.gateway.sdk.java.domain.payment.PaymentErrorResponse;
Expand Down Expand Up @@ -938,4 +939,58 @@ public DisputesResponse disputes(String paymentId, CallContext context) {
throw createException(e.getStatusCode(), e.getBody(), errorObject, context);
}
}

/**
* Resource /{merchantId}/payments/{paymentId}/devicefingerprint
* - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/payments/devicefingerprint.html">Get Device Fingerprint details</a>
*
* @param paymentId String
* @return DeviceFingerprintDetails
* @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 DeviceFingerprintDetails devicefingerprint(String paymentId) {
return devicefingerprint(paymentId, null);
}

/**
* Resource /{merchantId}/payments/{paymentId}/devicefingerprint
* - <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/payments/devicefingerprint.html">Get Device Fingerprint details</a>
*
* @param paymentId String
* @param context CallContext
* @return DeviceFingerprintDetails
* @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 DeviceFingerprintDetails devicefingerprint(String paymentId, CallContext context) {
Map<String, String> pathContext = new TreeMap<String, String>();
pathContext.put("paymentId", paymentId);
String uri = instantiateUri("/v1/{merchantId}/payments/{paymentId}/devicefingerprint", pathContext);
try {
return communicator.get(
uri,
getClientHeaders(),
null,
DeviceFingerprintDetails.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.13.0";
private static final String SDK_VERSION = "6.14.0";

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

0 comments on commit 094b7c9

Please sign in to comment.