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

Commit

Permalink
Release 6.23.0.
Browse files Browse the repository at this point in the history
  • Loading branch information
IngenicoEPayments authored and jenkins committed Jul 20, 2021
1 parent 3d58047 commit 1396d2d
Show file tree
Hide file tree
Showing 10 changed files with 193 additions and 19 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.22.0</version>
<version>6.23.0</version>
<packaging>jar</packaging>

<name>connect-sdk-java</name>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import com.ingenico.connect.gateway.sdk.java.domain.payout.PayoutResponse;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.BankTransferPayoutMethodSpecificInput;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutCustomer;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutDetails;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutReferences;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutResult;

Expand All @@ -34,14 +35,20 @@ public class CreatePayoutExample {
public void example() throws URISyntaxException, IOException {
Client client = getClient();
try {
AmountOfMoney amountOfMoney = new AmountOfMoney();
amountOfMoney.setAmount(2345L);
amountOfMoney.setCurrencyCode("EUR");

BankAccountIban bankAccountIban = new BankAccountIban();
bankAccountIban.setAccountHolderName("Wile E. Coyote");
bankAccountIban.setIban("IT60X0542811101000000123456");

BankTransferPayoutMethodSpecificInput bankTransferPayoutMethodSpecificInput = new BankTransferPayoutMethodSpecificInput();
bankTransferPayoutMethodSpecificInput.setBankAccountIban(bankAccountIban);
bankTransferPayoutMethodSpecificInput.setPayoutDate("20150102");
bankTransferPayoutMethodSpecificInput.setPayoutText("Payout Acme");
bankTransferPayoutMethodSpecificInput.setSwiftCode("swift");

AmountOfMoney amountOfMoney = new AmountOfMoney();
amountOfMoney.setAmount(2345L);
amountOfMoney.setCurrencyCode("EUR");

Address address = new Address();
address.setCity("Burbank");
address.setCountryCode("US");
Expand All @@ -68,20 +75,17 @@ public void example() throws URISyntaxException, IOException {
customer.setContactDetails(contactDetails);
customer.setName(name);

BankTransferPayoutMethodSpecificInput bankTransferPayoutMethodSpecificInput = new BankTransferPayoutMethodSpecificInput();
bankTransferPayoutMethodSpecificInput.setBankAccountIban(bankAccountIban);
bankTransferPayoutMethodSpecificInput.setCustomer(customer);
bankTransferPayoutMethodSpecificInput.setPayoutDate("20150102");
bankTransferPayoutMethodSpecificInput.setPayoutText("Payout Acme");
bankTransferPayoutMethodSpecificInput.setSwiftCode("swift");

PayoutReferences references = new PayoutReferences();
references.setMerchantReference("AcmeOrder001");

PayoutDetails payoutDetails = new PayoutDetails();
payoutDetails.setAmountOfMoney(amountOfMoney);
payoutDetails.setCustomer(customer);
payoutDetails.setReferences(references);

CreatePayoutRequest body = new CreatePayoutRequest();
body.setAmountOfMoney(amountOfMoney);
body.setBankTransferPayoutMethodSpecificInput(bankTransferPayoutMethodSpecificInput);
body.setReferences(references);
body.setPayoutDetails(payoutDetails);

try {
PayoutResponse response = client.merchant("merchantId").payouts().create(body);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ public void setDevice(CustomerDevice value) {
* <li>Brazil - Company (CNPJ) with a length of 14 digits
* <li>Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
* <li>Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU), Swedish: personbeteckning) with a length of 11 characters
* <li>India - Consumer (PAN) with a length of 10 characters
* <li>Norway - Consumer (fødselsnummer) with a length of 11 digits
* <li>Sweden - Consumer (personnummer) with a length of 10 or 12 digits
* </ul>
Expand All @@ -130,6 +131,7 @@ public String getFiscalNumber() {
* <li>Brazil - Company (CNPJ) with a length of 14 digits
* <li>Denmark - Consumer (CPR-nummer or personnummer) with a length of 10 digits
* <li>Finland - Consumer (Finnish: henkilötunnus (abbreviated as HETU), Swedish: personbeteckning) with a length of 11 characters
* <li>India - Consumer (PAN) with a length of 10 characters
* <li>Norway - Consumer (fødselsnummer) with a length of 11 digits
* <li>Sweden - Consumer (personnummer) with a length of 10 or 12 digits
* </ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.BankTransferPayoutMethodSpecificInput;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.CardPayoutMethodSpecificInput;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutCustomer;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutDetails;
import com.ingenico.connect.gateway.sdk.java.domain.payout.definitions.PayoutReferences;

public class CreatePayoutRequest {
Expand All @@ -28,6 +29,8 @@ public class CreatePayoutRequest {

private String payoutDate = null;

private PayoutDetails payoutDetails = null;

private String payoutText = null;

private PayoutReferences references = null;
Expand All @@ -36,14 +39,20 @@ public class CreatePayoutRequest {

/**
* Object containing amount and ISO currency code attributes
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public AmountOfMoney getAmountOfMoney() {
return amountOfMoney;
}

/**
* Object containing amount and ISO currency code attributes
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public void setAmountOfMoney(AmountOfMoney value) {
this.amountOfMoney = value;
}
Expand Down Expand Up @@ -119,7 +128,7 @@ public void setCardPayoutMethodSpecificInput(CardPayoutMethodSpecificInput value
/**
* Object containing the details of the customer.
*
* @deprecated Moved to BankTransferPayoutMethodSpecificInput
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public PayoutCustomer getCustomer() {
Expand All @@ -129,7 +138,7 @@ public PayoutCustomer getCustomer() {
/**
* Object containing the details of the customer.
*
* @deprecated Moved to BankTransferPayoutMethodSpecificInput
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public void setCustomer(PayoutCustomer value) {
Expand Down Expand Up @@ -158,6 +167,20 @@ public void setPayoutDate(String value) {
this.payoutDate = value;
}

/**
* Object containing the details for Create Payout Request
*/
public PayoutDetails getPayoutDetails() {
return payoutDetails;
}

/**
* Object containing the details for Create Payout Request
*/
public void setPayoutDetails(PayoutDetails value) {
this.payoutDetails = value;
}

/**
* Text to be printed on the bank account statement of the beneficiary. The maximum allowed length might differ per country. The data will be automatically truncated to the maximum allowed length.
*
Expand All @@ -180,14 +203,20 @@ public void setPayoutText(String value) {

/**
* Object that holds all reference properties that are linked to this transaction
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public PayoutReferences getReferences() {
return references;
}

/**
* Object that holds all reference properties that are linked to this transaction
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public void setReferences(PayoutReferences value) {
this.references = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,20 @@ public void setBankAccountIban(BankAccountIban value) {

/**
* Object containing the details of the customer.
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public PayoutCustomer getCustomer() {
return customer;
}

/**
* Object containing the details of the customer.
*
* @deprecated Moved to PayoutDetails
*/
@Deprecated
public void setCustomer(PayoutCustomer value) {
this.customer = value;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ public class CardPayoutMethodSpecificInput extends AbstractPayoutMethodSpecificI

private Integer paymentProductId = null;

private PayoutRecipient recipient = null;

private String token = null;

/**
Expand Down Expand Up @@ -44,6 +46,20 @@ public void setPaymentProductId(Integer value) {
this.paymentProductId = value;
}

/**
* Object containing the details of the recipient of the payout
*/
public PayoutRecipient getRecipient() {
return recipient;
}

/**
* Object containing the details of the recipient of the payout
*/
public void setRecipient(PayoutRecipient value) {
this.recipient = value;
}

/**
* ID of the token that holds previously stored card data. Note that this is only supported for transactions on the Ogone payment engine.
*/
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
/*
* 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.payout.definitions;

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

public class PayoutDetails {

private AmountOfMoney amountOfMoney = null;

private PayoutCustomer customer = null;

private PayoutReferences references = 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;
}

/**
* Object containing the details of the customer.
*/
public PayoutCustomer getCustomer() {
return customer;
}

/**
* Object containing the details of the customer.
*/
public void setCustomer(PayoutCustomer value) {
this.customer = value;
}

/**
* Object that holds all reference properties that are linked to this transaction
*/
public PayoutReferences getReferences() {
return references;
}

/**
* Object that holds all reference properties that are linked to this transaction
*/
public void setReferences(PayoutReferences value) {
this.references = value;
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
/*
* 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.payout.definitions;

/**
* Object containing the details of the recipient of the payout
*/
public class PayoutRecipient {

private String firstName = null;

private String surname = null;

private String surnamePrefix = null;

/**
* Given name(s) or first name(s) of the customer
*/
public String getFirstName() {
return firstName;
}

/**
* Given name(s) or first name(s) of the customer
*/
public void setFirstName(String value) {
this.firstName = value;
}

/**
* Surname(s) or last name(s) of the customer
*/
public String getSurname() {
return surname;
}

/**
* Surname(s) or last name(s) of the customer
*/
public void setSurname(String value) {
this.surname = value;
}

/**
* Middle name - In between first name and surname - of the customer
*/
public String getSurnamePrefix() {
return surnamePrefix;
}

/**
* Middle name - In between first name and surname - of the customer
*/
public void setSurnamePrefix(String value) {
this.surnamePrefix = value;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ public class TestConnection {
private String result = null;

/**
* OK result on the connection to GC
* OK result on the connection to the payment engine.
*/
public String getResult() {
return result;
}

/**
* OK result on the connection to GC
* OK result on the connection to the payment engine.
*/
public void setResult(String value) {
this.result = value;
Expand Down
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.22.0";
private static final String SDK_VERSION = "6.23.0";

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

0 comments on commit 1396d2d

Please sign in to comment.