From 053377656cba7c6a7f9476dfe958957890a62a42 Mon Sep 17 00:00:00 2001 From: Zenit Shkreli <69572953+zenit2001@users.noreply.github.com> Date: Thu, 4 Jan 2024 16:21:18 +0100 Subject: [PATCH] chore: deleted sfra content --- .eslintignore | 7 - .github/workflows/E2E_SFRA.yml | 112 - .github/workflows/E2E_SG.yml | 105 - .../cartridge/controllers/AdyenSettings.js | 4 +- .../client/default/js/adyenAccount.js | 133 - .../client/default/js/adyenCheckout.js | 62 - .../client/default/js/adyenGiving.js | 50 - .../__snapshots__/helpers.test.js.snap | 8 - .../renderGenericComponent.test.js.snap | 28 - .../renderGiftcardComponent.test.js.snap | 98 - .../renderPaymentMethod.test.js.snap | 155 - .../__tests__/checkoutConfiguration.test.js | 95 - .../adyen_checkout/__tests__/helpers.test.js | 82 - .../__tests__/renderGenericComponent.test.js | 89 - .../__tests__/renderGiftcardComponent.test.js | 171 - .../__tests__/renderPaymentMethod.test.js | 90 - .../adyen_checkout/checkoutConfiguration.js | 284 -- .../default/js/adyen_checkout/helpers.js | 156 - .../localesUsingInstallments.js | 3 - .../js/adyen_checkout/qrCodeMethods.js | 3 - .../adyen_checkout/renderGenericComponent.js | 227 -- .../adyen_checkout/renderGiftcardComponent.js | 286 -- .../js/adyen_checkout/renderPaymentMethod.js | 194 - .../js/adyen_checkout/validateComponents.js | 13 - .../cartridge/client/default/js/amazon.js | 135 - .../cartridge/client/default/js/checkout.js | 29 - .../__snapshots__/billing.test.js.snap | 26 - .../js/checkout/__tests__/billing.test.js | 31 - .../client/default/js/checkout/billing.js | 55 - .../default/js/checkout/checkoutSFRA5.js | 469 --- .../default/js/checkout/checkoutSFRA6.js | 521 --- .../client/default/js/commons/index.js | 42 - .../cartridge/client/default/js/constants.js | 14 - .../cartridge/config/countries.json | 37 - .../cartridge/controllers/Account.js | 19 - .../cartridge/controllers/Adyen.js | 78 - .../cartridge/controllers/Checkout.js | 14 - .../cartridge/controllers/CheckoutServices.js | 7 - .../cartridge/controllers/Order.js | 14 - .../controllers/PaymentInstruments.js | 51 - .../__snapshots__/notify.test.js.snap | 12 - .../paymentFromComponent.test.js.snap | 23 - .../showConfirmation.test.js.snap | 25 - ...firmationPaymentFromComponent.test.js.snap | 25 - .../adyen/__tests__/notify.test.js | 51 - .../adyen/__tests__/partialPaymentsOrder.js | 25 - .../__tests__/paymentFromComponent.test.js | 42 - .../adyen/__tests__/paymentsDetails.test.js | 77 - .../__tests__/redirect3ds1Response.test.js | 75 - .../adyen/__tests__/sessions.test.js | 53 - .../adyen/__tests__/showConfirmation.test.js | 88 - ...owConfirmationPaymentFromComponent.test.js | 71 - .../adyen/cancelPartialPaymentOrder.js | 43 - .../middlewares/adyen/checkBalance.js | 33 - .../controllers/middlewares/adyen/index.js | 26 - .../controllers/middlewares/adyen/notify.js | 29 - .../middlewares/adyen/partialPayment.js | 60 - .../middlewares/adyen/partialPaymentsOrder.js | 48 - .../middlewares/adyen/paymentFromComponent.js | 101 - .../middlewares/adyen/paymentsDetails.js | 57 - .../middlewares/adyen/redirect3ds1Response.js | 32 - .../controllers/middlewares/adyen/sessions.js | 52 - .../middlewares/adyen/showConfirmation.js | 84 - .../__snapshots__/payment.test.js.snap | 47 - .../__tests__/authorise.test.js | 40 - .../__tests__/payment.test.js | 32 - .../adyen/showConfirmation/authorise.js | 29 - .../adyen/showConfirmation/order.js | 28 - .../adyen/showConfirmation/payment.js | 55 - .../showConfirmationPaymentFromComponent.js | 28 - .../__snapshots__/payment.test.js.snap | 9 - .../__test__/payment.test.js | 64 - .../payment.js | 113 - .../__snapshots__/begin.test.js.snap | 39 - .../checkout/__tests__/begin.test.js | 75 - .../controllers/middlewares/checkout/begin.js | 81 - .../controllers/middlewares/checkout/index.js | 6 - .../__snapshots__/placeOrder.test.js.snap | 14 - .../__tests__/adyenCheckoutServices.test.js | 24 - .../__tests__/placeOrder.test.js | 77 - .../adyenCheckoutServices.js | 26 - .../checkout_services/placeOrder.js | 268 -- .../controllers/middlewares/index.js | 12 - .../__snapshots__/confirm.test.js.snap | 30 - .../order/__tests__/confirm.test.js | 49 - .../controllers/middlewares/order/confirm.js | 58 - .../controllers/middlewares/order/index.js | 6 - .../__snapshots__/savePayment.test.js.snap | 60 - .../__tests__/deletePayment.test.js | 55 - .../__tests__/savePayment.test.js | 100 - .../payment_instruments/deletePayment.js | 21 - .../middlewares/payment_instruments/index.js | 8 - .../paymentProcessorIDs.js | 3 - .../payment_instruments/savePayment.js | 69 - .../cartridge/controllers/utils/clearForms.js | 54 - .../cartridge/controllers/utils/index.js | 4 - .../cartridge/forms/default/address.xml | 288 -- .../cartridge/forms/default/adyenPayment.xml | 13 - .../cartridge/forms/default/billing.xml | 19 - .../cartridge/forms/default/creditCard.xml | 55 - .../cartridge/int_adyen_SFRA.properties | 4 - .../models/__tests__/createPayment.test.js | 92 - .../cartridge/models/createPayment.js | 36 - .../cartridge/models/payment.js | 30 - .../cartridge/scripts/adyenService.js | 58 - .../checkout/__tests__/adyenHelpers.test.js | 50 - .../scripts/checkout/adyenHelpers.js | 30 - .../utils/__tests__/getPayments.test.js | 60 - .../__tests__/validatePaymentMethod.test.js | 97 - .../scripts/checkout/utils/getPayments.js | 35 - .../cartridge/scripts/checkout/utils/index.js | 8 - .../checkout/utils/validatePaymentMethod.js | 22 - .../cartridge/scripts/hooks.json | 20 - .../payment/processor/adyen_component.js | 24 - .../adyen_component_form_processor.js | 26 - .../hooks/payment/processor/adyen_pos.js | 15 - .../processor/adyen_pos_form_processor.js | 27 - .../__snapshots__/authorize.test.js.snap | 42 - .../__snapshots__/posAuthorize.test.js.snap | 45 - .../__snapshots__/processForm.test.js.snap | 58 - .../middlewares/__tests__/authorize.test.js | 97 - .../middlewares/__tests__/handle.test.js | 41 - .../__tests__/posAuthorize.test.js | 55 - .../middlewares/__tests__/processForm.test.js | 69 - .../__tests__/savePaymentInformation.test.js | 49 - .../processor/middlewares/authorize.js | 60 - .../payment/processor/middlewares/handle.js | 40 - .../payment/processor/middlewares/index.js | 16 - .../processor/middlewares/posAuthorize.js | 42 - .../processor/middlewares/posHandle.js | 18 - .../processor/middlewares/processForm.js | 111 - .../middlewares/savePaymentInformation.js | 52 - .../static/default/js/adyenAccount.js | 159 - .../static/default/js/adyenCheckout.js | 255 -- .../static/default/js/adyenGiving.js | 101 - .../cartridge/static/default/js/amazon.js | 171 - .../cartridge/static/default/js/checkout.js | 423 --- .../cartridge/static/default/js/constants.js | 101 - .../int_adyen_SFRA/cartridge/store/index.js | 139 - .../default/account/payment/paymentForm.isml | 68 - .../templates/default/adyenActionModal.isml | 7 - .../templates/default/adyenRedirect.isml | 10 - .../templates/default/adyenform.isml | 19 - .../checkout/billing/adyenComponentForm.isml | 109 - .../billing/adyenGivingComponent.isml | 37 - .../checkout/billing/adyenPosForm.isml | 8 - .../checkout/billing/billingSummary.isml | 26 - .../checkout/billing/paymentOptions.isml | 32 - .../paymentOptions/adyenComponentContent.isml | 12 - .../paymentOptions/adyenComponentSummary.isml | 24 - .../paymentOptions/adyenComponentTab.isml | 10 - .../paymentOptions/adyenPosContent.isml | 12 - .../billing/paymentOptions/adyenPosTab.isml | 10 - .../paymentOptions/paymentOptionsContent.isml | 14 - .../paymentOptions/paymentOptionsSummary.isml | 9 - .../paymentOptions/paymentOptionsTabs.isml | 10 - .../adyenConfirmationDetails.isml | 87 - .../confirmation/confirmationDetails.isml | 31 - .../confirmation/confirmationEmail.isml | 176 - .../templates/default/orderConfirmForm.isml | 18 - .../templates/resources/adyen.properties | 7 - .../templates/resources/error.properties | 2 - .../templates/resources/terminal.properties | 2 - cartridges/int_adyen_SFRA/package.json | 11 - .../test/integration/codecept.conf.js | 18 - .../int_adyen_SFRA/test/integration/config.js | 67 - .../test/integration/customsteps.js | 109 - .../test/integration/tests/Guest_test.js | 60 - .../test/integration/tests/LoginUser_test.js | 126 - .../test/integration/tsconfig.json | 5 - .../test/mocks/dw/order/BasketMgr.js | 55 - .../test/mocks/helpers/adyenHelpers.js | 113 - .../scripts/checkout/adyenCheckout.test.js | 9 - .../unit/scripts/checkout/adyenHelpers.js | 23 - .../js/pages/checkout/adyen-checkout.js | 449 ++- .../cartridge/js/pages/checkout/amazon.js | 26 +- .../cartridge/js/pages/checkout/summary.js | 28 +- .../cartridge/adyenConstants/constants.js | 2 +- .../scripts/adyenLevelTwoThreeData.js | 3 +- .../cartridge/scripts/handleNotify.js | 2 +- .../cartridge/scripts/updateSavedCards.js | 4 +- .../templates/default/adyenform.isml | 24 - .../templates/default/threeds2/adyen3ds2.isml | 58 - package-lock.json | 3311 +++++++++++++---- package.json | 11 +- .../client/default/js/adyenAccount.js | 104 - .../client/default/js/adyenCheckout.js | 80 - .../client/default/js/adyenGiving.js | 54 - .../__snapshots__/helpers.test.js.snap | 8 - .../renderGenericComponent.test.js.snap | 28 - .../renderGiftcardComponent.test.js.snap | 98 - .../renderPaymentMethod.test.js.snap | 155 - .../__tests__/checkoutConfiguration.test.js | 85 - .../adyen_checkout/__tests__/helpers.test.js | 47 - .../__tests__/renderGenericComponent.test.js | 69 - .../__tests__/renderGiftcardComponent.test.js | 117 - .../__tests__/renderPaymentMethod.test.js | 118 - .../adyen_checkout/checkoutConfiguration.js | 276 -- .../default/js/adyen_checkout/helpers.js | 177 - .../localesUsingInstallments.js | 1 - .../js/adyen_checkout/qrCodeMethods.js | 1 - .../adyen_checkout/renderGenericComponent.js | 218 -- .../adyen_checkout/renderGiftcardComponent.js | 354 -- .../js/adyen_checkout/renderPaymentMethod.js | 186 - .../js/adyen_checkout/validateComponents.js | 18 - .../cartridge/client/default/js/amazon.js | 126 - .../cartridge/client/default/js/checkout.js | 39 - .../__snapshots__/billing.test.js.snap | 26 - .../js/checkout/__tests__/billing.test.js | 36 - .../client/default/js/checkout/billing.js | 50 - .../default/js/checkout/checkoutSFRA5.js | 552 --- .../default/js/checkout/checkoutSFRA6.js | 617 --- .../client/default/js/commons/index.js | 22 - .../cartridge/client/default/js/constants.js | 12 - .../cartridge/config/countries.json | 37 - .../cartridge/controllers/Account.js | 25 - .../cartridge/controllers/Adyen.js | 110 - .../cartridge/controllers/Checkout.js | 19 - .../cartridge/controllers/CheckoutServices.js | 9 - .../cartridge/controllers/Order.js | 19 - .../controllers/PaymentInstruments.js | 72 - .../__snapshots__/notify.test.js.snap | 12 - .../paymentFromComponent.test.js.snap | 23 - .../showConfirmation.test.js.snap | 25 - ...firmationPaymentFromComponent.test.js.snap | 25 - .../adyen/__tests__/notify.test.js | 41 - .../adyen/__tests__/partialPaymentsOrder.js | 22 - .../__tests__/paymentFromComponent.test.js | 33 - .../adyen/__tests__/paymentsDetails.test.js | 82 - .../__tests__/redirect3ds1Response.test.js | 88 - .../adyen/__tests__/sessions.test.js | 51 - .../adyen/__tests__/showConfirmation.test.js | 94 - ...owConfirmationPaymentFromComponent.test.js | 62 - .../adyen/cancelPartialPaymentOrder.js | 52 - .../middlewares/adyen/checkBalance.js | 40 - .../controllers/middlewares/adyen/index.js | 25 - .../controllers/middlewares/adyen/notify.js | 28 - .../middlewares/adyen/partialPayment.js | 81 - .../middlewares/adyen/partialPaymentsOrder.js | 58 - .../middlewares/adyen/paymentFromComponent.js | 132 - .../middlewares/adyen/paymentsDetails.js | 90 - .../middlewares/adyen/redirect3ds1Response.js | 40 - .../controllers/middlewares/adyen/sessions.js | 56 - .../middlewares/adyen/showConfirmation.js | 134 - .../__snapshots__/payment.test.js.snap | 47 - .../__tests__/authorise.test.js | 29 - .../__tests__/payment.test.js | 23 - .../adyen/showConfirmation/authorise.js | 38 - .../adyen/showConfirmation/order.js | 40 - .../adyen/showConfirmation/payment.js | 51 - .../showConfirmationPaymentFromComponent.js | 30 - .../__snapshots__/payment.test.js.snap | 9 - .../__test__/payment.test.js | 68 - .../payment.js | 145 - .../__snapshots__/begin.test.js.snap | 39 - .../checkout/__tests__/begin.test.js | 54 - .../controllers/middlewares/checkout/begin.js | 85 - .../controllers/middlewares/checkout/index.js | 5 - .../__snapshots__/placeOrder.test.js.snap | 14 - .../__tests__/adyenCheckoutServices.test.js | 20 - .../__tests__/placeOrder.test.js | 49 - .../adyenCheckoutServices.js | 37 - .../checkout_services/placeOrder.js | 275 -- .../controllers/middlewares/index.js | 11 - .../__snapshots__/confirm.test.js.snap | 30 - .../order/__tests__/confirm.test.js | 35 - .../controllers/middlewares/order/confirm.js | 74 - .../controllers/middlewares/order/index.js | 5 - .../__snapshots__/savePayment.test.js.snap | 60 - .../__tests__/deletePayment.test.js | 41 - .../__tests__/savePayment.test.js | 74 - .../payment_instruments/deletePayment.js | 26 - .../middlewares/payment_instruments/index.js | 7 - .../paymentProcessorIDs.js | 1 - .../payment_instruments/savePayment.js | 96 - .../cartridge/controllers/utils/clearForms.js | 53 - .../cartridge/controllers/utils/index.js | 2 - .../cartridge/forms/default/address.xml | 288 -- .../cartridge/forms/default/adyenPayment.xml | 13 - .../cartridge/forms/default/billing.xml | 19 - .../cartridge/forms/default/creditCard.xml | 55 - .../cartridge/int_adyen_SFRA.properties | 4 - .../models/__tests__/createPayment.test.js | 90 - .../cartridge/models/createPayment.js | 49 - .../cartridge/models/payment.js | 35 - .../cartridge/scripts/adyenService.js | 70 - .../checkout/__tests__/adyenHelpers.test.js | 45 - .../scripts/checkout/adyenHelpers.js | 28 - .../utils/__tests__/getPayments.test.js | 51 - .../__tests__/validatePaymentMethod.test.js | 76 - .../scripts/checkout/utils/getPayments.js | 46 - .../cartridge/scripts/checkout/utils/index.js | 4 - .../checkout/utils/validatePaymentMethod.js | 37 - .../cartridge/scripts/hooks.json | 20 - .../payment/processor/adyen_component.js | 24 - .../adyen_component_form_processor.js | 25 - .../hooks/payment/processor/adyen_pos.js | 15 - .../processor/adyen_pos_form_processor.js | 27 - .../__snapshots__/authorize.test.js.snap | 42 - .../__snapshots__/posAuthorize.test.js.snap | 45 - .../__snapshots__/processForm.test.js.snap | 58 - .../middlewares/__tests__/authorize.test.js | 119 - .../middlewares/__tests__/handle.test.js | 38 - .../__tests__/posAuthorize.test.js | 67 - .../middlewares/__tests__/processForm.test.js | 63 - .../__tests__/savePaymentInformation.test.js | 52 - .../processor/middlewares/authorize.js | 63 - .../payment/processor/middlewares/handle.js | 56 - .../payment/processor/middlewares/index.js | 15 - .../processor/middlewares/posAuthorize.js | 52 - .../processor/middlewares/posHandle.js | 21 - .../processor/middlewares/processForm.js | 132 - .../middlewares/savePaymentInformation.js | 51 - .../int_adyen_SFRA/cartridge/store/index.js | 58 - .../default/account/payment/paymentForm.isml | 68 - .../templates/default/adyenActionModal.isml | 7 - .../checkout/billing/adyenComponentForm.isml | 109 - .../billing/adyenGivingComponent.isml | 37 - .../checkout/billing/adyenPosForm.isml | 8 - .../checkout/billing/billingSummary.isml | 26 - .../checkout/billing/paymentOptions.isml | 32 - .../paymentOptions/adyenComponentContent.isml | 12 - .../paymentOptions/adyenComponentSummary.isml | 24 - .../paymentOptions/adyenComponentTab.isml | 10 - .../paymentOptions/adyenPosContent.isml | 12 - .../billing/paymentOptions/adyenPosTab.isml | 10 - .../paymentOptions/paymentOptionsContent.isml | 14 - .../paymentOptions/paymentOptionsSummary.isml | 9 - .../paymentOptions/paymentOptionsTabs.isml | 10 - .../adyenConfirmationDetails.isml | 87 - .../confirmation/confirmationDetails.isml | 31 - .../confirmation/confirmationEmail.isml | 176 - .../templates/default/orderConfirmForm.isml | 18 - .../templates/resources/adyen.properties | 7 - .../templates/resources/error.properties | 2 - .../templates/resources/terminal.properties | 2 - src/cartridges/int_adyen_SFRA/package.json | 11 - .../test/integration/codecept.conf.js | 16 - .../int_adyen_SFRA/test/integration/config.js | 74 - .../test/integration/customsteps.js | 133 - .../test/integration/tests/Guest_test.js | 65 - .../test/integration/tests/LoginUser_test.js | 133 - .../test/integration/tsconfig.json | 5 - .../test/mocks/dw/order/BasketMgr.js | 54 - .../test/mocks/helpers/adyenHelpers.js | 125 - .../scripts/checkout/adyenCheckout.test.js | 8 - .../unit/scripts/checkout/adyenHelpers.js | 22 - .../cartridge/adyenConstants/constants.js | 2 +- webpack.config.js | 51 - 349 files changed, 2890 insertions(+), 22425 deletions(-) delete mode 100644 .github/workflows/E2E_SFRA.yml delete mode 100644 .github/workflows/E2E_SG.yml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenAccount.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenGiving.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGenericComponent.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGiftcardComponent.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderPaymentMethod.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/checkoutConfiguration.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/helpers.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderGenericComponent.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderGiftcardComponent.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderPaymentMethod.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/checkoutConfiguration.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/localesUsingInstallments.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/qrCodeMethods.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderGenericComponent.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderGiftcardComponent.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderPaymentMethod.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/validateComponents.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/amazon.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/__tests__/__snapshots__/billing.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/__tests__/billing.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/billing.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA5.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA6.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/commons/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/client/default/js/constants.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/config/countries.json delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/Account.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/Adyen.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/Checkout.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/CheckoutServices.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/Order.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/PaymentInstruments.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/notify.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/paymentFromComponent.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/showConfirmation.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/showConfirmationPaymentFromComponent.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/notify.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/partialPaymentsOrder.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/paymentFromComponent.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/paymentsDetails.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/redirect3ds1Response.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/sessions.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/showConfirmation.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/showConfirmationPaymentFromComponent.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/cancelPartialPaymentOrder.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/checkBalance.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/notify.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/partialPayment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/partialPaymentsOrder.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/paymentFromComponent.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/paymentsDetails.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/redirect3ds1Response.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/sessions.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/__snapshots__/payment.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/authorise.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/payment.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/authorise.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/order.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/payment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/__test__/__snapshots__/payment.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/__test__/payment.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/payment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/__tests__/__snapshots__/begin.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/__tests__/begin.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/begin.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/__snapshots__/placeOrder.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/adyenCheckoutServices.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/placeOrder.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/adyenCheckoutServices.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/placeOrder.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/__tests__/__snapshots__/confirm.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/__tests__/confirm.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/confirm.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/__snapshots__/savePayment.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/deletePayment.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/savePayment.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/deletePayment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/paymentProcessorIDs.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/savePayment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/utils/clearForms.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/controllers/utils/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/forms/default/address.xml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/forms/default/adyenPayment.xml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/forms/default/billing.xml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/forms/default/creditCard.xml delete mode 100755 cartridges/int_adyen_SFRA/cartridge/int_adyen_SFRA.properties delete mode 100644 cartridges/int_adyen_SFRA/cartridge/models/__tests__/createPayment.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/models/createPayment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/models/payment.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/adyenService.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/__tests__/adyenHelpers.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/adyenHelpers.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/__tests__/getPayments.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/__tests__/validatePaymentMethod.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/getPayments.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/validatePaymentMethod.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks.json delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_component.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_component_form_processor.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_pos.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_pos_form_processor.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/authorize.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/posAuthorize.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/processForm.test.js.snap delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/authorize.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/handle.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/posAuthorize.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/processForm.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/savePaymentInformation.test.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/authorize.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/handle.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/posAuthorize.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/posHandle.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/processForm.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/savePaymentInformation.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/adyenAccount.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/adyenCheckout.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/adyenGiving.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/amazon.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/checkout.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/static/default/js/constants.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/store/index.js delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/account/payment/paymentForm.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/adyenActionModal.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/adyenRedirect.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/adyenform.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenGivingComponent.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenPosForm.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/billingSummary.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentContent.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentSummary.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentTab.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenPosContent.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenPosTab.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsContent.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsSummary.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsTabs.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/adyenConfirmationDetails.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/confirmationDetails.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/confirmationEmail.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/default/orderConfirmForm.isml delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/resources/adyen.properties delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/resources/error.properties delete mode 100644 cartridges/int_adyen_SFRA/cartridge/templates/resources/terminal.properties delete mode 100644 cartridges/int_adyen_SFRA/package.json delete mode 100644 cartridges/int_adyen_SFRA/test/integration/codecept.conf.js delete mode 100644 cartridges/int_adyen_SFRA/test/integration/config.js delete mode 100644 cartridges/int_adyen_SFRA/test/integration/customsteps.js delete mode 100644 cartridges/int_adyen_SFRA/test/integration/tests/Guest_test.js delete mode 100644 cartridges/int_adyen_SFRA/test/integration/tests/LoginUser_test.js delete mode 100644 cartridges/int_adyen_SFRA/test/integration/tsconfig.json delete mode 100644 cartridges/int_adyen_SFRA/test/mocks/dw/order/BasketMgr.js delete mode 100644 cartridges/int_adyen_SFRA/test/mocks/helpers/adyenHelpers.js delete mode 100644 cartridges/int_adyen_SFRA/test/unit/scripts/checkout/adyenCheckout.test.js delete mode 100644 cartridges/int_adyen_SFRA/test/unit/scripts/checkout/adyenHelpers.js delete mode 100644 cartridges/int_adyen_overlay/cartridge/templates/default/adyenform.isml delete mode 100644 cartridges/int_adyen_overlay/cartridge/templates/default/threeds2/adyen3ds2.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenAccount.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenGiving.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGenericComponent.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGiftcardComponent.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderPaymentMethod.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/checkoutConfiguration.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/helpers.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderGenericComponent.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderGiftcardComponent.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/renderPaymentMethod.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/checkoutConfiguration.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/helpers.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/localesUsingInstallments.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/qrCodeMethods.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderGenericComponent.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderGiftcardComponent.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/renderPaymentMethod.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/validateComponents.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/amazon.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/__tests__/__snapshots__/billing.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/__tests__/billing.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/billing.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA5.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA6.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/commons/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/client/default/js/constants.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/config/countries.json delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/Account.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/Adyen.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/Checkout.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/CheckoutServices.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/Order.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/PaymentInstruments.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/notify.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/paymentFromComponent.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/showConfirmation.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/__snapshots__/showConfirmationPaymentFromComponent.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/notify.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/partialPaymentsOrder.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/paymentFromComponent.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/paymentsDetails.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/redirect3ds1Response.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/sessions.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/showConfirmation.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/__tests__/showConfirmationPaymentFromComponent.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/cancelPartialPaymentOrder.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/checkBalance.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/notify.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/partialPayment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/partialPaymentsOrder.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/paymentFromComponent.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/paymentsDetails.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/redirect3ds1Response.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/sessions.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/__snapshots__/payment.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/authorise.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/__tests__/payment.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/authorise.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/order.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmation/payment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/__test__/__snapshots__/payment.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/__test__/payment.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/adyen/showConfirmationPaymentFromComponent/payment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/__tests__/__snapshots__/begin.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/__tests__/begin.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/begin.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/__snapshots__/placeOrder.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/adyenCheckoutServices.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/__tests__/placeOrder.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/adyenCheckoutServices.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/placeOrder.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/__tests__/__snapshots__/confirm.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/__tests__/confirm.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/confirm.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/order/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/__snapshots__/savePayment.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/deletePayment.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/__tests__/savePayment.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/deletePayment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/paymentProcessorIDs.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/payment_instruments/savePayment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/utils/clearForms.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/controllers/utils/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/forms/default/address.xml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/forms/default/adyenPayment.xml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/forms/default/billing.xml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/forms/default/creditCard.xml delete mode 100755 src/cartridges/int_adyen_SFRA/cartridge/int_adyen_SFRA.properties delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/models/__tests__/createPayment.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/models/createPayment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/models/payment.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/adyenService.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/__tests__/adyenHelpers.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/adyenHelpers.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/__tests__/getPayments.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/__tests__/validatePaymentMethod.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/getPayments.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/checkout/utils/validatePaymentMethod.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks.json delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_component.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_component_form_processor.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_pos.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/adyen_pos_form_processor.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/authorize.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/posAuthorize.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/__snapshots__/processForm.test.js.snap delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/authorize.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/handle.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/posAuthorize.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/processForm.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/__tests__/savePaymentInformation.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/authorize.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/handle.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/posAuthorize.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/posHandle.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/processForm.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/scripts/hooks/payment/processor/middlewares/savePaymentInformation.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/store/index.js delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/account/payment/paymentForm.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/adyenActionModal.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenComponentForm.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenGivingComponent.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/adyenPosForm.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/billingSummary.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentContent.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentSummary.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenComponentTab.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenPosContent.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/adyenPosTab.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsContent.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsSummary.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/billing/paymentOptions/paymentOptionsTabs.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/adyenConfirmationDetails.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/confirmationDetails.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/checkout/confirmation/confirmationEmail.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/default/orderConfirmForm.isml delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/resources/adyen.properties delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/resources/error.properties delete mode 100644 src/cartridges/int_adyen_SFRA/cartridge/templates/resources/terminal.properties delete mode 100644 src/cartridges/int_adyen_SFRA/package.json delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/codecept.conf.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/config.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/customsteps.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/tests/Guest_test.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/tests/LoginUser_test.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/integration/tsconfig.json delete mode 100644 src/cartridges/int_adyen_SFRA/test/mocks/dw/order/BasketMgr.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/mocks/helpers/adyenHelpers.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/unit/scripts/checkout/adyenCheckout.test.js delete mode 100644 src/cartridges/int_adyen_SFRA/test/unit/scripts/checkout/adyenHelpers.js delete mode 100644 webpack.config.js diff --git a/.eslintignore b/.eslintignore index 8c655222..76889af2 100644 --- a/.eslintignore +++ b/.eslintignore @@ -6,15 +6,8 @@ bundle.js # Compiled web component bundle file src/cartridges/int_adyen_controllers/cartridge/js/pages/checkout/bundle.js -src/cartridges/int_adyen_SFRA/cartridge/client/default/js/bundle.js - -# Extended SFRA core file -src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA5.js -src/cartridges/int_adyen_SFRA/cartridge/client/default/js/checkout/checkoutSFRA6.js -src/cartridges/int_adyen_SFRA/cartridge/controllers/middlewares/checkout_services/placeOrder.js # Test files -src/cartridges/int_adyen_SFRA/test *.test.js # remove lines below from ignore after refactor diff --git a/.github/workflows/E2E_SFRA.yml b/.github/workflows/E2E_SFRA.yml deleted file mode 100644 index 42e3b2c8..00000000 --- a/.github/workflows/E2E_SFRA.yml +++ /dev/null @@ -1,112 +0,0 @@ -name: E2E For SFRA - -on: - pull_request: - paths-ignore: - - "int_adyen_controllers/**" - - "adyen_controllers_changes/**" - -jobs: - setup-the-cartridge: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - sfra-version: "v5.3.0" - sfcc-hostname-secret: "SFCC_HOSTNAME_SFRA5" - code-version-secret: "SFCC_CODE_VERSION_SFRA5" - - sfra-version: "v6.1.0" - sfcc-hostname-secret: "SFCC_HOSTNAME_SFRA6" - code-version-secret: "SFCC_CODE_VERSION_SFRA6" - steps: - - name: Checkout SFRA code - uses: actions/checkout@v2 - with: - repository: SalesforceCommerceCloud/storefront-reference-architecture - ref: ${{ matrix.sfra-version }} - ssh-key: ${{ secrets.SERVICE_ACCOUNT_SSH_KEY }} - path: storefront-reference-architecture - - name: setup Node - uses: actions/setup-node@v2 - with: - node-version: "14" - - name: Checkout - uses: actions/checkout@v2 - with: - path: adyen-salesforce-commerce-cloud - - name: npm install storefront-reference-architecture - working-directory: storefront-reference-architecture - run: npm install - - name: npm install adyen-salesforce-commerce-cloud - working-directory: adyen-salesforce-commerce-cloud - run: npm install - - name: create dw.json file - working-directory: adyen-salesforce-commerce-cloud - run: | - echo '{ - "username": "${{ secrets.SFCC_USERNAME }}", - "password": "${{ secrets.SFCC_PASSWORD }}", - "hostname": "${{ secrets[matrix.sfcc-hostname-secret] }}", - "code-version": "${{ secrets[matrix.code-version-secret] }}" - }' >> dw.json - - name: push cartridge code - working-directory: adyen-salesforce-commerce-cloud - run: npm run build - end-to-end-testing: - needs: setup-the-cartridge - runs-on: - group: larger-runners - labels: ubuntu-latest-8-cores - strategy: - fail-fast: false - matrix: - include: - - sfra-version: "v5.3.0" - sfcc-hostname-secret: "SFCC_STOREFRONT_URL_SFRA5" - code-version-secret: "SFCC_CODE_VERSION_SFRA5" - - sfra-version: "v6.1.0" - sfcc-hostname-secret: "SFCC_STOREFRONT_URL_SFRA6" - code-version-secret: "SFCC_CODE_VERSION_SFRA6" - steps: - - name: setup Node - uses: actions/setup-node@v2 - with: - node-version: "16" - - name: Checkout - uses: actions/checkout@v2 - with: - path: adyen-salesforce-commerce-cloud - - name: install e2e test dependencies - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - run: npm i - - name: setup playwright dependencies - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - run: npx playwright install --with-deps - - name: run e2e tests full coverage - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - if: github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'develop' - run: npm run test:ci - env: - SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} - SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} - PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} - PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} - SFRA_VERSION: ${{ matrix.sfra-version }} - SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} - - name: run e2e tests quick coverage - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - if: github.event.pull_request.base.ref != 'main' && github.event.pull_request.base.ref != 'develop' - run: npm run test:ci:quick - env: - SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} - SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} - PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} - PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} - SFRA_VERSION: ${{ matrix.sfra-version }} - SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} - - name: Archive test result artifacts - uses: actions/upload-artifact@v3 - with: - name: html-report - path: adyen-salesforce-commerce-cloud/tests/playwright/test-report diff --git a/.github/workflows/E2E_SG.yml b/.github/workflows/E2E_SG.yml deleted file mode 100644 index 06bff1bd..00000000 --- a/.github/workflows/E2E_SG.yml +++ /dev/null @@ -1,105 +0,0 @@ -name: E2E For SiteGenesis - -on: - pull_request: - paths-ignore: - - "int_adyen_SFRA/**" - -jobs: - setup-the-cartridge: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - include: - - sfra-version: "" - sfcc-hostname-secret: "SFCC_HOSTNAME_SFRA5" - code-version-secret: "SFCC_CODE_VERSION_SFRA5" - steps: - - name: Checkout SFRA code - uses: actions/checkout@v2 - with: - repository: SalesforceCommerceCloud/storefront-reference-architecture - ref: ${{ matrix.sfra-version }} - ssh-key: ${{ secrets.SERVICE_ACCOUNT_SSH_KEY }} - path: storefront-reference-architecture - - name: setup Node - uses: actions/setup-node@v2 - with: - node-version: "14" - - name: Checkout - uses: actions/checkout@v2 - with: - path: adyen-salesforce-commerce-cloud - - name: npm install storefront-reference-architecture - working-directory: storefront-reference-architecture - run: npm install - - name: npm install adyen-salesforce-commerce-cloud - working-directory: adyen-salesforce-commerce-cloud - run: npm install - - name: create dw.json file - working-directory: adyen-salesforce-commerce-cloud - run: | - echo '{ - "username": "${{ secrets.SFCC_USERNAME }}", - "password": "${{ secrets.SFCC_PASSWORD }}", - "hostname": "${{ secrets[matrix.sfcc-hostname-secret] }}", - "code-version": "${{ secrets[matrix.code-version-secret] }}" - }' >> dw.json - - name: push cartridge code - working-directory: adyen-salesforce-commerce-cloud - run: npm run build - end-to-end-testing: - needs: setup-the-cartridge - runs-on: - group: larger-runners - labels: ubuntu-latest-8-cores - strategy: - fail-fast: false - matrix: - include: - - sfra-version: "" - sfcc-hostname-secret: "SFCC_STOREFRONT_URL_SFRA5" - code-version-secret: "SFCC_CODE_VERSION_SFRA5" - steps: - - name: setup Node - uses: actions/setup-node@v2 - with: - node-version: "16" - - name: Checkout - uses: actions/checkout@v2 - with: - path: adyen-salesforce-commerce-cloud - - name: install e2e test dependencies - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - run: npm i - - name: setup playwright dependencies - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - run: npx playwright install --with-deps - - name: run e2e tests full coverage - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - if: github.event.pull_request.base.ref == 'main' || github.event.pull_request.base.ref == 'develop' - run: npm run test:ci - env: - SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} - SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} - PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} - PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} - SFRA_VERSION: ${{ matrix.sfra-version }} - SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} - - name: run e2e tests quick coverage - working-directory: adyen-salesforce-commerce-cloud/tests/playwright/ - if: github.event.pull_request.base.ref != 'main' && github.event.pull_request.base.ref != 'develop' - run: npm run test:ci:quick - env: - SANDBOX_HTTP_AUTH_USERNAME: ${{ secrets.SANDBOX_HTTP_AUTH_USERNAME }} - SANDBOX_HTTP_AUTH_PASSWORD: ${{ secrets.SANDBOX_HTTP_AUTH_PASSWORD }} - PAYPAL_USERNAME: ${{ secrets.PAYPAL_USERNAME }} - PAYPAL_PASSWORD: ${{ secrets.PAYPAL_PASSWORD }} - SFRA_VERSION: ${{ matrix.sfra-version }} - SFCC_HOSTNAME: ${{ secrets[matrix.sfcc-hostname-secret] }} - - name: Archive test result artifacts - uses: actions/upload-artifact@v3 - with: - name: html-report - path: adyen-salesforce-commerce-cloud/tests/playwright/test-report diff --git a/cartridges/bm_adyen/cartridge/controllers/AdyenSettings.js b/cartridges/bm_adyen/cartridge/controllers/AdyenSettings.js index 786d6954..678c6cec 100644 --- a/cartridges/bm_adyen/cartridge/controllers/AdyenSettings.js +++ b/cartridges/bm_adyen/cartridge/controllers/AdyenSettings.js @@ -46,8 +46,8 @@ server.post('TestConnection', server.middleware.https, function (req, res, next) merchantAccount: merchantAccount })); if (!callResult.isOk()) { - var _JSON$parse = JSON.parse(callResult.getErrorMessage()), - message = _JSON$parse.message; + var _JSON$parse2 = JSON.parse(callResult.getErrorMessage()), + message = _JSON$parse2.message; res.json({ success: false, message: message, diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenAccount.js b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenAccount.js deleted file mode 100644 index 8af24432..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenAccount.js +++ /dev/null @@ -1,133 +0,0 @@ -"use strict"; - -function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = Object.defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof Symbol ? Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return Object.defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = Object.create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = Object.getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(IteratorPrototype); function defineIteratorMethods(prototype) { ["next", "throw", "return"].forEach(function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var method = delegate.iterator[context.method]; if (undefined === method) { if (context.delegate = null, "throw" === context.method) { if (delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method)) return ContinueSentinel; context.method = "throw", context.arg = new TypeError("The iterator does not provide a 'throw' method"); } return ContinueSentinel; } var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], tryLocsList.forEach(pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) { if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; } return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return Object.setPrototypeOf ? Object.setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = Object.create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) { keys.push(key); } return keys.reverse(), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, this.tryEntries.forEach(resetTryEntry), !skipTempReset) for (var name in this) { "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+name.slice(1)) && (this[name] = undefined); } }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; } -function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } } -function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; } -function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); } -var _require = require('./commons/index'), - onFieldValid = _require.onFieldValid, - onBrand = _require.onBrand, - createSession = _require.createSession; -var store = require('../../../store'); -var checkout; -var card; - -// Store configuration -store.checkoutConfiguration.amount = { - value: 0, - currency: 'EUR' -}; -store.checkoutConfiguration.paymentMethodsConfiguration = { - card: { - enableStoreDetails: false, - hasHolderName: true, - holderNameRequired: true, - installments: [], - onBrand: onBrand, - onFieldValid: onFieldValid, - onChange: function onChange(state) { - store.isValid = state.isValid; - store.componentState = state; - } - } -}; - -// Handle Payment action -function handleAction(action) { - checkout.createFromAction(action).mount('#action-container'); - $('#action-modal').modal({ - backdrop: 'static', - keyboard: false - }); -} - -// confirm onAdditionalDetails event and paymentsDetails response -store.checkoutConfiguration.onAdditionalDetails = function (state) { - $.ajax({ - type: 'POST', - url: 'Adyen-PaymentsDetails', - data: JSON.stringify({ - data: state.data - }), - contentType: 'application/json; charset=utf-8', - async: false, - success: function success(data) { - if (data.isSuccessful) { - window.location.href = window.redirectUrl; - } else if (!data.isFinal && _typeof(data.action) === 'object') { - handleAction(data.action); - } else { - $('#action-modal').modal('hide'); - document.getElementById('cardError').style.display = 'block'; - } - } - }); -}; -function initializeCardComponent() { - return _initializeCardComponent.apply(this, arguments); -} -function _initializeCardComponent() { - _initializeCardComponent = _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() { - var session, cardNode; - return _regeneratorRuntime().wrap(function _callee$(_context) { - while (1) { - switch (_context.prev = _context.next) { - case 0: - _context.next = 2; - return createSession(); - case 2: - session = _context.sent; - store.checkoutConfiguration.session = { - id: session.id, - sessionData: session.sessionData - }; - cardNode = document.getElementById('card'); - _context.next = 7; - return AdyenCheckout(store.checkoutConfiguration); - case 7: - checkout = _context.sent; - card = checkout.create('card').mount(cardNode); - case 9: - case "end": - return _context.stop(); - } - } - }, _callee); - })); - return _initializeCardComponent.apply(this, arguments); -} -var formErrorsExist = false; -function submitAddCard() { - var form = $(document.getElementById('payment-form')); - $.ajax({ - type: 'POST', - url: form.attr('action'), - data: form.serialize(), - async: false, - success: function success(data) { - if (data.redirectAction) { - handleAction(data.redirectAction); - } else if (data.redirectUrl) { - window.location.href = data.redirectUrl; - } else if (data.error) { - formErrorsExist = true; - } - } - }); -} -initializeCardComponent(); - -// Add Payment Button event handler -$('button[value="add-new-payment"]').on('click', function (event) { - if (store.isValid) { - document.querySelector('#adyenStateData').value = JSON.stringify(store.componentState.data); - submitAddCard(); - if (formErrorsExist) { - return; - } - event.preventDefault(); - } else { - var _card; - (_card = card) === null || _card === void 0 ? void 0 : _card.showValidation(); - } -}); \ No newline at end of file diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js deleted file mode 100644 index 6ba28071..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenCheckout.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -var store = require('../../../store'); -var _require = require('./adyen_checkout/renderGenericComponent'), - renderGenericComponent = _require.renderGenericComponent; -var _require2 = require('./adyen_checkout/checkoutConfiguration'), - setCheckoutConfiguration = _require2.setCheckoutConfiguration, - actionHandler = _require2.actionHandler; -var _require3 = require('./adyen_checkout/helpers'), - assignPaymentMethodValue = _require3.assignPaymentMethodValue, - showValidation = _require3.showValidation, - paymentFromComponent = _require3.paymentFromComponent; -var _require4 = require('./adyen_checkout/validateComponents'), - validateComponents = _require4.validateComponents; -$('#dwfrm_billing').submit(function apiRequest(e) { - e.preventDefault(); - var form = $(this); - var url = form.attr('action'); - $.ajax({ - type: 'POST', - url: url, - data: form.serialize(), - async: false, - success: function success(data) { - store.formErrorsExist = 'fieldErrors' in data; - } - }); -}); -setCheckoutConfiguration(); -if (window.cardholderNameBool !== 'null') { - store.checkoutConfiguration.paymentMethodsConfiguration.card.hasHolderName = true; - store.checkoutConfiguration.paymentMethodsConfiguration.card.holderNameRequired = true; -} -if (window.googleMerchantID !== 'null' && window.Configuration.environment === 'live') { - var id = 'merchantId'; - store.checkoutConfiguration.paymentMethodsConfiguration.paywithgoogle.configuration[id] = window.googleMerchantID; - store.checkoutConfiguration.paymentMethodsConfiguration.googlepay.configuration[id] = window.googleMerchantID; -} - -// Submit the payment -$('button[value="submit-payment"]').on('click', function () { - if (store.paypalTerminatedEarly) { - paymentFromComponent({ - cancelTransaction: true, - merchantReference: document.querySelector('#merchantReference').value - }); - store.paypalTerminatedEarly = false; - } - if (document.querySelector('#selectedPaymentOption').value === 'AdyenPOS') { - document.querySelector('#terminalId').value = document.querySelector('#terminalList').value; - } - if (document.querySelector('#selectedPaymentOption').value === 'AdyenComponent') { - assignPaymentMethodValue(); - validateComponents(); - return showValidation(); - } - return true; -}); -module.exports = { - renderGenericComponent: renderGenericComponent, - actionHandler: actionHandler -}; \ No newline at end of file diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenGiving.js b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenGiving.js deleted file mode 100644 index 2e06eb29..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyenGiving.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; - -var adyenGivingNode = document.getElementById('donate-container'); -function handleOnDonate(state, component) { - if (!state.isValid) { - return; - } - var selectedAmount = state.data.amount; - var donationData = { - amountValue: selectedAmount.value, - amountCurrency: selectedAmount.currency, - orderNo: orderNo, - pspReference: pspReference - }; - $.ajax({ - url: window.donateURL, - type: 'post', - data: donationData, - success: function success() { - component.setStatus('success'); - } - }); -} -function handleOnCancel(state, component) { - var adyenGiving = document.getElementById('adyenGiving'); - adyenGiving.style.transition = 'all 3s ease-in-out'; - adyenGiving.style.display = 'none'; - component.unmount(); -} -function getAmounts() { - try { - return JSON.parse(donationAmounts); - } catch (e) { - return []; - } -} -var donationConfig = { - amounts: getAmounts(), - backgroundUrl: adyenGivingBackgroundUrl, - description: charityDescription, - logoUrl: adyenGivingLogoUrl, - name: charityName, - url: charityWebsite, - showCancelButton: true, - onDonate: handleOnDonate, - onCancel: handleOnCancel -}; -AdyenCheckout(window.Configuration).then(function (checkout) { - checkout.create('donation', donationConfig).mount(adyenGivingNode); -}); \ No newline at end of file diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap deleted file mode 100644 index d091817e..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/helpers.test.js.snap +++ /dev/null @@ -1,8 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Helpers should make payment ajax call that fails 1`] = ` -{ - "data": {}, - "paymentMethod": "mocked_paymentMethod", -} -`; diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGenericComponent.test.js.snap b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGenericComponent.test.js.snap deleted file mode 100644 index 2bf5d07a..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGenericComponent.test.js.snap +++ /dev/null @@ -1,28 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Render Generic Component should render 1`] = ` -{ - "amount": "mocked_amount", - "countryCode": "mocked_countrycode", - "paymentMethodsConfiguration": { - "amazonpay": { - "addressDetails": { - "addressLine1": "test", - "city": "test", - "countryCode": "test", - "name": "test test", - "phoneNumber": "test", - "postalCode": "test", - "stateOrRegion": "test", - }, - "configuration": undefined, - }, - }, - "session": { - "adyenDescriptions": {}, - "id": "mock_id", - "imagePath": "example.com", - "sessionData": "mock_session_data", - }, -} -`; diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGiftcardComponent.test.js.snap b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGiftcardComponent.test.js.snap deleted file mode 100644 index c8641a1b..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderGiftcardComponent.test.js.snap +++ /dev/null @@ -1,98 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Render gift card should render a select form 1`] = ` - -`; - -exports[`Render gift card should render a select form 2`] = ` - -`; - -exports[`Render gift card should render applied gift cards 1`] = ` - -`; - -exports[`Render gift card should show a warning message if more items are added to cart later 1`] = ` -
- -
-`; diff --git a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderPaymentMethod.test.js.snap b/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderPaymentMethod.test.js.snap deleted file mode 100644 index 3e81ab16..00000000 --- a/cartridges/int_adyen_SFRA/cartridge/client/default/js/adyen_checkout/__tests__/__snapshots__/renderPaymentMethod.test.js.snap +++ /dev/null @@ -1,155 +0,0 @@ -// Jest Snapshot v1, https://goo.gl/fbAQLP - -exports[`Render Payment Method should render payment method with shopper information fields 1`] = ` - -`; - -exports[`Render Payment Method should render payment method with shopper information fields 2`] = ` -{ - "mocked_id": { - "node": { - "mocked_node": { - "foo": "bar", - }, - }, - }, - "scheme": { - "isValid": undefined, - "node": { - "mount": [MockFunction] { - "calls": [ - [ -