8 Commits

Author SHA1 Message Date
18fc3fb3f2 Add default value for PaymentType in Walk entity
This commit introduces a default value of `1` for the `PaymentType` property in the `Walk` entity. The `SqlDbContextModelSnapshot.cs` is updated to reflect this change, and the `SqlDbContext.cs` is configured to set the default value to `WalkPaymentType.MangoPay`. A new migration class `Walk_PaymentType_DefaultSet` is created to apply these changes to the database schema, ensuring that new records in the `Walks` table will have a default `PaymentType` of `1`.
2025-09-15 15:35:37 +02:00
fafbc55732 Change authorization policy for EditCustomer method
Updated the authorization policy for the `EditCustomer` method in the `AdvertisementController` to allow access only to users with the "Customer" role, replacing the previous "Power User" role requirement.
2025-08-11 18:01:46 +02:00
555273aed1 Make PaymentType nullable and handle null cases
Updated the PaymentType property in PublicWalkRequestAcceptDto and WalkCreateDto to be nullable.
Modified ApiWalksController to safely assign PaymentType, using a default value when null to prevent runtime errors.
2025-08-06 16:46:32 +02:00
b481a3999a Refactor WalkService and enhance API account features
Significant updates to WalkService.cs for improved fee handling and voucher processing. Introduced API version 3 in ApiAccountController.cs with new user registration and external login endpoints, supporting Google and Apple. Added functionality for setting user types without creating MangoPay users.
2025-06-30 17:17:09 +02:00
38142f2435 Add payment type handling for walks
- Updated `Walk` class to include `PaymentType` property.
- Introduced `WalkPaymentTypeDto` enum for payment types.
- Modified DTOs (`PublicWalkRequestAcceptDto`, `WalkCreateDto`, `WalkDto`, `WalkWithNamesDto`) to include `PaymentType`.
- Enhanced `ApiWalksController` with new endpoints for accepting and canceling walks, and confirming walks with ratings.
- Updated `MappingProfile` for seamless conversion between `WalkPaymentType` and `WalkPaymentTypeDto`.
2025-06-30 15:08:57 +02:00
ada8b7a200 Add payment types for walks and update related models
This commit introduces new payment types, including "MangoPay" and "Cash", to the localization resource files for both German and English. A new enum `WalkPaymentType` is created to represent these payment types, and the `Walk` class is updated to include a required `PaymentType` property of this enum type.

The database context is modified to add a `PaymentType` column to the `Walks` table, accompanied by a migration to implement this change and set a default value. The `WalkController` is updated to support filtering by the new `PaymentType` field, and the mapping profile is enhanced to include mappings for `WalkPaymentType` and its view model counterpart.

View models are also updated to incorporate the new `PaymentType` and its display name. Front-end TypeScript files are adjusted to utilize the new `WalkPaymentType` enum and related properties, while the UI is enhanced to display the payment type in the details view of walks. Version numbers in various configuration files are incremented to reflect these changes.
2025-06-30 11:06:30 +02:00
ecb43012ac Update configuration, enhance UI, and add new features
This commit includes significant updates to the application, focusing on configuration changes, UI enhancements, and new features:

- Updated `appsettings.json` to change the database name and add a new connection string for encryption.
- Modified `launchSettings.json` to allow the application to listen on all network interfaces.
- Introduced new image assets and SVG icons to improve visual elements.
- Added `UserPreferencesService` to manage user acceptance of terms and conditions.
- Expanded `OnboardingViewModel` to manage onboarding steps and user interactions.
- Created new popup ViewModels for managing user agreements and subscription offers.
- Restructured various XAML files to improve layout consistency and data binding.
- Updated project files to reflect version changes and improve organization.
- Introduced a new `SubscriptionModel` class to manage subscription data in the UI.

Overall, these changes enhance the application's structure, usability, and responsiveness.
2025-06-19 21:20:21 +02:00
4eee8ebdf9 Projektdateien hinzufügen. 2025-04-28 09:18:17 +02:00