diff --git a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java index 2e43e376b..a83f678b9 100644 --- a/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/balanceplatform/DeliveryAddress.java @@ -280,11 +280,12 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -293,11 +294,12 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,11 +308,12 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java index 204965f54..bcfa4176d 100644 --- a/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java +++ b/src/main/java/com/adyen/model/balanceplatform/TransferRouteRequirementsInner.java @@ -314,6 +314,35 @@ public TransferRouteRequirementsInner deserialize(JsonParser jp, Deserialization e); } + // deserialize USInternationalAchPriorityRequirement + try { + boolean attemptParsing = true; + if (attemptParsing) { + // Checks if the unique type of the oneOf json matches any of the object TypeEnum values + boolean typeMatch = + Arrays.stream(USInternationalAchPriorityRequirement.TypeEnum.values()) + .anyMatch((t) -> t.getValue().contains(tree.findValue("type").asText())); + + if (typeMatch) { + deserialized = + tree.traverse(jp.getCodec()) + .readValueAs(USInternationalAchPriorityRequirement.class); + // TODO: there is no validation against JSON schema constraints + // (min, max, enum, pattern...), this does not perform a strict JSON + // validation, which means the 'match' count may be higher than it should be. + match++; + log.log( + Level.FINER, "Input data matches schema 'USInternationalAchPriorityRequirement'"); + } + } + } catch (Exception e) { + // deserialization failed, continue + log.log( + Level.FINER, + "Input data does not match schema 'USInternationalAchPriorityRequirement'", + e); + } + if (match == 1) { TransferRouteRequirementsInner ret = new TransferRouteRequirementsInner(); ret.setActualInstance(deserialized); @@ -386,6 +415,11 @@ public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { setActualInstance(o); } + public TransferRouteRequirementsInner(USInternationalAchPriorityRequirement o) { + super("oneOf", Boolean.FALSE); + setActualInstance(o); + } + static { schemas.put( "AdditionalBankIdentificationRequirement", @@ -407,6 +441,9 @@ public TransferRouteRequirementsInner(USInternationalAchAddressRequirement o) { schemas.put( "USInternationalAchAddressRequirement", new GenericType() {}); + schemas.put( + "USInternationalAchPriorityRequirement", + new GenericType() {}); JSON.registerDescendants( TransferRouteRequirementsInner.class, Collections.unmodifiableMap(schemas)); } @@ -422,7 +459,7 @@ public Map> getSchemas() { * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement * *

