-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #495 from eclipse-tractusx/feat/orchestrator/clean…
…ing-step-api Feat: Add Reservation Endpoint to Orchestrator API
- Loading branch information
Showing
33 changed files
with
1,242 additions
and
93 deletions.
There are no files selected for viewing
32 changes: 32 additions & 0 deletions
32
...-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseAddressIdentifierDto.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,32 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.AddressIdentifierDescription | ||
|
||
@Schema(description = AddressIdentifierDescription.header) | ||
interface IBaseAddressIdentifierDto : IBaseIdentifierDto { | ||
@get:Schema(description = AddressIdentifierDescription.value) | ||
override val value: String | ||
|
||
@get:Schema(description = AddressIdentifierDescription.type) | ||
override val type: String | ||
} |
40 changes: 40 additions & 0 deletions
40
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseAddressStateDto.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,40 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.AddressStateDescription | ||
import org.eclipse.tractusx.bpdm.common.model.BusinessStateType | ||
import java.time.LocalDateTime | ||
|
||
@Schema(description = AddressStateDescription.header) | ||
interface IBaseAddressStateDto : IBusinessPartnerStateDto { | ||
@get:Schema(description = AddressStateDescription.description) | ||
override val description: String? | ||
|
||
@get:Schema(description = AddressStateDescription.validFrom) | ||
override val validFrom: LocalDateTime? | ||
|
||
@get:Schema(description = AddressStateDescription.validTo) | ||
override val validTo: LocalDateTime? | ||
|
||
@get:Schema(description = AddressStateDescription.type) | ||
override val type: BusinessStateType | ||
} |
36 changes: 36 additions & 0 deletions
36
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseClassificationDto.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,36 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.ClassificationDescription | ||
import org.eclipse.tractusx.bpdm.common.model.ClassificationType | ||
|
||
@Schema(description = ClassificationDescription.header) | ||
interface IBaseClassificationDto { | ||
@get:Schema(description = ClassificationDescription.type) | ||
val type: ClassificationType | ||
|
||
@get:Schema(description = ClassificationDescription.code) | ||
val code: String? | ||
|
||
@get:Schema(description = ClassificationDescription.value) | ||
val value: String? | ||
} |
26 changes: 26 additions & 0 deletions
26
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseIdentifierDto.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,26 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
interface IBaseIdentifierDto { | ||
val value: String | ||
|
||
val type: String | ||
} |
46 changes: 46 additions & 0 deletions
46
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseLegalEntityDto.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,46 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.ArraySchema | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.LegalEntityDescription | ||
|
||
@Schema(description = LegalEntityDescription.header) | ||
interface IBaseLegalEntityDto { | ||
@get:ArraySchema(arraySchema = Schema(description = LegalEntityDescription.identifiers, required = false)) | ||
val identifiers: Collection<IBaseLegalEntityIdentifierDto> | ||
|
||
@get:Schema(description = LegalEntityDescription.legalShortName) | ||
val legalShortName: String? | ||
|
||
@get:Schema(description = LegalEntityDescription.legalForm) | ||
val legalForm: String? | ||
|
||
@get:ArraySchema(arraySchema = Schema(description = LegalEntityDescription.states)) | ||
val states: Collection<IBaseLegalEntityStateDto> | ||
|
||
@get:ArraySchema(arraySchema = Schema(description = LegalEntityDescription.classifications, required = false)) | ||
val classifications: Collection<IBaseClassificationDto> | ||
|
||
// TODO OpenAPI description for complex field does not work!! | ||
@get:Schema(description = LegalEntityDescription.legalAddress) | ||
val legalAddress: IBaseLogisticAddressDto? | ||
} |
35 changes: 35 additions & 0 deletions
35
...mon/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseLegalEntityIdentifierDto.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,35 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.LegalEntityIdentifierDescription | ||
|
||
@Schema(description = LegalEntityIdentifierDescription.header) | ||
interface IBaseLegalEntityIdentifierDto : IBaseIdentifierDto { | ||
@get:Schema(description = LegalEntityIdentifierDescription.value) | ||
override val value: String | ||
|
||
@get:Schema(description = LegalEntityIdentifierDescription.type) | ||
override val type: String | ||
|
||
@get:Schema(description = LegalEntityIdentifierDescription.issuingBody) | ||
val issuingBody: String? | ||
} |
40 changes: 40 additions & 0 deletions
40
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseLegalEntityStateDto.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,40 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.LegalEntityStateDescription | ||
import org.eclipse.tractusx.bpdm.common.model.BusinessStateType | ||
import java.time.LocalDateTime | ||
|
||
@Schema(description = LegalEntityStateDescription.header) | ||
interface IBaseLegalEntityStateDto : IBusinessPartnerStateDto { | ||
@get:Schema(description = LegalEntityStateDescription.description) | ||
override val description: String? | ||
|
||
@get:Schema(description = LegalEntityStateDescription.validFrom) | ||
override val validFrom: LocalDateTime? | ||
|
||
@get:Schema(description = LegalEntityStateDescription.validTo) | ||
override val validTo: LocalDateTime? | ||
|
||
@get:Schema(description = LegalEntityStateDescription.type) | ||
override val type: BusinessStateType | ||
} |
41 changes: 41 additions & 0 deletions
41
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseLogisticAddressDto.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,41 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.ArraySchema | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.LogisticAddressDescription | ||
|
||
@Schema(description = LogisticAddressDescription.header) | ||
interface IBaseLogisticAddressDto { | ||
@get:ArraySchema(arraySchema = Schema(description = LogisticAddressDescription.states)) | ||
val states: Collection<IBaseAddressStateDto> | ||
|
||
@get:ArraySchema(arraySchema = Schema(description = LogisticAddressDescription.identifiers)) | ||
val identifiers: Collection<IBaseAddressIdentifierDto> | ||
|
||
// TODO OpenAPI description for complex field does not work!! | ||
@get:Schema(description = LogisticAddressDescription.physicalPostalAddress) | ||
val physicalPostalAddress: IBasePhysicalPostalAddressDto? | ||
|
||
// TODO OpenAPI description for complex field does not work!! | ||
@get:Schema(description = LogisticAddressDescription.alternativePostalAddress) | ||
val alternativePostalAddress: IBaseAlternativePostalAddressDto? | ||
} |
35 changes: 35 additions & 0 deletions
35
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseSiteDto.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,35 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.ArraySchema | ||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.SiteDescription | ||
|
||
@Schema(description = SiteDescription.header) | ||
interface IBaseSiteDto { | ||
|
||
@get:ArraySchema(arraySchema = Schema(description = SiteDescription.states)) | ||
val states: Collection<IBaseSiteStateDto> | ||
|
||
// TODO OpenAPI description for complex field does not work!! | ||
@get:Schema(description = SiteDescription.mainAddress) | ||
val mainAddress: IBaseLogisticAddressDto? | ||
} |
41 changes: 41 additions & 0 deletions
41
bpdm-common/src/main/kotlin/org/eclipse/tractusx/bpdm/common/dto/IBaseSiteStateDto.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,41 @@ | ||
/******************************************************************************* | ||
* 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.common.dto | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.SiteDescription | ||
import org.eclipse.tractusx.bpdm.common.dto.openapidescription.SiteStateDescription | ||
import org.eclipse.tractusx.bpdm.common.model.BusinessStateType | ||
import java.time.LocalDateTime | ||
|
||
@Schema(description = SiteDescription.header) | ||
interface IBaseSiteStateDto : IBusinessPartnerStateDto { | ||
@get:Schema(description = SiteStateDescription.description) | ||
override val description: String? | ||
|
||
@get:Schema(description = SiteStateDescription.validFrom) | ||
override val validFrom: LocalDateTime? | ||
|
||
@get:Schema(description = SiteStateDescription.validTo) | ||
override val validTo: LocalDateTime? | ||
|
||
@get:Schema(description = SiteStateDescription.type) | ||
override val type: BusinessStateType | ||
} |
Oops, something went wrong.