Skip to content

[PHEE-637] Batch Payment Mock API's#28

Merged
fynmanoj merged 4 commits into
openMF:masterfrom
abhinavm117:Mock
Mar 21, 2024
Merged

[PHEE-637] Batch Payment Mock API's#28
fynmanoj merged 4 commits into
openMF:masterfrom
abhinavm117:Mock

Conversation

@abhinavm117
Copy link
Copy Markdown
Contributor

@abhinavm117 abhinavm117 commented Mar 20, 2024

Description

Checklist

Please make sure these boxes are checked before submitting your pull request - thanks!

  • Followed the PR title naming convention mentioned above.

  • Design related bullet points or design document link related to this PR added in the description above.

  • Updated corresponding Postman Collection or Api documentation for the changes in this PR.

  • Created/updated unit or integration tests for verifying the changes made.

  • Added required Swagger annotation and update API documentation with details of any API changes if applicable

  • Followed the naming conventions as given in https://docs.google.com/document/d/1Q4vaMSzrTxxh9TS0RILuNkSkYCxotuYk1Xe0CMIkkCU/edit?usp=sharing

Copy link
Copy Markdown
Contributor

@fynmanoj fynmanoj left a comment

Choose a reason for hiding this comment

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

Requested clarification

return batchService.getBatchSummary(batchId);
}

@GetMapping(value = "/batches/{batchId}/detail", produces = MediaType.APPLICATION_JSON_VALUE)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

This API documentation should be upated. Please attach link to postman PR.
Also make sure that the validations and error handling is done.

ref: https://docs.google.com/spreadsheets/d/13TdoMUXtmV4MqwafbZu4_zvwOUhbO2WTs1UxZOLXHXI/edit#gid=0

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

openMF/ph-ee-env-template#411
I have added postman collection for this.


private Transfer getSingleTransaction(int index, Long workflowInstanceKey, String requestId, TransferStatus status, String batchId) {
String id = String.valueOf(index);
Date startedAt = new Date(1685536200000L);
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

is there a test case available for this?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, manoj. All data is mocked.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

No, it will always send same data. No need for test case here

@fynmanoj
Copy link
Copy Markdown
Contributor

Please add description and title for this PR

@abhinavm117 abhinavm117 changed the title [PHEE-637] [PHEE-637] Batch Payment Mock API's Mar 20, 2024
@fynmanoj fynmanoj merged commit 4d69e18 into openMF:master Mar 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants