Skip to content

Commit e19fae4

Browse files
author
Kevin Hellemun
committed
Rearranged code. (#41)
1 parent 1f8ebaa commit e19fae4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

BunqSdk/Model/Generated/Endpoint/ScheduleInstance.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public class ScheduleInstance : BunqModel
3030
/// <summary>
3131
/// Object type.
3232
/// </summary>
33-
private const string OBJECT_TYPE = "ScheduleInstance";
33+
private const string OBJECT_TYPE = "ScheduledInstance";
3434

3535
/// <summary>
3636
/// The state of the scheduleInstance. (FINISHED_SUCCESSFULLY, RETRY, FAILED_USER_ERROR)
@@ -82,15 +82,15 @@ public static BunqResponse<ScheduleInstance> Get(ApiContext apiContext, int user
8282

8383
/// <summary>
8484
/// </summary>
85-
public static BunqResponse<int> Update(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, int monetaryAccountId, int scheduleId, int scheduleInstanceId, IDictionary<string, string> customHeaders = null)
85+
public static BunqResponse<ScheduleInstance> Update(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, int monetaryAccountId, int scheduleId, int scheduleInstanceId, IDictionary<string, string> customHeaders = null)
8686
{
8787
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
8888

8989
var apiClient = new ApiClient(apiContext);
9090
var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap));
9191
var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, userId, monetaryAccountId, scheduleId, scheduleInstanceId), requestBytes, customHeaders);
9292

93-
return ProcessForId(responseRaw);
93+
return FromJson<ScheduleInstance>(responseRaw, OBJECT_TYPE);
9494
}
9595

9696
/// <summary>

BunqSdk/Model/Generated/Endpoint/SchedulePaymentBatch.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public class SchedulePaymentBatch : BunqModel
3131
/// <summary>
3232
/// Object type.
3333
/// </summary>
34-
private const string OBJECT_TYPE = "SchedulePaymentBatch";
34+
private const string OBJECT_TYPE = "ScheduledPaymentBatch";
3535

3636
/// <summary>
3737
/// The payment details.
@@ -60,15 +60,15 @@ public static BunqResponse<int> Create(ApiContext apiContext, IDictionary<string
6060

6161
/// <summary>
6262
/// </summary>
63-
public static BunqResponse<int> Update(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, int monetaryAccountId, int schedulePaymentBatchId, IDictionary<string, string> customHeaders = null)
63+
public static BunqResponse<SchedulePaymentBatch> Update(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, int monetaryAccountId, int schedulePaymentBatchId, IDictionary<string, string> customHeaders = null)
6464
{
6565
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
6666

6767
var apiClient = new ApiClient(apiContext);
6868
var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap));
6969
var responseRaw = apiClient.Put(string.Format(ENDPOINT_URL_UPDATE, userId, monetaryAccountId, schedulePaymentBatchId), requestBytes, customHeaders);
7070

71-
return ProcessForId(responseRaw);
71+
return FromJson<SchedulePaymentBatch>(responseRaw, OBJECT_TYPE);
7272
}
7373

7474
/// <summary>

0 commit comments

Comments
 (0)