Browse Source

Add Serializable attribute to dtos

pull/69/head
enisn 5 years ago
parent
commit
e6e45315b2
  1. 2
      modules/payment/src/Payment.Application.Contracts/PaymentRequests/PaymentRequestCreationDto.cs
  2. 1
      modules/payment/src/Payment.Application.Contracts/PaymentRequests/PaymentRequestDto.cs
  3. 1
      modules/payment/src/Payment.Application.Contracts/PaymentRequests/StartPaymentDto.cs
  4. 5
      modules/payment/src/Payment.Application.Contracts/PaymentRequests/StartPaymentResultDto.cs

2
modules/payment/src/Payment.Application.Contracts/PaymentRequests/PaymentRequestCreationDto.cs

@ -1,10 +1,12 @@
using JetBrains.Annotations;
using System;
using System.ComponentModel.DataAnnotations;
using Volo.Abp.ObjectExtending;
using Volo.Abp.Validation;
namespace Payment.PaymentRequests
{
[Serializable]
public class PaymentRequestCreationDto : ExtensibleObject
{
[DynamicMaxLength(typeof(PaymentRequestConsts), nameof(PaymentRequestConsts.MaxCustomerIdLength))]

1
modules/payment/src/Payment.Application.Contracts/PaymentRequests/PaymentRequestDto.cs

@ -3,6 +3,7 @@ using Volo.Abp.Application.Dtos;
namespace Payment.PaymentRequests
{
[Serializable]
public class PaymentRequestDto : CreationAuditedEntityDto<Guid>
{
public string CustomerId { get; set; }

1
modules/payment/src/Payment.Application.Contracts/PaymentRequests/StartPaymentDto.cs

@ -4,6 +4,7 @@ using System.ComponentModel.DataAnnotations;
namespace Payment.PaymentRequests
{
[Serializable]
public class StartPaymentDto
{
public Guid PaymentRequestId { get; set; }

5
modules/payment/src/Payment.Application.Contracts/PaymentRequests/StartPaymentResultDto.cs

@ -1,5 +1,8 @@
namespace Payment.PaymentRequests
using System;
namespace Payment.PaymentRequests
{
[Serializable]
public class StartPaymentResultDto
{
public string CheckoutLink { get; set; }

Loading…
Cancel
Save