Skip to content

Commit 12e621f

Browse files
author
Kevin Hellemun
committed
Regenerated code with correct obejct types. (#51)
1 parent 9b67332 commit 12e621f

File tree

89 files changed

+210
-211
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+210
-211
lines changed

BunqSdk/Model/Generated/Endpoint/AttachmentConversationContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class AttachmentConversationContent : BunqModel
2323
/// <summary>
2424
/// Object type.
2525
/// </summary>
26-
private const string OBJECT_TYPE = "AttachmentConversationContent";
26+
private const string OBJECT_TYPE_GET = "AttachmentConversationContent";
2727

2828
/// <summary>
2929
/// Get the raw content of a specific attachment.

BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccount.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ public class AttachmentMonetaryAccount : BunqModel
2424
/// <summary>
2525
/// Object type.
2626
/// </summary>
27-
private const string OBJECT_TYPE = "AttachmentMonetaryAccount";
2827

2928
/// <summary>
3029
/// The attachment.

BunqSdk/Model/Generated/Endpoint/AttachmentPublic.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ public class AttachmentPublic : BunqModel
2525
/// <summary>
2626
/// Object type.
2727
/// </summary>
28-
private const string OBJECT_TYPE = "AttachmentPublic";
28+
private const string OBJECT_TYPE_POST = "Uuid";
29+
private const string OBJECT_TYPE_GET = "AttachmentPublic";
2930

3031
/// <summary>
3132
/// The UUID of the attachment.
@@ -78,7 +79,7 @@ public static BunqResponse<AttachmentPublic> Get(ApiContext apiContext, string a
7879
var apiClient = new ApiClient(apiContext);
7980
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, attachmentPublicUuid), new Dictionary<string, string>(), customHeaders);
8081

81-
return FromJson<AttachmentPublic>(responseRaw, OBJECT_TYPE);
82+
return FromJson<AttachmentPublic>(responseRaw, OBJECT_TYPE_GET);
8283
}
8384

8485

BunqSdk/Model/Generated/Endpoint/AttachmentPublicContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class AttachmentPublicContent : BunqModel
2323
/// <summary>
2424
/// Object type.
2525
/// </summary>
26-
private const string OBJECT_TYPE = "AttachmentPublicContent";
26+
private const string OBJECT_TYPE_GET = "AttachmentPublicContent";
2727

2828
/// <summary>
2929
/// Get the raw content of a specific attachment.

BunqSdk/Model/Generated/Endpoint/AttachmentTab.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public class AttachmentTab : BunqModel
2525
/// <summary>
2626
/// Object type.
2727
/// </summary>
28-
private const string OBJECT_TYPE = "AttachmentTab";
28+
private const string OBJECT_TYPE_GET = "AttachmentTab";
2929

3030
/// <summary>
3131
/// The id of the attachment.
@@ -77,7 +77,7 @@ public static BunqResponse<AttachmentTab> Get(ApiContext apiContext, int userId,
7777
var apiClient = new ApiClient(apiContext);
7878
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, userId, monetaryAccountId, attachmentTabId), new Dictionary<string, string>(), customHeaders);
7979

80-
return FromJson<AttachmentTab>(responseRaw, OBJECT_TYPE);
80+
return FromJson<AttachmentTab>(responseRaw, OBJECT_TYPE_GET);
8181
}
8282

8383

BunqSdk/Model/Generated/Endpoint/AttachmentTabContent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public class AttachmentTabContent : BunqModel
2323
/// <summary>
2424
/// Object type.
2525
/// </summary>
26-
private const string OBJECT_TYPE = "AttachmentTabContent";
26+
private const string OBJECT_TYPE_GET = "AttachmentTabContent";
2727

2828
/// <summary>
2929
/// Get the raw content of a specific attachment.

BunqSdk/Model/Generated/Endpoint/Avatar.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public class Avatar : BunqModel
3232
/// <summary>
3333
/// Object type.
3434
/// </summary>
35-
private const string OBJECT_TYPE = "Avatar";
35+
private const string OBJECT_TYPE_POST = "Uuid";
36+
private const string OBJECT_TYPE_GET = "Avatar";
3637

3738
/// <summary>
3839
/// The UUID of the created avatar.
@@ -68,7 +69,7 @@ public static BunqResponse<Avatar> Get(ApiContext apiContext, string avatarUuid,
6869
var apiClient = new ApiClient(apiContext);
6970
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_READ, avatarUuid), new Dictionary<string, string>(), customHeaders);
7071

71-
return FromJson<Avatar>(responseRaw, OBJECT_TYPE);
72+
return FromJson<Avatar>(responseRaw, OBJECT_TYPE_GET);
7273
}
7374

7475

BunqSdk/Model/Generated/Endpoint/BillingContractSubscription.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class BillingContractSubscription : BunqModel
2828
/// <summary>
2929
/// Object type.
3030
/// </summary>
31-
private const string OBJECT_TYPE = "BillingContractSubscription";
31+
private const string OBJECT_TYPE_GET = "BillingContractSubscription";
3232

3333
/// <summary>
3434
/// The id of the billing contract.
@@ -75,15 +75,15 @@ public class BillingContractSubscription : BunqModel
7575

7676
/// <summary>
7777
/// </summary>
78-
public static BunqResponse<BillingContractSubscription> Create(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, IDictionary<string, string> customHeaders = null)
78+
public static BunqResponse<int> Create(ApiContext apiContext, IDictionary<string, object> requestMap, int userId, IDictionary<string, string> customHeaders = null)
7979
{
8080
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
8181

8282
var apiClient = new ApiClient(apiContext);
8383
var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap));
8484
var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, userId), requestBytes, customHeaders);
8585

86-
return FromJson<BillingContractSubscription>(responseRaw, OBJECT_TYPE);
86+
return ProcessForId(responseRaw);
8787
}
8888

8989
/// <summary>
@@ -97,7 +97,7 @@ public static BunqResponse<List<BillingContractSubscription>> List(ApiContext ap
9797
var apiClient = new ApiClient(apiContext);
9898
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, userId), urlParams, customHeaders);
9999

100-
return FromJsonList<BillingContractSubscription>(responseRaw, OBJECT_TYPE);
100+
return FromJsonList<BillingContractSubscription>(responseRaw, OBJECT_TYPE_GET);
101101
}
102102

103103

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfile.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ public class BunqMeFundraiserProfile : BunqModel
1818
/// <summary>
1919
/// Object type.
2020
/// </summary>
21-
private const string OBJECT_TYPE = "BunqMeFundraiserProfileModel";
2221

2322
/// <summary>
2423
/// The color chosen for the bunq.me fundraiser profile in hexadecimal format.

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResult.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ public class BunqMeFundraiserResult : BunqModel
1212
/// <summary>
1313
/// Object type.
1414
/// </summary>
15-
private const string OBJECT_TYPE = "BunqMeFundraiserResult";
1615

1716
/// <summary>
1817
/// The id of the bunq.me.

0 commit comments

Comments
 (0)