Skip to content

Code generation: update services and models #1497

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
/*
* Configuration API
*
* The version of the OpenAPI document: 2
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/

package com.adyen.model.balanceplatform;

import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
import com.fasterxml.jackson.core.JsonProcessingException;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

/** AuthorisedCardUsers */
@JsonPropertyOrder({AuthorisedCardUsers.JSON_PROPERTY_LEGAL_ENTITY_IDS})
public class AuthorisedCardUsers {
public static final String JSON_PROPERTY_LEGAL_ENTITY_IDS = "legalEntityIds";
private List<String> legalEntityIds;

public AuthorisedCardUsers() {}

/**
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
*
* @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified
* payment instrument.
* @return the current {@code AuthorisedCardUsers} instance, allowing for method chaining
*/
public AuthorisedCardUsers legalEntityIds(List<String> legalEntityIds) {
this.legalEntityIds = legalEntityIds;
return this;
}

public AuthorisedCardUsers addLegalEntityIdsItem(String legalEntityIdsItem) {
if (this.legalEntityIds == null) {
this.legalEntityIds = new ArrayList<>();
}
this.legalEntityIds.add(legalEntityIdsItem);
return this;
}

/**
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
*
* @return legalEntityIds The legal entity IDs of the authorized card users linked to the
* specified payment instrument.
*/
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public List<String> getLegalEntityIds() {
return legalEntityIds;
}

/**
* The legal entity IDs of the authorized card users linked to the specified payment instrument.
*
* @param legalEntityIds The legal entity IDs of the authorized card users linked to the specified
* payment instrument.
*/
@JsonProperty(JSON_PROPERTY_LEGAL_ENTITY_IDS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setLegalEntityIds(List<String> legalEntityIds) {
this.legalEntityIds = legalEntityIds;
}

/** Return true if this AuthorisedCardUsers object is equal to o. */
@Override
public boolean equals(Object o) {
if (this == o) {
return true;
}
if (o == null || getClass() != o.getClass()) {
return false;
}
AuthorisedCardUsers authorisedCardUsers = (AuthorisedCardUsers) o;
return Objects.equals(this.legalEntityIds, authorisedCardUsers.legalEntityIds);
}

@Override
public int hashCode() {
return Objects.hash(legalEntityIds);
}

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class AuthorisedCardUsers {\n");
sb.append(" legalEntityIds: ").append(toIndentedString(legalEntityIds)).append("\n");
sb.append("}");
return sb.toString();
}

/**
* Convert the given object to string with each line indented by 4 spaces (except the first line).
*/
private String toIndentedString(Object o) {
if (o == null) {
return "null";
}
return o.toString().replace("\n", "\n ");
}

/**
* Create an instance of AuthorisedCardUsers given an JSON string
*
* @param jsonString JSON string
* @return An instance of AuthorisedCardUsers
* @throws JsonProcessingException if the JSON string is invalid with respect to
* AuthorisedCardUsers
*/
public static AuthorisedCardUsers fromJson(String jsonString) throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, AuthorisedCardUsers.class);
}

