refactor: rename response properties in PackageService for consistency

This commit is contained in:
masoodafar-web
2026-02-01 22:25:25 +03:30
parent 794dd01ac0
commit c3eeb16856
2 changed files with 6 additions and 86 deletions
@@ -129,7 +129,7 @@ public class PackageService : PackageContract.PackageContractBase
return new GetCustomerPackagesResponse
{
Packages = { packages }
Models = { packages }
};
}
@@ -163,22 +163,11 @@ public class PackageService : PackageContract.PackageContractBase
return new GetCustomerPackageDetailsResponse
{
Package = new CustomerPackageModel
{
Id = request.PackageId,
Name = "پکیج طلایی",
Title = "پکیج طلایی", // Populate alias field
Description = "پکیج کامل با تمام امکانات برای کاربران حرفه‌ای",
Price = 5600000,
Currency = "IRR",
PackageType = PackageTypeEnum.PackageTypeGolden,
IsAvailable = true,
ImageUrl = "/images/packages/golden-detail.jpg",
ImagePath = "/images/packages/golden-detail.jpg", // Populate alias field
ValidityDays = 365,
IsPopular = true,
ShortDescription = "بهترین انتخاب برای کسب درآمد حداکثری"
},
Id = request.PackageId,
Title = "پکیج طلایی",
Description = "پکیج کامل با تمام امکانات برای کاربران حرفه‌ای",
Price = 5600000,
ImagePath = "/images/packages/golden-detail.jpg",
Features = { packageFeatures },
Requirements = new PurchaseRequirements
{