You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@fineract.apache.org by "kapil-panchal (via GitHub)" <gi...@apache.org> on 2025/08/19 08:36:55 UTC
[PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
kapil-panchal opened a new pull request, #4971:
URL: https://github.com/apache/fineract/pull/4971
## Description
Describe the changes made and why they were made.
1) Implemented code review comments as per https://github.com/apache/fineract/pull/4902
2) Changed the validation messages.
Ignore if these details are present on the associated [Apache Fineract JIRA ticket](https://issues.apache.org/jira/browse/FINERACT-1272).
## Checklist
Please make sure these boxes are checked before submitting your pull request - thanks!
- [x] Write the commit message as per https://github.com/apache/fineract/#pull-requests
- [x] Acknowledge that we will not review PRs that are not passing the build _("green")_ - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
- [x] Create/update unit or integration tests for verifying the changes made.
- [x] Follow coding conventions at https://cwiki.apache.org/confluence/display/FINERACT/Coding+Conventions.
- [x] Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
- [x] Submission is not a "code dump". (Large changes can be made "in repository" via a branch. Ask on the developer mailing list for guidance, if required.)
FYI our guidelines for code reviews are at https://cwiki.apache.org/confluence/display/FINERACT/Code+Review+Guide.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by Kapil Panchal <ka...@gmail.com>.
Yes, I am awaiting review comments from both reviewers so that I can
collate all changes in a single PR.
On Wed, Oct 15, 2025 at 8:10 PM IOhacker (via GitHub) <gi...@apache.org>
wrote:
>
> IOhacker commented on PR #4971:
> URL: https://github.com/apache/fineract/pull/4971#issuecomment-3406802185
>
> @kapil-panchal also there are pending items in the code regarding the
> comments done by @adamsaghy
>
>
> --
> 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
>
>
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3450451787
@kapil-panchal You can move forward with the comments from others till @vidakovic review's also...
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362602267
##########
fineract-provider/src/main/java/org/apache/fineract/organisation/monetary/service/CurrencyWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -23,18 +23,24 @@
import java.util.List;
import java.util.Set;
import lombok.RequiredArgsConstructor;
+import org.apache.fineract.organisation.monetary.data.CurrencyCreateRequest;
+import org.apache.fineract.organisation.monetary.data.CurrencyCreateResponse;
import org.apache.fineract.organisation.monetary.data.CurrencyUpdateRequest;
import org.apache.fineract.organisation.monetary.data.CurrencyUpdateResponse;
import org.apache.fineract.organisation.monetary.domain.ApplicationCurrency;
import org.apache.fineract.organisation.monetary.domain.ApplicationCurrencyRepositoryWrapper;
import org.apache.fineract.organisation.monetary.domain.OrganisationCurrency;
import org.apache.fineract.organisation.monetary.domain.OrganisationCurrencyRepository;
import org.apache.fineract.organisation.monetary.exception.CurrencyInUseException;
+import org.apache.fineract.organisation.monetary.exception.InvalidCurrencyException;
+import org.apache.fineract.organisation.monetary.mapper.CurrencyMapper;
import org.apache.fineract.portfolio.charge.service.ChargeReadPlatformService;
import org.apache.fineract.portfolio.loanproduct.service.LoanProductReadPlatformService;
import org.apache.fineract.portfolio.savings.service.SavingsProductReadPlatformService;
+import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
+@Service
Review Comment:
Sure I will remove the Service annotation.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362598285
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
Review Comment:
Sure I will remove the String concat.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3406529537
Hi Victor, yes I am awaiting comments from Aleksandar Vidakovic.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362598972
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
+ @Max(value = 5, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".max}")
Review Comment:
Sure I will remove the String concat.
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
+ @Max(value = 5, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".max}")
+ private Integer decimalPlaces;
+
+ @PositiveOrZero(message = "{org.apache.fineract.organisation.monetary.currencies" + ".inMultiplesOf" + ".positiveOrZero}")
Review Comment:
Sure I will remove the String concat.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362600040
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateResponse.java:
##########
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
Review Comment:
Sure will remove the SuperBuilder.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #4971: FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api)
URL: https://github.com/apache/fineract/pull/4971
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362600768
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateResponse.java:
##########
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
Review Comment:
Sure I will remove the NoArgsContructor.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3691849352
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "IOhacker (via GitHub)" <gi...@apache.org>.
IOhacker commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3406802185
@kapil-panchal also there are pending items in the code regarding the comments done by @adamsaghy
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362036437
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
Review Comment:
no need for string concatenation
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362040569
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateResponse.java:
##########
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
Review Comment:
Non need for SuperBuilder annotation
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362037256
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
Review Comment:
no need for string concatenation
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362044526
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/domain/ApplicationCurrency.java:
##########
@@ -21,9 +21,19 @@
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
import org.apache.fineract.organisation.monetary.data.CurrencyData;
+@Builder
Review Comment:
Please dont use Builder for JPA entities.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3310076219
This pull request seems to be stale. Are you still planning to work on it? We will automatically close it in 30 days.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362601530
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/domain/ApplicationCurrency.java:
##########
@@ -21,9 +21,19 @@
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;
+import lombok.AllArgsConstructor;
+import lombok.Builder;
+import lombok.Getter;
+import lombok.NoArgsConstructor;
+import lombok.Setter;
import org.apache.fineract.infrastructure.core.domain.AbstractPersistableCustom;
import org.apache.fineract.organisation.monetary.data.CurrencyData;
+@Builder
Review Comment:
Sure I will remove the Builder.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362041346
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateResponse.java:
##########
@@ -0,0 +1,44 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
Review Comment:
Do we need no arg constructor?
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362059756
##########
fineract-provider/src/main/java/org/apache/fineract/organisation/monetary/service/CurrencyWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -77,4 +84,50 @@ public CurrencyUpdateResponse updateAllowedCurrencies(final CurrencyUpdateReques
return CurrencyUpdateResponse.builder().currencies(allowedCurrencyCodes).build();
}
+
+ @Transactional
+ @Override
+ public CurrencyCreateResponse createCurrency(CurrencyCreateRequest request) {
+ final ApplicationCurrency currency = currencyMapper.mapToEntity(request);
+ currency.setNameCode(getNameCode(currency.getCode()));
+
+ validateIfExistingCurrency(currency.getCode());
Review Comment:
Please do the validation first before any mapping.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "IOhacker (via GitHub)" <gi...@apache.org>.
IOhacker commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3402366303
@kapil-panchal are you working on it?
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362037790
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
+ @Max(value = 5, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".max}")
Review Comment:
no need for string concatenation
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
+ @Min(value = 0, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".min}")
+ @Max(value = 5, message = "{org.apache.fineract.organisation.monetary.currencies" + ".decimalPlaces" + ".max}")
+ private Integer decimalPlaces;
+
+ @PositiveOrZero(message = "{org.apache.fineract.organisation.monetary.currencies" + ".inMultiplesOf" + ".positiveOrZero}")
Review Comment:
no need for string concatenation
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362604048
##########
fineract-provider/src/main/java/org/apache/fineract/organisation/monetary/service/CurrencyWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -77,4 +84,50 @@ public CurrencyUpdateResponse updateAllowedCurrencies(final CurrencyUpdateReques
return CurrencyUpdateResponse.builder().currencies(allowedCurrencyCodes).build();
}
+
+ @Transactional
+ @Override
+ public CurrencyCreateResponse createCurrency(CurrencyCreateRequest request) {
+ final ApplicationCurrency currency = currencyMapper.mapToEntity(request);
+ currency.setNameCode(getNameCode(currency.getCode()));
+
+ validateIfExistingCurrency(currency.getCode());
Review Comment:
I will do the validation before mapping.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapilpanchal123 (via GitHub)" <gi...@apache.org>.
kapilpanchal123 commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3450464173
@adamsaghy this ticket has the NewCommandInfrastructure implementation that I needed to get verified by @vidakovic?
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapilpanchal123 (via GitHub)" <gi...@apache.org>.
kapilpanchal123 commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3449456444
@vidakovic awaiting your inputs on this ticket.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "kapil-panchal (via GitHub)" <gi...@apache.org>.
kapil-panchal commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362597709
##########
fineract-core/src/main/java/org/apache/fineract/organisation/monetary/data/CurrencyCreateRequest.java:
##########
@@ -0,0 +1,65 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.fineract.organisation.monetary.data;
+
+import com.fasterxml.jackson.annotation.JsonIgnore;
+import jakarta.validation.constraints.Max;
+import jakarta.validation.constraints.Min;
+import jakarta.validation.constraints.NotBlank;
+import jakarta.validation.constraints.NotNull;
+import jakarta.validation.constraints.Pattern;
+import jakarta.validation.constraints.PositiveOrZero;
+import jakarta.validation.constraints.Size;
+import java.io.Serial;
+import java.io.Serializable;
+import lombok.AllArgsConstructor;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+import lombok.experimental.SuperBuilder;
+
+@Data
+@NoArgsConstructor
+@AllArgsConstructor
+@SuperBuilder
+public class CurrencyCreateRequest implements Serializable {
+
+ @Serial
+ private static final long serialVersionUID = 1L;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.code.notBlank}")
+ @Pattern(regexp = "^[A-Z]{3}$", message = "{org.apache.fineract.organisation.monetary" + ".currencies.code.invalidFormat}")
+ private String code;
+
+ @NotBlank(message = "{org.apache.fineract.organisation.monetary.currencies.name.notBlank}")
+ @Size(min = 5, max = 50, message = "{org.apache.fineract.organisation.monetary.currencies" + ".name" + ".size}")
+ private String name;
+
+ @NotNull(message = "{org.apache.fineract.organisation.monetary.currencies.decimalPlaces" + ".notNull}")
Review Comment:
Sure, I will remove the String concat.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on code in PR #4971:
URL: https://github.com/apache/fineract/pull/4971#discussion_r2362058226
##########
fineract-provider/src/main/java/org/apache/fineract/organisation/monetary/service/CurrencyWritePlatformServiceJpaRepositoryImpl.java:
##########
@@ -23,18 +23,24 @@
import java.util.List;
import java.util.Set;
import lombok.RequiredArgsConstructor;
+import org.apache.fineract.organisation.monetary.data.CurrencyCreateRequest;
+import org.apache.fineract.organisation.monetary.data.CurrencyCreateResponse;
import org.apache.fineract.organisation.monetary.data.CurrencyUpdateRequest;
import org.apache.fineract.organisation.monetary.data.CurrencyUpdateResponse;
import org.apache.fineract.organisation.monetary.domain.ApplicationCurrency;
import org.apache.fineract.organisation.monetary.domain.ApplicationCurrencyRepositoryWrapper;
import org.apache.fineract.organisation.monetary.domain.OrganisationCurrency;
import org.apache.fineract.organisation.monetary.domain.OrganisationCurrencyRepository;
import org.apache.fineract.organisation.monetary.exception.CurrencyInUseException;
+import org.apache.fineract.organisation.monetary.exception.InvalidCurrencyException;
+import org.apache.fineract.organisation.monetary.mapper.CurrencyMapper;
import org.apache.fineract.portfolio.charge.service.ChargeReadPlatformService;
import org.apache.fineract.portfolio.loanproduct.service.LoanProductReadPlatformService;
import org.apache.fineract.portfolio.savings.service.SavingsProductReadPlatformService;
+import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
+@Service
Review Comment:
We dont need this. We are using Configuration classes to instantiate this bean.
--
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
Re: [PR] FINERACT-1272: Creating Currencies (org.apache.fineract.organisation.monetary.api) [fineract]
Posted by "adamsaghy (via GitHub)" <gi...@apache.org>.
adamsaghy commented on PR #4971:
URL: https://github.com/apache/fineract/pull/4971#issuecomment-3574742872
Moving this into draft as it was learned new command handler does not support:
- audit
- retry
- idempotency handling
--
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