-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(offerSubscriptionDetail): responding External Service details (#75)…
… (#1081) * fix(offerSubscriptionDetail): responding External Service details (#75) * remove nonexisting app-data from service response model * fix inconsistent test-data and unit-tests --------- Co-authored-by: Norbert Truchsess <[email protected]>
- Loading branch information
Showing
29 changed files
with
328 additions
and
388 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
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
59 changes: 59 additions & 0 deletions
59
src/marketplace/Offers.Library/Models/OfferProviderSubscriptionDetailData.cs
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,59 @@ | ||
/******************************************************************************** | ||
* 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 | ||
********************************************************************************/ | ||
|
||
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.DBAccess.Models; | ||
using Org.Eclipse.TractusX.Portal.Backend.PortalBackend.PortalEntities.Enums; | ||
using System.Text.Json.Serialization; | ||
|
||
namespace Org.Eclipse.TractusX.Portal.Backend.Offers.Library.Models; | ||
|
||
/// <summary> | ||
/// Detail data for a offer subscription | ||
/// </summary> | ||
/// <param name="Id">Id of the Offer</param> | ||
/// <param name="OfferSubscriptionStatus">Status of the offer subscription</param> | ||
/// <param name="Name">Name of the Offer</param> | ||
/// <param name="Customer">Name of the company subscribing the offer</param> | ||
/// <param name="Bpn">When called from /provider bpn of the company subscribing the offer, otherwise the provider company's bpn</param> | ||
/// <param name="Contact">When called from /provider the company admins of the subscribing company, otherwise the salesmanagers of the offer provider</param> | ||
/// <param name="TechnicalUserData">Information about the technical user</param> | ||
/// <param name="TenantUrl">Url of Tenant</param> | ||
/// <param name="AppInstanceId">Id of the app instance</param> | ||
public record OfferProviderSubscriptionDetailData( | ||
Guid Id, | ||
OfferSubscriptionStatusId OfferSubscriptionStatus, | ||
string? Name, | ||
string Customer, | ||
string? Bpn, | ||
IEnumerable<string> Contact, | ||
IEnumerable<SubscriptionTechnicalUserData> TechnicalUserData, | ||
IEnumerable<SubscriptionAssignedConnectorData> ConnectorData, | ||
string? TenantUrl, | ||
string? AppInstanceId, | ||
ProcessStepTypeId? ProcessStepTypeId, | ||
SubscriptionExternalServiceData ExternalService | ||
); | ||
public record SubscriptionExternalServiceData( | ||
[property: JsonPropertyName("trusted_issuer")] string TrustedIssuer, | ||
[property: JsonPropertyName("participant_id")] string? ParticipantId, | ||
[property: JsonPropertyName("iatp_id")] string? IatpId, | ||
[property: JsonPropertyName("did_resolver")] string DidResolver, | ||
[property: JsonPropertyName("decentralIdentityManagementAuthUrl")] string DecentralIdentityManagementAuthUrl, | ||
[property: JsonPropertyName("decentralIdentityManagementServiceUrl")] string? DecentralIdentityManagementServiceUrl | ||
); |
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.