It could be an instance of the 'oneOf' schemas. The oneOf child schemas may themselves be a * composed schema (allOf, anyOf, oneOf). @@ -476,8 +513,13 @@ public void setActualInstance(Object instance) { return; } + if (JSON.isInstanceOf(USInternationalAchPriorityRequirement.class, instance, new HashSet<>())) { + super.setActualInstance(instance); + return; + } + throw new RuntimeException( - "Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement"); + "Invalid instance type. Must be AdditionalBankIdentificationRequirement, AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement"); } /** @@ -485,13 +527,13 @@ public void setActualInstance(Object instance) { * AddressRequirement, AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement * * @return The actual instance (AdditionalBankIdentificationRequirement, AddressRequirement, * AmountMinMaxRequirement, AmountNonZeroDecimalsRequirement, * BankAccountIdentificationTypeRequirement, IbanAccountIdentificationRequirement, * PaymentInstrumentRequirement, USInstantPayoutAddressRequirement, - * USInternationalAchAddressRequirement) + * USInternationalAchAddressRequirement, USInternationalAchPriorityRequirement) */ @Override public Object getActualInstance() { @@ -603,6 +645,18 @@ public USInternationalAchAddressRequirement getUSInternationalAchAddressRequirem return (USInternationalAchAddressRequirement) super.getActualInstance(); } + /** + * Get the actual instance of `USInternationalAchPriorityRequirement`. If the actual instance is + * not `USInternationalAchPriorityRequirement`, the ClassCastException will be thrown. + * + * @return The actual instance of `USInternationalAchPriorityRequirement` + * @throws ClassCastException if the instance is not `USInternationalAchPriorityRequirement` + */ + public USInternationalAchPriorityRequirement getUSInternationalAchPriorityRequirement() + throws ClassCastException { + return (USInternationalAchPriorityRequirement) super.getActualInstance(); + } + /** * Create an instance of TransferRouteRequirementsInner given an JSON string * diff --git a/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java new file mode 100644 index 000000000..e83b85ed3 --- /dev/null +++ b/src/main/java/com/adyen/model/balanceplatform/USInternationalAchPriorityRequirement.java @@ -0,0 +1,212 @@ +/* + * 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.JsonCreator; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonValue; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; +import java.util.Arrays; +import java.util.logging.Logger; + +/** USInternationalAchPriorityRequirement */ +@JsonPropertyOrder({ + USInternationalAchPriorityRequirement.JSON_PROPERTY_DESCRIPTION, + USInternationalAchPriorityRequirement.JSON_PROPERTY_TYPE +}) +public class USInternationalAchPriorityRequirement { + public static final String JSON_PROPERTY_DESCRIPTION = "description"; + private String description; + + /** **usInternationalAchPriorityRequirement** */ + public enum TypeEnum { + USINTERNATIONALACHPRIORITYREQUIREMENT(String.valueOf("usInternationalAchPriorityRequirement")); + + private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); + + private String value; + + TypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static TypeEnum fromValue(String value) { + for (TypeEnum b : TypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + // handling unexpected value + LOG.warning( + "TypeEnum: unexpected enum value '" + + value + + "' - Supported values are " + + Arrays.toString(TypeEnum.values())); + return null; + } + } + + public static final String JSON_PROPERTY_TYPE = "type"; + private TypeEnum type; + + public USInternationalAchPriorityRequirement() {} + + /** + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. + * + * @param description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method + * chaining + */ + public USInternationalAchPriorityRequirement description(String description) { + this.description = description; + return this; + } + + /** + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. + * + * @return description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDescription() { + return description; + } + + /** + * Specifies that transactions deemed to be International ACH (IAT) per OFAC/NACHA rules cannot + * have fast priority. + * + * @param description Specifies that transactions deemed to be International ACH (IAT) per + * OFAC/NACHA rules cannot have fast priority. + */ + @JsonProperty(JSON_PROPERTY_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDescription(String description) { + this.description = description; + } + + /** + * **usInternationalAchPriorityRequirement** + * + * @param type **usInternationalAchPriorityRequirement** + * @return the current {@code USInternationalAchPriorityRequirement} instance, allowing for method + * chaining + */ + public USInternationalAchPriorityRequirement type(TypeEnum type) { + this.type = type; + return this; + } + + /** + * **usInternationalAchPriorityRequirement** + * + * @return type **usInternationalAchPriorityRequirement** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public TypeEnum getType() { + return type; + } + + /** + * **usInternationalAchPriorityRequirement** + * + * @param type **usInternationalAchPriorityRequirement** + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(TypeEnum type) { + this.type = type; + } + + /** Return true if this USInternationalAchPriorityRequirement object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + USInternationalAchPriorityRequirement usInternationalAchPriorityRequirement = + (USInternationalAchPriorityRequirement) o; + return Objects.equals(this.description, usInternationalAchPriorityRequirement.description) + && Objects.equals(this.type, usInternationalAchPriorityRequirement.type); + } + + @Override + public int hashCode() { + return Objects.hash(description, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class USInternationalAchPriorityRequirement {\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 USInternationalAchPriorityRequirement given an JSON string + * + * @param jsonString JSON string + * @return An instance of USInternationalAchPriorityRequirement + * @throws JsonProcessingException if the JSON string is invalid with respect to + * USInternationalAchPriorityRequirement + */ + public static USInternationalAchPriorityRequirement fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, USInternationalAchPriorityRequirement.class); + } + + /** + * Convert an instance of USInternationalAchPriorityRequirement to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java index 962aadf42..5c663c73d 100644 --- a/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java +++ b/src/main/java/com/adyen/model/checkout/BalanceCheckRequest.java @@ -1633,7 +1633,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1642,8 +1642,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1657,7 +1657,7 @@ public BalanceCheckRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1666,8 +1666,8 @@ public BalanceCheckRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1681,7 +1681,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1690,8 +1690,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2135,17 +2135,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code BalanceCheckRequest} instance, allowing for method chaining */ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { @@ -2154,17 +2154,17 @@ public BalanceCheckRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2173,17 +2173,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index f80492310..5fbf3ec91 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -729,11 +729,11 @@ public void setHolderName(String holderName) { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * @return the current {@code CardDetails} instance, allowing for method chaining */ @@ -744,11 +744,11 @@ public CardDetails networkPaymentReference(String networkPaymentReference) { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @return networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @@ -759,11 +759,11 @@ public String getNetworkPaymentReference() { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java index 1b02114ac..a861ede83 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java +++ b/src/main/java/com/adyen/model/checkout/CardDetailsRequest.java @@ -209,14 +209,14 @@ public void setMerchantAccount(String merchantAccount) { /** * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, if * provided, the country code. * * @param supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, @@ -238,14 +238,14 @@ public CardDetailsRequest addSupportedBrandsItem(String supportedBrandsItem) { /** * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, if * provided, the country code. * * @return supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, @@ -259,14 +259,14 @@ public List getSupportedBrands() { /** * The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, if * provided, the country code. * * @param supportedBrands The card brands you support. This is the - * [`brands`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods__resParam_paymentMethods-brands) + * [`brands`](https://docs.adyen.com/api-explorer/Checkout/latest/post/paymentMethods#responses-200-paymentMethods-brands) * array from your * [`/paymentMethods`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/paymentMethods) * response. If not included, our API uses the ones configured for your merchant account and, diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 38665755c..c239bd6a4 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -729,11 +729,11 @@ public void setHolderName(String holderName) { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * @return the current {@code CardDonations} instance, allowing for method chaining */ @@ -744,11 +744,11 @@ public CardDonations networkPaymentReference(String networkPaymentReference) { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @return networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) @@ -759,11 +759,11 @@ public String getNetworkPaymentReference() { /** * The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. * * @param networkPaymentReference The transaction identifier from card schemes. This is the - * [`networkTxReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_additionalData-ResponseAdditionalDataCommon-networkTxReference) + * [`networkTxReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-additionalData-ResponseAdditionalDataCommon-networkTxReference) * from the response to the first payment. */ @JsonProperty(JSON_PROPERTY_NETWORK_PAYMENT_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index 4e57c0527..e53c85dd8 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -2192,8 +2192,9 @@ public void setReference(String reference) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2207,9 +2208,9 @@ public void setReference(String reference) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2229,8 +2230,9 @@ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2244,9 +2246,9 @@ public CreateCheckoutSessionRequest returnUrl(String returnUrl) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2266,8 +2268,9 @@ public String getReturnUrl() { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2281,9 +2284,9 @@ public String getReturnUrl() { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2367,7 +2370,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2376,8 +2379,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2391,7 +2394,7 @@ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2400,8 +2403,8 @@ public CreateCheckoutSessionRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2415,7 +2418,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2424,8 +2427,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -3140,17 +3143,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code CreateCheckoutSessionRequest} instance, allowing for method chaining */ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { @@ -3159,17 +3162,17 @@ public CreateCheckoutSessionRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3178,17 +3181,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index cf271a5c7..b28fee47b 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -2259,8 +2259,9 @@ public void setReference(String reference) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2274,9 +2275,9 @@ public void setReference(String reference) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2297,8 +2298,9 @@ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2312,9 +2314,9 @@ public CreateCheckoutSessionResponse returnUrl(String returnUrl) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2334,8 +2336,9 @@ public String getReturnUrl() { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2349,9 +2352,9 @@ public String getReturnUrl() { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2471,7 +2474,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2480,8 +2483,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2496,7 +2499,7 @@ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2505,8 +2508,8 @@ public CreateCheckoutSessionResponse shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2520,7 +2523,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2529,8 +2532,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -3259,17 +3262,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code CreateCheckoutSessionResponse} instance, allowing for method * chaining */ @@ -3279,17 +3282,17 @@ public CreateCheckoutSessionResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3298,17 +3301,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java new file mode 100644 index 000000000..ff692da56 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/DefaultErrorResponseEntity.java @@ -0,0 +1,410 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +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.*; +import java.util.ArrayList; +import java.util.List; + +/** Standardized error response following RFC-7807 format */ +@JsonPropertyOrder({ + DefaultErrorResponseEntity.JSON_PROPERTY_DETAIL, + DefaultErrorResponseEntity.JSON_PROPERTY_ERROR_CODE, + DefaultErrorResponseEntity.JSON_PROPERTY_INSTANCE, + DefaultErrorResponseEntity.JSON_PROPERTY_INVALID_FIELDS, + DefaultErrorResponseEntity.JSON_PROPERTY_REQUEST_ID, + DefaultErrorResponseEntity.JSON_PROPERTY_STATUS, + DefaultErrorResponseEntity.JSON_PROPERTY_TITLE, + DefaultErrorResponseEntity.JSON_PROPERTY_TYPE +}) +public class DefaultErrorResponseEntity { + public static final String JSON_PROPERTY_DETAIL = "detail"; + private String detail; + + public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; + private String errorCode; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + private String instance; + + public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields"; + private List invalidFields; + + public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; + private String requestId; + + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public DefaultErrorResponseEntity() {} + + /** + * A human-readable explanation specific to this occurrence of the problem. + * + * @param detail A human-readable explanation specific to this occurrence of the problem. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity detail(String detail) { + this.detail = detail; + return this; + } + + /** + * A human-readable explanation specific to this occurrence of the problem. + * + * @return detail A human-readable explanation specific to this occurrence of the problem. + */ + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getDetail() { + return detail; + } + + /** + * A human-readable explanation specific to this occurrence of the problem. + * + * @param detail A human-readable explanation specific to this occurrence of the problem. + */ + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(String detail) { + this.detail = detail; + } + + /** + * Unique business error code. + * + * @param errorCode Unique business error code. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Unique business error code. + * + * @return errorCode Unique business error code. + */ + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getErrorCode() { + return errorCode; + } + + /** + * Unique business error code. + * + * @param errorCode Unique business error code. + */ + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + /** + * A URI that identifies the specific occurrence of the problem if applicable. + * + * @param instance A URI that identifies the specific occurrence of the problem if applicable. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity instance(String instance) { + this.instance = instance; + return this; + } + + /** + * A URI that identifies the specific occurrence of the problem if applicable. + * + * @return instance A URI that identifies the specific occurrence of the problem if applicable. + */ + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getInstance() { + return instance; + } + + /** + * A URI that identifies the specific occurrence of the problem if applicable. + * + * @param instance A URI that identifies the specific occurrence of the problem if applicable. + */ + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(String instance) { + this.instance = instance; + } + + /** + * Array of fields with validation errors when applicable. + * + * @param invalidFields Array of fields with validation errors when applicable. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity invalidFields(List invalidFields) { + this.invalidFields = invalidFields; + return this; + } + + public DefaultErrorResponseEntity addInvalidFieldsItem(InvalidField invalidFieldsItem) { + if (this.invalidFields == null) { + this.invalidFields = new ArrayList<>(); + } + this.invalidFields.add(invalidFieldsItem); + return this; + } + + /** + * Array of fields with validation errors when applicable. + * + * @return invalidFields Array of fields with validation errors when applicable. + */ + @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public List getInvalidFields() { + return invalidFields; + } + + /** + * Array of fields with validation errors when applicable. + * + * @param invalidFields Array of fields with validation errors when applicable. + */ + @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvalidFields(List invalidFields) { + this.invalidFields = invalidFields; + } + + /** + * The unique reference for the request. + * + * @param requestId The unique reference for the request. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * The unique reference for the request. + * + * @return requestId The unique reference for the request. + */ + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getRequestId() { + return requestId; + } + + /** + * The unique reference for the request. + * + * @param requestId The unique reference for the request. + */ + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + /** + * The HTTP status code. + * + * @param status The HTTP status code. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity status(Integer status) { + this.status = status; + return this; + } + + /** + * The HTTP status code. + * + * @return status The HTTP status code. + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Integer getStatus() { + return status; + } + + /** + * The HTTP status code. + * + * @param status The HTTP status code. + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(Integer status) { + this.status = status; + } + + /** + * A short, human-readable summary of the problem type. + * + * @param title A short, human-readable summary of the problem type. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity title(String title) { + this.title = title; + return this; + } + + /** + * A short, human-readable summary of the problem type. + * + * @return title A short, human-readable summary of the problem type. + */ + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getTitle() { + return title; + } + + /** + * A short, human-readable summary of the problem type. + * + * @param title A short, human-readable summary of the problem type. + */ + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTitle(String title) { + this.title = title; + } + + /** + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. + * @return the current {@code DefaultErrorResponseEntity} instance, allowing for method chaining + */ + public DefaultErrorResponseEntity type(String type) { + this.type = type; + return this; + } + + /** + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @return type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { + return type; + } + + /** + * A URI that identifies the validation error type. It points to human-readable documentation for + * the problem type. + * + * @param type A URI that identifies the validation error type. It points to human-readable + * documentation for the problem type. + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + /** Return true if this DefaultErrorResponseEntity object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DefaultErrorResponseEntity defaultErrorResponseEntity = (DefaultErrorResponseEntity) o; + return Objects.equals(this.detail, defaultErrorResponseEntity.detail) + && Objects.equals(this.errorCode, defaultErrorResponseEntity.errorCode) + && Objects.equals(this.instance, defaultErrorResponseEntity.instance) + && Objects.equals(this.invalidFields, defaultErrorResponseEntity.invalidFields) + && Objects.equals(this.requestId, defaultErrorResponseEntity.requestId) + && Objects.equals(this.status, defaultErrorResponseEntity.status) + && Objects.equals(this.title, defaultErrorResponseEntity.title) + && Objects.equals(this.type, defaultErrorResponseEntity.type); + } + + @Override + public int hashCode() { + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, status, title, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DefaultErrorResponseEntity {\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" invalidFields: ").append(toIndentedString(invalidFields)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).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 DefaultErrorResponseEntity given an JSON string + * + * @param jsonString JSON string + * @return An instance of DefaultErrorResponseEntity + * @throws JsonProcessingException if the JSON string is invalid with respect to + * DefaultErrorResponseEntity + */ + public static DefaultErrorResponseEntity fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, DefaultErrorResponseEntity.class); + } + + /** + * Convert an instance of DefaultErrorResponseEntity to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java index 9b23a9ccb..782a5a65c 100644 --- a/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/DonationPaymentRequest.java @@ -1593,8 +1593,9 @@ public void setReference(String reference) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -1608,9 +1609,9 @@ public void setReference(String reference) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -1630,8 +1631,9 @@ public DonationPaymentRequest returnUrl(String returnUrl) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -1645,9 +1647,9 @@ public DonationPaymentRequest returnUrl(String returnUrl) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -1667,8 +1669,9 @@ public String getReturnUrl() { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -1682,9 +1685,9 @@ public String getReturnUrl() { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -1789,7 +1792,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1798,8 +1801,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1813,7 +1816,7 @@ public DonationPaymentRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1822,8 +1825,8 @@ public DonationPaymentRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1837,7 +1840,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1846,8 +1849,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2109,17 +2112,17 @@ public void setSocialSecurityNumber(String socialSecurityNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code DonationPaymentRequest} instance, allowing for method chaining */ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { @@ -2128,17 +2131,17 @@ public DonationPaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2147,17 +2150,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/InvalidField.java b/src/main/java/com/adyen/model/checkout/InvalidField.java new file mode 100644 index 000000000..715211f87 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/InvalidField.java @@ -0,0 +1,197 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +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.*; + +/** InvalidField */ +@JsonPropertyOrder({ + InvalidField.JSON_PROPERTY_NAME, + InvalidField.JSON_PROPERTY_VALUE, + InvalidField.JSON_PROPERTY_MESSAGE +}) +public class InvalidField { + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public static final String JSON_PROPERTY_VALUE = "value"; + private String value; + + public static final String JSON_PROPERTY_MESSAGE = "message"; + private String message; + + public InvalidField() {} + + /** + * The field that has an invalid value. + * + * @param name The field that has an invalid value. + * @return the current {@code InvalidField} instance, allowing for method chaining + */ + public InvalidField name(String name) { + this.name = name; + return this; + } + + /** + * The field that has an invalid value. + * + * @return name The field that has an invalid value. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getName() { + return name; + } + + /** + * The field that has an invalid value. + * + * @param name The field that has an invalid value. + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + /** + * The invalid value. + * + * @param value The invalid value. + * @return the current {@code InvalidField} instance, allowing for method chaining + */ + public InvalidField value(String value) { + this.value = value; + return this; + } + + /** + * The invalid value. + * + * @return value The invalid value. + */ + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getValue() { + return value; + } + + /** + * The invalid value. + * + * @param value The invalid value. + */ + @JsonProperty(JSON_PROPERTY_VALUE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setValue(String value) { + this.value = value; + } + + /** + * Description of the validation error. + * + * @param message Description of the validation error. + * @return the current {@code InvalidField} instance, allowing for method chaining + */ + public InvalidField message(String message) { + this.message = message; + return this; + } + + /** + * Description of the validation error. + * + * @return message Description of the validation error. + */ + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMessage() { + return message; + } + + /** + * Description of the validation error. + * + * @param message Description of the validation error. + */ + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + /** Return true if this InvalidField object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InvalidField invalidField = (InvalidField) o; + return Objects.equals(this.name, invalidField.name) + && Objects.equals(this.value, invalidField.value) + && Objects.equals(this.message, invalidField.message); + } + + @Override + public int hashCode() { + return Objects.hash(name, value, message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InvalidField {\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append(" message: ").append(toIndentedString(message)).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 InvalidField given an JSON string + * + * @param jsonString JSON string + * @return An instance of InvalidField + * @throws JsonProcessingException if the JSON string is invalid with respect to InvalidField + */ + public static InvalidField fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, InvalidField.class); + } + + /** + * Convert an instance of InvalidField to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java new file mode 100644 index 000000000..c062dfc60 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PayToPaymentMethod.java @@ -0,0 +1,140 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** PayToPaymentMethod */ +@JsonPropertyOrder({PayToPaymentMethod.JSON_PROPERTY_SHOPPER_REFERENCE}) +@JsonIgnoreProperties( + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) +public class PayToPaymentMethod extends ShopperIdPaymentMethod { + public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; + private String shopperReference; + + public PayToPaymentMethod() {} + + /** + * shopperReference + * + * @param shopperReference + * @return the current {@code PayToPaymentMethod} instance, allowing for method chaining + */ + public PayToPaymentMethod shopperReference(String shopperReference) { + this.shopperReference = shopperReference; + return this; + } + + /** + * Get shopperReference + * + * @return shopperReference + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getShopperReference() { + return shopperReference; + } + + /** + * shopperReference + * + * @param shopperReference + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShopperReference(String shopperReference) { + this.shopperReference = shopperReference; + } + + /** Return true if this PayToPaymentMethod object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PayToPaymentMethod payToPaymentMethod = (PayToPaymentMethod) o; + return Objects.equals(this.shopperReference, payToPaymentMethod.shopperReference) + && super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(shopperReference, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PayToPaymentMethod {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).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 "); + } + + static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap<>(); + mappings.put("PayToPaymentMethod", PayToPaymentMethod.class); + JSON.registerDiscriminator(PayToPaymentMethod.class, "type", mappings); + } + + /** + * Create an instance of PayToPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of PayToPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * PayToPaymentMethod + */ + public static PayToPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PayToPaymentMethod.class); + } + + /** + * Convert an instance of PayToPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java index 8e1457b20..74d2ea74d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentAmountUpdateResponse.java @@ -316,11 +316,11 @@ public void setMerchantAccount(String merchantAccount) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. * @return the current {@code PaymentAmountUpdateResponse} instance, allowing for method chaining */ @@ -331,11 +331,11 @@ public PaymentAmountUpdateResponse paymentPspReference(String paymentPspReferenc /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. * * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @@ -346,11 +346,11 @@ public String getPaymentPspReference() { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to update. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java index db4eb8911..87cf7cf9b 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCancelResponse.java @@ -121,11 +121,11 @@ public void setMerchantAccount(String merchantAccount) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. * @return the current {@code PaymentCancelResponse} instance, allowing for method chaining */ @@ -136,11 +136,11 @@ public PaymentCancelResponse paymentPspReference(String paymentPspReference) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. * * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @@ -151,11 +151,11 @@ public String getPaymentPspReference() { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to cancel. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java index efdf5d2f5..c3c9b78e0 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCaptureResponse.java @@ -235,11 +235,11 @@ public void setMerchantAccount(String merchantAccount) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. * @return the current {@code PaymentCaptureResponse} instance, allowing for method chaining */ @@ -250,11 +250,11 @@ public PaymentCaptureResponse paymentPspReference(String paymentPspReference) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. * * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @@ -265,11 +265,11 @@ public String getPaymentPspReference() { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to capture. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java index 70146ea6e..1c67bcc18 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java @@ -2094,17 +2094,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. - * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentLinkRequest} instance, allowing for method chaining */ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { @@ -2113,17 +2113,17 @@ public PaymentLinkRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2132,17 +2132,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java index 235ef439f..c0e50637f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java @@ -2239,17 +2239,17 @@ public void setStorePaymentMethodMode(StorePaymentMethodModeEnum storePaymentMet } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. - * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentLinkResponse} instance, allowing for method chaining */ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { @@ -2258,17 +2258,17 @@ public PaymentLinkResponse telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2277,17 +2277,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java index 1a918ce9f..ca82b573a 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodsRequest.java @@ -665,7 +665,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -674,8 +674,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -689,7 +689,7 @@ public PaymentMethodsRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -698,8 +698,8 @@ public PaymentMethodsRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -713,7 +713,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -722,8 +722,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -988,17 +988,17 @@ public void setStoreFiltrationMode(StoreFiltrationModeEnum storeFiltrationMode) } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentMethodsRequest} instance, allowing for method chaining */ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { @@ -1007,17 +1007,17 @@ public PaymentMethodsRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1026,17 +1026,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java index 4ed9074a8..323509c72 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundRequest.java @@ -187,11 +187,11 @@ public void setApplicationInfo(ApplicationInfo applicationInfo) { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * @return the current {@code PaymentRefundRequest} instance, allowing for method chaining */ @@ -202,11 +202,11 @@ public PaymentRefundRequest capturePspReference(String capturePspReference) { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @return capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @@ -217,11 +217,11 @@ public String getCapturePspReference() { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java index 4094f0c42..e67a3d927 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRefundResponse.java @@ -194,11 +194,11 @@ public void setAmount(Amount amount) { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ @@ -209,11 +209,11 @@ public PaymentRefundResponse capturePspReference(String capturePspReference) { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @return capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @@ -224,11 +224,11 @@ public String getCapturePspReference() { /** * This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. * * @param capturePspReference This is only available for PayPal refunds. The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the specific capture to refund. */ @JsonProperty(JSON_PROPERTY_CAPTURE_PSP_REFERENCE) @@ -364,11 +364,11 @@ public void setMerchantRefundReason(MerchantRefundReasonEnum merchantRefundReaso /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. * @return the current {@code PaymentRefundResponse} instance, allowing for method chaining */ @@ -379,11 +379,11 @@ public PaymentRefundResponse paymentPspReference(String paymentPspReference) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. * * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @@ -394,11 +394,11 @@ public String getPaymentPspReference() { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to refund. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 274b8e1cb..a70bb9954 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -2666,8 +2666,9 @@ public void setReference(String reference) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2681,9 +2682,9 @@ public void setReference(String reference) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2703,8 +2704,9 @@ public PaymentRequest returnUrl(String returnUrl) { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2718,9 +2720,9 @@ public PaymentRequest returnUrl(String returnUrl) { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2740,8 +2742,9 @@ public String getReturnUrl() { * The URL to return to in case of a redirection. The format depends on the channel. * For web, * include the protocol `http://` or `https://`. You can also include your own * additional query parameters, for example, shopper ID or order reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the custom - * URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the + * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple + * Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on your * app. You can configure it with an [intent @@ -2755,9 +2758,9 @@ public String getReturnUrl() { * channel. * For web, include the protocol `http://` or `https://`. You * can also include your own additional query parameters, for example, shopper ID or order * reference number. Example: - * `https://your-company.com/checkout?shopperOrder=12xy` * For iOS, use the - * custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple - * Developer + * `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use + * the custom URL for your app. To know more about setting custom URL schemes, refer to the + * [Apple Developer * documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). * Example: `my-app://` * For Android, use a custom URL handled by an Activity on * your app. You can configure it with an [intent @@ -2937,7 +2940,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2946,8 +2949,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2961,7 +2964,7 @@ public PaymentRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2970,8 +2973,8 @@ public PaymentRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2985,7 +2988,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2994,8 +2997,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -3567,17 +3570,17 @@ public void setSurcharge(Surcharge surcharge) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -3586,17 +3589,17 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -3605,17 +3608,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java index c7059568a..7fd0b3f2f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentReversalResponse.java @@ -121,11 +121,11 @@ public void setMerchantAccount(String merchantAccount) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. * @return the current {@code PaymentReversalResponse} instance, allowing for method chaining */ @@ -136,11 +136,11 @@ public PaymentReversalResponse paymentPspReference(String paymentPspReference) { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. * * @return paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) @@ -151,11 +151,11 @@ public String getPaymentPspReference() { /** * The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. * * @param paymentPspReference The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment to reverse. */ @JsonProperty(JSON_PROPERTY_PAYMENT_PSP_REFERENCE) diff --git a/src/main/java/com/adyen/model/checkout/Phone.java b/src/main/java/com/adyen/model/checkout/Phone.java index 89928670a..2315e4ae3 100644 --- a/src/main/java/com/adyen/model/checkout/Phone.java +++ b/src/main/java/com/adyen/model/checkout/Phone.java @@ -29,9 +29,9 @@ public class Phone { public Phone() {} /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @param cc Country code. Length: 1–3 characters. + * @param cc Country code. Length: 1–3 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone cc(String cc) { @@ -40,9 +40,9 @@ public Phone cc(String cc) { } /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @return cc Country code. Length: 1–3 characters. + * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -51,9 +51,9 @@ public String getCc() { } /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @param cc Country code. Length: 1–3 characters. + * @param cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,9 +62,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Maximum length: 15 characters. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -73,9 +73,9 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @return subscriber Subscriber number. Maximum length: 15 characters. + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +84,9 @@ public String getSubscriber() { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Maximum length: 15 characters. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/checkout/Result.java b/src/main/java/com/adyen/model/checkout/Result.java new file mode 100644 index 000000000..c8c43fea4 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/Result.java @@ -0,0 +1,51 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; +import java.util.*; + +/** Gets or Sets Result */ +public enum Result { + VALID("VALID"), + + INVALID("INVALID"), + + UNKNOWN("UNKNOWN"); + + private String value; + + Result(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static Result fromValue(String value) { + for (Result b : Result.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } +} diff --git a/src/main/java/com/adyen/model/checkout/RivertyDetails.java b/src/main/java/com/adyen/model/checkout/RivertyDetails.java index 07eb5c697..cc762c86d 100644 --- a/src/main/java/com/adyen/model/checkout/RivertyDetails.java +++ b/src/main/java/com/adyen/model/checkout/RivertyDetails.java @@ -69,6 +69,8 @@ public enum TypeEnum { RIVERTY_ACCOUNT(String.valueOf("riverty_account")), + RIVERTY_INSTALLMENTS(String.valueOf("riverty_installments")), + SEPADIRECTDEBIT_RIVERTY(String.valueOf("sepadirectdebit_riverty")); private static final Logger LOG = Logger.getLogger(TypeEnum.class.getName()); diff --git a/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java new file mode 100644 index 000000000..65788ae8e --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ShopperIdPaymentMethod.java @@ -0,0 +1,145 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonSubTypes; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** ShopperIdPaymentMethod */ +@JsonPropertyOrder({ShopperIdPaymentMethod.JSON_PROPERTY_TYPE}) +@JsonIgnoreProperties( + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) +@JsonSubTypes({ + @JsonSubTypes.Type(value = PayToPaymentMethod.class, name = "payTo"), + @JsonSubTypes.Type(value = UPIPaymentMethod.class, name = "upi_collect"), +}) +public class ShopperIdPaymentMethod { + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public ShopperIdPaymentMethod() {} + + /** + * type + * + * @param type + * @return the current {@code ShopperIdPaymentMethod} instance, allowing for method chaining + */ + public ShopperIdPaymentMethod type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * + * @return type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getType() { + return type; + } + + /** + * type + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + /** Return true if this ShopperIdPaymentMethod object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ShopperIdPaymentMethod shopperIdPaymentMethod = (ShopperIdPaymentMethod) o; + return Objects.equals(this.type, shopperIdPaymentMethod.type); + } + + @Override + public int hashCode() { + return Objects.hash(type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ShopperIdPaymentMethod {\n"); + sb.append(" type: ").append(toIndentedString(type)).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 "); + } + + static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap<>(); + mappings.put("payTo", PayToPaymentMethod.class); + mappings.put("upi_collect", UPIPaymentMethod.class); + mappings.put("ShopperIdPaymentMethod", ShopperIdPaymentMethod.class); + JSON.registerDiscriminator(ShopperIdPaymentMethod.class, "type", mappings); + } + + /** + * Create an instance of ShopperIdPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of ShopperIdPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ShopperIdPaymentMethod + */ + public static ShopperIdPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ShopperIdPaymentMethod.class); + } + + /** + * Convert an instance of ShopperIdPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java new file mode 100644 index 000000000..fbb9998c4 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/UPIPaymentMethod.java @@ -0,0 +1,141 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.annotation.JsonTypeInfo; +import com.fasterxml.jackson.core.JsonProcessingException; +import java.util.*; + +/** UPIPaymentMethod */ +@JsonPropertyOrder({UPIPaymentMethod.JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS}) +@JsonIgnoreProperties( + value = + "type", // ignore manually set type, it will be automatically generated by Jackson during + // serialization + allowSetters = true // allows the type to be set during deserialization + ) +@JsonTypeInfo( + use = JsonTypeInfo.Id.NAME, + include = JsonTypeInfo.As.PROPERTY, + property = "type", + visible = true) +public class UPIPaymentMethod extends ShopperIdPaymentMethod { + public static final String JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS = "virtualPaymentAddress"; + private String virtualPaymentAddress; + + public UPIPaymentMethod() {} + + /** + * virtualPaymentAddress + * + * @param virtualPaymentAddress + * @return the current {@code UPIPaymentMethod} instance, allowing for method chaining + */ + public UPIPaymentMethod virtualPaymentAddress(String virtualPaymentAddress) { + this.virtualPaymentAddress = virtualPaymentAddress; + return this; + } + + /** + * Get virtualPaymentAddress + * + * @return virtualPaymentAddress + */ + @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getVirtualPaymentAddress() { + return virtualPaymentAddress; + } + + /** + * virtualPaymentAddress + * + * @param virtualPaymentAddress + */ + @JsonProperty(JSON_PROPERTY_VIRTUAL_PAYMENT_ADDRESS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setVirtualPaymentAddress(String virtualPaymentAddress) { + this.virtualPaymentAddress = virtualPaymentAddress; + } + + /** Return true if this UPIPaymentMethod object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UPIPaymentMethod upIPaymentMethod = (UPIPaymentMethod) o; + return Objects.equals(this.virtualPaymentAddress, upIPaymentMethod.virtualPaymentAddress) + && super.equals(o); + } + + @Override + public int hashCode() { + return Objects.hash(virtualPaymentAddress, super.hashCode()); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UPIPaymentMethod {\n"); + sb.append(" ").append(toIndentedString(super.toString())).append("\n"); + sb.append(" virtualPaymentAddress: ") + .append(toIndentedString(virtualPaymentAddress)) + .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 "); + } + + static { + // Initialize and register the discriminator mappings. + Map> mappings = new HashMap<>(); + mappings.put("UPIPaymentMethod", UPIPaymentMethod.class); + JSON.registerDiscriminator(UPIPaymentMethod.class, "type", mappings); + } + + /** + * Create an instance of UPIPaymentMethod given an JSON string + * + * @param jsonString JSON string + * @return An instance of UPIPaymentMethod + * @throws JsonProcessingException if the JSON string is invalid with respect to UPIPaymentMethod + */ + public static UPIPaymentMethod fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, UPIPaymentMethod.class); + } + + /** + * Convert an instance of UPIPaymentMethod to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java new file mode 100644 index 000000000..61bd95a9c --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdRequest.java @@ -0,0 +1,280 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +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.*; + +/** ValidateShopperIdRequest */ +@JsonPropertyOrder({ + ValidateShopperIdRequest.JSON_PROPERTY_MERCHANT_ACCOUNT, + ValidateShopperIdRequest.JSON_PROPERTY_PAYMENT_METHOD, + ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_EMAIL, + ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_I_P, + ValidateShopperIdRequest.JSON_PROPERTY_SHOPPER_REFERENCE +}) +public class ValidateShopperIdRequest { + public static final String JSON_PROPERTY_MERCHANT_ACCOUNT = "merchantAccount"; + private String merchantAccount; + + public static final String JSON_PROPERTY_PAYMENT_METHOD = "paymentMethod"; + private ShopperIdPaymentMethod paymentMethod; + + public static final String JSON_PROPERTY_SHOPPER_EMAIL = "shopperEmail"; + private String shopperEmail; + + public static final String JSON_PROPERTY_SHOPPER_I_P = "shopperIP"; + private String shopperIP; + + public static final String JSON_PROPERTY_SHOPPER_REFERENCE = "shopperReference"; + private String shopperReference; + + public ValidateShopperIdRequest() {} + + /** + * The merchant account identifier, with which you want to process the transaction. + * + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining + */ + public ValidateShopperIdRequest merchantAccount(String merchantAccount) { + this.merchantAccount = merchantAccount; + return this; + } + + /** + * The merchant account identifier, with which you want to process the transaction. + * + * @return merchantAccount The merchant account identifier, with which you want to process the + * transaction. + */ + @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getMerchantAccount() { + return merchantAccount; + } + + /** + * The merchant account identifier, with which you want to process the transaction. + * + * @param merchantAccount The merchant account identifier, with which you want to process the + * transaction. + */ + @JsonProperty(JSON_PROPERTY_MERCHANT_ACCOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMerchantAccount(String merchantAccount) { + this.merchantAccount = merchantAccount; + } + + /** + * paymentMethod + * + * @param paymentMethod + * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining + */ + public ValidateShopperIdRequest paymentMethod(ShopperIdPaymentMethod paymentMethod) { + this.paymentMethod = paymentMethod; + return this; + } + + /** + * Get paymentMethod + * + * @return paymentMethod + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public ShopperIdPaymentMethod getPaymentMethod() { + return paymentMethod; + } + + /** + * paymentMethod + * + * @param paymentMethod + */ + @JsonProperty(JSON_PROPERTY_PAYMENT_METHOD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPaymentMethod(ShopperIdPaymentMethod paymentMethod) { + this.paymentMethod = paymentMethod; + } + + /** + * shopperEmail + * + * @param shopperEmail + * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining + */ + public ValidateShopperIdRequest shopperEmail(String shopperEmail) { + this.shopperEmail = shopperEmail; + return this; + } + + /** + * Get shopperEmail + * + * @return shopperEmail + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getShopperEmail() { + return shopperEmail; + } + + /** + * shopperEmail + * + * @param shopperEmail + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShopperEmail(String shopperEmail) { + this.shopperEmail = shopperEmail; + } + + /** + * shopperIP + * + * @param shopperIP + * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining + */ + public ValidateShopperIdRequest shopperIP(String shopperIP) { + this.shopperIP = shopperIP; + return this; + } + + /** + * Get shopperIP + * + * @return shopperIP + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getShopperIP() { + return shopperIP; + } + + /** + * shopperIP + * + * @param shopperIP + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_I_P) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShopperIP(String shopperIP) { + this.shopperIP = shopperIP; + } + + /** + * shopperReference + * + * @param shopperReference + * @return the current {@code ValidateShopperIdRequest} instance, allowing for method chaining + */ + public ValidateShopperIdRequest shopperReference(String shopperReference) { + this.shopperReference = shopperReference; + return this; + } + + /** + * Get shopperReference + * + * @return shopperReference + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getShopperReference() { + return shopperReference; + } + + /** + * shopperReference + * + * @param shopperReference + */ + @JsonProperty(JSON_PROPERTY_SHOPPER_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setShopperReference(String shopperReference) { + this.shopperReference = shopperReference; + } + + /** Return true if this ValidateShopperIdRequest object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValidateShopperIdRequest validateShopperIdRequest = (ValidateShopperIdRequest) o; + return Objects.equals(this.merchantAccount, validateShopperIdRequest.merchantAccount) + && Objects.equals(this.paymentMethod, validateShopperIdRequest.paymentMethod) + && Objects.equals(this.shopperEmail, validateShopperIdRequest.shopperEmail) + && Objects.equals(this.shopperIP, validateShopperIdRequest.shopperIP) + && Objects.equals(this.shopperReference, validateShopperIdRequest.shopperReference); + } + + @Override + public int hashCode() { + return Objects.hash(merchantAccount, paymentMethod, shopperEmail, shopperIP, shopperReference); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidateShopperIdRequest {\n"); + sb.append(" merchantAccount: ").append(toIndentedString(merchantAccount)).append("\n"); + sb.append(" paymentMethod: ").append(toIndentedString(paymentMethod)).append("\n"); + sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); + sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); + sb.append(" shopperReference: ").append(toIndentedString(shopperReference)).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 ValidateShopperIdRequest given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValidateShopperIdRequest + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ValidateShopperIdRequest + */ + public static ValidateShopperIdRequest fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ValidateShopperIdRequest.class); + } + + /** + * Convert an instance of ValidateShopperIdRequest to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java new file mode 100644 index 000000000..bffc1fa4f --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/ValidateShopperIdResponse.java @@ -0,0 +1,160 @@ +/* + * Adyen Checkout API + * + * The version of the OpenAPI document: 71 + * + * + * 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.checkout; + +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.*; + +/** ValidateShopperIdResponse */ +@JsonPropertyOrder({ + ValidateShopperIdResponse.JSON_PROPERTY_REASON, + ValidateShopperIdResponse.JSON_PROPERTY_RESULT +}) +public class ValidateShopperIdResponse { + public static final String JSON_PROPERTY_REASON = "reason"; + private String reason; + + public static final String JSON_PROPERTY_RESULT = "result"; + private Result result; + + public ValidateShopperIdResponse() {} + + /** + * reason + * + * @param reason + * @return the current {@code ValidateShopperIdResponse} instance, allowing for method chaining + */ + public ValidateShopperIdResponse reason(String reason) { + this.reason = reason; + return this; + } + + /** + * Get reason + * + * @return reason + */ + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public String getReason() { + return reason; + } + + /** + * reason + * + * @param reason + */ + @JsonProperty(JSON_PROPERTY_REASON) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReason(String reason) { + this.reason = reason; + } + + /** + * result + * + * @param result + * @return the current {@code ValidateShopperIdResponse} instance, allowing for method chaining + */ + public ValidateShopperIdResponse result(Result result) { + this.result = result; + return this; + } + + /** + * Get result + * + * @return result + */ + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public Result getResult() { + return result; + } + + /** + * result + * + * @param result + */ + @JsonProperty(JSON_PROPERTY_RESULT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResult(Result result) { + this.result = result; + } + + /** Return true if this ValidateShopperIdResponse object is equal to o. */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ValidateShopperIdResponse validateShopperIdResponse = (ValidateShopperIdResponse) o; + return Objects.equals(this.reason, validateShopperIdResponse.reason) + && Objects.equals(this.result, validateShopperIdResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(reason, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ValidateShopperIdResponse {\n"); + sb.append(" reason: ").append(toIndentedString(reason)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).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 ValidateShopperIdResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ValidateShopperIdResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to + * ValidateShopperIdResponse + */ + public static ValidateShopperIdResponse fromJson(String jsonString) + throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ValidateShopperIdResponse.class); + } + + /** + * Convert an instance of ValidateShopperIdResponse to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} diff --git a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java index 5e8f646a3..7a23d99ef 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/DeliveryAddress.java @@ -280,11 +280,12 @@ public void setPostalCode(String postalCode) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. * @return the current {@code DeliveryAddress} instance, allowing for method chaining */ public DeliveryAddress stateOrProvince(String stateOrProvince) { @@ -293,11 +294,12 @@ public DeliveryAddress stateOrProvince(String stateOrProvince) { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @return stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** - * in the US or **ON** in Canada. > Required for the US and Canada. + * @return stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -306,11 +308,12 @@ public String getStateOrProvince() { } /** - * The two-letter ISO 3166-2 state or province code. For example, **CA** in the US or **ON** in - * Canada. > Required for the US and Canada. + * The state or province code, maximum 3 characters. For example, **CA** for California in the US + * or **ON** for Ontario in Canada. > Required for the US and Canada. * - * @param stateOrProvince The two-letter ISO 3166-2 state or province code. For example, **CA** in - * the US or **ON** in Canada. > Required for the US and Canada. + * @param stateOrProvince The state or province code, maximum 3 characters. For example, **CA** + * for California in the US or **ON** for Ontario in Canada. > Required for the US and + * Canada. */ @JsonProperty(JSON_PROPERTY_STATE_OR_PROVINCE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java index 4b10384f8..28097d897 100644 --- a/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java +++ b/src/main/java/com/adyen/model/configurationwebhooks/Wallet.java @@ -326,10 +326,11 @@ public void setDeviceScore(String deviceScore) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. * * @param provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**. + * **push**, **manual**, **cof**, **unknown**. * @return the current {@code Wallet} instance, allowing for method chaining */ public Wallet provisioningMethod(String provisioningMethod) { @@ -338,10 +339,11 @@ public Wallet provisioningMethod(String provisioningMethod) { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. * * @return provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**. + * **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,10 +352,11 @@ public String getProvisioningMethod() { } /** - * The method used for provisioning the network token. Possible values: **push**, **manual**. + * The method used for provisioning the network token. Possible values: **push**, **manual**, + * **cof**, **unknown**. * * @param provisioningMethod The method used for provisioning the network token. Possible values: - * **push**, **manual**. + * **push**, **manual**, **cof**, **unknown**. */ @JsonProperty(JSON_PROPERTY_PROVISIONING_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest.java b/src/main/java/com/adyen/model/payment/PaymentRequest.java index b934dda4e..455a4acbd 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest.java @@ -2085,7 +2085,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2094,8 +2094,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2109,7 +2109,7 @@ public PaymentRequest shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2118,8 +2118,8 @@ public PaymentRequest shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2133,7 +2133,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -2142,8 +2142,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2587,17 +2587,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest} instance, allowing for method chaining */ public PaymentRequest telephoneNumber(String telephoneNumber) { @@ -2606,17 +2606,17 @@ public PaymentRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2625,17 +2625,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java index bbf9cb008..c2f1e9601 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3d.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3d.java @@ -1662,7 +1662,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1671,8 +1671,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1686,7 +1686,7 @@ public PaymentRequest3d shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1695,8 +1695,8 @@ public PaymentRequest3d shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1710,7 +1710,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1719,8 +1719,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2164,17 +2164,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest3d} instance, allowing for method chaining */ public PaymentRequest3d telephoneNumber(String telephoneNumber) { @@ -2183,17 +2183,17 @@ public PaymentRequest3d telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2202,17 +2202,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java index 6268c3bae..f4bdf2bca 100644 --- a/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java +++ b/src/main/java/com/adyen/model/payment/PaymentRequest3ds2.java @@ -1591,7 +1591,7 @@ public void setShopperEmail(String shopperEmail) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1600,8 +1600,8 @@ public void setShopperEmail(String shopperEmail) { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1615,7 +1615,7 @@ public PaymentRequest3ds2 shopperIP(String shopperIP) { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1624,8 +1624,8 @@ public PaymentRequest3ds2 shopperIP(String shopperIP) { * * @return shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -1639,7 +1639,7 @@ public String getShopperIP() { /** * The shopper's IP address. We recommend that you provide this data, as it is used in a - * number of risk checks (for instance, number of payment attempts or location-based checks).> + * number of risk checks (for instance, number of payment attempts or location-based checks). > * Required for Visa and JCB transactions that require 3D Secure 2 authentication for all web and * mobile integrations, if you did not include the `shopperEmail`. For native mobile * integrations, the field is required to support cases where authentication is routed to the @@ -1648,8 +1648,8 @@ public String getShopperIP() { * * @param shopperIP The shopper's IP address. We recommend that you provide this data, as it * is used in a number of risk checks (for instance, number of payment attempts or - * location-based checks).> Required for Visa and JCB transactions that require 3D Secure 2 - * authentication for all web and mobile integrations, if you did not include the + * location-based checks). > Required for Visa and JCB transactions that require 3D Secure + * 2 authentication for all web and mobile integrations, if you did not include the * `shopperEmail`. For native mobile integrations, the field is required to support * cases where authentication is routed to the redirect flow. This field is also mandatory for * some merchants depending on your business model. For more information, [contact @@ -2093,17 +2093,17 @@ public void setStore(String store) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PaymentRequest3ds2} instance, allowing for method chaining */ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { @@ -2112,17 +2112,17 @@ public PaymentRequest3ds2 telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2131,17 +2131,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payment/Phone.java b/src/main/java/com/adyen/model/payment/Phone.java index 0d5932d51..ebe7327ed 100644 --- a/src/main/java/com/adyen/model/payment/Phone.java +++ b/src/main/java/com/adyen/model/payment/Phone.java @@ -29,9 +29,9 @@ public class Phone { public Phone() {} /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @param cc Country code. Length: 1–3 characters. + * @param cc Country code. Length: 1–3 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone cc(String cc) { @@ -40,9 +40,9 @@ public Phone cc(String cc) { } /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @return cc Country code. Length: 1–3 characters. + * @return cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -51,9 +51,9 @@ public String getCc() { } /** - * Country code. Length: 1–3 characters. + * Country code. Length: 1–3 digits. * - * @param cc Country code. Length: 1–3 characters. + * @param cc Country code. Length: 1–3 digits. */ @JsonProperty(JSON_PROPERTY_CC) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -62,9 +62,9 @@ public void setCc(String cc) { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Maximum length: 15 characters. + * @param subscriber Subscriber number. Length: 4-15 digits. * @return the current {@code Phone} instance, allowing for method chaining */ public Phone subscriber(String subscriber) { @@ -73,9 +73,9 @@ public Phone subscriber(String subscriber) { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @return subscriber Subscriber number. Maximum length: 15 characters. + * @return subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -84,9 +84,9 @@ public String getSubscriber() { } /** - * Subscriber number. Maximum length: 15 characters. + * Subscriber number. Length: 4-15 digits. * - * @param subscriber Subscriber number. Maximum length: 15 characters. + * @param subscriber Subscriber number. Length: 4-15 digits. */ @JsonProperty(JSON_PROPERTY_SUBSCRIBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/model/payout/PayoutRequest.java b/src/main/java/com/adyen/model/payout/PayoutRequest.java index b266a8c61..87741f8be 100644 --- a/src/main/java/com/adyen/model/payout/PayoutRequest.java +++ b/src/main/java/com/adyen/model/payout/PayoutRequest.java @@ -700,17 +700,17 @@ public void setShopperReference(String shopperReference) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. - * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. + * + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. * @return the current {@code PayoutRequest} instance, allowing for method chaining */ public PayoutRequest telephoneNumber(String telephoneNumber) { @@ -719,17 +719,17 @@ public PayoutRequest telephoneNumber(String telephoneNumber) { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @return telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @return telephoneNumber The shopper's telephone number. The phone number must include a + * plus sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -738,17 +738,17 @@ public String getTelephoneNumber() { } /** - * The shopper's telephone number. > Required for Visa and JCB transactions that require 3D - * Secure 2 authentication, if you did not include the `shopperEmail`. The phone number - * must include a plus sign (+) and a country code (1-3 digits), followed by the number (4-15 - * digits). If the value you provide does not follow the guidelines, we drop the value and do not - * submit it for authentication. + * The shopper's telephone number. The phone number must include a plus sign (+) and a country + * code (1-3 digits), followed by the number (4-15 digits). If the value you provide does not + * follow the guidelines, we do not submit it for authentication. > Required for Visa and JCB + * transactions that require 3D Secure 2 authentication, if you did not include the + * `shopperEmail`. * - * @param telephoneNumber The shopper's telephone number. > Required for Visa and JCB - * transactions that require 3D Secure 2 authentication, if you did not include the - * `shopperEmail`. The phone number must include a plus sign (+) and a country code - * (1-3 digits), followed by the number (4-15 digits). If the value you provide does not - * follow the guidelines, we drop the value and do not submit it for authentication. + * @param telephoneNumber The shopper's telephone number. The phone number must include a plus + * sign (+) and a country code (1-3 digits), followed by the number (4-15 digits). If the + * value you provide does not follow the guidelines, we do not submit it for authentication. + * > Required for Visa and JCB transactions that require 3D Secure 2 authentication, if you + * did not include the `shopperEmail`. */ @JsonProperty(JSON_PROPERTY_TELEPHONE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) diff --git a/src/main/java/com/adyen/service/checkout/ModificationsApi.java b/src/main/java/com/adyen/service/checkout/ModificationsApi.java index 124e0cdf5..d03d414a4 100644 --- a/src/main/java/com/adyen/service/checkout/ModificationsApi.java +++ b/src/main/java/com/adyen/service/checkout/ModificationsApi.java @@ -98,7 +98,7 @@ public StandalonePaymentCancelResponse cancelAuthorisedPayment( * Cancel an authorised payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to cancel. (required) * @param paymentCancelRequest {@link PaymentCancelRequest } (required) * @return {@link PaymentCancelResponse } @@ -114,7 +114,7 @@ public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( * Cancel an authorised payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to cancel. (required) * @param paymentCancelRequest {@link PaymentCancelRequest } (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as @@ -146,7 +146,7 @@ public PaymentCancelResponse cancelAuthorisedPaymentByPspReference( * Capture an authorised payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to capture. (required) * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) * @return {@link PaymentCaptureResponse } @@ -162,7 +162,7 @@ public PaymentCaptureResponse captureAuthorisedPayment( * Capture an authorised payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to capture. (required) * @param paymentCaptureRequest {@link PaymentCaptureRequest } (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as @@ -194,7 +194,7 @@ public PaymentCaptureResponse captureAuthorisedPayment( * Refund a captured payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to refund. (required) * @param paymentRefundRequest {@link PaymentRefundRequest } (required) * @return {@link PaymentRefundResponse } @@ -210,7 +210,7 @@ public PaymentRefundResponse refundCapturedPayment( * Refund a captured payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to refund. (required) * @param paymentRefundRequest {@link PaymentRefundRequest } (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as @@ -242,7 +242,7 @@ public PaymentRefundResponse refundCapturedPayment( * Refund or cancel a payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to reverse. (required) * @param paymentReversalRequest {@link PaymentReversalRequest } (required) * @return {@link PaymentReversalResponse } @@ -258,7 +258,7 @@ public PaymentReversalResponse refundOrCancelPayment( * Refund or cancel a payment * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment that you want to reverse. (required) * @param paymentReversalRequest {@link PaymentReversalRequest } (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as @@ -290,7 +290,7 @@ public PaymentReversalResponse refundOrCancelPayment( * Update an authorised amount * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment. (required) * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) * @return {@link PaymentAmountUpdateResponse } @@ -306,7 +306,7 @@ public PaymentAmountUpdateResponse updateAuthorisedAmount( * Update an authorised amount * * @param paymentPspReference {@link String } The - * [`pspReference`](https://docs.adyen.com/api-explorer/#/CheckoutService/latest/post/payments__resParam_pspReference) + * [`pspReference`](https://docs.adyen.com/api-explorer/Checkout/latest/post/payments#responses-200-pspReference) * of the payment. (required) * @param paymentAmountUpdateRequest {@link PaymentAmountUpdateRequest } (required) * @param requestOptions {@link RequestOptions } Object to store additional data such as diff --git a/src/main/java/com/adyen/service/checkout/UtilityApi.java b/src/main/java/com/adyen/service/checkout/UtilityApi.java index 85c472d30..de0624206 100644 --- a/src/main/java/com/adyen/service/checkout/UtilityApi.java +++ b/src/main/java/com/adyen/service/checkout/UtilityApi.java @@ -21,6 +21,8 @@ import com.adyen.model.checkout.PaypalUpdateOrderResponse; import com.adyen.model.checkout.UtilityRequest; import com.adyen.model.checkout.UtilityResponse; +import com.adyen.model.checkout.ValidateShopperIdRequest; +import com.adyen.model.checkout.ValidateShopperIdResponse; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource; import java.io.IOException; @@ -149,4 +151,36 @@ public PaypalUpdateOrderResponse updatesOrderForPaypalExpressCheckout( resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); return PaypalUpdateOrderResponse.fromJson(jsonResult); } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId( + ValidateShopperIdRequest validateShopperIdRequest) throws ApiException, IOException { + return validateShopperId(validateShopperIdRequest, null); + } + + /** + * Validates shopper Id + * + * @param validateShopperIdRequest {@link ValidateShopperIdRequest } (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as + * idempotency-keys (optional) + * @return {@link ValidateShopperIdResponse } + * @throws ApiException if fails to make API call + */ + public ValidateShopperIdResponse validateShopperId( + ValidateShopperIdRequest validateShopperIdRequest, RequestOptions requestOptions) + throws ApiException, IOException { + String requestBody = validateShopperIdRequest.toJson(); + Resource resource = new Resource(this, this.baseURL + "/validateShopperId", null); + String jsonResult = + resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.POST, null); + return ValidateShopperIdResponse.fromJson(jsonResult); + } }