adamsaghy commented on code in PR #2442: URL: https://github.com/apache/fineract/pull/2442#discussion_r940000771
########## fineract-provider/src/main/java/org/apache/fineract/portfolio/delinquency/api/DelinquencyApiResourceSwagger.java: ########## @@ -0,0 +1,116 @@ +/** + * 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.portfolio.delinquency.api; + +import io.swagger.v3.oas.annotations.media.Schema; + +public final class DelinquencyApiResourceSwagger { + + private DelinquencyApiResourceSwagger() {} + + @Schema(description = "GetDelinquencyRangesResponse") + public static final class GetDelinquencyRangesResponse { + + private GetDelinquencyRangesResponse() {} + + @Schema(example = "1") + public Integer id; + @Schema(example = "Delinquent 1") + public String classification; + @Schema(example = "1") + public Long minimumAgeDays; + @Schema(example = "3") + public Long maximumAgeDays; + } + + @Schema(description = "GetDelinquencyBucketsResponse") + public static final class GetDelinquencyBucketsResponse { + + private GetDelinquencyBucketsResponse() {} + + @Schema(example = "1") + public Integer id; + @Schema(example = "Delinquent Bucket Set 1") + public String name; + } + + @Schema(description = "PostDelinquencyRangeRequest") + public static final class PostDelinquencyRangeRequest { + + private PostDelinquencyRangeRequest() {} + + @Schema(example = "Delinquent 1") + public String classification; + @Schema(example = "1") + public Integer minimumAgeDays; + @Schema(example = "3") + public Integer maximumAgeDays; + @Schema(example = "en") + public String locale; + } + + @Schema(description = "PostDelinquencyRangeResponse") + public static final class PostDelinquencyRangeResponse { + + private PostDelinquencyRangeResponse() {} + + @Schema(example = "1") + public Integer resourceId; + } + + @Schema(description = "PutDelinquencyRangeResponse") + public static final class PutDelinquencyRangeResponse { + + private PutDelinquencyRangeResponse() {} + + @Schema(example = "1") + public Integer resourceId; + public PostDelinquencyRangeRequest changes; + } + + @Schema(description = "PostDelinquencyBucketRequest") + public static final class PostDelinquencyBucketRequest { + + private PostDelinquencyBucketRequest() {} + + @Schema(example = "Delinquent 1") + public String name; + @Schema(example = "[1,2,3]") + public Long[] ranges; + } + + @Schema(description = "PostDelinquencyBucketResponse") + public static final class PostDelinquencyBucketResponse { + + private PostDelinquencyBucketResponse() {} + + @Schema(example = "1") + public Integer resourceId; + } + + @Schema(description = "PutDelinquencyBucketResponse") + public static final class PutDelinquencyBucketResponse { + + private PutDelinquencyBucketResponse() {} + + @Schema(example = "1") + public Integer resourceId; + } + Review Comment: @josehernandezfintecheandomx Delete bucket request&response or delete range request&response is missing -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
