juspay / hyperswitch

An open source payments switch written in Rust to make payments fast, reliable and affordable
https://hyperswitch.io/
Apache License 2.0
12.64k stars 1.36k forks source link

feat(core): add SCA exemption field #6578

Closed Sakilmostak closed 1 day ago

Sakilmostak commented 1 week ago

Type of Change

Description

Additional Changes

Motivation and Context

How did you test it?

Tested through postman:

Checklist

semanticdiff-com[bot] commented 1 week ago

Review changes with  SemanticDiff

Changed Files
| File | Status | | :--- | :--- | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/enums.rs)  [crates/diesel\_models/src/enums\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/enums.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/enums.rs)  77% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi.rs)  [crates/openapi/src/openapi\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi.rs)  16% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi_v2.rs)  [crates/openapi/src/openapi\_v2\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi_v2.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/openapi/src/openapi_v2.rs)  16% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/common_enums/src/enums.rs)  [crates/common\_enums/src/enums\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/common_enums/src/enums.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/common_enums/src/enums.rs)  1% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference-v2/openapi_spec.json)  [api\-reference\-v2/openapi\_spec\.json](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference-v2/openapi_spec.json) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference-v2/openapi_spec.json)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference/openapi_spec.json)  [api\-reference/openapi\_spec\.json](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference/openapi_spec.json) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#api-reference/openapi_spec.json)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/api_models/src/payments.rs)  [crates/api\_models/src/payments\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/api_models/src/payments.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/api_models/src/payments.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/payment_intent.rs)  [crates/diesel\_models/src/payment\_intent\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/payment_intent.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/payment_intent.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema.rs)  [crates/diesel\_models/src/schema\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema_v2.rs)  [crates/diesel\_models/src/schema\_v2\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema_v2.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/diesel_models/src/schema_v2.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments.rs)  [crates/hyperswitch\_domain\_models/src/payments\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments/payment_intent.rs)  [crates/hyperswitch\_domain\_models/src/payments/payment\_intent\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments/payment_intent.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/payments/payment_intent.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/router_data.rs)  [crates/hyperswitch\_domain\_models/src/router\_data\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/router_data.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/hyperswitch_domain_models/src/router_data.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication.rs)  [crates/router/src/core/authentication\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication/transformers.rs)  [crates/router/src/core/authentication/transformers\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication/transformers.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/authentication/transformers.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/checkout_flow.rs)  [crates/router/src/core/fraud\_check/flows/checkout\_flow\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/checkout_flow.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/checkout_flow.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/fulfillment_flow.rs)  [crates/router/src/core/fraud\_check/flows/fulfillment\_flow\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/fulfillment_flow.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/fulfillment_flow.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/record_return.rs)  [crates/router/src/core/fraud\_check/flows/record\_return\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/record_return.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/record_return.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/sale_flow.rs)  [crates/router/src/core/fraud\_check/flows/sale\_flow\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/sale_flow.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/sale_flow.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/transaction_flow.rs)  [crates/router/src/core/fraud\_check/flows/transaction\_flow\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/transaction_flow.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/fraud_check/flows/transaction_flow.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/mandate/utils.rs)  [crates/router/src/core/mandate/utils\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/mandate/utils.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/mandate/utils.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments.rs)  [crates/router/src/core/payments\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/helpers.rs)  [crates/router/src/core/payments/helpers\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/helpers.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/helpers.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_confirm.rs)  [crates/router/src/core/payments/operations/payment\_confirm\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_confirm.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_confirm.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_create.rs)  [crates/router/src/core/payments/operations/payment\_create\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_create.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_create.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_update.rs)  [crates/router/src/core/payments/operations/payment\_update\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_update.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/operations/payment_update.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/transformers.rs)  [crates/router/src/core/payments/transformers\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/transformers.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/payments/transformers.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/utils.rs)  [crates/router/src/core/utils\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/utils.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/utils.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/webhooks/utils.rs)  [crates/router/src/core/webhooks/utils\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/webhooks/utils.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/core/webhooks/utils.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/services/conversion_impls.rs)  [crates/router/src/services/conversion\_impls\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/services/conversion_impls.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/services/conversion_impls.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types.rs)  [crates/router/src/types\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types/api/verify_connector.rs)  [crates/router/src/types/api/verify\_connector\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types/api/verify_connector.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/types/api/verify_connector.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/utils/user/sample_data.rs)  [crates/router/src/utils/user/sample\_data\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/utils/user/sample_data.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/src/utils/user/sample_data.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/aci.rs)  [crates/router/tests/connectors/aci\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/aci.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/aci.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/utils.rs)  [crates/router/tests/connectors/utils\.rs](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/utils.rs) | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#crates/router/tests/connectors/utils.rs)  0% smaller | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#migrations/2024-11-14-084429_add_sca_exemption_field_to_payment_intent/down.sql)  [migrations/2024\-11\-14\-084429\_add\_sca\_exemption\_field\_to\_payment\_intent/down\.sql](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#migrations/2024-11-14-084429_add_sca_exemption_field_to_payment_intent/down.sql) | Unsupported file format | | [](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#migrations/2024-11-14-084429_add_sca_exemption_field_to_payment_intent/up.sql)  [migrations/2024\-11\-14\-084429\_add\_sca\_exemption\_field\_to\_payment\_intent/up\.sql](https://app.semanticdiff.com/gh/juspay/hyperswitch/pull/6578/changes#migrations/2024-11-14-084429_add_sca_exemption_field_to_payment_intent/up.sql) | Unsupported file format |
Gnanasundari24 commented 4 days ago

@Sakilmostak Can you add this in cypress

Sakilmostak commented 1 day ago

@Sakilmostak Can you add this in cypress

Since this change does not reflect in response and is specific to connector, cypress test is not being added because there is no parameter to test on.