diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 000000000..788c454cc --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,31 @@ +name: Deploy + +on: + push: + tags: ['[0-9]+.[0-9]+*'] + +jobs: + deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v3 + with: + persist-credentials: false + - name: Setup Java + uses: actions/setup-java@v3 + with: + java-version: '8' + distribution: 'temurin' + cache: 'maven' + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: MAVEN_GPG_PASSPHRASE + server-id: ossrh + server-username: OSSRH_USERNAME + server-password: OSSRH_PASSWORD + - name: Deploy + run: mvn deploy -Prelease -DskipTests -DstagingProgressTimeoutMinutes=60 + env: + MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }} + OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} + OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} diff --git a/pom.xml b/pom.xml index 3a0e9fb5a..0e4e2b34a 100644 --- a/pom.xml +++ b/pom.xml @@ -5,7 +5,7 @@ com.ingenico.connect.gateway connect-sdk-java - 6.46.0 + 6.47.0 jar connect-sdk-java diff --git a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupExample.java b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupExample.java index 143713de4..488ad710c 100644 --- a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupExample.java +++ b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupExample.java @@ -26,6 +26,7 @@ public void example() throws URISyntaxException, IOException { query.setLocale("en_US"); query.setAmount(1000L); query.setIsRecurring(true); + query.setIsInstallments(true); query.addHide("fields"); PaymentProductGroupResponse response = client.merchant("merchantId").productgroups().get("cards", query); diff --git a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupsExample.java b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupsExample.java index 4c65d04cb..15b819871 100644 --- a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupsExample.java +++ b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/GetPaymentProductGroupsExample.java @@ -26,6 +26,7 @@ public void example() throws URISyntaxException, IOException { query.setLocale("en_US"); query.setAmount(1000L); query.setIsRecurring(true); + query.setIsInstallments(true); query.addHide("fields"); PaymentProductGroups response = client.merchant("merchantId").productgroups().find(query); diff --git a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductExample.java b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductExample.java index 47096e3a7..f3090ed44 100644 --- a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductExample.java +++ b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductExample.java @@ -26,6 +26,7 @@ public void example() throws URISyntaxException, IOException { query.setLocale("en_US"); query.setAmount(1000L); query.setIsRecurring(true); + query.setIsInstallments(true); query.setForceBasicFlow(false); query.addHide("fields"); diff --git a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductsExample.java b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductsExample.java index e1fb648d4..ede8e4257 100644 --- a/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductsExample.java +++ b/src/examples/java/com/ingenico/connect/gateway/sdk/java/merchant/products/GetPaymentProductsExample.java @@ -26,6 +26,7 @@ public void example() throws URISyntaxException, IOException { query.setLocale("en_US"); query.setAmount(1000L); query.setIsRecurring(true); + query.setIsInstallments(true); query.addHide("fields"); PaymentProducts response = client.merchant("merchantId").products().find(query); diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/AccountFundingRecipient.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/AccountFundingRecipient.java index 8a7bdf655..d4cac56d2 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/AccountFundingRecipient.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/AccountFundingRecipient.java @@ -46,6 +46,7 @@ public void setAccountNumber(String value) { *
  • routingNumber = Routing Transit Number is a code used by financial institutions to identify other financial institutions. *
  • iban = International Bank Account Number, is a standard international numbering system for identifying bank accounts. *
  • bicNumber = Bank Identification Code is a number that is used to identify a specific bank. + *
  • giftCard = Gift card is a type of prepaid card that contains a specific amount of money that can be used at participating stores and marketplaces. * */ public String getAccountNumberType() { @@ -60,6 +61,7 @@ public String getAccountNumberType() { *
  • routingNumber = Routing Transit Number is a code used by financial institutions to identify other financial institutions. *
  • iban = International Bank Account Number, is a standard international numbering system for identifying bank accounts. *
  • bicNumber = Bank Identification Code is a number that is used to identify a specific bank. + *
  • giftCard = Gift card is a type of prepaid card that contains a specific amount of money that can be used at participating stores and marketplaces. * */ public void setAccountNumberType(String value) { diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/OrderTypeInformation.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/OrderTypeInformation.java index 792c458dd..fcbcb3c82 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/OrderTypeInformation.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/domain/payment/definitions/OrderTypeInformation.java @@ -21,7 +21,10 @@ public class OrderTypeInformation { *
  • agentCashOut = When fund is being paid out to final recipient in Cash by company's agent. *
  • businessToConsumer = When fund is being transferred from business to consumer (B2C) *
  • businessToBusiness = When fund is being transferred from business to business (B2B) - *
  • prefundingStagedWallet = When funding is being used to load the funds into the wallet account. + *
  • prefundingStagedWallet = When funding is being used to load the funds into the wallet account. + *
  • storedValueDigitalWallet = When funding is being used to load the funds into a stored value digital wallet. + *
  • fundingGiftCardForPersonalUse = When funding a gift card for personal use. + *
  • fundingGiftCardForSomeoneElse = When funding a gift card for someone else. */ public String getFundingType() { return fundingType; @@ -33,7 +36,10 @@ public String getFundingType() { *
  • agentCashOut = When fund is being paid out to final recipient in Cash by company's agent. *
  • businessToConsumer = When fund is being transferred from business to consumer (B2C) *
  • businessToBusiness = When fund is being transferred from business to business (B2B) - *
  • prefundingStagedWallet = When funding is being used to load the funds into the wallet account. + *
  • prefundingStagedWallet = When funding is being used to load the funds into the wallet account. + *
  • storedValueDigitalWallet = When funding is being used to load the funds into a stored value digital wallet. + *
  • fundingGiftCardForPersonalUse = When funding a gift card for personal use. + *
  • fundingGiftCardForSomeoneElse = When funding a gift card for someone else. */ public void setFundingType(String value) { this.fundingType = value; diff --git a/src/main/generated/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/FindProductgroupsParams.java b/src/main/generated/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/FindProductgroupsParams.java index f6e8da4f3..7d8046012 100644 --- a/src/main/generated/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/FindProductgroupsParams.java +++ b/src/main/generated/com/ingenico/connect/gateway/sdk/java/merchant/productgroups/FindProductgroupsParams.java @@ -27,6 +27,8 @@ public class FindProductgroupsParams implements ParamRequest { private Boolean isRecurring; + private Boolean isInstallments; + private List hide; /** @@ -105,6 +107,28 @@ public void setIsRecurring(Boolean value) { this.isRecurring = value; } + /** + * This allows you to filter payment products based on their support for installments or not + * + * If this is omitted all payment products are returned. + */ + public Boolean getIsInstallments() { + return isInstallments; + } + + /** + * This allows you to filter payment products based on their support for installments or not + * + * If this is omitted all payment products are returned. + */ + public void setIsInstallments(Boolean value) { + this.isInstallments = value; + } + /** * Allows you to hide elements from the response, reducing the amount of data that needs to be returned to your client. Possible options are: *