hyperswitch icon indicating copy to clipboard operation
hyperswitch copied to clipboard

feat(connector): [Nomupay] Implement nomupay payouts flows

Open sumanmaji4 opened this issue 1 year ago • 1 comments

Type of Change

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

Description

nomupay payout flow (upto: payout works for fresh customer) Nomupay stores customers_payments_methods data but in hyperswitch we don't (we do it for very small duration). And we cant add same customers_payments_methods data with same customer again as Nomupay will throw error. For existing customer we need that id to do a payout. Note: Now for successful payout we will get status:pending . after some time if we do retrieve call for that payout we will get failed as our Nomupay balance is empty.

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
  • [ ] I reviewed the submitted code
  • [ ] I added unit tests for my changes where possible

sumanmaji4 avatar Nov 08 '24 06:11 sumanmaji4

Review changes with  SemanticDiff

Changed Files
File Status
  crates/hyperswitch_connectors/src/default_implementations.rs  19% smaller
  crates/hyperswitch_connectors/src/connectors/nomupay.rs  18% smaller
  crates/hyperswitch_connectors/src/connectors/nomupay/transformers.rs  7% smaller
  Cargo.lock Unsupported file format
  api-reference-v2/openapi_spec.json  0% smaller
  api-reference/openapi_spec.json  0% smaller
  config/development.toml Unsupported file format
  config/docker_compose.toml Unsupported file format
  crates/api_models/src/enums.rs  0% smaller
  crates/common_enums/src/connector_enums.rs  0% smaller
  crates/connector_configs/src/connector.rs  0% smaller
  crates/connector_configs/toml/development.toml Unsupported file format
  crates/connector_configs/toml/production.toml Unsupported file format
  crates/connector_configs/toml/sandbox.toml Unsupported file format
  crates/hyperswitch_connectors/Cargo.toml Unsupported file format
  crates/hyperswitch_connectors/src/constants.rs  0% smaller
  crates/hyperswitch_interfaces/src/api/payouts.rs  0% smaller
  crates/hyperswitch_interfaces/src/api/payouts_v2.rs  0% smaller
  crates/router/src/core/admin.rs  0% smaller
  crates/router/src/types/api.rs  0% smaller
  crates/router/src/types/transformers.rs  0% smaller
  crates/router/tests/connectors/nomupay.rs  0% smaller
  crates/router/tests/connectors/sample_auth.toml Unsupported file format
  crates/test_utils/src/connector_auth.rs  0% smaller
  cypress-tests/cypress/e2e/configs/Payout/Nomupay.js  0% smaller
  cypress-tests/cypress/e2e/configs/Payout/Utils.js  0% smaller
  cypress-tests/cypress/e2e/spec/Payout/00004-BankTransfer.cy.js  0% smaller
  cypress-tests/cypress/e2e/spec/Payout/00006-PayoutUsingPayoutMethodId.cy.js  0% smaller
  cypress-tests/cypress/support/commands.js  0% smaller
  loadtest/config/development.toml Unsupported file format

semanticdiff-com[bot] avatar Nov 08 '24 06:11 semanticdiff-com[bot]