Skip to content

Commit 35062b2

Browse files
Update all services (#1395)
* false[adyen-sdk-automation] automated change * adjusted PaymentTest to corrected Enum syntax --------- Co-authored-by: Djoyke Reijans <[email protected]>
1 parent 3136ddf commit 35062b2

File tree

62 files changed

+6048
-251
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

62 files changed

+6048
-251
lines changed

src/main/java/com/adyen/model/acswebhooks/Amount.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Amount() {
4646
}
4747

4848
/**
49-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
49+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
5050
*
5151
* @param currency
5252
* @return the current {@code Amount} instance, allowing for method chaining
@@ -57,18 +57,18 @@ public Amount currency(String currency) {
5757
}
5858

5959
/**
60-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
60+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
6161
* @return currency
6262
*/
63-
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).")
63+
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).")
6464
@JsonProperty(JSON_PROPERTY_CURRENCY)
6565
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6666
public String getCurrency() {
6767
return currency;
6868
}
6969

7070
/**
71-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
71+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
7272
*
7373
* @param currency
7474
*/
@@ -79,7 +79,7 @@ public void setCurrency(String currency) {
7979
}
8080

8181
/**
82-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
82+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
8383
*
8484
* @param value
8585
* @return the current {@code Amount} instance, allowing for method chaining
@@ -90,18 +90,18 @@ public Amount value(Long value) {
9090
}
9191

9292
/**
93-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
93+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
9494
* @return value
9595
*/
96-
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).")
96+
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).")
9797
@JsonProperty(JSON_PROPERTY_VALUE)
9898
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9999
public Long getValue() {
100100
return value;
101101
}
102102

103103
/**
104-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
104+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
105105
*
106106
* @param value
107107
*/

src/main/java/com/adyen/model/acswebhooks/AuthenticationNotificationRequest.java

+41-1
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
import com.fasterxml.jackson.annotation.JsonValue;
2525
import io.swagger.annotations.ApiModel;
2626
import io.swagger.annotations.ApiModelProperty;
27+
import java.time.OffsetDateTime;
2728
import com.fasterxml.jackson.annotation.JsonPropertyOrder;
2829
import com.fasterxml.jackson.core.JsonProcessingException;
2930

@@ -34,6 +35,7 @@
3435
@JsonPropertyOrder({
3536
AuthenticationNotificationRequest.JSON_PROPERTY_DATA,
3637
AuthenticationNotificationRequest.JSON_PROPERTY_ENVIRONMENT,
38+
AuthenticationNotificationRequest.JSON_PROPERTY_TIMESTAMP,
3739
AuthenticationNotificationRequest.JSON_PROPERTY_TYPE
3840
})
3941

