|
|
|
@ -1,16 +1,20 @@ |
|
|
|
using JetBrains.Annotations; |
|
|
|
using System.ComponentModel.DataAnnotations; |
|
|
|
using Volo.Abp.ObjectExtending; |
|
|
|
using Volo.Abp.Validation; |
|
|
|
|
|
|
|
namespace Payment.PaymentRequests |
|
|
|
{ |
|
|
|
public class PaymentRequestCreationDto : ExtensibleObject |
|
|
|
{ |
|
|
|
[DynamicMaxLength(typeof(PaymentRequestConsts), nameof(PaymentRequestConsts.MaxCustomerIdLength))] |
|
|
|
public string CustomerId { get; set; } |
|
|
|
|
|
|
|
[DynamicMaxLength(typeof(PaymentRequestConsts), nameof(PaymentRequestConsts.MaxProductIdLength))] |
|
|
|
public string ProductId { get; set; } |
|
|
|
|
|
|
|
[Required] |
|
|
|
[DynamicMaxLength(typeof(PaymentRequestConsts), nameof(PaymentRequestConsts.MaxProductNameLength))] |
|
|
|
public string ProductName { get; set; } |
|
|
|
|
|
|
|
public decimal Price { get; set; } |
|
|
|
|