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

351-352: self link by version and funds confirmations #353

Merged

Conversation

jsanhc
Copy link
Contributor

@jsanhc jsanhc commented Mar 17, 2021

Issues:
#351
#352

@jsanhc jsanhc added the bug Something isn't working label Mar 17, 2021
@jsanhc jsanhc self-assigned this Mar 17, 2021
@BohoCode BohoCode merged commit 3489092 into master Mar 17, 2021
@BohoCode BohoCode deleted the issue/351-self-link-by-versions-352-fundsconfirmations branch March 17, 2021 17:35
import static com.forgerock.openbanking.integration.test.support.JWT.jws;
import static org.mockito.BDDMockito.given;

// TODO: DRAFT to finished
Copy link
Contributor

Choose a reason for hiding this comment

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

Is is perhaps too early to add these ITs if they're not ready and don't yet do anything?

String xFapiCustomerIpAddress,
String xFapiInteractionId,
String xCustomerUserAgent,
String clientId,
HttpServletRequest request,
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice 👍🏻

@@ -212,7 +158,7 @@ private OBFundsConfirmationConsentResponse1 packageResponse(FRFundsConfirmationC
.consentId(consent.getId())
)
.meta(new Meta())
.links(resourceLinkService.toSelfLink(consent, discovery -> discovery.getV_3_0().getGetFundsConfirmationConsent()))
;
.links(resourceLinkService.toSelfLink(consent, discovery -> discovery.getVersion(VersionPathExtractor.getVersionFromPath(request)).getGetFundsConfirmationConsent()));
Copy link
Contributor

Choose a reason for hiding this comment

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

What a great idea! 😉

produces = {"application/json; charset=utf-8"},
method = RequestMethod.GET)
ResponseEntity<OBFundsConfirmationConsentResponse1> getFundsConfirmationConsentsConsentId(
@ApiParam(value = "ConsentId", required = true)
@PathVariable("ConsentId") String consentId,

@ApiParam(value = "An Authorisation Token as per https://tools.ietf.org/html/rfc6750", required = true)
@RequestHeader(value = "Authorization", required = true) String authorization,
@RequestHeader(value = "Authorization") String authorization,
Copy link
Contributor

Choose a reason for hiding this comment

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

👍🏻

.risk(toOBRisk1(domesticConsent.getRisk()))
.meta(new Meta());
}

protected OBDiscoveryAPILinksPayment4 getVersion(DiscoveryConfigurationProperties.PaymentApis discovery) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice work. Good to fix earlier versions of payments as well 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants