Skip to content

Commit 379adeb

Browse files
authored
Merge pull request #40 from bunq/feature/fix_draftPayment_object_#37
Feature/fix draft payment object #37
2 parents 80b3807 + 2f1d941 commit 379adeb

File tree

2 files changed

+24
-2
lines changed

2 files changed

+24
-2
lines changed

BunqSdk/Model/Generated/Endpoint/DraftPayment.cs

+2-2
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public class DraftPayment : BunqModel
3838
private const string OBJECT_TYPE = "DraftPayment";
3939

4040
/// <summary>
41-
/// The id of the DraftPayment.
41+
/// The id of the created DrafPayment.
4242
/// </summary>
4343
[JsonProperty(PropertyName = "id")]
4444
public int? Id { get; private set; }
@@ -83,7 +83,7 @@ public class DraftPayment : BunqModel
8383
/// The Payment or PaymentBatch. This will only be present after the DraftPayment has been accepted.
8484
/// </summary>
8585
[JsonProperty(PropertyName = "object")]
86-
public BunqModel Object { get; private set; }
86+
public DraftPaymentAnchorObject Object { get; private set; }
8787

8888
/// <summary>
8989
/// Create a new DraftPayment.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using Bunq.Sdk.Model.Core;
2+
using Bunq.Sdk.Model.Generated.Endpoint;
3+
using Newtonsoft.Json;
4+
using System.Collections.Generic;
5+
6+
namespace Bunq.Sdk.Model.Generated.Object
7+
{
8+
/// <summary>
9+
/// </summary>
10+
public class DraftPaymentAnchorObject : BunqModel
11+
{
12+
/// <summary>
13+
/// </summary>
14+
[JsonProperty(PropertyName = "Payment")]
15+
public Payment Payment { get; set; }
16+
17+
/// <summary>
18+
/// </summary>
19+
[JsonProperty(PropertyName = "PaymentBatch")]
20+
public PaymentBatch PaymentBatch { get; set; }
21+
}
22+
}

0 commit comments

Comments
 (0)