You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "adamsaghy (via GitHub)" <gi...@apache.org> on 2025/08/13 09:58:11 UTC
Re: [PR] FINERACT-1272: Add the possibility to edit currencies available - Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
adamsaghy commented on code in PR #4902:
URL: https://github.com/apache/fineract/pull/4902#discussion_r2272790522
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/api/CurrenciesApiResource.java:
##########
@@ -77,4 +82,22 @@ public CurrencyUpdateResponse updateCurrencies(CurrencyUpdateRequest request) {
return response.get();
}
+
+ @POST
+ @Consumes({ MediaType.APPLICATION_JSON })
+ @Produces({ MediaType.APPLICATION_JSON })
+ @Operation(summary = "Create a new currency", description = "Adds a new currency to the platform with the given code, name, symbol, decimal places, in multiples of and name code.")
+ public CurrencyCreateResponse createCurrencies(@Valid CurrencyCreateRequest request) {
+ final CurrencyCreateCommand command = new CurrencyCreateCommand();
+
+ request.setNameCode("currency." + request.getCode());
Review Comment:
why do we need this modify the incoming request?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@fineract.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org