Skip to content

Conversation

NISHANTH1221
Copy link
Contributor

@NISHANTH1221 NISHANTH1221 commented Mar 3, 2025

Type of Change

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

Description

For some billing connectors, we get limited data in the webhook that is not sufficient to use. So we need to make an additional api call for this extra data. This pr adds that flow.

Additional Changes

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

Motivation and Context

No testing required since its just defining the flow not using it.

Checklist

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

@NISHANTH1221 NISHANTH1221 self-assigned this Mar 3, 2025
@NISHANTH1221 NISHANTH1221 requested review from a team as code owners March 3, 2025 08:33
Copy link

semanticdiff-com bot commented Mar 3, 2025

Review changes with  SemanticDiff

Changed Files
File Status
  crates/router/src/types.rs  85% smaller
  crates/router/src/types/api.rs  49% smaller
  crates/hyperswitch_interfaces/src/types.rs  34% smaller
  crates/hyperswitch_domain_models/src/types.rs  33% smaller
  crates/hyperswitch_connectors/src/default_implementations.rs  9% smaller
  crates/router/src/core/payments/flows.rs  6% smaller
  config/config.example.toml Unsupported file format
  config/development.toml Unsupported file format
  config/docker_compose.toml Unsupported file format
  crates/hyperswitch_domain_models/src/router_data_v2/flow_common_types.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_flow_types.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_flow_types/revenue_recovery.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_request_types.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_request_types/revenue_recovery.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_response_types.rs  0% smaller
  crates/hyperswitch_domain_models/src/router_response_types/revenue_recovery.rs  0% smaller
  crates/hyperswitch_interfaces/src/api.rs  0% smaller
  crates/hyperswitch_interfaces/src/api/revenue_recovery.rs  0% smaller
  crates/hyperswitch_interfaces/src/api/revenue_recovery_v2.rs  0% smaller
  crates/router/Cargo.toml Unsupported file format
  crates/router/src/configs/secrets_transformers.rs  0% smaller
  crates/router/src/configs/settings.rs  0% smaller
  crates/router/src/services/api.rs  0% smaller

Base automatically changed from template_code_stripebilling to main March 3, 2025 10:35
@NISHANTH1221 NISHANTH1221 requested a review from a team as a code owner March 3, 2025 10:35
@NISHANTH1221 NISHANTH1221 changed the title feat(core) : add additional revenue recovery call flow feat(core): add additional revenue recovery call flow Mar 3, 2025
@@ -0,0 +1,5 @@
#[derive(Debug, Clone)]
pub struct GetAdditionalRevenueRecoveryRequestData {
// stripe charge id for additional call
Copy link
Contributor

@hrithikesh026 hrithikesh026 Mar 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// stripe charge id for additional call
/// unique id for making additional revenue recovery call

@@ -506,6 +506,7 @@ pub(crate) async fn fetch_raw_secrets(
required_fields: conf.required_fields,
delayed_session_response: conf.delayed_session_response,
webhook_source_verification_call: conf.webhook_source_verification_call,
// additional_revenue_recovery_details_call: conf.additional_revenue_recovery_details_call,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this commented ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since the connector is not enabled the cypress tests will fail on this. I will enable it in subsequent pr's

@@ -96,6 +96,7 @@ pub struct Settings<S: SecretState> {
pub required_fields: RequiredFields,
pub delayed_session_response: DelayedSessionConfig,
pub webhook_source_verification_call: WebhookSourceVerificationCall,
// pub additional_revenue_recovery_details_call: GetAdditionalRevenueRecoveryDetailsCall,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the connector is not enabled so we will get an error when we try to run the file because we have stripebilling in config and we don't have corresponding enabled connector

srujanchikke
srujanchikke previously approved these changes Mar 4, 2025
@NISHANTH1221 NISHANTH1221 removed the request for review from a team March 5, 2025 07:56
@NISHANTH1221 NISHANTH1221 removed the S-waiting-on-review Status: This PR has been implemented and needs to be reviewed label Mar 5, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Mar 5, 2025
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Mar 5, 2025
@likhinbopanna likhinbopanna added this pull request to the merge queue Mar 6, 2025
Merged via the queue into main with commit 9e4135c Mar 6, 2025
14 of 20 checks passed
@likhinbopanna likhinbopanna deleted the additional_recovery_call_flow branch March 6, 2025 07:14
pixincreate added a commit that referenced this pull request Mar 7, 2025
* 'main' of github.com:juspay/hyperswitch:
  feat(hipay): Add Template PR (#7360)
  chore(version): 2025.03.07.0
  chore(postman): update Postman collection files
  feat(analytics): add new filters, dimensions and metrics for authentication analytics (#7451)
  feat(router): add capability to force challenge for 3DS Payments through Netcetera and send few optional fields (#7429)
  feat(analytics): refactor and rewrite authentication related analytics (#7433)
  refactor(core): Added payment id in authentication router data (#7441)
  feat(connector): Added ThreeDs server integration template pr (#7424)
  fix(xendit): Fix wasm changes (#7419)
  chore(postman): postman tests fixes (#7159)
  ci(cypress): move customer acceptance in configs to a const within commons (#7435)
  feat(core): add additional revenue recovery call flow (#7402)
  chore(version): 2025.03.06.0
  feat(payment_link): expose payment link configs for SDK UI rules and payment button (#7427)
pixincreate added a commit that referenced this pull request Mar 7, 2025
…juspay/hyperswitch into connector/gpay-mandates-authorizedotnet

* 'connector/gpay-mandates-authorizedotnet' of github.com:juspay/hyperswitch: (25 commits)
  ci(cypress): address lints and refactor redirection handler (#7437)
  chore: make v1 merchant account forward compatible (#7426)
  fix(dashboard): Added auth key to juspay threeds server (#7457)
  feat(hipay): Add Template PR (#7360)
  chore(version): 2025.03.07.0
  chore(postman): update Postman collection files
  feat(analytics): add new filters, dimensions and metrics for authentication analytics (#7451)
  feat(router): add capability to force challenge for 3DS Payments through Netcetera and send few optional fields (#7429)
  feat(analytics): refactor and rewrite authentication related analytics (#7433)
  refactor(core): Added payment id in authentication router data (#7441)
  feat(connector): Added ThreeDs server integration template pr (#7424)
  fix(xendit): Fix wasm changes (#7419)
  chore(postman): postman tests fixes (#7159)
  ci(cypress): move customer acceptance in configs to a const within commons (#7435)
  feat(core): add additional revenue recovery call flow (#7402)
  chore(version): 2025.03.06.0
  feat(payment_link): expose payment link configs for SDK UI rules and payment button (#7427)
  feat(connector): [EFT] Add EFT as a payment method (#7304)
  chore(version): 2025.03.05.1
  feat(connector): [Moneris] Implement mandate for Moneris (#7322)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-connector-integration Area: Connector integration
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants