11 changed files with 82 additions and 92 deletions
@ -1,11 +1,10 @@ |
|||
using Volo.Abp.Domain.Entities.Events.Distributed; |
|||
using Volo.Abp.EventBus; |
|||
|
|||
namespace EShopOnAbp.PaymentService.PaymentRequests |
|||
namespace EShopOnAbp.PaymentService.PaymentRequests; |
|||
|
|||
[EventName("EShopOnAbp.Payment.Completed")] |
|||
public class PaymentCompletedEto : EtoBase |
|||
{ |
|||
[EventName("EShopOnAbp.Payment.Completed")] |
|||
public class PaymentCompletedEto : EtoBase |
|||
{ |
|||
public PaymentRequestDto PaymentRequest { get; set; } |
|||
} |
|||
} |
|||
public PaymentRequestDto PaymentRequest { get; set; } |
|||
} |
|||
@ -1,22 +1,21 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace EShopOnAbp.PaymentService.PaymentRequests |
|||
namespace EShopOnAbp.PaymentService.PaymentRequests; |
|||
|
|||
[Serializable] |
|||
public class PaymentRequestProductCreationDto |
|||
{ |
|||
[Serializable] |
|||
public class PaymentRequestProductCreationDto |
|||
{ |
|||
public string ReferenceId { get; set; } |
|||
public string ReferenceId { get; set; } |
|||
|
|||
[Required] |
|||
[MaxLength(PaymentRequestConsts.MaxCodeLength)] |
|||
public string Code { get; set; } |
|||
[Required] |
|||
[MaxLength(PaymentRequestConsts.MaxCodeLength)] |
|||
public string Code { get; set; } |
|||
|
|||
[Required] |
|||
[MaxLength(PaymentRequestConsts.MaxNameLength)] |
|||
public string Name { get; set; } |
|||
public decimal UnitPrice { get; set; } |
|||
public int Quantity { get; set; } |
|||
public decimal TotalPrice { get; set; } |
|||
} |
|||
[Required] |
|||
[MaxLength(PaymentRequestConsts.MaxNameLength)] |
|||
public string Name { get; set; } |
|||
public decimal UnitPrice { get; set; } |
|||
public int Quantity { get; set; } |
|||
public decimal TotalPrice { get; set; } |
|||
} |
|||
@ -1,23 +1,22 @@ |
|||
using System; |
|||
using Volo.Abp.Application.Dtos; |
|||
|
|||
namespace EShopOnAbp.PaymentService.PaymentRequests |
|||
namespace EShopOnAbp.PaymentService.PaymentRequests; |
|||
|
|||
public class PaymentRequestProductDto : EntityDto<Guid> |
|||
{ |
|||
public class PaymentRequestProductDto : EntityDto<Guid> |
|||
{ |
|||
public Guid PaymentRequestId { get; set; } |
|||
public Guid PaymentRequestId { get; set; } |
|||
|
|||
public string ReferenceId { get; set; } |
|||
public string ReferenceId { get; set; } |
|||
|
|||
public string Code { get; set; } |
|||
public string Code { get; set; } |
|||
|
|||
public string Name { get; set; } |
|||
public string Name { get; set; } |
|||
|
|||
public decimal UnitPrice { get; set; } |
|||
public decimal UnitPrice { get; set; } |
|||
|
|||
public int Quantity { get; set; } |
|||
public int Quantity { get; set; } |
|||
|
|||
public decimal TotalPrice { get; set; } |
|||
public decimal TotalPrice { get; set; } |
|||
|
|||
} |
|||
} |
|||
@ -1,17 +1,16 @@ |
|||
using System; |
|||
using System.ComponentModel.DataAnnotations; |
|||
|
|||
namespace EShopOnAbp.PaymentService.PaymentRequests |
|||
namespace EShopOnAbp.PaymentService.PaymentRequests; |
|||
|
|||
[Serializable] |
|||
public class PaymentRequestStartDto |
|||
{ |
|||
[Serializable] |
|||
public class PaymentRequestStartDto |
|||
{ |
|||
public int PaymentTypeId { get; set; } |
|||
public Guid PaymentRequestId { get; set; } |
|||
public int PaymentTypeId { get; set; } |
|||
public Guid PaymentRequestId { get; set; } |
|||
|
|||
[Required] |
|||
public string ReturnUrl { get; set; } |
|||
[Required] |
|||
public string ReturnUrl { get; set; } |
|||
|
|||
public string CancelUrl { get; set; } |
|||
} |
|||
public string CancelUrl { get; set; } |
|||
} |
|||
@ -1,10 +1,9 @@ |
|||
using System; |
|||
|
|||
namespace EShopOnAbp.PaymentService.PaymentRequests |
|||
namespace EShopOnAbp.PaymentService.PaymentRequests; |
|||
|
|||
[Serializable] |
|||
public class PaymentRequestStartResultDto |
|||
{ |
|||
[Serializable] |
|||
public class PaymentRequestStartResultDto |
|||
{ |
|||
public string CheckoutLink { get; set; } |
|||
} |
|||
public string CheckoutLink { get; set; } |
|||
} |
|||
@ -1,6 +1,5 @@ |
|||
namespace EShopOnAbp.PaymentService |
|||
namespace EShopOnAbp.PaymentService; |
|||
|
|||
public static class PaymentServiceConsts |
|||
{ |
|||
public static class PaymentServiceConsts |
|||
{ |
|||
} |
|||
} |
|||
} |
|||
Loading…
Reference in new issue