From ff8f7ee73ec1976fe165a2f4ea78fbd4b55ec423 Mon Sep 17 00:00:00 2001 From: "hyperswitch-bot[bot]" <148525504+hyperswitch-bot[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 04:24:44 +0000 Subject: [PATCH] chore(cypress): run formatter and address lints --- .../cypress/e2e/PaymentUtils/Deutschebank.js | 368 +++++++++--------- 1 file changed, 184 insertions(+), 184 deletions(-) diff --git a/cypress-tests/cypress/e2e/PaymentUtils/Deutschebank.js b/cypress-tests/cypress/e2e/PaymentUtils/Deutschebank.js index fbfb7d9b894d..60f5f6666e2a 100644 --- a/cypress-tests/cypress/e2e/PaymentUtils/Deutschebank.js +++ b/cypress-tests/cypress/e2e/PaymentUtils/Deutschebank.js @@ -1,218 +1,218 @@ const successful3DSCardDetails = { - card_number: "4761739090000088", - card_exp_month: "12", - card_exp_year: "2034", - card_holder_name: "John Doe", - card_cvc: "123", - }; - - export const connectorDetails = { - card_pm: { - PaymentIntent: { - Request: { - currency: "USD", - customer_acceptance: null, - }, - Response: { - status: 200, - body: { - status: "requires_payment_method", - }, - }, + card_number: "4761739090000088", + card_exp_month: "12", + card_exp_year: "2034", + card_holder_name: "John Doe", + card_cvc: "123", +}; + +export const connectorDetails = { + card_pm: { + PaymentIntent: { + Request: { + currency: "USD", + customer_acceptance: null, }, - "3DSManualCapture": { - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - currency: "USD", - customer_acceptance: { - acceptance_type: "online" - }, - setup_future_usage: "on_session", - }, - Response: { - status: 200, - body: { - status: "requires_customer_action", - }, + Response: { + status: 200, + body: { + status: "requires_payment_method", }, }, - - "3DSAutoCapture": { - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - currency: "USD", - customer_acceptance: { - acceptance_type: "online" - }, - setup_future_usage: "on_session", + }, + "3DSManualCapture": { + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, - Response: { - status: 200, - body: { - status: "requires_customer_action", - }, + currency: "USD", + customer_acceptance: { + acceptance_type: "online", }, + setup_future_usage: "on_session", }, - No3DSManualCapture: { - Request: { - currency: "USD", - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, - setup_future_usage: "on_session", - }, - Response: { - status: 400, - body: { - error: { - type: "invalid_request", - message: "Payment method type not supported", - code: "IR_19", - } - }, + Response: { + status: 200, + body: { + status: "requires_customer_action", }, }, - No3DSAutoCapture: { - Request: { - currency: "USD", - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, - setup_future_usage: "on_session", - }, - Response: { - status: 400, - body: { - error: { - type: "invalid_request", - message: "Payment method type not supported", - code: "IR_19", - } - }, - }, - }, - Capture: { - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, - }, - Response: { - status: 200, - body: { - status: "succeeded", - amount: 6500, - amount_capturable: 0, - amount_received: 6500, - }, + }, + + "3DSAutoCapture": { + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, + }, + currency: "USD", + customer_acceptance: { + acceptance_type: "online", + }, + setup_future_usage: "on_session", + }, + Response: { + status: 200, + body: { + status: "requires_customer_action", }, }, - PartialCapture: { - Request: {}, - Response: { - status: 200, - body: { - status: "partially_captured", - amount: 6500, - amount_capturable: 0, - amount_received: 100, + }, + No3DSManualCapture: { + Request: { + currency: "USD", + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, + }, + customer_acceptance: null, + setup_future_usage: "on_session", + }, + Response: { + status: 400, + body: { + error: { + type: "invalid_request", + message: "Payment method type not supported", + code: "IR_19", }, }, }, - Refund: { - Configs: { - TRIGGER_SKIP: true, - }, - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, + }, + No3DSAutoCapture: { + Request: { + currency: "USD", + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, + }, + customer_acceptance: null, + setup_future_usage: "on_session", + }, + Response: { + status: 400, + body: { + error: { + type: "invalid_request", + message: "Payment method type not supported", + code: "IR_19", }, - customer_acceptance: null, }, - Response: { - status: 200, - body: { - status: "succeeded", - }, + }, + }, + Capture: { + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, + customer_acceptance: null, }, - manualPaymentRefund: { - Configs: { - TRIGGER_SKIP: true, + Response: { + status: 200, + body: { + status: "succeeded", + amount: 6500, + amount_capturable: 0, + amount_received: 6500, }, - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, + }, + }, + PartialCapture: { + Request: {}, + Response: { + status: 200, + body: { + status: "partially_captured", + amount: 6500, + amount_capturable: 0, + amount_received: 100, }, - Response: { - status: 200, - body: { - status: "succeeded", - }, + }, + }, + Refund: { + Configs: { + TRIGGER_SKIP: true, + }, + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, + customer_acceptance: null, }, - manualPaymentPartialRefund: { - Configs: { - TRIGGER_SKIP: true, + Response: { + status: 200, + body: { + status: "succeeded", }, - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, + }, + }, + manualPaymentRefund: { + Configs: { + TRIGGER_SKIP: true, + }, + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, - Response: { - status: 200, - body: { - status: "succeeded", - }, + customer_acceptance: null, + }, + Response: { + status: 200, + body: { + status: "succeeded", }, }, - PartialRefund: { - Configs: { - TRIGGER_SKIP: true, + }, + manualPaymentPartialRefund: { + Configs: { + TRIGGER_SKIP: true, + }, + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, - Request: { - payment_method: "card", - payment_method_data: { - card: successful3DSCardDetails, - }, - customer_acceptance: null, + customer_acceptance: null, + }, + Response: { + status: 200, + body: { + status: "succeeded", }, - Response: { - status: 200, - body: { - status: "succeeded", - }, + }, + }, + PartialRefund: { + Configs: { + TRIGGER_SKIP: true, + }, + Request: { + payment_method: "card", + payment_method_data: { + card: successful3DSCardDetails, }, + customer_acceptance: null, }, - SyncRefund: { - Configs: { - TRIGGER_SKIP: true, + Response: { + status: 200, + body: { + status: "succeeded", }, - Response: { - status: 200, - body: { - status: "succeeded", - }, + }, + }, + SyncRefund: { + Configs: { + TRIGGER_SKIP: true, + }, + Response: { + status: 200, + body: { + status: "succeeded", }, }, }, - }; \ No newline at end of file + }, +};