- 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`.
46 lines
1.2 KiB
C#
46 lines
1.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.ComponentModel.DataAnnotations;
|
|
using System.Text;
|
|
using gehGassi.Dto.Common;
|
|
|
|
namespace gehGassi.Dto.Walks
|
|
{
|
|
/// <summary>
|
|
/// DTO für das Akzeptieren eines Angebotes für eine öffntliche Anfrage
|
|
/// </summary>
|
|
public class PublicWalkRequestAcceptDto
|
|
{
|
|
/// <summary>
|
|
/// ID des Hundebesitzers
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string DogOwnerId { get; set; }
|
|
|
|
/// <summary>
|
|
/// ID der öffentlichen Anfrage
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string PublicWalkRequestId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Id der Antwort auf die öffentliche Anfrage
|
|
/// </summary>
|
|
[Required]
|
|
[MaxLength(128)]
|
|
public string PublicWalkResponseId { get; set; }
|
|
|
|
/// <summary>
|
|
/// Aktualisierungs-Datum
|
|
/// </summary>
|
|
public DateTimeOffset UpdatedAt { get; set; }
|
|
|
|
/// <summary>
|
|
/// Zahlungsart für den Walk
|
|
/// </summary>
|
|
public WalkPaymentTypeDto PaymentType { get; set; }
|
|
}
|
|
}
|