Skip to content

Commit

Permalink
Removed jsonConverter from paymentDetails and inheriting classes
Browse files Browse the repository at this point in the history
  • Loading branch information
TTA777 committed Feb 13, 2024
1 parent d141135 commit 35b07e7
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
using NJsonSchema.Converters;

namespace CoffeeCard.Models.DataTransferObjects.v2.Purchase
{
Expand All @@ -14,7 +12,6 @@ namespace CoffeeCard.Models.DataTransferObjects.v2.Purchase
/// }
/// </example>
[KnownType(typeof(FreePurchasePaymentDetails))]
[JsonConverter(typeof(JsonInheritanceConverter<PaymentDetails>))]
public class FreePurchasePaymentDetails : PaymentDetails
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Newtonsoft.Json;
using NJsonSchema.Converters;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

Expand All @@ -17,7 +16,6 @@ namespace CoffeeCard.Models.DataTransferObjects.v2.Purchase
/// }
/// </example>
[KnownType(typeof(MobilePayPaymentDetails))]
[JsonConverter(typeof(JsonInheritanceConverter<PaymentDetails>))]
public class MobilePayPaymentDetails : PaymentDetails
{
/// <summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using System.Text.Json.Serialization;
using NJsonSchema.Converters;

namespace CoffeeCard.Models.DataTransferObjects.v2.Purchase
{
[KnownType(typeof(MobilePayPaymentDetails))]
[KnownType(typeof(FreePurchasePaymentDetails))]
[JsonConverter(typeof(JsonInheritanceConverter<PaymentDetails>))]
public abstract class PaymentDetails
{
/// <summary>
Expand Down

0 comments on commit 35b07e7

Please sign in to comment.