@@ -44,6 +46,9 @@ public class AuthenticationNotificationRequest {
4446
public static final String JSON_PROPERTY_ENVIRONMENT = "environment";
4547
private String environment;
4648

49+
public static final String JSON_PROPERTY_TIMESTAMP = "timestamp";
50+
private OffsetDateTime timestamp;
51+
4752
/**
4853
* Type of notification.
4954
*/
@@ -149,6 +154,39 @@ public void setEnvironment(String environment) {
149154
this.environment = environment;
150155
}
151156

157+
/**
158+
* When the event was queued.
159+
*
160+
* @param timestamp
161+
* @return the current {@code AuthenticationNotificationRequest} instance, allowing for method chaining
162+
*/
163+
public AuthenticationNotificationRequest timestamp(OffsetDateTime timestamp) {
164+
this.timestamp = timestamp;
165+
return this;
166+
}
167+
168+
/**
169+
* When the event was queued.
170+
* @return timestamp
171+
*/
172+
@ApiModelProperty(value = "When the event was queued.")
173+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
174+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
175+
public OffsetDateTime getTimestamp() {
176+
return timestamp;
177+
}
178+
179+
/**
180+
* When the event was queued.
181+
*
182+
* @param timestamp
183+
*/
184+
@JsonProperty(JSON_PROPERTY_TIMESTAMP)
185+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
186+
public void setTimestamp(OffsetDateTime timestamp) {
187+
this.timestamp = timestamp;
188+
}
189+
152190
/**
153191
* Type of notification.
154192
*
@@ -196,12 +234,13 @@ public boolean equals(Object o) {
196234
AuthenticationNotificationRequest authenticationNotificationRequest = (AuthenticationNotificationRequest) o;
197235
return Objects.equals(this.data, authenticationNotificationRequest.data) &&
198236
Objects.equals(this.environment, authenticationNotificationRequest.environment) &&
237+
Objects.equals(this.timestamp, authenticationNotificationRequest.timestamp) &&
199238
Objects.equals(this.type, authenticationNotificationRequest.type);
200239
}
201240

202241
@Override
203242
public int hashCode() {
204-
return Objects.hash(data, environment, type);
243+
return Objects.hash(data, environment, timestamp, type);
205244
}
206245

207246
@Override
@@ -210,6 +249,7 @@ public String toString() {
210249
sb.append("class AuthenticationNotificationRequest {\n");
211250
sb.append(" data: ").append(toIndentedString(data)).append("\n");
212251
sb.append(" environment: ").append(toIndentedString(environment)).append("\n");
252+
sb.append(" timestamp: ").append(toIndentedString(timestamp)).append("\n");
213253
sb.append(" type: ").append(toIndentedString(type)).append("\n");
214254
sb.append("}");
215255
return sb.toString();

src/main/java/com/adyen/model/binlookup/Amount.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Amount() {
4646
}
4747

4848
/**
49-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
49+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
5050
*
5151
* @param currency
5252
* @return the current {@code Amount} instance, allowing for method chaining
@@ -57,18 +57,18 @@ public Amount currency(String currency) {
5757
}
5858

5959
/**
60-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
60+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
6161
* @return currency
6262
*/
63-
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).")
63+
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).")
6464
@JsonProperty(JSON_PROPERTY_CURRENCY)
6565
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6666
public String getCurrency() {
6767
return currency;
6868
}
6969

7070
/**
71-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
71+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
7272
*
7373
* @param currency
7474
*/
@@ -79,7 +79,7 @@ public void setCurrency(String currency) {
7979
}
8080

8181
/**
82-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
82+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
8383
*
8484
* @param value
8585
* @return the current {@code Amount} instance, allowing for method chaining
@@ -90,18 +90,18 @@ public Amount value(Long value) {
9090
}
9191

9292
/**
93-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
93+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
9494
* @return value
9595
*/
96-
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).")
96+
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).")
9797
@JsonProperty(JSON_PROPERTY_VALUE)
9898
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9999
public Long getValue() {
100100
return value;
101101
}
102102

103103
/**
104-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
104+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
105105
*
106106
* @param value
107107
*/

src/main/java/com/adyen/model/checkout/Amount.java

+8-8
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public Amount() {
4646
}
4747

4848
/**
49-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
49+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
5050
*
5151
* @param currency
5252
* @return the current {@code Amount} instance, allowing for method chaining
@@ -57,18 +57,18 @@ public Amount currency(String currency) {
5757
}
5858

5959
/**
60-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
60+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
6161
* @return currency
6262
*/
63-
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).")
63+
@ApiModelProperty(required = true, value = "The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).")
6464
@JsonProperty(JSON_PROPERTY_CURRENCY)
6565
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
6666
public String getCurrency() {
6767
return currency;
6868
}
6969

7070
/**
71-
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes).
71+
* The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes#currency-codes).
7272
*
7373
* @param currency
7474
*/
@@ -79,7 +79,7 @@ public void setCurrency(String currency) {
7979
}
8080

8181
/**
82-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
82+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
8383
*
8484
* @param value
8585
* @return the current {@code Amount} instance, allowing for method chaining
@@ -90,18 +90,18 @@ public Amount value(Long value) {
9090
}
9191

9292
/**
93-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
93+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
9494
* @return value
9595
*/
96-
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).")
96+
@ApiModelProperty(required = true, value = "The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).")
9797
@JsonProperty(JSON_PROPERTY_VALUE)
9898
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
9999
public Long getValue() {
100100
return value;
101101
}
102102

103103
/**
104-
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes).
104+
* The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes#minor-units).
105105
*
106106
* @param value
107107
*/

src/main/java/com/adyen/model/checkout/CardDetails.java

