-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(gate): Changed Search Output logic on site/legalEntity
1 parent
e93f02d
commit 2d4b5a5
Showing
12 changed files
with
167 additions
and
183 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...src/main/kotlin/org/eclipse/tractusx/bpdm/gate/api/model/LegalEntityGateOutputResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021,2023 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 org.eclipse.tractusx.bpdm.gate.api.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonUnwrapped | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.LegalEntityDto | ||
import org.eclipse.tractusx.bpdm.common.service.DataClassUnwrappedJsonDeserializer | ||
import java.time.LocalDateTime | ||
|
||
@JsonDeserialize(using = DataClassUnwrappedJsonDeserializer::class) | ||
@Schema(name = "LegalEntityGateOutputResponse", description = "Legal entity with external id") | ||
data class LegalEntityGateOutputResponse( | ||
@field:JsonUnwrapped | ||
val legalEntity: LegalEntityDto, | ||
|
||
@Schema(description = "ID the record has in the external system where the record originates from", required = true) | ||
val externalId: String, | ||
|
||
@Schema(description = "Business Partner Number") | ||
val bpn: String?, | ||
|
||
@Schema(description = "Time the sharing process was started according to SaaS") | ||
val processStartedAt: LocalDateTime? = null, | ||
) |
48 changes: 48 additions & 0 deletions
48
...te-api/src/main/kotlin/org/eclipse/tractusx/bpdm/gate/api/model/SiteGateOutputResponse.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2021,2023 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 org.eclipse.tractusx.bpdm.gate.api.model | ||
|
||
import com.fasterxml.jackson.annotation.JsonUnwrapped | ||
import com.fasterxml.jackson.databind.annotation.JsonDeserialize | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.SiteDto | ||
import org.eclipse.tractusx.bpdm.common.service.DataClassUnwrappedJsonDeserializer | ||
import java.time.LocalDateTime | ||
|
||
@JsonDeserialize(using = DataClassUnwrappedJsonDeserializer::class) | ||
@Schema( | ||
name = "SiteGateOutputResponse", description = "Site with legal entity reference" | ||
) | ||
data class SiteGateOutputResponse( | ||
@field:JsonUnwrapped | ||
val site: SiteGateDto, | ||
|
||
@Schema(description = "ID the record has in the external system where the record originates from") | ||
val externalId: String, | ||
|
||
@Schema(description = "External id of the related legal entity") | ||
val legalEntityExternalId: String, | ||
|
||
@Schema(description = "Business Partner Number") | ||
val bpn: String?, | ||
|
||
@Schema(description = "Time the sharing process was started according to SaaS") | ||
val processStartedAt: LocalDateTime? = null, | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.