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

Commit

Permalink
Release 6.43.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments committed Oct 16, 2023
1 parent d49d742 commit 56edd93
Show file tree
Hide file tree
Showing 15 changed files with 639 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.42.0</version>
<version>6.43.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,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);
}
}
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;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ public class HostedCheckoutSpecificInput {

private PaymentProductFiltersHostedCheckout paymentProductFilters = null;

private RecurringPaymentsData recurringPaymentsData = null;

private Boolean returnCancelState = null;

private String returnUrl = null;
Expand Down Expand Up @@ -73,6 +75,20 @@ public void setPaymentProductFilters(PaymentProductFiltersHostedCheckout value)
this.paymentProductFilters = value;
}

/**
* 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 RecurringPaymentsData getRecurringPaymentsData() {
return recurringPaymentsData;
}

/**
* 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 void setRecurringPaymentsData(RecurringPaymentsData value) {
this.recurringPaymentsData = value;
}

/**
* This flag affects the status of a Hosted Checkout when a customer presses the cancel button and is returned to you as a result.<br>If set to true, then the status will be CANCELLED_BY_CONSUMER. If set to false, then the status will be IN_PROGRESS.<br>The default value is false. This flag was added to introduce the additional CANCELLED_BY_CONSUMER state as a non-breaking change.
*/
Expand Down
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;
}
}
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;
}
}
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;
}
}
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;
}
}
Loading

0 comments on commit 56edd93

Please sign in to comment.