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

Commit

Permalink
Merge pull request #65 from klarna/64_fix_typo_settlements_payouts
Browse files Browse the repository at this point in the history
#64: Fix typos in Settlements models.
  • Loading branch information
Alexander Zinovyev authored Oct 10, 2019
2 parents 0114334 + 140c021 commit 8b6433b
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 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 @@ -20,6 +21,15 @@ public class SettlementsGetAllPayoutsResponse
/// Pagination information
/// </summary>
[JsonProperty(PropertyName = "pagination")]
public Pagination Paginatinon { get; set; }
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;
}
}
}
11 changes: 9 additions & 2 deletions Klarna.Rest/Klarna.Rest.Core/Model/SettlementsPayoutTotals.cs
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,11 +8,17 @@ 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>
[JsonProperty(PropertyName = "commission_amount")]
public int ComissionAmount { get; set; }
public int CommissionAmount { get; set; }
/// <summary>
/// The total amount of money that has been repaid by the merchant from the debt to Klarna, in minor units
/// </summary>
Expand Down

0 comments on commit 8b6433b

Please sign in to comment.