+43-2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
CardDetails.JSON_PROPERTY_CHECKOUT_ATTEMPT_ID,
3636
CardDetails.JSON_PROPERTY_CUPSECUREPLUS_SMSCODE,
3737
CardDetails.JSON_PROPERTY_CVC,
38+
CardDetails.JSON_PROPERTY_ENCRYPTED_CARD,
3839
CardDetails.JSON_PROPERTY_ENCRYPTED_CARD_NUMBER,
3940
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_MONTH,
4041
CardDetails.JSON_PROPERTY_ENCRYPTED_EXPIRY_YEAR,
@@ -70,6 +71,9 @@ public class CardDetails {
7071
public static final String JSON_PROPERTY_CVC = "cvc";
7172
private String cvc;
7273

74+
public static final String JSON_PROPERTY_ENCRYPTED_CARD = "encryptedCard";
75+
private String encryptedCard;
76+
7377
public static final String JSON_PROPERTY_ENCRYPTED_CARD_NUMBER = "encryptedCardNumber";
7478
private String encryptedCardNumber;
7579

@@ -172,7 +176,9 @@ public enum TypeEnum {
172176

173177
GIFTCARD("giftcard"),
174178

175-
CARD("card");
179+
CARD("card"),
180+
181+
CLICKTOPAY("clicktopay");
176182

177183
private String value;
178184

@@ -348,6 +354,39 @@ public void setCvc(String cvc) {
348354
this.cvc = cvc;
349355
}
350356

357+
/**
358+
* Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
359+
*
360+
* @param encryptedCard
361+
* @return the current {@code CardDetails} instance, allowing for method chaining
362+
*/
363+
public CardDetails encryptedCard(String encryptedCard) {
364+
this.encryptedCard = encryptedCard;
365+
return this;
366+
}
367+
368+
/**
369+
* Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
370+
* @return encryptedCard
371+
*/
372+
@ApiModelProperty(value = "Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.")
373+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD)
374+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
375+
public String getEncryptedCard() {
376+
return encryptedCard;
377+
}
378+
379+
/**
380+
* Only include this for JSON Web Encryption (JWE) implementations. The JWE-encrypted card details.
381+
*
382+
* @param encryptedCard
383+
*/
384+
@JsonProperty(JSON_PROPERTY_ENCRYPTED_CARD)
385+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
386+
public void setEncryptedCard(String encryptedCard) {
387+
this.encryptedCard = encryptedCard;
388+
}
389+
351390
/**
352391
* The encrypted card number.
353392
*
@@ -1003,6 +1042,7 @@ public boolean equals(Object o) {
10031042
Objects.equals(this.checkoutAttemptId, cardDetails.checkoutAttemptId) &&
10041043
Objects.equals(this.cupsecureplusSmscode, cardDetails.cupsecureplusSmscode) &&
10051044
Objects.equals(this.cvc, cardDetails.cvc) &&
1045+
Objects.equals(this.encryptedCard, cardDetails.encryptedCard) &&
10061046
Objects.equals(this.encryptedCardNumber, cardDetails.encryptedCardNumber) &&
10071047
Objects.equals(this.encryptedExpiryMonth, cardDetails.encryptedExpiryMonth) &&
10081048
Objects.equals(this.encryptedExpiryYear, cardDetails.encryptedExpiryYear) &&
@@ -1026,7 +1066,7 @@ public boolean equals(Object o) {
10261066

10271067
@Override
10281068
public int hashCode() {
1029-
return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type);
1069+
return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCard, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcDigitalCardId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type);
10301070
}
10311071

10321072
@Override
@@ -1037,6 +1077,7 @@ public String toString() {
10371077
sb.append(" checkoutAttemptId: ").append(toIndentedString(checkoutAttemptId)).append("\n");
10381078
sb.append(" cupsecureplusSmscode: ").append(toIndentedString(cupsecureplusSmscode)).append("\n");
10391079
sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n");
1080+
sb.append(" encryptedCard: ").append(toIndentedString(encryptedCard)).append("\n");
10401081
sb.append(" encryptedCardNumber: ").append(toIndentedString(encryptedCardNumber)).append("\n");
10411082
sb.append(" encryptedExpiryMonth: ").append(toIndentedString(encryptedExpiryMonth)).append("\n");
10421083
sb.append(" encryptedExpiryYear: ").append(toIndentedString(encryptedExpiryYear)).append("\n");

0 commit comments

Comments
 (0)