Skip to content

Commit

Permalink
fix(providerHomepage): responding providerUrl for service
Browse files Browse the repository at this point in the history
  • Loading branch information
tfjanjua committed Oct 31, 2024
1 parent 803d98b commit 6b7c4f7
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docs/api/services-service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2380,6 +2380,10 @@ components:
price:
type: string
description: Pricing information of the app.
providerUri:
type: string
description: Provider's homepage url or marketing url
nullable: true
offerSubscriptionDetailData:
type: array
items:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ public async Task<ServiceDetailResponse> GetServiceDetailsAsync(Guid serviceId,
result.Description,
result.LicenseTypeId,
result.Price,
result.ProviderUri,
result.OfferSubscriptionDetailData,
result.ServiceTypeIds,
result.Documents.GroupBy(doc => doc.DocumentTypeId).ToDictionary(d => d.Key, d => d.Select(x => new DocumentData(x.DocumentId, x.DocumentName))),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ namespace Org.Eclipse.TractusX.Portal.Backend.Services.Service.ViewModels;
/// <param name="Description">The description of the service.</param>
/// <param name="LicenseType">LicenseType for offer</param>
/// <param name="Price">Pricing information of the app.</param>
/// <param name="ProviderUri">Provider's homepage url or marketing url</param>
/// <param name="OfferSubscriptionDetailData">Detail Data of the offer subscription</param>
/// <param name="ServiceTypes">Collection of the assigned serviceTypeIds.</param>
/// <param name="Documents">documents assigned to offer</param>
Expand All @@ -48,6 +49,7 @@ public record ServiceDetailResponse(
string? Description,
LicenseTypeId LicenseType,
string Price,
string? ProviderUri,
IEnumerable<OfferSubscriptionStateDetailData> OfferSubscriptionDetailData,
IEnumerable<ServiceTypeId> ServiceTypes,
IDictionary<DocumentTypeId, IEnumerable<DocumentData>> Documents,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ public record OfferDetailData(
/// <param name="ContactEmail">Contact email address.</param>
/// <param name="Description">The description of the service.</param>
/// <param name="Price">Pricing information of the app.</param>
/// <param name="ProviderUri">Provider's homepage url or marketing url</param>
/// <param name="OfferSubscriptionDetailData">Detail Data of the offer subscription</param>
/// <param name="ServiceTypeIds">Collection of the assigned serviceTypeIds.</param>
/// <param name="Documents">Collections of the Document type Data.</param>
Expand All @@ -64,6 +65,7 @@ public record ServiceDetailData(
string? ContactEmail,
string? Description,
string Price,
string? ProviderUri,
IEnumerable<OfferSubscriptionStateDetailData> OfferSubscriptionDetailData,
IEnumerable<ServiceTypeId> ServiceTypeIds,
IEnumerable<DocumentTypeData> Documents,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,7 @@ public void RemoveAppLanguages(IEnumerable<(Guid appId, string languageShortName
offer.ContactEmail,
offer.OfferDescriptions.SingleOrDefault(d => d.LanguageShortName == languageShortName)!.DescriptionLong,
offer.OfferLicenses.FirstOrDefault()!.Licensetext,
offer.MarketingUrl,
offer.OfferSubscriptions
.Where(os => os.CompanyId == userCompanyId)
.Select(x => new OfferSubscriptionStateDetailData(x.Id, x.OfferSubscriptionStatusId)),
Expand Down

0 comments on commit 6b7c4f7

Please sign in to comment.