From 51e258f95266233bd76384c67888f9dc5d5a5b8b Mon Sep 17 00:00:00 2001 From: AdyenAutomationBot <38424300+AdyenAutomationBot@users.noreply.github.com> Date: Fri, 4 Sep 2026 09:50:32 +0000 Subject: [PATCH] [checkout] Automated update from Adyen/adyen-openapi@f82d1fe --- sdk-generation-log/checkout.json | 8 +- src/Adyen/Model/Checkout/AccountInfo.php | 2 +- src/Adyen/Model/Checkout/AcctInfo.php | 2 +- src/Adyen/Model/Checkout/AchDetails.php | 2 +- .../Model/Checkout/AdditionalData3DSecure.php | 2 +- .../Model/Checkout/AdditionalDataAirline.php | 2 +- .../Checkout/AdditionalDataCarRental.php | 2 +- .../Model/Checkout/AdditionalDataCommon.php | 2 +- .../Model/Checkout/AdditionalDataLevel23.php | 2 +- .../Model/Checkout/AdditionalDataLodging.php | 2 +- .../Checkout/AdditionalDataOpenInvoice.php | 2 +- .../Model/Checkout/AdditionalDataOpi.php | 2 +- .../Model/Checkout/AdditionalDataRatepay.php | 2 +- .../Model/Checkout/AdditionalDataRetry.php | 2 +- .../Model/Checkout/AdditionalDataRisk.php | 2 +- .../Checkout/AdditionalDataRiskStandalone.php | 2 +- .../Checkout/AdditionalDataSubMerchant.php | 2 +- .../AdditionalDataTemporaryServices.php | 2 +- .../Model/Checkout/AdditionalDataWallets.php | 2 +- src/Adyen/Model/Checkout/Address.php | 2 +- src/Adyen/Model/Checkout/AffirmDetails.php | 33 +- src/Adyen/Model/Checkout/AfterpayDetails.php | 2 +- src/Adyen/Model/Checkout/Agency.php | 6 +- src/Adyen/Model/Checkout/Airline.php | 18 +- src/Adyen/Model/Checkout/AlmaDetails.php | 2 +- src/Adyen/Model/Checkout/AmazonPayDetails.php | 2 +- src/Adyen/Model/Checkout/Amount.php | 2 +- src/Adyen/Model/Checkout/Amounts.php | 2 +- src/Adyen/Model/Checkout/AncvDetails.php | 2 +- .../Model/Checkout/AndroidPayDetails.php | 2 +- .../Model/Checkout/AppIdentifierInfo.php | 2 +- src/Adyen/Model/Checkout/ApplePayDetails.php | 2 +- .../Model/Checkout/ApplePayDonations.php | 2 +- .../Model/Checkout/ApplePaySessionRequest.php | 2 +- .../Checkout/ApplePaySessionResponse.php | 2 +- src/Adyen/Model/Checkout/ApplicationInfo.php | 2 +- src/Adyen/Model/Checkout/AuPayDetails.php | 561 ++++++++++++ .../Model/Checkout/AuthenticationData.php | 2 +- .../Model/Checkout/BacsDirectDebitDetails.php | 2 +- .../Model/Checkout/BalanceCheckRequest.php | 2 +- .../Model/Checkout/BalanceCheckResponse.php | 2 +- src/Adyen/Model/Checkout/BillDeskDetails.php | 2 +- src/Adyen/Model/Checkout/BillingAddress.php | 2 +- src/Adyen/Model/Checkout/BlikDetails.php | 2 +- src/Adyen/Model/Checkout/BrowserInfo.php | 2 +- .../Model/Checkout/CancelOrderRequest.php | 2 +- .../Model/Checkout/CancelOrderResponse.php | 2 +- src/Adyen/Model/Checkout/CarRental.php | 781 ++++++++++++++++ src/Adyen/Model/Checkout/CardBrandDetails.php | 33 +- src/Adyen/Model/Checkout/CardDetails.php | 2 +- .../Model/Checkout/CardDetailsRequest.php | 2 +- .../Model/Checkout/CardDetailsResponse.php | 2 +- src/Adyen/Model/Checkout/CardDonations.php | 2 +- src/Adyen/Model/Checkout/CashAppDetails.php | 2 +- src/Adyen/Model/Checkout/CellulantDetails.php | 2 +- .../Model/Checkout/CheckoutAwaitAction.php | 2 +- .../Model/Checkout/CheckoutBankAccount.php | 2 +- .../Checkout/CheckoutBankTransferAction.php | 2 +- .../CheckoutDelegatedAuthenticationAction.php | 2 +- ...ty.php => CheckoutErrorResponseEntity.php} | 218 ++--- .../Model/Checkout/CheckoutForwardRequest.php | 2 +- .../Checkout/CheckoutForwardRequestCard.php | 2 +- .../CheckoutForwardRequestOptions.php | 2 +- .../Checkout/CheckoutForwardResponse.php | 2 +- .../CheckoutForwardResponseFromUrl.php | 2 +- .../Checkout/CheckoutNativeRedirectAction.php | 2 +- .../Checkout/CheckoutNetworkTokenOption.php | 2 +- .../Model/Checkout/CheckoutOrderResponse.php | 2 +- .../CheckoutOutgoingForwardRequest.php | 2 +- .../Model/Checkout/CheckoutPaymentMethod.php | 90 +- .../Model/Checkout/CheckoutQrCodeAction.php | 2 +- .../Model/Checkout/CheckoutRedirectAction.php | 2 +- .../Model/Checkout/CheckoutSDKAction.php | 2 +- .../CheckoutSessionInstallmentOption.php | 2 +- .../CheckoutSessionPatchSessionRequest.php | 472 ++++++++++ .../CheckoutSessionPatchSessionResponse.php | 404 +++++++++ .../CheckoutSessionThreeDS2RequestData.php | 2 +- .../Model/Checkout/CheckoutThreeDS2Action.php | 2 +- .../Model/Checkout/CheckoutVoucherAction.php | 2 +- src/Adyen/Model/Checkout/CommonField.php | 2 +- src/Adyen/Model/Checkout/Company.php | 2 +- src/Adyen/Model/Checkout/ConfidenceScore.php | 2 +- .../Checkout/CreateCheckoutSessionRequest.php | 66 +- .../CreateCheckoutSessionResponse.php | 35 +- .../Model/Checkout/CreateOrderRequest.php | 2 +- .../Model/Checkout/CreateOrderResponse.php | 2 +- src/Adyen/Model/Checkout/DBaraiDetails.php | 561 ++++++++++++ src/Adyen/Model/Checkout/DeliveryAddress.php | 2 +- src/Adyen/Model/Checkout/DeliveryMethod.php | 2 +- src/Adyen/Model/Checkout/Destination.php | 8 +- .../DetailsRequestAuthenticationData.php | 2 +- .../Model/Checkout/DeviceRenderOptions.php | 2 +- .../Model/Checkout/DirectDebitAuDetails.php | 9 +- src/Adyen/Model/Checkout/DokuDetails.php | 2 +- src/Adyen/Model/Checkout/Donation.php | 11 +- src/Adyen/Model/Checkout/DonationCampaign.php | 2 +- .../Checkout/DonationCampaignsRequest.php | 33 +- .../Checkout/DonationCampaignsResponse.php | 2 +- .../Model/Checkout/DonationPaymentMethod.php | 9 +- .../Model/Checkout/DonationPaymentRequest.php | 144 +-- .../Checkout/DonationPaymentResponse.php | 2 +- src/Adyen/Model/Checkout/DragonpayDetails.php | 2 +- .../Model/Checkout/EBankingFinlandDetails.php | 2 +- .../Model/Checkout/EcontextVoucherDetails.php | 2 +- src/Adyen/Model/Checkout/EftDetails.php | 2 +- .../Model/Checkout/EncryptedOrderData.php | 2 +- .../Model/Checkout/EnhancedSchemeData.php | 138 ++- src/Adyen/Model/Checkout/ExternalPlatform.php | 2 +- .../Model/Checkout/ExternalTokenDetails.php | 2 +- src/Adyen/Model/Checkout/FastlaneDetails.php | 2 +- src/Adyen/Model/Checkout/Folio.php | 435 +++++++++ src/Adyen/Model/Checkout/ForexQuote.php | 2 +- src/Adyen/Model/Checkout/FraudCheckResult.php | 2 +- src/Adyen/Model/Checkout/FraudResult.php | 2 +- src/Adyen/Model/Checkout/FundOrigin.php | 2 +- src/Adyen/Model/Checkout/FundRecipient.php | 2 +- .../GenericIssuerPaymentMethodDetails.php | 2 +- src/Adyen/Model/Checkout/GooglePayDetails.php | 2 +- .../Model/Checkout/GooglePayDonations.php | 2 +- src/Adyen/Model/Checkout/Healthcare.php | 531 +++++++++++ src/Adyen/Model/Checkout/IdealDetails.php | 2 +- src/Adyen/Model/Checkout/IdealDonations.php | 2 +- src/Adyen/Model/Checkout/InputDetail.php | 2 +- .../Model/Checkout/InstallmentOption.php | 2 +- src/Adyen/Model/Checkout/Installments.php | 2 +- src/Adyen/Model/Checkout/Item.php | 2 +- src/Adyen/Model/Checkout/ItemDetailLine.php | 18 +- src/Adyen/Model/Checkout/KlarnaDetails.php | 33 +- .../Model/Checkout/KlarnaNetworkDetails.php | 2 +- src/Adyen/Model/Checkout/Leg.php | 20 +- src/Adyen/Model/Checkout/LevelTwoThree.php | 14 +- src/Adyen/Model/Checkout/LineItem.php | 219 ++++- .../ListStoredPaymentMethodsResponse.php | 2 +- src/Adyen/Model/Checkout/Lodging.php | 842 ++++++++++++++++++ src/Adyen/Model/Checkout/Mandate.php | 2 +- .../Model/Checkout/MasterpassDetails.php | 2 +- src/Adyen/Model/Checkout/MbwayDetails.php | 2 +- src/Adyen/Model/Checkout/MerchantDevice.php | 2 +- .../Model/Checkout/MerchantRiskIndicator.php | 2 +- src/Adyen/Model/Checkout/MobilePayDetails.php | 2 +- src/Adyen/Model/Checkout/ModelInterface.php | 2 +- src/Adyen/Model/Checkout/MolPayDetails.php | 2 +- src/Adyen/Model/Checkout/Name.php | 2 +- src/Adyen/Model/Checkout/ObjectSerializer.php | 2 +- .../Model/Checkout/OpenInvoiceDetails.php | 2 +- src/Adyen/Model/Checkout/Passenger.php | 12 +- .../PayByBankAISDirectDebitDetails.php | 2 +- src/Adyen/Model/Checkout/PayByBankDetails.php | 2 +- src/Adyen/Model/Checkout/PayPalDetails.php | 2 +- src/Adyen/Model/Checkout/PayPayDetails.php | 2 +- src/Adyen/Model/Checkout/PayToDetails.php | 2 +- .../Model/Checkout/PayToPaymentMethod.php | 2 +- .../Checkout/PayToPaymentMethodAllOf.php | 2 +- src/Adyen/Model/Checkout/PayUUpiDetails.php | 2 +- .../Model/Checkout/PayWithGoogleDetails.php | 2 +- .../Model/Checkout/PayWithGoogleDonations.php | 2 +- src/Adyen/Model/Checkout/Payment.php | 2 +- .../Checkout/PaymentAmountUpdateRequest.php | 159 +++- .../Checkout/PaymentAmountUpdateResponse.php | 39 +- .../Model/Checkout/PaymentCancelRequest.php | 33 +- .../Model/Checkout/PaymentCancelResponse.php | 2 +- .../Model/Checkout/PaymentCaptureRequest.php | 2 +- .../Model/Checkout/PaymentCaptureResponse.php | 2 +- .../Checkout/PaymentCompletionDetails.php | 2 +- src/Adyen/Model/Checkout/PaymentDetails.php | 6 +- .../Model/Checkout/PaymentDetailsRequest.php | 2 +- .../Model/Checkout/PaymentDetailsResponse.php | 2 +- .../Checkout/PaymentDetailsResponseAction.php | 7 +- .../Model/Checkout/PaymentLinkRequest.php | 2 +- .../Model/Checkout/PaymentLinkResponse.php | 2 +- src/Adyen/Model/Checkout/PaymentMethod.php | 2 +- .../Model/Checkout/PaymentMethodGroup.php | 2 +- .../Model/Checkout/PaymentMethodIssuer.php | 2 +- .../Model/Checkout/PaymentMethodToStore.php | 2 +- .../Model/Checkout/PaymentMethodUPIApps.php | 2 +- .../Model/Checkout/PaymentMethodsRequest.php | 4 +- .../Model/Checkout/PaymentMethodsResponse.php | 2 +- .../Model/Checkout/PaymentRefundRequest.php | 2 +- .../Model/Checkout/PaymentRefundResponse.php | 2 +- src/Adyen/Model/Checkout/PaymentRequest.php | 70 +- src/Adyen/Model/Checkout/PaymentResponse.php | 2 +- .../Model/Checkout/PaymentResponseAction.php | 7 +- .../Model/Checkout/PaymentReversalRequest.php | 33 +- .../Checkout/PaymentReversalResponse.php | 2 +- .../Model/Checkout/PaymentValidations.php | 2 +- .../PaymentValidationsNameRequest.php | 2 +- .../PaymentValidationsNameResponse.php | 2 +- ...aymentValidationsNameResultRawResponse.php | 2 +- .../PaymentValidationsNameResultResponse.php | 2 +- .../Checkout/PaymentValidationsResponse.php | 2 +- .../Checkout/PaypalUpdateOrderRequest.php | 95 +- .../Checkout/PaypalUpdateOrderResponse.php | 2 +- src/Adyen/Model/Checkout/Phone.php | 2 +- src/Adyen/Model/Checkout/PickupInfo.php | 497 +++++++++++ src/Adyen/Model/Checkout/PixDetails.php | 2 +- .../Model/Checkout/PixPayByBankDetails.php | 2 +- .../Checkout/PixPayByBankRiskSignals.php | 2 +- src/Adyen/Model/Checkout/PixRecurring.php | 2 +- .../Checkout/PlatformChargebackLogic.php | 2 +- src/Adyen/Model/Checkout/PseDetails.php | 2 +- .../Model/Checkout/RakutenPayDetails.php | 2 +- src/Adyen/Model/Checkout/RatepayDetails.php | 2 +- src/Adyen/Model/Checkout/Recurring.php | 2 +- src/Adyen/Model/Checkout/RentalSurcharges.php | 466 ++++++++++ .../ResponseAdditionalData3DSecure.php | 2 +- .../ResponseAdditionalDataBillingAddress.php | 2 +- .../Checkout/ResponseAdditionalDataCard.php | 2 +- .../Checkout/ResponseAdditionalDataCommon.php | 2 +- .../ResponseAdditionalDataDomesticError.php | 2 +- .../ResponseAdditionalDataInstallments.php | 2 +- .../ResponseAdditionalDataNetworkTokens.php | 2 +- .../Checkout/ResponseAdditionalDataOpi.php | 2 +- .../Checkout/ResponseAdditionalDataSepa.php | 2 +- .../Checkout/ResponseAdditionalDataSwish.php | 2 +- .../Model/Checkout/ResponsePaymentMethod.php | 2 +- src/Adyen/Model/Checkout/Result.php | 2 +- src/Adyen/Model/Checkout/ReturnInfo.php | 528 +++++++++++ src/Adyen/Model/Checkout/RiskData.php | 2 +- src/Adyen/Model/Checkout/RivertyDetails.php | 33 +- src/Adyen/Model/Checkout/Room.php | 435 +++++++++ src/Adyen/Model/Checkout/SDKEphemPubKey.php | 2 +- .../Model/Checkout/SamsungPayDetails.php | 2 +- src/Adyen/Model/Checkout/ScreenDimensions.php | 2 +- .../Model/Checkout/SepaDirectDebitDetails.php | 16 +- .../Checkout/SepaDirectDebitDonations.php | 561 ++++++++++++ src/Adyen/Model/Checkout/ServiceError.php | 2 +- ...validField.php => SessionAmountUpdate.php} | 82 +- .../Model/Checkout/SessionResultResponse.php | 2 +- .../Model/Checkout/ShopperIdPaymentMethod.php | 2 +- .../Checkout/ShopperInteractionDevice.php | 2 +- src/Adyen/Model/Checkout/ShopperName.php | 2 +- src/Adyen/Model/Checkout/ShopperTaxInfo.php | 2 +- src/Adyen/Model/Checkout/Split.php | 2 +- src/Adyen/Model/Checkout/SplitAmount.php | 2 +- .../StandalonePaymentCancelRequest.php | 33 +- .../StandalonePaymentCancelResponse.php | 2 +- .../Model/Checkout/StoredPaymentMethod.php | 33 +- .../Checkout/StoredPaymentMethodDetails.php | 4 +- .../Checkout/StoredPaymentMethodRequest.php | 2 +- .../Checkout/StoredPaymentMethodResource.php | 95 +- src/Adyen/Model/Checkout/SubInputDetail.php | 2 +- src/Adyen/Model/Checkout/SubMerchant.php | 2 +- src/Adyen/Model/Checkout/SubMerchantInfo.php | 2 +- src/Adyen/Model/Checkout/Surcharge.php | 2 +- src/Adyen/Model/Checkout/TaxTotal.php | 2 +- .../Model/Checkout/TemporaryServices.php | 590 ++++++++++++ .../ThirdPartyTokenRedundancyInfo.php | 438 +++++++++ .../Model/Checkout/ThreeDS2RequestData.php | 2 +- .../Model/Checkout/ThreeDS2RequestFields.php | 2 +- .../Model/Checkout/ThreeDS2ResponseData.php | 2 +- src/Adyen/Model/Checkout/ThreeDS2Result.php | 2 +- .../Model/Checkout/ThreeDSRequestData.php | 2 +- .../ThreeDSRequestorAuthenticationInfo.php | 2 +- ...hreeDSRequestorPriorAuthenticationInfo.php | 2 +- src/Adyen/Model/Checkout/ThreeDSecureData.php | 2 +- src/Adyen/Model/Checkout/Ticket.php | 8 +- src/Adyen/Model/Checkout/TokenMandate.php | 2 +- src/Adyen/Model/Checkout/TravelAgency.php | 6 +- src/Adyen/Model/Checkout/TwintDetails.php | 2 +- src/Adyen/Model/Checkout/UPIPaymentMethod.php | 2 +- .../Model/Checkout/UPIPaymentMethodAllOf.php | 2 +- .../Checkout/UpdatePaymentLinkRequest.php | 2 +- .../Model/Checkout/UpiCollectDetails.php | 2 +- src/Adyen/Model/Checkout/UpiIntentDetails.php | 2 +- src/Adyen/Model/Checkout/UpiQrDetails.php | 2 +- src/Adyen/Model/Checkout/UtilityRequest.php | 2 +- src/Adyen/Model/Checkout/UtilityResponse.php | 2 +- .../Checkout/ValidateShopperIdRequest.php | 2 +- .../Checkout/ValidateShopperIdResponse.php | 2 +- src/Adyen/Model/Checkout/VippsDetails.php | 2 +- .../Model/Checkout/VisaCheckoutDetails.php | 2 +- src/Adyen/Model/Checkout/WeChatPayDetails.php | 2 +- .../Checkout/WeChatPayMiniProgramDetails.php | 2 +- src/Adyen/Model/Checkout/ZipDetails.php | 2 +- src/Adyen/Service/Checkout/DonationsApi.php | 4 +- .../Service/Checkout/ModificationsApi.php | 4 +- src/Adyen/Service/Checkout/OrdersApi.php | 4 +- .../Service/Checkout/PaymentLinksApi.php | 4 +- src/Adyen/Service/Checkout/PaymentsApi.php | 20 +- src/Adyen/Service/Checkout/RecurringApi.php | 4 +- src/Adyen/Service/Checkout/UtilityApi.php | 4 +- 281 files changed, 9648 insertions(+), 872 deletions(-) create mode 100644 src/Adyen/Model/Checkout/AuPayDetails.php create mode 100644 src/Adyen/Model/Checkout/CarRental.php rename src/Adyen/Model/Checkout/{DefaultErrorResponseEntity.php => CheckoutErrorResponseEntity.php} (69%) create mode 100644 src/Adyen/Model/Checkout/CheckoutSessionPatchSessionRequest.php create mode 100644 src/Adyen/Model/Checkout/CheckoutSessionPatchSessionResponse.php create mode 100644 src/Adyen/Model/Checkout/DBaraiDetails.php create mode 100644 src/Adyen/Model/Checkout/Folio.php create mode 100644 src/Adyen/Model/Checkout/Healthcare.php create mode 100644 src/Adyen/Model/Checkout/Lodging.php create mode 100644 src/Adyen/Model/Checkout/PickupInfo.php create mode 100644 src/Adyen/Model/Checkout/RentalSurcharges.php create mode 100644 src/Adyen/Model/Checkout/ReturnInfo.php create mode 100644 src/Adyen/Model/Checkout/Room.php create mode 100644 src/Adyen/Model/Checkout/SepaDirectDebitDonations.php rename src/Adyen/Model/Checkout/{InvalidField.php => SessionAmountUpdate.php} (85%) create mode 100644 src/Adyen/Model/Checkout/TemporaryServices.php create mode 100644 src/Adyen/Model/Checkout/ThirdPartyTokenRedundancyInfo.php diff --git a/sdk-generation-log/checkout.json b/sdk-generation-log/checkout.json index 91e1490e0..8459bfd33 100644 --- a/sdk-generation-log/checkout.json +++ b/sdk-generation-log/checkout.json @@ -1,8 +1,8 @@ { "service": "checkout", "project": "php", - "generatedAt": "2026-06-19T10:32:09Z", - "openapiCommitSha": "02d10c0110523a6a85ae331d2de5ab402c291095", - "automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284", - "libraryCommitSha": "87893df3a51b64de2b2ae9ef229d05548a99d010" + "generatedAt": "2026-09-04T09:50:32Z", + "openapiCommitSha": "f82d1fe674e536cc2c6b0d7946e0e827873a4fbf", + "automationCommitSha": "712ab8db80d60bee9054458ea1522cae0073333a", + "libraryCommitSha": "077f8fe9bba23381af53c625b18db85e7887c50f" } diff --git a/src/Adyen/Model/Checkout/AccountInfo.php b/src/Adyen/Model/Checkout/AccountInfo.php index 13ad4a410..9a3fb9b71 100644 --- a/src/Adyen/Model/Checkout/AccountInfo.php +++ b/src/Adyen/Model/Checkout/AccountInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AcctInfo.php b/src/Adyen/Model/Checkout/AcctInfo.php index 1b9a499c8..d67b6e7f3 100644 --- a/src/Adyen/Model/Checkout/AcctInfo.php +++ b/src/Adyen/Model/Checkout/AcctInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AchDetails.php b/src/Adyen/Model/Checkout/AchDetails.php index 962fd7705..63e79fef5 100644 --- a/src/Adyen/Model/Checkout/AchDetails.php +++ b/src/Adyen/Model/Checkout/AchDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalData3DSecure.php b/src/Adyen/Model/Checkout/AdditionalData3DSecure.php index c73adc669..88328a0fb 100644 --- a/src/Adyen/Model/Checkout/AdditionalData3DSecure.php +++ b/src/Adyen/Model/Checkout/AdditionalData3DSecure.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataAirline.php b/src/Adyen/Model/Checkout/AdditionalDataAirline.php index ba83a89e4..23b2d058b 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataAirline.php +++ b/src/Adyen/Model/Checkout/AdditionalDataAirline.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataCarRental.php b/src/Adyen/Model/Checkout/AdditionalDataCarRental.php index a91ab4caf..41633556f 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataCarRental.php +++ b/src/Adyen/Model/Checkout/AdditionalDataCarRental.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataCommon.php b/src/Adyen/Model/Checkout/AdditionalDataCommon.php index 914aaca01..67293bc52 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataCommon.php +++ b/src/Adyen/Model/Checkout/AdditionalDataCommon.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php index 019cd7aca..59eb09091 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataLevel23.php +++ b/src/Adyen/Model/Checkout/AdditionalDataLevel23.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataLodging.php b/src/Adyen/Model/Checkout/AdditionalDataLodging.php index 42568434d..d49a93ae2 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataLodging.php +++ b/src/Adyen/Model/Checkout/AdditionalDataLodging.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataOpenInvoice.php b/src/Adyen/Model/Checkout/AdditionalDataOpenInvoice.php index 357316d31..a0a668c3b 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataOpenInvoice.php +++ b/src/Adyen/Model/Checkout/AdditionalDataOpenInvoice.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataOpi.php b/src/Adyen/Model/Checkout/AdditionalDataOpi.php index 44e1542f5..b00ac69ae 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataOpi.php +++ b/src/Adyen/Model/Checkout/AdditionalDataOpi.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataRatepay.php b/src/Adyen/Model/Checkout/AdditionalDataRatepay.php index ddf28ec8c..9b9b675ed 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataRatepay.php +++ b/src/Adyen/Model/Checkout/AdditionalDataRatepay.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataRetry.php b/src/Adyen/Model/Checkout/AdditionalDataRetry.php index ee8064c79..50232415f 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataRetry.php +++ b/src/Adyen/Model/Checkout/AdditionalDataRetry.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataRisk.php b/src/Adyen/Model/Checkout/AdditionalDataRisk.php index fdbcdf550..b45664c21 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataRisk.php +++ b/src/Adyen/Model/Checkout/AdditionalDataRisk.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataRiskStandalone.php b/src/Adyen/Model/Checkout/AdditionalDataRiskStandalone.php index aabebb5ae..57f147134 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataRiskStandalone.php +++ b/src/Adyen/Model/Checkout/AdditionalDataRiskStandalone.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php b/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php index 4ba084592..e9cb0dd0f 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php +++ b/src/Adyen/Model/Checkout/AdditionalDataSubMerchant.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php b/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php index 0eb740d12..acd34b7a1 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php +++ b/src/Adyen/Model/Checkout/AdditionalDataTemporaryServices.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AdditionalDataWallets.php b/src/Adyen/Model/Checkout/AdditionalDataWallets.php index d47b16f3a..d34704e13 100644 --- a/src/Adyen/Model/Checkout/AdditionalDataWallets.php +++ b/src/Adyen/Model/Checkout/AdditionalDataWallets.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Address.php b/src/Adyen/Model/Checkout/Address.php index 2a22d9714..d37b40e7d 100644 --- a/src/Adyen/Model/Checkout/Address.php +++ b/src/Adyen/Model/Checkout/Address.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AffirmDetails.php b/src/Adyen/Model/Checkout/AffirmDetails.php index 3d57ba0d6..a7b2a00f2 100644 --- a/src/Adyen/Model/Checkout/AffirmDetails.php +++ b/src/Adyen/Model/Checkout/AffirmDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,6 +42,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPITypes = [ 'checkoutAttemptId' => 'string', + 'financingProgram' => 'string', 'sdkData' => 'string', 'type' => 'string' ]; @@ -55,6 +56,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPIFormats = [ 'checkoutAttemptId' => null, + 'financingProgram' => null, 'sdkData' => null, 'type' => null ]; @@ -66,6 +68,7 @@ class AffirmDetails implements ModelInterface, ArrayAccess, \JsonSerializable */ protected static $openAPINullables = [ 'checkoutAttemptId' => false, + 'financingProgram' => false, 'sdkData' => false, 'type' => false ]; @@ -157,6 +160,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'checkoutAttemptId' => 'checkoutAttemptId', + 'financingProgram' => 'financingProgram', 'sdkData' => 'sdkData', 'type' => 'type' ]; @@ -168,6 +172,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'financingProgram' => 'setFinancingProgram', 'sdkData' => 'setSdkData', 'type' => 'setType' ]; @@ -179,6 +184,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'financingProgram' => 'getFinancingProgram', 'sdkData' => 'getSdkData', 'type' => 'getType' ]; @@ -253,6 +259,7 @@ public function getTypeAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('financingProgram', $data ?? [], null); $this->setIfExists('sdkData', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -332,6 +339,30 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } + /** + * Gets financingProgram + * + * @return string|null + */ + public function getFinancingProgram() + { + return $this->container['financingProgram']; + } + + /** + * Sets financingProgram + * + * @param string|null $financingProgram The Affirm financing program to apply to this transaction. + * + * @return self + */ + public function setFinancingProgram($financingProgram) + { + $this->container['financingProgram'] = $financingProgram; + + return $this; + } + /** * Gets sdkData * diff --git a/src/Adyen/Model/Checkout/AfterpayDetails.php b/src/Adyen/Model/Checkout/AfterpayDetails.php index 16a220742..7071b8a6c 100644 --- a/src/Adyen/Model/Checkout/AfterpayDetails.php +++ b/src/Adyen/Model/Checkout/AfterpayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Agency.php b/src/Adyen/Model/Checkout/Agency.php index 318ab9908..e030421bd 100644 --- a/src/Adyen/Model/Checkout/Agency.php +++ b/src/Adyen/Model/Checkout/Agency.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -293,7 +293,7 @@ public function getInvoiceNumber() /** * Sets invoiceNumber * - * @param string|null $invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters + * @param string|null $invoiceNumber The reference number for the invoice, issued by the agency. * Encoding: ASCII * minLength: 1 character * maxLength: 6 characters * **additionalData key:** `airline.agency_invoice_number` * * @return self */ @@ -317,7 +317,7 @@ public function getPlanName() /** * Sets planName * - * @param string|null $planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters + * @param string|null $planName The two-letter agency plan identifier. * Encoding: ASCII * minLength: 2 characters * maxLength: 2 characters * **additionalData key:** `airline.agency_plan_name` * * @return self */ diff --git a/src/Adyen/Model/Checkout/Airline.php b/src/Adyen/Model/Checkout/Airline.php index a1f1c1d05..eb233ef99 100644 --- a/src/Adyen/Model/Checkout/Airline.php +++ b/src/Adyen/Model/Checkout/Airline.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -397,7 +397,7 @@ public function getBoardingFee() /** * Sets boardingFee * - * @param int|null $boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters + * @param int|null $boardingFee The amount charged for boarding the plane, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 character * maxLength: 11 characters * **additionalData key:** `airline.boarding_fee` * * @return self */ @@ -421,7 +421,7 @@ public function getCode() /** * Sets code * - * @param string|null $code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $code The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-digit accounting code (PAX) that identifies the carrier. * Format: IATA 3-digit accounting code (PAX) * Example: KLM = 074 * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.airline_code` * * @return self */ @@ -445,7 +445,7 @@ public function getComputerizedReservationSystem() /** * Sets computerizedReservationSystem * - * @param string|null $computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters + * @param string|null $computerizedReservationSystem The [CRS](https://en.wikipedia.org/wiki/Computer_reservation_system) used to make the reservation and purchase the ticket. * Encoding: ASCII * minLength: 4 characters * maxLength: 4 characters * **additionalData key:** `airline.computerized_reservation_system` * * @return self */ @@ -469,7 +469,7 @@ public function getCustomerReferenceNumber() /** * Sets customerReferenceNumber * - * @param string|null $customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. + * @param string|null $customerReferenceNumber The alphanumeric customer reference number. * Encoding: ASCII * maxLength: 20 characters * If you send more than 20 characters, the customer reference number is truncated * Must not start with a space or be all spaces. * **additionalData key:** `airline.customer_reference_number` * * @return self */ @@ -493,7 +493,7 @@ public function getDesignatorCode() /** * Sets designatorCode * - * @param string|null $designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. + * @param string|null $designatorCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. * Encoding: ASCII * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * **additionalData key:** `airline.airline_designator_code` * * @return self */ @@ -517,7 +517,7 @@ public function getDocumentType() /** * Sets documentType * - * @param string|null $documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters + * @param string|null $documentType A code that identifies the type of item bought. The description of the code can appear on credit card statements. * Encoding: ASCII * Example: Passenger ticket = 01 * minLength: 2 characters * maxLength: 2 characters * **additionalData key:** `airline.document_type` * * @return self */ @@ -541,7 +541,7 @@ public function getFlightDate() /** * Sets flightDate * - * @param \DateTime|null $flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters + * @param \DateTime|null $flightDate The flight departure date. Time is optional. * Format for date only: `yyyy-MM-dd` * Format for date and time: `yyyy-MM-ddTHH:mm` * Use local time of departure airport. * minLength: 10 characters * maxLength: 16 characters * **additionalData key:** `airline.flight_date` * * @return self */ @@ -589,7 +589,7 @@ public function getPassengerName() /** * Sets passengerName * - * @param string $passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string $passengerName The passenger's name, initials, and title. * Format: last name + first name or initials + title * Example: *FLYER / MARY MS* * minLength: 1 character * maxLength: 20 characters * If you send more than 20 characters, the name is truncated * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.passenger_name` * * @return self */ diff --git a/src/Adyen/Model/Checkout/AlmaDetails.php b/src/Adyen/Model/Checkout/AlmaDetails.php index c7dd24d4d..a62047979 100644 --- a/src/Adyen/Model/Checkout/AlmaDetails.php +++ b/src/Adyen/Model/Checkout/AlmaDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AmazonPayDetails.php b/src/Adyen/Model/Checkout/AmazonPayDetails.php index 8a3be1137..a41df76e7 100644 --- a/src/Adyen/Model/Checkout/AmazonPayDetails.php +++ b/src/Adyen/Model/Checkout/AmazonPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Amount.php b/src/Adyen/Model/Checkout/Amount.php index df592ced7..e0303960a 100644 --- a/src/Adyen/Model/Checkout/Amount.php +++ b/src/Adyen/Model/Checkout/Amount.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Amounts.php b/src/Adyen/Model/Checkout/Amounts.php index eb37b6b59..f1633e558 100644 --- a/src/Adyen/Model/Checkout/Amounts.php +++ b/src/Adyen/Model/Checkout/Amounts.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AncvDetails.php b/src/Adyen/Model/Checkout/AncvDetails.php index cb2084dd3..db8e914ac 100644 --- a/src/Adyen/Model/Checkout/AncvDetails.php +++ b/src/Adyen/Model/Checkout/AncvDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AndroidPayDetails.php b/src/Adyen/Model/Checkout/AndroidPayDetails.php index 53101b3bd..d0858ca64 100644 --- a/src/Adyen/Model/Checkout/AndroidPayDetails.php +++ b/src/Adyen/Model/Checkout/AndroidPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AppIdentifierInfo.php b/src/Adyen/Model/Checkout/AppIdentifierInfo.php index 7ffec0005..3a020201f 100644 --- a/src/Adyen/Model/Checkout/AppIdentifierInfo.php +++ b/src/Adyen/Model/Checkout/AppIdentifierInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ApplePayDetails.php b/src/Adyen/Model/Checkout/ApplePayDetails.php index b888dd255..30cbd762e 100644 --- a/src/Adyen/Model/Checkout/ApplePayDetails.php +++ b/src/Adyen/Model/Checkout/ApplePayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ApplePayDonations.php b/src/Adyen/Model/Checkout/ApplePayDonations.php index 80c9292a4..08ae2e542 100644 --- a/src/Adyen/Model/Checkout/ApplePayDonations.php +++ b/src/Adyen/Model/Checkout/ApplePayDonations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ApplePaySessionRequest.php b/src/Adyen/Model/Checkout/ApplePaySessionRequest.php index 723c59bea..0867aa0c2 100644 --- a/src/Adyen/Model/Checkout/ApplePaySessionRequest.php +++ b/src/Adyen/Model/Checkout/ApplePaySessionRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ApplePaySessionResponse.php b/src/Adyen/Model/Checkout/ApplePaySessionResponse.php index 46a60086f..0ec861862 100644 --- a/src/Adyen/Model/Checkout/ApplePaySessionResponse.php +++ b/src/Adyen/Model/Checkout/ApplePaySessionResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ApplicationInfo.php b/src/Adyen/Model/Checkout/ApplicationInfo.php index 1b7e29bfd..ad4cea3c4 100644 --- a/src/Adyen/Model/Checkout/ApplicationInfo.php +++ b/src/Adyen/Model/Checkout/ApplicationInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/AuPayDetails.php b/src/Adyen/Model/Checkout/AuPayDetails.php new file mode 100644 index 000000000..175e928bb --- /dev/null +++ b/src/Adyen/Model/Checkout/AuPayDetails.php @@ -0,0 +1,561 @@ + + */ +class AuPayDetails implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'AuPayDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'checkoutAttemptId' => 'string', + 'recurringDetailReference' => 'string', + 'sdkData' => 'string', + 'storedPaymentMethodId' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'checkoutAttemptId' => null, + 'recurringDetailReference' => null, + 'sdkData' => null, + 'storedPaymentMethodId' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'checkoutAttemptId' => false, + 'recurringDetailReference' => false, + 'sdkData' => false, + 'storedPaymentMethodId' => false, + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'checkoutAttemptId' => 'checkoutAttemptId', + 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', + 'storedPaymentMethodId' => 'storedPaymentMethodId', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const TYPE_AUPAY = 'aupay'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_AUPAY, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets checkoutAttemptId + * + * @return string|null + */ + public function getCheckoutAttemptId() + { + return $this->container['checkoutAttemptId']; + } + + /** + * Sets checkoutAttemptId + * + * @param string|null $checkoutAttemptId The checkout attempt identifier. + * + * @return self + */ + public function setCheckoutAttemptId($checkoutAttemptId) + { + $this->container['checkoutAttemptId'] = $checkoutAttemptId; + + return $this; + } + + /** + * Gets recurringDetailReference + * + * @return string|null + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function getRecurringDetailReference() + { + return $this->container['recurringDetailReference']; + } + + /** + * Sets recurringDetailReference + * + * @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function setRecurringDetailReference($recurringDetailReference) + { + $this->container['recurringDetailReference'] = $recurringDetailReference; + + return $this; + } + + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type **aupay** + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + error_log( + sprintf( + "type: unexpected enum value '%s' - Supported values are [%s]", + $type, + implode(', ', $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/AuthenticationData.php b/src/Adyen/Model/Checkout/AuthenticationData.php index 157142cff..2a9d2da24 100644 --- a/src/Adyen/Model/Checkout/AuthenticationData.php +++ b/src/Adyen/Model/Checkout/AuthenticationData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php b/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php index 7f32dbada..864c6272e 100644 --- a/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/BacsDirectDebitDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BalanceCheckRequest.php b/src/Adyen/Model/Checkout/BalanceCheckRequest.php index f0c1eb06c..d6529fc18 100644 --- a/src/Adyen/Model/Checkout/BalanceCheckRequest.php +++ b/src/Adyen/Model/Checkout/BalanceCheckRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BalanceCheckResponse.php b/src/Adyen/Model/Checkout/BalanceCheckResponse.php index f12a24316..45622dfee 100644 --- a/src/Adyen/Model/Checkout/BalanceCheckResponse.php +++ b/src/Adyen/Model/Checkout/BalanceCheckResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BillDeskDetails.php b/src/Adyen/Model/Checkout/BillDeskDetails.php index d61f349e2..6aed0c635 100644 --- a/src/Adyen/Model/Checkout/BillDeskDetails.php +++ b/src/Adyen/Model/Checkout/BillDeskDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BillingAddress.php b/src/Adyen/Model/Checkout/BillingAddress.php index 5b5d7b4b1..ba1a14691 100644 --- a/src/Adyen/Model/Checkout/BillingAddress.php +++ b/src/Adyen/Model/Checkout/BillingAddress.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BlikDetails.php b/src/Adyen/Model/Checkout/BlikDetails.php index a9aa84798..2fcb4b430 100644 --- a/src/Adyen/Model/Checkout/BlikDetails.php +++ b/src/Adyen/Model/Checkout/BlikDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/BrowserInfo.php b/src/Adyen/Model/Checkout/BrowserInfo.php index 9fe5ff7e9..09160311f 100644 --- a/src/Adyen/Model/Checkout/BrowserInfo.php +++ b/src/Adyen/Model/Checkout/BrowserInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CancelOrderRequest.php b/src/Adyen/Model/Checkout/CancelOrderRequest.php index 3ae3546ca..58e91f98f 100644 --- a/src/Adyen/Model/Checkout/CancelOrderRequest.php +++ b/src/Adyen/Model/Checkout/CancelOrderRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CancelOrderResponse.php b/src/Adyen/Model/Checkout/CancelOrderResponse.php index d9b40c04f..ae97769ef 100644 --- a/src/Adyen/Model/Checkout/CancelOrderResponse.php +++ b/src/Adyen/Model/Checkout/CancelOrderResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CarRental.php b/src/Adyen/Model/Checkout/CarRental.php new file mode 100644 index 000000000..0bc2157df --- /dev/null +++ b/src/Adyen/Model/Checkout/CarRental.php @@ -0,0 +1,781 @@ + + */ +class CarRental implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CarRental'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'customerServicePhoneNumber' => 'string', + 'noShow' => 'bool', + 'pickupInfo' => '\Adyen\Model\Checkout\PickupInfo', + 'rateType' => 'string', + 'rentalAgreementNumber' => 'string', + 'rentalClassId' => 'string', + 'rentalDays' => 'int', + 'rentalRate' => 'int', + 'rentalSurcharges' => '\Adyen\Model\Checkout\RentalSurcharges', + 'renterName' => 'string', + 'returnInfo' => '\Adyen\Model\Checkout\ReturnInfo', + 'taxExempt' => 'bool' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'customerServicePhoneNumber' => null, + 'noShow' => null, + 'pickupInfo' => null, + 'rateType' => null, + 'rentalAgreementNumber' => null, + 'rentalClassId' => null, + 'rentalDays' => 'int32', + 'rentalRate' => 'int64', + 'rentalSurcharges' => null, + 'renterName' => null, + 'returnInfo' => null, + 'taxExempt' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'customerServicePhoneNumber' => false, + 'noShow' => false, + 'pickupInfo' => false, + 'rateType' => false, + 'rentalAgreementNumber' => false, + 'rentalClassId' => false, + 'rentalDays' => true, + 'rentalRate' => false, + 'rentalSurcharges' => false, + 'renterName' => false, + 'returnInfo' => false, + 'taxExempt' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'customerServicePhoneNumber' => 'customerServicePhoneNumber', + 'noShow' => 'noShow', + 'pickupInfo' => 'pickupInfo', + 'rateType' => 'rateType', + 'rentalAgreementNumber' => 'rentalAgreementNumber', + 'rentalClassId' => 'rentalClassId', + 'rentalDays' => 'rentalDays', + 'rentalRate' => 'rentalRate', + 'rentalSurcharges' => 'rentalSurcharges', + 'renterName' => 'renterName', + 'returnInfo' => 'returnInfo', + 'taxExempt' => 'taxExempt' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'customerServicePhoneNumber' => 'setCustomerServicePhoneNumber', + 'noShow' => 'setNoShow', + 'pickupInfo' => 'setPickupInfo', + 'rateType' => 'setRateType', + 'rentalAgreementNumber' => 'setRentalAgreementNumber', + 'rentalClassId' => 'setRentalClassId', + 'rentalDays' => 'setRentalDays', + 'rentalRate' => 'setRentalRate', + 'rentalSurcharges' => 'setRentalSurcharges', + 'renterName' => 'setRenterName', + 'returnInfo' => 'setReturnInfo', + 'taxExempt' => 'setTaxExempt' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'customerServicePhoneNumber' => 'getCustomerServicePhoneNumber', + 'noShow' => 'getNoShow', + 'pickupInfo' => 'getPickupInfo', + 'rateType' => 'getRateType', + 'rentalAgreementNumber' => 'getRentalAgreementNumber', + 'rentalClassId' => 'getRentalClassId', + 'rentalDays' => 'getRentalDays', + 'rentalRate' => 'getRentalRate', + 'rentalSurcharges' => 'getRentalSurcharges', + 'renterName' => 'getRenterName', + 'returnInfo' => 'getReturnInfo', + 'taxExempt' => 'getTaxExempt' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const RATE_TYPE_DAILY = 'daily'; + public const RATE_TYPE_WEEKLY = 'weekly'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getRateTypeAllowableValues() + { + return [ + self::RATE_TYPE_DAILY, + self::RATE_TYPE_WEEKLY, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('customerServicePhoneNumber', $data ?? [], null); + $this->setIfExists('noShow', $data ?? [], null); + $this->setIfExists('pickupInfo', $data ?? [], null); + $this->setIfExists('rateType', $data ?? [], null); + $this->setIfExists('rentalAgreementNumber', $data ?? [], null); + $this->setIfExists('rentalClassId', $data ?? [], null); + $this->setIfExists('rentalDays', $data ?? [], null); + $this->setIfExists('rentalRate', $data ?? [], null); + $this->setIfExists('rentalSurcharges', $data ?? [], null); + $this->setIfExists('renterName', $data ?? [], null); + $this->setIfExists('returnInfo', $data ?? [], null); + $this->setIfExists('taxExempt', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getRateTypeAllowableValues(); + if (!is_null($this->container['rateType']) && !in_array($this->container['rateType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'rateType', must be one of '%s'", + $this->container['rateType'], + implode("', '", $allowedValues) + ); + } + + if ($this->container['renterName'] === null) { + $invalidProperties[] = "'renterName' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets customerServicePhoneNumber + * + * @return string|null + */ + public function getCustomerServicePhoneNumber() + { + return $this->container['customerServicePhoneNumber']; + } + + /** + * Sets customerServicePhoneNumber + * + * @param string|null $customerServicePhoneNumber The customer service phone number of the car rental company. * Format: Alphanumeric * maxLength: 17 * For US and CA numbers must be 10 characters in length * Must not contain any special characters such as + or - * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.customerServiceTollFreeNumber` + * + * @return self + */ + public function setCustomerServicePhoneNumber($customerServicePhoneNumber) + { + $this->container['customerServicePhoneNumber'] = $customerServicePhoneNumber; + + return $this; + } + + /** + * Gets noShow + * + * @return bool|null + */ + public function getNoShow() + { + return $this->container['noShow']; + } + + /** + * Sets noShow + * + * @param bool|null $noShow Indicates if the customer didn't pick up their rental car. * **additionalData key:** `carRental.noShowIndicator` + * + * @return self + */ + public function setNoShow($noShow) + { + $this->container['noShow'] = $noShow; + + return $this; + } + + /** + * Gets pickupInfo + * + * @return \Adyen\Model\Checkout\PickupInfo|null + */ + public function getPickupInfo() + { + return $this->container['pickupInfo']; + } + + /** + * Sets pickupInfo + * + * @param \Adyen\Model\Checkout\PickupInfo|null $pickupInfo pickupInfo + * + * @return self + */ + public function setPickupInfo($pickupInfo) + { + $this->container['pickupInfo'] = $pickupInfo; + + return $this; + } + + /** + * Gets rateType + * + * @return string|null + */ + public function getRateType() + { + return $this->container['rateType']; + } + + /** + * Sets rateType + * + * @param string|null $rateType Indicates whether the rental rate is daily or weekly. * **additionalData key:** `carRental.rateIndicator` + * + * @return self + */ + public function setRateType($rateType) + { + $allowedValues = $this->getRateTypeAllowableValues(); + if (!in_array($rateType, $allowedValues, true)) { + error_log( + sprintf( + "rateType: unexpected enum value '%s' - Supported values are [%s]", + $rateType, + implode(', ', $allowedValues) + ) + ); + } + $this->container['rateType'] = $rateType; + + return $this; + } + + /** + * Gets rentalAgreementNumber + * + * @return string|null + */ + public function getRentalAgreementNumber() + { + return $this->container['rentalAgreementNumber']; + } + + /** + * Sets rentalAgreementNumber + * + * @param string|null $rentalAgreementNumber The rental agreement number for the car rental. * Format: ASCII * maxLength: 9 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.rentalAgreementNumber` + * + * @return self + */ + public function setRentalAgreementNumber($rentalAgreementNumber) + { + $this->container['rentalAgreementNumber'] = $rentalAgreementNumber; + + return $this; + } + + /** + * Gets rentalClassId + * + * @return string|null + */ + public function getRentalClassId() + { + return $this->container['rentalClassId']; + } + + /** + * Sets rentalClassId + * + * @param string|null $rentalClassId The classification of the rental car. * Format: Alphanumeric * maxLength: 4 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.rentalClassId` + * + * @return self + */ + public function setRentalClassId($rentalClassId) + { + $this->container['rentalClassId'] = $rentalClassId; + + return $this; + } + + /** + * Gets rentalDays + * + * @return int|null + */ + public function getRentalDays() + { + return $this->container['rentalDays']; + } + + /** + * Sets rentalDays + * + * @param int|null $rentalDays The number of days the car is rented for. * Format: Numeric * Max value: 9999 * **additionalData key:** `carRental.daysRented` + * + * @return self + */ + public function setRentalDays($rentalDays) + { + $this->container['rentalDays'] = $rentalDays; + + return $this; + } + + /** + * Gets rentalRate + * + * @return int|null + */ + public function getRentalRate() + { + return $this->container['rentalRate']; + } + + /** + * Sets rentalRate + * + * @param int|null $rentalRate Rental rate, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * Frequency of the rental rate is specified in the rateType field. * **additionalData key:** `carRental.rate` + * + * @return self + */ + public function setRentalRate($rentalRate) + { + $this->container['rentalRate'] = $rentalRate; + + return $this; + } + + /** + * Gets rentalSurcharges + * + * @return \Adyen\Model\Checkout\RentalSurcharges|null + */ + public function getRentalSurcharges() + { + return $this->container['rentalSurcharges']; + } + + /** + * Sets rentalSurcharges + * + * @param \Adyen\Model\Checkout\RentalSurcharges|null $rentalSurcharges rentalSurcharges + * + * @return self + */ + public function setRentalSurcharges($rentalSurcharges) + { + $this->container['rentalSurcharges'] = $rentalSurcharges; + + return $this; + } + + /** + * Gets renterName + * + * @return string + */ + public function getRenterName() + { + return $this->container['renterName']; + } + + /** + * Sets renterName + * + * @param string $renterName The name of the person renting the car. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.renterName` + * + * @return self + */ + public function setRenterName($renterName) + { + $this->container['renterName'] = $renterName; + + return $this; + } + + /** + * Gets returnInfo + * + * @return \Adyen\Model\Checkout\ReturnInfo|null + */ + public function getReturnInfo() + { + return $this->container['returnInfo']; + } + + /** + * Sets returnInfo + * + * @param \Adyen\Model\Checkout\ReturnInfo|null $returnInfo returnInfo + * + * @return self + */ + public function setReturnInfo($returnInfo) + { + $this->container['returnInfo'] = $returnInfo; + + return $this; + } + + /** + * Gets taxExempt + * + * @return bool|null + */ + public function getTaxExempt() + { + return $this->container['taxExempt']; + } + + /** + * Sets taxExempt + * + * @param bool|null $taxExempt Indicates if the goods or services were tax-exempt, or if tax was not collected. * **additionalData key:** `carRental.taxExemptIndicator` + * + * @return self + */ + public function setTaxExempt($taxExempt) + { + $this->container['taxExempt'] = $taxExempt; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/CardBrandDetails.php b/src/Adyen/Model/Checkout/CardBrandDetails.php index 36a96e3bb..719c03ce5 100644 --- a/src/Adyen/Model/Checkout/CardBrandDetails.php +++ b/src/Adyen/Model/Checkout/CardBrandDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,6 +41,7 @@ class CardBrandDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ + 'healthcare' => 'bool', 'supported' => 'bool', 'type' => 'string' ]; @@ -53,6 +54,7 @@ class CardBrandDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ + 'healthcare' => null, 'supported' => null, 'type' => null ]; @@ -63,6 +65,7 @@ class CardBrandDetails implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ + 'healthcare' => false, 'supported' => false, 'type' => false ]; @@ -153,6 +156,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'healthcare' => 'healthcare', 'supported' => 'supported', 'type' => 'type' ]; @@ -163,6 +167,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'healthcare' => 'setHealthcare', 'supported' => 'setSupported', 'type' => 'setType' ]; @@ -173,6 +178,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'healthcare' => 'getHealthcare', 'supported' => 'getSupported', 'type' => 'getType' ]; @@ -234,6 +240,7 @@ public function getModelName() */ public function __construct(?array $data = null) { + $this->setIfExists('healthcare', $data ?? [], null); $this->setIfExists('supported', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); } @@ -280,6 +287,30 @@ public function valid() } + /** + * Gets healthcare + * + * @return bool|null + */ + public function getHealthcare() + { + return $this->container['healthcare']; + } + + /** + * Sets healthcare + * + * @param bool|null $healthcare Indicates if the card supports FSA/HSA healthcare payments. + * + * @return self + */ + public function setHealthcare($healthcare) + { + $this->container['healthcare'] = $healthcare; + + return $this; + } + /** * Gets supported * diff --git a/src/Adyen/Model/Checkout/CardDetails.php b/src/Adyen/Model/Checkout/CardDetails.php index 622c7ad29..649eb6930 100644 --- a/src/Adyen/Model/Checkout/CardDetails.php +++ b/src/Adyen/Model/Checkout/CardDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CardDetailsRequest.php b/src/Adyen/Model/Checkout/CardDetailsRequest.php index bf23f81c0..c6fe10006 100644 --- a/src/Adyen/Model/Checkout/CardDetailsRequest.php +++ b/src/Adyen/Model/Checkout/CardDetailsRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CardDetailsResponse.php b/src/Adyen/Model/Checkout/CardDetailsResponse.php index 50597f571..9b3b4a9be 100644 --- a/src/Adyen/Model/Checkout/CardDetailsResponse.php +++ b/src/Adyen/Model/Checkout/CardDetailsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CardDonations.php b/src/Adyen/Model/Checkout/CardDonations.php index 568918891..6aca3e555 100644 --- a/src/Adyen/Model/Checkout/CardDonations.php +++ b/src/Adyen/Model/Checkout/CardDonations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CashAppDetails.php b/src/Adyen/Model/Checkout/CashAppDetails.php index 780c19ab9..a710bf789 100644 --- a/src/Adyen/Model/Checkout/CashAppDetails.php +++ b/src/Adyen/Model/Checkout/CashAppDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CellulantDetails.php b/src/Adyen/Model/Checkout/CellulantDetails.php index 56b70ded3..42e369b8f 100644 --- a/src/Adyen/Model/Checkout/CellulantDetails.php +++ b/src/Adyen/Model/Checkout/CellulantDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutAwaitAction.php b/src/Adyen/Model/Checkout/CheckoutAwaitAction.php index 9665b9947..8c7ff17c6 100644 --- a/src/Adyen/Model/Checkout/CheckoutAwaitAction.php +++ b/src/Adyen/Model/Checkout/CheckoutAwaitAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutBankAccount.php b/src/Adyen/Model/Checkout/CheckoutBankAccount.php index d8be8b7e5..f479b696e 100644 --- a/src/Adyen/Model/Checkout/CheckoutBankAccount.php +++ b/src/Adyen/Model/Checkout/CheckoutBankAccount.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php b/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php index 3781653b0..0c2a7062a 100644 --- a/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php +++ b/src/Adyen/Model/Checkout/CheckoutBankTransferAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutDelegatedAuthenticationAction.php b/src/Adyen/Model/Checkout/CheckoutDelegatedAuthenticationAction.php index 792a72cc0..23a342084 100644 --- a/src/Adyen/Model/Checkout/CheckoutDelegatedAuthenticationAction.php +++ b/src/Adyen/Model/Checkout/CheckoutDelegatedAuthenticationAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DefaultErrorResponseEntity.php b/src/Adyen/Model/Checkout/CheckoutErrorResponseEntity.php similarity index 69% rename from src/Adyen/Model/Checkout/DefaultErrorResponseEntity.php rename to src/Adyen/Model/Checkout/CheckoutErrorResponseEntity.php index e45160943..ba9a8cf0c 100644 --- a/src/Adyen/Model/Checkout/DefaultErrorResponseEntity.php +++ b/src/Adyen/Model/Checkout/CheckoutErrorResponseEntity.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -19,14 +19,12 @@ use Adyen\Model\Checkout\ObjectSerializer; /** - * DefaultErrorResponseEntity Class Doc Comment - * - * Standardized error response following RFC-7807 format + * CheckoutErrorResponseEntity Class Doc Comment * * @package Adyen * @implements ArrayAccess */ -class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSerializable +class CheckoutErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -35,7 +33,7 @@ class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSe * * @var string */ - protected static $openAPIModelName = 'DefaultErrorResponseEntity'; + protected static $openAPIModelName = 'CheckoutErrorResponseEntity'; /** * Array of property to type mappings. Used for (de)serialization @@ -43,14 +41,11 @@ class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ - 'detail' => 'string', 'errorCode' => 'string', - 'instance' => 'string', - 'invalidFields' => '\Adyen\Model\Checkout\InvalidField[]', - 'requestId' => 'string', - 'status' => 'int', - 'title' => 'string', - 'type' => 'string' + 'errorType' => 'string', + 'message' => 'string', + 'pspReference' => 'string', + 'status' => 'int' ]; /** @@ -61,14 +56,11 @@ class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ - 'detail' => null, 'errorCode' => null, - 'instance' => null, - 'invalidFields' => null, - 'requestId' => null, - 'status' => 'int32', - 'title' => null, - 'type' => null + 'errorType' => null, + 'message' => null, + 'pspReference' => null, + 'status' => 'int32' ]; /** @@ -77,14 +69,11 @@ class DefaultErrorResponseEntity implements ModelInterface, ArrayAccess, \JsonSe * @var boolean[] */ protected static $openAPINullables = [ - 'detail' => false, 'errorCode' => false, - 'instance' => false, - 'invalidFields' => false, - 'requestId' => false, - 'status' => true, - 'title' => false, - 'type' => false + 'errorType' => false, + 'message' => false, + 'pspReference' => false, + 'status' => true ]; /** @@ -173,14 +162,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'detail' => 'detail', 'errorCode' => 'errorCode', - 'instance' => 'instance', - 'invalidFields' => 'invalidFields', - 'requestId' => 'requestId', - 'status' => 'status', - 'title' => 'title', - 'type' => 'type' + 'errorType' => 'errorType', + 'message' => 'message', + 'pspReference' => 'pspReference', + 'status' => 'status' ]; /** @@ -189,14 +175,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'detail' => 'setDetail', 'errorCode' => 'setErrorCode', - 'instance' => 'setInstance', - 'invalidFields' => 'setInvalidFields', - 'requestId' => 'setRequestId', - 'status' => 'setStatus', - 'title' => 'setTitle', - 'type' => 'setType' + 'errorType' => 'setErrorType', + 'message' => 'setMessage', + 'pspReference' => 'setPspReference', + 'status' => 'setStatus' ]; /** @@ -205,14 +188,11 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'detail' => 'getDetail', 'errorCode' => 'getErrorCode', - 'instance' => 'getInstance', - 'invalidFields' => 'getInvalidFields', - 'requestId' => 'getRequestId', - 'status' => 'getStatus', - 'title' => 'getTitle', - 'type' => 'getType' + 'errorType' => 'getErrorType', + 'message' => 'getMessage', + 'pspReference' => 'getPspReference', + 'status' => 'getStatus' ]; /** @@ -272,14 +252,11 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('detail', $data ?? [], null); $this->setIfExists('errorCode', $data ?? [], null); - $this->setIfExists('instance', $data ?? [], null); - $this->setIfExists('invalidFields', $data ?? [], null); - $this->setIfExists('requestId', $data ?? [], null); + $this->setIfExists('errorType', $data ?? [], null); + $this->setIfExists('message', $data ?? [], null); + $this->setIfExists('pspReference', $data ?? [], null); $this->setIfExists('status', $data ?? [], null); - $this->setIfExists('title', $data ?? [], null); - $this->setIfExists('type', $data ?? [], null); } /** @@ -309,6 +286,15 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['errorCode'] === null) { + $invalidProperties[] = "'errorCode' can't be null"; + } + if ($this->container['errorType'] === null) { + $invalidProperties[] = "'errorType' can't be null"; + } + if ($this->container['message'] === null) { + $invalidProperties[] = "'message' can't be null"; + } return $invalidProperties; } @@ -324,34 +310,10 @@ public function valid() } - /** - * Gets detail - * - * @return string|null - */ - public function getDetail() - { - return $this->container['detail']; - } - - /** - * Sets detail - * - * @param string|null $detail A human-readable explanation specific to this occurrence of the problem. - * - * @return self - */ - public function setDetail($detail) - { - $this->container['detail'] = $detail; - - return $this; - } - /** * Gets errorCode * - * @return string|null + * @return string */ public function getErrorCode() { @@ -361,7 +323,7 @@ public function getErrorCode() /** * Sets errorCode * - * @param string|null $errorCode Unique business error code. + * @param string $errorCode errorCode * * @return self */ @@ -373,73 +335,73 @@ public function setErrorCode($errorCode) } /** - * Gets instance + * Gets errorType * - * @return string|null + * @return string */ - public function getInstance() + public function getErrorType() { - return $this->container['instance']; + return $this->container['errorType']; } /** - * Sets instance + * Sets errorType * - * @param string|null $instance A URI that identifies the specific occurrence of the problem if applicable. + * @param string $errorType errorType * * @return self */ - public function setInstance($instance) + public function setErrorType($errorType) { - $this->container['instance'] = $instance; + $this->container['errorType'] = $errorType; return $this; } /** - * Gets invalidFields + * Gets message * - * @return \Adyen\Model\Checkout\InvalidField[]|null + * @return string */ - public function getInvalidFields() + public function getMessage() { - return $this->container['invalidFields']; + return $this->container['message']; } /** - * Sets invalidFields + * Sets message * - * @param \Adyen\Model\Checkout\InvalidField[]|null $invalidFields Array of fields with validation errors when applicable. + * @param string $message message * * @return self */ - public function setInvalidFields($invalidFields) + public function setMessage($message) { - $this->container['invalidFields'] = $invalidFields; + $this->container['message'] = $message; return $this; } /** - * Gets requestId + * Gets pspReference * * @return string|null */ - public function getRequestId() + public function getPspReference() { - return $this->container['requestId']; + return $this->container['pspReference']; } /** - * Sets requestId + * Sets pspReference * - * @param string|null $requestId The unique reference for the request. + * @param string|null $pspReference pspReference * * @return self */ - public function setRequestId($requestId) + public function setPspReference($pspReference) { - $this->container['requestId'] = $requestId; + $this->container['pspReference'] = $pspReference; return $this; } @@ -457,7 +419,7 @@ public function getStatus() /** * Sets status * - * @param int|null $status The HTTP status code. + * @param int|null $status status * * @return self */ @@ -467,54 +429,6 @@ public function setStatus($status) return $this; } - - /** - * Gets title - * - * @return string|null - */ - public function getTitle() - { - return $this->container['title']; - } - - /** - * Sets title - * - * @param string|null $title A short, human-readable summary of the problem type. - * - * @return self - */ - public function setTitle($title) - { - $this->container['title'] = $title; - - return $this; - } - - /** - * Gets type - * - * @return string|null - */ - public function getType() - { - return $this->container['type']; - } - - /** - * Sets type - * - * @param string|null $type A URI that identifies the validation error type. It points to human-readable documentation for the problem type. - * - * @return self - */ - public function setType($type) - { - $this->container['type'] = $type; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Checkout/CheckoutForwardRequest.php b/src/Adyen/Model/Checkout/CheckoutForwardRequest.php index 52738bf68..e1b4c8954 100644 --- a/src/Adyen/Model/Checkout/CheckoutForwardRequest.php +++ b/src/Adyen/Model/Checkout/CheckoutForwardRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutForwardRequestCard.php b/src/Adyen/Model/Checkout/CheckoutForwardRequestCard.php index 546052174..69abde589 100644 --- a/src/Adyen/Model/Checkout/CheckoutForwardRequestCard.php +++ b/src/Adyen/Model/Checkout/CheckoutForwardRequestCard.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutForwardRequestOptions.php b/src/Adyen/Model/Checkout/CheckoutForwardRequestOptions.php index 85d037387..ea3e10c41 100644 --- a/src/Adyen/Model/Checkout/CheckoutForwardRequestOptions.php +++ b/src/Adyen/Model/Checkout/CheckoutForwardRequestOptions.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutForwardResponse.php b/src/Adyen/Model/Checkout/CheckoutForwardResponse.php index 2eeb45386..1441d2bcb 100644 --- a/src/Adyen/Model/Checkout/CheckoutForwardResponse.php +++ b/src/Adyen/Model/Checkout/CheckoutForwardResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutForwardResponseFromUrl.php b/src/Adyen/Model/Checkout/CheckoutForwardResponseFromUrl.php index 65141c9cc..e0f4f2bee 100644 --- a/src/Adyen/Model/Checkout/CheckoutForwardResponseFromUrl.php +++ b/src/Adyen/Model/Checkout/CheckoutForwardResponseFromUrl.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutNativeRedirectAction.php b/src/Adyen/Model/Checkout/CheckoutNativeRedirectAction.php index bce854e7a..2af790349 100644 --- a/src/Adyen/Model/Checkout/CheckoutNativeRedirectAction.php +++ b/src/Adyen/Model/Checkout/CheckoutNativeRedirectAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutNetworkTokenOption.php b/src/Adyen/Model/Checkout/CheckoutNetworkTokenOption.php index b13fa1a57..cb83551f1 100644 --- a/src/Adyen/Model/Checkout/CheckoutNetworkTokenOption.php +++ b/src/Adyen/Model/Checkout/CheckoutNetworkTokenOption.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutOrderResponse.php b/src/Adyen/Model/Checkout/CheckoutOrderResponse.php index 171b08ef6..73b42751a 100644 --- a/src/Adyen/Model/Checkout/CheckoutOrderResponse.php +++ b/src/Adyen/Model/Checkout/CheckoutOrderResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutOutgoingForwardRequest.php b/src/Adyen/Model/Checkout/CheckoutOutgoingForwardRequest.php index a72368494..32e100d83 100644 --- a/src/Adyen/Model/Checkout/CheckoutOutgoingForwardRequest.php +++ b/src/Adyen/Model/Checkout/CheckoutOutgoingForwardRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php index 7054ba7f9..a9a34b2c3 100644 --- a/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php +++ b/src/Adyen/Model/Checkout/CheckoutPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -28,7 +28,7 @@ */ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable { - public const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'type'; /** * The original name of the model. @@ -56,6 +56,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'storedPaymentMethodId' => 'string', 'transferInstrumentId' => 'string', 'type' => 'string', + 'financingProgram' => 'string', 'billingAddress' => 'string', 'deliveryAddress' => 'string', 'personalDetails' => 'string', @@ -103,6 +104,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'bankCode' => 'string', 'googlePayCardNetwork' => 'string', 'googlePayToken' => 'string', + 'merchantData' => 'string', 'klarnaNetworkData' => 'string', 'klarnaNetworkSessionToken' => 'string', 'masterpassTransactionId' => 'string', @@ -150,6 +152,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'storedPaymentMethodId' => null, 'transferInstrumentId' => null, 'type' => null, + 'financingProgram' => null, 'billingAddress' => null, 'deliveryAddress' => null, 'personalDetails' => null, @@ -197,6 +200,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'bankCode' => null, 'googlePayCardNetwork' => null, 'googlePayToken' => null, + 'merchantData' => null, 'klarnaNetworkData' => null, 'klarnaNetworkSessionToken' => null, 'masterpassTransactionId' => null, @@ -242,6 +246,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'storedPaymentMethodId' => false, 'transferInstrumentId' => false, 'type' => false, + 'financingProgram' => false, 'billingAddress' => false, 'deliveryAddress' => false, 'personalDetails' => false, @@ -289,6 +294,7 @@ class CheckoutPaymentMethod implements ModelInterface, ArrayAccess, \JsonSeriali 'bankCode' => false, 'googlePayCardNetwork' => false, 'googlePayToken' => false, + 'merchantData' => false, 'klarnaNetworkData' => false, 'klarnaNetworkSessionToken' => false, 'masterpassTransactionId' => false, @@ -414,6 +420,7 @@ public function isNullableSetToNull(string $property): bool 'storedPaymentMethodId' => 'storedPaymentMethodId', 'transferInstrumentId' => 'transferInstrumentId', 'type' => 'type', + 'financingProgram' => 'financingProgram', 'billingAddress' => 'billingAddress', 'deliveryAddress' => 'deliveryAddress', 'personalDetails' => 'personalDetails', @@ -461,6 +468,7 @@ public function isNullableSetToNull(string $property): bool 'bankCode' => 'bankCode', 'googlePayCardNetwork' => 'googlePayCardNetwork', 'googlePayToken' => 'googlePayToken', + 'merchantData' => 'merchantData', 'klarnaNetworkData' => 'klarnaNetworkData', 'klarnaNetworkSessionToken' => 'klarnaNetworkSessionToken', 'masterpassTransactionId' => 'masterpassTransactionId', @@ -506,6 +514,7 @@ public function isNullableSetToNull(string $property): bool 'storedPaymentMethodId' => 'setStoredPaymentMethodId', 'transferInstrumentId' => 'setTransferInstrumentId', 'type' => 'setType', + 'financingProgram' => 'setFinancingProgram', 'billingAddress' => 'setBillingAddress', 'deliveryAddress' => 'setDeliveryAddress', 'personalDetails' => 'setPersonalDetails', @@ -553,6 +562,7 @@ public function isNullableSetToNull(string $property): bool 'bankCode' => 'setBankCode', 'googlePayCardNetwork' => 'setGooglePayCardNetwork', 'googlePayToken' => 'setGooglePayToken', + 'merchantData' => 'setMerchantData', 'klarnaNetworkData' => 'setKlarnaNetworkData', 'klarnaNetworkSessionToken' => 'setKlarnaNetworkSessionToken', 'masterpassTransactionId' => 'setMasterpassTransactionId', @@ -598,6 +608,7 @@ public function isNullableSetToNull(string $property): bool 'storedPaymentMethodId' => 'getStoredPaymentMethodId', 'transferInstrumentId' => 'getTransferInstrumentId', 'type' => 'getType', + 'financingProgram' => 'getFinancingProgram', 'billingAddress' => 'getBillingAddress', 'deliveryAddress' => 'getDeliveryAddress', 'personalDetails' => 'getPersonalDetails', @@ -645,6 +656,7 @@ public function isNullableSetToNull(string $property): bool 'bankCode' => 'getBankCode', 'googlePayCardNetwork' => 'getGooglePayCardNetwork', 'googlePayToken' => 'getGooglePayToken', + 'merchantData' => 'getMerchantData', 'klarnaNetworkData' => 'getKlarnaNetworkData', 'klarnaNetworkSessionToken' => 'getKlarnaNetworkSessionToken', 'masterpassTransactionId' => 'getMasterpassTransactionId', @@ -740,6 +752,7 @@ public function __construct(?array $data = null) $this->setIfExists('storedPaymentMethodId', $data ?? [], null); $this->setIfExists('transferInstrumentId', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); + $this->setIfExists('financingProgram', $data ?? [], null); $this->setIfExists('billingAddress', $data ?? [], null); $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); @@ -787,6 +800,7 @@ public function __construct(?array $data = null) $this->setIfExists('bankCode', $data ?? [], null); $this->setIfExists('googlePayCardNetwork', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); + $this->setIfExists('merchantData', $data ?? [], null); $this->setIfExists('klarnaNetworkData', $data ?? [], null); $this->setIfExists('klarnaNetworkSessionToken', $data ?? [], null); $this->setIfExists('masterpassTransactionId', $data ?? [], null); @@ -811,6 +825,9 @@ public function __construct(?array $data = null) $this->setIfExists('visaCheckoutCallId', $data ?? [], null); $this->setIfExists('openid', $data ?? [], null); $this->setIfExists('clickAndCollect', $data ?? [], null); + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; } /** @@ -842,9 +859,6 @@ public function listInvalidProperties() - if ($this->container['ownerName'] === null) { - $invalidProperties[] = "'ownerName' can't be null"; - } if ($this->container['storedPaymentMethodId'] === null) { $invalidProperties[] = "'storedPaymentMethodId' can't be null"; } @@ -857,6 +871,9 @@ public function listInvalidProperties() $invalidProperties[] = "'applePayToken' can't be null"; } + if ($this->container['holderName'] === null) { + $invalidProperties[] = "'holderName' can't be null"; + } if ($this->container['issuer'] === null) { $invalidProperties[] = "'issuer' can't be null"; } @@ -896,9 +913,6 @@ public function listInvalidProperties() if ($this->container['identificationType'] === null) { $invalidProperties[] = "'identificationType' can't be null"; } - if ($this->container['iban'] === null) { - $invalidProperties[] = "'iban' can't be null"; - } if ($this->container['samsungPayToken'] === null) { $invalidProperties[] = "'samsungPayToken' can't be null"; } @@ -1091,7 +1105,7 @@ public function setEncryptedBankLocationId($encryptedBankLocationId) /** * Gets ownerName * - * @return string + * @return string|null */ public function getOwnerName() { @@ -1101,7 +1115,7 @@ public function getOwnerName() /** * Sets ownerName * - * @param string $ownerName The name of the bank account holder. + * @param string|null $ownerName The name of the bank account holder. * * @return self */ @@ -1234,6 +1248,30 @@ public function setType($type) return $this; } + /** + * Gets financingProgram + * + * @return string|null + */ + public function getFinancingProgram() + { + return $this->container['financingProgram']; + } + + /** + * Sets financingProgram + * + * @param string|null $financingProgram The Affirm financing program to apply to this transaction. + * + * @return self + */ + public function setFinancingProgram($financingProgram) + { + $this->container['financingProgram'] = $financingProgram; + + return $this; + } + /** * Gets billingAddress * @@ -1453,7 +1491,7 @@ public function setFundingSource($fundingSource) /** * Gets holderName * - * @return string|null + * @return string */ public function getHolderName() { @@ -1463,7 +1501,7 @@ public function getHolderName() /** * Sets holderName * - * @param string|null $holderName The name of the card holder. + * @param string $holderName The name of the card holder. * * @return self */ @@ -2364,6 +2402,30 @@ public function setGooglePayToken($googlePayToken) return $this; } + /** + * Gets merchantData + * + * @return string|null + */ + public function getMerchantData() + { + return $this->container['merchantData']; + } + + /** + * Sets merchantData + * + * @param string|null $merchantData Base64-encoded merchant metadata (Extra Merchant Data) forwarded to Riverty at authorization. + * + * @return self + */ + public function setMerchantData($merchantData) + { + $this->container['merchantData'] = $merchantData; + + return $this; + } + /** * Gets klarnaNetworkData * @@ -2775,7 +2837,7 @@ public function setDeviceFingerprint($deviceFingerprint) /** * Gets iban * - * @return string + * @return string|null */ public function getIban() { @@ -2785,7 +2847,7 @@ public function getIban() /** * Sets iban * - * @param string $iban The International Bank Account Number (IBAN). + * @param string|null $iban The International Bank Account Number (IBAN). * * @return self */ diff --git a/src/Adyen/Model/Checkout/CheckoutQrCodeAction.php b/src/Adyen/Model/Checkout/CheckoutQrCodeAction.php index 88e5dadc8..a9f028180 100644 --- a/src/Adyen/Model/Checkout/CheckoutQrCodeAction.php +++ b/src/Adyen/Model/Checkout/CheckoutQrCodeAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutRedirectAction.php b/src/Adyen/Model/Checkout/CheckoutRedirectAction.php index 6e55e7f6c..2d392bc2c 100644 --- a/src/Adyen/Model/Checkout/CheckoutRedirectAction.php +++ b/src/Adyen/Model/Checkout/CheckoutRedirectAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutSDKAction.php b/src/Adyen/Model/Checkout/CheckoutSDKAction.php index 34dbdd1fd..bc6a2b6c8 100644 --- a/src/Adyen/Model/Checkout/CheckoutSDKAction.php +++ b/src/Adyen/Model/Checkout/CheckoutSDKAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutSessionInstallmentOption.php b/src/Adyen/Model/Checkout/CheckoutSessionInstallmentOption.php index 22a3bc055..505ff99cd 100644 --- a/src/Adyen/Model/Checkout/CheckoutSessionInstallmentOption.php +++ b/src/Adyen/Model/Checkout/CheckoutSessionInstallmentOption.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionRequest.php b/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionRequest.php new file mode 100644 index 000000000..bda29ce2b --- /dev/null +++ b/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionRequest.php @@ -0,0 +1,472 @@ + + */ +class CheckoutSessionPatchSessionRequest implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CheckoutSessionPatchSessionRequest'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'amount' => '\Adyen\Model\Checkout\SessionAmountUpdate', + 'payable' => 'bool', + 'sessionData' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'amount' => null, + 'payable' => null, + 'sessionData' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'amount' => false, + 'payable' => false, + 'sessionData' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'amount' => 'amount', + 'payable' => 'payable', + 'sessionData' => 'sessionData' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'amount' => 'setAmount', + 'payable' => 'setPayable', + 'sessionData' => 'setSessionData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'amount' => 'getAmount', + 'payable' => 'getPayable', + 'sessionData' => 'getSessionData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('payable', $data ?? [], null); + $this->setIfExists('sessionData', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['amount'] === null) { + $invalidProperties[] = "'amount' can't be null"; + } + if ($this->container['sessionData'] === null) { + $invalidProperties[] = "'sessionData' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets amount + * + * @return \Adyen\Model\Checkout\SessionAmountUpdate + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param \Adyen\Model\Checkout\SessionAmountUpdate $amount amount + * + * @return self + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; + + return $this; + } + + /** + * Gets payable + * + * @return bool|null + */ + public function getPayable() + { + return $this->container['payable']; + } + + /** + * Sets payable + * + * @param bool|null $payable Indicates if the session is payable. If the payment amount is final, set this to **true** to indicate that the session is payable, so that the shopper can proceed to submit the payment. When you set this to **true**, you can no longer update the session. If you set this to **false**, you must make another request to update the session and set this to **true** before the shopper can submit the payment. + * + * @return self + */ + public function setPayable($payable) + { + $this->container['payable'] = $payable; + + return $this; + } + + /** + * Gets sessionData + * + * @return string + */ + public function getSessionData() + { + return $this->container['sessionData']; + } + + /** + * Sets sessionData + * + * @param string $sessionData The encoded payment session data from the `beforeSubmit` callback from [Drop-in](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Web&integration=Drop-in#update-the-session-amount) or [the Component](https://docs.adyen.com/online-payments/build-your-integration/sessions-flow?platform=Web&integration=Components#update-the-session-amount). + * + * @return self + */ + public function setSessionData($sessionData) + { + $this->container['sessionData'] = $sessionData; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionResponse.php b/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionResponse.php new file mode 100644 index 000000000..6bf205dfe --- /dev/null +++ b/src/Adyen/Model/Checkout/CheckoutSessionPatchSessionResponse.php @@ -0,0 +1,404 @@ + + */ +class CheckoutSessionPatchSessionResponse implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'CheckoutSessionPatchSessionResponse'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'sessionData' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'sessionData' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'sessionData' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'sessionData' => 'sessionData' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'sessionData' => 'setSessionData' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'sessionData' => 'getSessionData' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('sessionData', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets sessionData + * + * @return string|null + */ + public function getSessionData() + { + return $this->container['sessionData']; + } + + /** + * Sets sessionData + * + * @param string|null $sessionData sessionData + * + * @return self + */ + public function setSessionData($sessionData) + { + $this->container['sessionData'] = $sessionData; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/CheckoutSessionThreeDS2RequestData.php b/src/Adyen/Model/Checkout/CheckoutSessionThreeDS2RequestData.php index 29f4dfe7d..34b1d4158 100644 --- a/src/Adyen/Model/Checkout/CheckoutSessionThreeDS2RequestData.php +++ b/src/Adyen/Model/Checkout/CheckoutSessionThreeDS2RequestData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutThreeDS2Action.php b/src/Adyen/Model/Checkout/CheckoutThreeDS2Action.php index c59e3fcd4..773d9d600 100644 --- a/src/Adyen/Model/Checkout/CheckoutThreeDS2Action.php +++ b/src/Adyen/Model/Checkout/CheckoutThreeDS2Action.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CheckoutVoucherAction.php b/src/Adyen/Model/Checkout/CheckoutVoucherAction.php index 463218e9e..b9ec1195a 100644 --- a/src/Adyen/Model/Checkout/CheckoutVoucherAction.php +++ b/src/Adyen/Model/Checkout/CheckoutVoucherAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CommonField.php b/src/Adyen/Model/Checkout/CommonField.php index 64736bff7..b9c2e13a6 100644 --- a/src/Adyen/Model/Checkout/CommonField.php +++ b/src/Adyen/Model/Checkout/CommonField.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Company.php b/src/Adyen/Model/Checkout/Company.php index f1cbdf0d1..bf3a3fd01 100644 --- a/src/Adyen/Model/Checkout/Company.php +++ b/src/Adyen/Model/Checkout/Company.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ConfidenceScore.php b/src/Adyen/Model/Checkout/ConfidenceScore.php index de5b8aeb6..8638455bd 100644 --- a/src/Adyen/Model/Checkout/ConfidenceScore.php +++ b/src/Adyen/Model/Checkout/ConfidenceScore.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php index 2d45e240b..6073fbc60 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -81,6 +81,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'reference' => 'string', 'returnUrl' => 'string', 'riskData' => '\Adyen\Model\Checkout\RiskData', + 'shopperConversionId' => 'string', 'shopperEmail' => 'string', 'shopperIP' => 'string', 'shopperInteraction' => 'string', @@ -99,6 +100,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'storePaymentMethodMode' => 'string', 'telephoneNumber' => 'string', 'themeId' => 'string', + 'thirdPartyTokenRedundancyInfo' => '\Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => '\Adyen\Model\Checkout\CheckoutSessionThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'bool', 'trustedShopper' => 'bool' @@ -152,6 +154,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'reference' => null, 'returnUrl' => null, 'riskData' => null, + 'shopperConversionId' => null, 'shopperEmail' => null, 'shopperIP' => null, 'shopperInteraction' => null, @@ -170,6 +173,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'storePaymentMethodMode' => null, 'telephoneNumber' => null, 'themeId' => null, + 'thirdPartyTokenRedundancyInfo' => null, 'threeDS2RequestData' => null, 'threeDSAuthenticationOnly' => null, 'trustedShopper' => null @@ -221,6 +225,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'reference' => false, 'returnUrl' => false, 'riskData' => false, + 'shopperConversionId' => false, 'shopperEmail' => false, 'shopperIP' => false, 'shopperInteraction' => false, @@ -239,6 +244,7 @@ class CreateCheckoutSessionRequest implements ModelInterface, ArrayAccess, \Json 'storePaymentMethodMode' => false, 'telephoneNumber' => false, 'themeId' => false, + 'thirdPartyTokenRedundancyInfo' => false, 'threeDS2RequestData' => false, 'threeDSAuthenticationOnly' => false, 'trustedShopper' => false @@ -370,6 +376,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'reference', 'returnUrl' => 'returnUrl', 'riskData' => 'riskData', + 'shopperConversionId' => 'shopperConversionId', 'shopperEmail' => 'shopperEmail', 'shopperIP' => 'shopperIP', 'shopperInteraction' => 'shopperInteraction', @@ -388,6 +395,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'storePaymentMethodMode', 'telephoneNumber' => 'telephoneNumber', 'themeId' => 'themeId', + 'thirdPartyTokenRedundancyInfo' => 'thirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'threeDS2RequestData', 'threeDSAuthenticationOnly' => 'threeDSAuthenticationOnly', 'trustedShopper' => 'trustedShopper' @@ -439,6 +447,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'setReference', 'returnUrl' => 'setReturnUrl', 'riskData' => 'setRiskData', + 'shopperConversionId' => 'setShopperConversionId', 'shopperEmail' => 'setShopperEmail', 'shopperIP' => 'setShopperIP', 'shopperInteraction' => 'setShopperInteraction', @@ -457,6 +466,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'setStorePaymentMethodMode', 'telephoneNumber' => 'setTelephoneNumber', 'themeId' => 'setThemeId', + 'thirdPartyTokenRedundancyInfo' => 'setThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'setThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'setThreeDSAuthenticationOnly', 'trustedShopper' => 'setTrustedShopper' @@ -508,6 +518,7 @@ public function isNullableSetToNull(string $property): bool 'reference' => 'getReference', 'returnUrl' => 'getReturnUrl', 'riskData' => 'getRiskData', + 'shopperConversionId' => 'getShopperConversionId', 'shopperEmail' => 'getShopperEmail', 'shopperIP' => 'getShopperIP', 'shopperInteraction' => 'getShopperInteraction', @@ -526,6 +537,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'getStorePaymentMethodMode', 'telephoneNumber' => 'getTelephoneNumber', 'themeId' => 'getThemeId', + 'thirdPartyTokenRedundancyInfo' => 'getThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'getThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'getThreeDSAuthenticationOnly', 'trustedShopper' => 'getTrustedShopper' @@ -724,6 +736,7 @@ public function __construct(?array $data = null) $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('returnUrl', $data ?? [], null); $this->setIfExists('riskData', $data ?? [], null); + $this->setIfExists('shopperConversionId', $data ?? [], null); $this->setIfExists('shopperEmail', $data ?? [], null); $this->setIfExists('shopperIP', $data ?? [], null); $this->setIfExists('shopperInteraction', $data ?? [], null); @@ -742,6 +755,7 @@ public function __construct(?array $data = null) $this->setIfExists('storePaymentMethodMode', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('themeId', $data ?? [], null); + $this->setIfExists('thirdPartyTokenRedundancyInfo', $data ?? [], null); $this->setIfExists('threeDS2RequestData', $data ?? [], null); $this->setIfExists('threeDSAuthenticationOnly', $data ?? [], null); $this->setIfExists('trustedShopper', $data ?? [], null); @@ -1810,7 +1824,7 @@ public function getReturnUrl() /** * Sets returnUrl * - * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @return self */ @@ -1845,6 +1859,30 @@ public function setRiskData($riskData) return $this; } + /** + * Gets shopperConversionId + * + * @return string|null + */ + public function getShopperConversionId() + { + return $this->container['shopperConversionId']; + } + + /** + * Sets shopperConversionId + * + * @param string|null $shopperConversionId Use this if you made a `/paymentMethods` request to get the payment methods for the shopper's checkout session. A unique ID to [connect the shopper to a single checkout session](https://docs.adyen.com/online-payments/checkout-settings#checkout-shopper-conversion-id) that uses multiple API requests. You can use this to get insights into conversion rates. + * + * @return self + */ + public function setShopperConversionId($shopperConversionId) + { + $this->container['shopperConversionId'] = $shopperConversionId; + + return $this; + } + /** * Gets shopperEmail * @@ -2307,6 +2345,30 @@ public function setThemeId($themeId) return $this; } + /** + * Gets thirdPartyTokenRedundancyInfo + * + * @return \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null + */ + public function getThirdPartyTokenRedundancyInfo() + { + return $this->container['thirdPartyTokenRedundancyInfo']; + } + + /** + * Sets thirdPartyTokenRedundancyInfo + * + * @param \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null $thirdPartyTokenRedundancyInfo thirdPartyTokenRedundancyInfo + * + * @return self + */ + public function setThirdPartyTokenRedundancyInfo($thirdPartyTokenRedundancyInfo) + { + $this->container['thirdPartyTokenRedundancyInfo'] = $thirdPartyTokenRedundancyInfo; + + return $this; + } + /** * Gets threeDS2RequestData * diff --git a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php index 4dd63ab0a..669ce5fd4 100644 --- a/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php +++ b/src/Adyen/Model/Checkout/CreateCheckoutSessionResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -101,6 +101,7 @@ class CreateCheckoutSessionResponse implements ModelInterface, ArrayAccess, \Jso 'storePaymentMethodMode' => 'string', 'telephoneNumber' => 'string', 'themeId' => 'string', + 'thirdPartyTokenRedundancyInfo' => '\Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => '\Adyen\Model\Checkout\CheckoutSessionThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'bool', 'trustedShopper' => 'bool', @@ -175,6 +176,7 @@ class CreateCheckoutSessionResponse implements ModelInterface, ArrayAccess, \Jso 'storePaymentMethodMode' => null, 'telephoneNumber' => null, 'themeId' => null, + 'thirdPartyTokenRedundancyInfo' => null, 'threeDS2RequestData' => null, 'threeDSAuthenticationOnly' => null, 'trustedShopper' => null, @@ -247,6 +249,7 @@ class CreateCheckoutSessionResponse implements ModelInterface, ArrayAccess, \Jso 'storePaymentMethodMode' => false, 'telephoneNumber' => false, 'themeId' => false, + 'thirdPartyTokenRedundancyInfo' => false, 'threeDS2RequestData' => false, 'threeDSAuthenticationOnly' => false, 'trustedShopper' => false, @@ -399,6 +402,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'storePaymentMethodMode', 'telephoneNumber' => 'telephoneNumber', 'themeId' => 'themeId', + 'thirdPartyTokenRedundancyInfo' => 'thirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'threeDS2RequestData', 'threeDSAuthenticationOnly' => 'threeDSAuthenticationOnly', 'trustedShopper' => 'trustedShopper', @@ -471,6 +475,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'setStorePaymentMethodMode', 'telephoneNumber' => 'setTelephoneNumber', 'themeId' => 'setThemeId', + 'thirdPartyTokenRedundancyInfo' => 'setThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'setThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'setThreeDSAuthenticationOnly', 'trustedShopper' => 'setTrustedShopper', @@ -543,6 +548,7 @@ public function isNullableSetToNull(string $property): bool 'storePaymentMethodMode' => 'getStorePaymentMethodMode', 'telephoneNumber' => 'getTelephoneNumber', 'themeId' => 'getThemeId', + 'thirdPartyTokenRedundancyInfo' => 'getThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'getThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'getThreeDSAuthenticationOnly', 'trustedShopper' => 'getTrustedShopper', @@ -762,6 +768,7 @@ public function __construct(?array $data = null) $this->setIfExists('storePaymentMethodMode', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('themeId', $data ?? [], null); + $this->setIfExists('thirdPartyTokenRedundancyInfo', $data ?? [], null); $this->setIfExists('threeDS2RequestData', $data ?? [], null); $this->setIfExists('threeDSAuthenticationOnly', $data ?? [], null); $this->setIfExists('trustedShopper', $data ?? [], null); @@ -1861,7 +1868,7 @@ public function getReturnUrl() /** * Sets returnUrl * - * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @return self */ @@ -2382,6 +2389,30 @@ public function setThemeId($themeId) return $this; } + /** + * Gets thirdPartyTokenRedundancyInfo + * + * @return \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null + */ + public function getThirdPartyTokenRedundancyInfo() + { + return $this->container['thirdPartyTokenRedundancyInfo']; + } + + /** + * Sets thirdPartyTokenRedundancyInfo + * + * @param \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null $thirdPartyTokenRedundancyInfo thirdPartyTokenRedundancyInfo + * + * @return self + */ + public function setThirdPartyTokenRedundancyInfo($thirdPartyTokenRedundancyInfo) + { + $this->container['thirdPartyTokenRedundancyInfo'] = $thirdPartyTokenRedundancyInfo; + + return $this; + } + /** * Gets threeDS2RequestData * diff --git a/src/Adyen/Model/Checkout/CreateOrderRequest.php b/src/Adyen/Model/Checkout/CreateOrderRequest.php index 2360298e4..8bf3971c8 100644 --- a/src/Adyen/Model/Checkout/CreateOrderRequest.php +++ b/src/Adyen/Model/Checkout/CreateOrderRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/CreateOrderResponse.php b/src/Adyen/Model/Checkout/CreateOrderResponse.php index 8eca7e17a..de57d2c76 100644 --- a/src/Adyen/Model/Checkout/CreateOrderResponse.php +++ b/src/Adyen/Model/Checkout/CreateOrderResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DBaraiDetails.php b/src/Adyen/Model/Checkout/DBaraiDetails.php new file mode 100644 index 000000000..3480c7878 --- /dev/null +++ b/src/Adyen/Model/Checkout/DBaraiDetails.php @@ -0,0 +1,561 @@ + + */ +class DBaraiDetails implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'DBaraiDetails'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'checkoutAttemptId' => 'string', + 'recurringDetailReference' => 'string', + 'sdkData' => 'string', + 'storedPaymentMethodId' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'checkoutAttemptId' => null, + 'recurringDetailReference' => null, + 'sdkData' => null, + 'storedPaymentMethodId' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'checkoutAttemptId' => false, + 'recurringDetailReference' => false, + 'sdkData' => false, + 'storedPaymentMethodId' => false, + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'checkoutAttemptId' => 'checkoutAttemptId', + 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', + 'storedPaymentMethodId' => 'storedPaymentMethodId', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const TYPE_DBARAI = 'dbarai'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_DBARAI, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets checkoutAttemptId + * + * @return string|null + */ + public function getCheckoutAttemptId() + { + return $this->container['checkoutAttemptId']; + } + + /** + * Sets checkoutAttemptId + * + * @param string|null $checkoutAttemptId The checkout attempt identifier. + * + * @return self + */ + public function setCheckoutAttemptId($checkoutAttemptId) + { + $this->container['checkoutAttemptId'] = $checkoutAttemptId; + + return $this; + } + + /** + * Gets recurringDetailReference + * + * @return string|null + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function getRecurringDetailReference() + { + return $this->container['recurringDetailReference']; + } + + /** + * Sets recurringDetailReference + * + * @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function setRecurringDetailReference($recurringDetailReference) + { + $this->container['recurringDetailReference'] = $recurringDetailReference; + + return $this; + } + + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type **dbarai** + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + error_log( + sprintf( + "type: unexpected enum value '%s' - Supported values are [%s]", + $type, + implode(', ', $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/DeliveryAddress.php b/src/Adyen/Model/Checkout/DeliveryAddress.php index f41cc0a7f..a5f627bd6 100644 --- a/src/Adyen/Model/Checkout/DeliveryAddress.php +++ b/src/Adyen/Model/Checkout/DeliveryAddress.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DeliveryMethod.php b/src/Adyen/Model/Checkout/DeliveryMethod.php index 608fe43a9..66f1f19f6 100644 --- a/src/Adyen/Model/Checkout/DeliveryMethod.php +++ b/src/Adyen/Model/Checkout/DeliveryMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Destination.php b/src/Adyen/Model/Checkout/Destination.php index 7e8ac6470..14c0105d4 100644 --- a/src/Adyen/Model/Checkout/Destination.php +++ b/src/Adyen/Model/Checkout/Destination.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -300,7 +300,7 @@ public function getCountryCode() /** * Sets countryCode * - * @param string|null $countryCode The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) or three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Min length: 2 characters * Max length: 3 characters + * @param string|null $countryCode The two-letter [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) or three-letter [ISO 3166-1 alpha-3 country code](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-3) for the destination address. * Encoding: ASCII * Min length: 2 characters * Max length: 3 characters * **additionalData key:** `enhancedSchemeData.destinationCountryCode` * * @return self */ @@ -324,7 +324,7 @@ public function getPostalCode() /** * Sets postalCode * - * @param string|null $postalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param string|null $postalCode The postal code of the destination address. * Encoding: ASCII * Max length: 10 characters * Must not start with a space. * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * **additionalData key:** `enhancedSchemeData.destinationPostalCode` * * @return self */ @@ -348,7 +348,7 @@ public function getStateOrProvince() /** * Sets stateOrProvince * - * @param string|null $stateOrProvince The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. + * @param string|null $stateOrProvince The state or province code of the destination address. * Encoding: ASCII * Max length: 3 characters * Must not start with a space. * **additionalData key:** `enhancedSchemeData.destinationStateProvinceCode` * * @return self */ diff --git a/src/Adyen/Model/Checkout/DetailsRequestAuthenticationData.php b/src/Adyen/Model/Checkout/DetailsRequestAuthenticationData.php index 7b576067b..34add98d0 100644 --- a/src/Adyen/Model/Checkout/DetailsRequestAuthenticationData.php +++ b/src/Adyen/Model/Checkout/DetailsRequestAuthenticationData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DeviceRenderOptions.php b/src/Adyen/Model/Checkout/DeviceRenderOptions.php index 92992ccb0..912971510 100644 --- a/src/Adyen/Model/Checkout/DeviceRenderOptions.php +++ b/src/Adyen/Model/Checkout/DeviceRenderOptions.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DirectDebitAuDetails.php b/src/Adyen/Model/Checkout/DirectDebitAuDetails.php index b73f4d8e3..071b63210 100644 --- a/src/Adyen/Model/Checkout/DirectDebitAuDetails.php +++ b/src/Adyen/Model/Checkout/DirectDebitAuDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -319,6 +319,9 @@ public function listInvalidProperties() { $invalidProperties = []; + if ($this->container['holderName'] === null) { + $invalidProperties[] = "'holderName' can't be null"; + } $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -418,7 +421,7 @@ public function setCheckoutAttemptId($checkoutAttemptId) /** * Gets holderName * - * @return string|null + * @return string */ public function getHolderName() { @@ -428,7 +431,7 @@ public function getHolderName() /** * Sets holderName * - * @param string|null $holderName The name of the bank account holder. + * @param string $holderName The name of the bank account holder. * * @return self */ diff --git a/src/Adyen/Model/Checkout/DokuDetails.php b/src/Adyen/Model/Checkout/DokuDetails.php index 6ec0d831b..b63c9dc20 100644 --- a/src/Adyen/Model/Checkout/DokuDetails.php +++ b/src/Adyen/Model/Checkout/DokuDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Donation.php b/src/Adyen/Model/Checkout/Donation.php index a0e71734d..cb94c5c3a 100644 --- a/src/Adyen/Model/Checkout/Donation.php +++ b/src/Adyen/Model/Checkout/Donation.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -289,9 +289,6 @@ public function listInvalidProperties() if ($this->container['currency'] === null) { $invalidProperties[] = "'currency' can't be null"; } - if ($this->container['donationType'] === null) { - $invalidProperties[] = "'donationType' can't be null"; - } if ($this->container['type'] === null) { $invalidProperties[] = "'type' can't be null"; } @@ -337,7 +334,8 @@ public function setCurrency($currency) /** * Gets donationType * - * @return string + * @return string|null + * @deprecated since Adyen Checkout API v72. "Use `type` instead." */ public function getDonationType() { @@ -347,9 +345,10 @@ public function getDonationType() /** * Sets donationType * - * @param string $donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. + * @param string|null $donationType The [type of donation](https://docs.adyen.com/online-payments/donations/#donation-types). Possible values: * **roundup**: a donation where the original transaction amount is rounded up as a donation. * **fixedAmounts**: a donation where you show fixed donations amounts that the shopper can select from. * * @return self + * @deprecated since Adyen Checkout API v72. "Use `type` instead." */ public function setDonationType($donationType) { diff --git a/src/Adyen/Model/Checkout/DonationCampaign.php b/src/Adyen/Model/Checkout/DonationCampaign.php index 32cf74ab4..5d14f80d1 100644 --- a/src/Adyen/Model/Checkout/DonationCampaign.php +++ b/src/Adyen/Model/Checkout/DonationCampaign.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DonationCampaignsRequest.php b/src/Adyen/Model/Checkout/DonationCampaignsRequest.php index 4e2e4dc66..ae9e0f25e 100644 --- a/src/Adyen/Model/Checkout/DonationCampaignsRequest.php +++ b/src/Adyen/Model/Checkout/DonationCampaignsRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,6 +42,7 @@ class DonationCampaignsRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPITypes = [ 'currency' => 'string', + 'label' => 'string', 'locale' => 'string', 'merchantAccount' => 'string', 'store' => 'string' @@ -56,6 +57,7 @@ class DonationCampaignsRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPIFormats = [ 'currency' => null, + 'label' => null, 'locale' => null, 'merchantAccount' => null, 'store' => null @@ -68,6 +70,7 @@ class DonationCampaignsRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPINullables = [ 'currency' => false, + 'label' => false, 'locale' => false, 'merchantAccount' => false, 'store' => false @@ -160,6 +163,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'currency' => 'currency', + 'label' => 'label', 'locale' => 'locale', 'merchantAccount' => 'merchantAccount', 'store' => 'store' @@ -172,6 +176,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'currency' => 'setCurrency', + 'label' => 'setLabel', 'locale' => 'setLocale', 'merchantAccount' => 'setMerchantAccount', 'store' => 'setStore' @@ -184,6 +189,7 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'currency' => 'getCurrency', + 'label' => 'getLabel', 'locale' => 'getLocale', 'merchantAccount' => 'getMerchantAccount', 'store' => 'getStore' @@ -247,6 +253,7 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('currency', $data ?? [], null); + $this->setIfExists('label', $data ?? [], null); $this->setIfExists('locale', $data ?? [], null); $this->setIfExists('merchantAccount', $data ?? [], null); $this->setIfExists('store', $data ?? [], null); @@ -324,6 +331,30 @@ public function setCurrency($currency) return $this; } + /** + * Gets label + * + * @return string|null + */ + public function getLabel() + { + return $this->container['label']; + } + + /** + * Sets label + * + * @param string|null $label The label that is assigned to the donation campaign. + * + * @return self + */ + public function setLabel($label) + { + $this->container['label'] = $label; + + return $this; + } + /** * Gets locale * diff --git a/src/Adyen/Model/Checkout/DonationCampaignsResponse.php b/src/Adyen/Model/Checkout/DonationCampaignsResponse.php index e07e8465b..dee0ca430 100644 --- a/src/Adyen/Model/Checkout/DonationCampaignsResponse.php +++ b/src/Adyen/Model/Checkout/DonationCampaignsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DonationPaymentMethod.php b/src/Adyen/Model/Checkout/DonationPaymentMethod.php index c17754365..81b962a05 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentMethod.php +++ b/src/Adyen/Model/Checkout/DonationPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -28,7 +28,7 @@ */ class DonationPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializable { - public const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'type'; /** * The original name of the model. @@ -447,6 +447,9 @@ public function __construct(?array $data = null) $this->setIfExists('googlePayCardNetwork', $data ?? [], null); $this->setIfExists('googlePayToken', $data ?? [], null); $this->setIfExists('issuer', $data ?? [], null); + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; } /** @@ -658,7 +661,7 @@ public function getType() /** * Sets type * - * @param string|null $type **paywithgoogle** + * @param string|null $type **sepadirectdebit** * * @return self */ diff --git a/src/Adyen/Model/Checkout/DonationPaymentRequest.php b/src/Adyen/Model/Checkout/DonationPaymentRequest.php index b61259350..7973e2293 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentRequest.php +++ b/src/Adyen/Model/Checkout/DonationPaymentRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,7 +42,6 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'accountInfo' => '\Adyen\Model\Checkout\AccountInfo', - 'additionalData' => 'array', 'amount' => '\Adyen\Model\Checkout\Amount', 'applicationInfo' => '\Adyen\Model\Checkout\ApplicationInfo', 'authenticationData' => '\Adyen\Model\Checkout\AuthenticationData', @@ -50,10 +49,8 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'browserInfo' => '\Adyen\Model\Checkout\BrowserInfo', 'channel' => 'string', 'checkoutAttemptId' => 'string', - 'conversionId' => 'string', 'countryCode' => 'string', 'dateOfBirth' => '\DateTime', - 'deliverAt' => '\DateTime', 'deliveryAddress' => '\Adyen\Model\Checkout\DeliveryAddress', 'deviceFingerprint' => 'string', 'donationAccount' => 'string', @@ -82,8 +79,7 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'socialSecurityNumber' => 'string', 'store' => 'string', 'telephoneNumber' => 'string', - 'threeDS2RequestData' => '\Adyen\Model\Checkout\ThreeDS2RequestFields', - 'threeDSAuthenticationOnly' => 'bool' + 'threeDS2RequestData' => '\Adyen\Model\Checkout\ThreeDS2RequestFields' ]; /** @@ -95,7 +91,6 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPIFormats = [ 'accountInfo' => null, - 'additionalData' => null, 'amount' => null, 'applicationInfo' => null, 'authenticationData' => null, @@ -103,10 +98,8 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'browserInfo' => null, 'channel' => null, 'checkoutAttemptId' => null, - 'conversionId' => null, 'countryCode' => null, 'dateOfBirth' => 'date-time', - 'deliverAt' => 'date-time', 'deliveryAddress' => null, 'deviceFingerprint' => null, 'donationAccount' => null, @@ -135,8 +128,7 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'socialSecurityNumber' => null, 'store' => null, 'telephoneNumber' => null, - 'threeDS2RequestData' => null, - 'threeDSAuthenticationOnly' => null + 'threeDS2RequestData' => null ]; /** @@ -146,7 +138,6 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPINullables = [ 'accountInfo' => false, - 'additionalData' => false, 'amount' => false, 'applicationInfo' => false, 'authenticationData' => false, @@ -154,10 +145,8 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'browserInfo' => false, 'channel' => false, 'checkoutAttemptId' => false, - 'conversionId' => false, 'countryCode' => false, 'dateOfBirth' => false, - 'deliverAt' => false, 'deliveryAddress' => false, 'deviceFingerprint' => false, 'donationAccount' => false, @@ -186,8 +175,7 @@ class DonationPaymentRequest implements ModelInterface, ArrayAccess, \JsonSerial 'socialSecurityNumber' => false, 'store' => false, 'telephoneNumber' => false, - 'threeDS2RequestData' => false, - 'threeDSAuthenticationOnly' => false + 'threeDS2RequestData' => false ]; /** @@ -277,7 +265,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'accountInfo' => 'accountInfo', - 'additionalData' => 'additionalData', 'amount' => 'amount', 'applicationInfo' => 'applicationInfo', 'authenticationData' => 'authenticationData', @@ -285,10 +272,8 @@ public function isNullableSetToNull(string $property): bool 'browserInfo' => 'browserInfo', 'channel' => 'channel', 'checkoutAttemptId' => 'checkoutAttemptId', - 'conversionId' => 'conversionId', 'countryCode' => 'countryCode', 'dateOfBirth' => 'dateOfBirth', - 'deliverAt' => 'deliverAt', 'deliveryAddress' => 'deliveryAddress', 'deviceFingerprint' => 'deviceFingerprint', 'donationAccount' => 'donationAccount', @@ -317,8 +302,7 @@ public function isNullableSetToNull(string $property): bool 'socialSecurityNumber' => 'socialSecurityNumber', 'store' => 'store', 'telephoneNumber' => 'telephoneNumber', - 'threeDS2RequestData' => 'threeDS2RequestData', - 'threeDSAuthenticationOnly' => 'threeDSAuthenticationOnly' + 'threeDS2RequestData' => 'threeDS2RequestData' ]; /** @@ -328,7 +312,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'accountInfo' => 'setAccountInfo', - 'additionalData' => 'setAdditionalData', 'amount' => 'setAmount', 'applicationInfo' => 'setApplicationInfo', 'authenticationData' => 'setAuthenticationData', @@ -336,10 +319,8 @@ public function isNullableSetToNull(string $property): bool 'browserInfo' => 'setBrowserInfo', 'channel' => 'setChannel', 'checkoutAttemptId' => 'setCheckoutAttemptId', - 'conversionId' => 'setConversionId', 'countryCode' => 'setCountryCode', 'dateOfBirth' => 'setDateOfBirth', - 'deliverAt' => 'setDeliverAt', 'deliveryAddress' => 'setDeliveryAddress', 'deviceFingerprint' => 'setDeviceFingerprint', 'donationAccount' => 'setDonationAccount', @@ -368,8 +349,7 @@ public function isNullableSetToNull(string $property): bool 'socialSecurityNumber' => 'setSocialSecurityNumber', 'store' => 'setStore', 'telephoneNumber' => 'setTelephoneNumber', - 'threeDS2RequestData' => 'setThreeDS2RequestData', - 'threeDSAuthenticationOnly' => 'setThreeDSAuthenticationOnly' + 'threeDS2RequestData' => 'setThreeDS2RequestData' ]; /** @@ -379,7 +359,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'accountInfo' => 'getAccountInfo', - 'additionalData' => 'getAdditionalData', 'amount' => 'getAmount', 'applicationInfo' => 'getApplicationInfo', 'authenticationData' => 'getAuthenticationData', @@ -387,10 +366,8 @@ public function isNullableSetToNull(string $property): bool 'browserInfo' => 'getBrowserInfo', 'channel' => 'getChannel', 'checkoutAttemptId' => 'getCheckoutAttemptId', - 'conversionId' => 'getConversionId', 'countryCode' => 'getCountryCode', 'dateOfBirth' => 'getDateOfBirth', - 'deliverAt' => 'getDeliverAt', 'deliveryAddress' => 'getDeliveryAddress', 'deviceFingerprint' => 'getDeviceFingerprint', 'donationAccount' => 'getDonationAccount', @@ -419,8 +396,7 @@ public function isNullableSetToNull(string $property): bool 'socialSecurityNumber' => 'getSocialSecurityNumber', 'store' => 'getStore', 'telephoneNumber' => 'getTelephoneNumber', - 'threeDS2RequestData' => 'getThreeDS2RequestData', - 'threeDSAuthenticationOnly' => 'getThreeDSAuthenticationOnly' + 'threeDS2RequestData' => 'getThreeDS2RequestData' ]; /** @@ -531,7 +507,6 @@ public function getShopperInteractionAllowableValues() public function __construct(?array $data = null) { $this->setIfExists('accountInfo', $data ?? [], null); - $this->setIfExists('additionalData', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('applicationInfo', $data ?? [], null); $this->setIfExists('authenticationData', $data ?? [], null); @@ -539,10 +514,8 @@ public function __construct(?array $data = null) $this->setIfExists('browserInfo', $data ?? [], null); $this->setIfExists('channel', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); - $this->setIfExists('conversionId', $data ?? [], null); $this->setIfExists('countryCode', $data ?? [], null); $this->setIfExists('dateOfBirth', $data ?? [], null); - $this->setIfExists('deliverAt', $data ?? [], null); $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('deviceFingerprint', $data ?? [], null); $this->setIfExists('donationAccount', $data ?? [], null); @@ -572,7 +545,6 @@ public function __construct(?array $data = null) $this->setIfExists('store', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); $this->setIfExists('threeDS2RequestData', $data ?? [], null); - $this->setIfExists('threeDSAuthenticationOnly', $data ?? [], null); } /** @@ -680,30 +652,6 @@ public function setAccountInfo($accountInfo) return $this; } - /** - * Gets additionalData - * - * @return array|null - */ - public function getAdditionalData() - { - return $this->container['additionalData']; - } - - /** - * Sets additionalData - * - * @param array|null $additionalData This field contains additional data, which may be required for a particular payment request. The `additionalData` object consists of entries, each of which includes the key and value. - * - * @return self - */ - public function setAdditionalData($additionalData) - { - $this->container['additionalData'] = $additionalData; - - return $this; - } - /** * Gets amount * @@ -882,32 +830,6 @@ public function setCheckoutAttemptId($checkoutAttemptId) return $this; } - /** - * Gets conversionId - * - * @return string|null - * @deprecated since Adyen Checkout API v68. "Use `checkoutAttemptId` instead" - */ - public function getConversionId() - { - return $this->container['conversionId']; - } - - /** - * Sets conversionId - * - * @param string|null $conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * - * @return self - * @deprecated since Adyen Checkout API v68. "Use `checkoutAttemptId` instead" - */ - public function setConversionId($conversionId) - { - $this->container['conversionId'] = $conversionId; - - return $this; - } - /** * Gets countryCode * @@ -956,30 +878,6 @@ public function setDateOfBirth($dateOfBirth) return $this; } - /** - * Gets deliverAt - * - * @return \DateTime|null - */ - public function getDeliverAt() - { - return $this->container['deliverAt']; - } - - /** - * Sets deliverAt - * - * @param \DateTime|null $deliverAt The date and time the purchased goods should be delivered. Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): YYYY-MM-DDThh:mm:ss.sssTZD Example: 2017-07-17T13:42:40.428+01:00 - * - * @return self - */ - public function setDeliverAt($deliverAt) - { - $this->container['deliverAt'] = $deliverAt; - - return $this; - } - /** * Gets deliveryAddress * @@ -1411,7 +1309,7 @@ public function getReturnUrl() /** * Sets returnUrl * - * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @return self */ @@ -1695,32 +1593,6 @@ public function setThreeDS2RequestData($threeDS2RequestData) return $this; } - - /** - * Gets threeDSAuthenticationOnly - * - * @return bool|null - * @deprecated since Adyen Checkout API v69. "Use `authenticationData.authenticationOnly` instead." - */ - public function getThreeDSAuthenticationOnly() - { - return $this->container['threeDSAuthenticationOnly']; - } - - /** - * Sets threeDSAuthenticationOnly - * - * @param bool|null $threeDSAuthenticationOnly Required to trigger the [authentication-only flow](https://docs.adyen.com/online-payments/3d-secure/authentication-only/). If set to **true**, you will only perform the 3D Secure 2 authentication, and will not proceed to the payment authorization.Default: **false**. - * - * @return self - * @deprecated since Adyen Checkout API v69. "Use `authenticationData.authenticationOnly` instead." - */ - public function setThreeDSAuthenticationOnly($threeDSAuthenticationOnly) - { - $this->container['threeDSAuthenticationOnly'] = $threeDSAuthenticationOnly; - - return $this; - } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Checkout/DonationPaymentResponse.php b/src/Adyen/Model/Checkout/DonationPaymentResponse.php index b15df7d05..1b18f9f0d 100644 --- a/src/Adyen/Model/Checkout/DonationPaymentResponse.php +++ b/src/Adyen/Model/Checkout/DonationPaymentResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/DragonpayDetails.php b/src/Adyen/Model/Checkout/DragonpayDetails.php index 48347ac0c..8883b3164 100644 --- a/src/Adyen/Model/Checkout/DragonpayDetails.php +++ b/src/Adyen/Model/Checkout/DragonpayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/EBankingFinlandDetails.php b/src/Adyen/Model/Checkout/EBankingFinlandDetails.php index 3b5c6960d..29e7ed198 100644 --- a/src/Adyen/Model/Checkout/EBankingFinlandDetails.php +++ b/src/Adyen/Model/Checkout/EBankingFinlandDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/EcontextVoucherDetails.php b/src/Adyen/Model/Checkout/EcontextVoucherDetails.php index b226ff073..9f1dbcd14 100644 --- a/src/Adyen/Model/Checkout/EcontextVoucherDetails.php +++ b/src/Adyen/Model/Checkout/EcontextVoucherDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/EftDetails.php b/src/Adyen/Model/Checkout/EftDetails.php index f2f535e3b..c8d7d32f7 100644 --- a/src/Adyen/Model/Checkout/EftDetails.php +++ b/src/Adyen/Model/Checkout/EftDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/EncryptedOrderData.php b/src/Adyen/Model/Checkout/EncryptedOrderData.php index 30ac5824c..0fa334d8a 100644 --- a/src/Adyen/Model/Checkout/EncryptedOrderData.php +++ b/src/Adyen/Model/Checkout/EncryptedOrderData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/EnhancedSchemeData.php b/src/Adyen/Model/Checkout/EnhancedSchemeData.php index bd7f471d4..05d8b9a19 100644 --- a/src/Adyen/Model/Checkout/EnhancedSchemeData.php +++ b/src/Adyen/Model/Checkout/EnhancedSchemeData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,7 +42,11 @@ class EnhancedSchemeData implements ModelInterface, ArrayAccess, \JsonSerializab */ protected static $openAPITypes = [ 'airline' => '\Adyen\Model\Checkout\Airline', - 'levelTwoThree' => '\Adyen\Model\Checkout\LevelTwoThree' + 'carRental' => '\Adyen\Model\Checkout\CarRental', + 'healthcare' => '\Adyen\Model\Checkout\Healthcare', + 'levelTwoThree' => '\Adyen\Model\Checkout\LevelTwoThree', + 'lodging' => '\Adyen\Model\Checkout\Lodging', + 'temporaryServices' => '\Adyen\Model\Checkout\TemporaryServices' ]; /** @@ -54,7 +58,11 @@ class EnhancedSchemeData implements ModelInterface, ArrayAccess, \JsonSerializab */ protected static $openAPIFormats = [ 'airline' => null, - 'levelTwoThree' => null + 'carRental' => null, + 'healthcare' => null, + 'levelTwoThree' => null, + 'lodging' => null, + 'temporaryServices' => null ]; /** @@ -64,7 +72,11 @@ class EnhancedSchemeData implements ModelInterface, ArrayAccess, \JsonSerializab */ protected static $openAPINullables = [ 'airline' => false, - 'levelTwoThree' => false + 'carRental' => false, + 'healthcare' => false, + 'levelTwoThree' => false, + 'lodging' => false, + 'temporaryServices' => false ]; /** @@ -154,7 +166,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'airline' => 'airline', - 'levelTwoThree' => 'levelTwoThree' + 'carRental' => 'carRental', + 'healthcare' => 'healthcare', + 'levelTwoThree' => 'levelTwoThree', + 'lodging' => 'lodging', + 'temporaryServices' => 'temporaryServices' ]; /** @@ -164,7 +180,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'airline' => 'setAirline', - 'levelTwoThree' => 'setLevelTwoThree' + 'carRental' => 'setCarRental', + 'healthcare' => 'setHealthcare', + 'levelTwoThree' => 'setLevelTwoThree', + 'lodging' => 'setLodging', + 'temporaryServices' => 'setTemporaryServices' ]; /** @@ -174,7 +194,11 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'airline' => 'getAirline', - 'levelTwoThree' => 'getLevelTwoThree' + 'carRental' => 'getCarRental', + 'healthcare' => 'getHealthcare', + 'levelTwoThree' => 'getLevelTwoThree', + 'lodging' => 'getLodging', + 'temporaryServices' => 'getTemporaryServices' ]; /** @@ -235,7 +259,11 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('airline', $data ?? [], null); + $this->setIfExists('carRental', $data ?? [], null); + $this->setIfExists('healthcare', $data ?? [], null); $this->setIfExists('levelTwoThree', $data ?? [], null); + $this->setIfExists('lodging', $data ?? [], null); + $this->setIfExists('temporaryServices', $data ?? [], null); } /** @@ -304,6 +332,54 @@ public function setAirline($airline) return $this; } + /** + * Gets carRental + * + * @return \Adyen\Model\Checkout\CarRental|null + */ + public function getCarRental() + { + return $this->container['carRental']; + } + + /** + * Sets carRental + * + * @param \Adyen\Model\Checkout\CarRental|null $carRental carRental + * + * @return self + */ + public function setCarRental($carRental) + { + $this->container['carRental'] = $carRental; + + return $this; + } + + /** + * Gets healthcare + * + * @return \Adyen\Model\Checkout\Healthcare|null + */ + public function getHealthcare() + { + return $this->container['healthcare']; + } + + /** + * Sets healthcare + * + * @param \Adyen\Model\Checkout\Healthcare|null $healthcare healthcare + * + * @return self + */ + public function setHealthcare($healthcare) + { + $this->container['healthcare'] = $healthcare; + + return $this; + } + /** * Gets levelTwoThree * @@ -327,6 +403,54 @@ public function setLevelTwoThree($levelTwoThree) return $this; } + + /** + * Gets lodging + * + * @return \Adyen\Model\Checkout\Lodging|null + */ + public function getLodging() + { + return $this->container['lodging']; + } + + /** + * Sets lodging + * + * @param \Adyen\Model\Checkout\Lodging|null $lodging lodging + * + * @return self + */ + public function setLodging($lodging) + { + $this->container['lodging'] = $lodging; + + return $this; + } + + /** + * Gets temporaryServices + * + * @return \Adyen\Model\Checkout\TemporaryServices|null + */ + public function getTemporaryServices() + { + return $this->container['temporaryServices']; + } + + /** + * Sets temporaryServices + * + * @param \Adyen\Model\Checkout\TemporaryServices|null $temporaryServices temporaryServices + * + * @return self + */ + public function setTemporaryServices($temporaryServices) + { + $this->container['temporaryServices'] = $temporaryServices; + + return $this; + } /** * Returns true if offset exists. False otherwise. * diff --git a/src/Adyen/Model/Checkout/ExternalPlatform.php b/src/Adyen/Model/Checkout/ExternalPlatform.php index 5b1854d82..a31c1d893 100644 --- a/src/Adyen/Model/Checkout/ExternalPlatform.php +++ b/src/Adyen/Model/Checkout/ExternalPlatform.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ExternalTokenDetails.php b/src/Adyen/Model/Checkout/ExternalTokenDetails.php index 057954f10..4b9eed64b 100644 --- a/src/Adyen/Model/Checkout/ExternalTokenDetails.php +++ b/src/Adyen/Model/Checkout/ExternalTokenDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/FastlaneDetails.php b/src/Adyen/Model/Checkout/FastlaneDetails.php index 35ae24822..ba0b6bf04 100644 --- a/src/Adyen/Model/Checkout/FastlaneDetails.php +++ b/src/Adyen/Model/Checkout/FastlaneDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Folio.php b/src/Adyen/Model/Checkout/Folio.php new file mode 100644 index 000000000..c132fcb2b --- /dev/null +++ b/src/Adyen/Model/Checkout/Folio.php @@ -0,0 +1,435 @@ + + */ +class Folio implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Folio'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'cashAdvances' => 'int', + 'number' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'cashAdvances' => 'int64', + 'number' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'cashAdvances' => false, + 'number' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'cashAdvances' => 'cashAdvances', + 'number' => 'number' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'cashAdvances' => 'setCashAdvances', + 'number' => 'setNumber' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'cashAdvances' => 'getCashAdvances', + 'number' => 'getNumber' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('cashAdvances', $data ?? [], null); + $this->setIfExists('number', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets cashAdvances + * + * @return int|null + */ + public function getCashAdvances() + { + return $this->container['cashAdvances']; + } + + /** + * Sets cashAdvances + * + * @param int|null $cashAdvances The folio cash advances, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.folioCashAdvances` + * + * @return self + */ + public function setCashAdvances($cashAdvances) + { + $this->container['cashAdvances'] = $cashAdvances; + + return $this; + } + + /** + * Gets number + * + * @return string|null + */ + public function getNumber() + { + return $this->container['number']; + } + + /** + * Sets number + * + * @param string|null $number The card acceptor's internal invoice or billing ID reference number. * Format: Alphanumeric * Must not start with a space * Must not contain any special characters * Must not be all zeros. * **additionalData key:** `lodging.folioNumber` + * + * @return self + */ + public function setNumber($number) + { + $this->container['number'] = $number; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ForexQuote.php b/src/Adyen/Model/Checkout/ForexQuote.php index 99fa28bcc..304761053 100644 --- a/src/Adyen/Model/Checkout/ForexQuote.php +++ b/src/Adyen/Model/Checkout/ForexQuote.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/FraudCheckResult.php b/src/Adyen/Model/Checkout/FraudCheckResult.php index 49b404e65..f2ab6c121 100644 --- a/src/Adyen/Model/Checkout/FraudCheckResult.php +++ b/src/Adyen/Model/Checkout/FraudCheckResult.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/FraudResult.php b/src/Adyen/Model/Checkout/FraudResult.php index b0e802fbb..92d6a1a1f 100644 --- a/src/Adyen/Model/Checkout/FraudResult.php +++ b/src/Adyen/Model/Checkout/FraudResult.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/FundOrigin.php b/src/Adyen/Model/Checkout/FundOrigin.php index c4097fd67..0c517da1a 100644 --- a/src/Adyen/Model/Checkout/FundOrigin.php +++ b/src/Adyen/Model/Checkout/FundOrigin.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/FundRecipient.php b/src/Adyen/Model/Checkout/FundRecipient.php index 4a3a85c1f..78337e7c8 100644 --- a/src/Adyen/Model/Checkout/FundRecipient.php +++ b/src/Adyen/Model/Checkout/FundRecipient.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php b/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php index e4f53cbc6..dee3ad1a8 100644 --- a/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php +++ b/src/Adyen/Model/Checkout/GenericIssuerPaymentMethodDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/GooglePayDetails.php b/src/Adyen/Model/Checkout/GooglePayDetails.php index b157d7e90..ba7979060 100644 --- a/src/Adyen/Model/Checkout/GooglePayDetails.php +++ b/src/Adyen/Model/Checkout/GooglePayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/GooglePayDonations.php b/src/Adyen/Model/Checkout/GooglePayDonations.php index 7c60b06e4..5a17eaf8f 100644 --- a/src/Adyen/Model/Checkout/GooglePayDonations.php +++ b/src/Adyen/Model/Checkout/GooglePayDonations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Healthcare.php b/src/Adyen/Model/Checkout/Healthcare.php new file mode 100644 index 000000000..0a5dcc1aa --- /dev/null +++ b/src/Adyen/Model/Checkout/Healthcare.php @@ -0,0 +1,531 @@ + + */ +class Healthcare implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Healthcare'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'dentalValue' => 'int', + 'otherMedicalValue' => 'int', + 'prescriptionValue' => 'int', + 'totalHealthcareValue' => 'int', + 'visionPrescriptionValue' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'dentalValue' => 'int64', + 'otherMedicalValue' => 'int64', + 'prescriptionValue' => 'int64', + 'totalHealthcareValue' => 'int64', + 'visionPrescriptionValue' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'dentalValue' => false, + 'otherMedicalValue' => false, + 'prescriptionValue' => false, + 'totalHealthcareValue' => false, + 'visionPrescriptionValue' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'dentalValue' => 'dentalValue', + 'otherMedicalValue' => 'otherMedicalValue', + 'prescriptionValue' => 'prescriptionValue', + 'totalHealthcareValue' => 'totalHealthcareValue', + 'visionPrescriptionValue' => 'visionPrescriptionValue' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'dentalValue' => 'setDentalValue', + 'otherMedicalValue' => 'setOtherMedicalValue', + 'prescriptionValue' => 'setPrescriptionValue', + 'totalHealthcareValue' => 'setTotalHealthcareValue', + 'visionPrescriptionValue' => 'setVisionPrescriptionValue' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'dentalValue' => 'getDentalValue', + 'otherMedicalValue' => 'getOtherMedicalValue', + 'prescriptionValue' => 'getPrescriptionValue', + 'totalHealthcareValue' => 'getTotalHealthcareValue', + 'visionPrescriptionValue' => 'getVisionPrescriptionValue' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('dentalValue', $data ?? [], null); + $this->setIfExists('otherMedicalValue', $data ?? [], null); + $this->setIfExists('prescriptionValue', $data ?? [], null); + $this->setIfExists('totalHealthcareValue', $data ?? [], null); + $this->setIfExists('visionPrescriptionValue', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['totalHealthcareValue'] === null) { + $invalidProperties[] = "'totalHealthcareValue' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets dentalValue + * + * @return int|null + */ + public function getDentalValue() + { + return $this->container['dentalValue']; + } + + /** + * Sets dentalValue + * + * @param int|null $dentalValue The dental amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * + * @return self + */ + public function setDentalValue($dentalValue) + { + $this->container['dentalValue'] = $dentalValue; + + return $this; + } + + /** + * Gets otherMedicalValue + * + * @return int|null + */ + public function getOtherMedicalValue() + { + return $this->container['otherMedicalValue']; + } + + /** + * Sets otherMedicalValue + * + * @param int|null $otherMedicalValue The other medical amount not covered by the specific categories, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * + * @return self + */ + public function setOtherMedicalValue($otherMedicalValue) + { + $this->container['otherMedicalValue'] = $otherMedicalValue; + + return $this; + } + + /** + * Gets prescriptionValue + * + * @return int|null + */ + public function getPrescriptionValue() + { + return $this->container['prescriptionValue']; + } + + /** + * Sets prescriptionValue + * + * @param int|null $prescriptionValue The prescription/Rx amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * + * @return self + */ + public function setPrescriptionValue($prescriptionValue) + { + $this->container['prescriptionValue'] = $prescriptionValue; + + return $this; + } + + /** + * Gets totalHealthcareValue + * + * @return int + */ + public function getTotalHealthcareValue() + { + return $this->container['totalHealthcareValue']; + } + + /** + * Sets totalHealthcareValue + * + * @param int $totalHealthcareValue The total healthcare amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * + * @return self + */ + public function setTotalHealthcareValue($totalHealthcareValue) + { + $this->container['totalHealthcareValue'] = $totalHealthcareValue; + + return $this; + } + + /** + * Gets visionPrescriptionValue + * + * @return int|null + */ + public function getVisionPrescriptionValue() + { + return $this->container['visionPrescriptionValue']; + } + + /** + * Sets visionPrescriptionValue + * + * @param int|null $visionPrescriptionValue The vision/optical prescription amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * + * @return self + */ + public function setVisionPrescriptionValue($visionPrescriptionValue) + { + $this->container['visionPrescriptionValue'] = $visionPrescriptionValue; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/IdealDetails.php b/src/Adyen/Model/Checkout/IdealDetails.php index ddc9c0571..33aa02e16 100644 --- a/src/Adyen/Model/Checkout/IdealDetails.php +++ b/src/Adyen/Model/Checkout/IdealDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/IdealDonations.php b/src/Adyen/Model/Checkout/IdealDonations.php index f6bdff965..0feb80141 100644 --- a/src/Adyen/Model/Checkout/IdealDonations.php +++ b/src/Adyen/Model/Checkout/IdealDonations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/InputDetail.php b/src/Adyen/Model/Checkout/InputDetail.php index c8999465a..80cd96de3 100644 --- a/src/Adyen/Model/Checkout/InputDetail.php +++ b/src/Adyen/Model/Checkout/InputDetail.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/InstallmentOption.php b/src/Adyen/Model/Checkout/InstallmentOption.php index 761db3837..ffd19bf84 100644 --- a/src/Adyen/Model/Checkout/InstallmentOption.php +++ b/src/Adyen/Model/Checkout/InstallmentOption.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Installments.php b/src/Adyen/Model/Checkout/Installments.php index ba30ddc29..7f55d75f2 100644 --- a/src/Adyen/Model/Checkout/Installments.php +++ b/src/Adyen/Model/Checkout/Installments.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Item.php b/src/Adyen/Model/Checkout/Item.php index 81dba768e..39363bd2a 100644 --- a/src/Adyen/Model/Checkout/Item.php +++ b/src/Adyen/Model/Checkout/Item.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ItemDetailLine.php b/src/Adyen/Model/Checkout/ItemDetailLine.php index 425430c7c..e63d9d105 100644 --- a/src/Adyen/Model/Checkout/ItemDetailLine.php +++ b/src/Adyen/Model/Checkout/ItemDetailLine.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -335,7 +335,7 @@ public function getCommodityCode() /** * Sets commodityCode * - * @param string|null $commodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $commodityCode The code that identifies the item in a standardized commodity coding scheme. There are different commodity coding schemes: * [UNSPSC commodity codes](https://www.ungm.org/public/unspsc) * [HS commodity codes](https://www.wcoomd.org/en/topics/nomenclature/overview.aspx) * [NAICS commodity codes](https://www.census.gov/naics/) * [NAPCS commodity codes](https://www.census.gov/naics/napcs/) * Encoding: ASCII * Max length: 12 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].commodityCode` * * @return self */ @@ -359,7 +359,7 @@ public function getDescription() /** * Sets description * - * @param string|null $description A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $description A description of the item, that provides details about the purchase. For Visa transactions with level 3 ESD, the description must not be the same or very similar to your merchant name, or, consist only of common words like \"product\", or \"service\". * Encoding: ASCII * Max length: 26 characters * Must not be a single character. * Must not be blank. * Must not be all special characters. * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].description` * * @return self */ @@ -383,7 +383,7 @@ public function getDiscountAmount() /** * Sets discountAmount * - * @param int|null $discountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * @param int|null $discountAmount The discount amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].discountAmount` * * @return self */ @@ -407,7 +407,7 @@ public function getProductCode() /** * Sets productCode * - * @param string|null $productCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters + * @param string|null $productCode The product code. Must be a unique product code associated with the item or service. This can be your unique code for the item, or the manufacturer's product code. * Encoding: ASCII. * Max length: 12 characters * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].productCode` * * @return self */ @@ -431,7 +431,7 @@ public function getQuantity() /** * Sets quantity * - * @param int|null $quantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max value: 9999 + * @param int|null $quantity The number of items. Must be an integer greater than zero. * Encoding: Numeric * Max value: 9999 * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].quantity` * * @return self */ @@ -455,7 +455,7 @@ public function getTotalAmount() /** * Sets totalAmount * - * @param int|null $totalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. + * @param int|null $totalAmount The total amount for the line item, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 See [Amount requirements for level 2/3 ESD](https://docs.adyen.com//payment-methods/cards/enhanced-scheme-data/l2-l3#amount-requirements) to learn more about how to calculate the line item total. * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].totalAmount` * * @return self */ @@ -479,7 +479,7 @@ public function getUnitOfMeasure() /** * Sets unitOfMeasure * - * @param string|null $unitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters + * @param string|null $unitOfMeasure The unit of measurement for an item. * Encoding: ASCII * Max length: 3 characters * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].unitOfMeasure` * * @return self */ @@ -503,7 +503,7 @@ public function getUnitPrice() /** * Sets unitPrice * - * @param int|null $unitPrice The unit price, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * @param int|null $unitPrice The unit price, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `enhancedSchemeData.itemDetailLine[N].unitPrice` * * @return self */ diff --git a/src/Adyen/Model/Checkout/KlarnaDetails.php b/src/Adyen/Model/Checkout/KlarnaDetails.php index 0b76c47e4..02597f809 100644 --- a/src/Adyen/Model/Checkout/KlarnaDetails.php +++ b/src/Adyen/Model/Checkout/KlarnaDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -44,6 +44,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'billingAddress' => 'string', 'checkoutAttemptId' => 'string', 'deliveryAddress' => 'string', + 'merchantData' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', 'sdkData' => 'string', @@ -63,6 +64,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'billingAddress' => null, 'checkoutAttemptId' => null, 'deliveryAddress' => null, + 'merchantData' => null, 'personalDetails' => null, 'recurringDetailReference' => null, 'sdkData' => null, @@ -80,6 +82,7 @@ class KlarnaDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'billingAddress' => false, 'checkoutAttemptId' => false, 'deliveryAddress' => false, + 'merchantData' => false, 'personalDetails' => false, 'recurringDetailReference' => false, 'sdkData' => false, @@ -177,6 +180,7 @@ public function isNullableSetToNull(string $property): bool 'billingAddress' => 'billingAddress', 'checkoutAttemptId' => 'checkoutAttemptId', 'deliveryAddress' => 'deliveryAddress', + 'merchantData' => 'merchantData', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', 'sdkData' => 'sdkData', @@ -194,6 +198,7 @@ public function isNullableSetToNull(string $property): bool 'billingAddress' => 'setBillingAddress', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'deliveryAddress' => 'setDeliveryAddress', + 'merchantData' => 'setMerchantData', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', 'sdkData' => 'setSdkData', @@ -211,6 +216,7 @@ public function isNullableSetToNull(string $property): bool 'billingAddress' => 'getBillingAddress', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'deliveryAddress' => 'getDeliveryAddress', + 'merchantData' => 'getMerchantData', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', 'sdkData' => 'getSdkData', @@ -303,6 +309,7 @@ public function __construct(?array $data = null) $this->setIfExists('billingAddress', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('deliveryAddress', $data ?? [], null); + $this->setIfExists('merchantData', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); $this->setIfExists('sdkData', $data ?? [], null); @@ -437,6 +444,30 @@ public function setDeliveryAddress($deliveryAddress) return $this; } + /** + * Gets merchantData + * + * @return string|null + */ + public function getMerchantData() + { + return $this->container['merchantData']; + } + + /** + * Sets merchantData + * + * @param string|null $merchantData Base64-encoded merchant metadata (Extra Merchant Data) forwarded to Klarna at authorization. + * + * @return self + */ + public function setMerchantData($merchantData) + { + $this->container['merchantData'] = $merchantData; + + return $this; + } + /** * Gets personalDetails * diff --git a/src/Adyen/Model/Checkout/KlarnaNetworkDetails.php b/src/Adyen/Model/Checkout/KlarnaNetworkDetails.php index 7c15df819..7e2ae5f72 100644 --- a/src/Adyen/Model/Checkout/KlarnaNetworkDetails.php +++ b/src/Adyen/Model/Checkout/KlarnaNetworkDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Leg.php b/src/Adyen/Model/Checkout/Leg.php index 9ff841345..205af0b41 100644 --- a/src/Adyen/Model/Checkout/Leg.php +++ b/src/Adyen/Model/Checkout/Leg.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -342,7 +342,7 @@ public function getCarrierCode() /** * Sets carrierCode * - * @param string|null $carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $carrierCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 2-letter accounting code (PAX) that identifies the carrier. This field is required if the airline data includes leg details. * Example: KLM = KL * minLength: 2 characters * maxLength: 2 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].carrier_code` * * @return self */ @@ -366,7 +366,7 @@ public function getClassOfTravel() /** * Sets classOfTravel * - * @param string|null $classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $classOfTravel A one-letter travel class identifier. The following are common: * F: first class * J: business class * Y: economy class * W: premium economy * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].class_of_travel` * * @return self */ @@ -390,7 +390,7 @@ public function getDateOfTravel() /** * Sets dateOfTravel * - * @param \DateTime|null $dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters + * @param \DateTime|null $dateOfTravel Date and time of travel in format `yyyy-MM-ddTHH:mm`. * Use local time of departure airport. * minLength: 16 characters * maxLength: 16 characters * **additionalData key:** `airline.leg[N].date_of_travel` * * @return self */ @@ -414,7 +414,7 @@ public function getDepartureAirportCode() /** * Sets departureAirportCode * - * @param string|null $departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $departureAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) three-letter airport code of the departure airport. This field is required if the airline data includes leg details. * Encoding: ASCII * Example: Amsterdam = AMS * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].depart_airport` * * @return self */ @@ -438,7 +438,7 @@ public function getDepartureTax() /** * Sets departureTax * - * @param int|null $departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. + * @param int|null $departureTax The amount of [departure tax](https://en.wikipedia.org/wiki/Departure_tax) charged, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * Encoding: Numeric * minLength: 1 * maxLength: 11 * Must not be all zeros. * **additionalData key:** `airline.leg[N].depart_tax` * * @return self */ @@ -462,7 +462,7 @@ public function getDestinationAirportCode() /** * Sets destinationAirportCode * - * @param string|null $destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $destinationAirportCode The [IATA](https://www.iata.org/services/pages/codes.aspx) 3-letter airport code of the destination airport. This field is required if the airline data includes leg details. * Example: Amsterdam = AMS * Encoding: ASCII * minLength: 3 characters * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].destination_code` * * @return self */ @@ -486,7 +486,7 @@ public function getFareBasisCode() /** * Sets fareBasisCode * - * @param string|null $fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $fareBasisCode The [fare basis code](https://en.wikipedia.org/wiki/Fare_basis_code), alphanumeric. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].fare_base_code` * * @return self */ @@ -510,7 +510,7 @@ public function getFlightNumber() /** * Sets flightNumber * - * @param string|null $flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $flightNumber The flight identifier. * minLength: 1 character * maxLength: 5 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.leg[N].flight_number` * * @return self */ @@ -534,7 +534,7 @@ public function getStopOverCode() /** * Sets stopOverCode * - * @param string|null $stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character + * @param string|null $stopOverCode A one-letter code that indicates whether the passenger is entitled to make a stopover. Can be a space, O if the passenger is entitled to make a stopover, or X if they are not. * Encoding: ASCII * minLength: 1 character * maxLength: 1 character * **additionalData key:** `airline.leg[N].stop_over_code` * * @return self */ diff --git a/src/Adyen/Model/Checkout/LevelTwoThree.php b/src/Adyen/Model/Checkout/LevelTwoThree.php index dfb34d781..fc65205b1 100644 --- a/src/Adyen/Model/Checkout/LevelTwoThree.php +++ b/src/Adyen/Model/Checkout/LevelTwoThree.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -335,7 +335,7 @@ public function getCustomerReferenceNumber() /** * Sets customerReferenceNumber * - * @param string|null $customerReferenceNumber The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $customerReferenceNumber The reference number to identify the customer and their order. * Format: ASCII * Max length: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.customerReference` * * @return self */ @@ -383,7 +383,7 @@ public function getDutyAmount() /** * Sets dutyAmount * - * @param int|null $dutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * @param int|null $dutyAmount The duty tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `enhancedSchemeData.dutyAmount` * * @return self */ @@ -407,7 +407,7 @@ public function getFreightAmount() /** * Sets freightAmount * - * @param int|null $freightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 + * @param int|null $freightAmount The shipping amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `enhancedSchemeData.freightAmount` * * @return self */ @@ -455,7 +455,7 @@ public function getOrderDate() /** * Sets orderDate * - * @param \DateTime|null $orderDate The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param \DateTime|null $orderDate The date of the order. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `enhancedSchemeData.orderDate` * * @return self */ @@ -479,7 +479,7 @@ public function getShipFromPostalCode() /** * Sets shipFromPostalCode * - * @param string|null $shipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. + * @param string|null $shipFromPostalCode The postal code of the address where the item is shipped from. * Encoding: ASCII * Max length: 10 characters * For the US, it must be in five or nine digits format. For example, 10001 or 10001-0000. * For Canada, it must be in 6 digits format. For example, M4B 1G5. * **additionalData key:** `enhancedSchemeData.shipFromPostalCode` * * @return self */ @@ -503,7 +503,7 @@ public function getTotalTaxAmount() /** * Sets totalTaxAmount * - * @param int|null $totalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero. + * @param int|null $totalTaxAmount The amount of state or provincial [tax included in the total transaction amount](https://docs.adyen.com/payment-methods/cards/enhanced-scheme-data/l2-l3#requirements-to-send-level-2-3-esd), in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * For L2 data: must not be all zeroes. * For L3 data: can be zero. * **additionalData key:** `enhancedSchemeData.totalTaxAmount` * * @return self */ diff --git a/src/Adyen/Model/Checkout/LineItem.php b/src/Adyen/Model/Checkout/LineItem.php index 8b3baf182..182f1f177 100644 --- a/src/Adyen/Model/Checkout/LineItem.php +++ b/src/Adyen/Model/Checkout/LineItem.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -54,10 +54,17 @@ class LineItem implements ModelInterface, ArrayAccess, \JsonSerializable 'productUrl' => 'string', 'quantity' => 'int', 'receiverEmail' => 'string', + 'returnShippingCompany' => 'string', + 'returnTrackingNumber' => 'string', + 'returnTrackingUri' => 'string', + 'shippingCompany' => 'string', + 'shippingMethod' => 'string', 'size' => 'string', 'sku' => 'string', 'taxAmount' => 'int', 'taxPercentage' => 'int', + 'trackingNumber' => 'string', + 'trackingUri' => 'string', 'upc' => 'string' ]; @@ -82,10 +89,17 @@ class LineItem implements ModelInterface, ArrayAccess, \JsonSerializable 'productUrl' => null, 'quantity' => 'int64', 'receiverEmail' => null, + 'returnShippingCompany' => null, + 'returnTrackingNumber' => null, + 'returnTrackingUri' => null, + 'shippingCompany' => null, + 'shippingMethod' => null, 'size' => null, 'sku' => null, 'taxAmount' => 'int64', 'taxPercentage' => 'int64', + 'trackingNumber' => null, + 'trackingUri' => null, 'upc' => null ]; @@ -108,10 +122,17 @@ class LineItem implements ModelInterface, ArrayAccess, \JsonSerializable 'productUrl' => false, 'quantity' => false, 'receiverEmail' => false, + 'returnShippingCompany' => false, + 'returnTrackingNumber' => false, + 'returnTrackingUri' => false, + 'shippingCompany' => false, + 'shippingMethod' => false, 'size' => false, 'sku' => false, 'taxAmount' => false, 'taxPercentage' => false, + 'trackingNumber' => false, + 'trackingUri' => false, 'upc' => false ]; @@ -214,10 +235,17 @@ public function isNullableSetToNull(string $property): bool 'productUrl' => 'productUrl', 'quantity' => 'quantity', 'receiverEmail' => 'receiverEmail', + 'returnShippingCompany' => 'returnShippingCompany', + 'returnTrackingNumber' => 'returnTrackingNumber', + 'returnTrackingUri' => 'returnTrackingUri', + 'shippingCompany' => 'shippingCompany', + 'shippingMethod' => 'shippingMethod', 'size' => 'size', 'sku' => 'sku', 'taxAmount' => 'taxAmount', 'taxPercentage' => 'taxPercentage', + 'trackingNumber' => 'trackingNumber', + 'trackingUri' => 'trackingUri', 'upc' => 'upc' ]; @@ -240,10 +268,17 @@ public function isNullableSetToNull(string $property): bool 'productUrl' => 'setProductUrl', 'quantity' => 'setQuantity', 'receiverEmail' => 'setReceiverEmail', + 'returnShippingCompany' => 'setReturnShippingCompany', + 'returnTrackingNumber' => 'setReturnTrackingNumber', + 'returnTrackingUri' => 'setReturnTrackingUri', + 'shippingCompany' => 'setShippingCompany', + 'shippingMethod' => 'setShippingMethod', 'size' => 'setSize', 'sku' => 'setSku', 'taxAmount' => 'setTaxAmount', 'taxPercentage' => 'setTaxPercentage', + 'trackingNumber' => 'setTrackingNumber', + 'trackingUri' => 'setTrackingUri', 'upc' => 'setUpc' ]; @@ -266,10 +301,17 @@ public function isNullableSetToNull(string $property): bool 'productUrl' => 'getProductUrl', 'quantity' => 'getQuantity', 'receiverEmail' => 'getReceiverEmail', + 'returnShippingCompany' => 'getReturnShippingCompany', + 'returnTrackingNumber' => 'getReturnTrackingNumber', + 'returnTrackingUri' => 'getReturnTrackingUri', + 'shippingCompany' => 'getShippingCompany', + 'shippingMethod' => 'getShippingMethod', 'size' => 'getSize', 'sku' => 'getSku', 'taxAmount' => 'getTaxAmount', 'taxPercentage' => 'getTaxPercentage', + 'trackingNumber' => 'getTrackingNumber', + 'trackingUri' => 'getTrackingUri', 'upc' => 'getUpc' ]; @@ -343,10 +385,17 @@ public function __construct(?array $data = null) $this->setIfExists('productUrl', $data ?? [], null); $this->setIfExists('quantity', $data ?? [], null); $this->setIfExists('receiverEmail', $data ?? [], null); + $this->setIfExists('returnShippingCompany', $data ?? [], null); + $this->setIfExists('returnTrackingNumber', $data ?? [], null); + $this->setIfExists('returnTrackingUri', $data ?? [], null); + $this->setIfExists('shippingCompany', $data ?? [], null); + $this->setIfExists('shippingMethod', $data ?? [], null); $this->setIfExists('size', $data ?? [], null); $this->setIfExists('sku', $data ?? [], null); $this->setIfExists('taxAmount', $data ?? [], null); $this->setIfExists('taxPercentage', $data ?? [], null); + $this->setIfExists('trackingNumber', $data ?? [], null); + $this->setIfExists('trackingUri', $data ?? [], null); $this->setIfExists('upc', $data ?? [], null); } @@ -704,6 +753,126 @@ public function setReceiverEmail($receiverEmail) return $this; } + /** + * Gets returnShippingCompany + * + * @return string|null + */ + public function getReturnShippingCompany() + { + return $this->container['returnShippingCompany']; + } + + /** + * Sets returnShippingCompany + * + * @param string|null $returnShippingCompany Shipping company handling the return of the item. + * + * @return self + */ + public function setReturnShippingCompany($returnShippingCompany) + { + $this->container['returnShippingCompany'] = $returnShippingCompany; + + return $this; + } + + /** + * Gets returnTrackingNumber + * + * @return string|null + */ + public function getReturnTrackingNumber() + { + return $this->container['returnTrackingNumber']; + } + + /** + * Sets returnTrackingNumber + * + * @param string|null $returnTrackingNumber Tracking number for the return of the item. + * + * @return self + */ + public function setReturnTrackingNumber($returnTrackingNumber) + { + $this->container['returnTrackingNumber'] = $returnTrackingNumber; + + return $this; + } + + /** + * Gets returnTrackingUri + * + * @return string|null + */ + public function getReturnTrackingUri() + { + return $this->container['returnTrackingUri']; + } + + /** + * Sets returnTrackingUri + * + * @param string|null $returnTrackingUri Tracking URI for the return of the item. + * + * @return self + */ + public function setReturnTrackingUri($returnTrackingUri) + { + $this->container['returnTrackingUri'] = $returnTrackingUri; + + return $this; + } + + /** + * Gets shippingCompany + * + * @return string|null + */ + public function getShippingCompany() + { + return $this->container['shippingCompany']; + } + + /** + * Sets shippingCompany + * + * @param string|null $shippingCompany Shipping company handling the delivery of the item. + * + * @return self + */ + public function setShippingCompany($shippingCompany) + { + $this->container['shippingCompany'] = $shippingCompany; + + return $this; + } + + /** + * Gets shippingMethod + * + * @return string|null + */ + public function getShippingMethod() + { + return $this->container['shippingMethod']; + } + + /** + * Sets shippingMethod + * + * @param string|null $shippingMethod Shipping method used to deliver the item. + * + * @return self + */ + public function setShippingMethod($shippingMethod) + { + $this->container['shippingMethod'] = $shippingMethod; + + return $this; + } + /** * Gets size * @@ -800,6 +969,54 @@ public function setTaxPercentage($taxPercentage) return $this; } + /** + * Gets trackingNumber + * + * @return string|null + */ + public function getTrackingNumber() + { + return $this->container['trackingNumber']; + } + + /** + * Sets trackingNumber + * + * @param string|null $trackingNumber Tracking number for the delivery of the item. + * + * @return self + */ + public function setTrackingNumber($trackingNumber) + { + $this->container['trackingNumber'] = $trackingNumber; + + return $this; + } + + /** + * Gets trackingUri + * + * @return string|null + */ + public function getTrackingUri() + { + return $this->container['trackingUri']; + } + + /** + * Sets trackingUri + * + * @param string|null $trackingUri Tracking URI for the delivery of the item. + * + * @return self + */ + public function setTrackingUri($trackingUri) + { + $this->container['trackingUri'] = $trackingUri; + + return $this; + } + /** * Gets upc * diff --git a/src/Adyen/Model/Checkout/ListStoredPaymentMethodsResponse.php b/src/Adyen/Model/Checkout/ListStoredPaymentMethodsResponse.php index 44ad7f34b..2946d0012 100644 --- a/src/Adyen/Model/Checkout/ListStoredPaymentMethodsResponse.php +++ b/src/Adyen/Model/Checkout/ListStoredPaymentMethodsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Lodging.php b/src/Adyen/Model/Checkout/Lodging.php new file mode 100644 index 000000000..b6b1650eb --- /dev/null +++ b/src/Adyen/Model/Checkout/Lodging.php @@ -0,0 +1,842 @@ + + */ +class Lodging implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Lodging'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'checkInDate' => '\DateTime', + 'checkOutDate' => '\DateTime', + 'customerServicePhoneNumber' => 'string', + 'fireSafetyCompliance' => 'bool', + 'folio' => '\Adyen\Model\Checkout\Folio', + 'foodBeverageCharges' => 'int', + 'lodgingChargeType' => 'string', + 'noShow' => 'bool', + 'prepaidExpenses' => 'int', + 'propertyPhoneNumber' => 'string', + 'renterName' => 'string', + 'rooms' => '\Adyen\Model\Checkout\Room[]', + 'totalRoomTax' => 'int', + 'totalTax' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'checkInDate' => 'date', + 'checkOutDate' => 'date', + 'customerServicePhoneNumber' => null, + 'fireSafetyCompliance' => null, + 'folio' => null, + 'foodBeverageCharges' => 'int64', + 'lodgingChargeType' => null, + 'noShow' => null, + 'prepaidExpenses' => 'int64', + 'propertyPhoneNumber' => null, + 'renterName' => null, + 'rooms' => null, + 'totalRoomTax' => 'int64', + 'totalTax' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'checkInDate' => false, + 'checkOutDate' => false, + 'customerServicePhoneNumber' => false, + 'fireSafetyCompliance' => false, + 'folio' => false, + 'foodBeverageCharges' => false, + 'lodgingChargeType' => false, + 'noShow' => false, + 'prepaidExpenses' => false, + 'propertyPhoneNumber' => false, + 'renterName' => false, + 'rooms' => false, + 'totalRoomTax' => false, + 'totalTax' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'checkInDate' => 'checkInDate', + 'checkOutDate' => 'checkOutDate', + 'customerServicePhoneNumber' => 'customerServicePhoneNumber', + 'fireSafetyCompliance' => 'fireSafetyCompliance', + 'folio' => 'folio', + 'foodBeverageCharges' => 'foodBeverageCharges', + 'lodgingChargeType' => 'lodgingChargeType', + 'noShow' => 'noShow', + 'prepaidExpenses' => 'prepaidExpenses', + 'propertyPhoneNumber' => 'propertyPhoneNumber', + 'renterName' => 'renterName', + 'rooms' => 'rooms', + 'totalRoomTax' => 'totalRoomTax', + 'totalTax' => 'totalTax' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'checkInDate' => 'setCheckInDate', + 'checkOutDate' => 'setCheckOutDate', + 'customerServicePhoneNumber' => 'setCustomerServicePhoneNumber', + 'fireSafetyCompliance' => 'setFireSafetyCompliance', + 'folio' => 'setFolio', + 'foodBeverageCharges' => 'setFoodBeverageCharges', + 'lodgingChargeType' => 'setLodgingChargeType', + 'noShow' => 'setNoShow', + 'prepaidExpenses' => 'setPrepaidExpenses', + 'propertyPhoneNumber' => 'setPropertyPhoneNumber', + 'renterName' => 'setRenterName', + 'rooms' => 'setRooms', + 'totalRoomTax' => 'setTotalRoomTax', + 'totalTax' => 'setTotalTax' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'checkInDate' => 'getCheckInDate', + 'checkOutDate' => 'getCheckOutDate', + 'customerServicePhoneNumber' => 'getCustomerServicePhoneNumber', + 'fireSafetyCompliance' => 'getFireSafetyCompliance', + 'folio' => 'getFolio', + 'foodBeverageCharges' => 'getFoodBeverageCharges', + 'lodgingChargeType' => 'getLodgingChargeType', + 'noShow' => 'getNoShow', + 'prepaidExpenses' => 'getPrepaidExpenses', + 'propertyPhoneNumber' => 'getPropertyPhoneNumber', + 'renterName' => 'getRenterName', + 'rooms' => 'getRooms', + 'totalRoomTax' => 'getTotalRoomTax', + 'totalTax' => 'getTotalTax' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const LODGING_CHARGE_TYPE_ADVANCE_DEPOSIT = 'advanceDeposit'; + public const LODGING_CHARGE_TYPE_NO_SHOW = 'noShow'; + public const LODGING_CHARGE_TYPE_STAY = 'stay'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getLodgingChargeTypeAllowableValues() + { + return [ + self::LODGING_CHARGE_TYPE_ADVANCE_DEPOSIT, + self::LODGING_CHARGE_TYPE_NO_SHOW, + self::LODGING_CHARGE_TYPE_STAY, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('checkInDate', $data ?? [], null); + $this->setIfExists('checkOutDate', $data ?? [], null); + $this->setIfExists('customerServicePhoneNumber', $data ?? [], null); + $this->setIfExists('fireSafetyCompliance', $data ?? [], null); + $this->setIfExists('folio', $data ?? [], null); + $this->setIfExists('foodBeverageCharges', $data ?? [], null); + $this->setIfExists('lodgingChargeType', $data ?? [], null); + $this->setIfExists('noShow', $data ?? [], null); + $this->setIfExists('prepaidExpenses', $data ?? [], null); + $this->setIfExists('propertyPhoneNumber', $data ?? [], null); + $this->setIfExists('renterName', $data ?? [], null); + $this->setIfExists('rooms', $data ?? [], null); + $this->setIfExists('totalRoomTax', $data ?? [], null); + $this->setIfExists('totalTax', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getLodgingChargeTypeAllowableValues(); + if (!is_null($this->container['lodgingChargeType']) && !in_array($this->container['lodgingChargeType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'lodgingChargeType', must be one of '%s'", + $this->container['lodgingChargeType'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets checkInDate + * + * @return \DateTime|null + */ + public function getCheckInDate() + { + return $this->container['checkInDate']; + } + + /** + * Sets checkInDate + * + * @param \DateTime|null $checkInDate The check-in date. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `lodging.checkInDate` + * + * @return self + */ + public function setCheckInDate($checkInDate) + { + $this->container['checkInDate'] = $checkInDate; + + return $this; + } + + /** + * Gets checkOutDate + * + * @return \DateTime|null + */ + public function getCheckOutDate() + { + return $this->container['checkOutDate']; + } + + /** + * Sets checkOutDate + * + * @param \DateTime|null $checkOutDate The check-out date. * Min Length: 10 characters * Max Length: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `lodging.checkOutDate` + * + * @return self + */ + public function setCheckOutDate($checkOutDate) + { + $this->container['checkOutDate'] = $checkOutDate; + + return $this; + } + + /** + * Gets customerServicePhoneNumber + * + * @return string|null + */ + public function getCustomerServicePhoneNumber() + { + return $this->container['customerServicePhoneNumber']; + } + + /** + * Sets customerServicePhoneNumber + * + * @param string|null $customerServicePhoneNumber The toll-free phone number for the lodging customer service. * Format: Alphanumeric * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * **additionalData key:** `lodging.customerServiceTollFreeNumber` + * + * @return self + */ + public function setCustomerServicePhoneNumber($customerServicePhoneNumber) + { + $this->container['customerServicePhoneNumber'] = $customerServicePhoneNumber; + + return $this; + } + + /** + * Gets fireSafetyCompliance + * + * @return bool|null + */ + public function getFireSafetyCompliance() + { + return $this->container['fireSafetyCompliance']; + } + + /** + * Sets fireSafetyCompliance + * + * @param bool|null $fireSafetyCompliance Indicates that the facility complies with the Hotel and Motel Fire Safety Act of 1990. * **additionalData key:** `lodging.fireSafetyActIndicator` + * + * @return self + */ + public function setFireSafetyCompliance($fireSafetyCompliance) + { + $this->container['fireSafetyCompliance'] = $fireSafetyCompliance; + + return $this; + } + + /** + * Gets folio + * + * @return \Adyen\Model\Checkout\Folio|null + */ + public function getFolio() + { + return $this->container['folio']; + } + + /** + * Sets folio + * + * @param \Adyen\Model\Checkout\Folio|null $folio folio + * + * @return self + */ + public function setFolio($folio) + { + $this->container['folio'] = $folio; + + return $this; + } + + /** + * Gets foodBeverageCharges + * + * @return int|null + */ + public function getFoodBeverageCharges() + { + return $this->container['foodBeverageCharges']; + } + + /** + * Sets foodBeverageCharges + * + * @param int|null $foodBeverageCharges Any charges for food and beverages associated with the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.foodBeverageCharges` + * + * @return self + */ + public function setFoodBeverageCharges($foodBeverageCharges) + { + $this->container['foodBeverageCharges'] = $foodBeverageCharges; + + return $this; + } + + /** + * Gets lodgingChargeType + * + * @return string|null + */ + public function getLodgingChargeType() + { + return $this->container['lodgingChargeType']; + } + + /** + * Sets lodgingChargeType + * + * @param string|null $lodgingChargeType The category of lodging charges for the payment. * **additionalData key:** `lodging.specialProgramCode` + * + * @return self + */ + public function setLodgingChargeType($lodgingChargeType) + { + $allowedValues = $this->getLodgingChargeTypeAllowableValues(); + if (!in_array($lodgingChargeType, $allowedValues, true)) { + error_log( + sprintf( + "lodgingChargeType: unexpected enum value '%s' - Supported values are [%s]", + $lodgingChargeType, + implode(', ', $allowedValues) + ) + ); + } + $this->container['lodgingChargeType'] = $lodgingChargeType; + + return $this; + } + + /** + * Gets noShow + * + * @return bool|null + */ + public function getNoShow() + { + return $this->container['noShow']; + } + + /** + * Sets noShow + * + * @param bool|null $noShow Indicates if the customer didn't check in for their booking. * **additionalData key:** `lodging.noShowIndicator` + * + * @return self + */ + public function setNoShow($noShow) + { + $this->container['noShow'] = $noShow; + + return $this; + } + + /** + * Gets prepaidExpenses + * + * @return int|null + */ + public function getPrepaidExpenses() + { + return $this->container['prepaidExpenses']; + } + + /** + * Sets prepaidExpenses + * + * @param int|null $prepaidExpenses The prepaid expenses for the booking, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.prepaidExpenses` + * + * @return self + */ + public function setPrepaidExpenses($prepaidExpenses) + { + $this->container['prepaidExpenses'] = $prepaidExpenses; + + return $this; + } + + /** + * Gets propertyPhoneNumber + * + * @return string|null + */ + public function getPropertyPhoneNumber() + { + return $this->container['propertyPhoneNumber']; + } + + /** + * Sets propertyPhoneNumber + * + * @param string|null $propertyPhoneNumber The lodging property location's phone number. * Format: Alphanumeric * Min length: 10 characters * For US and CA numbers must be 10 characters in length * Must not start with a space * Must not contain any special characters such as + or - * Must not be all zeros. * **additionalData key:** `lodging.propertyPhoneNumber` + * + * @return self + */ + public function setPropertyPhoneNumber($propertyPhoneNumber) + { + $this->container['propertyPhoneNumber'] = $propertyPhoneNumber; + + return $this; + } + + /** + * Gets renterName + * + * @return string|null + */ + public function getRenterName() + { + return $this->container['renterName']; + } + + /** + * Sets renterName + * + * @param string|null $renterName The name of the person renting the room. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `lodging.renterName` + * + * @return self + */ + public function setRenterName($renterName) + { + $this->container['renterName'] = $renterName; + + return $this; + } + + /** + * Gets rooms + * + * @return \Adyen\Model\Checkout\Room[]|null + */ + public function getRooms() + { + return $this->container['rooms']; + } + + /** + * Sets rooms + * + * @param \Adyen\Model\Checkout\Room[]|null $rooms The list of rooms booked. + * + * @return self + */ + public function setRooms($rooms) + { + $this->container['rooms'] = $rooms; + + return $this; + } + + /** + * Gets totalRoomTax + * + * @return int|null + */ + public function getTotalRoomTax() + { + return $this->container['totalRoomTax']; + } + + /** + * Sets totalRoomTax + * + * @param int|null $totalRoomTax The total room tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.totalRoomTax` + * + * @return self + */ + public function setTotalRoomTax($totalRoomTax) + { + $this->container['totalRoomTax'] = $totalRoomTax; + + return $this; + } + + /** + * Gets totalTax + * + * @return int|null + */ + public function getTotalTax() + { + return $this->container['totalTax']; + } + + /** + * Sets totalTax + * + * @param int|null $totalTax The total tax amount, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.totalTax` + * + * @return self + */ + public function setTotalTax($totalTax) + { + $this->container['totalTax'] = $totalTax; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/Mandate.php b/src/Adyen/Model/Checkout/Mandate.php index dde9b3e33..11eeddf62 100644 --- a/src/Adyen/Model/Checkout/Mandate.php +++ b/src/Adyen/Model/Checkout/Mandate.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MasterpassDetails.php b/src/Adyen/Model/Checkout/MasterpassDetails.php index af216cf03..7927151eb 100644 --- a/src/Adyen/Model/Checkout/MasterpassDetails.php +++ b/src/Adyen/Model/Checkout/MasterpassDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MbwayDetails.php b/src/Adyen/Model/Checkout/MbwayDetails.php index 0bab34d56..4a6155704 100644 --- a/src/Adyen/Model/Checkout/MbwayDetails.php +++ b/src/Adyen/Model/Checkout/MbwayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MerchantDevice.php b/src/Adyen/Model/Checkout/MerchantDevice.php index 886dbd3c5..012ed4be3 100644 --- a/src/Adyen/Model/Checkout/MerchantDevice.php +++ b/src/Adyen/Model/Checkout/MerchantDevice.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MerchantRiskIndicator.php b/src/Adyen/Model/Checkout/MerchantRiskIndicator.php index 264db13a5..84e0eef3b 100644 --- a/src/Adyen/Model/Checkout/MerchantRiskIndicator.php +++ b/src/Adyen/Model/Checkout/MerchantRiskIndicator.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MobilePayDetails.php b/src/Adyen/Model/Checkout/MobilePayDetails.php index d709a1eea..560b42a1c 100644 --- a/src/Adyen/Model/Checkout/MobilePayDetails.php +++ b/src/Adyen/Model/Checkout/MobilePayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ModelInterface.php b/src/Adyen/Model/Checkout/ModelInterface.php index db5493a75..bf7d9105d 100644 --- a/src/Adyen/Model/Checkout/ModelInterface.php +++ b/src/Adyen/Model/Checkout/ModelInterface.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/MolPayDetails.php b/src/Adyen/Model/Checkout/MolPayDetails.php index ac10d34e4..c5243ac96 100644 --- a/src/Adyen/Model/Checkout/MolPayDetails.php +++ b/src/Adyen/Model/Checkout/MolPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Name.php b/src/Adyen/Model/Checkout/Name.php index 90777ba6d..2c7059f35 100644 --- a/src/Adyen/Model/Checkout/Name.php +++ b/src/Adyen/Model/Checkout/Name.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ObjectSerializer.php b/src/Adyen/Model/Checkout/ObjectSerializer.php index c9a8102b9..d5684618b 100644 --- a/src/Adyen/Model/Checkout/ObjectSerializer.php +++ b/src/Adyen/Model/Checkout/ObjectSerializer.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/OpenInvoiceDetails.php b/src/Adyen/Model/Checkout/OpenInvoiceDetails.php index 31c77d165..382429ac6 100644 --- a/src/Adyen/Model/Checkout/OpenInvoiceDetails.php +++ b/src/Adyen/Model/Checkout/OpenInvoiceDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Passenger.php b/src/Adyen/Model/Checkout/Passenger.php index beffabd5b..744cf4414 100644 --- a/src/Adyen/Model/Checkout/Passenger.php +++ b/src/Adyen/Model/Checkout/Passenger.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -314,7 +314,7 @@ public function getDateOfBirth() /** * Sets dateOfBirth * - * @param \DateTime|null $dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 + * @param \DateTime|null $dateOfBirth The passenger's date of birth. * Format `yyyy-MM-dd` * minLength: 10 * maxLength: 10 * **additionalData key:** `airline.passenger[N].date_of_birth` * * @return self */ @@ -338,7 +338,7 @@ public function getFirstName() /** * Sets firstName * - * @param string|null $firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param string|null $firstName The passenger's first name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * **additionalData key:** `airline.passenger[N].first_name` * * @return self */ @@ -362,7 +362,7 @@ public function getLastName() /** * Sets lastName * - * @param string|null $lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII + * @param string|null $lastName The passenger's last name. > This field is required if the airline data includes passenger details or leg details. * Encoding: ASCII * **additionalData key:** `airline.passenger[N].last_name` * * @return self */ @@ -386,7 +386,7 @@ public function getPhoneNumber() /** * Sets phoneNumber * - * @param string|null $phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters + * @param string|null $phoneNumber The passenger's phone number, including country code. This is an alphanumeric field that can include the '+' and '-' signs. * Encoding: ASCII * minLength: 3 characters * maxLength: 30 characters * **additionalData key:** `airline.passenger[N].phone_number` * * @return self */ @@ -410,7 +410,7 @@ public function getTravellerType() /** * Sets travellerType * - * @param string|null $travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters + * @param string|null $travellerType The IATA passenger type code (PTC). * Encoding: ASCII * minLength: 3 characters * maxLength: 6 characters * **additionalData key:** `airline.passenger[N].traveller_type` * * @return self */ diff --git a/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php b/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php index de9aef08c..52ec08eca 100644 --- a/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/PayByBankAISDirectDebitDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayByBankDetails.php b/src/Adyen/Model/Checkout/PayByBankDetails.php index c462c8ed8..97d2a12df 100644 --- a/src/Adyen/Model/Checkout/PayByBankDetails.php +++ b/src/Adyen/Model/Checkout/PayByBankDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayPalDetails.php b/src/Adyen/Model/Checkout/PayPalDetails.php index c04206c6a..16ef5f4da 100644 --- a/src/Adyen/Model/Checkout/PayPalDetails.php +++ b/src/Adyen/Model/Checkout/PayPalDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayPayDetails.php b/src/Adyen/Model/Checkout/PayPayDetails.php index acb15c6d1..19ff6348d 100644 --- a/src/Adyen/Model/Checkout/PayPayDetails.php +++ b/src/Adyen/Model/Checkout/PayPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayToDetails.php b/src/Adyen/Model/Checkout/PayToDetails.php index 16d926a93..a53bc263b 100644 --- a/src/Adyen/Model/Checkout/PayToDetails.php +++ b/src/Adyen/Model/Checkout/PayToDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayToPaymentMethod.php b/src/Adyen/Model/Checkout/PayToPaymentMethod.php index efd654a37..2e9e91045 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethod.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayToPaymentMethodAllOf.php b/src/Adyen/Model/Checkout/PayToPaymentMethodAllOf.php index 97beb5cad..e9d6fe278 100644 --- a/src/Adyen/Model/Checkout/PayToPaymentMethodAllOf.php +++ b/src/Adyen/Model/Checkout/PayToPaymentMethodAllOf.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayUUpiDetails.php b/src/Adyen/Model/Checkout/PayUUpiDetails.php index a35396780..eb074dfae 100644 --- a/src/Adyen/Model/Checkout/PayUUpiDetails.php +++ b/src/Adyen/Model/Checkout/PayUUpiDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayWithGoogleDetails.php b/src/Adyen/Model/Checkout/PayWithGoogleDetails.php index 3b2aebed9..5f9abd633 100644 --- a/src/Adyen/Model/Checkout/PayWithGoogleDetails.php +++ b/src/Adyen/Model/Checkout/PayWithGoogleDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PayWithGoogleDonations.php b/src/Adyen/Model/Checkout/PayWithGoogleDonations.php index 80d161099..41a447dc1 100644 --- a/src/Adyen/Model/Checkout/PayWithGoogleDonations.php +++ b/src/Adyen/Model/Checkout/PayWithGoogleDonations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Payment.php b/src/Adyen/Model/Checkout/Payment.php index e207d5d4c..7470516be 100644 --- a/src/Adyen/Model/Checkout/Payment.php +++ b/src/Adyen/Model/Checkout/Payment.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentAmountUpdateRequest.php b/src/Adyen/Model/Checkout/PaymentAmountUpdateRequest.php index 0357e0c7e..9f402681b 100644 --- a/src/Adyen/Model/Checkout/PaymentAmountUpdateRequest.php +++ b/src/Adyen/Model/Checkout/PaymentAmountUpdateRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,12 +41,14 @@ class PaymentAmountUpdateRequest implements ModelInterface, ArrayAccess, \JsonSe * @var string[] */ protected static $openAPITypes = [ + 'adjustAuthType' => 'string', + 'adjustAuthorisationData' => 'string', 'amount' => '\Adyen\Model\Checkout\Amount', 'applicationInfo' => '\Adyen\Model\Checkout\ApplicationInfo', - 'enhancedSchemeData' => '\Adyen\Model\Checkout\EnhancedSchemeData', 'industryUsage' => 'string', 'lineItems' => '\Adyen\Model\Checkout\LineItem[]', 'merchantAccount' => 'string', + 'mpiData' => '\Adyen\Model\Checkout\ThreeDSecureData', 'reference' => 'string', 'splits' => '\Adyen\Model\Checkout\Split[]' ]; @@ -59,12 +61,14 @@ class PaymentAmountUpdateRequest implements ModelInterface, ArrayAccess, \JsonSe * @psalm-var array */ protected static $openAPIFormats = [ + 'adjustAuthType' => null, + 'adjustAuthorisationData' => null, 'amount' => null, 'applicationInfo' => null, - 'enhancedSchemeData' => null, 'industryUsage' => null, 'lineItems' => null, 'merchantAccount' => null, + 'mpiData' => null, 'reference' => null, 'splits' => null ]; @@ -75,12 +79,14 @@ class PaymentAmountUpdateRequest implements ModelInterface, ArrayAccess, \JsonSe * @var boolean[] */ protected static $openAPINullables = [ + 'adjustAuthType' => false, + 'adjustAuthorisationData' => false, 'amount' => false, 'applicationInfo' => false, - 'enhancedSchemeData' => false, 'industryUsage' => false, 'lineItems' => false, 'merchantAccount' => false, + 'mpiData' => false, 'reference' => false, 'splits' => false ]; @@ -171,12 +177,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'adjustAuthType' => 'adjustAuthType', + 'adjustAuthorisationData' => 'adjustAuthorisationData', 'amount' => 'amount', 'applicationInfo' => 'applicationInfo', - 'enhancedSchemeData' => 'enhancedSchemeData', 'industryUsage' => 'industryUsage', 'lineItems' => 'lineItems', 'merchantAccount' => 'merchantAccount', + 'mpiData' => 'mpiData', 'reference' => 'reference', 'splits' => 'splits' ]; @@ -187,12 +195,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'adjustAuthType' => 'setAdjustAuthType', + 'adjustAuthorisationData' => 'setAdjustAuthorisationData', 'amount' => 'setAmount', 'applicationInfo' => 'setApplicationInfo', - 'enhancedSchemeData' => 'setEnhancedSchemeData', 'industryUsage' => 'setIndustryUsage', 'lineItems' => 'setLineItems', 'merchantAccount' => 'setMerchantAccount', + 'mpiData' => 'setMpiData', 'reference' => 'setReference', 'splits' => 'setSplits' ]; @@ -203,12 +213,14 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'adjustAuthType' => 'getAdjustAuthType', + 'adjustAuthorisationData' => 'getAdjustAuthorisationData', 'amount' => 'getAmount', 'applicationInfo' => 'getApplicationInfo', - 'enhancedSchemeData' => 'getEnhancedSchemeData', 'industryUsage' => 'getIndustryUsage', 'lineItems' => 'getLineItems', 'merchantAccount' => 'getMerchantAccount', + 'mpiData' => 'getMpiData', 'reference' => 'getReference', 'splits' => 'getSplits' ]; @@ -254,10 +266,24 @@ public function getModelName() return self::$openAPIModelName; } + public const ADJUST_AUTH_TYPE_CARDHOLDER_INITIATED_TRANSACTION = 'cardholderInitiatedTransaction'; + public const ADJUST_AUTH_TYPE_MERCHANT_INITIATED_TRANSACTION = 'merchantInitiatedTransaction'; public const INDUSTRY_USAGE_DELAYED_CHARGE = 'delayedCharge'; public const INDUSTRY_USAGE_INSTALLMENT = 'installment'; public const INDUSTRY_USAGE_NO_SHOW = 'noShow'; + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getAdjustAuthTypeAllowableValues() + { + return [ + self::ADJUST_AUTH_TYPE_CARDHOLDER_INITIATED_TRANSACTION, + self::ADJUST_AUTH_TYPE_MERCHANT_INITIATED_TRANSACTION, + ]; + } /** * Gets allowable values of the enum * @@ -286,12 +312,14 @@ public function getIndustryUsageAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('adjustAuthType', $data ?? [], null); + $this->setIfExists('adjustAuthorisationData', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('applicationInfo', $data ?? [], null); - $this->setIfExists('enhancedSchemeData', $data ?? [], null); $this->setIfExists('industryUsage', $data ?? [], null); $this->setIfExists('lineItems', $data ?? [], null); $this->setIfExists('merchantAccount', $data ?? [], null); + $this->setIfExists('mpiData', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); $this->setIfExists('splits', $data ?? [], null); } @@ -323,6 +351,15 @@ public function listInvalidProperties() { $invalidProperties = []; + $allowedValues = $this->getAdjustAuthTypeAllowableValues(); + if (!is_null($this->container['adjustAuthType']) && !in_array($this->container['adjustAuthType'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'adjustAuthType', must be one of '%s'", + $this->container['adjustAuthType'], + implode("', '", $allowedValues) + ); + } + if ($this->container['amount'] === null) { $invalidProperties[] = "'amount' can't be null"; } @@ -354,73 +391,107 @@ public function valid() /** - * Gets amount + * Gets adjustAuthType * - * @return \Adyen\Model\Checkout\Amount + * @return string|null */ - public function getAmount() + public function getAdjustAuthType() { - return $this->container['amount']; + return $this->container['adjustAuthType']; } /** - * Sets amount + * Sets adjustAuthType * - * @param \Adyen\Model\Checkout\Amount $amount amount + * @param string|null $adjustAuthType The type of adjustment. Possible values: * **cardholderInitiatedTransaction** * **merchantInitiatedTransaction** * * @return self */ - public function setAmount($amount) + public function setAdjustAuthType($adjustAuthType) { - $this->container['amount'] = $amount; + $allowedValues = $this->getAdjustAuthTypeAllowableValues(); + if (!in_array($adjustAuthType, $allowedValues, true)) { + error_log( + sprintf( + "adjustAuthType: unexpected enum value '%s' - Supported values are [%s]", + $adjustAuthType, + implode(', ', $allowedValues) + ) + ); + } + $this->container['adjustAuthType'] = $adjustAuthType; return $this; } /** - * Gets applicationInfo + * Gets adjustAuthorisationData * - * @return \Adyen\Model\Checkout\ApplicationInfo|null + * @return string|null */ - public function getApplicationInfo() + public function getAdjustAuthorisationData() { - return $this->container['applicationInfo']; + return $this->container['adjustAuthorisationData']; } /** - * Sets applicationInfo + * Sets adjustAuthorisationData * - * @param \Adyen\Model\Checkout\ApplicationInfo|null $applicationInfo applicationInfo + * @param string|null $adjustAuthorisationData The required data to make a [synchronous authorization adjustment](https://docs.adyen.com/online-payments/adjust-authorisation). Pass the corresponding value from the `/payments` response or webhook message. * * @return self */ - public function setApplicationInfo($applicationInfo) + public function setAdjustAuthorisationData($adjustAuthorisationData) { - $this->container['applicationInfo'] = $applicationInfo; + $this->container['adjustAuthorisationData'] = $adjustAuthorisationData; + + return $this; + } + + /** + * Gets amount + * + * @return \Adyen\Model\Checkout\Amount + */ + public function getAmount() + { + return $this->container['amount']; + } + + /** + * Sets amount + * + * @param \Adyen\Model\Checkout\Amount $amount amount + * + * @return self + */ + public function setAmount($amount) + { + $this->container['amount'] = $amount; return $this; } /** - * Gets enhancedSchemeData + * Gets applicationInfo * - * @return \Adyen\Model\Checkout\EnhancedSchemeData|null + * @return \Adyen\Model\Checkout\ApplicationInfo|null */ - public function getEnhancedSchemeData() + public function getApplicationInfo() { - return $this->container['enhancedSchemeData']; + return $this->container['applicationInfo']; } /** - * Sets enhancedSchemeData + * Sets applicationInfo * - * @param \Adyen\Model\Checkout\EnhancedSchemeData|null $enhancedSchemeData enhancedSchemeData + * @param \Adyen\Model\Checkout\ApplicationInfo|null $applicationInfo applicationInfo * * @return self */ - public function setEnhancedSchemeData($enhancedSchemeData) + public function setApplicationInfo($applicationInfo) { - $this->container['enhancedSchemeData'] = $enhancedSchemeData; + $this->container['applicationInfo'] = $applicationInfo; return $this; } @@ -507,6 +578,30 @@ public function setMerchantAccount($merchantAccount) return $this; } + /** + * Gets mpiData + * + * @return \Adyen\Model\Checkout\ThreeDSecureData|null + */ + public function getMpiData() + { + return $this->container['mpiData']; + } + + /** + * Sets mpiData + * + * @param \Adyen\Model\Checkout\ThreeDSecureData|null $mpiData mpiData + * + * @return self + */ + public function setMpiData($mpiData) + { + $this->container['mpiData'] = $mpiData; + + return $this; + } + /** * Gets reference * diff --git a/src/Adyen/Model/Checkout/PaymentAmountUpdateResponse.php b/src/Adyen/Model/Checkout/PaymentAmountUpdateResponse.php index d541c28c9..91584e43a 100644 --- a/src/Adyen/Model/Checkout/PaymentAmountUpdateResponse.php +++ b/src/Adyen/Model/Checkout/PaymentAmountUpdateResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -41,6 +41,7 @@ class PaymentAmountUpdateResponse implements ModelInterface, ArrayAccess, \JsonS * @var string[] */ protected static $openAPITypes = [ + 'adjustAuthorisationData' => 'string', 'amount' => '\Adyen\Model\Checkout\Amount', 'industryUsage' => 'string', 'lineItems' => '\Adyen\Model\Checkout\LineItem[]', @@ -60,6 +61,7 @@ class PaymentAmountUpdateResponse implements ModelInterface, ArrayAccess, \JsonS * @psalm-var array */ protected static $openAPIFormats = [ + 'adjustAuthorisationData' => null, 'amount' => null, 'industryUsage' => null, 'lineItems' => null, @@ -77,6 +79,7 @@ class PaymentAmountUpdateResponse implements ModelInterface, ArrayAccess, \JsonS * @var boolean[] */ protected static $openAPINullables = [ + 'adjustAuthorisationData' => false, 'amount' => false, 'industryUsage' => false, 'lineItems' => false, @@ -174,6 +177,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ + 'adjustAuthorisationData' => 'adjustAuthorisationData', 'amount' => 'amount', 'industryUsage' => 'industryUsage', 'lineItems' => 'lineItems', @@ -191,6 +195,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ + 'adjustAuthorisationData' => 'setAdjustAuthorisationData', 'amount' => 'setAmount', 'industryUsage' => 'setIndustryUsage', 'lineItems' => 'setLineItems', @@ -208,6 +213,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ + 'adjustAuthorisationData' => 'getAdjustAuthorisationData', 'amount' => 'getAmount', 'industryUsage' => 'getIndustryUsage', 'lineItems' => 'getLineItems', @@ -263,7 +269,9 @@ public function getModelName() public const INDUSTRY_USAGE_DELAYED_CHARGE = 'delayedCharge'; public const INDUSTRY_USAGE_INSTALLMENT = 'installment'; public const INDUSTRY_USAGE_NO_SHOW = 'noShow'; + public const STATUS_AUTHORISED = 'authorised'; public const STATUS_RECEIVED = 'received'; + public const STATUS_REFUSED = 'refused'; /** * Gets allowable values of the enum @@ -286,7 +294,9 @@ public function getIndustryUsageAllowableValues() public function getStatusAllowableValues() { return [ + self::STATUS_AUTHORISED, self::STATUS_RECEIVED, + self::STATUS_REFUSED, ]; } /** @@ -304,6 +314,7 @@ public function getStatusAllowableValues() */ public function __construct(?array $data = null) { + $this->setIfExists('adjustAuthorisationData', $data ?? [], null); $this->setIfExists('amount', $data ?? [], null); $this->setIfExists('industryUsage', $data ?? [], null); $this->setIfExists('lineItems', $data ?? [], null); @@ -393,6 +404,30 @@ public function valid() } + /** + * Gets adjustAuthorisationData + * + * @return string|null + */ + public function getAdjustAuthorisationData() + { + return $this->container['adjustAuthorisationData']; + } + + /** + * Sets adjustAuthorisationData + * + * @param string|null $adjustAuthorisationData The data blob for subsequent synchronous adjust authorisation calls. Returned when the synchronous flow is used. + * + * @return self + */ + public function setAdjustAuthorisationData($adjustAuthorisationData) + { + $this->container['adjustAuthorisationData'] = $adjustAuthorisationData; + + return $this; + } + /** * Gets amount * @@ -608,7 +643,7 @@ public function getStatus() /** * Sets status * - * @param string $status The status of your request. This will always have the value **received**. + * @param string $status The status of your request. If you included `adjustAuthorisationData` in your request, possible values are the following: * **authorised** * **refused** Otherwise, the value is **received**. * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentCancelRequest.php b/src/Adyen/Model/Checkout/PaymentCancelRequest.php index 37d91de92..c7ab33d3b 100644 --- a/src/Adyen/Model/Checkout/PaymentCancelRequest.php +++ b/src/Adyen/Model/Checkout/PaymentCancelRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,7 +42,6 @@ class PaymentCancelRequest implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPITypes = [ 'applicationInfo' => '\Adyen\Model\Checkout\ApplicationInfo', - 'enhancedSchemeData' => '\Adyen\Model\Checkout\EnhancedSchemeData', 'merchantAccount' => 'string', 'reference' => 'string' ]; @@ -56,7 +55,6 @@ class PaymentCancelRequest implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPIFormats = [ 'applicationInfo' => null, - 'enhancedSchemeData' => null, 'merchantAccount' => null, 'reference' => null ]; @@ -68,7 +66,6 @@ class PaymentCancelRequest implements ModelInterface, ArrayAccess, \JsonSerializ */ protected static $openAPINullables = [ 'applicationInfo' => false, - 'enhancedSchemeData' => false, 'merchantAccount' => false, 'reference' => false ]; @@ -160,7 +157,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'applicationInfo' => 'applicationInfo', - 'enhancedSchemeData' => 'enhancedSchemeData', 'merchantAccount' => 'merchantAccount', 'reference' => 'reference' ]; @@ -172,7 +168,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'applicationInfo' => 'setApplicationInfo', - 'enhancedSchemeData' => 'setEnhancedSchemeData', 'merchantAccount' => 'setMerchantAccount', 'reference' => 'setReference' ]; @@ -184,7 +179,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'applicationInfo' => 'getApplicationInfo', - 'enhancedSchemeData' => 'getEnhancedSchemeData', 'merchantAccount' => 'getMerchantAccount', 'reference' => 'getReference' ]; @@ -247,7 +241,6 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('applicationInfo', $data ?? [], null); - $this->setIfExists('enhancedSchemeData', $data ?? [], null); $this->setIfExists('merchantAccount', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); } @@ -321,30 +314,6 @@ public function setApplicationInfo($applicationInfo) return $this; } - /** - * Gets enhancedSchemeData - * - * @return \Adyen\Model\Checkout\EnhancedSchemeData|null - */ - public function getEnhancedSchemeData() - { - return $this->container['enhancedSchemeData']; - } - - /** - * Sets enhancedSchemeData - * - * @param \Adyen\Model\Checkout\EnhancedSchemeData|null $enhancedSchemeData enhancedSchemeData - * - * @return self - */ - public function setEnhancedSchemeData($enhancedSchemeData) - { - $this->container['enhancedSchemeData'] = $enhancedSchemeData; - - return $this; - } - /** * Gets merchantAccount * diff --git a/src/Adyen/Model/Checkout/PaymentCancelResponse.php b/src/Adyen/Model/Checkout/PaymentCancelResponse.php index 33743915f..c5c6df2f7 100644 --- a/src/Adyen/Model/Checkout/PaymentCancelResponse.php +++ b/src/Adyen/Model/Checkout/PaymentCancelResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentCaptureRequest.php b/src/Adyen/Model/Checkout/PaymentCaptureRequest.php index a5abb9613..149bb6dc3 100644 --- a/src/Adyen/Model/Checkout/PaymentCaptureRequest.php +++ b/src/Adyen/Model/Checkout/PaymentCaptureRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentCaptureResponse.php b/src/Adyen/Model/Checkout/PaymentCaptureResponse.php index a2eafb881..c86e00e96 100644 --- a/src/Adyen/Model/Checkout/PaymentCaptureResponse.php +++ b/src/Adyen/Model/Checkout/PaymentCaptureResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentCompletionDetails.php b/src/Adyen/Model/Checkout/PaymentCompletionDetails.php index e22032706..5ff1d2021 100644 --- a/src/Adyen/Model/Checkout/PaymentCompletionDetails.php +++ b/src/Adyen/Model/Checkout/PaymentCompletionDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentDetails.php b/src/Adyen/Model/Checkout/PaymentDetails.php index f21c2664c..f36b82b11 100644 --- a/src/Adyen/Model/Checkout/PaymentDetails.php +++ b/src/Adyen/Model/Checkout/PaymentDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -228,7 +228,6 @@ public function getModelName() public const TYPE_MULTIBANCO = 'multibanco'; public const TYPE_BANK_TRANSFER = 'bankTransfer'; public const TYPE_BANK_TRANSFER_IBAN = 'bankTransfer_IBAN'; - public const TYPE_PAYBRIGHT = 'paybright'; public const TYPE_PAYNOW = 'paynow'; public const TYPE_AFFIRM_POS = 'affirm_pos'; public const TYPE_IRIS = 'iris'; @@ -281,7 +280,6 @@ public function getModelName() public const TYPE_BENEFIT = 'benefit'; public const TYPE_KNET = 'knet'; public const TYPE_OMANNET = 'omannet'; - public const TYPE_GOPAY_WALLET = 'gopay_wallet'; public const TYPE_KCP_NAVERPAY = 'kcp_naverpay'; public const TYPE_FAWRY = 'fawry'; public const TYPE_ATOME = 'atome'; @@ -324,7 +322,6 @@ public function getTypeAllowableValues() self::TYPE_MULTIBANCO, self::TYPE_BANK_TRANSFER, self::TYPE_BANK_TRANSFER_IBAN, - self::TYPE_PAYBRIGHT, self::TYPE_PAYNOW, self::TYPE_AFFIRM_POS, self::TYPE_IRIS, @@ -377,7 +374,6 @@ public function getTypeAllowableValues() self::TYPE_BENEFIT, self::TYPE_KNET, self::TYPE_OMANNET, - self::TYPE_GOPAY_WALLET, self::TYPE_KCP_NAVERPAY, self::TYPE_FAWRY, self::TYPE_ATOME, diff --git a/src/Adyen/Model/Checkout/PaymentDetailsRequest.php b/src/Adyen/Model/Checkout/PaymentDetailsRequest.php index 827ad213b..034581d31 100644 --- a/src/Adyen/Model/Checkout/PaymentDetailsRequest.php +++ b/src/Adyen/Model/Checkout/PaymentDetailsRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentDetailsResponse.php b/src/Adyen/Model/Checkout/PaymentDetailsResponse.php index e01ec29b6..5ab911a13 100644 --- a/src/Adyen/Model/Checkout/PaymentDetailsResponse.php +++ b/src/Adyen/Model/Checkout/PaymentDetailsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentDetailsResponseAction.php b/src/Adyen/Model/Checkout/PaymentDetailsResponseAction.php index bde2b3093..d6e6ac1a7 100644 --- a/src/Adyen/Model/Checkout/PaymentDetailsResponseAction.php +++ b/src/Adyen/Model/Checkout/PaymentDetailsResponseAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -28,7 +28,7 @@ */ class PaymentDetailsResponseAction implements ModelInterface, ArrayAccess, \JsonSerializable { - public const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'type'; /** * The original name of the model. @@ -272,6 +272,9 @@ public function __construct(?array $data = null) $this->setIfExists('token', $data ?? [], null); $this->setIfExists('type', $data ?? [], null); $this->setIfExists('url', $data ?? [], null); + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; } /** diff --git a/src/Adyen/Model/Checkout/PaymentLinkRequest.php b/src/Adyen/Model/Checkout/PaymentLinkRequest.php index 925514e33..08a8628b3 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkRequest.php +++ b/src/Adyen/Model/Checkout/PaymentLinkRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentLinkResponse.php b/src/Adyen/Model/Checkout/PaymentLinkResponse.php index c4c43cbb8..de3b587d8 100644 --- a/src/Adyen/Model/Checkout/PaymentLinkResponse.php +++ b/src/Adyen/Model/Checkout/PaymentLinkResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethod.php b/src/Adyen/Model/Checkout/PaymentMethod.php index 0f9834044..2a8f92efc 100644 --- a/src/Adyen/Model/Checkout/PaymentMethod.php +++ b/src/Adyen/Model/Checkout/PaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethodGroup.php b/src/Adyen/Model/Checkout/PaymentMethodGroup.php index 09836a2f0..f1fd29b1c 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodGroup.php +++ b/src/Adyen/Model/Checkout/PaymentMethodGroup.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethodIssuer.php b/src/Adyen/Model/Checkout/PaymentMethodIssuer.php index ec21a04bb..2380c8fe2 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodIssuer.php +++ b/src/Adyen/Model/Checkout/PaymentMethodIssuer.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethodToStore.php b/src/Adyen/Model/Checkout/PaymentMethodToStore.php index cf095a461..0b79bf4a9 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodToStore.php +++ b/src/Adyen/Model/Checkout/PaymentMethodToStore.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethodUPIApps.php b/src/Adyen/Model/Checkout/PaymentMethodUPIApps.php index 95840ef81..e4fab1f6d 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodUPIApps.php +++ b/src/Adyen/Model/Checkout/PaymentMethodUPIApps.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentMethodsRequest.php b/src/Adyen/Model/Checkout/PaymentMethodsRequest.php index 67e24842b..bda9efb28 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodsRequest.php +++ b/src/Adyen/Model/Checkout/PaymentMethodsRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -612,7 +612,7 @@ public function getCountryCode() /** * Sets countryCode * - * @param string|null $countryCode The shopper's country code. + * @param string|null $countryCode The shopper country code. Format: [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) Example: NL or DE * * @return self */ diff --git a/src/Adyen/Model/Checkout/PaymentMethodsResponse.php b/src/Adyen/Model/Checkout/PaymentMethodsResponse.php index b689347ee..33d702098 100644 --- a/src/Adyen/Model/Checkout/PaymentMethodsResponse.php +++ b/src/Adyen/Model/Checkout/PaymentMethodsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentRefundRequest.php b/src/Adyen/Model/Checkout/PaymentRefundRequest.php index 182bbf1b3..9a3299fe8 100644 --- a/src/Adyen/Model/Checkout/PaymentRefundRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRefundRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentRefundResponse.php b/src/Adyen/Model/Checkout/PaymentRefundResponse.php index 5ecb524a7..2287a348e 100644 --- a/src/Adyen/Model/Checkout/PaymentRefundResponse.php +++ b/src/Adyen/Model/Checkout/PaymentRefundResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentRequest.php b/src/Adyen/Model/Checkout/PaymentRequest.php index 6d6e05e68..b8ad7fc5a 100644 --- a/src/Adyen/Model/Checkout/PaymentRequest.php +++ b/src/Adyen/Model/Checkout/PaymentRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -54,7 +54,6 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'channel' => 'string', 'checkoutAttemptId' => 'string', 'company' => '\Adyen\Model\Checkout\Company', - 'conversionId' => 'string', 'countryCode' => 'string', 'dateOfBirth' => '\DateTime', 'dccQuote' => '\Adyen\Model\Checkout\ForexQuote', @@ -112,6 +111,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'subMerchants' => '\Adyen\Model\Checkout\SubMerchantInfo[]', 'surcharge' => '\Adyen\Model\Checkout\Surcharge', 'telephoneNumber' => 'string', + 'thirdPartyTokenRedundancyInfo' => '\Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => '\Adyen\Model\Checkout\ThreeDS2RequestFields', 'threeDSAuthenticationOnly' => 'bool', 'trustedShopper' => 'bool' @@ -138,7 +138,6 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'channel' => null, 'checkoutAttemptId' => null, 'company' => null, - 'conversionId' => null, 'countryCode' => null, 'dateOfBirth' => 'date-time', 'dccQuote' => null, @@ -196,6 +195,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'subMerchants' => null, 'surcharge' => null, 'telephoneNumber' => null, + 'thirdPartyTokenRedundancyInfo' => null, 'threeDS2RequestData' => null, 'threeDSAuthenticationOnly' => null, 'trustedShopper' => null @@ -220,7 +220,6 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'channel' => false, 'checkoutAttemptId' => false, 'company' => false, - 'conversionId' => false, 'countryCode' => false, 'dateOfBirth' => false, 'dccQuote' => false, @@ -278,6 +277,7 @@ class PaymentRequest implements ModelInterface, ArrayAccess, \JsonSerializable 'subMerchants' => false, 'surcharge' => false, 'telephoneNumber' => false, + 'thirdPartyTokenRedundancyInfo' => false, 'threeDS2RequestData' => false, 'threeDSAuthenticationOnly' => false, 'trustedShopper' => false @@ -382,7 +382,6 @@ public function isNullableSetToNull(string $property): bool 'channel' => 'channel', 'checkoutAttemptId' => 'checkoutAttemptId', 'company' => 'company', - 'conversionId' => 'conversionId', 'countryCode' => 'countryCode', 'dateOfBirth' => 'dateOfBirth', 'dccQuote' => 'dccQuote', @@ -440,6 +439,7 @@ public function isNullableSetToNull(string $property): bool 'subMerchants' => 'subMerchants', 'surcharge' => 'surcharge', 'telephoneNumber' => 'telephoneNumber', + 'thirdPartyTokenRedundancyInfo' => 'thirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'threeDS2RequestData', 'threeDSAuthenticationOnly' => 'threeDSAuthenticationOnly', 'trustedShopper' => 'trustedShopper' @@ -464,7 +464,6 @@ public function isNullableSetToNull(string $property): bool 'channel' => 'setChannel', 'checkoutAttemptId' => 'setCheckoutAttemptId', 'company' => 'setCompany', - 'conversionId' => 'setConversionId', 'countryCode' => 'setCountryCode', 'dateOfBirth' => 'setDateOfBirth', 'dccQuote' => 'setDccQuote', @@ -522,6 +521,7 @@ public function isNullableSetToNull(string $property): bool 'subMerchants' => 'setSubMerchants', 'surcharge' => 'setSurcharge', 'telephoneNumber' => 'setTelephoneNumber', + 'thirdPartyTokenRedundancyInfo' => 'setThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'setThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'setThreeDSAuthenticationOnly', 'trustedShopper' => 'setTrustedShopper' @@ -546,7 +546,6 @@ public function isNullableSetToNull(string $property): bool 'channel' => 'getChannel', 'checkoutAttemptId' => 'getCheckoutAttemptId', 'company' => 'getCompany', - 'conversionId' => 'getConversionId', 'countryCode' => 'getCountryCode', 'dateOfBirth' => 'getDateOfBirth', 'dccQuote' => 'getDccQuote', @@ -604,6 +603,7 @@ public function isNullableSetToNull(string $property): bool 'subMerchants' => 'getSubMerchants', 'surcharge' => 'getSurcharge', 'telephoneNumber' => 'getTelephoneNumber', + 'thirdPartyTokenRedundancyInfo' => 'getThirdPartyTokenRedundancyInfo', 'threeDS2RequestData' => 'getThreeDS2RequestData', 'threeDSAuthenticationOnly' => 'getThreeDSAuthenticationOnly', 'trustedShopper' => 'getTrustedShopper' @@ -759,7 +759,6 @@ public function __construct(?array $data = null) $this->setIfExists('channel', $data ?? [], null); $this->setIfExists('checkoutAttemptId', $data ?? [], null); $this->setIfExists('company', $data ?? [], null); - $this->setIfExists('conversionId', $data ?? [], null); $this->setIfExists('countryCode', $data ?? [], null); $this->setIfExists('dateOfBirth', $data ?? [], null); $this->setIfExists('dccQuote', $data ?? [], null); @@ -817,6 +816,7 @@ public function __construct(?array $data = null) $this->setIfExists('subMerchants', $data ?? [], null); $this->setIfExists('surcharge', $data ?? [], null); $this->setIfExists('telephoneNumber', $data ?? [], null); + $this->setIfExists('thirdPartyTokenRedundancyInfo', $data ?? [], null); $this->setIfExists('threeDS2RequestData', $data ?? [], null); $this->setIfExists('threeDSAuthenticationOnly', $data ?? [], null); $this->setIfExists('trustedShopper', $data ?? [], null); @@ -1246,32 +1246,6 @@ public function setCompany($company) return $this; } - /** - * Gets conversionId - * - * @return string|null - * @deprecated since Adyen Checkout API v68. "Use `checkoutAttemptId` instead" - */ - public function getConversionId() - { - return $this->container['conversionId']; - } - - /** - * Sets conversionId - * - * @param string|null $conversionId Conversion ID that corresponds to the Id generated by the client SDK for tracking user payment journey. - * - * @return self - * @deprecated since Adyen Checkout API v68. "Use `checkoutAttemptId` instead" - */ - public function setConversionId($conversionId) - { - $this->container['conversionId'] = $conversionId; - - return $this; - } - /** * Gets countryCode * @@ -2229,7 +2203,7 @@ public function getReturnUrl() /** * Sets returnUrl * - * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. We strongly recommend that you use a maximum of 1024 characters. > The URL must not include personally identifiable information (PII), for example name or email address. + * @param string $returnUrl The URL to return to in case of a redirection. The format depends on the channel. * For web, include the protocol `http://` or `https://`. You can also include your own additional query parameters, for example, shopper ID or order reference number. Example: `https://your-company.example.com/checkout?shopperOrder=12xy` * For iOS, use the custom URL for your app. To know more about setting custom URL schemes, refer to the [Apple Developer documentation](https://developer.apple.com/documentation/uikit/inter-process_communication/allowing_apps_and_websites_to_link_to_your_content/defining_a_custom_url_scheme_for_your_app). Example: `my-app://` * For Android, use a custom URL handled by an Activity on your app. You can configure it with an [intent filter](https://developer.android.com/guide/components/intents-filters). Example: `my-app://your.package.name` If the URL to return to includes non-ASCII characters, like spaces or special letters, URL encode the value. > The URL must not include personally identifiable information (PII), for example name or email address. * * @return self */ @@ -2325,7 +2299,7 @@ public function getShopperEmail() /** * Sets shopperEmail * - * @param string|null $shopperEmail The shopper's email address. We recommend that you provide this data, as it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. + * @param string|null $shopperEmail The shopper's email address, in valid [RFC-5322](https://www.rfc-editor.org/rfc/rfc5322) format. We recommend that you provide this data, because it is used in velocity fraud checks. > Required for Visa and JCB transactions that require 3D Secure 2 authentication if you did not include the `telephoneNumber`. * * @return self */ @@ -2682,6 +2656,30 @@ public function setTelephoneNumber($telephoneNumber) return $this; } + /** + * Gets thirdPartyTokenRedundancyInfo + * + * @return \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null + */ + public function getThirdPartyTokenRedundancyInfo() + { + return $this->container['thirdPartyTokenRedundancyInfo']; + } + + /** + * Sets thirdPartyTokenRedundancyInfo + * + * @param \Adyen\Model\Checkout\ThirdPartyTokenRedundancyInfo|null $thirdPartyTokenRedundancyInfo thirdPartyTokenRedundancyInfo + * + * @return self + */ + public function setThirdPartyTokenRedundancyInfo($thirdPartyTokenRedundancyInfo) + { + $this->container['thirdPartyTokenRedundancyInfo'] = $thirdPartyTokenRedundancyInfo; + + return $this; + } + /** * Gets threeDS2RequestData * diff --git a/src/Adyen/Model/Checkout/PaymentResponse.php b/src/Adyen/Model/Checkout/PaymentResponse.php index 9832d1d97..33f5196cb 100644 --- a/src/Adyen/Model/Checkout/PaymentResponse.php +++ b/src/Adyen/Model/Checkout/PaymentResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentResponseAction.php b/src/Adyen/Model/Checkout/PaymentResponseAction.php index 10a7a036a..0bc3333aa 100644 --- a/src/Adyen/Model/Checkout/PaymentResponseAction.php +++ b/src/Adyen/Model/Checkout/PaymentResponseAction.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -28,7 +28,7 @@ */ class PaymentResponseAction implements ModelInterface, ArrayAccess, \JsonSerializable { - public const DISCRIMINATOR = null; + public const DISCRIMINATOR = 'type'; /** * The original name of the model. @@ -482,6 +482,9 @@ public function __construct(?array $data = null) $this->setIfExists('passCreationToken', $data ?? [], null); $this->setIfExists('shopperName', $data ?? [], null); $this->setIfExists('surcharge', $data ?? [], null); + + // Initialize discriminator property with the model name. + $this->container['type'] = static::$openAPIModelName; } /** diff --git a/src/Adyen/Model/Checkout/PaymentReversalRequest.php b/src/Adyen/Model/Checkout/PaymentReversalRequest.php index 6337d1350..96990138f 100644 --- a/src/Adyen/Model/Checkout/PaymentReversalRequest.php +++ b/src/Adyen/Model/Checkout/PaymentReversalRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,7 +42,6 @@ class PaymentReversalRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPITypes = [ 'applicationInfo' => '\Adyen\Model\Checkout\ApplicationInfo', - 'enhancedSchemeData' => '\Adyen\Model\Checkout\EnhancedSchemeData', 'merchantAccount' => 'string', 'reference' => 'string' ]; @@ -56,7 +55,6 @@ class PaymentReversalRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPIFormats = [ 'applicationInfo' => null, - 'enhancedSchemeData' => null, 'merchantAccount' => null, 'reference' => null ]; @@ -68,7 +66,6 @@ class PaymentReversalRequest implements ModelInterface, ArrayAccess, \JsonSerial */ protected static $openAPINullables = [ 'applicationInfo' => false, - 'enhancedSchemeData' => false, 'merchantAccount' => false, 'reference' => false ]; @@ -160,7 +157,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'applicationInfo' => 'applicationInfo', - 'enhancedSchemeData' => 'enhancedSchemeData', 'merchantAccount' => 'merchantAccount', 'reference' => 'reference' ]; @@ -172,7 +168,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'applicationInfo' => 'setApplicationInfo', - 'enhancedSchemeData' => 'setEnhancedSchemeData', 'merchantAccount' => 'setMerchantAccount', 'reference' => 'setReference' ]; @@ -184,7 +179,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'applicationInfo' => 'getApplicationInfo', - 'enhancedSchemeData' => 'getEnhancedSchemeData', 'merchantAccount' => 'getMerchantAccount', 'reference' => 'getReference' ]; @@ -247,7 +241,6 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('applicationInfo', $data ?? [], null); - $this->setIfExists('enhancedSchemeData', $data ?? [], null); $this->setIfExists('merchantAccount', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); } @@ -321,30 +314,6 @@ public function setApplicationInfo($applicationInfo) return $this; } - /** - * Gets enhancedSchemeData - * - * @return \Adyen\Model\Checkout\EnhancedSchemeData|null - */ - public function getEnhancedSchemeData() - { - return $this->container['enhancedSchemeData']; - } - - /** - * Sets enhancedSchemeData - * - * @param \Adyen\Model\Checkout\EnhancedSchemeData|null $enhancedSchemeData enhancedSchemeData - * - * @return self - */ - public function setEnhancedSchemeData($enhancedSchemeData) - { - $this->container['enhancedSchemeData'] = $enhancedSchemeData; - - return $this; - } - /** * Gets merchantAccount * diff --git a/src/Adyen/Model/Checkout/PaymentReversalResponse.php b/src/Adyen/Model/Checkout/PaymentReversalResponse.php index 13c3e5fe4..6a97f5647 100644 --- a/src/Adyen/Model/Checkout/PaymentReversalResponse.php +++ b/src/Adyen/Model/Checkout/PaymentReversalResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidations.php b/src/Adyen/Model/Checkout/PaymentValidations.php index f3a565b26..3988d7f82 100644 --- a/src/Adyen/Model/Checkout/PaymentValidations.php +++ b/src/Adyen/Model/Checkout/PaymentValidations.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameRequest.php b/src/Adyen/Model/Checkout/PaymentValidationsNameRequest.php index 6f1d7446d..f128bf631 100644 --- a/src/Adyen/Model/Checkout/PaymentValidationsNameRequest.php +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php index d525ed53b..2c3dd4a40 100644 --- a/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php index d7a8b5867..ae82388ee 100644 --- a/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResultRawResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php index c23f5d806..ae1ad9983 100644 --- a/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php +++ b/src/Adyen/Model/Checkout/PaymentValidationsNameResultResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaymentValidationsResponse.php b/src/Adyen/Model/Checkout/PaymentValidationsResponse.php index cf4246d95..d1e7311f5 100644 --- a/src/Adyen/Model/Checkout/PaymentValidationsResponse.php +++ b/src/Adyen/Model/Checkout/PaymentValidationsResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PaypalUpdateOrderRequest.php b/src/Adyen/Model/Checkout/PaypalUpdateOrderRequest.php index a7886a12d..83d4e764e 100644 --- a/src/Adyen/Model/Checkout/PaypalUpdateOrderRequest.php +++ b/src/Adyen/Model/Checkout/PaypalUpdateOrderRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,10 +42,13 @@ class PaypalUpdateOrderRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPITypes = [ 'amount' => '\Adyen\Model\Checkout\Amount', + 'deliveryAddress' => '\Adyen\Model\Checkout\DeliveryAddress', 'deliveryMethods' => '\Adyen\Model\Checkout\DeliveryMethod[]', + 'discountAmount' => '\Adyen\Model\Checkout\Amount', 'paymentData' => 'string', 'pspReference' => 'string', 'sessionId' => 'string', + 'shippingAmount' => '\Adyen\Model\Checkout\Amount', 'taxTotal' => '\Adyen\Model\Checkout\TaxTotal' ]; @@ -58,10 +61,13 @@ class PaypalUpdateOrderRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPIFormats = [ 'amount' => null, + 'deliveryAddress' => null, 'deliveryMethods' => null, + 'discountAmount' => null, 'paymentData' => null, 'pspReference' => null, 'sessionId' => null, + 'shippingAmount' => null, 'taxTotal' => null ]; @@ -72,10 +78,13 @@ class PaypalUpdateOrderRequest implements ModelInterface, ArrayAccess, \JsonSeri */ protected static $openAPINullables = [ 'amount' => false, + 'deliveryAddress' => false, 'deliveryMethods' => false, + 'discountAmount' => false, 'paymentData' => false, 'pspReference' => false, 'sessionId' => false, + 'shippingAmount' => false, 'taxTotal' => false ]; @@ -166,10 +175,13 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'amount' => 'amount', + 'deliveryAddress' => 'deliveryAddress', 'deliveryMethods' => 'deliveryMethods', + 'discountAmount' => 'discountAmount', 'paymentData' => 'paymentData', 'pspReference' => 'pspReference', 'sessionId' => 'sessionId', + 'shippingAmount' => 'shippingAmount', 'taxTotal' => 'taxTotal' ]; @@ -180,10 +192,13 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'amount' => 'setAmount', + 'deliveryAddress' => 'setDeliveryAddress', 'deliveryMethods' => 'setDeliveryMethods', + 'discountAmount' => 'setDiscountAmount', 'paymentData' => 'setPaymentData', 'pspReference' => 'setPspReference', 'sessionId' => 'setSessionId', + 'shippingAmount' => 'setShippingAmount', 'taxTotal' => 'setTaxTotal' ]; @@ -194,10 +209,13 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'amount' => 'getAmount', + 'deliveryAddress' => 'getDeliveryAddress', 'deliveryMethods' => 'getDeliveryMethods', + 'discountAmount' => 'getDiscountAmount', 'paymentData' => 'getPaymentData', 'pspReference' => 'getPspReference', 'sessionId' => 'getSessionId', + 'shippingAmount' => 'getShippingAmount', 'taxTotal' => 'getTaxTotal' ]; @@ -259,10 +277,13 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('amount', $data ?? [], null); + $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('deliveryMethods', $data ?? [], null); + $this->setIfExists('discountAmount', $data ?? [], null); $this->setIfExists('paymentData', $data ?? [], null); $this->setIfExists('pspReference', $data ?? [], null); $this->setIfExists('sessionId', $data ?? [], null); + $this->setIfExists('shippingAmount', $data ?? [], null); $this->setIfExists('taxTotal', $data ?? [], null); } @@ -332,6 +353,30 @@ public function setAmount($amount) return $this; } + /** + * Gets deliveryAddress + * + * @return \Adyen\Model\Checkout\DeliveryAddress|null + */ + public function getDeliveryAddress() + { + return $this->container['deliveryAddress']; + } + + /** + * Sets deliveryAddress + * + * @param \Adyen\Model\Checkout\DeliveryAddress|null $deliveryAddress deliveryAddress + * + * @return self + */ + public function setDeliveryAddress($deliveryAddress) + { + $this->container['deliveryAddress'] = $deliveryAddress; + + return $this; + } + /** * Gets deliveryMethods * @@ -356,6 +401,30 @@ public function setDeliveryMethods($deliveryMethods) return $this; } + /** + * Gets discountAmount + * + * @return \Adyen\Model\Checkout\Amount|null + */ + public function getDiscountAmount() + { + return $this->container['discountAmount']; + } + + /** + * Sets discountAmount + * + * @param \Adyen\Model\Checkout\Amount|null $discountAmount discountAmount + * + * @return self + */ + public function setDiscountAmount($discountAmount) + { + $this->container['discountAmount'] = $discountAmount; + + return $this; + } + /** * Gets paymentData * @@ -428,6 +497,30 @@ public function setSessionId($sessionId) return $this; } + /** + * Gets shippingAmount + * + * @return \Adyen\Model\Checkout\Amount|null + */ + public function getShippingAmount() + { + return $this->container['shippingAmount']; + } + + /** + * Sets shippingAmount + * + * @param \Adyen\Model\Checkout\Amount|null $shippingAmount shippingAmount + * + * @return self + */ + public function setShippingAmount($shippingAmount) + { + $this->container['shippingAmount'] = $shippingAmount; + + return $this; + } + /** * Gets taxTotal * diff --git a/src/Adyen/Model/Checkout/PaypalUpdateOrderResponse.php b/src/Adyen/Model/Checkout/PaypalUpdateOrderResponse.php index e720340a7..bef05efdc 100644 --- a/src/Adyen/Model/Checkout/PaypalUpdateOrderResponse.php +++ b/src/Adyen/Model/Checkout/PaypalUpdateOrderResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Phone.php b/src/Adyen/Model/Checkout/Phone.php index dfa8dd78c..dbf6b9981 100644 --- a/src/Adyen/Model/Checkout/Phone.php +++ b/src/Adyen/Model/Checkout/Phone.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PickupInfo.php b/src/Adyen/Model/Checkout/PickupInfo.php new file mode 100644 index 000000000..e525862c9 --- /dev/null +++ b/src/Adyen/Model/Checkout/PickupInfo.php @@ -0,0 +1,497 @@ + + */ +class PickupInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'PickupInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'city' => 'string', + 'countryCode' => 'string', + 'date' => '\DateTime', + 'stateOrProvince' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'city' => null, + 'countryCode' => null, + 'date' => 'date', + 'stateOrProvince' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'city' => false, + 'countryCode' => false, + 'date' => false, + 'stateOrProvince' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'city' => 'city', + 'countryCode' => 'countryCode', + 'date' => 'date', + 'stateOrProvince' => 'stateOrProvince' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'city' => 'setCity', + 'countryCode' => 'setCountryCode', + 'date' => 'setDate', + 'stateOrProvince' => 'setStateOrProvince' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'city' => 'getCity', + 'countryCode' => 'getCountryCode', + 'date' => 'getDate', + 'stateOrProvince' => 'getStateOrProvince' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('city', $data ?? [], null); + $this->setIfExists('countryCode', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); + $this->setIfExists('stateOrProvince', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city The city where the car is rented. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.locationCity` + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets countryCode + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['countryCode']; + } + + /** + * Sets countryCode + * + * @param string|null $countryCode The country where the car is rented, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * maxLength: 2 characters * **additionalData key:** `carRental.locationCountry` + * + * @return self + */ + public function setCountryCode($countryCode) + { + $this->container['countryCode'] = $countryCode; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime|null + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime|null $date The pick-up date. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `carRental.checkOutDate` + * + * @return self + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets stateOrProvince + * + * @return string|null + */ + public function getStateOrProvince() + { + return $this->container['stateOrProvince']; + } + + /** + * Sets stateOrProvince + * + * @param string|null $stateOrProvince The state or province where the car is rented. * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.locationStateProvince` + * + * @return self + */ + public function setStateOrProvince($stateOrProvince) + { + $this->container['stateOrProvince'] = $stateOrProvince; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/PixDetails.php b/src/Adyen/Model/Checkout/PixDetails.php index 2790e7503..ea985a1b7 100644 --- a/src/Adyen/Model/Checkout/PixDetails.php +++ b/src/Adyen/Model/Checkout/PixDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PixPayByBankDetails.php b/src/Adyen/Model/Checkout/PixPayByBankDetails.php index ff875da6c..37bec5c81 100644 --- a/src/Adyen/Model/Checkout/PixPayByBankDetails.php +++ b/src/Adyen/Model/Checkout/PixPayByBankDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PixPayByBankRiskSignals.php b/src/Adyen/Model/Checkout/PixPayByBankRiskSignals.php index b492afff7..7bb42d4a4 100644 --- a/src/Adyen/Model/Checkout/PixPayByBankRiskSignals.php +++ b/src/Adyen/Model/Checkout/PixPayByBankRiskSignals.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PixRecurring.php b/src/Adyen/Model/Checkout/PixRecurring.php index 4bd2132a2..7e84c3266 100644 --- a/src/Adyen/Model/Checkout/PixRecurring.php +++ b/src/Adyen/Model/Checkout/PixRecurring.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PlatformChargebackLogic.php b/src/Adyen/Model/Checkout/PlatformChargebackLogic.php index d593fe7fb..df038c5af 100644 --- a/src/Adyen/Model/Checkout/PlatformChargebackLogic.php +++ b/src/Adyen/Model/Checkout/PlatformChargebackLogic.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/PseDetails.php b/src/Adyen/Model/Checkout/PseDetails.php index eb99542df..3e426d3ca 100644 --- a/src/Adyen/Model/Checkout/PseDetails.php +++ b/src/Adyen/Model/Checkout/PseDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/RakutenPayDetails.php b/src/Adyen/Model/Checkout/RakutenPayDetails.php index d3301f22f..9333dfa21 100644 --- a/src/Adyen/Model/Checkout/RakutenPayDetails.php +++ b/src/Adyen/Model/Checkout/RakutenPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/RatepayDetails.php b/src/Adyen/Model/Checkout/RatepayDetails.php index 13a5c2f04..8959cbe25 100644 --- a/src/Adyen/Model/Checkout/RatepayDetails.php +++ b/src/Adyen/Model/Checkout/RatepayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Recurring.php b/src/Adyen/Model/Checkout/Recurring.php index 831f2fc28..7a23c62f2 100644 --- a/src/Adyen/Model/Checkout/Recurring.php +++ b/src/Adyen/Model/Checkout/Recurring.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/RentalSurcharges.php b/src/Adyen/Model/Checkout/RentalSurcharges.php new file mode 100644 index 000000000..0080c55a8 --- /dev/null +++ b/src/Adyen/Model/Checkout/RentalSurcharges.php @@ -0,0 +1,466 @@ + + */ +class RentalSurcharges implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'RentalSurcharges'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'fuel' => 'int', + 'insurance' => 'int', + 'oneWayDropOff' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'fuel' => 'int64', + 'insurance' => 'int64', + 'oneWayDropOff' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'fuel' => false, + 'insurance' => false, + 'oneWayDropOff' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'fuel' => 'fuel', + 'insurance' => 'insurance', + 'oneWayDropOff' => 'oneWayDropOff' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'fuel' => 'setFuel', + 'insurance' => 'setInsurance', + 'oneWayDropOff' => 'setOneWayDropOff' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'fuel' => 'getFuel', + 'insurance' => 'getInsurance', + 'oneWayDropOff' => 'getOneWayDropOff' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('fuel', $data ?? [], null); + $this->setIfExists('insurance', $data ?? [], null); + $this->setIfExists('oneWayDropOff', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets fuel + * + * @return int|null + */ + public function getFuel() + { + return $this->container['fuel']; + } + + /** + * Sets fuel + * + * @param int|null $fuel The fuel charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `carRental.fuelCharges` + * + * @return self + */ + public function setFuel($fuel) + { + $this->container['fuel'] = $fuel; + + return $this; + } + + /** + * Gets insurance + * + * @return int|null + */ + public function getInsurance() + { + return $this->container['insurance']; + } + + /** + * Sets insurance + * + * @param int|null $insurance Any insurance charges associated with the rental, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `carRental.insuranceCharges` + * + * @return self + */ + public function setInsurance($insurance) + { + $this->container['insurance'] = $insurance; + + return $this; + } + + /** + * Gets oneWayDropOff + * + * @return int|null + */ + public function getOneWayDropOff() + { + return $this->container['oneWayDropOff']; + } + + /** + * Sets oneWayDropOff + * + * @param int|null $oneWayDropOff The charge for not returning a car to the original rental location, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `carRental.oneWayDropOffCharges` + * + * @return self + */ + public function setOneWayDropOff($oneWayDropOff) + { + $this->container['oneWayDropOff'] = $oneWayDropOff; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalData3DSecure.php b/src/Adyen/Model/Checkout/ResponseAdditionalData3DSecure.php index d500835c5..d64dea0e0 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalData3DSecure.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalData3DSecure.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataBillingAddress.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataBillingAddress.php index 228cb3a90..1c23dc5de 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataBillingAddress.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataBillingAddress.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataCard.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataCard.php index a066f9373..986654425 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataCard.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataCard.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataCommon.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataCommon.php index 78d42893a..0cbbb5400 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataCommon.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataCommon.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataDomesticError.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataDomesticError.php index e84592802..71fc2df09 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataDomesticError.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataDomesticError.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataInstallments.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataInstallments.php index efdcaca26..b48e0abe4 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataInstallments.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataInstallments.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataNetworkTokens.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataNetworkTokens.php index cb7ffa988..0679c46f3 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataNetworkTokens.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataNetworkTokens.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataOpi.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataOpi.php index 39542c0f7..af4baed00 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataOpi.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataOpi.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php index c38080b75..63c0696b0 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataSepa.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php b/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php index bd559d77e..d9cf2fce1 100644 --- a/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php +++ b/src/Adyen/Model/Checkout/ResponseAdditionalDataSwish.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ResponsePaymentMethod.php b/src/Adyen/Model/Checkout/ResponsePaymentMethod.php index 3803fb736..4e29d5f84 100644 --- a/src/Adyen/Model/Checkout/ResponsePaymentMethod.php +++ b/src/Adyen/Model/Checkout/ResponsePaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Result.php b/src/Adyen/Model/Checkout/Result.php index 5e109aed5..a8b5a4031 100644 --- a/src/Adyen/Model/Checkout/Result.php +++ b/src/Adyen/Model/Checkout/Result.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ReturnInfo.php b/src/Adyen/Model/Checkout/ReturnInfo.php new file mode 100644 index 000000000..83ca2e129 --- /dev/null +++ b/src/Adyen/Model/Checkout/ReturnInfo.php @@ -0,0 +1,528 @@ + + */ +class ReturnInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ReturnInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'city' => 'string', + 'countryCode' => 'string', + 'date' => '\DateTime', + 'locationId' => 'string', + 'stateOrProvince' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'city' => null, + 'countryCode' => null, + 'date' => 'date', + 'locationId' => null, + 'stateOrProvince' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'city' => false, + 'countryCode' => false, + 'date' => false, + 'locationId' => false, + 'stateOrProvince' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'city' => 'city', + 'countryCode' => 'countryCode', + 'date' => 'date', + 'locationId' => 'locationId', + 'stateOrProvince' => 'stateOrProvince' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'city' => 'setCity', + 'countryCode' => 'setCountryCode', + 'date' => 'setDate', + 'locationId' => 'setLocationId', + 'stateOrProvince' => 'setStateOrProvince' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'city' => 'getCity', + 'countryCode' => 'getCountryCode', + 'date' => 'getDate', + 'locationId' => 'getLocationId', + 'stateOrProvince' => 'getStateOrProvince' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('city', $data ?? [], null); + $this->setIfExists('countryCode', $data ?? [], null); + $this->setIfExists('date', $data ?? [], null); + $this->setIfExists('locationId', $data ?? [], null); + $this->setIfExists('stateOrProvince', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets city + * + * @return string|null + */ + public function getCity() + { + return $this->container['city']; + } + + /** + * Sets city + * + * @param string|null $city The city where the car must be returned. * Format: ASCII * maxLength: 18 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.returnCity` + * + * @return self + */ + public function setCity($city) + { + $this->container['city'] = $city; + + return $this; + } + + /** + * Gets countryCode + * + * @return string|null + */ + public function getCountryCode() + { + return $this->container['countryCode']; + } + + /** + * Sets countryCode + * + * @param string|null $countryCode The country where the car must be returned, in [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) format. * maxLength: 2 characters * **additionalData key:** `carRental.returnCountry` + * + * @return self + */ + public function setCountryCode($countryCode) + { + $this->container['countryCode'] = $countryCode; + + return $this; + } + + /** + * Gets date + * + * @return \DateTime|null + */ + public function getDate() + { + return $this->container['date']; + } + + /** + * Sets date + * + * @param \DateTime|null $date The date by which the car must be returned. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `carRental.returnDate` + * + * @return self + */ + public function setDate($date) + { + $this->container['date'] = $date; + + return $this; + } + + /** + * Gets locationId + * + * @return string|null + */ + public function getLocationId() + { + return $this->container['locationId']; + } + + /** + * Sets locationId + * + * @param string|null $locationId The agency code, phone number, or address abbreviation. * Format: ASCII * maxLength: 10 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.returnLocationId` + * + * @return self + */ + public function setLocationId($locationId) + { + $this->container['locationId'] = $locationId; + + return $this; + } + + /** + * Gets stateOrProvince + * + * @return string|null + */ + public function getStateOrProvince() + { + return $this->container['stateOrProvince']; + } + + /** + * Sets stateOrProvince + * + * @param string|null $stateOrProvince The state or province where the car must be returned. * Format: ASCII * maxLength: 3 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `carRental.returnStateProvince` + * + * @return self + */ + public function setStateOrProvince($stateOrProvince) + { + $this->container['stateOrProvince'] = $stateOrProvince; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/RiskData.php b/src/Adyen/Model/Checkout/RiskData.php index 32ff0e385..4b897ba66 100644 --- a/src/Adyen/Model/Checkout/RiskData.php +++ b/src/Adyen/Model/Checkout/RiskData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/RivertyDetails.php b/src/Adyen/Model/Checkout/RivertyDetails.php index c38b72f06..5cdde3ab2 100644 --- a/src/Adyen/Model/Checkout/RivertyDetails.php +++ b/src/Adyen/Model/Checkout/RivertyDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -46,6 +46,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => 'string', 'deviceFingerprint' => 'string', 'iban' => 'string', + 'merchantData' => 'string', 'personalDetails' => 'string', 'recurringDetailReference' => 'string', 'sdkData' => 'string', @@ -67,6 +68,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => null, 'deviceFingerprint' => null, 'iban' => null, + 'merchantData' => null, 'personalDetails' => null, 'recurringDetailReference' => null, 'sdkData' => null, @@ -86,6 +88,7 @@ class RivertyDetails implements ModelInterface, ArrayAccess, \JsonSerializable 'deliveryAddress' => false, 'deviceFingerprint' => false, 'iban' => false, + 'merchantData' => false, 'personalDetails' => false, 'recurringDetailReference' => false, 'sdkData' => false, @@ -185,6 +188,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'deliveryAddress', 'deviceFingerprint' => 'deviceFingerprint', 'iban' => 'iban', + 'merchantData' => 'merchantData', 'personalDetails' => 'personalDetails', 'recurringDetailReference' => 'recurringDetailReference', 'sdkData' => 'sdkData', @@ -204,6 +208,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'setDeliveryAddress', 'deviceFingerprint' => 'setDeviceFingerprint', 'iban' => 'setIban', + 'merchantData' => 'setMerchantData', 'personalDetails' => 'setPersonalDetails', 'recurringDetailReference' => 'setRecurringDetailReference', 'sdkData' => 'setSdkData', @@ -223,6 +228,7 @@ public function isNullableSetToNull(string $property): bool 'deliveryAddress' => 'getDeliveryAddress', 'deviceFingerprint' => 'getDeviceFingerprint', 'iban' => 'getIban', + 'merchantData' => 'getMerchantData', 'personalDetails' => 'getPersonalDetails', 'recurringDetailReference' => 'getRecurringDetailReference', 'sdkData' => 'getSdkData', @@ -311,6 +317,7 @@ public function __construct(?array $data = null) $this->setIfExists('deliveryAddress', $data ?? [], null); $this->setIfExists('deviceFingerprint', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); + $this->setIfExists('merchantData', $data ?? [], null); $this->setIfExists('personalDetails', $data ?? [], null); $this->setIfExists('recurringDetailReference', $data ?? [], null); $this->setIfExists('sdkData', $data ?? [], null); @@ -493,6 +500,30 @@ public function setIban($iban) return $this; } + /** + * Gets merchantData + * + * @return string|null + */ + public function getMerchantData() + { + return $this->container['merchantData']; + } + + /** + * Sets merchantData + * + * @param string|null $merchantData Base64-encoded merchant metadata (Extra Merchant Data) forwarded to Riverty at authorization. + * + * @return self + */ + public function setMerchantData($merchantData) + { + $this->container['merchantData'] = $merchantData; + + return $this; + } + /** * Gets personalDetails * diff --git a/src/Adyen/Model/Checkout/Room.php b/src/Adyen/Model/Checkout/Room.php new file mode 100644 index 000000000..135a35f59 --- /dev/null +++ b/src/Adyen/Model/Checkout/Room.php @@ -0,0 +1,435 @@ + + */ +class Room implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'Room'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'numberOfNights' => 'int', + 'rate' => 'int' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'numberOfNights' => 'int32', + 'rate' => 'int64' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'numberOfNights' => true, + 'rate' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'numberOfNights' => 'numberOfNights', + 'rate' => 'rate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'numberOfNights' => 'setNumberOfNights', + 'rate' => 'setRate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'numberOfNights' => 'getNumberOfNights', + 'rate' => 'getRate' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('numberOfNights', $data ?? [], null); + $this->setIfExists('rate', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets numberOfNights + * + * @return int|null + */ + public function getNumberOfNights() + { + return $this->container['numberOfNights']; + } + + /** + * Sets numberOfNights + * + * @param int|null $numberOfNights The total number of nights the room is booked for. * Format: Numeric * Must be a number between 1 and 99 * **additionalData key:** `lodging.room[N].numberOfNights` + * + * @return self + */ + public function setNumberOfNights($numberOfNights) + { + $this->container['numberOfNights'] = $numberOfNights; + + return $this; + } + + /** + * Gets rate + * + * @return int|null + */ + public function getRate() + { + return $this->container['rate']; + } + + /** + * Sets rate + * + * @param int|null $rate Room rate per night, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `lodging.room[N].rate` + * + * @return self + */ + public function setRate($rate) + { + $this->container['rate'] = $rate; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/SDKEphemPubKey.php b/src/Adyen/Model/Checkout/SDKEphemPubKey.php index ee2508e81..5e7fc4894 100644 --- a/src/Adyen/Model/Checkout/SDKEphemPubKey.php +++ b/src/Adyen/Model/Checkout/SDKEphemPubKey.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/SamsungPayDetails.php b/src/Adyen/Model/Checkout/SamsungPayDetails.php index 5e38cbf1a..8f7c124b5 100644 --- a/src/Adyen/Model/Checkout/SamsungPayDetails.php +++ b/src/Adyen/Model/Checkout/SamsungPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ScreenDimensions.php b/src/Adyen/Model/Checkout/ScreenDimensions.php index b2e4a6ce7..803603174 100644 --- a/src/Adyen/Model/Checkout/ScreenDimensions.php +++ b/src/Adyen/Model/Checkout/ScreenDimensions.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php b/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php index d7879230d..6b6dc1fdb 100644 --- a/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php +++ b/src/Adyen/Model/Checkout/SepaDirectDebitDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -328,12 +328,6 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['iban'] === null) { - $invalidProperties[] = "'iban' can't be null"; - } - if ($this->container['ownerName'] === null) { - $invalidProperties[] = "'ownerName' can't be null"; - } $allowedValues = $this->getTypeAllowableValues(); if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { $invalidProperties[] = sprintf( @@ -409,7 +403,7 @@ public function setDueDate($dueDate) /** * Gets iban * - * @return string + * @return string|null */ public function getIban() { @@ -419,7 +413,7 @@ public function getIban() /** * Sets iban * - * @param string $iban The International Bank Account Number (IBAN). + * @param string|null $iban The International Bank Account Number (IBAN). * * @return self */ @@ -433,7 +427,7 @@ public function setIban($iban) /** * Gets ownerName * - * @return string + * @return string|null */ public function getOwnerName() { @@ -443,7 +437,7 @@ public function getOwnerName() /** * Sets ownerName * - * @param string $ownerName The name of the bank account holder. + * @param string|null $ownerName The name of the bank account holder. * * @return self */ diff --git a/src/Adyen/Model/Checkout/SepaDirectDebitDonations.php b/src/Adyen/Model/Checkout/SepaDirectDebitDonations.php new file mode 100644 index 000000000..4bba1527d --- /dev/null +++ b/src/Adyen/Model/Checkout/SepaDirectDebitDonations.php @@ -0,0 +1,561 @@ + + */ +class SepaDirectDebitDonations implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'SepaDirectDebitDonations'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'checkoutAttemptId' => 'string', + 'recurringDetailReference' => 'string', + 'sdkData' => 'string', + 'storedPaymentMethodId' => 'string', + 'type' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'checkoutAttemptId' => null, + 'recurringDetailReference' => null, + 'sdkData' => null, + 'storedPaymentMethodId' => null, + 'type' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'checkoutAttemptId' => false, + 'recurringDetailReference' => false, + 'sdkData' => false, + 'storedPaymentMethodId' => false, + 'type' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'checkoutAttemptId' => 'checkoutAttemptId', + 'recurringDetailReference' => 'recurringDetailReference', + 'sdkData' => 'sdkData', + 'storedPaymentMethodId' => 'storedPaymentMethodId', + 'type' => 'type' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'checkoutAttemptId' => 'setCheckoutAttemptId', + 'recurringDetailReference' => 'setRecurringDetailReference', + 'sdkData' => 'setSdkData', + 'storedPaymentMethodId' => 'setStoredPaymentMethodId', + 'type' => 'setType' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'checkoutAttemptId' => 'getCheckoutAttemptId', + 'recurringDetailReference' => 'getRecurringDetailReference', + 'sdkData' => 'getSdkData', + 'storedPaymentMethodId' => 'getStoredPaymentMethodId', + 'type' => 'getType' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + public const TYPE_SEPADIRECTDEBIT = 'sepadirectdebit'; + + /** + * Gets allowable values of the enum + * + * @return string[] + */ + public function getTypeAllowableValues() + { + return [ + self::TYPE_SEPADIRECTDEBIT, + ]; + } + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('checkoutAttemptId', $data ?? [], null); + $this->setIfExists('recurringDetailReference', $data ?? [], null); + $this->setIfExists('sdkData', $data ?? [], null); + $this->setIfExists('storedPaymentMethodId', $data ?? [], null); + $this->setIfExists('type', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + $allowedValues = $this->getTypeAllowableValues(); + if (!is_null($this->container['type']) && !in_array($this->container['type'], $allowedValues, true)) { + $invalidProperties[] = sprintf( + "invalid value '%s' for 'type', must be one of '%s'", + $this->container['type'], + implode("', '", $allowedValues) + ); + } + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets checkoutAttemptId + * + * @return string|null + */ + public function getCheckoutAttemptId() + { + return $this->container['checkoutAttemptId']; + } + + /** + * Sets checkoutAttemptId + * + * @param string|null $checkoutAttemptId The checkout attempt identifier. + * + * @return self + */ + public function setCheckoutAttemptId($checkoutAttemptId) + { + $this->container['checkoutAttemptId'] = $checkoutAttemptId; + + return $this; + } + + /** + * Gets recurringDetailReference + * + * @return string|null + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function getRecurringDetailReference() + { + return $this->container['recurringDetailReference']; + } + + /** + * Sets recurringDetailReference + * + * @param string|null $recurringDetailReference This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + * @deprecated since Adyen Checkout API v49. "Use `storedPaymentMethodId` instead." + */ + public function setRecurringDetailReference($recurringDetailReference) + { + $this->container['recurringDetailReference'] = $recurringDetailReference; + + return $this; + } + + /** + * Gets sdkData + * + * @return string|null + */ + public function getSdkData() + { + return $this->container['sdkData']; + } + + /** + * Sets sdkData + * + * @param string|null $sdkData Base64-encoded JSON object containing SDK related parameters required by the SDK + * + * @return self + */ + public function setSdkData($sdkData) + { + $this->container['sdkData'] = $sdkData; + + return $this; + } + + /** + * Gets storedPaymentMethodId + * + * @return string|null + */ + public function getStoredPaymentMethodId() + { + return $this->container['storedPaymentMethodId']; + } + + /** + * Sets storedPaymentMethodId + * + * @param string|null $storedPaymentMethodId This is the `recurringDetailReference` returned in the response when you created the token. + * + * @return self + */ + public function setStoredPaymentMethodId($storedPaymentMethodId) + { + $this->container['storedPaymentMethodId'] = $storedPaymentMethodId; + + return $this; + } + + /** + * Gets type + * + * @return string|null + */ + public function getType() + { + return $this->container['type']; + } + + /** + * Sets type + * + * @param string|null $type **sepadirectdebit** + * + * @return self + */ + public function setType($type) + { + $allowedValues = $this->getTypeAllowableValues(); + if (!in_array($type, $allowedValues, true)) { + error_log( + sprintf( + "type: unexpected enum value '%s' - Supported values are [%s]", + $type, + implode(', ', $allowedValues) + ) + ); + } + $this->container['type'] = $type; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ServiceError.php b/src/Adyen/Model/Checkout/ServiceError.php index 597216f2c..b1c37b052 100644 --- a/src/Adyen/Model/Checkout/ServiceError.php +++ b/src/Adyen/Model/Checkout/ServiceError.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/InvalidField.php b/src/Adyen/Model/Checkout/SessionAmountUpdate.php similarity index 85% rename from src/Adyen/Model/Checkout/InvalidField.php rename to src/Adyen/Model/Checkout/SessionAmountUpdate.php index b6d7b82e2..96ce109a2 100644 --- a/src/Adyen/Model/Checkout/InvalidField.php +++ b/src/Adyen/Model/Checkout/SessionAmountUpdate.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -19,12 +19,12 @@ use Adyen\Model\Checkout\ObjectSerializer; /** - * InvalidField Class Doc Comment + * SessionAmountUpdate Class Doc Comment * * @package Adyen * @implements ArrayAccess */ -class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable +class SessionAmountUpdate implements ModelInterface, ArrayAccess, \JsonSerializable { public const DISCRIMINATOR = null; @@ -33,7 +33,7 @@ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable * * @var string */ - protected static $openAPIModelName = 'InvalidField'; + protected static $openAPIModelName = 'SessionAmountUpdate'; /** * Array of property to type mappings. Used for (de)serialization @@ -41,9 +41,8 @@ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable * @var string[] */ protected static $openAPITypes = [ - 'message' => 'string', - 'name' => 'string', - 'value' => 'string' + 'currency' => 'string', + 'value' => 'int' ]; /** @@ -54,9 +53,8 @@ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable * @psalm-var array */ protected static $openAPIFormats = [ - 'message' => null, - 'name' => null, - 'value' => null + 'currency' => null, + 'value' => 'int64' ]; /** @@ -65,8 +63,7 @@ class InvalidField implements ModelInterface, ArrayAccess, \JsonSerializable * @var boolean[] */ protected static $openAPINullables = [ - 'message' => false, - 'name' => false, + 'currency' => false, 'value' => false ]; @@ -156,8 +153,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $attributeMap = [ - 'message' => 'message', - 'name' => 'name', + 'currency' => 'currency', 'value' => 'value' ]; @@ -167,8 +163,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $setters = [ - 'message' => 'setMessage', - 'name' => 'setName', + 'currency' => 'setCurrency', 'value' => 'setValue' ]; @@ -178,8 +173,7 @@ public function isNullableSetToNull(string $property): bool * @var string[] */ protected static $getters = [ - 'message' => 'getMessage', - 'name' => 'getName', + 'currency' => 'getCurrency', 'value' => 'getValue' ]; @@ -240,8 +234,7 @@ public function getModelName() */ public function __construct(?array $data = null) { - $this->setIfExists('message', $data ?? [], null); - $this->setIfExists('name', $data ?? [], null); + $this->setIfExists('currency', $data ?? [], null); $this->setIfExists('value', $data ?? [], null); } @@ -272,11 +265,8 @@ public function listInvalidProperties() { $invalidProperties = []; - if ($this->container['message'] === null) { - $invalidProperties[] = "'message' can't be null"; - } - if ($this->container['name'] === null) { - $invalidProperties[] = "'name' can't be null"; + if ($this->container['currency'] === null) { + $invalidProperties[] = "'currency' can't be null"; } if ($this->container['value'] === null) { $invalidProperties[] = "'value' can't be null"; @@ -297,49 +287,25 @@ public function valid() /** - * Gets message + * Gets currency * * @return string */ - public function getMessage() + public function getCurrency() { - return $this->container['message']; + return $this->container['currency']; } /** - * Sets message + * Sets currency * - * @param string $message Description of the validation error. + * @param string $currency The three-character [ISO currency code](https://docs.adyen.com/development-resources/currency-codes). * * @return self */ - public function setMessage($message) + public function setCurrency($currency) { - $this->container['message'] = $message; - - return $this; - } - - /** - * Gets name - * - * @return string - */ - public function getName() - { - return $this->container['name']; - } - - /** - * Sets name - * - * @param string $name The field that has an invalid value. - * - * @return self - */ - public function setName($name) - { - $this->container['name'] = $name; + $this->container['currency'] = $currency; return $this; } @@ -347,7 +313,7 @@ public function setName($name) /** * Gets value * - * @return string + * @return int */ public function getValue() { @@ -357,7 +323,7 @@ public function getValue() /** * Sets value * - * @param string $value The invalid value. + * @param int $value The amount of the transaction, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * * @return self */ diff --git a/src/Adyen/Model/Checkout/SessionResultResponse.php b/src/Adyen/Model/Checkout/SessionResultResponse.php index c1653fb32..53878b1d0 100644 --- a/src/Adyen/Model/Checkout/SessionResultResponse.php +++ b/src/Adyen/Model/Checkout/SessionResultResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ShopperIdPaymentMethod.php b/src/Adyen/Model/Checkout/ShopperIdPaymentMethod.php index 53572bb3a..d147db111 100644 --- a/src/Adyen/Model/Checkout/ShopperIdPaymentMethod.php +++ b/src/Adyen/Model/Checkout/ShopperIdPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ShopperInteractionDevice.php b/src/Adyen/Model/Checkout/ShopperInteractionDevice.php index 9352797a0..6fb02f652 100644 --- a/src/Adyen/Model/Checkout/ShopperInteractionDevice.php +++ b/src/Adyen/Model/Checkout/ShopperInteractionDevice.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ShopperName.php b/src/Adyen/Model/Checkout/ShopperName.php index 030316823..4060645ce 100644 --- a/src/Adyen/Model/Checkout/ShopperName.php +++ b/src/Adyen/Model/Checkout/ShopperName.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ShopperTaxInfo.php b/src/Adyen/Model/Checkout/ShopperTaxInfo.php index 014b67733..a370db3b7 100644 --- a/src/Adyen/Model/Checkout/ShopperTaxInfo.php +++ b/src/Adyen/Model/Checkout/ShopperTaxInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Split.php b/src/Adyen/Model/Checkout/Split.php index 1e1d7d42a..4c4765442 100644 --- a/src/Adyen/Model/Checkout/Split.php +++ b/src/Adyen/Model/Checkout/Split.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/SplitAmount.php b/src/Adyen/Model/Checkout/SplitAmount.php index 21605262d..07ef8db87 100644 --- a/src/Adyen/Model/Checkout/SplitAmount.php +++ b/src/Adyen/Model/Checkout/SplitAmount.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/StandalonePaymentCancelRequest.php b/src/Adyen/Model/Checkout/StandalonePaymentCancelRequest.php index 6612d4157..0cc298f36 100644 --- a/src/Adyen/Model/Checkout/StandalonePaymentCancelRequest.php +++ b/src/Adyen/Model/Checkout/StandalonePaymentCancelRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -42,7 +42,6 @@ class StandalonePaymentCancelRequest implements ModelInterface, ArrayAccess, \Js */ protected static $openAPITypes = [ 'applicationInfo' => '\Adyen\Model\Checkout\ApplicationInfo', - 'enhancedSchemeData' => '\Adyen\Model\Checkout\EnhancedSchemeData', 'merchantAccount' => 'string', 'paymentReference' => 'string', 'reference' => 'string' @@ -57,7 +56,6 @@ class StandalonePaymentCancelRequest implements ModelInterface, ArrayAccess, \Js */ protected static $openAPIFormats = [ 'applicationInfo' => null, - 'enhancedSchemeData' => null, 'merchantAccount' => null, 'paymentReference' => null, 'reference' => null @@ -70,7 +68,6 @@ class StandalonePaymentCancelRequest implements ModelInterface, ArrayAccess, \Js */ protected static $openAPINullables = [ 'applicationInfo' => false, - 'enhancedSchemeData' => false, 'merchantAccount' => false, 'paymentReference' => false, 'reference' => false @@ -163,7 +160,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $attributeMap = [ 'applicationInfo' => 'applicationInfo', - 'enhancedSchemeData' => 'enhancedSchemeData', 'merchantAccount' => 'merchantAccount', 'paymentReference' => 'paymentReference', 'reference' => 'reference' @@ -176,7 +172,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $setters = [ 'applicationInfo' => 'setApplicationInfo', - 'enhancedSchemeData' => 'setEnhancedSchemeData', 'merchantAccount' => 'setMerchantAccount', 'paymentReference' => 'setPaymentReference', 'reference' => 'setReference' @@ -189,7 +184,6 @@ public function isNullableSetToNull(string $property): bool */ protected static $getters = [ 'applicationInfo' => 'getApplicationInfo', - 'enhancedSchemeData' => 'getEnhancedSchemeData', 'merchantAccount' => 'getMerchantAccount', 'paymentReference' => 'getPaymentReference', 'reference' => 'getReference' @@ -253,7 +247,6 @@ public function getModelName() public function __construct(?array $data = null) { $this->setIfExists('applicationInfo', $data ?? [], null); - $this->setIfExists('enhancedSchemeData', $data ?? [], null); $this->setIfExists('merchantAccount', $data ?? [], null); $this->setIfExists('paymentReference', $data ?? [], null); $this->setIfExists('reference', $data ?? [], null); @@ -331,30 +324,6 @@ public function setApplicationInfo($applicationInfo) return $this; } - /** - * Gets enhancedSchemeData - * - * @return \Adyen\Model\Checkout\EnhancedSchemeData|null - */ - public function getEnhancedSchemeData() - { - return $this->container['enhancedSchemeData']; - } - - /** - * Sets enhancedSchemeData - * - * @param \Adyen\Model\Checkout\EnhancedSchemeData|null $enhancedSchemeData enhancedSchemeData - * - * @return self - */ - public function setEnhancedSchemeData($enhancedSchemeData) - { - $this->container['enhancedSchemeData'] = $enhancedSchemeData; - - return $this; - } - /** * Gets merchantAccount * diff --git a/src/Adyen/Model/Checkout/StandalonePaymentCancelResponse.php b/src/Adyen/Model/Checkout/StandalonePaymentCancelResponse.php index c6a9d6a60..0b73b7992 100644 --- a/src/Adyen/Model/Checkout/StandalonePaymentCancelResponse.php +++ b/src/Adyen/Model/Checkout/StandalonePaymentCancelResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethod.php b/src/Adyen/Model/Checkout/StoredPaymentMethod.php index 2288d4b6f..75208491d 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethod.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -47,6 +47,7 @@ class StoredPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializa 'cashtag' => 'string', 'expiryMonth' => 'string', 'expiryYear' => 'string', + 'externalToken' => 'string', 'holderName' => 'string', 'iban' => 'string', 'id' => 'string', @@ -75,6 +76,7 @@ class StoredPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializa 'cashtag' => null, 'expiryMonth' => null, 'expiryYear' => null, + 'externalToken' => null, 'holderName' => null, 'iban' => null, 'id' => null, @@ -101,6 +103,7 @@ class StoredPaymentMethod implements ModelInterface, ArrayAccess, \JsonSerializa 'cashtag' => false, 'expiryMonth' => false, 'expiryYear' => false, + 'externalToken' => false, 'holderName' => false, 'iban' => false, 'id' => false, @@ -207,6 +210,7 @@ public function isNullableSetToNull(string $property): bool 'cashtag' => 'cashtag', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', + 'externalToken' => 'externalToken', 'holderName' => 'holderName', 'iban' => 'iban', 'id' => 'id', @@ -233,6 +237,7 @@ public function isNullableSetToNull(string $property): bool 'cashtag' => 'setCashtag', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', + 'externalToken' => 'setExternalToken', 'holderName' => 'setHolderName', 'iban' => 'setIban', 'id' => 'setId', @@ -259,6 +264,7 @@ public function isNullableSetToNull(string $property): bool 'cashtag' => 'getCashtag', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', + 'externalToken' => 'getExternalToken', 'holderName' => 'getHolderName', 'iban' => 'getIban', 'id' => 'getId', @@ -336,6 +342,7 @@ public function __construct(?array $data = null) $this->setIfExists('cashtag', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); + $this->setIfExists('externalToken', $data ?? [], null); $this->setIfExists('holderName', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); @@ -536,6 +543,30 @@ public function setExpiryYear($expiryYear) return $this; } + /** + * Gets externalToken + * + * @return string|null + */ + public function getExternalToken() + { + return $this->container['externalToken']; + } + + /** + * Sets externalToken + * + * @param string|null $externalToken The token issued by an external tokenization service representing the shopper's payment method + * + * @return self + */ + public function setExternalToken($externalToken) + { + $this->container['externalToken'] = $externalToken; + + return $this; + } + /** * Gets holderName * diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php b/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php index eb72c2b3e..9d5d2058c 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethodDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -266,6 +266,7 @@ public function getModelName() public const TYPE_KAKAOPAY = 'kakaopay'; public const TYPE_TRUEMONEY = 'truemoney'; public const TYPE_PAYSAFECARD = 'paysafecard'; + public const TYPE_GOPAY_WALLET = 'gopay_wallet'; /** * Gets allowable values of the enum @@ -305,6 +306,7 @@ public function getTypeAllowableValues() self::TYPE_KAKAOPAY, self::TYPE_TRUEMONEY, self::TYPE_PAYSAFECARD, + self::TYPE_GOPAY_WALLET, ]; } /** diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethodRequest.php b/src/Adyen/Model/Checkout/StoredPaymentMethodRequest.php index acba64aa3..2c4b16e53 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethodRequest.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethodRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php b/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php index 4e6eea0ba..b071c8164 100644 --- a/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php +++ b/src/Adyen/Model/Checkout/StoredPaymentMethodResource.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -43,12 +43,15 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS protected static $openAPITypes = [ 'alias' => 'string', 'aliasType' => 'string', + 'billingAddress' => '\Adyen\Model\Checkout\Address', 'brand' => 'string', 'cardBin' => 'string', + 'createdAt' => '\DateTime', 'expiryMonth' => 'string', 'expiryYear' => 'string', 'externalResponseCode' => 'string', 'externalTokenReference' => 'string', + 'firstPspReference' => 'string', 'holderName' => 'string', 'iban' => 'string', 'id' => 'string', @@ -74,12 +77,15 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS protected static $openAPIFormats = [ 'alias' => null, 'aliasType' => null, + 'billingAddress' => null, 'brand' => null, 'cardBin' => null, + 'createdAt' => 'date-time', 'expiryMonth' => null, 'expiryYear' => null, 'externalResponseCode' => null, 'externalTokenReference' => null, + 'firstPspReference' => null, 'holderName' => null, 'iban' => null, 'id' => null, @@ -103,12 +109,15 @@ class StoredPaymentMethodResource implements ModelInterface, ArrayAccess, \JsonS protected static $openAPINullables = [ 'alias' => false, 'aliasType' => false, + 'billingAddress' => false, 'brand' => false, 'cardBin' => false, + 'createdAt' => false, 'expiryMonth' => false, 'expiryYear' => false, 'externalResponseCode' => false, 'externalTokenReference' => false, + 'firstPspReference' => false, 'holderName' => false, 'iban' => false, 'id' => false, @@ -212,12 +221,15 @@ public function isNullableSetToNull(string $property): bool protected static $attributeMap = [ 'alias' => 'alias', 'aliasType' => 'aliasType', + 'billingAddress' => 'billingAddress', 'brand' => 'brand', 'cardBin' => 'cardBin', + 'createdAt' => 'createdAt', 'expiryMonth' => 'expiryMonth', 'expiryYear' => 'expiryYear', 'externalResponseCode' => 'externalResponseCode', 'externalTokenReference' => 'externalTokenReference', + 'firstPspReference' => 'firstPspReference', 'holderName' => 'holderName', 'iban' => 'iban', 'id' => 'id', @@ -241,12 +253,15 @@ public function isNullableSetToNull(string $property): bool protected static $setters = [ 'alias' => 'setAlias', 'aliasType' => 'setAliasType', + 'billingAddress' => 'setBillingAddress', 'brand' => 'setBrand', 'cardBin' => 'setCardBin', + 'createdAt' => 'setCreatedAt', 'expiryMonth' => 'setExpiryMonth', 'expiryYear' => 'setExpiryYear', 'externalResponseCode' => 'setExternalResponseCode', 'externalTokenReference' => 'setExternalTokenReference', + 'firstPspReference' => 'setFirstPspReference', 'holderName' => 'setHolderName', 'iban' => 'setIban', 'id' => 'setId', @@ -270,12 +285,15 @@ public function isNullableSetToNull(string $property): bool protected static $getters = [ 'alias' => 'getAlias', 'aliasType' => 'getAliasType', + 'billingAddress' => 'getBillingAddress', 'brand' => 'getBrand', 'cardBin' => 'getCardBin', + 'createdAt' => 'getCreatedAt', 'expiryMonth' => 'getExpiryMonth', 'expiryYear' => 'getExpiryYear', 'externalResponseCode' => 'getExternalResponseCode', 'externalTokenReference' => 'getExternalTokenReference', + 'firstPspReference' => 'getFirstPspReference', 'holderName' => 'getHolderName', 'iban' => 'getIban', 'id' => 'getId', @@ -350,12 +368,15 @@ public function __construct(?array $data = null) { $this->setIfExists('alias', $data ?? [], null); $this->setIfExists('aliasType', $data ?? [], null); + $this->setIfExists('billingAddress', $data ?? [], null); $this->setIfExists('brand', $data ?? [], null); $this->setIfExists('cardBin', $data ?? [], null); + $this->setIfExists('createdAt', $data ?? [], null); $this->setIfExists('expiryMonth', $data ?? [], null); $this->setIfExists('expiryYear', $data ?? [], null); $this->setIfExists('externalResponseCode', $data ?? [], null); $this->setIfExists('externalTokenReference', $data ?? [], null); + $this->setIfExists('firstPspReference', $data ?? [], null); $this->setIfExists('holderName', $data ?? [], null); $this->setIfExists('iban', $data ?? [], null); $this->setIfExists('id', $data ?? [], null); @@ -461,6 +482,30 @@ public function setAliasType($aliasType) return $this; } + /** + * Gets billingAddress + * + * @return \Adyen\Model\Checkout\Address|null + */ + public function getBillingAddress() + { + return $this->container['billingAddress']; + } + + /** + * Sets billingAddress + * + * @param \Adyen\Model\Checkout\Address|null $billingAddress billingAddress + * + * @return self + */ + public function setBillingAddress($billingAddress) + { + $this->container['billingAddress'] = $billingAddress; + + return $this; + } + /** * Gets brand * @@ -509,6 +554,30 @@ public function setCardBin($cardBin) return $this; } + /** + * Gets createdAt + * + * @return \DateTime|null + */ + public function getCreatedAt() + { + return $this->container['createdAt']; + } + + /** + * Sets createdAt + * + * @param \DateTime|null $createdAt The date when the recurring details were created. + * + * @return self + */ + public function setCreatedAt($createdAt) + { + $this->container['createdAt'] = $createdAt; + + return $this; + } + /** * Gets expiryMonth * @@ -605,6 +674,30 @@ public function setExternalTokenReference($externalTokenReference) return $this; } + /** + * Gets firstPspReference + * + * @return string|null + */ + public function getFirstPspReference() + { + return $this->container['firstPspReference']; + } + + /** + * Sets firstPspReference + * + * @param string|null $firstPspReference The PSP reference of the first payment that created this recurring detail. + * + * @return self + */ + public function setFirstPspReference($firstPspReference) + { + $this->container['firstPspReference'] = $firstPspReference; + + return $this; + } + /** * Gets holderName * diff --git a/src/Adyen/Model/Checkout/SubInputDetail.php b/src/Adyen/Model/Checkout/SubInputDetail.php index d3d0ab821..8bfd8e521 100644 --- a/src/Adyen/Model/Checkout/SubInputDetail.php +++ b/src/Adyen/Model/Checkout/SubInputDetail.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/SubMerchant.php b/src/Adyen/Model/Checkout/SubMerchant.php index 699721d0a..7facabfea 100644 --- a/src/Adyen/Model/Checkout/SubMerchant.php +++ b/src/Adyen/Model/Checkout/SubMerchant.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/SubMerchantInfo.php b/src/Adyen/Model/Checkout/SubMerchantInfo.php index e6cd53b08..e19b6e028 100644 --- a/src/Adyen/Model/Checkout/SubMerchantInfo.php +++ b/src/Adyen/Model/Checkout/SubMerchantInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Surcharge.php b/src/Adyen/Model/Checkout/Surcharge.php index bebf1b22f..5f730b212 100644 --- a/src/Adyen/Model/Checkout/Surcharge.php +++ b/src/Adyen/Model/Checkout/Surcharge.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/TaxTotal.php b/src/Adyen/Model/Checkout/TaxTotal.php index 251429669..94cfb8456 100644 --- a/src/Adyen/Model/Checkout/TaxTotal.php +++ b/src/Adyen/Model/Checkout/TaxTotal.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/TemporaryServices.php b/src/Adyen/Model/Checkout/TemporaryServices.php new file mode 100644 index 000000000..ea6ea67ba --- /dev/null +++ b/src/Adyen/Model/Checkout/TemporaryServices.php @@ -0,0 +1,590 @@ + + */ +class TemporaryServices implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'TemporaryServices'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'employeeName' => 'string', + 'endDate' => '\DateTime', + 'hourRate' => 'int', + 'hoursWorked' => 'int', + 'jobDescription' => 'string', + 'serviceRequestor' => 'string', + 'startDate' => '\DateTime' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'employeeName' => null, + 'endDate' => 'date', + 'hourRate' => 'int32', + 'hoursWorked' => 'int32', + 'jobDescription' => null, + 'serviceRequestor' => null, + 'startDate' => 'date' + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'employeeName' => false, + 'endDate' => false, + 'hourRate' => true, + 'hoursWorked' => true, + 'jobDescription' => false, + 'serviceRequestor' => false, + 'startDate' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'employeeName' => 'employeeName', + 'endDate' => 'endDate', + 'hourRate' => 'hourRate', + 'hoursWorked' => 'hoursWorked', + 'jobDescription' => 'jobDescription', + 'serviceRequestor' => 'serviceRequestor', + 'startDate' => 'startDate' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'employeeName' => 'setEmployeeName', + 'endDate' => 'setEndDate', + 'hourRate' => 'setHourRate', + 'hoursWorked' => 'setHoursWorked', + 'jobDescription' => 'setJobDescription', + 'serviceRequestor' => 'setServiceRequestor', + 'startDate' => 'setStartDate' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'employeeName' => 'getEmployeeName', + 'endDate' => 'getEndDate', + 'hourRate' => 'getHourRate', + 'hoursWorked' => 'getHoursWorked', + 'jobDescription' => 'getJobDescription', + 'serviceRequestor' => 'getServiceRequestor', + 'startDate' => 'getStartDate' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('employeeName', $data ?? [], null); + $this->setIfExists('endDate', $data ?? [], null); + $this->setIfExists('hourRate', $data ?? [], null); + $this->setIfExists('hoursWorked', $data ?? [], null); + $this->setIfExists('jobDescription', $data ?? [], null); + $this->setIfExists('serviceRequestor', $data ?? [], null); + $this->setIfExists('startDate', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets employeeName + * + * @return string|null + */ + public function getEmployeeName() + { + return $this->container['employeeName']; + } + + /** + * Sets employeeName + * + * @param string|null $employeeName The name or ID of the person working in a temporary capacity. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.employeeName` + * + * @return self + */ + public function setEmployeeName($employeeName) + { + $this->container['employeeName'] = $employeeName; + + return $this; + } + + /** + * Gets endDate + * + * @return \DateTime|null + */ + public function getEndDate() + { + return $this->container['endDate']; + } + + /** + * Sets endDate + * + * @param \DateTime|null $endDate The billing period end date. * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `enhancedSchemeData.tempWeekEnding` + * + * @return self + */ + public function setEndDate($endDate) + { + $this->container['endDate'] = $endDate; + + return $this; + } + + /** + * Gets hourRate + * + * @return int|null + */ + public function getHourRate() + { + return $this->container['hourRate']; + } + + /** + * Sets hourRate + * + * @param int|null $hourRate The hourly rate for the temporary services, in [minor units](https://docs.adyen.com/development-resources/currency-codes). * For example, 2000 means USD 20.00. * Encoding: Numeric * Max value: 10000000000 * **additionalData key:** `enhancedSchemeData.regularHoursRate` + * + * @return self + */ + public function setHourRate($hourRate) + { + $this->container['hourRate'] = $hourRate; + + return $this; + } + + /** + * Gets hoursWorked + * + * @return int|null + */ + public function getHoursWorked() + { + return $this->container['hoursWorked']; + } + + /** + * Sets hoursWorked + * + * @param int|null $hoursWorked The number of hours worked during the billing period. * Format: Numeric * **additionalData key:** `enhancedSchemeData.regularHoursWorked` + * + * @return self + */ + public function setHoursWorked($hoursWorked) + { + $this->container['hoursWorked'] = $hoursWorked; + + return $this; + } + + /** + * Gets jobDescription + * + * @return string|null + */ + public function getJobDescription() + { + return $this->container['jobDescription']; + } + + /** + * Sets jobDescription + * + * @param string|null $jobDescription The job description of the person working in a temporary capacity. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.jobDescription` + * + * @return self + */ + public function setJobDescription($jobDescription) + { + $this->container['jobDescription'] = $jobDescription; + + return $this; + } + + /** + * Gets serviceRequestor + * + * @return string|null + */ + public function getServiceRequestor() + { + return $this->container['serviceRequestor']; + } + + /** + * Sets serviceRequestor + * + * @param string|null $serviceRequestor The name of the person requesting the temporary services. * Format: ASCII * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `enhancedSchemeData.requestName` + * + * @return self + */ + public function setServiceRequestor($serviceRequestor) + { + $this->container['serviceRequestor'] = $serviceRequestor; + + return $this; + } + + /** + * Gets startDate + * + * @return \DateTime|null + */ + public function getStartDate() + { + return $this->container['startDate']; + } + + /** + * Sets startDate + * + * @param \DateTime|null $startDate The billing period start date. * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `enhancedSchemeData.tempStartDate` + * + * @return self + */ + public function setStartDate($startDate) + { + $this->container['startDate'] = $startDate; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ThirdPartyTokenRedundancyInfo.php b/src/Adyen/Model/Checkout/ThirdPartyTokenRedundancyInfo.php new file mode 100644 index 000000000..b1e6db4b7 --- /dev/null +++ b/src/Adyen/Model/Checkout/ThirdPartyTokenRedundancyInfo.php @@ -0,0 +1,438 @@ + + */ +class ThirdPartyTokenRedundancyInfo implements ModelInterface, ArrayAccess, \JsonSerializable +{ + public const DISCRIMINATOR = null; + + /** + * The original name of the model. + * + * @var string + */ + protected static $openAPIModelName = 'ThirdPartyTokenRedundancyInfo'; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @var string[] + */ + protected static $openAPITypes = [ + 'requestParameters' => 'array', + 'requestTemplateCode' => 'string' + ]; + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @var string[] + * @phpstan-var array + * @psalm-var array + */ + protected static $openAPIFormats = [ + 'requestParameters' => null, + 'requestTemplateCode' => null + ]; + + /** + * Array of nullable properties. Used for (de)serialization + * + * @var boolean[] + */ + protected static $openAPINullables = [ + 'requestParameters' => false, + 'requestTemplateCode' => false + ]; + + /** + * If a nullable field gets set to null, insert it here + * + * @var boolean[] + */ + protected $openAPINullablesSetToNull = []; + + /** + * Array of property to type mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPITypes() + { + return self::$openAPITypes; + } + + /** + * Array of property to format mappings. Used for (de)serialization + * + * @return array + */ + public static function openAPIFormats() + { + return self::$openAPIFormats; + } + + /** + * Array of nullable properties + * + * @return array + */ + protected static function openAPINullables(): array + { + return self::$openAPINullables; + } + + /** + * Array of nullable field names deliberately set to null + * + * @return boolean[] + */ + private function getOpenAPINullablesSetToNull(): array + { + return $this->openAPINullablesSetToNull; + } + + /** + * Setter - Array of nullable field names deliberately set to null + * + * @param boolean[] $openAPINullablesSetToNull + */ + private function setOpenAPINullablesSetToNull(array $openAPINullablesSetToNull): void + { + $this->openAPINullablesSetToNull = $openAPINullablesSetToNull; + } + + /** + * Checks if a property is nullable + * + * @param string $property + * @return bool + */ + public static function isNullable(string $property): bool + { + return self::openAPINullables()[$property] ?? false; + } + + /** + * Checks if a nullable property is set to null. + * + * @param string $property + * @return bool + */ + public function isNullableSetToNull(string $property): bool + { + return in_array($property, $this->getOpenAPINullablesSetToNull(), true); + } + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @var string[] + */ + protected static $attributeMap = [ + 'requestParameters' => 'requestParameters', + 'requestTemplateCode' => 'requestTemplateCode' + ]; + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @var string[] + */ + protected static $setters = [ + 'requestParameters' => 'setRequestParameters', + 'requestTemplateCode' => 'setRequestTemplateCode' + ]; + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @var string[] + */ + protected static $getters = [ + 'requestParameters' => 'getRequestParameters', + 'requestTemplateCode' => 'getRequestTemplateCode' + ]; + + /** + * Array of attributes where the key is the local name, + * and the value is the original name + * + * @return array + */ + public static function attributeMap() + { + return self::$attributeMap; + } + + /** + * Array of attributes to setter functions (for deserialization of responses) + * + * @return array + */ + public static function setters() + { + return self::$setters; + } + + /** + * Array of attributes to getter functions (for serialization of requests) + * + * @return array + */ + public static function getters() + { + return self::$getters; + } + + /** + * The original name of the model. + * + * @return string + */ + public function getModelName() + { + return self::$openAPIModelName; + } + + + /** + * Associative array for storing property values + * + * @var mixed[] + */ + protected $container = []; + + /** + * Constructor + * + * @param mixed[] $data Associated array of property values + * initializing the model + */ + public function __construct(?array $data = null) + { + $this->setIfExists('requestParameters', $data ?? [], null); + $this->setIfExists('requestTemplateCode', $data ?? [], null); + } + + /** + * Sets $this->container[$variableName] to the given data or to the given default Value; if $variableName + * is nullable and its value is set to null in the $fields array, then mark it as "set to null" in the + * $this->openAPINullablesSetToNull array + * + * @param string $variableName + * @param array $fields + * @param mixed $defaultValue + */ + private function setIfExists(string $variableName, array $fields, $defaultValue): void + { + if (self::isNullable($variableName) && array_key_exists($variableName, $fields) && is_null($fields[$variableName])) { + $this->openAPINullablesSetToNull[] = $variableName; + } + + $this->container[$variableName] = $fields[$variableName] ?? $defaultValue; + } + + /** + * Show all the invalid properties with reasons. + * + * @return array invalid properties with reasons + */ + public function listInvalidProperties() + { + $invalidProperties = []; + + if ($this->container['requestTemplateCode'] === null) { + $invalidProperties[] = "'requestTemplateCode' can't be null"; + } + return $invalidProperties; + } + + /** + * Validate all the properties in the model + * return true if all passed + * + * @return bool True if all properties are valid + */ + public function valid() + { + return count($this->listInvalidProperties()) === 0; + } + + + /** + * Gets requestParameters + * + * @return array|null + */ + public function getRequestParameters() + { + return $this->container['requestParameters']; + } + + /** + * Sets requestParameters + * + * @param array|null $requestParameters Request-specific parameter values to populate the template placeholders. Each key must match a placeholder defined in the template referenced by `requestTemplateCode`. + * + * @return self + */ + public function setRequestParameters($requestParameters) + { + $this->container['requestParameters'] = $requestParameters; + + return $this; + } + + /** + * Gets requestTemplateCode + * + * @return string + */ + public function getRequestTemplateCode() + { + return $this->container['requestTemplateCode']; + } + + /** + * Sets requestTemplateCode + * + * @param string $requestTemplateCode Identifier for the third-party token request template configured in your Adyen account. This template defines the structure and endpoint for token requests. + * + * @return self + */ + public function setRequestTemplateCode($requestTemplateCode) + { + $this->container['requestTemplateCode'] = $requestTemplateCode; + + return $this; + } + /** + * Returns true if offset exists. False otherwise. + * + * @param integer $offset Offset + * + * @return boolean + */ + public function offsetExists($offset): bool + { + return isset($this->container[$offset]); + } + + /** + * Gets offset. + * + * @param integer $offset Offset + * + * @return mixed|null + */ + #[\ReturnTypeWillChange] + public function offsetGet($offset) + { + return $this->container[$offset] ?? null; + } + + /** + * Sets value based on offset. + * + * @param int|null $offset Offset + * @param mixed $value Value to be set + * + * @return void + */ + public function offsetSet($offset, $value): void + { + if (is_null($offset)) { + $this->container[] = $value; + } else { + $this->container[$offset] = $value; + } + } + + /** + * Unsets offset. + * + * @param integer $offset Offset + * + * @return void + */ + public function offsetUnset($offset): void + { + unset($this->container[$offset]); + } + + /** + * Serializes the object to a value that can be serialized natively by json_encode(). + * @link https://www.php.net/manual/en/jsonserializable.jsonserialize.php + * + * @return mixed Returns data which can be serialized by json_encode(), which is a value + * of any type other than a resource. + */ + #[\ReturnTypeWillChange] + public function jsonSerialize() + { + return ObjectSerializer::sanitizeForSerialization($this); + } + + public function toArray(): array + { + $array = []; + foreach (self::$openAPITypes as $propertyName => $propertyType) { + $propertyValue = $this[$propertyName]; + if ($propertyValue !== null) { + // Check if the property value is an object and has a toArray() method + if (is_object($propertyValue) && method_exists($propertyValue, 'toArray')) { + $array[$propertyName] = $propertyValue->toArray(); + // Check if it's type datetime + } elseif ($propertyValue instanceof \DateTime) { + $array[$propertyName] = $propertyValue->format(DATE_ATOM); + // If it's an array type we should check whether it contains objects and if so call toArray method + } elseif (is_array($propertyValue)) { + $array[$propertyName] = array_map(function ($item) { + return $item instanceof ModelInterface ? $item->toArray() : $item; + }, $propertyValue); + } else { + // Otherwise, directly assign the property value to the array + $array[$propertyName] = $propertyValue; + } + } + } + return $array; + } + + /** + * Gets the string presentation of the object + * + * @return string + */ + public function __toString() + { + return json_encode( + ObjectSerializer::sanitizeForSerialization($this), + JSON_PRETTY_PRINT + ); + } +} diff --git a/src/Adyen/Model/Checkout/ThreeDS2RequestData.php b/src/Adyen/Model/Checkout/ThreeDS2RequestData.php index d21fb4608..fde42ae41 100644 --- a/src/Adyen/Model/Checkout/ThreeDS2RequestData.php +++ b/src/Adyen/Model/Checkout/ThreeDS2RequestData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDS2RequestFields.php b/src/Adyen/Model/Checkout/ThreeDS2RequestFields.php index d6e4d6e98..19203daa9 100644 --- a/src/Adyen/Model/Checkout/ThreeDS2RequestFields.php +++ b/src/Adyen/Model/Checkout/ThreeDS2RequestFields.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDS2ResponseData.php b/src/Adyen/Model/Checkout/ThreeDS2ResponseData.php index 3f46d7901..18d312f70 100644 --- a/src/Adyen/Model/Checkout/ThreeDS2ResponseData.php +++ b/src/Adyen/Model/Checkout/ThreeDS2ResponseData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDS2Result.php b/src/Adyen/Model/Checkout/ThreeDS2Result.php index 846fd1bd0..16523b64b 100644 --- a/src/Adyen/Model/Checkout/ThreeDS2Result.php +++ b/src/Adyen/Model/Checkout/ThreeDS2Result.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDSRequestData.php b/src/Adyen/Model/Checkout/ThreeDSRequestData.php index d139c8b98..c83f4e34c 100644 --- a/src/Adyen/Model/Checkout/ThreeDSRequestData.php +++ b/src/Adyen/Model/Checkout/ThreeDSRequestData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDSRequestorAuthenticationInfo.php b/src/Adyen/Model/Checkout/ThreeDSRequestorAuthenticationInfo.php index 3433b3a06..009453287 100644 --- a/src/Adyen/Model/Checkout/ThreeDSRequestorAuthenticationInfo.php +++ b/src/Adyen/Model/Checkout/ThreeDSRequestorAuthenticationInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDSRequestorPriorAuthenticationInfo.php b/src/Adyen/Model/Checkout/ThreeDSRequestorPriorAuthenticationInfo.php index d7c8df59e..cea518bdf 100644 --- a/src/Adyen/Model/Checkout/ThreeDSRequestorPriorAuthenticationInfo.php +++ b/src/Adyen/Model/Checkout/ThreeDSRequestorPriorAuthenticationInfo.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ThreeDSecureData.php b/src/Adyen/Model/Checkout/ThreeDSecureData.php index e3884f332..e717d8eaa 100644 --- a/src/Adyen/Model/Checkout/ThreeDSecureData.php +++ b/src/Adyen/Model/Checkout/ThreeDSecureData.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/Ticket.php b/src/Adyen/Model/Checkout/Ticket.php index 9ac0482d5..53b302c1f 100644 --- a/src/Adyen/Model/Checkout/Ticket.php +++ b/src/Adyen/Model/Checkout/Ticket.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -300,7 +300,7 @@ public function getIssueAddress() /** * Sets issueAddress * - * @param string|null $issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters + * @param string|null $issueAddress The address of the organization that issued the ticket. * minLength: 0 characters * maxLength: 16 characters * **additionalData key:** `airline.ticket_issue_address` * * @return self */ @@ -324,7 +324,7 @@ public function getIssueDate() /** * Sets issueDate * - * @param \DateTime|null $issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd + * @param \DateTime|null $issueDate The date that the ticket was issued to the passenger. * minLength: 10 characters * maxLength: 10 characters * Format [ISO 8601](https://www.w3.org/TR/NOTE-datetime): yyyy-MM-dd * **additionalData key:** `airline.issue_date` * * @return self */ @@ -348,7 +348,7 @@ public function getNumber() /** * Sets number * - * @param string|null $number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $number The ticket's unique identifier. * minLength: 1 character * maxLength: 15 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.ticket_number` * * @return self */ diff --git a/src/Adyen/Model/Checkout/TokenMandate.php b/src/Adyen/Model/Checkout/TokenMandate.php index 59f3ca332..03e864d56 100644 --- a/src/Adyen/Model/Checkout/TokenMandate.php +++ b/src/Adyen/Model/Checkout/TokenMandate.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/TravelAgency.php b/src/Adyen/Model/Checkout/TravelAgency.php index c326abae3..e07e03c6f 100644 --- a/src/Adyen/Model/Checkout/TravelAgency.php +++ b/src/Adyen/Model/Checkout/TravelAgency.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -293,7 +293,7 @@ public function getCode() /** * Sets code * - * @param string|null $code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $code The unique identifier from IATA or ARC for the travel agency that issues the ticket. * Encoding: ASCII * minLength: 1 character * maxLength: 8 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.travel_agency_code` * * @return self */ @@ -317,7 +317,7 @@ public function getName() /** * Sets name * - * @param string|null $name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. + * @param string|null $name The name of the travel agency. * Encoding: ASCII * minLength: 1 character * maxLength: 25 characters * Must not start with a space or be all spaces. * Must not be all zeros. * **additionalData key:** `airline.travel_agency_name` * * @return self */ diff --git a/src/Adyen/Model/Checkout/TwintDetails.php b/src/Adyen/Model/Checkout/TwintDetails.php index 8ba90088b..9479203c9 100644 --- a/src/Adyen/Model/Checkout/TwintDetails.php +++ b/src/Adyen/Model/Checkout/TwintDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethod.php b/src/Adyen/Model/Checkout/UPIPaymentMethod.php index 785ca65d6..a61806a9a 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethod.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethod.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UPIPaymentMethodAllOf.php b/src/Adyen/Model/Checkout/UPIPaymentMethodAllOf.php index c89a9a5b5..3f0045aa1 100644 --- a/src/Adyen/Model/Checkout/UPIPaymentMethodAllOf.php +++ b/src/Adyen/Model/Checkout/UPIPaymentMethodAllOf.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UpdatePaymentLinkRequest.php b/src/Adyen/Model/Checkout/UpdatePaymentLinkRequest.php index 2d2513902..6f1d76ef5 100644 --- a/src/Adyen/Model/Checkout/UpdatePaymentLinkRequest.php +++ b/src/Adyen/Model/Checkout/UpdatePaymentLinkRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UpiCollectDetails.php b/src/Adyen/Model/Checkout/UpiCollectDetails.php index 1b2066d95..be0c4c8b1 100644 --- a/src/Adyen/Model/Checkout/UpiCollectDetails.php +++ b/src/Adyen/Model/Checkout/UpiCollectDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UpiIntentDetails.php b/src/Adyen/Model/Checkout/UpiIntentDetails.php index 4d7c87aad..354b95097 100644 --- a/src/Adyen/Model/Checkout/UpiIntentDetails.php +++ b/src/Adyen/Model/Checkout/UpiIntentDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UpiQrDetails.php b/src/Adyen/Model/Checkout/UpiQrDetails.php index 6cd5ea258..1b25547da 100644 --- a/src/Adyen/Model/Checkout/UpiQrDetails.php +++ b/src/Adyen/Model/Checkout/UpiQrDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UtilityRequest.php b/src/Adyen/Model/Checkout/UtilityRequest.php index 16945ba61..6b6a41e27 100644 --- a/src/Adyen/Model/Checkout/UtilityRequest.php +++ b/src/Adyen/Model/Checkout/UtilityRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/UtilityResponse.php b/src/Adyen/Model/Checkout/UtilityResponse.php index d62429632..726b553a3 100644 --- a/src/Adyen/Model/Checkout/UtilityResponse.php +++ b/src/Adyen/Model/Checkout/UtilityResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ValidateShopperIdRequest.php b/src/Adyen/Model/Checkout/ValidateShopperIdRequest.php index 4205ef5d0..fc7fddaee 100644 --- a/src/Adyen/Model/Checkout/ValidateShopperIdRequest.php +++ b/src/Adyen/Model/Checkout/ValidateShopperIdRequest.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php b/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php index be310d2b5..8a813c085 100644 --- a/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php +++ b/src/Adyen/Model/Checkout/ValidateShopperIdResponse.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/VippsDetails.php b/src/Adyen/Model/Checkout/VippsDetails.php index f6f982c8c..7ec08c161 100644 --- a/src/Adyen/Model/Checkout/VippsDetails.php +++ b/src/Adyen/Model/Checkout/VippsDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/VisaCheckoutDetails.php b/src/Adyen/Model/Checkout/VisaCheckoutDetails.php index 01aa8509b..33118dfcb 100644 --- a/src/Adyen/Model/Checkout/VisaCheckoutDetails.php +++ b/src/Adyen/Model/Checkout/VisaCheckoutDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/WeChatPayDetails.php b/src/Adyen/Model/Checkout/WeChatPayDetails.php index a801572fa..44be08608 100644 --- a/src/Adyen/Model/Checkout/WeChatPayDetails.php +++ b/src/Adyen/Model/Checkout/WeChatPayDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php b/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php index 121cb2d45..f9775855d 100644 --- a/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php +++ b/src/Adyen/Model/Checkout/WeChatPayMiniProgramDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Model/Checkout/ZipDetails.php b/src/Adyen/Model/Checkout/ZipDetails.php index 9b9ca86ee..92f0463ec 100644 --- a/src/Adyen/Model/Checkout/ZipDetails.php +++ b/src/Adyen/Model/Checkout/ZipDetails.php @@ -3,7 +3,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * diff --git a/src/Adyen/Service/Checkout/DonationsApi.php b/src/Adyen/Service/Checkout/DonationsApi.php index 63caab460..316629a68 100644 --- a/src/Adyen/Service/Checkout/DonationsApi.php +++ b/src/Adyen/Service/Checkout/DonationsApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** diff --git a/src/Adyen/Service/Checkout/ModificationsApi.php b/src/Adyen/Service/Checkout/ModificationsApi.php index 7f0fc6392..6169e6fdd 100644 --- a/src/Adyen/Service/Checkout/ModificationsApi.php +++ b/src/Adyen/Service/Checkout/ModificationsApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** diff --git a/src/Adyen/Service/Checkout/OrdersApi.php b/src/Adyen/Service/Checkout/OrdersApi.php index 6474f4bb2..0e7e2af56 100644 --- a/src/Adyen/Service/Checkout/OrdersApi.php +++ b/src/Adyen/Service/Checkout/OrdersApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** diff --git a/src/Adyen/Service/Checkout/PaymentLinksApi.php b/src/Adyen/Service/Checkout/PaymentLinksApi.php index 4f1fefb00..f016b7a7c 100644 --- a/src/Adyen/Service/Checkout/PaymentLinksApi.php +++ b/src/Adyen/Service/Checkout/PaymentLinksApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** diff --git a/src/Adyen/Service/Checkout/PaymentsApi.php b/src/Adyen/Service/Checkout/PaymentsApi.php index d932d5d4d..7cd1f1d72 100644 --- a/src/Adyen/Service/Checkout/PaymentsApi.php +++ b/src/Adyen/Service/Checkout/PaymentsApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** @@ -128,4 +128,20 @@ public function sessions(\Adyen\Model\Checkout\CreateCheckoutSessionRequest $cre $response = $this->requestHttp($endpoint, strtolower('POST'), (array) $createCheckoutSessionRequest->jsonSerialize(), $requestOptions); return ObjectSerializer::deserialize($response, \Adyen\Model\Checkout\CreateCheckoutSessionResponse::class); } + + /** + * Update a payment session + * + * @param string $sessionId + * @param \Adyen\Model\Checkout\CheckoutSessionPatchSessionRequest $checkoutSessionPatchSessionRequest + * @param array|null $requestOptions + * @return \Adyen\Model\Checkout\CheckoutSessionPatchSessionResponse + * @throws AdyenException + */ + public function updateSession(string $sessionId, \Adyen\Model\Checkout\CheckoutSessionPatchSessionRequest $checkoutSessionPatchSessionRequest, ?array $requestOptions = null): \Adyen\Model\Checkout\CheckoutSessionPatchSessionResponse + { + $endpoint = $this->baseURL . str_replace(['{sessionId}'], [$sessionId], "/sessions/{sessionId}"); + $response = $this->requestHttp($endpoint, strtolower('PATCH'), (array) $checkoutSessionPatchSessionRequest->jsonSerialize(), $requestOptions); + return ObjectSerializer::deserialize($response, \Adyen\Model\Checkout\CheckoutSessionPatchSessionResponse::class); + } } diff --git a/src/Adyen/Service/Checkout/RecurringApi.php b/src/Adyen/Service/Checkout/RecurringApi.php index 283168c91..46410e6c5 100644 --- a/src/Adyen/Service/Checkout/RecurringApi.php +++ b/src/Adyen/Service/Checkout/RecurringApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /** diff --git a/src/Adyen/Service/Checkout/UtilityApi.php b/src/Adyen/Service/Checkout/UtilityApi.php index 6bbb00557..2311e59dd 100644 --- a/src/Adyen/Service/Checkout/UtilityApi.php +++ b/src/Adyen/Service/Checkout/UtilityApi.php @@ -2,7 +2,7 @@ /** * Adyen Checkout API * - * The version of the OpenAPI document: 71 + * The version of the OpenAPI document: 72 * Generated by: https://openapi-generator.tech * OpenAPI Generator version: 6.0.1 * @@ -36,7 +36,7 @@ public function __construct(Client $client) parent::__construct($client); // Create the baseUrl based on live/test and optional live-url-prefix - $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v71"); + $this->baseURL = $this->createBaseUrl("https://checkout-test.adyen.com/v72"); } /**