Skip to content

Commit 2d7c270

Browse files
Regenerated code based on the latest tag.
1 parent 2fd8a04 commit 2d7c270

File tree

212 files changed

+8885
-7028
lines changed

Some content is hidden

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

212 files changed

+8885
-7028
lines changed

.idea/.idea.BunqSdk/.idea/contentModel.xml

+33-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.BunqSdk/.idea/vcs.xml

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.idea/.idea.BunqSdk/riderModule.iml

+6-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BunqSdk/Model/Generated/Endpoint/AttachmentConversationContent.cs

+13-10
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,41 @@ public class AttachmentConversationContent : BunqModel
1919
/// Endpoint constants.
2020
/// </summary>
2121
protected const string ENDPOINT_URL_LISTING = "user/{0}/chat-conversation/{1}/attachment/{2}/content";
22-
22+
2323
/// <summary>
2424
/// Object type.
2525
/// </summary>
2626
private const string OBJECT_TYPE_GET = "AttachmentConversationContent";
27-
27+
2828
/// <summary>
2929
/// Get the raw content of a specific attachment.
3030
/// </summary>
31-
public static BunqResponse<byte[]> List(int chatConversationId, int attachmentId, IDictionary<string, string> customHeaders = null)
31+
public static BunqResponse<byte[]> List(int chatConversationId, int attachmentId,
32+
IDictionary<string, string> customHeaders = null)
3233
{
3334
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
34-
35+
3536
var apiClient = new ApiClient(GetApiContext());
36-
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), chatConversationId, attachmentId), new Dictionary<string, string>(), customHeaders);
37-
37+
var responseRaw =
38+
apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), chatConversationId, attachmentId),
39+
new Dictionary<string, string>(), customHeaders);
40+
3841
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
3942
}
40-
41-
43+
44+
4245
/// <summary>
4346
/// </summary>
4447
public override bool IsAllFieldNull()
4548
{
4649
return true;
4750
}
48-
51+
4952
/// <summary>
5053
/// </summary>
5154
public static AttachmentConversationContent CreateFromJsonString(string json)
5255
{
5356
return BunqModel.CreateFromJsonString<AttachmentConversationContent>(json);
5457
}
5558
}
56-
}
59+
}

BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccount.cs

+19-15
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,42 @@ public class AttachmentMonetaryAccount : BunqModel
2020
/// Endpoint constants.
2121
/// </summary>
2222
protected const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/attachment";
23-
24-
23+
24+
2525
/// <summary>
2626
/// The attachment.
2727
/// </summary>
2828
[JsonProperty(PropertyName = "attachment")]
2929
public Attachment Attachment { get; set; }
30-
30+
3131
/// <summary>
3232
/// The ID of the attachment created.
3333
/// </summary>
3434
[JsonProperty(PropertyName = "id")]
3535
public int? Id { get; set; }
36-
37-
36+
37+
3838
/// <summary>
3939
/// Create a new monetary account attachment. Create a POST request with a payload that contains the binary
4040
/// representation of the file, without any JSON wrapping. Make sure you define the MIME type (i.e. image/jpeg)
4141
/// in the Content-Type header. You are required to provide a description of the attachment using the
4242
/// X-Bunq-Attachment-Description header.
4343
/// </summary>
44-
public static BunqResponse<int> Create(byte[] requestBytes, int? monetaryAccountId= null, IDictionary<string, string> customHeaders = null)
44+
public static BunqResponse<int> Create(byte[] requestBytes, int? monetaryAccountId = null,
45+
IDictionary<string, string> customHeaders = null)
4546
{
4647
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
47-
48+
4849
var apiClient = new ApiClient(GetApiContext());
49-
var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId)), requestBytes, customHeaders);
50-
50+
var responseRaw =
51+
apiClient.Post(
52+
string.Format(ENDPOINT_URL_CREATE, DetermineUserId(),
53+
DetermineMonetaryAccountId(monetaryAccountId)), requestBytes, customHeaders);
54+
5155
return ProcessForId(responseRaw);
5256
}
53-
54-
57+
58+
5559
/// <summary>
5660
/// </summary>
5761
public override bool IsAllFieldNull()
@@ -60,20 +64,20 @@ public override bool IsAllFieldNull()
6064
{
6165
return false;
6266
}
63-
67+
6468
if (this.Id != null)
6569
{
6670
return false;
6771
}
68-
72+
6973
return true;
7074
}
71-
75+
7276
/// <summary>
7377
/// </summary>
7478
public static AttachmentMonetaryAccount CreateFromJsonString(string json)
7579
{
7680
return BunqModel.CreateFromJsonString<AttachmentMonetaryAccount>(json);
7781
}
7882
}
79-
}
83+
}

BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccountContent.cs

+15-10
Original file line numberDiff line numberDiff line change
@@ -19,38 +19,43 @@ public class AttachmentMonetaryAccountContent : BunqModel
1919
/// Endpoint constants.
2020
/// </summary>
2121
protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/attachment/{2}/content";
22-
22+
2323
/// <summary>
2424
/// Object type.
2525
/// </summary>
2626
private const string OBJECT_TYPE_GET = "AttachmentMonetaryAccountContent";
27-
27+
2828
/// <summary>
2929
/// Get the raw content of a specific attachment.
3030
/// </summary>
31-
public static BunqResponse<byte[]> List(int attachmentId, int? monetaryAccountId= null, IDictionary<string, string> customHeaders = null)
31+
public static BunqResponse<byte[]> List(int attachmentId, int? monetaryAccountId = null,
32+
IDictionary<string, string> customHeaders = null)
3233
{
3334
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
34-
35+
3536
var apiClient = new ApiClient(GetApiContext());
36-
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), DetermineMonetaryAccountId(monetaryAccountId), attachmentId), new Dictionary<string, string>(), customHeaders);
37-
37+
var responseRaw =
38+
apiClient.Get(
39+
string.Format(ENDPOINT_URL_LISTING, DetermineUserId(),
40+
DetermineMonetaryAccountId(monetaryAccountId), attachmentId), new Dictionary<string, string>(),
41+
customHeaders);
42+
3843
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
3944
}
40-
41-
45+
46+
4247
/// <summary>
4348
/// </summary>
4449
public override bool IsAllFieldNull()
4550
{
4651
return true;
4752
}
48-
53+
4954
/// <summary>
5055
/// </summary>
5156
public static AttachmentMonetaryAccountContent CreateFromJsonString(string json)
5257
{
5358
return BunqModel.CreateFromJsonString<AttachmentMonetaryAccountContent>(json);
5459
}
5560
}
56-
}
61+
}

0 commit comments

Comments
 (0)