Skip to content

Commit 861c2a3

Browse files
AdyenAutomationBotAdyenAutomationBotgcatanese
authored
Code generation: update services and models (#1533)
* false[adyen-sdk-automation] automated change * style(fmt): code formatted * Add test for PaymentDetailsWithThreeDS2Action * style(fmt): code formatted --------- Co-authored-by: AdyenAutomationBot <AdyenAutomationBot 38424300+AdyenAutomationBot@users.noreply.github.com> Co-authored-by: gcatanese <gcatanese@yahoo.com>
1 parent 196b680 commit 861c2a3

File tree

9 files changed

+369
-55
lines changed

9 files changed

+369
-55
lines changed

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -899,12 +899,12 @@ public void setAirlineLegDestinationCode(String airlineLegDestinationCode) {
899899

900900
/**
901901
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
902-
* minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all
902+
* minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all
903903
* zeros.
904904
*
905905
* @param airlineLegFareBaseCode The [fare basis
906906
* code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1
907-
* character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros.
907+
* character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros.
908908
* @return the current {@code AdditionalDataAirline} instance, allowing for method chaining
909909
*/
910910
public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCode) {
@@ -914,12 +914,12 @@ public AdditionalDataAirline airlineLegFareBaseCode(String airlineLegFareBaseCod
914914

915915
/**
916916
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
917-
* minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all
917+
* minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all
918918
* zeros.
919919
*
920920
* @return airlineLegFareBaseCode The [fare basis
921921
* code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1
922-
* character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros.
922+
* character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros.
923923
*/
924924
@JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE)
925925
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -929,12 +929,12 @@ public String getAirlineLegFareBaseCode() {
929929

930930
/**
931931
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
932-
* minLength: 1 character * maxLength: 6 characters * Must not be all spaces * Must not be all
932+
* minLength: 1 character * maxLength: 15 characters * Must not be all spaces * Must not be all
933933
* zeros.
934934
*
935935
* @param airlineLegFareBaseCode The [fare basis
936936
* code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1
937-
* character * maxLength: 6 characters * Must not be all spaces * Must not be all zeros.
937+
* character * maxLength: 15 characters * Must not be all spaces * Must not be all zeros.
938938
*/
939939
@JsonProperty(JSON_PROPERTY_AIRLINE_LEG_FARE_BASE_CODE)
940940
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

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

Lines changed: 39 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -466,13 +466,20 @@ public void setEnhancedSchemeDataItemDetailLineItemNrCommodityCode(
466466
}
467467

468468
/**
469-
* A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single
470-
* character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be
471-
* all zeros.
469+
* A description of the item, that provides details about the purchase. For Visa transactions with
470+
* level 3 ESD, the description must not be the same or very similar to your merchant name, or,
471+
* consist only of common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding:
472+
* ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must
473+
* not be all special characters. * Must not be blank. * Must not start with a space or be all
474+
* spaces. * Must not be all zeros.
472475
*
473-
* @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item. * Encoding:
474-
* ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. *
475-
* Must not start with a space or be all spaces. * Must not be all zeros.
476+
* @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that
477+
* provides details about the purchase. For Visa transactions with level 3 ESD, the
478+
* description must not be the same or very similar to your merchant name, or, consist only of
479+
* common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding: ASCII * Max
480+
* length: 26 characters * Must not be a single character. * Must not be blank. * Must not be
481+
* all special characters. * Must not be blank. * Must not start with a space or be all
482+
* spaces. * Must not be all zeros.
476483
* @return the current {@code AdditionalDataLevel23} instance, allowing for method chaining
477484
*/
478485
public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(
@@ -483,13 +490,20 @@ public AdditionalDataLevel23 enhancedSchemeDataItemDetailLineItemNrDescription(
483490
}
484491

485492
/**
486-
* A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single
487-
* character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be
488-
* all zeros.
493+
* A description of the item, that provides details about the purchase. For Visa transactions with
494+
* level 3 ESD, the description must not be the same or very similar to your merchant name, or,
495+
* consist only of common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding:
496+
* ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must
497+
* not be all special characters. * Must not be blank. * Must not start with a space or be all
498+
* spaces. * Must not be all zeros.
489499
*
490-
* @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item. *
491-
* Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be
492-
* blank. * Must not start with a space or be all spaces. * Must not be all zeros.
500+
* @return enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that
501+
* provides details about the purchase. For Visa transactions with level 3 ESD, the
502+
* description must not be the same or very similar to your merchant name, or, consist only of
503+
* common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding: ASCII * Max
504+
* length: 26 characters * Must not be a single character. * Must not be blank. * Must not be
505+
* all special characters. * Must not be blank. * Must not start with a space or be all
506+
* spaces. * Must not be all zeros.
493507
*/
494508
@JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION)
495509
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
@@ -498,13 +512,20 @@ public String getEnhancedSchemeDataItemDetailLineItemNrDescription() {
498512
}
499513

500514
/**
501-
* A description of the item. * Encoding: ASCII * Max length: 26 characters * Must not be a single
502-
* character. * Must not be blank. * Must not start with a space or be all spaces. * Must not be
503-
* all zeros.
515+
* A description of the item, that provides details about the purchase. For Visa transactions with
516+
* level 3 ESD, the description must not be the same or very similar to your merchant name, or,
517+
* consist only of common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding:
518+
* ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must
519+
* not be all special characters. * Must not be blank. * Must not start with a space or be all
520+
* spaces. * Must not be all zeros.
504521
*
505-
* @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item. * Encoding:
506-
* ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. *
507-
* Must not start with a space or be all spaces. * Must not be all zeros.
522+
* @param enhancedSchemeDataItemDetailLineItemNrDescription A description of the item, that
523+
* provides details about the purchase. For Visa transactions with level 3 ESD, the
524+
* description must not be the same or very similar to your merchant name, or, consist only of
525+
* common words like \&quot;product\&quot;, or \&quot;service\&quot;. * Encoding: ASCII * Max
526+
* length: 26 characters * Must not be a single character. * Must not be blank. * Must not be
527+
* all special characters. * Must not be blank. * Must not start with a space or be all
528+
* spaces. * Must not be all zeros.
508529
*/
509530
@JsonProperty(JSON_PROPERTY_ENHANCED_SCHEME_DATA_ITEM_DETAIL_LINE_ITEM_NR_DESCRIPTION)
510531
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)

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

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,11 +353,11 @@ public void setDestinationAirportCode(String destinationAirportCode) {
353353

354354
/**
355355
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
356-
* minLength: 1 character * maxLength: 6 characters * Must not start with a space or be all
356+
* minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all
357357
* spaces. * Must not be all zeros.
358358
*
359359
* @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code),
360-
* alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not start with a
360+
* alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a
361361
* space or be all spaces. * Must not be all zeros.
362362
* @return the current {@code Leg} instance, allowing for method chaining
363363
*/
@@ -368,11 +368,11 @@ public Leg fareBasisCode(String fareBasisCode) {
368368

369369
/**
370370
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
371-
* minLength: 1 character * maxLength: 6 characters * Must not start with a space or be all
371+
* minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all
372372
* spaces. * Must not be all zeros.
373373
*
374374
* @return fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code),
375-
* alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not start with a
375+
* alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a
376376
* space or be all spaces. * Must not be all zeros.
377377
*/
378378
@JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE)
@@ -383,11 +383,11 @@ public String getFareBasisCode() {
383383

384384
/**
385385
* The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. *
386-
* minLength: 1 character * maxLength: 6 characters * Must not start with a space or be all
386+
* minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all
387387
* spaces. * Must not be all zeros.
388388
*
389389
* @param fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code),
390-
* alphanumeric. * minLength: 1 character * maxLength: 6 characters * Must not start with a
390+
* alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a
391391
* space or be all spaces. * Must not be all zeros.
392392
*/
393393
@JsonProperty(JSON_PROPERTY_FARE_BASIS_CODE)

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

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
/** PaymentDetailsResponse */
2727
@JsonPropertyOrder({
28+
PaymentDetailsResponse.JSON_PROPERTY_ACTION,
2829
PaymentDetailsResponse.JSON_PROPERTY_ADDITIONAL_DATA,
2930
PaymentDetailsResponse.JSON_PROPERTY_AMOUNT,
3031
PaymentDetailsResponse.JSON_PROPERTY_DONATION_TOKEN,
@@ -42,6 +43,9 @@
4243
PaymentDetailsResponse.JSON_PROPERTY_THREE_D_S_PAYMENT_DATA
4344
})
4445
public class PaymentDetailsResponse {
46+
public static final String JSON_PROPERTY_ACTION = "action";
47+
private PaymentDetailsResponseAction action;
48+
4549
public static final String JSON_PROPERTY_ADDITIONAL_DATA = "additionalData";
4650
private Map<String, String> additionalData;
4751

@@ -182,6 +186,39 @@ public static ResultCodeEnum fromValue(String value) {
182186

183187
public PaymentDetailsResponse() {}
184188

189+
/**
190+
* action
191+
*
192+
* @param action
193+
* @return the current {@code PaymentDetailsResponse} instance, allowing for method chaining
194+
*/
195+
public PaymentDetailsResponse action(PaymentDetailsResponseAction action) {
196+
this.action = action;
197+
return this;
198+
}
199+
200+
/**
201+
* Get action
202+
*
203+
* @return action
204+
*/
205+
@JsonProperty(JSON_PROPERTY_ACTION)
206+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
207+
public PaymentDetailsResponseAction getAction() {
208+
return action;
209+
}
210+
211+
/**
212+
* action
213+
*
214+
* @param action
215+
*/
216+
@JsonProperty(JSON_PROPERTY_ACTION)
217+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
218+
public void setAction(PaymentDetailsResponseAction action) {
219+
this.action = action;
220+
}
221+
185222
/**
186223
* Contains additional information about the payment. Some data fields are included only if you
187224
* select them first: Go to **Customer Area** &gt; **Developers** &gt; **Additional data**.
@@ -911,7 +948,8 @@ public boolean equals(Object o) {
911948
return false;
912949
}
913950
PaymentDetailsResponse paymentDetailsResponse = (PaymentDetailsResponse) o;
914-
return Objects.equals(this.additionalData, paymentDetailsResponse.additionalData)
951+
return Objects.equals(this.action, paymentDetailsResponse.action)
952+
&& Objects.equals(this.additionalData, paymentDetailsResponse.additionalData)
915953
&& Objects.equals(this.amount, paymentDetailsResponse.amount)
916954
&& Objects.equals(this.donationToken, paymentDetailsResponse.donationToken)
917955
&& Objects.equals(this.fraudResult, paymentDetailsResponse.fraudResult)
@@ -931,6 +969,7 @@ public boolean equals(Object o) {
931969
@Override
932970
public int hashCode() {
933971
return Objects.hash(
972+
action,
934973
additionalData,
935974
amount,
936975
donationToken,
@@ -952,6 +991,7 @@ public int hashCode() {
952991
public String toString() {
953992
StringBuilder sb = new StringBuilder();
954993
sb.append("class PaymentDetailsResponse {\n");
994+
sb.append(" action: ").append(toIndentedString(action)).append("\n");
955995
sb.append(" additionalData: ").append(toIndentedString(additionalData)).append("\n");
956996
sb.append(" amount: ").append(toIndentedString(amount)).append("\n");
957997
sb.append(" donationToken: ").append(toIndentedString(donationToken)).append("\n");

0 commit comments

Comments
 (0)