Skip to content

Commit

Permalink
chore[1194]: updated response
Browse files Browse the repository at this point in the history
  • Loading branch information
ashanmugavel committed Jul 23, 2024
1 parent 8705228 commit 4d47aed
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public interface PolicyService {
List<PolicyResponse> getPolicies();

Map<String, List<PolicyResponse>> getIrsPolicies();

PolicyResponse getPolicy(String id);

CreatePolicyResponse createPolicy(RegisterPolicyRequest registerPolicyRequest);
Expand Down
21 changes: 20 additions & 1 deletion tx-models/src/main/java/policies/response/OperatorResponse.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
/********************************************************************************
* Copyright (c) 2024 Contributors to the Eclipse Foundation
*
* See the NOTICE file(s) distributed with this work for additional
* information regarding copyright ownership.
*
* This program and the accompanying materials are made available under the
* terms of the Apache License, Version 2.0 which is available at
* https://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.
*
* SPDX-License-Identifier: Apache-2.0
********************************************************************************/
package policies.response;

import com.fasterxml.jackson.annotation.JsonAlias;
import com.fasterxml.jackson.annotation.JsonProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Builder;
import org.eclipse.tractusx.irs.edc.client.policy.OperatorType;
import policies.response.OperatorTypeResponse;

import java.util.Arrays;
@Builder
Expand All @@ -15,7 +34,7 @@ public record OperatorResponse(
implementation = OperatorType.class,
example = "odrl:eq"
)
OperatorTypeResponse operatorType
OperatorTypeResponse operatorType
) {
public static OperatorType toDomain(OperatorTypeResponse operatorTypeResponse) {
if (operatorTypeResponse == null) {
Expand Down

0 comments on commit 4d47aed

Please sign in to comment.