Skip to content
This repository has been archived by the owner on Jun 2, 2020. It is now read-only.

Commit

Permalink
64: Keep backward compatibility when fixing typos.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexions committed Oct 10, 2019
1 parent 0201ac7 commit 140c021
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using System.Collections.Generic;
using System;
using System.Collections.Generic;
using Newtonsoft.Json;

namespace Klarna.Rest.Core.Model
Expand All @@ -18,5 +19,14 @@ public class SettlementsGetAllPayoutsResponse
/// </summary>
[JsonProperty(PropertyName = "pagination")]
public Pagination Pagination { get; set; }
/// <summary>
/// Deprecated param
/// </summary>
[Obsolete("Paginatinon has a typo in the name and marked as deprecated. Use Pagination instead.")]
public Pagination Paginatinon
{
get => Pagination;
set => Pagination = value;
}
}
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using Newtonsoft.Json;
using System;
using Newtonsoft.Json;

namespace Klarna.Rest.Core.Model
{
Expand All @@ -7,6 +8,12 @@ namespace Klarna.Rest.Core.Model
/// </summary>
public class SettlementsPayoutTotals
{
[Obsolete("ComissionAmount has a typo in the name and marked as deprecated. Use CommissionAmount instead.")]
public int ComissionAmount
{
get => CommissionAmount;
set => CommissionAmount = value;
}
/// <summary>
/// The total amount of commissions, in minor units
/// </summary>
Expand Down

0 comments on commit 140c021

Please sign in to comment.