<commit_before>﻿using Newtonsoft.Json;
using PaymillWrapper.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace PaymillWrapper.Models
{
    public class Fee
    {
        [Newtonsoft.Json.JsonConverter(typeof(StringToBaseEnumTypeConverter<FeeType>))]
        public sealed class FeeType : EnumBaseType
        {
            public static readonly Fee.FeeType APPLICATION = new FeeType("application");
            public static readonly Fee.FeeType UNKNOWN = new FeeType("", true);

            private FeeType(String value, Boolean unknowValue = false)
                : base(value, unknowValue)
            {

            }
            public FeeType()
                : base("", false)
            {
            }
        }

        [DataMember(Name = "type")]
        public FeeType Type { get; set; }

        [DataMember(Name = "application")]
        public String Application { get; set; }

        [DataMember(Name = "payment")]
        public String Payment { get; set; }

        [DataMember(Name = "amount")]
        public int? Amount { get; set; }

        [DataMember(Name = "billed_at")]
        public DateTime? BilledAt { get; set; }

        [DataMember(Name = "currency")]
        public String Currency { get; set; }

        [DataMember(Name = "application")]
        public String application{ get; set; }
    }
}<commit_msg>Fixed a bug, which was caused, because there where two fields in the Fee class, ("Application" and "application"), which where both marked as JSON properties with the same name ("application"). This caused a JsonSerializationException. The bug was fixed by removing the (probably deprecated) property "application".<commit_after>﻿using Newtonsoft.Json;
using PaymillWrapper.Utils;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.Text;
using System.Threading.Tasks;

namespace PaymillWrapper.Models
{
    public class Fee
    {
        [Newtonsoft.Json.JsonConverter(typeof(StringToBaseEnumTypeConverter<FeeType>))]
        public sealed class FeeType : EnumBaseType
        {
            public static readonly Fee.FeeType APPLICATION = new FeeType("application");
            public static readonly Fee.FeeType UNKNOWN = new FeeType("", true);

            private FeeType(String value, Boolean unknowValue = false)
                : base(value, unknowValue)
            {

            }
            public FeeType()
                : base("", false)
            {
            }
        }

        [DataMember(Name = "type")]
        public FeeType Type { get; set; }

        [DataMember(Name = "application")]
        public String Application { get; set; }

        [DataMember(Name = "payment")]
        public String Payment { get; set; }

        [DataMember(Name = "amount")]
        public int? Amount { get; set; }

        [DataMember(Name = "billed_at")]
        public DateTime? BilledAt { get; set; }

        [DataMember(Name = "currency")]
        public String Currency { get; set; }
    }
}
{'fraction_non_alphanumeric': 0.10124164278892073, 'fraction_numerical': 0.0, 'mean_word_length': 2.430131004366812, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6409931', 'n_tokens_mistral': 857, 'n_tokens_neox': 833, 'n_words': 243}