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
7882217
commit 094b7c9
Showing
9 changed files
with
272 additions
and
4 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
36 changes: 36 additions & 0 deletions
36
...connect/gateway/sdk/java/merchant/payments/GetPaymentDeviceFingerprintDetailsExample.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,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); | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...erated/com/ingenico/connect/gateway/sdk/java/domain/payment/DeviceFingerprintDetails.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,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; | ||
} | ||
} |
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
91 changes: 91 additions & 0 deletions
91
...erated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/Installments.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,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; | ||
} | ||
} |
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
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