Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions src/main/java/com/adyen/model/checkout/CardDetails.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
CardDetails.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
CardDetails.JSON_PROPERTY_ENCRYPTED_PASSWORD,
CardDetails.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE,
CardDetails.JSON_PROPERTY_EXPIRY_MONTH,
CardDetails.JSON_PROPERTY_EXPIRY_YEAR,
Expand Down Expand Up @@ -75,6 +76,9 @@ public class CardDetails {
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear";
private String encryptedExpiryYear;

public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword";
private String encryptedPassword;

public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode";
private String encryptedSecurityCode;

Expand Down Expand Up @@ -508,6 +512,45 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) {
this.encryptedExpiryYear = encryptedExpiryYear;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @param encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
* @return the current {@code CardDetails} instance, allowing for method chaining
*/
public CardDetails encryptedPassword(String encryptedPassword) {
this.encryptedPassword = encryptedPassword;
return this;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @return encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEncryptedPassword() {
return encryptedPassword;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @param encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEncryptedPassword(String encryptedPassword) {
this.encryptedPassword = encryptedPassword;
}

/**
* The encrypted card verification code.
*
Expand Down Expand Up @@ -1162,6 +1205,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber)
&& Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth)
&& Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear)
&& Objects.equals(this.encryptedPassword, cardDetails.encryptedPassword)
&& Objects.equals(this.encryptedSecurityCode, cardDetails.encryptedSecurityCode)
&& Objects.equals(this.expiryMonth, cardDetails.expiryMonth)
&& Objects.equals(this.expiryYear, cardDetails.expiryYear)
Expand Down Expand Up @@ -1193,6 +1237,7 @@ public int hashCode() {
encryptedCardNumber,
encryptedExpiryMonth,
encryptedExpiryYear,
encryptedPassword,
encryptedSecurityCode,
expiryMonth,
expiryYear,
Expand Down Expand Up @@ -1232,6 +1277,7 @@ public String toString() {
sb.append(" encryptedExpiryYear: ")
.append(toIndentedString(encryptedExpiryYear))
.append("\n");
sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n");
sb.append(" encryptedSecurityCode: ")
.append(toIndentedString(encryptedSecurityCode))
.append("\n");
Expand Down
46 changes: 46 additions & 0 deletions src/main/java/com/adyen/model/checkout/CardDonations.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
CardDonations.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
CardDonations.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
CardDonations.JSON_PROPERTY_ENCRYPTED_PASSWORD,
CardDonations.JSON_PROPERTY_ENCRYPTED_SECURITY_CODE,
CardDonations.JSON_PROPERTY_EXPIRY_MONTH,
CardDonations.JSON_PROPERTY_EXPIRY_YEAR,
Expand Down Expand Up @@ -75,6 +76,9 @@ public class CardDonations {
public static final String JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR = "encryptedExpiryYear";
private String encryptedExpiryYear;

public static final String JSON_PROPERTY_ENCRYPTED_PASSWORD = "encryptedPassword";
private String encryptedPassword;

public static final String JSON_PROPERTY_ENCRYPTED_SECURITY_CODE = "encryptedSecurityCode";
private String encryptedSecurityCode;

Expand Down Expand Up @@ -508,6 +512,45 @@ public void setEncryptedExpiryYear(String encryptedExpiryYear) {
this.encryptedExpiryYear = encryptedExpiryYear;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @param encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
* @return the current {@code CardDonations} instance, allowing for method chaining
*/
public CardDonations encryptedPassword(String encryptedPassword) {
this.encryptedPassword = encryptedPassword;
return this;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @return encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getEncryptedPassword() {
return encryptedPassword;
}

/**
* This field contains an encrypted, one-time password or an authentication code provided by the
* cardholder.
*
* @param encryptedPassword This field contains an encrypted, one-time password or an
* authentication code provided by the cardholder.
*/
@JsonProperty(JSON_PROPERTY_ENCRYPTED_PASSWORD)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setEncryptedPassword(String encryptedPassword) {
this.encryptedPassword = encryptedPassword;
}

/**
* The encrypted card verification code.
*
Expand Down Expand Up @@ -1162,6 +1205,7 @@ public boolean equals(Object o) {
&& Objects.equals(this.encryptedCardNumber, cardDonations.encryptedCardNumber)
&& Objects.equals(this.encryptedExpiryMonth, cardDonations.encryptedExpiryMonth)
&& Objects.equals(this.encryptedExpiryYear, cardDonations.encryptedExpiryYear)
&& Objects.equals(this.encryptedPassword, cardDonations.encryptedPassword)
&& Objects.equals(this.encryptedSecurityCode, cardDonations.encryptedSecurityCode)
&& Objects.equals(this.expiryMonth, cardDonations.expiryMonth)
&& Objects.equals(this.expiryYear, cardDonations.expiryYear)
Expand Down Expand Up @@ -1193,6 +1237,7 @@ public int hashCode() {
encryptedCardNumber,
encryptedExpiryMonth,
encryptedExpiryYear,
encryptedPassword,
encryptedSecurityCode,
expiryMonth,
expiryYear,
Expand Down Expand Up @@ -1232,6 +1277,7 @@ public String toString() {
sb.append(" encryptedExpiryYear: ")
.append(toIndentedString(encryptedExpiryYear))
.append("\n");
sb.append(" encryptedPassword: ").append(toIndentedString(encryptedPassword)).append("\n");
sb.append(" encryptedSecurityCode: ")
.append(toIndentedString(encryptedSecurityCode))
.append("\n");
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
/*
* 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.*;

/** ResponseAdditionalDataSwish */
@JsonPropertyOrder({ResponseAdditionalDataSwish.JSON_PROPERTY_SWISH_PAYER_ALIAS})
public class ResponseAdditionalDataSwish {
public static final String JSON_PROPERTY_SWISH_PAYER_ALIAS = "swish.payerAlias";
private String swishPayerAlias;

public ResponseAdditionalDataSwish() {}

/**
* A Swish shopper's telephone number.
*
* @param swishPayerAlias A Swish shopper's telephone number.
* @return the current {@code ResponseAdditionalDataSwish} instance, allowing for method chaining
*/
public ResponseAdditionalDataSwish swishPayerAlias(String swishPayerAlias) {
this.swishPayerAlias = swishPayerAlias;
return this;
}

/**
* A Swish shopper's telephone number.
*
* @return swishPayerAlias A Swish shopper's telephone number.
*/
@JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public String getSwishPayerAlias() {
return swishPayerAlias;
}

/**
* A Swish shopper's telephone number.
*
* @param swishPayerAlias A Swish shopper's telephone number.
*/
@JsonProperty(JSON_PROPERTY_SWISH_PAYER_ALIAS)
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
public void setSwishPayerAlias(String swishPayerAlias) {
this.swishPayerAlias = swishPayerAlias;
}

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

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

@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("class ResponseAdditionalDataSwish {\n");
sb.append(" swishPayerAlias: ").append(toIndentedString(swishPayerAlias)).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 ResponseAdditionalDataSwish given an JSON string
*
* @param jsonString JSON string
* @return An instance of ResponseAdditionalDataSwish
* @throws JsonProcessingException if the JSON string is invalid with respect to
* ResponseAdditionalDataSwish
*/
public static ResponseAdditionalDataSwish fromJson(String jsonString)
throws JsonProcessingException {
return JSON.getMapper().readValue(jsonString, ResponseAdditionalDataSwish.class);
}

/**
* Convert an instance of ResponseAdditionalDataSwish to an JSON string
*
* @return JSON string
*/
public String toJson() throws JsonProcessingException {
return JSON.getMapper().writeValueAsString(this);
}
}
Loading