Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: 2060 design change post thridpartyrequests transactions #65

Conversation

eoln
Copy link
Contributor

@eoln eoln commented Mar 22, 2021

  • drop sourceAccountId & consentId from POST /thridpartyReqeusts/transactions
  • drop messed definition for outbound interface of thridparty-scheme-adapter
  • update typescript definitions

@lewisdaly please double-check this PR because these are not yet documented changes - maybe I misunderstand something...

Copy link
Contributor

@sridharvoruganti sridharvoruganti left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -0,0 +1,16 @@
title: Party
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm I wonder if we are pigeon holing ourselves here with an entirely new definition of Party for the sake of a couple API calls. Can't we just extend the PartyIdType enum to include THIRD_PARTY_LINK in the 3p API so that everything is compatible?

I think we should just be copying the party definition in here from the FSPIOP-API, and extending PartyIdType.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@lewisdaly THIRD_PARTY_LINK is already in enum for PartyIdType

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I introduced the whole chain for PartyTPLink to reach the input-validation feature that for POST /thridpartyReqeusts/transactions - elsewhere we need to implement this in code for every service in a chain: api-adapter/scheme-adapter

Copy link
Contributor Author

@eoln eoln Mar 22, 2021

Choose a reason for hiding this comment

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

what do you prefer -> swagger validation or in code validation?

Copy link
Contributor

Choose a reason for hiding this comment

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

Went away and thought about this... and I think I see your point now. This is a way we can get nice, 'strict' typing of our Swagger defs, more so than the API definition itself. In which case I agree this is the right way to go.

@eoln eoln merged commit 6c6f719 into mojaloop:master Mar 22, 2021
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.

4 participants