From 513d1420401b6174834041aeed388a0618354f78 Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Thu, 6 Jun 2024 11:59:28 +0200 Subject: [PATCH] false[adyen-sdk-automation] automated change (#1297) --- .../BalancePlatformNotificationResponse.java | 6 +- .../model/checkout/AdditionalDataAirline.java | 38 +- .../model/checkout/AdditionalDataLodging.java | 40 +- .../com/adyen/model/checkout/CardDetails.java | 110 +++- .../adyen/model/checkout/CardDonations.java | 110 +++- .../CheckoutSessionThreeDS2RequestData.java | 285 +++++++++++ .../CreateCheckoutSessionRequest.java | 57 ++- .../CreateCheckoutSessionResponse.java | 57 ++- .../checkout/EcontextVoucherDetails.java | 10 +- .../adyen/model/checkout/Installments.java | 14 +- .../com/adyen/model/checkout/LineItem.java | 38 +- .../checkout/PaymentCompletionDetails.java | 38 +- .../adyen/model/checkout/PaymentDetails.java | 6 + .../model/checkout/PaymentLinkRequest.java | 43 +- .../model/checkout/PaymentLinkResponse.java | 39 +- .../adyen/model/checkout/PaymentMethod.java | 49 +- .../model/checkout/PaymentMethodToStore.java | 42 +- .../model/checkout/PaymentMethodUPIApps.java | 169 +++++++ .../adyen/model/checkout/PaymentRequest.java | 18 +- .../model/checkout/PaymentSetupRequest.java | 39 +- .../checkout/PaypalUpdateOrderRequest.java | 43 +- .../adyen/model/checkout/RecurringDetail.java | 49 +- .../SecureRemoteCommerceCheckoutData.java | 348 +++++++++++++ .../adyen/model/checkout/SubMerchantInfo.java | 38 +- .../com/adyen/model/checkout/TaxTotal.java | 134 +++++ .../LegalEntityAssociation.java | 2 + .../TaxReportingClassification.java | 8 +- .../com/adyen/model/management/BcmcInfo.java | 43 +- .../adyen/model/management/PaymentMethod.java | 80 ++- .../management/PaymentMethodSetupInfo.java | 80 ++- .../ReprocessAndroidAppResponse.java | 133 +++++ .../adyen/model/management/WeChatPayInfo.java | 169 +++++++ .../model/management/WeChatPayPosInfo.java | 169 +++++++ .../AccountNotificationResponse.java | 6 +- .../PaymentMethodNotificationResponse.java | 6 +- .../TerminalSettingsNotificationResponse.java | 6 +- .../model/transfers/BankCategoryData.java | 8 +- .../transfers/ConfirmationTrackingData.java | 16 +- .../transfers/EstimationTrackingData.java | 8 +- .../adyen/model/transfers/ExternalReason.java | 18 +- .../transfers/InternalReviewTrackingData.java | 24 +- .../com/adyen/model/transfers/IssuedCard.java | 12 +- .../model/transfers/PaymentInstrument.java | 6 +- .../model/transfers/PlatformPayment.java | 4 + .../adyen/model/transfers/RoutingDetails.java | 284 +++++++++++ .../com/adyen/model/transfers/Transfer.java | 14 +- .../adyen/model/transfers/TransferData.java | 20 +- .../adyen/model/transfers/TransferEvent.java | 17 +- .../adyen/model/transfers/TransferInfo.java | 22 +- .../TransferServiceRestServiceError.java | 477 ++++++++++++++++++ .../BalancePlatformNotificationResponse.java | 6 +- .../transferwebhooks/BankCategoryData.java | 8 +- .../ConfirmationTrackingData.java | 16 +- .../EstimationTrackingData.java | 8 +- .../transferwebhooks/ExternalReason.java | 18 +- .../InternalReviewTrackingData.java | 24 +- .../model/transferwebhooks/IssuedCard.java | 12 +- .../transferwebhooks/PaymentInstrument.java | 6 +- .../transferwebhooks/PlatformPayment.java | 4 + .../model/transferwebhooks/TransferData.java | 20 +- .../model/transferwebhooks/TransferEvent.java | 17 +- .../AndroidFilesCompanyLevelApi.java | 40 ++ .../adyen/service/transfers/TransfersApi.java | 2 +- 63 files changed, 3354 insertions(+), 279 deletions(-) create mode 100644 src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java create mode 100644 src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java create mode 100644 src/main/java/com/adyen/model/checkout/SecureRemoteCommerceCheckoutData.java create mode 100644 src/main/java/com/adyen/model/checkout/TaxTotal.java create mode 100644 src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java create mode 100644 src/main/java/com/adyen/model/management/WeChatPayInfo.java create mode 100644 src/main/java/com/adyen/model/management/WeChatPayPosInfo.java create mode 100644 src/main/java/com/adyen/model/transfers/RoutingDetails.java create mode 100644 src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java diff --git a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java index 36085cabf..9c15b89a6 100644 --- a/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/acswebhooks/BalancePlatformNotificationResponse.java @@ -47,10 +47,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * @return notificationResponse **/ - @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") + @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +60,7 @@ public String getNotificationResponse() { /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * * @param notificationResponse */ diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java index 6b7376c18..f9c1d62e9 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataAirline.java @@ -40,6 +40,7 @@ AdditionalDataAirline.JSON_PROPERTY_AIRLINE_CUSTOMER_REFERENCE_NUMBER, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_DOCUMENT_TYPE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_FLIGHT_DATE, + AdditionalDataAirline.JSON_PROPERTY_AIRLINE_ISSUE_DATE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_LEG_CLASS_OF_TRAVEL, AdditionalDataAirline.JSON_PROPERTY_AIRLINE_LEG_DATE_OF_TRAVEL, @@ -89,6 +90,9 @@ public class AdditionalDataAirline { public static final String JSON_PROPERTY_AIRLINE_FLIGHT_DATE = "airline.flight_date"; private String airlineFlightDate; + public static final String JSON_PROPERTY_AIRLINE_ISSUE_DATE = "airline.issue_date"; + private String airlineIssueDate; + public static final String JSON_PROPERTY_AIRLINE_LEG_CARRIER_CODE = "airline.leg.carrier_code"; private String airlineLegCarrierCode; @@ -419,6 +423,36 @@ public void setAirlineFlightDate(String airlineFlightDate) { } + public AdditionalDataAirline airlineIssueDate(String airlineIssueDate) { + this.airlineIssueDate = airlineIssueDate; + return this; + } + + /** + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * @return airlineIssueDate + **/ + @ApiModelProperty(value = "The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD") + @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getAirlineIssueDate() { + return airlineIssueDate; + } + + + /** + * The date that the ticket was issued to the passenger. * minLength: 6 characters * maxLength: 6 characters * Date format: YYMMDD + * + * @param airlineIssueDate + */ + @JsonProperty(JSON_PROPERTY_AIRLINE_ISSUE_DATE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAirlineIssueDate(String airlineIssueDate) { + this.airlineIssueDate = airlineIssueDate; + } + + public AdditionalDataAirline airlineLegCarrierCode(String airlineLegCarrierCode) { this.airlineLegCarrierCode = airlineLegCarrierCode; return this; @@ -1010,6 +1044,7 @@ public boolean equals(Object o) { Objects.equals(this.airlineCustomerReferenceNumber, additionalDataAirline.airlineCustomerReferenceNumber) && Objects.equals(this.airlineDocumentType, additionalDataAirline.airlineDocumentType) && Objects.equals(this.airlineFlightDate, additionalDataAirline.airlineFlightDate) && + Objects.equals(this.airlineIssueDate, additionalDataAirline.airlineIssueDate) && Objects.equals(this.airlineLegCarrierCode, additionalDataAirline.airlineLegCarrierCode) && Objects.equals(this.airlineLegClassOfTravel, additionalDataAirline.airlineLegClassOfTravel) && Objects.equals(this.airlineLegDateOfTravel, additionalDataAirline.airlineLegDateOfTravel) && @@ -1033,7 +1068,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerTelephoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); + return Objects.hash(airlineAgencyInvoiceNumber, airlineAgencyPlanName, airlineAirlineCode, airlineAirlineDesignatorCode, airlineBoardingFee, airlineComputerizedReservationSystem, airlineCustomerReferenceNumber, airlineDocumentType, airlineFlightDate, airlineIssueDate, airlineLegCarrierCode, airlineLegClassOfTravel, airlineLegDateOfTravel, airlineLegDepartAirport, airlineLegDepartTax, airlineLegDestinationCode, airlineLegFareBaseCode, airlineLegFlightNumber, airlineLegStopOverCode, airlinePassengerDateOfBirth, airlinePassengerFirstName, airlinePassengerLastName, airlinePassengerTelephoneNumber, airlinePassengerTravellerType, airlinePassengerName, airlineTicketIssueAddress, airlineTicketNumber, airlineTravelAgencyCode, airlineTravelAgencyName); } @Override @@ -1049,6 +1084,7 @@ public String toString() { sb.append(" airlineCustomerReferenceNumber: ").append(toIndentedString(airlineCustomerReferenceNumber)).append("\n"); sb.append(" airlineDocumentType: ").append(toIndentedString(airlineDocumentType)).append("\n"); sb.append(" airlineFlightDate: ").append(toIndentedString(airlineFlightDate)).append("\n"); + sb.append(" airlineIssueDate: ").append(toIndentedString(airlineIssueDate)).append("\n"); sb.append(" airlineLegCarrierCode: ").append(toIndentedString(airlineLegCarrierCode)).append("\n"); sb.append(" airlineLegClassOfTravel: ").append(toIndentedString(airlineLegClassOfTravel)).append("\n"); sb.append(" airlineLegDateOfTravel: ").append(toIndentedString(airlineLegDateOfTravel)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java index 724091c85..3c84c554b 100644 --- a/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java +++ b/src/main/java/com/adyen/model/checkout/AdditionalDataLodging.java @@ -31,6 +31,7 @@ * AdditionalDataLodging */ @JsonPropertyOrder({ + AdditionalDataLodging.JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_IN_DATE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CHECK_OUT_DATE, AdditionalDataLodging.JSON_PROPERTY_LODGING_CUSTOMER_SERVICE_TOLL_FREE_NUMBER, @@ -50,6 +51,9 @@ }) public class AdditionalDataLodging { + public static final String JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE = "lodging.SpecialProgramCode"; + private String lodgingSpecialProgramCode; + public static final String JSON_PROPERTY_LODGING_CHECK_IN_DATE = "lodging.checkInDate"; private String lodgingCheckInDate; @@ -101,6 +105,36 @@ public class AdditionalDataLodging { public AdditionalDataLodging() { } + public AdditionalDataLodging lodgingSpecialProgramCode(String lodgingSpecialProgramCode) { + this.lodgingSpecialProgramCode = lodgingSpecialProgramCode; + return this; + } + + /** + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * @return lodgingSpecialProgramCode + **/ + @ApiModelProperty(value = "A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit") + @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getLodgingSpecialProgramCode() { + return lodgingSpecialProgramCode; + } + + + /** + * A code that corresponds to the category of lodging charges for the payment. Possible values: * 1: Lodging * 2: No show reservation * 3: Advanced deposit + * + * @param lodgingSpecialProgramCode + */ + @JsonProperty(JSON_PROPERTY_LODGING_SPECIAL_PROGRAM_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setLodgingSpecialProgramCode(String lodgingSpecialProgramCode) { + this.lodgingSpecialProgramCode = lodgingSpecialProgramCode; + } + + public AdditionalDataLodging lodgingCheckInDate(String lodgingCheckInDate) { this.lodgingCheckInDate = lodgingCheckInDate; return this; @@ -593,7 +627,8 @@ public boolean equals(Object o) { return false; } AdditionalDataLodging additionalDataLodging = (AdditionalDataLodging) o; - return Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && + return Objects.equals(this.lodgingSpecialProgramCode, additionalDataLodging.lodgingSpecialProgramCode) && + Objects.equals(this.lodgingCheckInDate, additionalDataLodging.lodgingCheckInDate) && Objects.equals(this.lodgingCheckOutDate, additionalDataLodging.lodgingCheckOutDate) && Objects.equals(this.lodgingCustomerServiceTollFreeNumber, additionalDataLodging.lodgingCustomerServiceTollFreeNumber) && Objects.equals(this.lodgingFireSafetyActIndicator, additionalDataLodging.lodgingFireSafetyActIndicator) && @@ -613,13 +648,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); + return Objects.hash(lodgingSpecialProgramCode, lodgingCheckInDate, lodgingCheckOutDate, lodgingCustomerServiceTollFreeNumber, lodgingFireSafetyActIndicator, lodgingFolioCashAdvances, lodgingFolioNumber, lodgingFoodBeverageCharges, lodgingNoShowIndicator, lodgingPrepaidExpenses, lodgingPropertyPhoneNumber, lodgingRoom1NumberOfNights, lodgingRoom1Rate, lodgingTotalRoomTax, lodgingTotalTax, travelEntertainmentAuthDataDuration, travelEntertainmentAuthDataMarket); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class AdditionalDataLodging {\n"); + sb.append(" lodgingSpecialProgramCode: ").append(toIndentedString(lodgingSpecialProgramCode)).append("\n"); sb.append(" lodgingCheckInDate: ").append(toIndentedString(lodgingCheckInDate)).append("\n"); sb.append(" lodgingCheckOutDate: ").append(toIndentedString(lodgingCheckOutDate)).append("\n"); sb.append(" lodgingCustomerServiceTollFreeNumber: ").append(toIndentedString(lodgingCustomerServiceTollFreeNumber)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CardDetails.java b/src/main/java/com/adyen/model/checkout/CardDetails.java index 5b247fc27..f8053ddaa 100644 --- a/src/main/java/com/adyen/model/checkout/CardDetails.java +++ b/src/main/java/com/adyen/model/checkout/CardDetails.java @@ -47,6 +47,9 @@ CardDetails.JSON_PROPERTY_NUMBER, CardDetails.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, CardDetails.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, + CardDetails.JSON_PROPERTY_SRC_CORRELATION_ID, + CardDetails.JSON_PROPERTY_SRC_SCHEME, + CardDetails.JSON_PROPERTY_SRC_TOKEN_REFERENCE, CardDetails.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, CardDetails.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDetails.JSON_PROPERTY_TYPE @@ -138,6 +141,15 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; + public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; + private String srcCorrelationId; + + public static final String JSON_PROPERTY_SRC_SCHEME = "srcScheme"; + private String srcScheme; + + public static final String JSON_PROPERTY_SRC_TOKEN_REFERENCE = "srcTokenReference"; + private String srcTokenReference; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -679,6 +691,96 @@ public void setShopperNotificationReference(String shopperNotificationReference) } + public CardDetails srcCorrelationId(String srcCorrelationId) { + this.srcCorrelationId = srcCorrelationId; + return this; + } + + /** + * An identifier used for the Click to Pay transaction. + * @return srcCorrelationId + **/ + @ApiModelProperty(value = "An identifier used for the Click to Pay transaction.") + @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcCorrelationId() { + return srcCorrelationId; + } + + + /** + * An identifier used for the Click to Pay transaction. + * + * @param srcCorrelationId + */ + @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcCorrelationId(String srcCorrelationId) { + this.srcCorrelationId = srcCorrelationId; + } + + + public CardDetails srcScheme(String srcScheme) { + this.srcScheme = srcScheme; + return this; + } + + /** + * The scheme that is being used for Click to Pay. + * @return srcScheme + **/ + @ApiModelProperty(value = "The scheme that is being used for Click to Pay.") + @JsonProperty(JSON_PROPERTY_SRC_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcScheme() { + return srcScheme; + } + + + /** + * The scheme that is being used for Click to Pay. + * + * @param srcScheme + */ + @JsonProperty(JSON_PROPERTY_SRC_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcScheme(String srcScheme) { + this.srcScheme = srcScheme; + } + + + public CardDetails srcTokenReference(String srcTokenReference) { + this.srcTokenReference = srcTokenReference; + return this; + } + + /** + * The reference for the Click to Pay token. + * @return srcTokenReference + **/ + @ApiModelProperty(value = "The reference for the Click to Pay token.") + @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcTokenReference() { + return srcTokenReference; + } + + + /** + * The reference for the Click to Pay token. + * + * @param srcTokenReference + */ + @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcTokenReference(String srcTokenReference) { + this.srcTokenReference = srcTokenReference; + } + + public CardDetails storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; return this; @@ -797,6 +899,9 @@ public boolean equals(Object o) { Objects.equals(this.number, cardDetails.number) && Objects.equals(this.recurringDetailReference, cardDetails.recurringDetailReference) && Objects.equals(this.shopperNotificationReference, cardDetails.shopperNotificationReference) && + Objects.equals(this.srcCorrelationId, cardDetails.srcCorrelationId) && + Objects.equals(this.srcScheme, cardDetails.srcScheme) && + Objects.equals(this.srcTokenReference, cardDetails.srcTokenReference) && Objects.equals(this.storedPaymentMethodId, cardDetails.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, cardDetails.threeDS2SdkVersion) && Objects.equals(this.type, cardDetails.type); @@ -804,7 +909,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -827,6 +932,9 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); + sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); + sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CardDonations.java b/src/main/java/com/adyen/model/checkout/CardDonations.java index 14f6226a3..62b106e18 100644 --- a/src/main/java/com/adyen/model/checkout/CardDonations.java +++ b/src/main/java/com/adyen/model/checkout/CardDonations.java @@ -47,6 +47,9 @@ CardDonations.JSON_PROPERTY_NUMBER, CardDonations.JSON_PROPERTY_RECURRING_DETAIL_REFERENCE, CardDonations.JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE, + CardDonations.JSON_PROPERTY_SRC_CORRELATION_ID, + CardDonations.JSON_PROPERTY_SRC_SCHEME, + CardDonations.JSON_PROPERTY_SRC_TOKEN_REFERENCE, CardDonations.JSON_PROPERTY_STORED_PAYMENT_METHOD_ID, CardDonations.JSON_PROPERTY_THREE_D_S2_SDK_VERSION, CardDonations.JSON_PROPERTY_TYPE @@ -138,6 +141,15 @@ public static FundingSourceEnum fromValue(String value) { public static final String JSON_PROPERTY_SHOPPER_NOTIFICATION_REFERENCE = "shopperNotificationReference"; private String shopperNotificationReference; + public static final String JSON_PROPERTY_SRC_CORRELATION_ID = "srcCorrelationId"; + private String srcCorrelationId; + + public static final String JSON_PROPERTY_SRC_SCHEME = "srcScheme"; + private String srcScheme; + + public static final String JSON_PROPERTY_SRC_TOKEN_REFERENCE = "srcTokenReference"; + private String srcTokenReference; + public static final String JSON_PROPERTY_STORED_PAYMENT_METHOD_ID = "storedPaymentMethodId"; private String storedPaymentMethodId; @@ -679,6 +691,96 @@ public void setShopperNotificationReference(String shopperNotificationReference) } + public CardDonations srcCorrelationId(String srcCorrelationId) { + this.srcCorrelationId = srcCorrelationId; + return this; + } + + /** + * An identifier used for the Click to Pay transaction. + * @return srcCorrelationId + **/ + @ApiModelProperty(value = "An identifier used for the Click to Pay transaction.") + @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcCorrelationId() { + return srcCorrelationId; + } + + + /** + * An identifier used for the Click to Pay transaction. + * + * @param srcCorrelationId + */ + @JsonProperty(JSON_PROPERTY_SRC_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcCorrelationId(String srcCorrelationId) { + this.srcCorrelationId = srcCorrelationId; + } + + + public CardDonations srcScheme(String srcScheme) { + this.srcScheme = srcScheme; + return this; + } + + /** + * The scheme that is being used for Click to Pay. + * @return srcScheme + **/ + @ApiModelProperty(value = "The scheme that is being used for Click to Pay.") + @JsonProperty(JSON_PROPERTY_SRC_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcScheme() { + return srcScheme; + } + + + /** + * The scheme that is being used for Click to Pay. + * + * @param srcScheme + */ + @JsonProperty(JSON_PROPERTY_SRC_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcScheme(String srcScheme) { + this.srcScheme = srcScheme; + } + + + public CardDonations srcTokenReference(String srcTokenReference) { + this.srcTokenReference = srcTokenReference; + return this; + } + + /** + * The reference for the Click to Pay token. + * @return srcTokenReference + **/ + @ApiModelProperty(value = "The reference for the Click to Pay token.") + @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getSrcTokenReference() { + return srcTokenReference; + } + + + /** + * The reference for the Click to Pay token. + * + * @param srcTokenReference + */ + @JsonProperty(JSON_PROPERTY_SRC_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSrcTokenReference(String srcTokenReference) { + this.srcTokenReference = srcTokenReference; + } + + public CardDonations storedPaymentMethodId(String storedPaymentMethodId) { this.storedPaymentMethodId = storedPaymentMethodId; return this; @@ -797,6 +899,9 @@ public boolean equals(Object o) { Objects.equals(this.number, cardDonations.number) && Objects.equals(this.recurringDetailReference, cardDonations.recurringDetailReference) && Objects.equals(this.shopperNotificationReference, cardDonations.shopperNotificationReference) && + Objects.equals(this.srcCorrelationId, cardDonations.srcCorrelationId) && + Objects.equals(this.srcScheme, cardDonations.srcScheme) && + Objects.equals(this.srcTokenReference, cardDonations.srcTokenReference) && Objects.equals(this.storedPaymentMethodId, cardDonations.storedPaymentMethodId) && Objects.equals(this.threeDS2SdkVersion, cardDonations.threeDS2SdkVersion) && Objects.equals(this.type, cardDonations.type); @@ -804,7 +909,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, storedPaymentMethodId, threeDS2SdkVersion, type); + return Objects.hash(brand, checkoutAttemptId, cupsecureplusSmscode, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, fundingSource, holderName, networkPaymentReference, number, recurringDetailReference, shopperNotificationReference, srcCorrelationId, srcScheme, srcTokenReference, storedPaymentMethodId, threeDS2SdkVersion, type); } @Override @@ -827,6 +932,9 @@ public String toString() { sb.append(" number: ").append(toIndentedString(number)).append("\n"); sb.append(" recurringDetailReference: ").append(toIndentedString(recurringDetailReference)).append("\n"); sb.append(" shopperNotificationReference: ").append(toIndentedString(shopperNotificationReference)).append("\n"); + sb.append(" srcCorrelationId: ").append(toIndentedString(srcCorrelationId)).append("\n"); + sb.append(" srcScheme: ").append(toIndentedString(srcScheme)).append("\n"); + sb.append(" srcTokenReference: ").append(toIndentedString(srcTokenReference)).append("\n"); sb.append(" storedPaymentMethodId: ").append(toIndentedString(storedPaymentMethodId)).append("\n"); sb.append(" threeDS2SdkVersion: ").append(toIndentedString(threeDS2SdkVersion)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java new file mode 100644 index 000000000..f13d75727 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/CheckoutSessionThreeDS2RequestData.java @@ -0,0 +1,285 @@ +/* + * 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 java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.checkout.Phone; +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; + + +/** + * CheckoutSessionThreeDS2RequestData + */ +@JsonPropertyOrder({ + CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_HOME_PHONE, + CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_MOBILE_PHONE, + CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND, + CheckoutSessionThreeDS2RequestData.JSON_PROPERTY_WORK_PHONE +}) + +public class CheckoutSessionThreeDS2RequestData { + public static final String JSON_PROPERTY_HOME_PHONE = "homePhone"; + private Phone homePhone; + + public static final String JSON_PROPERTY_MOBILE_PHONE = "mobilePhone"; + private Phone mobilePhone; + + /** + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + */ + public enum ThreeDSRequestorChallengeIndEnum { + _01("01"), + + _02("02"), + + _03("03"), + + _04("04"), + + _05("05"), + + _06("06"); + + private String value; + + ThreeDSRequestorChallengeIndEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static ThreeDSRequestorChallengeIndEnum fromValue(String value) { + for (ThreeDSRequestorChallengeIndEnum b : ThreeDSRequestorChallengeIndEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND = "threeDSRequestorChallengeInd"; + private ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd; + + public static final String JSON_PROPERTY_WORK_PHONE = "workPhone"; + private Phone workPhone; + + public CheckoutSessionThreeDS2RequestData() { + } + + public CheckoutSessionThreeDS2RequestData homePhone(Phone homePhone) { + this.homePhone = homePhone; + return this; + } + + /** + * Get homePhone + * @return homePhone + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_HOME_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Phone getHomePhone() { + return homePhone; + } + + + /** + * homePhone + * + * @param homePhone + */ + @JsonProperty(JSON_PROPERTY_HOME_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setHomePhone(Phone homePhone) { + this.homePhone = homePhone; + } + + + public CheckoutSessionThreeDS2RequestData mobilePhone(Phone mobilePhone) { + this.mobilePhone = mobilePhone; + return this; + } + + /** + * Get mobilePhone + * @return mobilePhone + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Phone getMobilePhone() { + return mobilePhone; + } + + + /** + * mobilePhone + * + * @param mobilePhone + */ + @JsonProperty(JSON_PROPERTY_MOBILE_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMobilePhone(Phone mobilePhone) { + this.mobilePhone = mobilePhone; + } + + + public CheckoutSessionThreeDS2RequestData threeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; + return this; + } + + /** + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * @return threeDSRequestorChallengeInd + **/ + @ApiModelProperty(value = "Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only") + @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public ThreeDSRequestorChallengeIndEnum getThreeDSRequestorChallengeInd() { + return threeDSRequestorChallengeInd; + } + + + /** + * Indicates whether a challenge is requested for this transaction. Possible values: * **01** — No preference * **02** — No challenge requested * **03** — Challenge requested (3DS Requestor preference) * **04** — Challenge requested (Mandate) * **05** — No challenge (transactional risk analysis is already performed) * **06** — Data Only + * + * @param threeDSRequestorChallengeInd + */ + @JsonProperty(JSON_PROPERTY_THREE_D_S_REQUESTOR_CHALLENGE_IND) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThreeDSRequestorChallengeInd(ThreeDSRequestorChallengeIndEnum threeDSRequestorChallengeInd) { + this.threeDSRequestorChallengeInd = threeDSRequestorChallengeInd; + } + + + public CheckoutSessionThreeDS2RequestData workPhone(Phone workPhone) { + this.workPhone = workPhone; + return this; + } + + /** + * Get workPhone + * @return workPhone + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WORK_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Phone getWorkPhone() { + return workPhone; + } + + + /** + * workPhone + * + * @param workPhone + */ + @JsonProperty(JSON_PROPERTY_WORK_PHONE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWorkPhone(Phone workPhone) { + this.workPhone = workPhone; + } + + + /** + * Return true if this CheckoutSessionThreeDS2RequestData object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckoutSessionThreeDS2RequestData checkoutSessionThreeDS2RequestData = (CheckoutSessionThreeDS2RequestData) o; + return Objects.equals(this.homePhone, checkoutSessionThreeDS2RequestData.homePhone) && + Objects.equals(this.mobilePhone, checkoutSessionThreeDS2RequestData.mobilePhone) && + Objects.equals(this.threeDSRequestorChallengeInd, checkoutSessionThreeDS2RequestData.threeDSRequestorChallengeInd) && + Objects.equals(this.workPhone, checkoutSessionThreeDS2RequestData.workPhone); + } + + @Override + public int hashCode() { + return Objects.hash(homePhone, mobilePhone, threeDSRequestorChallengeInd, workPhone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckoutSessionThreeDS2RequestData {\n"); + sb.append(" homePhone: ").append(toIndentedString(homePhone)).append("\n"); + sb.append(" mobilePhone: ").append(toIndentedString(mobilePhone)).append("\n"); + sb.append(" threeDSRequestorChallengeInd: ").append(toIndentedString(threeDSRequestorChallengeInd)).append("\n"); + sb.append(" workPhone: ").append(toIndentedString(workPhone)).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 CheckoutSessionThreeDS2RequestData given an JSON string + * + * @param jsonString JSON string + * @return An instance of CheckoutSessionThreeDS2RequestData + * @throws JsonProcessingException if the JSON string is invalid with respect to CheckoutSessionThreeDS2RequestData + */ + public static CheckoutSessionThreeDS2RequestData fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, CheckoutSessionThreeDS2RequestData.class); + } +/** + * Convert an instance of CheckoutSessionThreeDS2RequestData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} + diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java index 7ba26bf11..6dd6b9902 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionRequest.java @@ -22,6 +22,7 @@ import com.adyen.model.checkout.AuthenticationData; import com.adyen.model.checkout.BillingAddress; import com.adyen.model.checkout.CheckoutSessionInstallmentOption; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; import com.adyen.model.checkout.Company; import com.adyen.model.checkout.DeliveryAddress; import com.adyen.model.checkout.FundOrigin; @@ -111,6 +112,7 @@ CreateCheckoutSessionRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE, CreateCheckoutSessionRequest.JSON_PROPERTY_TELEPHONE_NUMBER, CreateCheckoutSessionRequest.JSON_PROPERTY_THEME_ID, + CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, CreateCheckoutSessionRequest.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, CreateCheckoutSessionRequest.JSON_PROPERTY_TRUSTED_SHOPPER }) @@ -472,6 +474,9 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; + public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; + private CheckoutSessionThreeDS2RequestData threeDS2RequestData; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; @Deprecated private Boolean threeDSAuthenticationOnly; @@ -992,10 +997,10 @@ public CreateCheckoutSessionRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return enableOneClick **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition).") @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1005,7 +1010,7 @@ public Boolean getEnableOneClick() { /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * * @param enableOneClick */ @@ -1052,10 +1057,10 @@ public CreateCheckoutSessionRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * @return enableRecurring **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments.") @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1065,7 +1070,7 @@ public Boolean getEnableRecurring() { /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * * @param enableRecurring */ @@ -2134,10 +2139,10 @@ public CreateCheckoutSessionRequest storePaymentMethod(Boolean storePaymentMetho } /** - * When this is set to **true** and the `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return storePaymentMethod **/ - @ApiModelProperty(value = "When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).") @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2147,7 +2152,7 @@ public Boolean getStorePaymentMethod() { /** - * When this is set to **true** and the `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * * @param storePaymentMethod */ @@ -2248,6 +2253,36 @@ public void setThemeId(String themeId) { } + public CreateCheckoutSessionRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + return this; + } + + /** + * Get threeDS2RequestData + * @return threeDS2RequestData + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { + return threeDS2RequestData; + } + + + /** + * threeDS2RequestData + * + * @param threeDS2RequestData + */ + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + } + + @Deprecated public CreateCheckoutSessionRequest threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; @@ -2381,13 +2416,14 @@ public boolean equals(Object o) { Objects.equals(this.storePaymentMethodMode, createCheckoutSessionRequest.storePaymentMethodMode) && Objects.equals(this.telephoneNumber, createCheckoutSessionRequest.telephoneNumber) && Objects.equals(this.themeId, createCheckoutSessionRequest.themeId) && + Objects.equals(this.threeDS2RequestData, createCheckoutSessionRequest.threeDS2RequestData) && Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionRequest.threeDSAuthenticationOnly) && Objects.equals(this.trustedShopper, createCheckoutSessionRequest.trustedShopper); } @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDSAuthenticationOnly, trustedShopper); + return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper); } @Override @@ -2451,6 +2487,7 @@ public String toString() { sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java index 31fa1776f..f353994ee 100644 --- a/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java +++ b/src/main/java/com/adyen/model/checkout/CreateCheckoutSessionResponse.java @@ -22,6 +22,7 @@ import com.adyen.model.checkout.AuthenticationData; import com.adyen.model.checkout.BillingAddress; import com.adyen.model.checkout.CheckoutSessionInstallmentOption; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; import com.adyen.model.checkout.Company; import com.adyen.model.checkout.DeliveryAddress; import com.adyen.model.checkout.FundOrigin; @@ -112,6 +113,7 @@ CreateCheckoutSessionResponse.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE, CreateCheckoutSessionResponse.JSON_PROPERTY_TELEPHONE_NUMBER, CreateCheckoutSessionResponse.JSON_PROPERTY_THEME_ID, + CreateCheckoutSessionResponse.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, CreateCheckoutSessionResponse.JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY, CreateCheckoutSessionResponse.JSON_PROPERTY_TRUSTED_SHOPPER, CreateCheckoutSessionResponse.JSON_PROPERTY_URL @@ -480,6 +482,9 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; + public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; + private CheckoutSessionThreeDS2RequestData threeDS2RequestData; + public static final String JSON_PROPERTY_THREE_D_S_AUTHENTICATION_ONLY = "threeDSAuthenticationOnly"; @Deprecated private Boolean threeDSAuthenticationOnly; @@ -1003,10 +1008,10 @@ public CreateCheckoutSessionResponse enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return enableOneClick **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition).") @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1016,7 +1021,7 @@ public Boolean getEnableOneClick() { /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * * @param enableOneClick */ @@ -1063,10 +1068,10 @@ public CreateCheckoutSessionResponse enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * @return enableRecurring **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments.") @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1076,7 +1081,7 @@ public Boolean getEnableRecurring() { /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * * @param enableRecurring */ @@ -2205,10 +2210,10 @@ public CreateCheckoutSessionResponse storePaymentMethod(Boolean storePaymentMeth } /** - * When this is set to **true** and the `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return storePaymentMethod **/ - @ApiModelProperty(value = "When this is set to **true** and the `shopperReference` is provided, the payment details will be stored.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).") @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2218,7 +2223,7 @@ public Boolean getStorePaymentMethod() { /** - * When this is set to **true** and the `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * * @param storePaymentMethod */ @@ -2319,6 +2324,36 @@ public void setThemeId(String themeId) { } + public CreateCheckoutSessionResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + return this; + } + + /** + * Get threeDS2RequestData + * @return threeDS2RequestData + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { + return threeDS2RequestData; + } + + + /** + * threeDS2RequestData + * + * @param threeDS2RequestData + */ + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + } + + @Deprecated public CreateCheckoutSessionResponse threeDSAuthenticationOnly(Boolean threeDSAuthenticationOnly) { this.threeDSAuthenticationOnly = threeDSAuthenticationOnly; @@ -2484,6 +2519,7 @@ public boolean equals(Object o) { Objects.equals(this.storePaymentMethodMode, createCheckoutSessionResponse.storePaymentMethodMode) && Objects.equals(this.telephoneNumber, createCheckoutSessionResponse.telephoneNumber) && Objects.equals(this.themeId, createCheckoutSessionResponse.themeId) && + Objects.equals(this.threeDS2RequestData, createCheckoutSessionResponse.threeDS2RequestData) && Objects.equals(this.threeDSAuthenticationOnly, createCheckoutSessionResponse.threeDSAuthenticationOnly) && Objects.equals(this.trustedShopper, createCheckoutSessionResponse.trustedShopper) && Objects.equals(this.url, createCheckoutSessionResponse.url); @@ -2491,7 +2527,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDSAuthenticationOnly, trustedShopper, url); + return Objects.hash(accountInfo, additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, authenticationData, billingAddress, blockedPaymentMethods, captureDelayHours, channel, company, countryCode, dateOfBirth, deliverAt, deliveryAddress, enableOneClick, enablePayOut, enableRecurring, expiresAt, fundOrigin, fundRecipient, id, installmentOptions, lineItems, mandate, mcc, merchantAccount, merchantOrderReference, metadata, mode, mpiData, platformChargebackLogic, recurringExpiry, recurringFrequency, recurringProcessingModel, redirectFromIssuerMethod, redirectToIssuerMethod, reference, returnUrl, riskData, sessionData, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, showInstallmentAmount, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethod, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, threeDSAuthenticationOnly, trustedShopper, url); } @Override @@ -2557,6 +2593,7 @@ public String toString() { sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" threeDSAuthenticationOnly: ").append(toIndentedString(threeDSAuthenticationOnly)).append("\n"); sb.append(" trustedShopper: ").append(toIndentedString(trustedShopper)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java index 10ea29223..f83cc22be 100644 --- a/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java +++ b/src/main/java/com/adyen/model/checkout/EcontextVoucherDetails.java @@ -59,9 +59,15 @@ public class EcontextVoucherDetails { * **econtextvoucher** */ public enum TypeEnum { - SEVENELEVEN("econtext_seveneleven"), + ECONTEXT_SEVEN_ELEVEN("econtext_seven_eleven"), - STORES("econtext_stores"); + ECONTEXT_ONLINE("econtext_online"), + + ECONTEXT("econtext"), + + ECONTEXT_STORES("econtext_stores"), + + ECONTEXT_ATM("econtext_atm"); private String value; diff --git a/src/main/java/com/adyen/model/checkout/Installments.java b/src/main/java/com/adyen/model/checkout/Installments.java index d8adb1d9e..6ba609919 100644 --- a/src/main/java/com/adyen/model/checkout/Installments.java +++ b/src/main/java/com/adyen/model/checkout/Installments.java @@ -41,7 +41,7 @@ public class Installments { private Integer extra; /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. */ public enum PlanEnum { BUYNOW_PAYLATER("buynow_paylater"), @@ -134,10 +134,10 @@ public Installments plan(PlanEnum plan) { } /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * @return plan **/ - @ApiModelProperty(value = "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. ") + @ApiModelProperty(value = "The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. ") @JsonProperty(JSON_PROPERTY_PLAN) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -147,7 +147,7 @@ public PlanEnum getPlan() { /** - * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. + * The installment plan, used for [card installments in Japan](https://docs.adyen.com/payment-methods/cards/credit-card-installments#make-a-payment-japan). and [Mexico](https://docs.adyen.com/payment-methods/cards/credit-card-installments/#getting-paid-mexico). By default, this is set to **regular**. * * @param plan */ @@ -164,10 +164,10 @@ public Installments value(Integer value) { } /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * @return value **/ - @ApiModelProperty(required = true, value = "Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico") + @ApiModelProperty(required = true, value = "Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico.") @JsonProperty(JSON_PROPERTY_VALUE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -177,7 +177,7 @@ public Integer getValue() { /** - * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico + * Defines the number of installments. Usually, the maximum allowed number of installments is capped. For example, it may not be possible to split a payment in more than 24 installments. The acquirer sets this upper limit, so its value may vary. This value can be zero for Installments processed in Mexico. * * @param value */ diff --git a/src/main/java/com/adyen/model/checkout/LineItem.java b/src/main/java/com/adyen/model/checkout/LineItem.java index 0ddbf5896..7628d6537 100644 --- a/src/main/java/com/adyen/model/checkout/LineItem.java +++ b/src/main/java/com/adyen/model/checkout/LineItem.java @@ -40,6 +40,7 @@ LineItem.JSON_PROPERTY_IMAGE_URL, LineItem.JSON_PROPERTY_ITEM_CATEGORY, LineItem.JSON_PROPERTY_MANUFACTURER, + LineItem.JSON_PROPERTY_MARKETPLACE_SELLER_ID, LineItem.JSON_PROPERTY_PRODUCT_URL, LineItem.JSON_PROPERTY_QUANTITY, LineItem.JSON_PROPERTY_RECEIVER_EMAIL, @@ -78,6 +79,9 @@ public class LineItem { public static final String JSON_PROPERTY_MANUFACTURER = "manufacturer"; private String manufacturer; + public static final String JSON_PROPERTY_MARKETPLACE_SELLER_ID = "marketplaceSellerId"; + private String marketplaceSellerId; + public static final String JSON_PROPERTY_PRODUCT_URL = "productUrl"; private String productUrl; @@ -375,6 +379,36 @@ public void setManufacturer(String manufacturer) { } + public LineItem marketplaceSellerId(String marketplaceSellerId) { + this.marketplaceSellerId = marketplaceSellerId; + return this; + } + + /** + * Marketplace seller id. + * @return marketplaceSellerId + **/ + @ApiModelProperty(value = "Marketplace seller id.") + @JsonProperty(JSON_PROPERTY_MARKETPLACE_SELLER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMarketplaceSellerId() { + return marketplaceSellerId; + } + + + /** + * Marketplace seller id. + * + * @param marketplaceSellerId + */ + @JsonProperty(JSON_PROPERTY_MARKETPLACE_SELLER_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMarketplaceSellerId(String marketplaceSellerId) { + this.marketplaceSellerId = marketplaceSellerId; + } + + public LineItem productUrl(String productUrl) { this.productUrl = productUrl; return this; @@ -636,6 +670,7 @@ public boolean equals(Object o) { Objects.equals(this.imageUrl, lineItem.imageUrl) && Objects.equals(this.itemCategory, lineItem.itemCategory) && Objects.equals(this.manufacturer, lineItem.manufacturer) && + Objects.equals(this.marketplaceSellerId, lineItem.marketplaceSellerId) && Objects.equals(this.productUrl, lineItem.productUrl) && Objects.equals(this.quantity, lineItem.quantity) && Objects.equals(this.receiverEmail, lineItem.receiverEmail) && @@ -648,7 +683,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(amountExcludingTax, amountIncludingTax, brand, color, description, id, imageUrl, itemCategory, manufacturer, productUrl, quantity, receiverEmail, size, sku, taxAmount, taxPercentage, upc); + return Objects.hash(amountExcludingTax, amountIncludingTax, brand, color, description, id, imageUrl, itemCategory, manufacturer, marketplaceSellerId, productUrl, quantity, receiverEmail, size, sku, taxAmount, taxPercentage, upc); } @Override @@ -664,6 +699,7 @@ public String toString() { sb.append(" imageUrl: ").append(toIndentedString(imageUrl)).append("\n"); sb.append(" itemCategory: ").append(toIndentedString(itemCategory)).append("\n"); sb.append(" manufacturer: ").append(toIndentedString(manufacturer)).append("\n"); + sb.append(" marketplaceSellerId: ").append(toIndentedString(marketplaceSellerId)).append("\n"); sb.append(" productUrl: ").append(toIndentedString(productUrl)).append("\n"); sb.append(" quantity: ").append(toIndentedString(quantity)).append("\n"); sb.append(" receiverEmail: ").append(toIndentedString(receiverEmail)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java index 07ee20ce9..f1ffb3780 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentCompletionDetails.java @@ -46,6 +46,7 @@ PaymentCompletionDetails.JSON_PROPERTY_PAYMENT_STATUS, PaymentCompletionDetails.JSON_PROPERTY_REDIRECT_RESULT, PaymentCompletionDetails.JSON_PROPERTY_RESULT_CODE, + PaymentCompletionDetails.JSON_PROPERTY_RETURN_URL_QUERY_STRING, PaymentCompletionDetails.JSON_PROPERTY_THREE_D_S_RESULT, PaymentCompletionDetails.JSON_PROPERTY_THREEDS2_CHALLENGE_RESULT, PaymentCompletionDetails.JSON_PROPERTY_THREEDS2_FINGERPRINT, @@ -98,6 +99,9 @@ public class PaymentCompletionDetails { public static final String JSON_PROPERTY_RESULT_CODE = "resultCode"; private String resultCode; + public static final String JSON_PROPERTY_RETURN_URL_QUERY_STRING = "returnUrlQueryString"; + private String returnUrlQueryString; + public static final String JSON_PROPERTY_THREE_D_S_RESULT = "threeDSResult"; private String threeDSResult; @@ -563,6 +567,36 @@ public void setResultCode(String resultCode) { } + public PaymentCompletionDetails returnUrlQueryString(String returnUrlQueryString) { + this.returnUrlQueryString = returnUrlQueryString; + return this; + } + + /** + * The query string as appended to the `returnURL` when using direct issuer links . + * @return returnUrlQueryString + **/ + @ApiModelProperty(value = "The query string as appended to the `returnURL` when using direct issuer links .") + @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getReturnUrlQueryString() { + return returnUrlQueryString; + } + + + /** + * The query string as appended to the `returnURL` when using direct issuer links . + * + * @param returnUrlQueryString + */ + @JsonProperty(JSON_PROPERTY_RETURN_URL_QUERY_STRING) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setReturnUrlQueryString(String returnUrlQueryString) { + this.returnUrlQueryString = returnUrlQueryString; + } + + public PaymentCompletionDetails threeDSResult(String threeDSResult) { this.threeDSResult = threeDSResult; return this; @@ -710,6 +744,7 @@ public boolean equals(Object o) { Objects.equals(this.paymentStatus, paymentCompletionDetails.paymentStatus) && Objects.equals(this.redirectResult, paymentCompletionDetails.redirectResult) && Objects.equals(this.resultCode, paymentCompletionDetails.resultCode) && + Objects.equals(this.returnUrlQueryString, paymentCompletionDetails.returnUrlQueryString) && Objects.equals(this.threeDSResult, paymentCompletionDetails.threeDSResult) && Objects.equals(this.threeds2ChallengeResult, paymentCompletionDetails.threeds2ChallengeResult) && Objects.equals(this.threeds2Fingerprint, paymentCompletionDetails.threeds2Fingerprint) && @@ -718,7 +753,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(MD, paReq, paRes, authorizationToken, billingToken, cupsecureplusSmscode, facilitatorAccessToken, oneTimePasscode, orderID, payerID, payload, paymentID, paymentStatus, redirectResult, resultCode, threeDSResult, threeds2ChallengeResult, threeds2Fingerprint, vaultToken); + return Objects.hash(MD, paReq, paRes, authorizationToken, billingToken, cupsecureplusSmscode, facilitatorAccessToken, oneTimePasscode, orderID, payerID, payload, paymentID, paymentStatus, redirectResult, resultCode, returnUrlQueryString, threeDSResult, threeds2ChallengeResult, threeds2Fingerprint, vaultToken); } @Override @@ -740,6 +775,7 @@ public String toString() { sb.append(" paymentStatus: ").append(toIndentedString(paymentStatus)).append("\n"); sb.append(" redirectResult: ").append(toIndentedString(redirectResult)).append("\n"); sb.append(" resultCode: ").append(toIndentedString(resultCode)).append("\n"); + sb.append(" returnUrlQueryString: ").append(toIndentedString(returnUrlQueryString)).append("\n"); sb.append(" threeDSResult: ").append(toIndentedString(threeDSResult)).append("\n"); sb.append(" threeds2ChallengeResult: ").append(toIndentedString(threeds2ChallengeResult)).append("\n"); sb.append(" threeds2Fingerprint: ").append(toIndentedString(threeds2Fingerprint)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentDetails.java b/src/main/java/com/adyen/model/checkout/PaymentDetails.java index 03423812e..e18ba872d 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentDetails.java +++ b/src/main/java/com/adyen/model/checkout/PaymentDetails.java @@ -123,6 +123,12 @@ public enum TypeEnum { PAYPO("paypo"), + SCALAPAY("scalapay"), + + SCALAPAY_3X("scalapay_3x"), + + SCALAPAY_4X("scalapay_4x"), + MOLPAY_FPX("molpay_fpx"), KONBINI("konbini"), diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java index b367a02a0..6ec9f805f 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkRequest.java @@ -19,6 +19,7 @@ import com.adyen.model.checkout.Address; import com.adyen.model.checkout.Amount; import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; import com.adyen.model.checkout.InstallmentOption; import com.adyen.model.checkout.LineItem; import com.adyen.model.checkout.Name; @@ -82,7 +83,8 @@ PaymentLinkRequest.JSON_PROPERTY_STORE, PaymentLinkRequest.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE, PaymentLinkRequest.JSON_PROPERTY_TELEPHONE_NUMBER, - PaymentLinkRequest.JSON_PROPERTY_THEME_ID + PaymentLinkRequest.JSON_PROPERTY_THEME_ID, + PaymentLinkRequest.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA }) public class PaymentLinkRequest { @@ -315,6 +317,9 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; + public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; + private CheckoutSessionThreeDS2RequestData threeDS2RequestData; + public PaymentLinkRequest() { } @@ -1514,6 +1519,36 @@ public void setThemeId(String themeId) { } + public PaymentLinkRequest threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + return this; + } + + /** + * Get threeDS2RequestData + * @return threeDS2RequestData + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { + return threeDS2RequestData; + } + + + /** + * threeDS2RequestData + * + * @param threeDS2RequestData + */ + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + } + + /** * Return true if this PaymentLinkRequest object is equal to o. */ @@ -1563,12 +1598,13 @@ public boolean equals(Object o) { Objects.equals(this.store, paymentLinkRequest.store) && Objects.equals(this.storePaymentMethodMode, paymentLinkRequest.storePaymentMethodMode) && Objects.equals(this.telephoneNumber, paymentLinkRequest.telephoneNumber) && - Objects.equals(this.themeId, paymentLinkRequest.themeId); + Objects.equals(this.themeId, paymentLinkRequest.themeId) && + Objects.equals(this.threeDS2RequestData, paymentLinkRequest.threeDS2RequestData); } @Override public int hashCode() { - return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethodMode, telephoneNumber, themeId); + return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData); } @Override @@ -1613,6 +1649,7 @@ public String toString() { sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java index 3b8756fdb..0aa248c53 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java +++ b/src/main/java/com/adyen/model/checkout/PaymentLinkResponse.java @@ -19,6 +19,7 @@ import com.adyen.model.checkout.Address; import com.adyen.model.checkout.Amount; import com.adyen.model.checkout.ApplicationInfo; +import com.adyen.model.checkout.CheckoutSessionThreeDS2RequestData; import com.adyen.model.checkout.InstallmentOption; import com.adyen.model.checkout.LineItem; import com.adyen.model.checkout.Name; @@ -85,6 +86,7 @@ PaymentLinkResponse.JSON_PROPERTY_STORE_PAYMENT_METHOD_MODE, PaymentLinkResponse.JSON_PROPERTY_TELEPHONE_NUMBER, PaymentLinkResponse.JSON_PROPERTY_THEME_ID, + PaymentLinkResponse.JSON_PROPERTY_THREE_D_S2_REQUEST_DATA, PaymentLinkResponse.JSON_PROPERTY_UPDATED_AT, PaymentLinkResponse.JSON_PROPERTY_URL }) @@ -366,6 +368,9 @@ public static StorePaymentMethodModeEnum fromValue(String value) { public static final String JSON_PROPERTY_THEME_ID = "themeId"; private String themeId; + public static final String JSON_PROPERTY_THREE_D_S2_REQUEST_DATA = "threeDS2RequestData"; + private CheckoutSessionThreeDS2RequestData threeDS2RequestData; + public static final String JSON_PROPERTY_UPDATED_AT = "updatedAt"; private OffsetDateTime updatedAt; @@ -1631,6 +1636,36 @@ public void setThemeId(String themeId) { } + public PaymentLinkResponse threeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + return this; + } + + /** + * Get threeDS2RequestData + * @return threeDS2RequestData + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public CheckoutSessionThreeDS2RequestData getThreeDS2RequestData() { + return threeDS2RequestData; + } + + + /** + * threeDS2RequestData + * + * @param threeDS2RequestData + */ + @JsonProperty(JSON_PROPERTY_THREE_D_S2_REQUEST_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setThreeDS2RequestData(CheckoutSessionThreeDS2RequestData threeDS2RequestData) { + this.threeDS2RequestData = threeDS2RequestData; + } + + public PaymentLinkResponse updatedAt(OffsetDateTime updatedAt) { this.updatedAt = updatedAt; return this; @@ -1743,13 +1778,14 @@ public boolean equals(Object o) { Objects.equals(this.storePaymentMethodMode, paymentLinkResponse.storePaymentMethodMode) && Objects.equals(this.telephoneNumber, paymentLinkResponse.telephoneNumber) && Objects.equals(this.themeId, paymentLinkResponse.themeId) && + Objects.equals(this.threeDS2RequestData, paymentLinkResponse.threeDS2RequestData) && Objects.equals(this.updatedAt, paymentLinkResponse.updatedAt) && Objects.equals(this.url, paymentLinkResponse.url); } @Override public int hashCode() { - return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, id, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, status, store, storePaymentMethodMode, telephoneNumber, themeId, updatedAt, url); + return Objects.hash(allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, countryCode, dateOfBirth, deliverAt, deliveryAddress, description, expiresAt, id, installmentOptions, lineItems, manualCapture, mcc, merchantAccount, merchantOrderReference, metadata, recurringProcessingModel, reference, requiredShopperFields, returnUrl, reusable, riskData, shopperEmail, shopperLocale, shopperName, shopperReference, shopperStatement, showRemovePaymentMethodButton, socialSecurityNumber, splitCardFundingSources, splits, status, store, storePaymentMethodMode, telephoneNumber, themeId, threeDS2RequestData, updatedAt, url); } @Override @@ -1796,6 +1832,7 @@ public String toString() { sb.append(" storePaymentMethodMode: ").append(toIndentedString(storePaymentMethodMode)).append("\n"); sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); sb.append(" themeId: ").append(toIndentedString(themeId)).append("\n"); + sb.append(" threeDS2RequestData: ").append(toIndentedString(threeDS2RequestData)).append("\n"); sb.append(" updatedAt: ").append(toIndentedString(updatedAt)).append("\n"); sb.append(" url: ").append(toIndentedString(url)).append("\n"); sb.append("}"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethod.java b/src/main/java/com/adyen/model/checkout/PaymentMethod.java index 33812d54b..e2600ed3b 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethod.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethod.java @@ -19,6 +19,7 @@ import com.adyen.model.checkout.InputDetail; import com.adyen.model.checkout.PaymentMethodGroup; import com.adyen.model.checkout.PaymentMethodIssuer; +import com.adyen.model.checkout.PaymentMethodUPIApps; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -38,6 +39,7 @@ * PaymentMethod */ @JsonPropertyOrder({ + PaymentMethod.JSON_PROPERTY_APPS, PaymentMethod.JSON_PROPERTY_BRAND, PaymentMethod.JSON_PROPERTY_BRANDS, PaymentMethod.JSON_PROPERTY_CONFIGURATION, @@ -50,6 +52,9 @@ }) public class PaymentMethod { + public static final String JSON_PROPERTY_APPS = "apps"; + private List apps = null; + public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -116,6 +121,44 @@ public static FundingSourceEnum fromValue(String value) { public PaymentMethod() { } + public PaymentMethod apps(List apps) { + this.apps = apps; + return this; + } + + public PaymentMethod addAppsItem(PaymentMethodUPIApps appsItem) { + if (this.apps == null) { + this.apps = new ArrayList<>(); + } + this.apps.add(appsItem); + return this; + } + + /** + * A list of apps for this payment method. + * @return apps + **/ + @ApiModelProperty(value = "A list of apps for this payment method.") + @JsonProperty(JSON_PROPERTY_APPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getApps() { + return apps; + } + + + /** + * A list of apps for this payment method. + * + * @param apps + */ + @JsonProperty(JSON_PROPERTY_APPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setApps(List apps) { + this.apps = apps; + } + + public PaymentMethod brand(String brand) { this.brand = brand; return this; @@ -434,7 +477,8 @@ public boolean equals(Object o) { return false; } PaymentMethod paymentMethod = (PaymentMethod) o; - return Objects.equals(this.brand, paymentMethod.brand) && + return Objects.equals(this.apps, paymentMethod.apps) && + Objects.equals(this.brand, paymentMethod.brand) && Objects.equals(this.brands, paymentMethod.brands) && Objects.equals(this.configuration, paymentMethod.configuration) && Objects.equals(this.fundingSource, paymentMethod.fundingSource) && @@ -447,13 +491,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, type); + return Objects.hash(apps, brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class PaymentMethod {\n"); + sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append(" configuration: ").append(toIndentedString(configuration)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java index 1b9c72b17..e73ddb921 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodToStore.java @@ -40,7 +40,8 @@ PaymentMethodToStore.JSON_PROPERTY_EXPIRY_MONTH, PaymentMethodToStore.JSON_PROPERTY_EXPIRY_YEAR, PaymentMethodToStore.JSON_PROPERTY_HOLDER_NAME, - PaymentMethodToStore.JSON_PROPERTY_NUMBER + PaymentMethodToStore.JSON_PROPERTY_NUMBER, + PaymentMethodToStore.JSON_PROPERTY_TYPE }) public class PaymentMethodToStore { @@ -74,6 +75,9 @@ public class PaymentMethodToStore { public static final String JSON_PROPERTY_NUMBER = "number"; private String number; + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + public PaymentMethodToStore() { } @@ -377,6 +381,36 @@ public void setNumber(String number) { } + public PaymentMethodToStore type(String type) { + this.type = type; + return this; + } + + /** + * Set to **scheme**. + * @return type + **/ + @ApiModelProperty(value = "Set to **scheme**.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + /** + * Set to **scheme**. + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + /** * Return true if this PaymentMethodToStore object is equal to o. */ @@ -398,12 +432,13 @@ public boolean equals(Object o) { Objects.equals(this.expiryMonth, paymentMethodToStore.expiryMonth) && Objects.equals(this.expiryYear, paymentMethodToStore.expiryYear) && Objects.equals(this.holderName, paymentMethodToStore.holderName) && - Objects.equals(this.number, paymentMethodToStore.number); + Objects.equals(this.number, paymentMethodToStore.number) && + Objects.equals(this.type, paymentMethodToStore.type); } @Override public int hashCode() { - return Objects.hash(brand, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, holderName, number); + return Objects.hash(brand, cvc, encryptedCardNumber, encryptedExpiryMonth, encryptedExpiryYear, encryptedSecurityCode, expiryMonth, expiryYear, holderName, number, type); } @Override @@ -420,6 +455,7 @@ public String toString() { sb.append(" expiryYear: ").append(toIndentedString(expiryYear)).append("\n"); sb.append(" holderName: ").append(toIndentedString(holderName)).append("\n"); sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java new file mode 100644 index 000000000..cdea25172 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/PaymentMethodUPIApps.java @@ -0,0 +1,169 @@ +/* + * 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 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; + + +/** + * PaymentMethodUPIApps + */ +@JsonPropertyOrder({ + PaymentMethodUPIApps.JSON_PROPERTY_ID, + PaymentMethodUPIApps.JSON_PROPERTY_NAME +}) + +public class PaymentMethodUPIApps { + public static final String JSON_PROPERTY_ID = "id"; + private String id; + + public static final String JSON_PROPERTY_NAME = "name"; + private String name; + + public PaymentMethodUPIApps() { + } + + public PaymentMethodUPIApps id(String id) { + this.id = id; + return this; + } + + /** + * The unique identifier of this app, to submit in requests to /payments. + * @return id + **/ + @ApiModelProperty(required = true, value = "The unique identifier of this app, to submit in requests to /payments.") + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getId() { + return id; + } + + + /** + * The unique identifier of this app, to submit in requests to /payments. + * + * @param id + */ + @JsonProperty(JSON_PROPERTY_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setId(String id) { + this.id = id; + } + + + public PaymentMethodUPIApps name(String name) { + this.name = name; + return this; + } + + /** + * A localized name of the app. + * @return name + **/ + @ApiModelProperty(required = true, value = "A localized name of the app.") + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getName() { + return name; + } + + + /** + * A localized name of the app. + * + * @param name + */ + @JsonProperty(JSON_PROPERTY_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setName(String name) { + this.name = name; + } + + + /** + * Return true if this PaymentMethodUPIApps object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PaymentMethodUPIApps paymentMethodUPIApps = (PaymentMethodUPIApps) o; + return Objects.equals(this.id, paymentMethodUPIApps.id) && + Objects.equals(this.name, paymentMethodUPIApps.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PaymentMethodUPIApps {\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).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 PaymentMethodUPIApps given an JSON string + * + * @param jsonString JSON string + * @return An instance of PaymentMethodUPIApps + * @throws JsonProcessingException if the JSON string is invalid with respect to PaymentMethodUPIApps + */ + public static PaymentMethodUPIApps fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, PaymentMethodUPIApps.class); + } +/** + * Convert an instance of PaymentMethodUPIApps to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} + diff --git a/src/main/java/com/adyen/model/checkout/PaymentRequest.java b/src/main/java/com/adyen/model/checkout/PaymentRequest.java index 0a88e48ff..e6f38f827 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentRequest.java @@ -1143,10 +1143,10 @@ public PaymentRequest enableOneClick(Boolean enableOneClick) { } /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * @return enableOneClick **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition).") @JsonProperty(JSON_PROPERTY_ENABLE_ONE_CLICK) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1156,7 +1156,7 @@ public Boolean getEnableOneClick() { /** - * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future one-click payments. + * When true and `shopperReference` is provided, the shopper will be asked if the payment details should be stored for future [one-click payments](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#one-click-payments-definition). * * @param enableOneClick */ @@ -1203,10 +1203,10 @@ public PaymentRequest enableRecurring(Boolean enableRecurring) { } /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * @return enableRecurring **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments.") @JsonProperty(JSON_PROPERTY_ENABLE_RECURRING) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1216,7 +1216,7 @@ public Boolean getEnableRecurring() { /** - * When true and `shopperReference` is provided, the payment details will be tokenized for recurring payments. + * When true and `shopperReference` is provided, the payment details will be stored for [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types) where the shopper is not present, such as subscription or automatic top-up payments. * * @param enableRecurring */ @@ -2435,10 +2435,10 @@ public PaymentRequest storePaymentMethod(Boolean storePaymentMethod) { } /** - * When true and `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * @return storePaymentMethod **/ - @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored.") + @ApiModelProperty(value = "When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types).") @JsonProperty(JSON_PROPERTY_STORE_PAYMENT_METHOD) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -2448,7 +2448,7 @@ public Boolean getStorePaymentMethod() { /** - * When true and `shopperReference` is provided, the payment details will be stored. + * When true and `shopperReference` is provided, the payment details will be stored for future [recurring payments](https://docs.adyen.com/online-payments/tokenization/#recurring-payment-types). * * @param storePaymentMethod */ diff --git a/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java b/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java index 2394c89b5..08584491b 100644 --- a/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaymentSetupRequest.java @@ -28,6 +28,7 @@ import com.adyen.model.checkout.Name; import com.adyen.model.checkout.PlatformChargebackLogic; import com.adyen.model.checkout.RiskData; +import com.adyen.model.checkout.SecureRemoteCommerceCheckoutData; import com.adyen.model.checkout.Split; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -90,6 +91,7 @@ PaymentSetupRequest.JSON_PROPERTY_RETURN_URL, PaymentSetupRequest.JSON_PROPERTY_RISK_DATA, PaymentSetupRequest.JSON_PROPERTY_SDK_VERSION, + PaymentSetupRequest.JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA, PaymentSetupRequest.JSON_PROPERTY_SESSION_VALIDITY, PaymentSetupRequest.JSON_PROPERTY_SHOPPER_EMAIL, PaymentSetupRequest.JSON_PROPERTY_SHOPPER_I_P, @@ -302,6 +304,9 @@ public static EntityTypeEnum fromValue(String value) { public static final String JSON_PROPERTY_SDK_VERSION = "sdkVersion"; private String sdkVersion; + public static final String JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA = "secureRemoteCommerceCheckoutData"; + private SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData; + public static final String JSON_PROPERTY_SESSION_VALIDITY = "sessionValidity"; private String sessionValidity; @@ -1645,6 +1650,36 @@ public void setSdkVersion(String sdkVersion) { } + public PaymentSetupRequest secureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; + return this; + } + + /** + * Get secureRemoteCommerceCheckoutData + * @return secureRemoteCommerceCheckoutData + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SecureRemoteCommerceCheckoutData getSecureRemoteCommerceCheckoutData() { + return secureRemoteCommerceCheckoutData; + } + + + /** + * secureRemoteCommerceCheckoutData + * + * @param secureRemoteCommerceCheckoutData + */ + @JsonProperty(JSON_PROPERTY_SECURE_REMOTE_COMMERCE_CHECKOUT_DATA) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setSecureRemoteCommerceCheckoutData(SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData) { + this.secureRemoteCommerceCheckoutData = secureRemoteCommerceCheckoutData; + } + + public PaymentSetupRequest sessionValidity(String sessionValidity) { this.sessionValidity = sessionValidity; return this; @@ -2189,6 +2224,7 @@ public boolean equals(Object o) { Objects.equals(this.returnUrl, paymentSetupRequest.returnUrl) && Objects.equals(this.riskData, paymentSetupRequest.riskData) && Objects.equals(this.sdkVersion, paymentSetupRequest.sdkVersion) && + Objects.equals(this.secureRemoteCommerceCheckoutData, paymentSetupRequest.secureRemoteCommerceCheckoutData) && Objects.equals(this.sessionValidity, paymentSetupRequest.sessionValidity) && Objects.equals(this.shopperEmail, paymentSetupRequest.shopperEmail) && Objects.equals(this.shopperIP, paymentSetupRequest.shopperIP) && @@ -2209,7 +2245,7 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, channel, checkoutAttemptId, company, configuration, conversionId, countryCode, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, enableOneClick, enablePayOut, enableRecurring, entityType, fraudOffset, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, metadata, orderReference, origin, platformChargebackLogic, recurringExpiry, recurringFrequency, reference, returnUrl, riskData, sdkVersion, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, telephoneNumber, threeDSAuthenticationOnly, token, trustedShopper); + return Objects.hash(additionalAmount, additionalData, allowedPaymentMethods, amount, applicationInfo, billingAddress, blockedPaymentMethods, captureDelayHours, channel, checkoutAttemptId, company, configuration, conversionId, countryCode, dateOfBirth, dccQuote, deliveryAddress, deliveryDate, enableOneClick, enablePayOut, enableRecurring, entityType, fraudOffset, installments, lineItems, localizedShopperStatement, mandate, mcc, merchantAccount, merchantOrderReference, metadata, orderReference, origin, platformChargebackLogic, recurringExpiry, recurringFrequency, reference, returnUrl, riskData, sdkVersion, secureRemoteCommerceCheckoutData, sessionValidity, shopperEmail, shopperIP, shopperInteraction, shopperLocale, shopperName, shopperReference, shopperStatement, socialSecurityNumber, splits, store, storePaymentMethod, telephoneNumber, threeDSAuthenticationOnly, token, trustedShopper); } @Override @@ -2256,6 +2292,7 @@ public String toString() { sb.append(" returnUrl: ").append(toIndentedString(returnUrl)).append("\n"); sb.append(" riskData: ").append(toIndentedString(riskData)).append("\n"); sb.append(" sdkVersion: ").append(toIndentedString(sdkVersion)).append("\n"); + sb.append(" secureRemoteCommerceCheckoutData: ").append(toIndentedString(secureRemoteCommerceCheckoutData)).append("\n"); sb.append(" sessionValidity: ").append(toIndentedString(sessionValidity)).append("\n"); sb.append(" shopperEmail: ").append(toIndentedString(shopperEmail)).append("\n"); sb.append(" shopperIP: ").append(toIndentedString(shopperIP)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java index 5fc63026e..41075c12e 100644 --- a/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java +++ b/src/main/java/com/adyen/model/checkout/PaypalUpdateOrderRequest.java @@ -18,6 +18,7 @@ import java.util.HashMap; import com.adyen.model.checkout.Amount; import com.adyen.model.checkout.DeliveryMethod; +import com.adyen.model.checkout.TaxTotal; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -39,7 +40,8 @@ PaypalUpdateOrderRequest.JSON_PROPERTY_DELIVERY_METHODS, PaypalUpdateOrderRequest.JSON_PROPERTY_PAYMENT_DATA, PaypalUpdateOrderRequest.JSON_PROPERTY_PSP_REFERENCE, - PaypalUpdateOrderRequest.JSON_PROPERTY_SESSION_ID + PaypalUpdateOrderRequest.JSON_PROPERTY_SESSION_ID, + PaypalUpdateOrderRequest.JSON_PROPERTY_TAX_TOTAL }) public class PaypalUpdateOrderRequest { @@ -58,6 +60,9 @@ public class PaypalUpdateOrderRequest { public static final String JSON_PROPERTY_SESSION_ID = "sessionId"; private String sessionId; + public static final String JSON_PROPERTY_TAX_TOTAL = "taxTotal"; + private TaxTotal taxTotal; + public PaypalUpdateOrderRequest() { } @@ -219,6 +224,36 @@ public void setSessionId(String sessionId) { } + public PaypalUpdateOrderRequest taxTotal(TaxTotal taxTotal) { + this.taxTotal = taxTotal; + return this; + } + + /** + * Get taxTotal + * @return taxTotal + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_TAX_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public TaxTotal getTaxTotal() { + return taxTotal; + } + + + /** + * taxTotal + * + * @param taxTotal + */ + @JsonProperty(JSON_PROPERTY_TAX_TOTAL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTaxTotal(TaxTotal taxTotal) { + this.taxTotal = taxTotal; + } + + /** * Return true if this PaypalUpdateOrderRequest object is equal to o. */ @@ -235,12 +270,13 @@ public boolean equals(Object o) { Objects.equals(this.deliveryMethods, paypalUpdateOrderRequest.deliveryMethods) && Objects.equals(this.paymentData, paypalUpdateOrderRequest.paymentData) && Objects.equals(this.pspReference, paypalUpdateOrderRequest.pspReference) && - Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId); + Objects.equals(this.sessionId, paypalUpdateOrderRequest.sessionId) && + Objects.equals(this.taxTotal, paypalUpdateOrderRequest.taxTotal); } @Override public int hashCode() { - return Objects.hash(amount, deliveryMethods, paymentData, pspReference, sessionId); + return Objects.hash(amount, deliveryMethods, paymentData, pspReference, sessionId, taxTotal); } @Override @@ -252,6 +288,7 @@ public String toString() { sb.append(" paymentData: ").append(toIndentedString(paymentData)).append("\n"); sb.append(" pspReference: ").append(toIndentedString(pspReference)).append("\n"); sb.append(" sessionId: ").append(toIndentedString(sessionId)).append("\n"); + sb.append(" taxTotal: ").append(toIndentedString(taxTotal)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/checkout/RecurringDetail.java b/src/main/java/com/adyen/model/checkout/RecurringDetail.java index 92ffb8915..68cf28400 100644 --- a/src/main/java/com/adyen/model/checkout/RecurringDetail.java +++ b/src/main/java/com/adyen/model/checkout/RecurringDetail.java @@ -19,6 +19,7 @@ import com.adyen.model.checkout.InputDetail; import com.adyen.model.checkout.PaymentMethodGroup; import com.adyen.model.checkout.PaymentMethodIssuer; +import com.adyen.model.checkout.PaymentMethodUPIApps; import com.adyen.model.checkout.StoredDetails; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; @@ -39,6 +40,7 @@ * RecurringDetail */ @JsonPropertyOrder({ + RecurringDetail.JSON_PROPERTY_APPS, RecurringDetail.JSON_PROPERTY_BRAND, RecurringDetail.JSON_PROPERTY_BRANDS, RecurringDetail.JSON_PROPERTY_CONFIGURATION, @@ -53,6 +55,9 @@ }) public class RecurringDetail { + public static final String JSON_PROPERTY_APPS = "apps"; + private List apps = null; + public static final String JSON_PROPERTY_BRAND = "brand"; private String brand; @@ -125,6 +130,44 @@ public static FundingSourceEnum fromValue(String value) { public RecurringDetail() { } + public RecurringDetail apps(List apps) { + this.apps = apps; + return this; + } + + public RecurringDetail addAppsItem(PaymentMethodUPIApps appsItem) { + if (this.apps == null) { + this.apps = new ArrayList<>(); + } + this.apps.add(appsItem); + return this; + } + + /** + * A list of apps for this payment method. + * @return apps + **/ + @ApiModelProperty(value = "A list of apps for this payment method.") + @JsonProperty(JSON_PROPERTY_APPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getApps() { + return apps; + } + + + /** + * A list of apps for this payment method. + * + * @param apps + */ + @JsonProperty(JSON_PROPERTY_APPS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setApps(List apps) { + this.apps = apps; + } + + public RecurringDetail brand(String brand) { this.brand = brand; return this; @@ -503,7 +546,8 @@ public boolean equals(Object o) { return false; } RecurringDetail recurringDetail = (RecurringDetail) o; - return Objects.equals(this.brand, recurringDetail.brand) && + return Objects.equals(this.apps, recurringDetail.apps) && + Objects.equals(this.brand, recurringDetail.brand) && Objects.equals(this.brands, recurringDetail.brands) && Objects.equals(this.configuration, recurringDetail.configuration) && Objects.equals(this.fundingSource, recurringDetail.fundingSource) && @@ -518,13 +562,14 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, recurringDetailReference, storedDetails, type); + return Objects.hash(apps, brand, brands, configuration, fundingSource, group, inputDetails, issuers, name, recurringDetailReference, storedDetails, type); } @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class RecurringDetail {\n"); + sb.append(" apps: ").append(toIndentedString(apps)).append("\n"); sb.append(" brand: ").append(toIndentedString(brand)).append("\n"); sb.append(" brands: ").append(toIndentedString(brands)).append("\n"); sb.append(" configuration: ").append(toIndentedString(configuration)).append("\n"); diff --git a/src/main/java/com/adyen/model/checkout/SecureRemoteCommerceCheckoutData.java b/src/main/java/com/adyen/model/checkout/SecureRemoteCommerceCheckoutData.java new file mode 100644 index 000000000..c7730ade3 --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/SecureRemoteCommerceCheckoutData.java @@ -0,0 +1,348 @@ +/* + * 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 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; + + +/** + * SecureRemoteCommerceCheckoutData + */ +@JsonPropertyOrder({ + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CHECKOUT_PAYLOAD, + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CORRELATION_ID, + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_CVC, + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_DIGITAL_CARD_ID, + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_SCHEME, + SecureRemoteCommerceCheckoutData.JSON_PROPERTY_TOKEN_REFERENCE +}) + +public class SecureRemoteCommerceCheckoutData { + public static final String JSON_PROPERTY_CHECKOUT_PAYLOAD = "checkoutPayload"; + private String checkoutPayload; + + public static final String JSON_PROPERTY_CORRELATION_ID = "correlationId"; + private String correlationId; + + public static final String JSON_PROPERTY_CVC = "cvc"; + private String cvc; + + public static final String JSON_PROPERTY_DIGITAL_CARD_ID = "digitalCardId"; + private String digitalCardId; + + /** + * The Secure Remote Commerce scheme. + */ + public enum SchemeEnum { + MC("mc"), + + VISA("visa"); + + private String value; + + SchemeEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static SchemeEnum fromValue(String value) { + for (SchemeEnum b : SchemeEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_SCHEME = "scheme"; + private SchemeEnum scheme; + + public static final String JSON_PROPERTY_TOKEN_REFERENCE = "tokenReference"; + private String tokenReference; + + public SecureRemoteCommerceCheckoutData() { + } + + public SecureRemoteCommerceCheckoutData checkoutPayload(String checkoutPayload) { + this.checkoutPayload = checkoutPayload; + return this; + } + + /** + * The Secure Remote Commerce checkout payload to process the payment with. + * @return checkoutPayload + **/ + @ApiModelProperty(value = "The Secure Remote Commerce checkout payload to process the payment with.") + @JsonProperty(JSON_PROPERTY_CHECKOUT_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCheckoutPayload() { + return checkoutPayload; + } + + + /** + * The Secure Remote Commerce checkout payload to process the payment with. + * + * @param checkoutPayload + */ + @JsonProperty(JSON_PROPERTY_CHECKOUT_PAYLOAD) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCheckoutPayload(String checkoutPayload) { + this.checkoutPayload = checkoutPayload; + } + + + public SecureRemoteCommerceCheckoutData correlationId(String correlationId) { + this.correlationId = correlationId; + return this; + } + + /** + * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * @return correlationId + **/ + @ApiModelProperty(value = "This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session).") + @JsonProperty(JSON_PROPERTY_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCorrelationId() { + return correlationId; + } + + + /** + * This is the unique identifier generated by SRC system to track and link SRC messages. Available within the present checkout session (e.g. received in an earlier API response during the present session). + * + * @param correlationId + */ + @JsonProperty(JSON_PROPERTY_CORRELATION_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCorrelationId(String correlationId) { + this.correlationId = correlationId; + } + + + public SecureRemoteCommerceCheckoutData cvc(String cvc) { + this.cvc = cvc; + return this; + } + + /** + * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * @return cvc + **/ + @ApiModelProperty(value = "The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid).") + @JsonProperty(JSON_PROPERTY_CVC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getCvc() { + return cvc; + } + + + /** + * The [card verification code](https://docs.adyen.com/get-started-with-adyen/payment-glossary/#card-security-code-cvc-cvv-cid). + * + * @param cvc + */ + @JsonProperty(JSON_PROPERTY_CVC) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setCvc(String cvc) { + this.cvc = cvc; + } + + + public SecureRemoteCommerceCheckoutData digitalCardId(String digitalCardId) { + this.digitalCardId = digitalCardId; + return this; + } + + /** + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * @return digitalCardId + **/ + @ApiModelProperty(value = "A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'.") + @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDigitalCardId() { + return digitalCardId; + } + + + /** + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'mc'. + * + * @param digitalCardId + */ + @JsonProperty(JSON_PROPERTY_DIGITAL_CARD_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDigitalCardId(String digitalCardId) { + this.digitalCardId = digitalCardId; + } + + + public SecureRemoteCommerceCheckoutData scheme(SchemeEnum scheme) { + this.scheme = scheme; + return this; + } + + /** + * The Secure Remote Commerce scheme. + * @return scheme + **/ + @ApiModelProperty(value = "The Secure Remote Commerce scheme.") + @JsonProperty(JSON_PROPERTY_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public SchemeEnum getScheme() { + return scheme; + } + + + /** + * The Secure Remote Commerce scheme. + * + * @param scheme + */ + @JsonProperty(JSON_PROPERTY_SCHEME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setScheme(SchemeEnum scheme) { + this.scheme = scheme; + } + + + public SecureRemoteCommerceCheckoutData tokenReference(String tokenReference) { + this.tokenReference = tokenReference; + return this; + } + + /** + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * @return tokenReference + **/ + @ApiModelProperty(value = "A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'.") + @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTokenReference() { + return tokenReference; + } + + + /** + * A unique identifier that represents the token associated with a card enrolled. Required for scheme 'visa'. + * + * @param tokenReference + */ + @JsonProperty(JSON_PROPERTY_TOKEN_REFERENCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTokenReference(String tokenReference) { + this.tokenReference = tokenReference; + } + + + /** + * Return true if this SecureRemoteCommerceCheckoutData object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SecureRemoteCommerceCheckoutData secureRemoteCommerceCheckoutData = (SecureRemoteCommerceCheckoutData) o; + return Objects.equals(this.checkoutPayload, secureRemoteCommerceCheckoutData.checkoutPayload) && + Objects.equals(this.correlationId, secureRemoteCommerceCheckoutData.correlationId) && + Objects.equals(this.cvc, secureRemoteCommerceCheckoutData.cvc) && + Objects.equals(this.digitalCardId, secureRemoteCommerceCheckoutData.digitalCardId) && + Objects.equals(this.scheme, secureRemoteCommerceCheckoutData.scheme) && + Objects.equals(this.tokenReference, secureRemoteCommerceCheckoutData.tokenReference); + } + + @Override + public int hashCode() { + return Objects.hash(checkoutPayload, correlationId, cvc, digitalCardId, scheme, tokenReference); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SecureRemoteCommerceCheckoutData {\n"); + sb.append(" checkoutPayload: ").append(toIndentedString(checkoutPayload)).append("\n"); + sb.append(" correlationId: ").append(toIndentedString(correlationId)).append("\n"); + sb.append(" cvc: ").append(toIndentedString(cvc)).append("\n"); + sb.append(" digitalCardId: ").append(toIndentedString(digitalCardId)).append("\n"); + sb.append(" scheme: ").append(toIndentedString(scheme)).append("\n"); + sb.append(" tokenReference: ").append(toIndentedString(tokenReference)).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 SecureRemoteCommerceCheckoutData given an JSON string + * + * @param jsonString JSON string + * @return An instance of SecureRemoteCommerceCheckoutData + * @throws JsonProcessingException if the JSON string is invalid with respect to SecureRemoteCommerceCheckoutData + */ + public static SecureRemoteCommerceCheckoutData fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, SecureRemoteCommerceCheckoutData.class); + } +/** + * Convert an instance of SecureRemoteCommerceCheckoutData to an JSON string + * + * @return JSON string + */ + public String toJson() throws JsonProcessingException { + return JSON.getMapper().writeValueAsString(this); + } +} + diff --git a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java index 12296de8a..32cf342b0 100644 --- a/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java +++ b/src/main/java/com/adyen/model/checkout/SubMerchantInfo.java @@ -36,6 +36,7 @@ SubMerchantInfo.JSON_PROPERTY_ID, SubMerchantInfo.JSON_PROPERTY_MCC, SubMerchantInfo.JSON_PROPERTY_NAME, + SubMerchantInfo.JSON_PROPERTY_REGISTERED_SINCE, SubMerchantInfo.JSON_PROPERTY_TAX_ID }) @@ -52,6 +53,9 @@ public class SubMerchantInfo { public static final String JSON_PROPERTY_NAME = "name"; private String name; + public static final String JSON_PROPERTY_REGISTERED_SINCE = "registeredSince"; + private String registeredSince; + public static final String JSON_PROPERTY_TAX_ID = "taxId"; private String taxId; @@ -178,6 +182,36 @@ public void setName(String name) { } + public SubMerchantInfo registeredSince(String registeredSince) { + this.registeredSince = registeredSince; + return this; + } + + /** + * Get registeredSince + * @return registeredSince + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRegisteredSince() { + return registeredSince; + } + + + /** + * registeredSince + * + * @param registeredSince + */ + @JsonProperty(JSON_PROPERTY_REGISTERED_SINCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRegisteredSince(String registeredSince) { + this.registeredSince = registeredSince; + } + + public SubMerchantInfo taxId(String taxId) { this.taxId = taxId; return this; @@ -224,12 +258,13 @@ public boolean equals(Object o) { Objects.equals(this.id, subMerchantInfo.id) && Objects.equals(this.mcc, subMerchantInfo.mcc) && Objects.equals(this.name, subMerchantInfo.name) && + Objects.equals(this.registeredSince, subMerchantInfo.registeredSince) && Objects.equals(this.taxId, subMerchantInfo.taxId); } @Override public int hashCode() { - return Objects.hash(address, id, mcc, name, taxId); + return Objects.hash(address, id, mcc, name, registeredSince, taxId); } @Override @@ -240,6 +275,7 @@ public String toString() { sb.append(" id: ").append(toIndentedString(id)).append("\n"); sb.append(" mcc: ").append(toIndentedString(mcc)).append("\n"); sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" registeredSince: ").append(toIndentedString(registeredSince)).append("\n"); sb.append(" taxId: ").append(toIndentedString(taxId)).append("\n"); sb.append("}"); return sb.toString(); diff --git a/src/main/java/com/adyen/model/checkout/TaxTotal.java b/src/main/java/com/adyen/model/checkout/TaxTotal.java new file mode 100644 index 000000000..4196c278e --- /dev/null +++ b/src/main/java/com/adyen/model/checkout/TaxTotal.java @@ -0,0 +1,134 @@ +/* + * 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 java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.checkout.Amount; +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; + + +/** + * TaxTotal + */ +@JsonPropertyOrder({ + TaxTotal.JSON_PROPERTY_AMOUNT +}) + +public class TaxTotal { + public static final String JSON_PROPERTY_AMOUNT = "amount"; + private Amount amount; + + public TaxTotal() { + } + + public TaxTotal amount(Amount amount) { + this.amount = amount; + return this; + } + + /** + * Get amount + * @return amount + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Amount getAmount() { + return amount; + } + + + /** + * amount + * + * @param amount + */ + @JsonProperty(JSON_PROPERTY_AMOUNT) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setAmount(Amount amount) { + this.amount = amount; + } + + + /** + * Return true if this TaxTotal object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TaxTotal taxTotal = (TaxTotal) o; + return Objects.equals(this.amount, taxTotal.amount); + } + + @Override + public int hashCode() { + return Objects.hash(amount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TaxTotal {\n"); + sb.append(" amount: ").append(toIndentedString(amount)).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 TaxTotal given an JSON string + * + * @param jsonString JSON string + * @return An instance of TaxTotal + * @throws JsonProcessingException if the JSON string is invalid with respect to TaxTotal + */ + public static TaxTotal fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TaxTotal.class); + } +/** + * Convert an instance of TaxTotal 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/legalentitymanagement/LegalEntityAssociation.java b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java index aec061f73..1cdc25ba2 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/LegalEntityAssociation.java @@ -69,6 +69,8 @@ public enum TypeEnum { DIRECTOR("director"), + IMMEDIATEPARENTCOMPANY("immediateParentCompany"), + PCISIGNATORY("pciSignatory"), PROTECTOR("protector"), diff --git a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java index f53924be7..fd91bab33 100644 --- a/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java +++ b/src/main/java/com/adyen/model/legalentitymanagement/TaxReportingClassification.java @@ -88,7 +88,7 @@ public static BusinessTypeEnum fromValue(String value) { private String financialInstitutionNumber; /** - * The organization's main source of income. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. */ public enum MainSourceOfIncomeEnum { BUSINESSOPERATION("businessOperation"), @@ -242,10 +242,10 @@ public TaxReportingClassification mainSourceOfIncome(MainSourceOfIncomeEnum main } /** - * The organization's main source of income. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * @return mainSourceOfIncome **/ - @ApiModelProperty(value = "The organization's main source of income. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**.") + @ApiModelProperty(value = "The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**.") @JsonProperty(JSON_PROPERTY_MAIN_SOURCE_OF_INCOME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -255,7 +255,7 @@ public MainSourceOfIncomeEnum getMainSourceOfIncome() { /** - * The organization's main source of income. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. + * The organization's main source of income. Only required if `businessType` is **other**. Possible values: **businessOperation**, **realEstateSales**, **investmentInterestOrRoyalty**, **propertyRental**, **other**. * * @param mainSourceOfIncome */ diff --git a/src/main/java/com/adyen/model/management/BcmcInfo.java b/src/main/java/com/adyen/model/management/BcmcInfo.java index 2416e0f74..7fbe03296 100644 --- a/src/main/java/com/adyen/model/management/BcmcInfo.java +++ b/src/main/java/com/adyen/model/management/BcmcInfo.java @@ -16,7 +16,6 @@ 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; @@ -32,17 +31,13 @@ * BcmcInfo */ @JsonPropertyOrder({ - BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE, - BcmcInfo.JSON_PROPERTY_TRANSACTION_DESCRIPTION + BcmcInfo.JSON_PROPERTY_ENABLE_BCMC_MOBILE }) public class BcmcInfo { public static final String JSON_PROPERTY_ENABLE_BCMC_MOBILE = "enableBcmcMobile"; private Boolean enableBcmcMobile; - public static final String JSON_PROPERTY_TRANSACTION_DESCRIPTION = "transactionDescription"; - private TransactionDescriptionInfo transactionDescription; - public BcmcInfo() { } @@ -76,36 +71,6 @@ public void setEnableBcmcMobile(Boolean enableBcmcMobile) { } - public BcmcInfo 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 BcmcInfo object is equal to o. */ @@ -118,13 +83,12 @@ public boolean equals(Object o) { return false; } BcmcInfo bcmcInfo = (BcmcInfo) o; - return Objects.equals(this.enableBcmcMobile, bcmcInfo.enableBcmcMobile) && - Objects.equals(this.transactionDescription, bcmcInfo.transactionDescription); + return Objects.equals(this.enableBcmcMobile, bcmcInfo.enableBcmcMobile); } @Override public int hashCode() { - return Objects.hash(enableBcmcMobile, transactionDescription); + return Objects.hash(enableBcmcMobile); } @Override @@ -132,7 +96,6 @@ public String toString() { StringBuilder sb = new StringBuilder(); sb.append("class BcmcInfo {\n"); sb.append(" enableBcmcMobile: ").append(toIndentedString(enableBcmcMobile)).append("\n"); - sb.append(" transactionDescription: ").append(toIndentedString(transactionDescription)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethod.java b/src/main/java/com/adyen/model/management/PaymentMethod.java index 275314e54..e3e7d3b91 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethod.java +++ b/src/main/java/com/adyen/model/management/PaymentMethod.java @@ -32,6 +32,8 @@ import com.adyen.model.management.SwishInfo; import com.adyen.model.management.TwintInfo; import com.adyen.model.management.VippsInfo; +import com.adyen.model.management.WeChatPayInfo; +import com.adyen.model.management.WeChatPayPosInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -86,7 +88,9 @@ PaymentMethod.JSON_PROPERTY_TYPE, PaymentMethod.JSON_PROPERTY_VERIFICATION_STATUS, PaymentMethod.JSON_PROPERTY_VIPPS, - PaymentMethod.JSON_PROPERTY_VISA + PaymentMethod.JSON_PROPERTY_VISA, + PaymentMethod.JSON_PROPERTY_WECHATPAY, + PaymentMethod.JSON_PROPERTY_WECHATPAY_POS }) public class PaymentMethod { @@ -243,6 +247,12 @@ public static VerificationStatusEnum fromValue(String value) { public static final String JSON_PROPERTY_VISA = "visa"; private GenericPmWithTdiInfo visa; + public static final String JSON_PROPERTY_WECHATPAY = "wechatpay"; + private WeChatPayInfo wechatpay; + + public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; + private WeChatPayPosInfo wechatpayPos; + public PaymentMethod() { } @@ -1418,6 +1428,66 @@ public void setVisa(GenericPmWithTdiInfo visa) { } + public PaymentMethod wechatpay(WeChatPayInfo wechatpay) { + this.wechatpay = wechatpay; + return this; + } + + /** + * Get wechatpay + * @return wechatpay + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WECHATPAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WeChatPayInfo getWechatpay() { + return wechatpay; + } + + + /** + * wechatpay + * + * @param wechatpay + */ + @JsonProperty(JSON_PROPERTY_WECHATPAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWechatpay(WeChatPayInfo wechatpay) { + this.wechatpay = wechatpay; + } + + + public PaymentMethod wechatpayPos(WeChatPayPosInfo wechatpayPos) { + this.wechatpayPos = wechatpayPos; + return this; + } + + /** + * Get wechatpayPos + * @return wechatpayPos + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WeChatPayPosInfo getWechatpayPos() { + return wechatpayPos; + } + + + /** + * wechatpayPos + * + * @param wechatpayPos + */ + @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { + this.wechatpayPos = wechatpayPos; + } + + /** * Return true if this PaymentMethod object is equal to o. */ @@ -1467,12 +1537,14 @@ public boolean equals(Object o) { Objects.equals(this.type, paymentMethod.type) && Objects.equals(this.verificationStatus, paymentMethod.verificationStatus) && Objects.equals(this.vipps, paymentMethod.vipps) && - Objects.equals(this.visa, paymentMethod.visa); + Objects.equals(this.visa, paymentMethod.visa) && + Objects.equals(this.wechatpay, paymentMethod.wechatpay) && + Objects.equals(this.wechatpayPos, paymentMethod.wechatpayPos); } @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, twint, type, verificationStatus, vipps, visa); + 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, twint, type, verificationStatus, vipps, visa, wechatpay, wechatpayPos); } @Override @@ -1517,6 +1589,8 @@ public String toString() { sb.append(" verificationStatus: ").append(toIndentedString(verificationStatus)).append("\n"); sb.append(" vipps: ").append(toIndentedString(vipps)).append("\n"); sb.append(" visa: ").append(toIndentedString(visa)).append("\n"); + sb.append(" wechatpay: ").append(toIndentedString(wechatpay)).append("\n"); + sb.append(" wechatpayPos: ").append(toIndentedString(wechatpayPos)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java index d922112d6..0aeffddee 100644 --- a/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java +++ b/src/main/java/com/adyen/model/management/PaymentMethodSetupInfo.java @@ -32,6 +32,8 @@ import com.adyen.model.management.SwishInfo; import com.adyen.model.management.TwintInfo; import com.adyen.model.management.VippsInfo; +import com.adyen.model.management.WeChatPayInfo; +import com.adyen.model.management.WeChatPayPosInfo; import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonCreator; @@ -82,7 +84,9 @@ PaymentMethodSetupInfo.JSON_PROPERTY_TWINT, PaymentMethodSetupInfo.JSON_PROPERTY_TYPE, PaymentMethodSetupInfo.JSON_PROPERTY_VIPPS, - PaymentMethodSetupInfo.JSON_PROPERTY_VISA + PaymentMethodSetupInfo.JSON_PROPERTY_VISA, + PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY, + PaymentMethodSetupInfo.JSON_PROPERTY_WECHATPAY_POS }) public class PaymentMethodSetupInfo { @@ -358,6 +362,12 @@ public static TypeEnum fromValue(String value) { public static final String JSON_PROPERTY_VISA = "visa"; private GenericPmWithTdiInfo visa; + public static final String JSON_PROPERTY_WECHATPAY = "wechatpay"; + private WeChatPayInfo wechatpay; + + public static final String JSON_PROPERTY_WECHATPAY_POS = "wechatpay_pos"; + private WeChatPayPosInfo wechatpayPos; + public PaymentMethodSetupInfo() { } @@ -1413,6 +1423,66 @@ public void setVisa(GenericPmWithTdiInfo visa) { } + public PaymentMethodSetupInfo wechatpay(WeChatPayInfo wechatpay) { + this.wechatpay = wechatpay; + return this; + } + + /** + * Get wechatpay + * @return wechatpay + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WECHATPAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WeChatPayInfo getWechatpay() { + return wechatpay; + } + + + /** + * wechatpay + * + * @param wechatpay + */ + @JsonProperty(JSON_PROPERTY_WECHATPAY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWechatpay(WeChatPayInfo wechatpay) { + this.wechatpay = wechatpay; + } + + + public PaymentMethodSetupInfo wechatpayPos(WeChatPayPosInfo wechatpayPos) { + this.wechatpayPos = wechatpayPos; + return this; + } + + /** + * Get wechatpayPos + * @return wechatpayPos + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public WeChatPayPosInfo getWechatpayPos() { + return wechatpayPos; + } + + + /** + * wechatpayPos + * + * @param wechatpayPos + */ + @JsonProperty(JSON_PROPERTY_WECHATPAY_POS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setWechatpayPos(WeChatPayPosInfo wechatpayPos) { + this.wechatpayPos = wechatpayPos; + } + + /** * Return true if this PaymentMethodSetupInfo object is equal to o. */ @@ -1458,12 +1528,14 @@ public boolean equals(Object o) { Objects.equals(this.twint, paymentMethodSetupInfo.twint) && Objects.equals(this.type, paymentMethodSetupInfo.type) && Objects.equals(this.vipps, paymentMethodSetupInfo.vipps) && - Objects.equals(this.visa, paymentMethodSetupInfo.visa); + Objects.equals(this.visa, paymentMethodSetupInfo.visa) && + Objects.equals(this.wechatpay, paymentMethodSetupInfo.wechatpay) && + Objects.equals(this.wechatpayPos, paymentMethodSetupInfo.wechatpayPos); } @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, twint, type, vipps, visa); + 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, twint, type, vipps, visa, wechatpay, wechatpayPos); } @Override @@ -1504,6 +1576,8 @@ public String toString() { sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" vipps: ").append(toIndentedString(vipps)).append("\n"); sb.append(" visa: ").append(toIndentedString(visa)).append("\n"); + sb.append(" wechatpay: ").append(toIndentedString(wechatpay)).append("\n"); + sb.append(" wechatpayPos: ").append(toIndentedString(wechatpayPos)).append("\n"); sb.append("}"); return sb.toString(); } diff --git a/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.java new file mode 100644 index 000000000..0cd487f21 --- /dev/null +++ b/src/main/java/com/adyen/model/management/ReprocessAndroidAppResponse.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; + + +/** + * ReprocessAndroidAppResponse + */ +@JsonPropertyOrder({ + ReprocessAndroidAppResponse.JSON_PROPERTY_MESSAGE +}) + +public class ReprocessAndroidAppResponse { + public static final String JSON_PROPERTY_MESSAGE = "Message"; + private String message; + + public ReprocessAndroidAppResponse() { + } + + public ReprocessAndroidAppResponse message(String message) { + this.message = message; + return this; + } + + /** + * The result of the reprocess. + * @return message + **/ + @ApiModelProperty(value = "The result of the reprocess.") + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getMessage() { + return message; + } + + + /** + * The result of the reprocess. + * + * @param message + */ + @JsonProperty(JSON_PROPERTY_MESSAGE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setMessage(String message) { + this.message = message; + } + + + /** + * Return true if this ReprocessAndroidAppResponse object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ReprocessAndroidAppResponse reprocessAndroidAppResponse = (ReprocessAndroidAppResponse) o; + return Objects.equals(this.message, reprocessAndroidAppResponse.message); + } + + @Override + public int hashCode() { + return Objects.hash(message); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ReprocessAndroidAppResponse {\n"); + sb.append(" message: ").append(toIndentedString(message)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +/** + * Create an instance of ReprocessAndroidAppResponse given an JSON string + * + * @param jsonString JSON string + * @return An instance of ReprocessAndroidAppResponse + * @throws JsonProcessingException if the JSON string is invalid with respect to ReprocessAndroidAppResponse + */ + public static ReprocessAndroidAppResponse fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, ReprocessAndroidAppResponse.class); + } +/** + * Convert an instance of ReprocessAndroidAppResponse 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/WeChatPayInfo.java b/src/main/java/com/adyen/model/management/WeChatPayInfo.java new file mode 100644 index 000000000..946a69a5f --- /dev/null +++ b/src/main/java/com/adyen/model/management/WeChatPayInfo.java @@ -0,0 +1,169 @@ +/* + * 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; + + +/** + * WeChatPayInfo + */ +@JsonPropertyOrder({ + WeChatPayInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, + WeChatPayInfo.JSON_PROPERTY_EMAIL +}) + +public class WeChatPayInfo { + public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; + private String contactPersonName; + + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + + public WeChatPayInfo() { + } + + public WeChatPayInfo contactPersonName(String contactPersonName) { + this.contactPersonName = contactPersonName; + return this; + } + + /** + * The name of the contact person from merchant support. + * @return contactPersonName + **/ + @ApiModelProperty(required = true, value = "The name of the contact person from merchant support.") + @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getContactPersonName() { + return contactPersonName; + } + + + /** + * The name of the contact person from merchant support. + * + * @param contactPersonName + */ + @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContactPersonName(String contactPersonName) { + this.contactPersonName = contactPersonName; + } + + + public WeChatPayInfo email(String email) { + this.email = email; + return this; + } + + /** + * The email address of merchant support. + * @return email + **/ + @ApiModelProperty(required = true, value = "The email address of merchant support.") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEmail() { + return email; + } + + + /** + * The email address of merchant support. + * + * @param email + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + + + /** + * Return true if this WeChatPayInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WeChatPayInfo weChatPayInfo = (WeChatPayInfo) o; + return Objects.equals(this.contactPersonName, weChatPayInfo.contactPersonName) && + Objects.equals(this.email, weChatPayInfo.email); + } + + @Override + public int hashCode() { + return Objects.hash(contactPersonName, email); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WeChatPayInfo {\n"); + sb.append(" contactPersonName: ").append(toIndentedString(contactPersonName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).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 WeChatPayInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of WeChatPayInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayInfo + */ + public static WeChatPayInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, WeChatPayInfo.class); + } +/** + * Convert an instance of WeChatPayInfo 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/WeChatPayPosInfo.java b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java new file mode 100644 index 000000000..45a1f00d4 --- /dev/null +++ b/src/main/java/com/adyen/model/management/WeChatPayPosInfo.java @@ -0,0 +1,169 @@ +/* + * 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; + + +/** + * WeChatPayPosInfo + */ +@JsonPropertyOrder({ + WeChatPayPosInfo.JSON_PROPERTY_CONTACT_PERSON_NAME, + WeChatPayPosInfo.JSON_PROPERTY_EMAIL +}) + +public class WeChatPayPosInfo { + public static final String JSON_PROPERTY_CONTACT_PERSON_NAME = "contactPersonName"; + private String contactPersonName; + + public static final String JSON_PROPERTY_EMAIL = "email"; + private String email; + + public WeChatPayPosInfo() { + } + + public WeChatPayPosInfo contactPersonName(String contactPersonName) { + this.contactPersonName = contactPersonName; + return this; + } + + /** + * The name of the contact person from merchant support. + * @return contactPersonName + **/ + @ApiModelProperty(required = true, value = "The name of the contact person from merchant support.") + @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getContactPersonName() { + return contactPersonName; + } + + + /** + * The name of the contact person from merchant support. + * + * @param contactPersonName + */ + @JsonProperty(JSON_PROPERTY_CONTACT_PERSON_NAME) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setContactPersonName(String contactPersonName) { + this.contactPersonName = contactPersonName; + } + + + public WeChatPayPosInfo email(String email) { + this.email = email; + return this; + } + + /** + * The email address of merchant support. + * @return email + **/ + @ApiModelProperty(required = true, value = "The email address of merchant support.") + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getEmail() { + return email; + } + + + /** + * The email address of merchant support. + * + * @param email + */ + @JsonProperty(JSON_PROPERTY_EMAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setEmail(String email) { + this.email = email; + } + + + /** + * Return true if this WeChatPayPosInfo object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WeChatPayPosInfo weChatPayPosInfo = (WeChatPayPosInfo) o; + return Objects.equals(this.contactPersonName, weChatPayPosInfo.contactPersonName) && + Objects.equals(this.email, weChatPayPosInfo.email); + } + + @Override + public int hashCode() { + return Objects.hash(contactPersonName, email); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WeChatPayPosInfo {\n"); + sb.append(" contactPersonName: ").append(toIndentedString(contactPersonName)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).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 WeChatPayPosInfo given an JSON string + * + * @param jsonString JSON string + * @return An instance of WeChatPayPosInfo + * @throws JsonProcessingException if the JSON string is invalid with respect to WeChatPayPosInfo + */ + public static WeChatPayPosInfo fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, WeChatPayPosInfo.class); + } +/** + * Convert an instance of WeChatPayPosInfo 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/managementwebhooks/AccountNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java index ed6bdbc34..51f700728 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/AccountNotificationResponse.java @@ -47,10 +47,10 @@ public AccountNotificationResponse notificationResponse(String notificationRespo } /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * @return notificationResponse **/ - @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") + @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +60,7 @@ public String getNotificationResponse() { /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * * @param notificationResponse */ diff --git a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java index a09ea4c8d..0a76aff40 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/PaymentMethodNotificationResponse.java @@ -47,10 +47,10 @@ public PaymentMethodNotificationResponse notificationResponse(String notificatio } /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * @return notificationResponse **/ - @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") + @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +60,7 @@ public String getNotificationResponse() { /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * * @param notificationResponse */ diff --git a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java index 344fbf28f..ef2be8243 100644 --- a/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java +++ b/src/main/java/com/adyen/model/managementwebhooks/TerminalSettingsNotificationResponse.java @@ -47,10 +47,10 @@ public TerminalSettingsNotificationResponse notificationResponse(String notifica } /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * @return notificationResponse **/ - @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") + @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +60,7 @@ public String getNotificationResponse() { /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * * @param notificationResponse */ diff --git a/src/main/java/com/adyen/model/transfers/BankCategoryData.java b/src/main/java/com/adyen/model/transfers/BankCategoryData.java index 7f3b0a5ed..b73bc2ae9 100644 --- a/src/main/java/com/adyen/model/transfers/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transfers/BankCategoryData.java @@ -37,7 +37,7 @@ public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { CROSSBORDER("crossBorder"), @@ -127,10 +127,10 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return priority **/ - @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).") + @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).") @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +140,7 @@ public PriorityEnum getPriority() { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @param priority */ diff --git a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java index 297a1e039..c724718bf 100644 --- a/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/ConfirmationTrackingData.java @@ -37,7 +37,7 @@ public class ConfirmationTrackingData { /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ public enum StatusEnum { CREDITED("credited"); @@ -73,7 +73,7 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ public enum TypeEnum { CONFIRMATION("confirmation"); @@ -117,10 +117,10 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * @return status **/ - @ApiModelProperty(required = true, value = "Possible values: - **credited**: Transfer is credited to beneficiary.") + @ApiModelProperty(required = true, value = "The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account.") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +130,7 @@ public StatusEnum getStatus() { /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * * @param status */ @@ -147,10 +147,10 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * @return type **/ - @ApiModelProperty(required = true, value = "**confirmation**") + @ApiModelProperty(required = true, value = "The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +160,7 @@ public TypeEnum getType() { /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * * @param type */ diff --git a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java index 6972ea438..706e94633 100644 --- a/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/EstimationTrackingData.java @@ -41,7 +41,7 @@ public class EstimationTrackingData { private OffsetDateTime estimatedArrivalTime; /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ public enum TypeEnum { ESTIMATION("estimation"); @@ -115,10 +115,10 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * @return type **/ - @ApiModelProperty(required = true, value = "**estimation**") + @ApiModelProperty(required = true, value = "The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +128,7 @@ public TypeEnum getType() { /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * * @param type */ diff --git a/src/main/java/com/adyen/model/transfers/ExternalReason.java b/src/main/java/com/adyen/model/transfers/ExternalReason.java index 9a42ececd..eacaa7944 100644 --- a/src/main/java/com/adyen/model/transfers/ExternalReason.java +++ b/src/main/java/com/adyen/model/transfers/ExternalReason.java @@ -55,10 +55,10 @@ public ExternalReason code(String code) { } /** - * The code for this reason code. + * The reason code. * @return code **/ - @ApiModelProperty(value = "The code for this reason code.") + @ApiModelProperty(value = "The reason code.") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +68,7 @@ public String getCode() { /** - * The code for this reason code. + * The reason code. * * @param code */ @@ -85,10 +85,10 @@ public ExternalReason description(String description) { } /** - * The description for this reason code. + * The description of the reason code. * @return description **/ - @ApiModelProperty(value = "The description for this reason code.") + @ApiModelProperty(value = "The description of the reason code.") @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +98,7 @@ public String getDescription() { /** - * The description for this reason code. + * The description of the reason code. * * @param description */ @@ -115,10 +115,10 @@ public ExternalReason namespace(String namespace) { } /** - * The namespace for this reason code. + * The namespace for the reason code. * @return namespace **/ - @ApiModelProperty(value = "The namespace for this reason code.") + @ApiModelProperty(value = "The namespace for the reason code.") @JsonProperty(JSON_PROPERTY_NAMESPACE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +128,7 @@ public String getNamespace() { /** - * The namespace for this reason code. + * The namespace for the reason code. * * @param namespace */ diff --git a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java index 733cffae0..a134ef37e 100644 --- a/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transfers/InternalReviewTrackingData.java @@ -38,7 +38,7 @@ public class InternalReviewTrackingData { /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { REFUSEDFORREGULATORYREASONS("refusedForRegulatoryReasons"); @@ -74,7 +74,7 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ public enum StatusEnum { PENDING("pending"), @@ -112,7 +112,7 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ public enum TypeEnum { INTERNALREVIEW("internalReview"); @@ -156,10 +156,10 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * @return reason **/ - @ApiModelProperty(value = "Possible values: - **refusedForRegulatoryReasons**.") + @ApiModelProperty(value = "The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). ") @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +169,7 @@ public ReasonEnum getReason() { /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * * @param reason */ @@ -186,10 +186,10 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * @return status **/ - @ApiModelProperty(required = true, value = "Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. ") + @ApiModelProperty(required = true, value = "The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. ") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +199,7 @@ public StatusEnum getStatus() { /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * * @param status */ @@ -216,10 +216,10 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * @return type **/ - @ApiModelProperty(required = true, value = "**internalReview**") + @ApiModelProperty(required = true, value = "The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +229,7 @@ public TypeEnum getType() { /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * * @param type */ diff --git a/src/main/java/com/adyen/model/transfers/IssuedCard.java b/src/main/java/com/adyen/model/transfers/IssuedCard.java index 11806846e..6d5e9e507 100644 --- a/src/main/java/com/adyen/model/transfers/IssuedCard.java +++ b/src/main/java/com/adyen/model/transfers/IssuedCard.java @@ -324,10 +324,10 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * @return schemeTraceId **/ - @ApiModelProperty(value = "The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.") + @ApiModelProperty(value = "The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments.") @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +337,7 @@ public String getSchemeTraceId() { /** - * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * * @param schemeTraceId */ @@ -354,10 +354,10 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * @return schemeUniqueTransactionId **/ - @ApiModelProperty(value = "The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.") + @ApiModelProperty(value = "The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.") @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +367,7 @@ public String getSchemeUniqueTransactionId() { /** - * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * * @param schemeUniqueTransactionId */ diff --git a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java index b59bef541..a759b9556 100644 --- a/src/main/java/com/adyen/model/transfers/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transfers/PaymentInstrument.java @@ -149,10 +149,10 @@ public PaymentInstrument tokenType(String tokenType) { } /** - * The type of wallet the network token is associated with. + * The type of wallet that the network token is associated with. * @return tokenType **/ - @ApiModelProperty(value = "The type of wallet the network token is associated with.") + @ApiModelProperty(value = "The type of wallet that the network token is associated with.") @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +162,7 @@ public String getTokenType() { /** - * The type of wallet the network token is associated with. + * The type of wallet that the network token is associated with. * * @param tokenType */ diff --git a/src/main/java/com/adyen/model/transfers/PlatformPayment.java b/src/main/java/com/adyen/model/transfers/PlatformPayment.java index 6c52499bd..075e5b390 100644 --- a/src/main/java/com/adyen/model/transfers/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transfers/PlatformPayment.java @@ -75,6 +75,10 @@ public enum PlatformPaymentTypeEnum { SCHEMEFEE("SchemeFee"), + SURCHARGE("Surcharge"), + + TIP("Tip"), + TOPUP("TopUp"), VAT("VAT"); diff --git a/src/main/java/com/adyen/model/transfers/RoutingDetails.java b/src/main/java/com/adyen/model/transfers/RoutingDetails.java new file mode 100644 index 000000000..c9923a03e --- /dev/null +++ b/src/main/java/com/adyen/model/transfers/RoutingDetails.java @@ -0,0 +1,284 @@ +/* + * Transfers API + * + * The version of the OpenAPI document: 4 + * + * + * 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.transfers; + +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; + + +/** + * RoutingDetails + */ +@JsonPropertyOrder({ + RoutingDetails.JSON_PROPERTY_DETAIL, + RoutingDetails.JSON_PROPERTY_ERROR_CODE, + RoutingDetails.JSON_PROPERTY_PRIORITY, + RoutingDetails.JSON_PROPERTY_TITLE +}) + +public class RoutingDetails { + public static final String JSON_PROPERTY_DETAIL = "detail"; + private String detail; + + public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; + private String errorCode; + + /** + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + */ + public enum PriorityEnum { + CROSSBORDER("crossBorder"), + + FAST("fast"), + + INSTANT("instant"), + + INTERNAL("internal"), + + REGULAR("regular"), + + WIRE("wire"); + + private String value; + + PriorityEnum(String value) { + this.value = value; + } + + @JsonValue + public String getValue() { + return value; + } + + @Override + public String toString() { + return String.valueOf(value); + } + + @JsonCreator + public static PriorityEnum fromValue(String value) { + for (PriorityEnum b : PriorityEnum.values()) { + if (b.value.equals(value)) { + return b; + } + } + throw new IllegalArgumentException("Unexpected value '" + value + "'"); + } + } + + public static final String JSON_PROPERTY_PRIORITY = "priority"; + private PriorityEnum priority; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public RoutingDetails() { + } + + public RoutingDetails detail(String detail) { + this.detail = detail; + return this; + } + + /** + * A human-readable explanation specific to this occurrence of the problem. + * @return detail + **/ + @ApiModelProperty(value = "A human-readable explanation specific to this occurrence of the problem.") + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDetail() { + return detail; + } + + + /** + * A human-readable explanation specific to this occurrence of the problem. + * + * @param detail + */ + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(String detail) { + this.detail = detail; + } + + + public RoutingDetails errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * A code that identifies the problem type. + * @return errorCode + **/ + @ApiModelProperty(value = "A code that identifies the problem type.") + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getErrorCode() { + return errorCode; + } + + + /** + * A code that identifies the problem type. + * + * @param errorCode + */ + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + + public RoutingDetails priority(PriorityEnum priority) { + this.priority = priority; + return this; + } + + /** + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * @return priority + **/ + @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).") + @JsonProperty(JSON_PROPERTY_PRIORITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public PriorityEnum getPriority() { + return priority; + } + + + /** + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). + * + * @param priority + */ + @JsonProperty(JSON_PROPERTY_PRIORITY) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setPriority(PriorityEnum priority) { + this.priority = priority; + } + + + public RoutingDetails title(String title) { + this.title = title; + return this; + } + + /** + * A short, human-readable summary of the problem type. + * @return title + **/ + @ApiModelProperty(value = "A short, human-readable summary of the problem type.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitle() { + return title; + } + + + /** + * A short, human-readable summary of the problem type. + * + * @param title + */ + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTitle(String title) { + this.title = title; + } + + + /** + * Return true if this RoutingDetails object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RoutingDetails routingDetails = (RoutingDetails) o; + return Objects.equals(this.detail, routingDetails.detail) && + Objects.equals(this.errorCode, routingDetails.errorCode) && + Objects.equals(this.priority, routingDetails.priority) && + Objects.equals(this.title, routingDetails.title); + } + + @Override + public int hashCode() { + return Objects.hash(detail, errorCode, priority, title); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RoutingDetails {\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).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 RoutingDetails given an JSON string + * + * @param jsonString JSON string + * @return An instance of RoutingDetails + * @throws JsonProcessingException if the JSON string is invalid with respect to RoutingDetails + */ + public static RoutingDetails fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, RoutingDetails.class); + } +/** + * Convert an instance of RoutingDetails 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/transfers/Transfer.java b/src/main/java/com/adyen/model/transfers/Transfer.java index 4a1978eb8..560f591a2 100644 --- a/src/main/java/com/adyen/model/transfers/Transfer.java +++ b/src/main/java/com/adyen/model/transfers/Transfer.java @@ -66,7 +66,7 @@ public class Transfer { private ResourceReference balanceAccount; /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. */ public enum CategoryEnum { BANK("bank"), @@ -608,10 +608,10 @@ public Transfer category(CategoryEnum category) { } /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * @return category **/ - @ApiModelProperty(required = true, value = "The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.") + @ApiModelProperty(required = true, value = "The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,7 +621,7 @@ public CategoryEnum getCategory() { /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * * @param category */ @@ -908,10 +908,10 @@ public Transfer referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return referenceForBeneficiary **/ - @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") + @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -921,7 +921,7 @@ public String getReferenceForBeneficiary() { /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @param referenceForBeneficiary */ diff --git a/src/main/java/com/adyen/model/transfers/TransferData.java b/src/main/java/com/adyen/model/transfers/TransferData.java index 78ffaa231..3abbded49 100644 --- a/src/main/java/com/adyen/model/transfers/TransferData.java +++ b/src/main/java/com/adyen/model/transfers/TransferData.java @@ -84,7 +84,7 @@ public class TransferData { private List balances = null; /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. */ public enum CategoryEnum { BANK("bank"), @@ -706,10 +706,10 @@ public TransferData category(CategoryEnum category) { } /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * @return category **/ - @ApiModelProperty(required = true, value = "The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.") + @ApiModelProperty(required = true, value = "The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -719,7 +719,7 @@ public CategoryEnum getCategory() { /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * * @param category */ @@ -1044,10 +1044,10 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return referenceForBeneficiary **/ - @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") + @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,7 +1057,7 @@ public String getReferenceForBeneficiary() { /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @param referenceForBeneficiary */ @@ -1074,10 +1074,10 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * @return sequenceNumber **/ - @ApiModelProperty(value = "The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order.") + @ApiModelProperty(value = "The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order.") @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1087,7 +1087,7 @@ public Integer getSequenceNumber() { /** - * The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * * @param sequenceNumber */ diff --git a/src/main/java/com/adyen/model/transfers/TransferEvent.java b/src/main/java/com/adyen/model/transfers/TransferEvent.java index 83cd2240e..76d0b0a17 100644 --- a/src/main/java/com/adyen/model/transfers/TransferEvent.java +++ b/src/main/java/com/adyen/model/transfers/TransferEvent.java @@ -69,7 +69,6 @@ public class TransferEvent { private OffsetDateTime bookingDate; public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; - @Deprecated private OffsetDateTime estimatedArrivalTime; public static final String JSON_PROPERTY_EXTERNAL_REASON = "externalReason"; @@ -470,19 +469,16 @@ public void setBookingDate(OffsetDateTime bookingDate) { } - @Deprecated public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { this.estimatedArrivalTime = estimatedArrivalTime; return this; } /** - * The estimated time the beneficiary should have access to the funds. + * The estimated time when the beneficiary should have access to the funds. * @return estimatedArrivalTime - * @deprecated **/ - @Deprecated - @ApiModelProperty(value = "The estimated time the beneficiary should have access to the funds.") + @ApiModelProperty(value = "The estimated time when the beneficiary should have access to the funds.") @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,11 +488,10 @@ public OffsetDateTime getEstimatedArrivalTime() { /** - * The estimated time the beneficiary should have access to the funds. + * The estimated time when the beneficiary should have access to the funds. * * @param estimatedArrivalTime */ - @Deprecated @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -608,10 +603,10 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { } /** - * The list of the balance mutation per event. + * The list of balance mutations per event. * @return mutations **/ - @ApiModelProperty(value = "The list of the balance mutation per event.") + @ApiModelProperty(value = "The list of balance mutations per event.") @JsonProperty(JSON_PROPERTY_MUTATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,7 +616,7 @@ public List getMutations() { /** - * The list of the balance mutation per event. + * The list of balance mutations per event. * * @param mutations */ diff --git a/src/main/java/com/adyen/model/transfers/TransferInfo.java b/src/main/java/com/adyen/model/transfers/TransferInfo.java index 9d89f1f5d..cbedff400 100644 --- a/src/main/java/com/adyen/model/transfers/TransferInfo.java +++ b/src/main/java/com/adyen/model/transfers/TransferInfo.java @@ -54,7 +54,7 @@ public class TransferInfo { private String balanceAccountId; /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. */ public enum CategoryEnum { BANK("bank"), @@ -107,7 +107,7 @@ public static CategoryEnum fromValue(String value) { private String paymentInstrumentId; /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { CROSSBORDER("crossBorder"), @@ -230,10 +230,10 @@ public TransferInfo category(CategoryEnum category) { } /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * @return category **/ - @ApiModelProperty(required = true, value = "The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.") + @ApiModelProperty(required = true, value = "The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -243,7 +243,7 @@ public CategoryEnum getCategory() { /** - * The type of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The type of transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by a Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * * @param category */ @@ -350,10 +350,10 @@ public TransferInfo priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return priority **/ - @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).") + @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).") @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -363,7 +363,7 @@ public PriorityEnum getPriority() { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @param priority */ @@ -410,10 +410,10 @@ public TransferInfo referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return referenceForBeneficiary **/ - @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") + @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -423,7 +423,7 @@ public String getReferenceForBeneficiary() { /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both parties involved in the funds movement. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @param referenceForBeneficiary */ diff --git a/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java new file mode 100644 index 000000000..044bfaf61 --- /dev/null +++ b/src/main/java/com/adyen/model/transfers/TransferServiceRestServiceError.java @@ -0,0 +1,477 @@ +/* + * Transfers API + * + * The version of the OpenAPI document: 4 + * + * + * 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.transfers; + +import java.util.Objects; +import java.util.Arrays; +import java.util.Map; +import java.util.HashMap; +import com.adyen.model.transfers.InvalidField; +import com.adyen.model.transfers.RoutingDetails; +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 java.util.ArrayList; +import java.util.List; +import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import com.fasterxml.jackson.core.JsonProcessingException; + + +/** + * TransferServiceRestServiceError + */ +@JsonPropertyOrder({ + TransferServiceRestServiceError.JSON_PROPERTY_DETAIL, + TransferServiceRestServiceError.JSON_PROPERTY_ERROR_CODE, + TransferServiceRestServiceError.JSON_PROPERTY_INSTANCE, + TransferServiceRestServiceError.JSON_PROPERTY_INVALID_FIELDS, + TransferServiceRestServiceError.JSON_PROPERTY_REQUEST_ID, + TransferServiceRestServiceError.JSON_PROPERTY_RESPONSE, + TransferServiceRestServiceError.JSON_PROPERTY_ROUTING_DETAILS, + TransferServiceRestServiceError.JSON_PROPERTY_STATUS, + TransferServiceRestServiceError.JSON_PROPERTY_TITLE, + TransferServiceRestServiceError.JSON_PROPERTY_TYPE +}) + +public class TransferServiceRestServiceError { + public static final String JSON_PROPERTY_DETAIL = "detail"; + private String detail; + + public static final String JSON_PROPERTY_ERROR_CODE = "errorCode"; + private String errorCode; + + public static final String JSON_PROPERTY_INSTANCE = "instance"; + private String instance; + + public static final String JSON_PROPERTY_INVALID_FIELDS = "invalidFields"; + private List invalidFields = null; + + public static final String JSON_PROPERTY_REQUEST_ID = "requestId"; + private String requestId; + + public static final String JSON_PROPERTY_RESPONSE = "response"; + private Object response; + + public static final String JSON_PROPERTY_ROUTING_DETAILS = "routingDetails"; + private List routingDetails = null; + + public static final String JSON_PROPERTY_STATUS = "status"; + private Integer status; + + public static final String JSON_PROPERTY_TITLE = "title"; + private String title; + + public static final String JSON_PROPERTY_TYPE = "type"; + private String type; + + public TransferServiceRestServiceError() { + } + + public TransferServiceRestServiceError detail(String detail) { + this.detail = detail; + return this; + } + + /** + * A human-readable explanation specific to this occurrence of the problem. + * @return detail + **/ + @ApiModelProperty(required = true, value = "A human-readable explanation specific to this occurrence of the problem.") + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getDetail() { + return detail; + } + + + /** + * A human-readable explanation specific to this occurrence of the problem. + * + * @param detail + */ + @JsonProperty(JSON_PROPERTY_DETAIL) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setDetail(String detail) { + this.detail = detail; + } + + + public TransferServiceRestServiceError errorCode(String errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * A code that identifies the problem type. + * @return errorCode + **/ + @ApiModelProperty(required = true, value = "A code that identifies the problem type.") + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getErrorCode() { + return errorCode; + } + + + /** + * A code that identifies the problem type. + * + * @param errorCode + */ + @JsonProperty(JSON_PROPERTY_ERROR_CODE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setErrorCode(String errorCode) { + this.errorCode = errorCode; + } + + + public TransferServiceRestServiceError instance(String instance) { + this.instance = instance; + return this; + } + + /** + * A unique URI that identifies the specific occurrence of the problem. + * @return instance + **/ + @ApiModelProperty(value = "A unique URI that identifies the specific occurrence of the problem.") + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getInstance() { + return instance; + } + + + /** + * A unique URI that identifies the specific occurrence of the problem. + * + * @param instance + */ + @JsonProperty(JSON_PROPERTY_INSTANCE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInstance(String instance) { + this.instance = instance; + } + + + public TransferServiceRestServiceError invalidFields(List invalidFields) { + this.invalidFields = invalidFields; + return this; + } + + public TransferServiceRestServiceError addInvalidFieldsItem(InvalidField invalidFieldsItem) { + if (this.invalidFields == null) { + this.invalidFields = new ArrayList<>(); + } + this.invalidFields.add(invalidFieldsItem); + return this; + } + + /** + * Detailed explanation of each validation error, when applicable. + * @return invalidFields + **/ + @ApiModelProperty(value = "Detailed explanation of each validation error, when applicable.") + @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getInvalidFields() { + return invalidFields; + } + + + /** + * Detailed explanation of each validation error, when applicable. + * + * @param invalidFields + */ + @JsonProperty(JSON_PROPERTY_INVALID_FIELDS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setInvalidFields(List invalidFields) { + this.invalidFields = invalidFields; + } + + + public TransferServiceRestServiceError requestId(String requestId) { + this.requestId = requestId; + return this; + } + + /** + * A unique reference for the request, essentially the same as `pspReference`. + * @return requestId + **/ + @ApiModelProperty(value = "A unique reference for the request, essentially the same as `pspReference`.") + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getRequestId() { + return requestId; + } + + + /** + * A unique reference for the request, essentially the same as `pspReference`. + * + * @param requestId + */ + @JsonProperty(JSON_PROPERTY_REQUEST_ID) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRequestId(String requestId) { + this.requestId = requestId; + } + + + public TransferServiceRestServiceError response(Object response) { + this.response = response; + return this; + } + + /** + * Get response + * @return response + **/ + @ApiModelProperty(value = "") + @JsonProperty(JSON_PROPERTY_RESPONSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Object getResponse() { + return response; + } + + + /** + * response + * + * @param response + */ + @JsonProperty(JSON_PROPERTY_RESPONSE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setResponse(Object response) { + this.response = response; + } + + + public TransferServiceRestServiceError routingDetails(List routingDetails) { + this.routingDetails = routingDetails; + return this; + } + + public TransferServiceRestServiceError addRoutingDetailsItem(RoutingDetails routingDetailsItem) { + if (this.routingDetails == null) { + this.routingDetails = new ArrayList<>(); + } + this.routingDetails.add(routingDetailsItem); + return this; + } + + /** + * Detailed explanation of each attempt to route the transfer with the priorities from the request. + * @return routingDetails + **/ + @ApiModelProperty(value = "Detailed explanation of each attempt to route the transfer with the priorities from the request.") + @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public List getRoutingDetails() { + return routingDetails; + } + + + /** + * Detailed explanation of each attempt to route the transfer with the priorities from the request. + * + * @param routingDetails + */ + @JsonProperty(JSON_PROPERTY_ROUTING_DETAILS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setRoutingDetails(List routingDetails) { + this.routingDetails = routingDetails; + } + + + public TransferServiceRestServiceError status(Integer status) { + this.status = status; + return this; + } + + /** + * The HTTP status code. + * @return status + **/ + @ApiModelProperty(required = true, value = "The HTTP status code.") + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public Integer getStatus() { + return status; + } + + + /** + * The HTTP status code. + * + * @param status + */ + @JsonProperty(JSON_PROPERTY_STATUS) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setStatus(Integer status) { + this.status = status; + } + + + public TransferServiceRestServiceError title(String title) { + this.title = title; + return this; + } + + /** + * A short, human-readable summary of the problem type. + * @return title + **/ + @ApiModelProperty(required = true, value = "A short, human-readable summary of the problem type.") + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getTitle() { + return title; + } + + + /** + * A short, human-readable summary of the problem type. + * + * @param title + */ + @JsonProperty(JSON_PROPERTY_TITLE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setTitle(String title) { + this.title = title; + } + + + public TransferServiceRestServiceError type(String type) { + this.type = type; + return this; + } + + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * @return type + **/ + @ApiModelProperty(required = true, value = "A URI that identifies the problem type, pointing to human-readable documentation on this problem type.") + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + + public String getType() { + return type; + } + + + /** + * A URI that identifies the problem type, pointing to human-readable documentation on this problem type. + * + * @param type + */ + @JsonProperty(JSON_PROPERTY_TYPE) + @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) + public void setType(String type) { + this.type = type; + } + + + /** + * Return true if this TransferServiceRestServiceError object is equal to o. + */ + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransferServiceRestServiceError transferServiceRestServiceError = (TransferServiceRestServiceError) o; + return Objects.equals(this.detail, transferServiceRestServiceError.detail) && + Objects.equals(this.errorCode, transferServiceRestServiceError.errorCode) && + Objects.equals(this.instance, transferServiceRestServiceError.instance) && + Objects.equals(this.invalidFields, transferServiceRestServiceError.invalidFields) && + Objects.equals(this.requestId, transferServiceRestServiceError.requestId) && + Objects.equals(this.response, transferServiceRestServiceError.response) && + Objects.equals(this.routingDetails, transferServiceRestServiceError.routingDetails) && + Objects.equals(this.status, transferServiceRestServiceError.status) && + Objects.equals(this.title, transferServiceRestServiceError.title) && + Objects.equals(this.type, transferServiceRestServiceError.type); + } + + @Override + public int hashCode() { + return Objects.hash(detail, errorCode, instance, invalidFields, requestId, response, routingDetails, status, title, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransferServiceRestServiceError {\n"); + sb.append(" detail: ").append(toIndentedString(detail)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" instance: ").append(toIndentedString(instance)).append("\n"); + sb.append(" invalidFields: ").append(toIndentedString(invalidFields)).append("\n"); + sb.append(" requestId: ").append(toIndentedString(requestId)).append("\n"); + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append(" routingDetails: ").append(toIndentedString(routingDetails)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } + +/** + * Create an instance of TransferServiceRestServiceError given an JSON string + * + * @param jsonString JSON string + * @return An instance of TransferServiceRestServiceError + * @throws JsonProcessingException if the JSON string is invalid with respect to TransferServiceRestServiceError + */ + public static TransferServiceRestServiceError fromJson(String jsonString) throws JsonProcessingException { + return JSON.getMapper().readValue(jsonString, TransferServiceRestServiceError.class); + } +/** + * Convert an instance of TransferServiceRestServiceError 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/transferwebhooks/BalancePlatformNotificationResponse.java b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java index 83980abfb..ad5699c35 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BalancePlatformNotificationResponse.java @@ -47,10 +47,10 @@ public BalancePlatformNotificationResponse notificationResponse(String notificat } /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * @return notificationResponse **/ - @ApiModelProperty(value = "Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") + @ApiModelProperty(value = "Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications).") @JsonProperty(JSON_PROPERTY_NOTIFICATION_RESPONSE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -60,7 +60,7 @@ public String getNotificationResponse() { /** - * Respond with **HTTP 200 OK** and `[accepted]` in the response body to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). + * Respond with any **2xx** HTTP status code to [accept the webhook](https://docs.adyen.com/development-resources/webhooks#accept-notifications). * * @param notificationResponse */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java index 5d9d240e4..583a6cd4e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/BankCategoryData.java @@ -37,7 +37,7 @@ public class BankCategoryData { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). */ public enum PriorityEnum { CROSSBORDER("crossBorder"), @@ -127,10 +127,10 @@ public BankCategoryData priority(PriorityEnum priority) { } /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * @return priority **/ - @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN).") + @ApiModelProperty(value = "The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN).") @JsonProperty(JSON_PROPERTY_PRIORITY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -140,7 +140,7 @@ public PriorityEnum getPriority() { /** - * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: For normal, low-value transactions. * **fast**: Faster way to transfer funds but has higher fees. Recommended for high-priority, low-value transactions. * **wire**: Fastest way to transfer funds but has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: Instant way to transfer funds in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: High-value transfer to a recipient in a different country. * **internal**: Transfer to an Adyen-issued business bank account (by bank account number/IBAN). + * The priority for the bank transfer. This sets the speed at which the transfer is sent and the fees that you have to pay. Required for transfers with `category` **bank**. Possible values: * **regular**: for normal, low-value transactions. * **fast**: a faster way to transfer funds, but the fees are higher. Recommended for high-priority, low-value transactions. * **wire**: the fastest way to transfer funds, but this has the highest fees. Recommended for high-priority, high-value transactions. * **instant**: for instant funds transfers in [SEPA countries](https://www.ecb.europa.eu/paym/integration/retail/sepa/html/index.en.html). * **crossBorder**: for high-value transfers to a recipient in a different country. * **internal**: for transfers to an Adyen-issued business bank account (by bank account number/IBAN). * * @param priority */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java index 8e74be24f..832f06e0e 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ConfirmationTrackingData.java @@ -37,7 +37,7 @@ public class ConfirmationTrackingData { /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. */ public enum StatusEnum { CREDITED("credited"); @@ -73,7 +73,7 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. */ public enum TypeEnum { CONFIRMATION("confirmation"); @@ -117,10 +117,10 @@ public ConfirmationTrackingData status(StatusEnum status) { } /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * @return status **/ - @ApiModelProperty(required = true, value = "Possible values: - **credited**: Transfer is credited to beneficiary.") + @ApiModelProperty(required = true, value = "The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account.") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -130,7 +130,7 @@ public StatusEnum getStatus() { /** - * Possible values: - **credited**: Transfer is credited to beneficiary. + * The status of the transfer. Possible values: - **credited**: the funds are credited to your user's transfer instrument or bank account. * * @param status */ @@ -147,10 +147,10 @@ public ConfirmationTrackingData type(TypeEnum type) { } /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * @return type **/ - @ApiModelProperty(required = true, value = "**confirmation**") + @ApiModelProperty(required = true, value = "The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -160,7 +160,7 @@ public TypeEnum getType() { /** - * **confirmation** + * The type of the tracking event. Possible values: - **confirmation**: the transfer passed Adyen's internal review. * * @param type */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java index 63dd10789..1dd76cd37 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/EstimationTrackingData.java @@ -41,7 +41,7 @@ public class EstimationTrackingData { private OffsetDateTime estimatedArrivalTime; /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. */ public enum TypeEnum { ESTIMATION("estimation"); @@ -115,10 +115,10 @@ public EstimationTrackingData type(TypeEnum type) { } /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * @return type **/ - @ApiModelProperty(required = true, value = "**estimation**") + @ApiModelProperty(required = true, value = "The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +128,7 @@ public TypeEnum getType() { /** - * **estimation** + * The type of tracking event. Possible values: - **estimation**: the estimated date and time of when the funds will be credited has been determined. * * @param type */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java index 1a676294c..8648d5b31 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java +++ b/src/main/java/com/adyen/model/transferwebhooks/ExternalReason.java @@ -55,10 +55,10 @@ public ExternalReason code(String code) { } /** - * The code for this reason code. + * The reason code. * @return code **/ - @ApiModelProperty(value = "The code for this reason code.") + @ApiModelProperty(value = "The reason code.") @JsonProperty(JSON_PROPERTY_CODE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -68,7 +68,7 @@ public String getCode() { /** - * The code for this reason code. + * The reason code. * * @param code */ @@ -85,10 +85,10 @@ public ExternalReason description(String description) { } /** - * The description for this reason code. + * The description of the reason code. * @return description **/ - @ApiModelProperty(value = "The description for this reason code.") + @ApiModelProperty(value = "The description of the reason code.") @JsonProperty(JSON_PROPERTY_DESCRIPTION) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -98,7 +98,7 @@ public String getDescription() { /** - * The description for this reason code. + * The description of the reason code. * * @param description */ @@ -115,10 +115,10 @@ public ExternalReason namespace(String namespace) { } /** - * The namespace for this reason code. + * The namespace for the reason code. * @return namespace **/ - @ApiModelProperty(value = "The namespace for this reason code.") + @ApiModelProperty(value = "The namespace for the reason code.") @JsonProperty(JSON_PROPERTY_NAMESPACE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -128,7 +128,7 @@ public String getNamespace() { /** - * The namespace for this reason code. + * The namespace for the reason code. * * @param namespace */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java index 0089808b5..6ab0c915a 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/InternalReviewTrackingData.java @@ -38,7 +38,7 @@ public class InternalReviewTrackingData { /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). */ public enum ReasonEnum { REFUSEDFORREGULATORYREASONS("refusedForRegulatoryReasons"); @@ -74,7 +74,7 @@ public static ReasonEnum fromValue(String value) { private ReasonEnum reason; /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. */ public enum StatusEnum { PENDING("pending"), @@ -112,7 +112,7 @@ public static StatusEnum fromValue(String value) { private StatusEnum status; /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. */ public enum TypeEnum { INTERNALREVIEW("internalReview"); @@ -156,10 +156,10 @@ public InternalReviewTrackingData reason(ReasonEnum reason) { } /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * @return reason **/ - @ApiModelProperty(value = "Possible values: - **refusedForRegulatoryReasons**.") + @ApiModelProperty(value = "The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). ") @JsonProperty(JSON_PROPERTY_REASON) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -169,7 +169,7 @@ public ReasonEnum getReason() { /** - * Possible values: - **refusedForRegulatoryReasons**. + * The reason why the transfer failed Adyen's internal review. Possible values: - **refusedForRegulatoryReasons**: the transfer does not comply with Adyen's risk policy. For more information, [contact the Support Team](https://www.adyen.help/hc/en-us/requests/new). * * @param reason */ @@ -186,10 +186,10 @@ public InternalReviewTrackingData status(StatusEnum status) { } /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * @return status **/ - @ApiModelProperty(required = true, value = "Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. ") + @ApiModelProperty(required = true, value = "The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. ") @JsonProperty(JSON_PROPERTY_STATUS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -199,7 +199,7 @@ public StatusEnum getStatus() { /** - * Possible values: - **pending**: Transfer is under internal review. - **failed**: Transfer failed to pass internal review. See field **reason** for details. + * The status of the transfer. Possible values: - **pending**: the transfer is under internal review. - **failed**: the transfer failed Adyen's internal review. For details, see `reason`. * * @param status */ @@ -216,10 +216,10 @@ public InternalReviewTrackingData type(TypeEnum type) { } /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * @return type **/ - @ApiModelProperty(required = true, value = "**internalReview**") + @ApiModelProperty(required = true, value = "The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy.") @JsonProperty(JSON_PROPERTY_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -229,7 +229,7 @@ public TypeEnum getType() { /** - * **internalReview** + * The type of tracking event. Possible values: - **internalReview**: the transfer was flagged because it does not comply with Adyen's risk policy. * * @param type */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java index 39bea05ea..8e61e5c03 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java +++ b/src/main/java/com/adyen/model/transferwebhooks/IssuedCard.java @@ -324,10 +324,10 @@ public IssuedCard schemeTraceId(String schemeTraceId) { } /** - * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * @return schemeTraceId **/ - @ApiModelProperty(value = "The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments.") + @ApiModelProperty(value = "The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments.") @JsonProperty(JSON_PROPERTY_SCHEME_TRACE_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -337,7 +337,7 @@ public String getSchemeTraceId() { /** - * The identifier of the original payment provided by the scheme. The Id could be alphanumeric or numeric depending on the scheme. The schemeTraceID should be referring to an original schemeUniqueTransactionID provided in an earlier payment (not necessarily processed by Adyen). Instances of available schemeTraceId is authAdjustment or recurring payments. + * The identifier of the original payment. This ID is provided by the scheme and can be alphanumeric or numeric, depending on the scheme. The `schemeTraceID` should refer to an original `schemeUniqueTransactionID` provided in an earlier payment (not necessarily processed by Adyen). A `schemeTraceId` is typically available for authorization adjustments or recurring payments. * * @param schemeTraceId */ @@ -354,10 +354,10 @@ public IssuedCard schemeUniqueTransactionId(String schemeUniqueTransactionId) { } /** - * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * @return schemeUniqueTransactionId **/ - @ApiModelProperty(value = "The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme.") + @ApiModelProperty(value = "The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme.") @JsonProperty(JSON_PROPERTY_SCHEME_UNIQUE_TRANSACTION_ID) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -367,7 +367,7 @@ public String getSchemeUniqueTransactionId() { /** - * The unique identifier created by the scheme. The ID could be alphanumeric or numeric depending on the scheme. + * The unique identifier created by the scheme. This ID can be alphanumeric or numeric depending on the scheme. * * @param schemeUniqueTransactionId */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java index 971a5f0e9..53de0e883 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PaymentInstrument.java @@ -149,10 +149,10 @@ public PaymentInstrument tokenType(String tokenType) { } /** - * The type of wallet the network token is associated with. + * The type of wallet that the network token is associated with. * @return tokenType **/ - @ApiModelProperty(value = "The type of wallet the network token is associated with.") + @ApiModelProperty(value = "The type of wallet that the network token is associated with.") @JsonProperty(JSON_PROPERTY_TOKEN_TYPE) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -162,7 +162,7 @@ public String getTokenType() { /** - * The type of wallet the network token is associated with. + * The type of wallet that the network token is associated with. * * @param tokenType */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java index 80f25cc0b..4b55e2e0b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java +++ b/src/main/java/com/adyen/model/transferwebhooks/PlatformPayment.java @@ -75,6 +75,10 @@ public enum PlatformPaymentTypeEnum { SCHEMEFEE("SchemeFee"), + SURCHARGE("Surcharge"), + + TIP("Tip"), + TOPUP("TopUp"), VAT("VAT"); diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java index 6f173490c..04875761b 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferData.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferData.java @@ -84,7 +84,7 @@ public class TransferData { private List balances = null; /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. */ public enum CategoryEnum { BANK("bank"), @@ -706,10 +706,10 @@ public TransferData category(CategoryEnum category) { } /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * @return category **/ - @ApiModelProperty(required = true, value = "The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users.") + @ApiModelProperty(required = true, value = "The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users.") @JsonProperty(JSON_PROPERTY_CATEGORY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -719,7 +719,7 @@ public CategoryEnum getCategory() { /** - * The category of transfer. Possible values: - **bank**: Transfer to a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: Transfer to another [balance account](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: Transfer initiated by a Adyen-issued card. - **platformPayment**: Fund movements related to payments that are acquired for your users. + * The category of the transfer. Possible values: - **bank**: a transfer involving a [transfer instrument](https://docs.adyen.com/api-explorer/#/legalentity/latest/post/transferInstruments__resParam_id) or a bank account. - **internal**: a transfer between [balance accounts](https://docs.adyen.com/api-explorer/#/balanceplatform/latest/post/balanceAccounts__resParam_id) within your platform. - **issuedCard**: a transfer initiated by an Adyen-issued card. - **platformPayment**: funds movements related to payments that are acquired for your users. * * @param category */ @@ -1044,10 +1044,10 @@ public TransferData referenceForBeneficiary(String referenceForBeneficiary) { } /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * @return referenceForBeneficiary **/ - @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") + @ApiModelProperty(value = " A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others.") @JsonProperty(JSON_PROPERTY_REFERENCE_FOR_BENEFICIARY) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1057,7 +1057,7 @@ public String getReferenceForBeneficiary() { /** - * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**. The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. + * A reference that is sent to the recipient. This reference is also sent in all webhooks related to the transfer, so you can use it to track statuses for both the source and recipient of funds. Supported characters: **a-z**, **A-Z**, **0-9**.The maximum length depends on the `category`. - **internal**: 80 characters - **bank**: 35 characters when transferring to an IBAN, 15 characters for others. * * @param referenceForBeneficiary */ @@ -1074,10 +1074,10 @@ public TransferData sequenceNumber(Integer sequenceNumber) { } /** - * The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * @return sequenceNumber **/ - @ApiModelProperty(value = "The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order.") + @ApiModelProperty(value = "The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order.") @JsonProperty(JSON_PROPERTY_SEQUENCE_NUMBER) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -1087,7 +1087,7 @@ public Integer getSequenceNumber() { /** - * The sequence number of the transfer notification. The numbers start from 1 and increase with each new notification for a specific transfer. It can help you restore the correct sequence of events even if they arrive out of order. + * The sequence number of the transfer webhook. The numbers start from 1 and increase with each new webhook for a specific transfer. The sequence number can help you restore the correct sequence of events even if they arrive out of order. * * @param sequenceNumber */ diff --git a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java index 012504b3e..71245cc60 100644 --- a/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java +++ b/src/main/java/com/adyen/model/transferwebhooks/TransferEvent.java @@ -69,7 +69,6 @@ public class TransferEvent { private OffsetDateTime bookingDate; public static final String JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME = "estimatedArrivalTime"; - @Deprecated private OffsetDateTime estimatedArrivalTime; public static final String JSON_PROPERTY_EXTERNAL_REASON = "externalReason"; @@ -470,19 +469,16 @@ public void setBookingDate(OffsetDateTime bookingDate) { } - @Deprecated public TransferEvent estimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { this.estimatedArrivalTime = estimatedArrivalTime; return this; } /** - * The estimated time the beneficiary should have access to the funds. + * The estimated time when the beneficiary should have access to the funds. * @return estimatedArrivalTime - * @deprecated **/ - @Deprecated - @ApiModelProperty(value = "The estimated time the beneficiary should have access to the funds.") + @ApiModelProperty(value = "The estimated time when the beneficiary should have access to the funds.") @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -492,11 +488,10 @@ public OffsetDateTime getEstimatedArrivalTime() { /** - * The estimated time the beneficiary should have access to the funds. + * The estimated time when the beneficiary should have access to the funds. * * @param estimatedArrivalTime */ - @Deprecated @JsonProperty(JSON_PROPERTY_ESTIMATED_ARRIVAL_TIME) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) public void setEstimatedArrivalTime(OffsetDateTime estimatedArrivalTime) { @@ -608,10 +603,10 @@ public TransferEvent addMutationsItem(BalanceMutation mutationsItem) { } /** - * The list of the balance mutation per event. + * The list of balance mutations per event. * @return mutations **/ - @ApiModelProperty(value = "The list of the balance mutation per event.") + @ApiModelProperty(value = "The list of balance mutations per event.") @JsonProperty(JSON_PROPERTY_MUTATIONS) @JsonInclude(value = JsonInclude.Include.USE_DEFAULTS) @@ -621,7 +616,7 @@ public List getMutations() { /** - * The list of the balance mutation per event. + * The list of balance mutations per event. * * @param mutations */ diff --git a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java index 4abff4550..5cb901265 100644 --- a/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java +++ b/src/main/java/com/adyen/service/management/AndroidFilesCompanyLevelApi.java @@ -17,6 +17,7 @@ import com.adyen.model.management.AndroidApp; import com.adyen.model.management.AndroidAppsResponse; import com.adyen.model.management.AndroidCertificatesResponse; +import com.adyen.model.management.ReprocessAndroidAppResponse; import com.adyen.model.management.RestServiceError; import com.adyen.model.management.UploadAndroidAppResponse; import com.adyen.model.management.UploadAndroidCertificateResponse; @@ -191,6 +192,45 @@ public AndroidCertificatesResponse listAndroidCertificates(String companyId, Int return AndroidCertificatesResponse.fromJson(jsonResult); } + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id) throws ApiException, IOException { + return reprocessAndroidApp(companyId, id, null); + } + + /** + * Reprocess Android App + * + * @param companyId {@link String } The unique identifier of the company account. (required) + * @param id {@link String } The unique identifier of the app. (required) + * @param requestOptions {@link RequestOptions } Object to store additional data such as idempotency-keys (optional) + * @return {@link ReprocessAndroidAppResponse } + * @throws ApiException if fails to make API call + */ + public ReprocessAndroidAppResponse reprocessAndroidApp(String companyId, String id, RequestOptions requestOptions) throws ApiException, IOException { + //Add path params + Map pathParams = new HashMap<>(); + if (companyId == null) { + throw new IllegalArgumentException("Please provide the companyId path parameter"); + } + pathParams.put("companyId", companyId); + if (id == null) { + throw new IllegalArgumentException("Please provide the id path parameter"); + } + pathParams.put("id", id); + + String requestBody = null; + Resource resource = new Resource(this, this.baseURL + "/companies/{companyId}/androidApps/{id}", null); + String jsonResult = resource.request(requestBody, requestOptions, ApiConstants.HttpMethod.PATCH, pathParams); + return ReprocessAndroidAppResponse.fromJson(jsonResult); + } + /** * Upload Android App * diff --git a/src/main/java/com/adyen/service/transfers/TransfersApi.java b/src/main/java/com/adyen/service/transfers/TransfersApi.java index 4f736aec1..338fb641c 100644 --- a/src/main/java/com/adyen/service/transfers/TransfersApi.java +++ b/src/main/java/com/adyen/service/transfers/TransfersApi.java @@ -16,13 +16,13 @@ import com.adyen.constants.ApiConstants; import com.adyen.model.transfers.FindTransfersResponse; import java.time.OffsetDateTime; -import com.adyen.model.transfers.RestServiceError; import com.adyen.model.transfers.ReturnTransferRequest; import com.adyen.model.transfers.ReturnTransferResponse; import com.adyen.model.transfers.ServiceError; import com.adyen.model.transfers.Transfer; import com.adyen.model.transfers.TransferData; import com.adyen.model.transfers.TransferInfo; +import com.adyen.model.transfers.TransferServiceRestServiceError; import com.adyen.model.RequestOptions; import com.adyen.service.exception.ApiException; import com.adyen.service.resource.Resource;