Compare commits
2 Commits
b481a3999a
...
fafbc55732
| Author | SHA1 | Date | |
|---|---|---|---|
| fafbc55732 | |||
| 555273aed1 |
@ -40,6 +40,6 @@ namespace gehGassi.Dto.Walks
|
||||
/// <summary>
|
||||
/// Zahlungsart für den Walk
|
||||
/// </summary>
|
||||
public WalkPaymentTypeDto PaymentType { get; set; }
|
||||
public WalkPaymentTypeDto? PaymentType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,6 +105,6 @@ namespace gehGassi.Dto.Walks
|
||||
/// <summary>
|
||||
/// Zahlungsart für den Walk
|
||||
/// </summary>
|
||||
public WalkPaymentTypeDto PaymentType { get; set; }
|
||||
public WalkPaymentTypeDto? PaymentType { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
@ -776,7 +776,7 @@ namespace gehGassi.Web.Controllers
|
||||
/// </summary>
|
||||
/// <param name="model">Model</param>
|
||||
/// <returns>Json</returns>
|
||||
[Authorize(Policy = Policies.PowerUserOnly)]
|
||||
[Authorize(Policy = Policies.CustomerOnly)]
|
||||
[HasPermission(Permission.AdvertisementsManage, Permission.AdvertisementsEdit)]
|
||||
[CustomerAuthorize("CustomerId")]
|
||||
[ValidateAntiForgeryToken]
|
||||
|
||||
@ -1039,7 +1039,7 @@ namespace gehGassi.Web.Controllers.Api
|
||||
walk.CompletedInfo = string.Empty;
|
||||
walk.Defactation = false;
|
||||
walk.PaymentStatus = PaymentStatus.Pending;
|
||||
walk.PaymentType = (WalkPaymentType)model.PaymentType;
|
||||
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
|
||||
walk.UpdatedAt = DateTimeOffset.UtcNow;
|
||||
walk.Created = DateTimeOffset.UtcNow;
|
||||
|
||||
@ -3630,7 +3630,7 @@ namespace gehGassi.Web.Controllers.Api
|
||||
walk.CompletedInfo = string.Empty;
|
||||
walk.Defactation = false;
|
||||
walk.PaymentStatus = PaymentStatus.Pending;
|
||||
walk.PaymentType = (WalkPaymentType)model.PaymentType;
|
||||
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
|
||||
walk.UpdatedAt = DateTimeOffset.UtcNow;
|
||||
walk.Created = DateTimeOffset.UtcNow;
|
||||
|
||||
@ -3810,7 +3810,7 @@ namespace gehGassi.Web.Controllers.Api
|
||||
walk.CompletedInfo = string.Empty;
|
||||
walk.Defactation = false;
|
||||
walk.PaymentStatus = PaymentStatus.None;
|
||||
walk.PaymentType = (WalkPaymentType)model.PaymentType;
|
||||
walk.PaymentType = model.PaymentType != null ? (WalkPaymentType)model.PaymentType : WalkPaymentType.MangoPay;
|
||||
walk.UpdatedAt = DateTimeOffset.UtcNow;
|
||||
walk.Created = DateTimeOffset.UtcNow;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user