From 2191977ab94de9b9ece45ac83dae273d59ee5945 Mon Sep 17 00:00:00 2001 From: Adyen Automation Date: Wed, 4 Sep 2024 10:51:31 +0000 Subject: [PATCH] false[adyen-sdk-automation] automated change --- .../IdentificationData.java | 8 +- .../VerificationError.java | 8 +- .../VerificationErrorRecursive.java | 8 +- .../com/adyen/model/management/AccelInfo.java | 207 ++++++++++++++ .../adyen/model/management/Connectivity.java | 43 ++- .../com/adyen/model/management/NyceInfo.java | 207 ++++++++++++++ .../com/adyen/model/management/PayMeInfo.java | 205 ++++++++++++++ .../adyen/model/management/PaymentMethod.java | 226 ++++++++++++++- .../management/PaymentMethodResponse.java | 38 +++ .../management/PaymentMethodSetupInfo.java | 264 +++++++++++++++++- .../com/adyen/model/management/PulseInfo.java | 207 ++++++++++++++ .../adyen/model/management/SodexoInfo.java | 133 +++++++++ .../com/adyen/model/management/StarInfo.java | 207 ++++++++++++++ .../management/UpdatePaymentMethodInfo.java | 152 +++++++++- 14 files changed, 1892 insertions(+), 21 deletions(-) create mode 100644 src/main/java/com/adyen/model/management/AccelInfo.java create mode 100644 src/main/java/com/adyen/model/management/NyceInfo.java create mode 100644 src/main/java/com/adyen/model/management/PayMeInfo.java create mode 100644 src/main/java/com/adyen/model/management/PulseInfo.java create mode 100644 src/main/java/com/adyen/model/management/SodexoInfo.java create mode 100644 src/main/java/com/adyen/model/management/StarInfo.java diff --git a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java index 97986de75..0de4a7b08 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/IdentificationData.java @@ -61,7 +61,7 @@ public class IdentificationData { private String number; /** - * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** */ public enum TypeEnum { NATIONALIDNUMBER("nationalIdNumber"), @@ -295,10 +295,10 @@ public IdentificationData type(TypeEnum type) { } /** - * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** * @return type **/ - @ApiModelProperty(required = true, value = "Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber") + @ApiModelProperty(required = true, value = "Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber**") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -308,7 +308,7 @@ public TypeEnum getType() { /** - * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber + * Type of identity data. For individuals, the following types are supported: - Australia: **driversLicense**, **passport** - Hong Kong: **driversLicense**, **nationalIdNumber**, **passport** - New Zealand: **driversLicense**, **passport** - Singapore: **driversLicense**, **nationalIdNumber**, **passport** - All other supported countries: **nationalIdNumber** * * @param type */ diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java index c0c845d3a..40c510401 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationError.java @@ -191,7 +191,7 @@ public static CapabilitiesEnum fromValue(String value) { private List subErrors = null; /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ public enum TypeEnum { DATAMISSING("dataMissing"), @@ -417,10 +417,10 @@ public VerificationError type(TypeEnum type) { } /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * @return type **/ - @ApiModelProperty(value = "The type of error.") + @ApiModelProperty(value = "The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** ") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -430,7 +430,7 @@ public TypeEnum getType() { /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * * @param type */ diff --git a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java index c047df1b1..6a7684c45 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/VerificationErrorRecursive.java @@ -184,7 +184,7 @@ public static CapabilitiesEnum fromValue(String value) { private String message; /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** */ public enum TypeEnum { DATAMISSING("dataMissing"), @@ -337,10 +337,10 @@ public VerificationErrorRecursive type(TypeEnum type) { } /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * @return type **/ - @ApiModelProperty(value = "The type of error.") + @ApiModelProperty(value = "The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** ") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -350,7 +350,7 @@ public TypeEnum getType() { /** - * The type of error. + * The type of error. Possible values: * **invalidInput** * **dataMissing** * **pendingStatus** * **rejected** * **dataReview** * * @param type */ diff --git a/src/main/java/com/adyen/model/management/AccelInfo.java b/src/main/java/com/adyen/model/management/AccelInfo.java new file mode 100644 index 000000000..a0bf1bbec --- /dev/null +++ b/src/main/java/com/adyen/model/management/AccelInfo.java @@ -0,0 +1,207 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * AccelInfo + */ +@JsonPropertyOrder({ + AccelInfo.JSON_PROPERTY_PROCESSING_TYPE, + AccelInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION +}) + +public class AccelInfo { + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + */ + public enum ProcessingTypeEnum { + BILLPAY("billpay"), + + ECOM("ecom"), + + POS("pos"); + + private String value; + + ProcessingTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProcessingTypeEnum fromValue(String value) { + for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType"; + private ProcessingTypeEnum processingType; + + public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; + private TransactionDescriptionInfo transactionDescription; + + public AccelInfo() { + } + + public AccelInfo processingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + return this; + } + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType + **/ + @ApiModelProperty(required = true, value = "The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. ") + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProcessingTypeEnum getProcessingType() { + return processingType; + } + + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * + * @param processingType + */ + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProcessingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + } + + + public AccelInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + return this; + } + + /** + * Get transactionDescription + * @return transactionDescription + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TransactionDescriptionInfo getTransactionDescription() { + return transactionDescription; + } + + + /** + * transactionDescription + * + * @param transactionDescription + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + } + + + /** + * Return true if this AccelInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AccelInfo accelInfo = (AccelInfo) o; + return Objects.equals(this.processingType, accelInfo.processingType) && + Objects.equals(this.transactionDescription, accelInfo.transactionDescription); + } + + @Override + public int hashCode() { + return Objects.hash(processingType, transactionDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AccelInfo {\n"); + sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).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 AccelInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of AccelInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to AccelInfo + */ + public static AccelInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, AccelInfo.class); + } +/** + * Convert an instance of AccelInfo 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/management/Connectivity.java b/src/main/java/com/adyen/model/management/Connectivity.java index 2d79e66ea..e6782840f 100644 --- a/src/main/java/com/adyen/model/management/Connectivity.java +++ b/src/main/java/com/adyen/model/management/Connectivity.java @@ -16,6 +16,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.adyen.model.management.EventUrl; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -31,7 +32,8 @@ * Connectivity */ @JsonPropertyOrder({ - Connectivity.JSON_PROPERTY_SIMCARD_STATUS + Connectivity.JSON_PROPERTY_SIMCARD_STATUS, + Connectivity.JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L }) public class Connectivity { @@ -73,6 +75,9 @@ public static SimcardStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_SIMCARD_STATUS = "simcardStatus"; private SimcardStatusEnum simcardStatus; + public static final String JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L = "terminalIPAddressURL"; + private EventUrl terminalIPAddressURL; + public Connectivity() { } @@ -106,6 +111,36 @@ public void setSimcardStatus(SimcardStatusEnum simcardStatus) { } + public Connectivity terminalIPAddressURL(EventUrl terminalIPAddressURL) { + this.terminalIPAddressURL = terminalIPAddressURL; + return this; + } + + /** + * Get terminalIPAddressURL + * @return terminalIPAddressURL + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public EventUrl getTerminalIPAddressURL() { + return terminalIPAddressURL; + } + + + /** + * terminalIPAddressURL + * + * @param terminalIPAddressURL + */ + @JsonProperty(JSON_PROPERTY_TERMINAL_I_P_ADDRESS_U_R_L) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTerminalIPAddressURL(EventUrl terminalIPAddressURL) { + this.terminalIPAddressURL = terminalIPAddressURL; + } + + /** * Return true if this Connectivity object is equal to o. */ @@ -118,12 +153,13 @@ public boolean equals(Object o) { return false; } Connectivity connectivity = (Connectivity) o; - return Objects.equals(this.simcardStatus, connectivity.simcardStatus); + return Objects.equals(this.simcardStatus, connectivity.simcardStatus) && + Objects.equals(this.terminalIPAddressURL, connectivity.terminalIPAddressURL); } @Override public int hashCode() { - return Objects.hash(simcardStatus); + return Objects.hash(simcardStatus, terminalIPAddressURL); } @Override @@ -131,6 +167,7 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class Connectivity {\n"); sb.append(" simcardStatus: ").append(toIndentedString(simcardStatus)).append("\n"); + sb.append(" terminalIPAddressURL: ").append(toIndentedString(terminalIPAddressURL)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/management/NyceInfo.java b/src/main/java/com/adyen/model/management/NyceInfo.java new file mode 100644 index 000000000..e8cfa9889 --- /dev/null +++ b/src/main/java/com/adyen/model/management/NyceInfo.java @@ -0,0 +1,207 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * NyceInfo + */ +@JsonPropertyOrder({ + NyceInfo.JSON_PROPERTY_PROCESSING_TYPE, + NyceInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION +}) + +public class NyceInfo { + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + */ + public enum ProcessingTypeEnum { + BILLPAY("billpay"), + + ECOM("ecom"), + + POS("pos"); + + private String value; + + ProcessingTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProcessingTypeEnum fromValue(String value) { + for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType"; + private ProcessingTypeEnum processingType; + + public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; + private TransactionDescriptionInfo transactionDescription; + + public NyceInfo() { + } + + public NyceInfo processingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + return this; + } + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType + **/ + @ApiModelProperty(required = true, value = "The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. ") + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProcessingTypeEnum getProcessingType() { + return processingType; + } + + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * + * @param processingType + */ + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProcessingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + } + + + public NyceInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + return this; + } + + /** + * Get transactionDescription + * @return transactionDescription + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TransactionDescriptionInfo getTransactionDescription() { + return transactionDescription; + } + + + /** + * transactionDescription + * + * @param transactionDescription + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + } + + + /** + * Return true if this NyceInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NyceInfo nyceInfo = (NyceInfo) o; + return Objects.equals(this.processingType, nyceInfo.processingType) && + Objects.equals(this.transactionDescription, nyceInfo.transactionDescription); + } + + @Override + public int hashCode() { + return Objects.hash(processingType, transactionDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NyceInfo {\n"); + sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).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 NyceInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of NyceInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to NyceInfo + */ + public static NyceInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, NyceInfo.class); + } +/** + * Convert an instance of NyceInfo 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/management/PayMeInfo.java b/src/main/java/com/adyen/model/management/PayMeInfo.java new file mode 100644 index 000000000..0df895112 --- /dev/null +++ b/src/main/java/com/adyen/model/management/PayMeInfo.java @@ -0,0 +1,205 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * PayMeInfo + */ +@JsonPropertyOrder({ + PayMeInfo.JSON_PROPERTY_DISPLAY_NAME, + PayMeInfo.JSON_PROPERTY_LOGO, + PayMeInfo.JSON_PROPERTY_SUPPORT_EMAIL +}) + +public class PayMeInfo { + public static final String JSON_PROPERTY_DISPLAY_NAME = "displayName"; + private String displayName; + + public static final String JSON_PROPERTY_LOGO = "logo"; + private String logo; + + public static final String JSON_PROPERTY_SUPPORT_EMAIL = "supportEmail"; + private String supportEmail; + + public PayMeInfo() { + } + + public PayMeInfo displayName(String displayName) { + this.displayName = displayName; + return this; + } + + /** + * Merchant display name + * @return displayName + **/ + @ApiModelProperty(required = true, value = "Merchant display name") + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDisplayName() { + return displayName; + } + + + /** + * Merchant display name + * + * @param displayName + */ + @JsonProperty(JSON_PROPERTY_DISPLAY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDisplayName(String displayName) { + this.displayName = displayName; + } + + + public PayMeInfo logo(String logo) { + this.logo = logo; + return this; + } + + /** + * Merchant logo. Format: Base64-encoded string. + * @return logo + **/ + @ApiModelProperty(required = true, value = "Merchant logo. Format: Base64-encoded string.") + @JsonProperty(JSON_PROPERTY_LOGO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLogo() { + return logo; + } + + + /** + * Merchant logo. Format: Base64-encoded string. + * + * @param logo + */ + @JsonProperty(JSON_PROPERTY_LOGO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLogo(String logo) { + this.logo = logo; + } + + + public PayMeInfo supportEmail(String supportEmail) { + this.supportEmail = supportEmail; + return this; + } + + /** + * The email address of merchant support. + * @return supportEmail + **/ + @ApiModelProperty(required = true, value = "The email address of merchant support.") + @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSupportEmail() { + return supportEmail; + } + + + /** + * The email address of merchant support. + * + * @param supportEmail + */ + @JsonProperty(JSON_PROPERTY_SUPPORT_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSupportEmail(String supportEmail) { + this.supportEmail = supportEmail; + } + + + /** + * Return true if this PayMeInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PayMeInfo payMeInfo = (PayMeInfo) o; + return Objects.equals(this.displayName, payMeInfo.displayName) && + Objects.equals(this.logo, payMeInfo.logo) && + Objects.equals(this.supportEmail, payMeInfo.supportEmail); + } + + @Override + public int hashCode() { + return Objects.hash(displayName, logo, supportEmail); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PayMeInfo {\n"); + sb.append(" displayName: ").append(toIndentedString(displayName)).append("\n"); + sb.append(" logo: ").append(toIndentedString(logo)).append("\n"); + sb.append(" supportEmail: ").append(toIndentedString(supportEmail)).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 PayMeInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PayMeInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PayMeInfo + */ + public static PayMeInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PayMeInfo.class); + } +/** + * Convert an instance of PayMeInfo 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/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index e25b3abd0..8a354c96b 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -16,6 +16,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.adyen.model.management.AccelInfo; import com.adyen.model.management.AfterpayTouchInfo; import com.adyen.model.management.AmexInfo; import com.adyen.model.management.ApplePayInfo; @@ -27,8 +28,13 @@ import com.adyen.model.management.GooglePayInfo; import com.adyen.model.management.KlarnaInfo; import com.adyen.model.management.MealVoucherFRInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PayMeInfo; import com.adyen.model.management.PayPalInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.SodexoInfo; import com.adyen.model.management.SofortInfo; +import com.adyen.model.management.StarInfo; import com.adyen.model.management.SwishInfo; import com.adyen.model.management.TicketInfo; import com.adyen.model.management.TwintInfo; @@ -52,6 +58,7 @@ * PaymentMethod */ @JsonPropertyOrder({ + PaymentMethod.JSON_PROPERTY_ACCEL, PaymentMethod.JSON_PROPERTY_AFTERPAY_TOUCH, PaymentMethod.JSON_PROPERTY_ALLOWED, PaymentMethod.JSON_PROPERTY_AMEX, @@ -79,10 +86,15 @@ PaymentMethod.JSON_PROPERTY_MAESTRO, PaymentMethod.JSON_PROPERTY_MC, PaymentMethod.JSON_PROPERTY_MEAL_VOUCHER_F_R, + PaymentMethod.JSON_PROPERTY_NYCE, + PaymentMethod.JSON_PROPERTY_PAYME, PaymentMethod.JSON_PROPERTY_PAYPAL, + PaymentMethod.JSON_PROPERTY_PULSE, PaymentMethod.JSON_PROPERTY_REFERENCE, PaymentMethod.JSON_PROPERTY_SHOPPER_INTERACTION, + PaymentMethod.JSON_PROPERTY_SODEXO, PaymentMethod.JSON_PROPERTY_SOFORT, + PaymentMethod.JSON_PROPERTY_STAR, PaymentMethod.JSON_PROPERTY_STORE_IDS, PaymentMethod.JSON_PROPERTY_SWISH, PaymentMethod.JSON_PROPERTY_TICKET, @@ -96,6 +108,9 @@ }) public class PaymentMethod { + public static final String JSON_PROPERTY_ACCEL = "accel"; + private AccelInfo accel; + public static final String JSON_PROPERTY_AFTERPAY_TOUCH = "afterpayTouch"; private AfterpayTouchInfo afterpayTouch; @@ -177,18 +192,33 @@ public class PaymentMethod { public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR"; private MealVoucherFRInfo mealVoucherFR; + public static final String JSON_PROPERTY_NYCE = "nyce"; + private NyceInfo nyce; + + public static final String JSON_PROPERTY_PAYME = "payme"; + private PayMeInfo payme; + public static final String JSON_PROPERTY_PAYPAL = "paypal"; private PayPalInfo paypal; + public static final String JSON_PROPERTY_PULSE = "pulse"; + private PulseInfo pulse; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction"; private String shopperInteraction; + public static final String JSON_PROPERTY_SODEXO = "sodexo"; + private SodexoInfo sodexo; + public static final String JSON_PROPERTY_SOFORT = "sofort"; private SofortInfo sofort; + public static final String JSON_PROPERTY_STAR = "star"; + private StarInfo star; + public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; private List storeIds = null; @@ -261,6 +291,36 @@ public static VerificationStatusEnum fromValue(String value) { public PaymentMethod() { } + public PaymentMethod accel(AccelInfo accel) { + this.accel = accel; + return this; + } + + /** + * Get accel + * @return accel + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AccelInfo getAccel() { + return accel; + } + + + /** + * accel + * + * @param accel + */ + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccel(AccelInfo accel) { + this.accel = accel; + } + + public PaymentMethod afterpayTouch(AfterpayTouchInfo afterpayTouch) { this.afterpayTouch = afterpayTouch; return this; @@ -1095,6 +1155,66 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { } + public PaymentMethod nyce(NyceInfo nyce) { + this.nyce = nyce; + return this; + } + + /** + * Get nyce + * @return nyce + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NyceInfo getNyce() { + return nyce; + } + + + /** + * nyce + * + * @param nyce + */ + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNyce(NyceInfo nyce) { + this.nyce = nyce; + } + + + public PaymentMethod payme(PayMeInfo payme) { + this.payme = payme; + return this; + } + + /** + * Get payme + * @return payme + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PAYME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PayMeInfo getPayme() { + return payme; + } + + + /** + * payme + * + * @param payme + */ + @JsonProperty(JSON_PROPERTY_PAYME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPayme(PayMeInfo payme) { + this.payme = payme; + } + + public PaymentMethod paypal(PayPalInfo paypal) { this.paypal = paypal; return this; @@ -1125,6 +1245,36 @@ public void setPaypal(PayPalInfo paypal) { } + public PaymentMethod pulse(PulseInfo pulse) { + this.pulse = pulse; + return this; + } + + /** + * Get pulse + * @return pulse + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PulseInfo getPulse() { + return pulse; + } + + + /** + * pulse + * + * @param pulse + */ + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPulse(PulseInfo pulse) { + this.pulse = pulse; + } + + public PaymentMethod reference(String reference) { this.reference = reference; return this; @@ -1185,6 +1335,36 @@ public void setShopperInteraction(String shopperInteraction) { } + public PaymentMethod sodexo(SodexoInfo sodexo) { + this.sodexo = sodexo; + return this; + } + + /** + * Get sodexo + * @return sodexo + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SODEXO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SodexoInfo getSodexo() { + return sodexo; + } + + + /** + * sodexo + * + * @param sodexo + */ + @JsonProperty(JSON_PROPERTY_SODEXO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSodexo(SodexoInfo sodexo) { + this.sodexo = sodexo; + } + + public PaymentMethod sofort(SofortInfo sofort) { this.sofort = sofort; return this; @@ -1215,6 +1395,36 @@ public void setSofort(SofortInfo sofort) { } + public PaymentMethod star(StarInfo star) { + this.star = star; + return this; + } + + /** + * Get star + * @return star + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StarInfo getStar() { + return star; + } + + + /** + * star + * + * @param star + */ + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStar(StarInfo star) { + this.star = star; + } + + public PaymentMethod storeIds(List storeIds) { this.storeIds = storeIds; return this; @@ -1535,7 +1745,8 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) && + return Objects.equals(this.accel, paymentMethod.accel) && + Objects.equals(this.afterpayTouch, paymentMethod.afterpayTouch) && Objects.equals(this.allowed, paymentMethod.allowed) && Objects.equals(this.amex, paymentMethod.amex) && Objects.equals(this.applePay, paymentMethod.applePay) && @@ -1562,10 +1773,15 @@ public boolean equals(Object o) { Objects.equals(this.maestro, paymentMethod.maestro) && Objects.equals(this.mc, paymentMethod.mc) && Objects.equals(this.mealVoucherFR, paymentMethod.mealVoucherFR) && + Objects.equals(this.nyce, paymentMethod.nyce) && + Objects.equals(this.payme, paymentMethod.payme) && Objects.equals(this.paypal, paymentMethod.paypal) && + Objects.equals(this.pulse, paymentMethod.pulse) && Objects.equals(this.reference, paymentMethod.reference) && Objects.equals(this.shopperInteraction, paymentMethod.shopperInteraction) && + Objects.equals(this.sodexo, paymentMethod.sodexo) && Objects.equals(this.sofort, paymentMethod.sofort) && + Objects.equals(this.star, paymentMethod.star) && Objects.equals(this.storeIds, paymentMethod.storeIds) && Objects.equals(this.swish, paymentMethod.swish) && Objects.equals(this.ticket, paymentMethod.ticket) && @@ -1580,13 +1796,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(afterpayTouch, allowed, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, enabled, giroPay, girocard, googlePay, id, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, paypal, reference, shopperInteraction, sofort, storeIds, swish, ticket, twint, type, verificationStatus, vipps, visa, wechatpay, wechatpayPos); + return Objects.hash(accel, afterpayTouch, allowed, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, enabled, giroPay, girocard, googlePay, id, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, nyce, payme, paypal, pulse, reference, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, verificationStatus, vipps, visa, wechatpay, wechatpayPos); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethod {\n"); + sb.append(" accel: ").append(toIndentedString(accel)).append("\n"); sb.append(" afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n"); sb.append(" allowed: ").append(toIndentedString(allowed)).append("\n"); sb.append(" amex: ").append(toIndentedString(amex)).append("\n"); @@ -1614,10 +1831,15 @@ public String toString() { sb.append(" maestro: ").append(toIndentedString(maestro)).append("\n"); sb.append(" mc: ").append(toIndentedString(mc)).append("\n"); sb.append(" mealVoucherFR: ").append(toIndentedString(mealVoucherFR)).append("\n"); + sb.append(" nyce: ").append(toIndentedString(nyce)).append("\n"); + sb.append(" payme: ").append(toIndentedString(payme)).append("\n"); sb.append(" paypal: ").append(toIndentedString(paypal)).append("\n"); + sb.append(" pulse: ").append(toIndentedString(pulse)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); + sb.append(" sodexo: ").append(toIndentedString(sodexo)).append("\n"); sb.append(" sofort: ").append(toIndentedString(sofort)).append("\n"); + sb.append(" star: ").append(toIndentedString(star)).append("\n"); sb.append(" storeIds: ").append(toIndentedString(storeIds)).append("\n"); sb.append(" swish: ").append(toIndentedString(swish)).append("\n"); sb.append(" ticket: ").append(toIndentedString(ticket)).append("\n"); diff --git a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java index 44e86aa9b..47cfaa755 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodResponse.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodResponse.java @@ -59,8 +59,12 @@ public class PaymentMethodResponse { * Gets or Sets typesWithErrors */ public enum TypesWithErrorsEnum { + ACCEL("accel"), + AFTERPAYTOUCH("afterpaytouch"), + ALELO("alelo"), + ALIPAY("alipay"), ALIPAY_HK("alipay_hk"), @@ -69,6 +73,14 @@ public enum TypesWithErrorsEnum { APPLEPAY("applepay"), + BANESE_CARD("banese_card"), + + BANESE_CARD_CREDIT("banese_card_credit"), + + BANESE_CARD_DEBIT("banese_card_debit"), + + BANESE_CARD_PREPAID("banese_card_prepaid"), + BCMC("bcmc"), BLIK("blik"), @@ -79,6 +91,12 @@ public enum TypesWithErrorsEnum { CLICKTOPAY("clicktopay"), + CREDTODOS("credtodos"), + + CREDTODOS_PRIVATE_CREDIT("credtodos_private_credit"), + + CREDTODOS_PRIVATE_DEBIT("credtodos_private_debit"), + CUP("cup"), DINERS("diners"), @@ -131,10 +149,16 @@ public enum TypesWithErrorsEnum { MULTIBANCO("multibanco"), + NYCE("nyce"), + ONLINEBANKING_PL("onlineBanking_PL"), PAYBYBANK("paybybank"), + PAYME("payme"), + + PAYME_POS("payme_pos"), + PAYNOW("paynow"), PAYNOW_POS("paynow_pos"), @@ -143,16 +167,30 @@ public enum TypesWithErrorsEnum { PAYSHOP("payshop"), + PULSE("pulse"), + + SODEXO("sodexo"), + + STAR("star"), + SWISH("swish"), TICKET("ticket"), + TODO_GIFTCARD("todo_giftcard"), + TRUSTLY("trustly"), TWINT("twint"), TWINT_POS("twint_pos"), + UP_BRAZIL_CREDIT("up_brazil_credit"), + + VALE_REFEICAO("vale_refeicao"), + + VALE_REFEICAO_PREPAID("vale_refeicao_prepaid"), + VIPPS("vipps"), VISA("visa"), diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index 928a6d698..0db252863 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -16,6 +16,7 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.adyen.model.management.AccelInfo; import com.adyen.model.management.AfterpayTouchInfo; import com.adyen.model.management.AmexInfo; import com.adyen.model.management.ApplePayInfo; @@ -27,8 +28,13 @@ import com.adyen.model.management.GooglePayInfo; import com.adyen.model.management.KlarnaInfo; import com.adyen.model.management.MealVoucherFRInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PayMeInfo; import com.adyen.model.management.PayPalInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.SodexoInfo; import com.adyen.model.management.SofortInfo; +import com.adyen.model.management.StarInfo; import com.adyen.model.management.SwishInfo; import com.adyen.model.management.TicketInfo; import com.adyen.model.management.TwintInfo; @@ -52,6 +58,7 @@ * PaymentMethodSetupInfo */ @JsonPropertyOrder({ + PaymentMethodSetupInfo.JSON_PROPERTY_ACCEL, PaymentMethodSetupInfo.JSON_PROPERTY_AFTERPAY_TOUCH, PaymentMethodSetupInfo.JSON_PROPERTY_AMEX, PaymentMethodSetupInfo.JSON_PROPERTY_APPLE_PAY, @@ -76,10 +83,15 @@ PaymentMethodSetupInfo.JSON_PROPERTY_MAESTRO, PaymentMethodSetupInfo.JSON_PROPERTY_MC, PaymentMethodSetupInfo.JSON_PROPERTY_MEAL_VOUCHER_F_R, + PaymentMethodSetupInfo.JSON_PROPERTY_NYCE, + PaymentMethodSetupInfo.JSON_PROPERTY_PAYME, PaymentMethodSetupInfo.JSON_PROPERTY_PAYPAL, + PaymentMethodSetupInfo.JSON_PROPERTY_PULSE, PaymentMethodSetupInfo.JSON_PROPERTY_REFERENCE, PaymentMethodSetupInfo.JSON_PROPERTY_SHOPPER_INTERACTION, + PaymentMethodSetupInfo.JSON_PROPERTY_SODEXO, PaymentMethodSetupInfo.JSON_PROPERTY_SOFORT, + PaymentMethodSetupInfo.JSON_PROPERTY_STAR, PaymentMethodSetupInfo.JSON_PROPERTY_STORE_IDS, PaymentMethodSetupInfo.JSON_PROPERTY_SWISH, PaymentMethodSetupInfo.JSON_PROPERTY_TICKET, @@ -92,6 +104,9 @@ }) public class PaymentMethodSetupInfo { + public static final String JSON_PROPERTY_ACCEL = "accel"; + private AccelInfo accel; + public static final String JSON_PROPERTY_AFTERPAY_TOUCH = "afterpayTouch"; private AfterpayTouchInfo afterpayTouch; @@ -164,9 +179,18 @@ public class PaymentMethodSetupInfo { public static final String JSON_PROPERTY_MEAL_VOUCHER_F_R = "mealVoucher_FR"; private MealVoucherFRInfo mealVoucherFR; + public static final String JSON_PROPERTY_NYCE = "nyce"; + private NyceInfo nyce; + + public static final String JSON_PROPERTY_PAYME = "payme"; + private PayMeInfo payme; + public static final String JSON_PROPERTY_PAYPAL = "paypal"; private PayPalInfo paypal; + public static final String JSON_PROPERTY_PULSE = "pulse"; + private PulseInfo pulse; + public static final String JSON_PROPERTY_REFERENCE = "reference"; private String reference; @@ -212,9 +236,15 @@ public static ShopperInteractionEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_INTERACTION = "shopperInteraction"; private ShopperInteractionEnum shopperInteraction; + public static final String JSON_PROPERTY_SODEXO = "sodexo"; + private SodexoInfo sodexo; + public static final String JSON_PROPERTY_SOFORT = "sofort"; private SofortInfo sofort; + public static final String JSON_PROPERTY_STAR = "star"; + private StarInfo star; + public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; private List storeIds = null; @@ -231,8 +261,12 @@ public static ShopperInteractionEnum fromValue(String value) { * Payment method [variant](https://docs.adyen.com/development-resources/paymentmethodvariant#management-api). */ public enum TypeEnum { + ACCEL("accel"), + AFTERPAYTOUCH("afterpaytouch"), + ALELO("alelo"), + ALIPAY("alipay"), ALIPAY_HK("alipay_hk"), @@ -241,6 +275,14 @@ public enum TypeEnum { APPLEPAY("applepay"), + BANESE_CARD("banese_card"), + + BANESE_CARD_CREDIT("banese_card_credit"), + + BANESE_CARD_DEBIT("banese_card_debit"), + + BANESE_CARD_PREPAID("banese_card_prepaid"), + BCMC("bcmc"), BLIK("blik"), @@ -251,6 +293,12 @@ public enum TypeEnum { CLICKTOPAY("clicktopay"), + CREDTODOS("credtodos"), + + CREDTODOS_PRIVATE_CREDIT("credtodos_private_credit"), + + CREDTODOS_PRIVATE_DEBIT("credtodos_private_debit"), + CUP("cup"), DINERS("diners"), @@ -303,10 +351,16 @@ public enum TypeEnum { MULTIBANCO("multibanco"), + NYCE("nyce"), + ONLINEBANKING_PL("onlineBanking_PL"), PAYBYBANK("paybybank"), + PAYME("payme"), + + PAYME_POS("payme_pos"), + PAYNOW("paynow"), PAYNOW_POS("paynow_pos"), @@ -315,16 +369,30 @@ public enum TypeEnum { PAYSHOP("payshop"), + PULSE("pulse"), + + SODEXO("sodexo"), + + STAR("star"), + SWISH("swish"), TICKET("ticket"), + TODO_GIFTCARD("todo_giftcard"), + TRUSTLY("trustly"), TWINT("twint"), TWINT_POS("twint_pos"), + UP_BRAZIL_CREDIT("up_brazil_credit"), + + VALE_REFEICAO("vale_refeicao"), + + VALE_REFEICAO_PREPAID("vale_refeicao_prepaid"), + VIPPS("vipps"), VISA("visa"), @@ -382,6 +450,36 @@ public static TypeEnum fromValue(String value) { public PaymentMethodSetupInfo() { } + public PaymentMethodSetupInfo accel(AccelInfo accel) { + this.accel = accel; + return this; + } + + /** + * Get accel + * @return accel + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AccelInfo getAccel() { + return accel; + } + + + /** + * accel + * + * @param accel + */ + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccel(AccelInfo accel) { + this.accel = accel; + } + + public PaymentMethodSetupInfo afterpayTouch(AfterpayTouchInfo afterpayTouch) { this.afterpayTouch = afterpayTouch; return this; @@ -1126,6 +1224,66 @@ public void setMealVoucherFR(MealVoucherFRInfo mealVoucherFR) { } + public PaymentMethodSetupInfo nyce(NyceInfo nyce) { + this.nyce = nyce; + return this; + } + + /** + * Get nyce + * @return nyce + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NyceInfo getNyce() { + return nyce; + } + + + /** + * nyce + * + * @param nyce + */ + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNyce(NyceInfo nyce) { + this.nyce = nyce; + } + + + public PaymentMethodSetupInfo payme(PayMeInfo payme) { + this.payme = payme; + return this; + } + + /** + * Get payme + * @return payme + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PAYME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PayMeInfo getPayme() { + return payme; + } + + + /** + * payme + * + * @param payme + */ + @JsonProperty(JSON_PROPERTY_PAYME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPayme(PayMeInfo payme) { + this.payme = payme; + } + + public PaymentMethodSetupInfo paypal(PayPalInfo paypal) { this.paypal = paypal; return this; @@ -1156,6 +1314,36 @@ public void setPaypal(PayPalInfo paypal) { } + public PaymentMethodSetupInfo pulse(PulseInfo pulse) { + this.pulse = pulse; + return this; + } + + /** + * Get pulse + * @return pulse + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PulseInfo getPulse() { + return pulse; + } + + + /** + * pulse + * + * @param pulse + */ + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPulse(PulseInfo pulse) { + this.pulse = pulse; + } + + public PaymentMethodSetupInfo reference(String reference) { this.reference = reference; return this; @@ -1216,6 +1404,36 @@ public void setShopperInteraction(ShopperInteractionEnum shopperInteraction) { } + public PaymentMethodSetupInfo sodexo(SodexoInfo sodexo) { + this.sodexo = sodexo; + return this; + } + + /** + * Get sodexo + * @return sodexo + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SODEXO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SodexoInfo getSodexo() { + return sodexo; + } + + + /** + * sodexo + * + * @param sodexo + */ + @JsonProperty(JSON_PROPERTY_SODEXO) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSodexo(SodexoInfo sodexo) { + this.sodexo = sodexo; + } + + public PaymentMethodSetupInfo sofort(SofortInfo sofort) { this.sofort = sofort; return this; @@ -1246,6 +1464,36 @@ public void setSofort(SofortInfo sofort) { } + public PaymentMethodSetupInfo star(StarInfo star) { + this.star = star; + return this; + } + + /** + * Get star + * @return star + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StarInfo getStar() { + return star; + } + + + /** + * star + * + * @param star + */ + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStar(StarInfo star) { + this.star = star; + } + + public PaymentMethodSetupInfo storeIds(List storeIds) { this.storeIds = storeIds; return this; @@ -1536,7 +1784,8 @@ public boolean equals(Object o) { return false; } PaymentMethodSetupInfo paymentMethodSetupInfo = (PaymentMethodSetupInfo) o; - return Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) && + return Objects.equals(this.accel, paymentMethodSetupInfo.accel) && + Objects.equals(this.afterpayTouch, paymentMethodSetupInfo.afterpayTouch) && Objects.equals(this.amex, paymentMethodSetupInfo.amex) && Objects.equals(this.applePay, paymentMethodSetupInfo.applePay) && Objects.equals(this.bcmc, paymentMethodSetupInfo.bcmc) && @@ -1560,10 +1809,15 @@ public boolean equals(Object o) { Objects.equals(this.maestro, paymentMethodSetupInfo.maestro) && Objects.equals(this.mc, paymentMethodSetupInfo.mc) && Objects.equals(this.mealVoucherFR, paymentMethodSetupInfo.mealVoucherFR) && + Objects.equals(this.nyce, paymentMethodSetupInfo.nyce) && + Objects.equals(this.payme, paymentMethodSetupInfo.payme) && Objects.equals(this.paypal, paymentMethodSetupInfo.paypal) && + Objects.equals(this.pulse, paymentMethodSetupInfo.pulse) && Objects.equals(this.reference, paymentMethodSetupInfo.reference) && Objects.equals(this.shopperInteraction, paymentMethodSetupInfo.shopperInteraction) && + Objects.equals(this.sodexo, paymentMethodSetupInfo.sodexo) && Objects.equals(this.sofort, paymentMethodSetupInfo.sofort) && + Objects.equals(this.star, paymentMethodSetupInfo.star) && Objects.equals(this.storeIds, paymentMethodSetupInfo.storeIds) && Objects.equals(this.swish, paymentMethodSetupInfo.swish) && Objects.equals(this.ticket, paymentMethodSetupInfo.ticket) && @@ -1577,13 +1831,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(afterpayTouch, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, giroPay, girocard, googlePay, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, paypal, reference, shopperInteraction, sofort, storeIds, swish, ticket, twint, type, vipps, visa, wechatpay, wechatpayPos); + return Objects.hash(accel, afterpayTouch, amex, applePay, bcmc, businessLineId, cartesBancaires, clearpay, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, giroPay, girocard, googlePay, ideal, interacCard, jcb, klarna, maestro, mc, mealVoucherFR, nyce, payme, paypal, pulse, reference, shopperInteraction, sodexo, sofort, star, storeIds, swish, ticket, twint, type, vipps, visa, wechatpay, wechatpayPos); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethodSetupInfo {\n"); + sb.append(" accel: ").append(toIndentedString(accel)).append("\n"); sb.append(" afterpayTouch: ").append(toIndentedString(afterpayTouch)).append("\n"); sb.append(" amex: ").append(toIndentedString(amex)).append("\n"); sb.append(" applePay: ").append(toIndentedString(applePay)).append("\n"); @@ -1608,10 +1863,15 @@ public String toString() { sb.append(" maestro: ").append(toIndentedString(maestro)).append("\n"); sb.append(" mc: ").append(toIndentedString(mc)).append("\n"); sb.append(" mealVoucherFR: ").append(toIndentedString(mealVoucherFR)).append("\n"); + sb.append(" nyce: ").append(toIndentedString(nyce)).append("\n"); + sb.append(" payme: ").append(toIndentedString(payme)).append("\n"); sb.append(" paypal: ").append(toIndentedString(paypal)).append("\n"); + sb.append(" pulse: ").append(toIndentedString(pulse)).append("\n"); sb.append(" reference: ").append(toIndentedString(reference)).append("\n"); sb.append(" shopperInteraction: ").append(toIndentedString(shopperInteraction)).append("\n"); + sb.append(" sodexo: ").append(toIndentedString(sodexo)).append("\n"); sb.append(" sofort: ").append(toIndentedString(sofort)).append("\n"); + sb.append(" star: ").append(toIndentedString(star)).append("\n"); sb.append(" storeIds: ").append(toIndentedString(storeIds)).append("\n"); sb.append(" swish: ").append(toIndentedString(swish)).append("\n"); sb.append(" ticket: ").append(toIndentedString(ticket)).append("\n"); diff --git a/src/main/java/com/adyen/model/management/PulseInfo.java b/src/main/java/com/adyen/model/management/PulseInfo.java new file mode 100644 index 000000000..586da6089 --- /dev/null +++ b/src/main/java/com/adyen/model/management/PulseInfo.java @@ -0,0 +1,207 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * PulseInfo + */ +@JsonPropertyOrder({ + PulseInfo.JSON_PROPERTY_PROCESSING_TYPE, + PulseInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION +}) + +public class PulseInfo { + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + */ + public enum ProcessingTypeEnum { + BILLPAY("billpay"), + + ECOM("ecom"), + + POS("pos"); + + private String value; + + ProcessingTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProcessingTypeEnum fromValue(String value) { + for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType"; + private ProcessingTypeEnum processingType; + + public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; + private TransactionDescriptionInfo transactionDescription; + + public PulseInfo() { + } + + public PulseInfo processingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + return this; + } + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType + **/ + @ApiModelProperty(required = true, value = "The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. ") + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProcessingTypeEnum getProcessingType() { + return processingType; + } + + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * + * @param processingType + */ + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProcessingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + } + + + public PulseInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + return this; + } + + /** + * Get transactionDescription + * @return transactionDescription + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TransactionDescriptionInfo getTransactionDescription() { + return transactionDescription; + } + + + /** + * transactionDescription + * + * @param transactionDescription + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + } + + + /** + * Return true if this PulseInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PulseInfo pulseInfo = (PulseInfo) o; + return Objects.equals(this.processingType, pulseInfo.processingType) && + Objects.equals(this.transactionDescription, pulseInfo.transactionDescription); + } + + @Override + public int hashCode() { + return Objects.hash(processingType, transactionDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PulseInfo {\n"); + sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).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 PulseInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of PulseInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to PulseInfo + */ + public static PulseInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PulseInfo.class); + } +/** + * Convert an instance of PulseInfo 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/management/SodexoInfo.java b/src/main/java/com/adyen/model/management/SodexoInfo.java new file mode 100644 index 000000000..d5d8a01fa --- /dev/null +++ b/src/main/java/com/adyen/model/management/SodexoInfo.java @@ -0,0 +1,133 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * SodexoInfo + */ +@JsonPropertyOrder({ + SodexoInfo.JSON_PROPERTY_MERCHANT_CONTACT_PHONE +}) + +public class SodexoInfo { + public static final String JSON_PROPERTY_MERCHANT_CONTACT_PHONE = "merchantContactPhone"; + private String merchantContactPhone; + + public SodexoInfo() { + } + + public SodexoInfo merchantContactPhone(String merchantContactPhone) { + this.merchantContactPhone = merchantContactPhone; + return this; + } + + /** + * Sodexo merchantContactPhone + * @return merchantContactPhone + **/ + @ApiModelProperty(required = true, value = "Sodexo merchantContactPhone") + @JsonProperty(JSON_PROPERTY_MERCHANT_CONTACT_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMerchantContactPhone() { + return merchantContactPhone; + } + + + /** + * Sodexo merchantContactPhone + * + * @param merchantContactPhone + */ + @JsonProperty(JSON_PROPERTY_MERCHANT_CONTACT_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMerchantContactPhone(String merchantContactPhone) { + this.merchantContactPhone = merchantContactPhone; + } + + + /** + * Return true if this SodexoInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SodexoInfo sodexoInfo = (SodexoInfo) o; + return Objects.equals(this.merchantContactPhone, sodexoInfo.merchantContactPhone); + } + + @Override + public int hashCode() { + return Objects.hash(merchantContactPhone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SodexoInfo {\n"); + sb.append(" merchantContactPhone: ").append(toIndentedString(merchantContactPhone)).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 SodexoInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of SodexoInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to SodexoInfo + */ + public static SodexoInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, SodexoInfo.class); + } +/** + * Convert an instance of SodexoInfo 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/management/StarInfo.java b/src/main/java/com/adyen/model/management/StarInfo.java new file mode 100644 index 000000000..f1949ac04 --- /dev/null +++ b/src/main/java/com/adyen/model/management/StarInfo.java @@ -0,0 +1,207 @@ +/* + * Management API + * + * The version of the OpenAPI document: 3 + * + * + * 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.management; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.management.TransactionDescriptionInfo; +import com.fasterxml.jackson.annotation.JsonInclude; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonTypeName; +import com.fasterxml.jackson.annotation.JsonValue; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * StarInfo + */ +@JsonPropertyOrder({ + StarInfo.JSON_PROPERTY_PROCESSING_TYPE, + StarInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION +}) + +public class StarInfo { + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + */ + public enum ProcessingTypeEnum { + BILLPAY("billpay"), + + ECOM("ecom"), + + POS("pos"); + + private String value; + + ProcessingTypeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ProcessingTypeEnum fromValue(String value) { + for (ProcessingTypeEnum b : ProcessingTypeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PROCESSING_TYPE = "processingType"; + private ProcessingTypeEnum processingType; + + public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; + private TransactionDescriptionInfo transactionDescription; + + public StarInfo() { + } + + public StarInfo processingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + return this; + } + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * @return processingType + **/ + @ApiModelProperty(required = true, value = "The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. ") + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ProcessingTypeEnum getProcessingType() { + return processingType; + } + + + /** + * The type of transactions processed over this payment method. Allowed values: - **pos** for in-person payments. - **billpay** for subscription payments, both the initial payment and the later recurring payments. These transactions have `recurringProcessingModel` **Subscription**. - **ecom** for all other card not present transactions. This includes non-recurring transactions and transactions with `recurringProcessingModel` **CardOnFile** or **UnscheduledCardOnFile**. + * + * @param processingType + */ + @JsonProperty(JSON_PROPERTY_PROCESSING_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setProcessingType(ProcessingTypeEnum processingType) { + this.processingType = processingType; + } + + + public StarInfo transactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + return this; + } + + /** + * Get transactionDescription + * @return transactionDescription + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TransactionDescriptionInfo getTransactionDescription() { + return transactionDescription; + } + + + /** + * transactionDescription + * + * @param transactionDescription + */ + @JsonProperty(JSON_PROPERTY_TRANSACTION_DESCRIPTION) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTransactionDescription(TransactionDescriptionInfo transactionDescription) { + this.transactionDescription = transactionDescription; + } + + + /** + * Return true if this StarInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StarInfo starInfo = (StarInfo) o; + return Objects.equals(this.processingType, starInfo.processingType) && + Objects.equals(this.transactionDescription, starInfo.transactionDescription); + } + + @Override + public int hashCode() { + return Objects.hash(processingType, transactionDescription); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StarInfo {\n"); + sb.append(" processingType: ").append(toIndentedString(processingType)).append("\n"); + sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).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 StarInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of StarInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to StarInfo + */ + public static StarInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, StarInfo.class); + } +/** + * Convert an instance of StarInfo 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/management/UpdatePaymentMethodInfo.java b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java index 16f03b55a..ed329ffd2 100644 --- a/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java +++ b/src/main/java/com/adyen/model/management/UpdatePaymentMethodInfo.java @@ -16,9 +16,13 @@ import java.util.Arrays; import java.util.Map; import java.util.HashMap; +import com.adyen.model.management.AccelInfo; import com.adyen.model.management.BcmcInfo; import com.adyen.model.management.CartesBancairesInfo; import com.adyen.model.management.GenericPmWithTdiInfo; +import com.adyen.model.management.NyceInfo; +import com.adyen.model.management.PulseInfo; +import com.adyen.model.management.StarInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -36,6 +40,7 @@ * UpdatePaymentMethodInfo */ @JsonPropertyOrder({ + UpdatePaymentMethodInfo.JSON_PROPERTY_ACCEL, UpdatePaymentMethodInfo.JSON_PROPERTY_BCMC, UpdatePaymentMethodInfo.JSON_PROPERTY_CARTES_BANCAIRES, UpdatePaymentMethodInfo.JSON_PROPERTY_COUNTRIES, @@ -52,11 +57,17 @@ UpdatePaymentMethodInfo.JSON_PROPERTY_JCB, UpdatePaymentMethodInfo.JSON_PROPERTY_MAESTRO, UpdatePaymentMethodInfo.JSON_PROPERTY_MC, + UpdatePaymentMethodInfo.JSON_PROPERTY_NYCE, + UpdatePaymentMethodInfo.JSON_PROPERTY_PULSE, + UpdatePaymentMethodInfo.JSON_PROPERTY_STAR, UpdatePaymentMethodInfo.JSON_PROPERTY_STORE_IDS, UpdatePaymentMethodInfo.JSON_PROPERTY_VISA }) public class UpdatePaymentMethodInfo { + public static final String JSON_PROPERTY_ACCEL = "accel"; + private AccelInfo accel; + public static final String JSON_PROPERTY_BCMC = "bcmc"; private BcmcInfo bcmc; @@ -105,6 +116,15 @@ public class UpdatePaymentMethodInfo { public static final String JSON_PROPERTY_MC = "mc"; private GenericPmWithTdiInfo mc; + public static final String JSON_PROPERTY_NYCE = "nyce"; + private NyceInfo nyce; + + public static final String JSON_PROPERTY_PULSE = "pulse"; + private PulseInfo pulse; + + public static final String JSON_PROPERTY_STAR = "star"; + private StarInfo star; + public static final String JSON_PROPERTY_STORE_IDS = "storeIds"; private List storeIds = null; @@ -114,6 +134,36 @@ public class UpdatePaymentMethodInfo { public UpdatePaymentMethodInfo() { } + public UpdatePaymentMethodInfo accel(AccelInfo accel) { + this.accel = accel; + return this; + } + + /** + * Get accel + * @return accel + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public AccelInfo getAccel() { + return accel; + } + + + /** + * accel + * + * @param accel + */ + @JsonProperty(JSON_PROPERTY_ACCEL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAccel(AccelInfo accel) { + this.accel = accel; + } + + public UpdatePaymentMethodInfo bcmc(BcmcInfo bcmc) { this.bcmc = bcmc; return this; @@ -618,6 +668,96 @@ public void setMc(GenericPmWithTdiInfo mc) { } + public UpdatePaymentMethodInfo nyce(NyceInfo nyce) { + this.nyce = nyce; + return this; + } + + /** + * Get nyce + * @return nyce + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public NyceInfo getNyce() { + return nyce; + } + + + /** + * nyce + * + * @param nyce + */ + @JsonProperty(JSON_PROPERTY_NYCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setNyce(NyceInfo nyce) { + this.nyce = nyce; + } + + + public UpdatePaymentMethodInfo pulse(PulseInfo pulse) { + this.pulse = pulse; + return this; + } + + /** + * Get pulse + * @return pulse + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PulseInfo getPulse() { + return pulse; + } + + + /** + * pulse + * + * @param pulse + */ + @JsonProperty(JSON_PROPERTY_PULSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPulse(PulseInfo pulse) { + this.pulse = pulse; + } + + + public UpdatePaymentMethodInfo star(StarInfo star) { + this.star = star; + return this; + } + + /** + * Get star + * @return star + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public StarInfo getStar() { + return star; + } + + + /** + * star + * + * @param star + */ + @JsonProperty(JSON_PROPERTY_STAR) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStar(StarInfo star) { + this.star = star; + } + + public UpdatePaymentMethodInfo storeIds(List storeIds) { this.storeIds = storeIds; return this; @@ -698,7 +838,8 @@ public boolean equals(Object o) { return false; } UpdatePaymentMethodInfo updatePaymentMethodInfo = (UpdatePaymentMethodInfo) o; - return Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) && + return Objects.equals(this.accel, updatePaymentMethodInfo.accel) && + Objects.equals(this.bcmc, updatePaymentMethodInfo.bcmc) && Objects.equals(this.cartesBancaires, updatePaymentMethodInfo.cartesBancaires) && Objects.equals(this.countries, updatePaymentMethodInfo.countries) && Objects.equals(this.cup, updatePaymentMethodInfo.cup) && @@ -714,19 +855,23 @@ public boolean equals(Object o) { Objects.equals(this.jcb, updatePaymentMethodInfo.jcb) && Objects.equals(this.maestro, updatePaymentMethodInfo.maestro) && Objects.equals(this.mc, updatePaymentMethodInfo.mc) && + Objects.equals(this.nyce, updatePaymentMethodInfo.nyce) && + Objects.equals(this.pulse, updatePaymentMethodInfo.pulse) && + Objects.equals(this.star, updatePaymentMethodInfo.star) && Objects.equals(this.storeIds, updatePaymentMethodInfo.storeIds) && Objects.equals(this.visa, updatePaymentMethodInfo.visa); } @Override public int hashCode() { - return Objects.hash(bcmc, cartesBancaires, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, enabled, girocard, ideal, interacCard, jcb, maestro, mc, storeIds, visa); + return Objects.hash(accel, bcmc, cartesBancaires, countries, cup, currencies, customRoutingFlags, diners, discover, eftposAustralia, enabled, girocard, ideal, interacCard, jcb, maestro, mc, nyce, pulse, star, storeIds, visa); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class UpdatePaymentMethodInfo {\n"); + sb.append(" accel: ").append(toIndentedString(accel)).append("\n"); sb.append(" bcmc: ").append(toIndentedString(bcmc)).append("\n"); sb.append(" cartesBancaires: ").append(toIndentedString(cartesBancaires)).append("\n"); sb.append(" countries: ").append(toIndentedString(countries)).append("\n"); @@ -743,6 +888,9 @@ public String toString() { sb.append(" jcb: ").append(toIndentedString(jcb)).append("\n"); sb.append(" maestro: ").append(toIndentedString(maestro)).append("\n"); sb.append(" mc: ").append(toIndentedString(mc)).append("\n"); + sb.append(" nyce: ").append(toIndentedString(nyce)).append("\n"); + sb.append(" pulse: ").append(toIndentedString(pulse)).append("\n"); + sb.append(" star: ").append(toIndentedString(star)).append("\n"); sb.append(" storeIds: ").append(toIndentedString(storeIds)).append("\n"); sb.append(" visa: ").append(toIndentedString(visa)).append("\n"); sb.append("}");