From bbcbbe8877542c19fb1e6cb05520de6c218aca20 Mon Sep 17 00:00:00 2001 From: Ingenico ePayments Date: Wed, 28 Jun 2023 09:44:19 +0200 Subject: [PATCH] Release 6.40.0. --- .github/workflows/api-docs.yml | 56 +++++++++++++++++++ pom.xml | 2 +- .../definitions/CreatedPaymentOutput.java | 16 ++++++ .../CardPaymentMethodSpecificInput.java | 4 +- .../definitions/CardRecurrenceDetails.java | 10 ++-- .../payment/definitions/Installments.java | 16 +++--- .../definitions/PaymentCreationOutput.java | 16 ++++++ .../definitions/PaymentReferences.java | 16 ++++++ .../definitions/PaymentStatusOutput.java | 19 +++++++ .../payment/definitions/SchemeTokenData.java | 16 ++++++ .../gateway/sdk/java/MetaDataProvider.java | 2 +- 11 files changed, 157 insertions(+), 16 deletions(-) create mode 100644 .github/workflows/api-docs.yml diff --git a/.github/workflows/api-docs.yml b/.github/workflows/api-docs.yml new file mode 100644 index 000000000..bb78a3d19 --- /dev/null +++ b/.github/workflows/api-docs.yml @@ -0,0 +1,56 @@ +name: API docs + +on: + push: + tags: ['[0-9]+.[0-9]+*'] + +permissions: + contents: write + +jobs: + api-docs: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + path: code + persist-credentials: false + - name: Setup Java + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + cache: 'maven' + - name: Build API docs + run: mvn javadoc:javadoc -Dnotimestamp + working-directory: code + - name: Checkout pages + uses: actions/checkout@v3 + with: + ref: gh-pages + path: pages + - name: Deploy pages + run: | + SDK_VERSION_FOLDER=`echo "$SDK_VERSION" | awk --field-separator '.' '{print $1".x";}'` + + # Create .nojekyll if it doesn't exist yet + touch .nojekyll + + mkdir -p "apidocs/$SDK_VERSION_FOLDER" + rsync --quiet --archive --checksum --delete --exclude .git ../code/target/site/apidocs/ "apidocs/$SDK_VERSION_FOLDER/" + if [ -e apidocs/latest ]; then rm -r apidocs/latest; fi + pushd apidocs && ln -s "$SDK_VERSION_FOLDER" latest && popd + + git config user.email "$USER_EMAIL" + git config user.name "$USER_NAME" + git add --all . + # Only commit when there are changes + git diff --quiet && git diff --staged --quiet || git commit --message "Generated API docs for version ${SDK_VERSION}" + git push + shell: bash + working-directory: pages + env: + SDK_VERSION: ${{ github.ref_name }} + USER_EMAIL: ${{ github.event.pusher.email }} + USER_NAME: ${{ github.event.pusher.name }} diff --git a/pom.xml b/pom.xml index 54d0dccf3..deed1a07d 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.ingenico.connect.gateway connect-sdk-java - 6.39.0 + 6.40.0 jar connect-sdk-java diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/CreatedPaymentOutput.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/CreatedPaymentOutput.java index 51f3a4688..a21eaf400 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/CreatedPaymentOutput.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/hostedcheckout/definitions/CreatedPaymentOutput.java @@ -14,6 +14,8 @@ public class CreatedPaymentOutput { private DisplayedData displayedData = null; + private Boolean isCheckedRememberMe = null; + private Payment payment = null; private PaymentCreationReferences paymentCreationReferences = null; @@ -38,6 +40,20 @@ public void setDisplayedData(DisplayedData value) { this.displayedData = value; } + /** + * Indicates whether the customer ticked the "Remember my details for future purchases" checkbox on the MyCheckout hosted payment pages + */ + public Boolean getIsCheckedRememberMe() { + return isCheckedRememberMe; + } + + /** + * Indicates whether the customer ticked the "Remember my details for future purchases" checkbox on the MyCheckout hosted payment pages + */ + public void setIsCheckedRememberMe(Boolean value) { + this.isCheckedRememberMe = value; + } + /** * Object that holds the payment data */ diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardPaymentMethodSpecificInput.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardPaymentMethodSpecificInput.java index c9186ab3c..a81ba3c11 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardPaymentMethodSpecificInput.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardPaymentMethodSpecificInput.java @@ -23,14 +23,14 @@ public class CardPaymentMethodSpecificInput extends AbstractCardPaymentMethodSpe private ThreeDSecure threeDSecure = null; /** - * Object containing card details + * Object containing card details. The card details will be ignored in case the property networkTokenData is present. */ public Card getCard() { return card; } /** - * Object containing card details + * Object containing card details. The card details will be ignored in case the property networkTokenData is present. */ public void setCard(Card value) { this.card = value; diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardRecurrenceDetails.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardRecurrenceDetails.java index dce88d5f6..573e2df5d 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardRecurrenceDetails.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/CardRecurrenceDetails.java @@ -41,8 +41,9 @@ public void setMinFrequency(Integer value) { } /** - *
- * For the payment product IDs 8590 (BC Card), 8591 (KEB Hana Card), 8592 (Hyundai Card), 8593 (KB Kookmin Card), 8594 (Lotte Card), 8595 (NH Card), 8596 (Samsung Card) or 8597 (Shinhan Card), only the value monthly is valid. + * For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), only the value monthly is valid. */ public void setFrequencyOfInstallments(String value) { this.frequencyOfInstallments = value; @@ -95,7 +95,7 @@ public void setInstallmentPlanCode(Integer value) { /** * The interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%
- * For the payment product IDs 8590 (BC Card), 8591 (KEB Hana Card), 8592 (Hyundai Card), 8593 (KB Kookmin Card), 8594 (Lotte Card), 8595 (NH Card), 8596 (Samsung Card) or 8597 (Shinhan Card), this property is not used as the value is decided by the issuer. + * For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer. */ public String getInterestRate() { return interestRate; @@ -103,7 +103,7 @@ public String getInterestRate() { /** * The interest rate paid for installments expressed in percentage. So for example 5.75 means 5.75%
- * For the payment product IDs 8590 (BC Card), 8591 (KEB Hana Card), 8592 (Hyundai Card), 8593 (KB Kookmin Card), 8594 (Lotte Card), 8595 (NH Card), 8596 (Samsung Card) or 8597 (Shinhan Card), this property is not used as the value is decided by the issuer. + * For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), this property is not used as the value is decided by the issuer. */ public void setInterestRate(String value) { this.interestRate = value; @@ -111,7 +111,7 @@ public void setInterestRate(String value) { /** * The number of installments in which this transaction will be paid, which can be used for card payments at supported acquirers, or with specific payment products. Only used with some acquirers. In case you send in the details of this object, only the payment products (or combination of card products and acquirers) that support installments will be shown on the MyCheckout hosted payment pages. If this property is not provided the customer will not see details on the installment plan in a HostedCheckout.
- * For the payment product IDs 8590 (BC Card), 8591 (KEB Hana Card), 8592 (Hyundai Card), 8593 (KB Kookmin Card), 8594 (Lotte Card), 8595 (NH Card), 8596 (Samsung Card) or 8597 (Shinhan Card), there is a maximum of 12 installments. + * For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), there is a maximum of 12 installments. */ public Long getNumberOfInstallments() { return numberOfInstallments; @@ -119,7 +119,7 @@ public Long getNumberOfInstallments() { /** * The number of installments in which this transaction will be paid, which can be used for card payments at supported acquirers, or with specific payment products. Only used with some acquirers. In case you send in the details of this object, only the payment products (or combination of card products and acquirers) that support installments will be shown on the MyCheckout hosted payment pages. If this property is not provided the customer will not see details on the installment plan in a HostedCheckout.
- * For the payment product IDs 8590 (BC Card), 8591 (KEB Hana Card), 8592 (Hyundai Card), 8593 (KB Kookmin Card), 8594 (Lotte Card), 8595 (NH Card), 8596 (Samsung Card) or 8597 (Shinhan Card), there is a maximum of 12 installments. + * For the payment product IDs BC Card (paymentProductId 8590), Hana Card (paymentProductId 8591), Hyundai Card (paymentProductId 8592), KB Card (paymentProductId 8593), Lotte Card (paymentProductId 8594), NH Card (paymentProductId 8595), Samsung Card (paymentProductId 8596) and Shinhan Card (paymentProductId 8597), there is a maximum of 12 installments. */ public void setNumberOfInstallments(Long value) { this.numberOfInstallments = value; diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/PaymentCreationOutput.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/PaymentCreationOutput.java index 6ddf6848c..fb3f7cd70 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/PaymentCreationOutput.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/PaymentCreationOutput.java @@ -6,12 +6,28 @@ public class PaymentCreationOutput extends PaymentCreationReferences { + private Boolean isCheckedRememberMe = null; + private Boolean isNewToken = null; private String token = null; private Boolean tokenizationSucceeded = null; + /** + * Indicates whether the customer ticked the "Remember my details for future purchases" checkbox on the MyCheckout hosted payment pages + */ + public Boolean getIsCheckedRememberMe() { + return isCheckedRememberMe; + } + + /** + * Indicates whether the customer ticked the "Remember my details for future purchases" checkbox on the MyCheckout hosted payment pages + */ + public void setIsCheckedRememberMe(Boolean value) { + this.isCheckedRememberMe = value; + } + /** * Indicates if a new token was created *