hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(core): Altered the amount field in DisputePayload to StringMinorUnit

Open bsayak03 opened this issue 7 months ago • 1 comments

Type of Change

  • [ ] Bugfix
  • [ ] New feature
  • [x] Enhancement
  • [ ] Refactoring
  • [ ] Dependency updates
  • [ ] Documentation
  • [ ] CI/CD

Description

The amount field in DisputePayload in crates/hyperswitch_interfaces/src/disputes.rs was String. Changed it to StringMinorUnit.

Additional Changes

  • [ ] This PR modifies the API contract
  • [ ] This PR modifies the database schema
  • [ ] This PR modifies application configuration/environment variables

Motivation and Context

How did you test it?

Checklist

  • [x] I formatted the code cargo +nightly fmt --all
  • [x] I addressed lints thrown by cargo clippy
  • [x] I reviewed the submitted code
  • [ ] I added unit tests for my changes where possible

bsayak03 avatar May 24 '25 14:05 bsayak03

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/connectors/braintree/transformers.rs  88% smaller
  crates/hyperswitch_connectors/src/connectors/rapyd/transformers.rs  87% smaller
  crates/router/src/types/api.rs  86% smaller
  crates/hyperswitch_connectors/src/connectors/novalnet/transformers.rs  77% smaller
  crates/router/tests/connectors/airwallex.rs  71% smaller
  crates/router/src/core/webhooks/incoming.rs  60% smaller
  crates/hyperswitch_connectors/src/connectors/braintree.rs  56% smaller
  crates/hyperswitch_connectors/src/connectors/novalnet.rs  51% smaller
  crates/hyperswitch_connectors/src/connectors/stripe.rs  49% smaller
  crates/router/src/services/kafka/dispute.rs  46% smaller
  crates/hyperswitch_connectors/src/connectors/rapyd.rs  43% smaller
  crates/router/src/services/kafka/dispute_event.rs  43% smaller
  crates/api_models/src/disputes.rs  42% smaller
  crates/router/src/utils/user/sample_data.rs  37% smaller
  crates/hyperswitch_connectors/src/connectors/paypal.rs  36% smaller
  crates/diesel_models/src/dispute.rs  32% smaller
  crates/hyperswitch_connectors/src/connectors/checkout.rs  29% smaller
  crates/hyperswitch_connectors/src/connectors/bluesnap.rs  26% smaller
  crates/hyperswitch_connectors/src/connectors/trustpay.rs  26% smaller
  crates/hyperswitch_connectors/src/connectors/adyen.rs  25% smaller
  crates/hyperswitch_connectors/src/connectors/payme.rs  21% smaller
  crates/hyperswitch_connectors/src/connectors/airwallex.rs  19% smaller
  crates/common_utils/src/types.rs  19% smaller
  crates/router/src/db/dispute.rs  17% smaller
  crates/openapi/src/openapi.rs  11% smaller
  crates/openapi/src/openapi_v2.rs  11% smaller
  crates/hyperswitch_connectors/src/connectors/bluesnap/transformers.rs  3% smaller
  crates/hyperswitch_connectors/src/connectors/trustpay/transformers.rs  3% smaller
  api-reference-v2/openapi_spec.json  0% smaller
  api-reference/openapi_spec.json  0% smaller
  crates/hyperswitch_connectors/src/connectors/airwallex/transformers.rs  0% smaller
  crates/hyperswitch_connectors/src/connectors/checkout/transformers.rs  0% smaller
  crates/hyperswitch_connectors/src/connectors/payme/transformers.rs  0% smaller
  crates/hyperswitch_connectors/src/connectors/stripe/transformers.rs  0% smaller
  crates/hyperswitch_connectors/src/utils.rs  0% smaller
  crates/hyperswitch_interfaces/src/disputes.rs  0% smaller
  crates/router/src/compatibility/stripe/webhooks.rs  0% smaller

semanticdiff-com[bot] avatar May 24 '25 14:05 semanticdiff-com[bot]