use of com.forgerock.openbanking.common.conf.discovery.DiscoveryConfigurationProperties in project openbanking-aspsp by OpenBankingToolkit.
the class SignedJwtEventBuilderTest method setupDiscoveryConfiguration.
private static DiscoveryConfigurationProperties setupDiscoveryConfiguration() {
// Setup discover cfg
OBDiscoveryAPILinksPayment1 v2Apis = new OBDiscoveryAPILinksPayment1();
v2Apis.setGetPaymentSubmission(BASE_URL + "/v2.0/single-payments/{PaymentSubmissionId}");
OBDiscoveryAPILinksPayment3 v3Apis = new OBDiscoveryAPILinksPayment3();
v3Apis.setGetDomesticPayment(BASE_URL + "/V3.1/domestic-payments/{DomesticPaymentId}");
v3Apis.setGetDomesticScheduledPayment(BASE_URL + "/V3.1/domestic-scheduled-payments/{DomesticScheduledPaymentId}");
v3Apis.setGetDomesticStandingOrder(BASE_URL + "/V3.1/domestic-standing-orders/{DomesticStandingOrderId}");
v3Apis.setGetInternationalPayment(BASE_URL + "/V3.1/international-payments/{InternationalPaymentId}");
v3Apis.setGetInternationalScheduledPayment(BASE_URL + "/V3.1/international-scheduled-payments/{InternationalScheduledPaymentId}");
v3Apis.setGetInternationalStandingOrder(BASE_URL + "/V3.1/international-standing-orders/{InternationalStandingOrderId}");
DiscoveryConfigurationProperties.PaymentApis paymentApis = new DiscoveryConfigurationProperties.PaymentApis();
paymentApis.setV_3_0(v3Apis);
paymentApis.setV_2_0(v2Apis);
final DiscoveryConfigurationProperties.Apis apis = new DiscoveryConfigurationProperties.Apis();
apis.setPayments(paymentApis);
DiscoveryConfigurationProperties cfg = new DiscoveryConfigurationProperties();
cfg.setApis(apis);
return cfg;
}
Aggregations