/**
* Convert an instance of AuthorisedCardUsers to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
36 changes: 18 additions & 18 deletions src/main/java/com/adyen/model/balanceplatform/Card.java
Original file line number Diff line number Diff line change
Expand Up @@ -513,13 +513,13 @@ public String getNumber() {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
* contact to get the values relevant for your integration.
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
* values relevant for your integration.
* @return the current {@code Card} instance, allowing for method chaining
*/
public Card threeDSecure(String threeDSecure) {
Expand All @@ -528,13 +528,13 @@ public Card threeDSecure(String threeDSecure) {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @return threeDSecure Allocates a specific product range for either a physical or a virtual
* card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your
* Adyen contact to get the values relevant for your integration.
* @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible
* values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to
* get the values relevant for your integration.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -543,13 +543,13 @@ public String getThreeDSecure() {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
* contact to get the values relevant for your integration.
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
* values relevant for your integration.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
36 changes: 18 additions & 18 deletions src/main/java/com/adyen/model/balanceplatform/CardInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -336,13 +336,13 @@ public void setFormFactor(FormFactorEnum formFactor) {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
* contact to get the values relevant for your integration.
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
* values relevant for your integration.
* @return the current {@code CardInfo} instance, allowing for method chaining
*/
public CardInfo threeDSecure(String threeDSecure) {
Expand All @@ -351,13 +351,13 @@ public CardInfo threeDSecure(String threeDSecure) {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @return threeDSecure Allocates a specific product range for either a physical or a virtual
* card. Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your
* Adyen contact to get the values relevant for your integration.
* @return threeDSecure The 3DS configuration of the physical or the virtual card. Possible
* values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to
* get the values relevant for your integration.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -366,13 +366,13 @@ public String getThreeDSecure() {
}

/**
* Allocates a specific product range for either a physical or a virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the values
* relevant for your integration.
* The 3DS configuration of the physical or the virtual card. Possible values: **fullySupported**,
* **secureCorporate**. &gt; Reach out to your Adyen contact to get the values relevant for your
* integration.
*
* @param threeDSecure Allocates a specific product range for either a physical or a virtual card.
* Possible values: **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen
* contact to get the values relevant for your integration.
* @param threeDSecure The 3DS configuration of the physical or the virtual card. Possible values:
* **fullySupported**, **secureCorporate**. &gt; Reach out to your Adyen contact to get the
* values relevant for your integration.
*/
@JsonProperty(JSON_PROPERTY_THREE_D_SECURE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,9 @@ public static CapabilitiesEnum fromValue(String value) {
public static final String JSON_PROPERTY_SUB_ERRORS = "subErrors";
private List<VerificationErrorRecursive> subErrors;

/** The type of error. Possible values: **invalidInput**, **dataMissing**. */
/**
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*/
public enum TypeEnum {
DATAMISSING(String.valueOf("dataMissing")),

Expand Down Expand Up @@ -430,9 +432,10 @@ public void setSubErrors(List<VerificationErrorRecursive> subErrors) {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @param type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @param type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
* @return the current {@code VerificationError} instance, allowing for method chaining
*/
public VerificationError type(TypeEnum type) {
Expand All @@ -441,9 +444,10 @@ public VerificationError type(TypeEnum type) {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @return type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @return type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -452,9 +456,10 @@ public TypeEnum getType() {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @param type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @param type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,9 @@ public static CapabilitiesEnum fromValue(String value) {
public static final String JSON_PROPERTY_MESSAGE = "message";
private String message;

/** The type of error. Possible values: **invalidInput**, **dataMissing**. */
/**
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*/
public enum TypeEnum {
DATAMISSING(String.valueOf("dataMissing")),

Expand Down Expand Up @@ -343,9 +345,10 @@ public void setMessage(String message) {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @param type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @param type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
* @return the current {@code VerificationErrorRecursive} instance, allowing for method chaining
*/
public VerificationErrorRecursive type(TypeEnum type) {
Expand All @@ -354,9 +357,10 @@ public VerificationErrorRecursive type(TypeEnum type) {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @return type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @return type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand All @@ -365,9 +369,10 @@ public TypeEnum getType() {
}

/**
* The type of error. Possible values: **invalidInput**, **dataMissing**.
* The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus**
*
* @param type The type of error. Possible values: **invalidInput**, **dataMissing**.
* @param type The type of error. Possible values: * **invalidInput** * **dataMissing** *
* **pendingStatus**
*/
@JsonProperty(JSON_PROPERTY_TYPE)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,13 @@ public void setSubMerchantSubSellerSubSellerNrMcc(String subMerchantSubSellerSub
/**
* Required for transactions performed by registered payment facilitators. The name of the
* sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement
* that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters
* that will appear in the card statement. Exception: for acquirers in Brazil, this value does not
* overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters
*
* @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered
* payment facilitators. The name of the sub-merchant. Based on scheme specifications, this
* value will overwrite the shopper statement that will appear in the card statement. *
* value will overwrite the shopper statement that will appear in the card statement.
* Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. *
* Format: Alphanumeric * Maximum length: 22 characters
* @return the current {@code AdditionalDataSubMerchant} instance, allowing for method chaining
*/
Expand All @@ -374,11 +376,13 @@ public AdditionalDataSubMerchant subMerchantSubSellerSubSellerNrName(
/**
* Required for transactions performed by registered payment facilitators. The name of the
* sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement
* that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters
* that will appear in the card statement. Exception: for acquirers in Brazil, this value does not
* overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters
*
* @return subMerchantSubSellerSubSellerNrName Required for transactions performed by registered
* payment facilitators. The name of the sub-merchant. Based on scheme specifications, this
* value will overwrite the shopper statement that will appear in the card statement. *
* value will overwrite the shopper statement that will appear in the card statement.
* Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. *
* Format: Alphanumeric * Maximum length: 22 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME)
Expand All @@ -390,11 +394,13 @@ public String getSubMerchantSubSellerSubSellerNrName() {
/**
* Required for transactions performed by registered payment facilitators. The name of the
* sub-merchant. Based on scheme specifications, this value will overwrite the shopper statement
* that will appear in the card statement. * Format: Alphanumeric * Maximum length: 22 characters
* that will appear in the card statement. Exception: for acquirers in Brazil, this value does not
* overwrite the shopper statement. * Format: Alphanumeric * Maximum length: 22 characters
*
* @param subMerchantSubSellerSubSellerNrName Required for transactions performed by registered
* payment facilitators. The name of the sub-merchant. Based on scheme specifications, this
* value will overwrite the shopper statement that will appear in the card statement. *
* value will overwrite the shopper statement that will appear in the card statement.
* Exception: for acquirers in Brazil, this value does not overwrite the shopper statement. *
* Format: Alphanumeric * Maximum length: 22 characters
*/
@JsonProperty(JSON_PROPERTY_SUB_MERCHANT_SUB_SELLER_SUB_SELLER_NR_NAME)
Expand Down
Loading