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
d49d742
commit 56edd93
Showing
15 changed files
with
639 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
49 changes: 49 additions & 0 deletions
49
...m/ingenico/connect/gateway/sdk/java/merchant/installments/GetInstallmentsInfoExample.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,49 @@ | ||
/* | ||
* 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.installments; | ||
|
||
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.definitions.AmountOfMoney; | ||
import com.ingenico.connect.gateway.sdk.java.domain.installments.GetInstallmentRequest; | ||
import com.ingenico.connect.gateway.sdk.java.domain.installments.InstallmentOptionsResponse; | ||
|
||
public class GetInstallmentsInfoExample { | ||
|
||
@SuppressWarnings("unused") | ||
public void example() throws URISyntaxException, IOException { | ||
Client client = getClient(); | ||
try { | ||
AmountOfMoney amountOfMoney = new AmountOfMoney(); | ||
amountOfMoney.setAmount(123L); | ||
amountOfMoney.setCurrencyCode("EUR"); | ||
|
||
GetInstallmentRequest body = new GetInstallmentRequest(); | ||
body.setAmountOfMoney(amountOfMoney); | ||
body.setBin("123455"); | ||
body.setCountryCode("NL"); | ||
body.setPaymentProductId(123); | ||
|
||
InstallmentOptionsResponse response = client.merchant("merchantId").installments().getInstallmentsInfo(body); | ||
} 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); | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
...ed/com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/Frequency.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,44 @@ | ||
/* | ||
* 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.hostedcheckout.definitions; | ||
|
||
/** | ||
* The object containing the frequency and interval between recurring payments. | ||
*/ | ||
public class Frequency { | ||
|
||
private String interval = null; | ||
|
||
private Integer intervalFrequency = null; | ||
|
||
/** | ||
* The interval between recurring payments specified as days, weeks, quarters, or years. | ||
*/ | ||
public String getInterval() { | ||
return interval; | ||
} | ||
|
||
/** | ||
* The interval between recurring payments specified as days, weeks, quarters, or years. | ||
*/ | ||
public void setInterval(String value) { | ||
this.interval = value; | ||
} | ||
|
||
/** | ||
* The number of days, weeks, months, quarters, or years between recurring payments. | ||
*/ | ||
public Integer getIntervalFrequency() { | ||
return intervalFrequency; | ||
} | ||
|
||
/** | ||
* The number of days, weeks, months, quarters, or years between recurring payments. | ||
*/ | ||
public void setIntervalFrequency(Integer value) { | ||
this.intervalFrequency = 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
44 changes: 44 additions & 0 deletions
44
...ico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/RecurringPaymentsData.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,44 @@ | ||
/* | ||
* 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.hostedcheckout.definitions; | ||
|
||
/** | ||
* The object containing reference data for the text that can be displayed on MyCheckout hosted payment page with subscription information.<br><br>Note:<br><br>The data in this object is only meant for displaying recurring payments-related data on your checkout page.<br>You still need to submit all the recurring payment-related data in the corresponding payment product-specific input. (example: cardPaymentMethodSpecificInput.recurring and cardPaymentMethodSpecificInput.isRecurring) | ||
*/ | ||
public class RecurringPaymentsData { | ||
|
||
private Frequency recurringInterval = null; | ||
|
||
private TrialInformation trialInformation = null; | ||
|
||
/** | ||
* The object containing the frequency and interval between recurring payments. | ||
*/ | ||
public Frequency getRecurringInterval() { | ||
return recurringInterval; | ||
} | ||
|
||
/** | ||
* The object containing the frequency and interval between recurring payments. | ||
*/ | ||
public void setRecurringInterval(Frequency value) { | ||
this.recurringInterval = value; | ||
} | ||
|
||
/** | ||
* The object containing data of the trial period: no-cost or discounted time-constrained trial subscription period. | ||
*/ | ||
public TrialInformation getTrialInformation() { | ||
return trialInformation; | ||
} | ||
|
||
/** | ||
* The object containing data of the trial period: no-cost or discounted time-constrained trial subscription period. | ||
*/ | ||
public void setTrialInformation(TrialInformation value) { | ||
this.trialInformation = value; | ||
} | ||
} |
94 changes: 94 additions & 0 deletions
94
...ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/TrialInformation.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,94 @@ | ||
/* | ||
* 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.hostedcheckout.definitions; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney; | ||
|
||
/** | ||
* The object containing data of the trial period: no-cost or discounted time-constrained trial subscription period. | ||
*/ | ||
public class TrialInformation { | ||
|
||
private AmountOfMoney amountOfMoneyAfterTrial = null; | ||
|
||
private String endDate = null; | ||
|
||
private Boolean isRecurring = null; | ||
|
||
private TrialPeriod trialPeriod = null; | ||
|
||
private Frequency trialPeriodRecurring = null; | ||
|
||
/** | ||
* The object containing the amount and ISO currency code attributes of money to be paid after the trial period ends.<br><br>Note:<br><br>The property order.amountOfMoney should be populated with the amount to be paid during or for the trial period (no-cost or discounted time-constrained trial subscription period). | ||
*/ | ||
public AmountOfMoney getAmountOfMoneyAfterTrial() { | ||
return amountOfMoneyAfterTrial; | ||
} | ||
|
||
/** | ||
* The object containing the amount and ISO currency code attributes of money to be paid after the trial period ends.<br><br>Note:<br><br>The property order.amountOfMoney should be populated with the amount to be paid during or for the trial period (no-cost or discounted time-constrained trial subscription period). | ||
*/ | ||
public void setAmountOfMoneyAfterTrial(AmountOfMoney value) { | ||
this.amountOfMoneyAfterTrial = value; | ||
} | ||
|
||
/** | ||
* The date that the trial period ends in YYYYMMDD format. | ||
*/ | ||
public String getEndDate() { | ||
return endDate; | ||
} | ||
|
||
/** | ||
* The date that the trial period ends in YYYYMMDD format. | ||
*/ | ||
public void setEndDate(String value) { | ||
this.endDate = value; | ||
} | ||
|
||
/** | ||
* The property specifying if there will be recurring charges throughout the trial period (when the trial period involves a temporary discounted rate).<br>True = there will be recurring charges during the trial period<br>False = there will not be recurring charges during the trial period | ||
*/ | ||
public Boolean getIsRecurring() { | ||
return isRecurring; | ||
} | ||
|
||
/** | ||
* The property specifying if there will be recurring charges throughout the trial period (when the trial period involves a temporary discounted rate).<br>True = there will be recurring charges during the trial period<br>False = there will not be recurring charges during the trial period | ||
*/ | ||
public void setIsRecurring(Boolean value) { | ||
this.isRecurring = value; | ||
} | ||
|
||
/** | ||
* The object containing information on the trial period duration and the interval between payments during that period. | ||
*/ | ||
public TrialPeriod getTrialPeriod() { | ||
return trialPeriod; | ||
} | ||
|
||
/** | ||
* The object containing information on the trial period duration and the interval between payments during that period. | ||
*/ | ||
public void setTrialPeriod(TrialPeriod value) { | ||
this.trialPeriod = value; | ||
} | ||
|
||
/** | ||
* The object containing the frequency and interval between recurring payments.<br><br>Note:<br><br>This object should only be populated if the frequency of recurring payments between the trial and regular periods is different.<br><br>If you do not populated this object, then the same interval frequency and interval of recurringPaymentsData.recurringInterval will be used | ||
*/ | ||
public Frequency getTrialPeriodRecurring() { | ||
return trialPeriodRecurring; | ||
} | ||
|
||
/** | ||
* The object containing the frequency and interval between recurring payments.<br><br>Note:<br><br>This object should only be populated if the frequency of recurring payments between the trial and regular periods is different.<br><br>If you do not populated this object, then the same interval frequency and interval of recurringPaymentsData.recurringInterval will be used | ||
*/ | ||
public void setTrialPeriodRecurring(Frequency value) { | ||
this.trialPeriodRecurring = value; | ||
} | ||
} |
44 changes: 44 additions & 0 deletions
44
.../com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/TrialPeriod.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,44 @@ | ||
/* | ||
* 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.hostedcheckout.definitions; | ||
|
||
/** | ||
* The object containing information on the trial period duration and the interval between payments during that period. | ||
*/ | ||
public class TrialPeriod { | ||
|
||
private Integer duration = null; | ||
|
||
private String interval = null; | ||
|
||
/** | ||
* The number of days, weeks, months, or years before the trial period ends. | ||
*/ | ||
public Integer getDuration() { | ||
return duration; | ||
} | ||
|
||
/** | ||
* The number of days, weeks, months, or years before the trial period ends. | ||
*/ | ||
public void setDuration(Integer value) { | ||
this.duration = value; | ||
} | ||
|
||
/** | ||
* The interval for the trial period to finish specified as days, weeks, months, quarters, or years. | ||
*/ | ||
public String getInterval() { | ||
return interval; | ||
} | ||
|
||
/** | ||
* The interval for the trial period to finish specified as days, weeks, months, quarters, or years. | ||
*/ | ||
public void setInterval(String value) { | ||
this.interval = value; | ||
} | ||
} |
80 changes: 80 additions & 0 deletions
80
...ated/com/ingenico/connect/gateway/sdk/java/domain/installments/GetInstallmentRequest.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,80 @@ | ||
/* | ||
* 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.installments; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.domain.definitions.AmountOfMoney; | ||
|
||
/** | ||
* Using the Installment Service API you can ask us to provide you with information related to the available installment options, based on the country, amount and optionally payment productId and bin number. | ||
*/ | ||
public class GetInstallmentRequest { | ||
|
||
private AmountOfMoney amountOfMoney = null; | ||
|
||
private String bin = null; | ||
|
||
private String countryCode = null; | ||
|
||
private Integer paymentProductId = null; | ||
|
||
/** | ||
* Object containing amount and ISO currency code attributes | ||
*/ | ||
public AmountOfMoney getAmountOfMoney() { | ||
return amountOfMoney; | ||
} | ||
|
||
/** | ||
* Object containing amount and ISO currency code attributes | ||
*/ | ||
public void setAmountOfMoney(AmountOfMoney value) { | ||
this.amountOfMoney = value; | ||
} | ||
|
||
/** | ||
* The first digits of the card number from left to right with a minimum of 6 digits | ||
*/ | ||
public String getBin() { | ||
return bin; | ||
} | ||
|
||
/** | ||
* The first digits of the card number from left to right with a minimum of 6 digits | ||
*/ | ||
public void setBin(String value) { | ||
this.bin = value; | ||
} | ||
|
||
/** | ||
* ISO 3166-1 alpha-2 country code | ||
*/ | ||
public String getCountryCode() { | ||
return countryCode; | ||
} | ||
|
||
/** | ||
* ISO 3166-1 alpha-2 country code | ||
*/ | ||
public void setCountryCode(String value) { | ||
this.countryCode = value; | ||
} | ||
|
||
/** | ||
* Payment product identifier <br> | ||
* Please see <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/paymentproducts.html">payment products</a> for a full overview of possible values. | ||
*/ | ||
public Integer getPaymentProductId() { | ||
return paymentProductId; | ||
} | ||
|
||
/** | ||
* Payment product identifier <br> | ||
* Please see <a href="https://epayments-api.developer-ingenico.com/s2sapi/v1/en_US/java/paymentproducts.html">payment products</a> for a full overview of possible values. | ||
*/ | ||
public void setPaymentProductId(Integer value) { | ||
this.paymentProductId = value; | ||
} | ||
} |
Oops, something went wrong.