Skip to content

Commit 6bbec06

Browse files
committed
Merge tag '1.10.16' into develop
Release 1.10.16
2 parents 4c48114 + d532d15 commit 6bbec06

File tree

210 files changed

+611
-23
lines changed

Some content is hidden

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

210 files changed

+611
-23
lines changed

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

Lines changed: 5 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

BunqSdk/BunqSdk.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<PackageId>Bunq.Sdk</PackageId>
99
</PropertyGroup>
1010
<PropertyGroup>
11-
<VersionPrefix>1.10.3.0</VersionPrefix>
11+
<VersionPrefix>1.10.16.0</VersionPrefix>
1212
</PropertyGroup>
1313
<PropertyGroup>
1414
<RootNamespace>Bunq.Sdk</RootNamespace>

BunqSdk/Http/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public class ApiClient
6464
/// Values for the default headers
6565
/// </summary>
6666
private const string CACHE_CONTROL_NONE = "no-cache";
67-
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.10.3";
67+
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.10.16";
6868
private const string LANGUAGE_EN_US = "en_US";
6969
private const string REGION_NL_NL = "nl_NL";
7070
private const string GEOLOCATION_ZERO = "0 0 0 0 NL";

BunqSdk/Model/Generated/Endpoint/AttachmentConversationContent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ public static BunqResponse<byte[]> List(int chatConversationId, int attachmentId
4141
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
4242
}
4343

44+
4445
/// <summary>
4546
/// </summary>
4647
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccount.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public class AttachmentMonetaryAccount : BunqModel
2121
/// </summary>
2222
protected const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/attachment";
2323

24+
2425
/// <summary>
2526
/// The attachment.
2627
/// </summary>
@@ -33,6 +34,7 @@ public class AttachmentMonetaryAccount : BunqModel
3334
[JsonProperty(PropertyName = "id")]
3435
public int? Id { get; set; }
3536

37+
3638
/// <summary>
3739
/// Create a new monetary account attachment. Create a POST request with a payload that contains the binary
3840
/// representation of the file, without any JSON wrapping. Make sure you define the MIME type (i.e. image/jpeg)
@@ -53,6 +55,7 @@ public static BunqResponse<int> Create(byte[] requestBytes, int? monetaryAccount
5355
return ProcessForId(responseRaw);
5456
}
5557

58+
5659
/// <summary>
5760
/// </summary>
5861
public override bool IsAllFieldNull()
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
using Bunq.Sdk.Context;
2+
using Bunq.Sdk.Http;
3+
using Bunq.Sdk.Json;
4+
using Bunq.Sdk.Model.Core;
5+
using Newtonsoft.Json;
6+
using System.Collections.Generic;
7+
using System.Text;
8+
using System;
9+
10+
namespace Bunq.Sdk.Model.Generated.Endpoint
11+
{
12+
/// <summary>
13+
/// Fetch the raw content of a monetary account attachment with given ID. The raw content is the binary
14+
/// representation of a file, without any JSON wrapping.
15+
/// </summary>
16+
public class AttachmentMonetaryAccountContent : BunqModel
17+
{
18+
/// <summary>
19+
/// Endpoint constants.
20+
/// </summary>
21+
protected const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/attachment/{2}/content";
22+
23+
/// <summary>
24+
/// Object type.
25+
/// </summary>
26+
private const string OBJECT_TYPE_GET = "AttachmentMonetaryAccountContent";
27+
28+
/// <summary>
29+
/// Get the raw content of a specific attachment.
30+
/// </summary>
31+
public static BunqResponse<byte[]> List(int attachmentId, int? monetaryAccountId = null,
32+
IDictionary<string, string> customHeaders = null)
33+
{
34+
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
35+
36+
var apiClient = new ApiClient(GetApiContext());
37+
var responseRaw =
38+
apiClient.Get(
39+
string.Format(ENDPOINT_URL_LISTING, DetermineUserId(),
40+
DetermineMonetaryAccountId(monetaryAccountId), attachmentId), new Dictionary<string, string>(),
41+
customHeaders);
42+
43+
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
44+
}
45+
46+
47+
/// <summary>
48+
/// </summary>
49+
public override bool IsAllFieldNull()
50+
{
51+
return true;
52+
}
53+
54+
/// <summary>
55+
/// </summary>
56+
public static AttachmentMonetaryAccountContent CreateFromJsonString(string json)
57+
{
58+
return BunqModel.CreateFromJsonString<AttachmentMonetaryAccountContent>(json);
59+
}
60+
}
61+
}

BunqSdk/Model/Generated/Endpoint/AttachmentPublic.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class AttachmentPublic : BunqModel
5454
[JsonProperty(PropertyName = "attachment")]
5555
public Attachment Attachment { get; set; }
5656

57+
5758
/// <summary>
5859
/// Create a new public attachment. Create a POST request with a payload that contains a binary representation
5960
/// of the file, without any JSON wrapping. Make sure you define the MIME type (i.e. image/jpeg, or image/png)
@@ -86,6 +87,7 @@ public static BunqResponse<AttachmentPublic> Get(string attachmentPublicUuid,
8687
return FromJson<AttachmentPublic>(responseRaw, OBJECT_TYPE_GET);
8788
}
8889

90+
8991
/// <summary>
9092
/// </summary>
9193
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentPublicContent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public static BunqResponse<byte[]> List(string attachmentPublicUuid,
4040
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
4141
}
4242

43+
4344
/// <summary>
4445
/// </summary>
4546
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentTab.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public class AttachmentTab : BunqModel
5252
[JsonProperty(PropertyName = "attachment")]
5353
public Attachment Attachment { get; set; }
5454

55+
5556
/// <summary>
5657
/// Upload a new attachment to use with a tab, and to read its metadata. Create a POST request with a payload
5758
/// that contains the binary representation of the file, without any JSON wrapping. Make sure you define the
@@ -89,6 +90,7 @@ public static BunqResponse<AttachmentTab> Get(int attachmentTabId, int? monetary
8990
return FromJson<AttachmentTab>(responseRaw, OBJECT_TYPE_GET);
9091
}
9192

93+
9294
/// <summary>
9395
/// </summary>
9496
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentTabContent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public static BunqResponse<byte[]> List(int attachmentTabId, int? monetaryAccoun
4343
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
4444
}
4545

46+
4647
/// <summary>
4748
/// </summary>
4849
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentUser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public class AttachmentUser : BunqModel
5050
[JsonProperty(PropertyName = "attachment")]
5151
public Attachment Attachment { get; set; }
5252

53+
5354
/// <summary>
5455
/// Get a specific attachment. The header of the response contains the content-type of the attachment.
5556
/// </summary>
@@ -65,6 +66,7 @@ public static BunqResponse<AttachmentUser> Get(int attachmentUserId,
6566
return FromJson<AttachmentUser>(responseRaw);
6667
}
6768

69+
6870
/// <summary>
6971
/// </summary>
7072
public override bool IsAllFieldNull()
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
using Bunq.Sdk.Context;
2+
using Bunq.Sdk.Http;
3+
using Bunq.Sdk.Json;
4+
using Bunq.Sdk.Model.Core;
5+
using Newtonsoft.Json;
6+
using System.Collections.Generic;
7+
using System.Text;
8+
using System;
9+
10+
namespace Bunq.Sdk.Model.Generated.Endpoint
11+
{
12+
/// <summary>
13+
/// Fetch the raw content of a user attachment with given ID. The raw content is the binary representation of a
14+
/// file, without any JSON wrapping.
15+
/// </summary>
16+
public class AttachmentUserContent : BunqModel
17+
{
18+
/// <summary>
19+
/// Endpoint constants.
20+
/// </summary>
21+
protected const string ENDPOINT_URL_LISTING = "user/{0}/attachment/{1}/content";
22+
23+
/// <summary>
24+
/// Object type.
25+
/// </summary>
26+
private const string OBJECT_TYPE_GET = "AttachmentUserContent";
27+
28+
/// <summary>
29+
/// Get the raw content of a specific attachment.
30+
/// </summary>
31+
public static BunqResponse<byte[]> List(int attachmentId, IDictionary<string, string> customHeaders = null)
32+
{
33+
if (customHeaders == null) customHeaders = new Dictionary<string, string>();
34+
35+
var apiClient = new ApiClient(GetApiContext());
36+
var responseRaw = apiClient.Get(string.Format(ENDPOINT_URL_LISTING, DetermineUserId(), attachmentId),
37+
new Dictionary<string, string>(), customHeaders);
38+
39+
return new BunqResponse<byte[]>(responseRaw.BodyBytes, responseRaw.Headers);
40+
}
41+
42+
43+
/// <summary>
44+
/// </summary>
45+
public override bool IsAllFieldNull()
46+
{
47+
return true;
48+
}
49+
50+
/// <summary>
51+
/// </summary>
52+
public static AttachmentUserContent CreateFromJsonString(string json)
53+
{
54+
return BunqModel.CreateFromJsonString<AttachmentUserContent>(json);
55+
}
56+
}
57+
}

BunqSdk/Model/Generated/Endpoint/Avatar.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ public class Avatar : BunqModel
5555
[JsonProperty(PropertyName = "image")]
5656
public List<Image> Image { get; set; }
5757

58+
5859
/// <summary>
5960
/// </summary>
6061
/// <param name="attachmentPublicUuid">The public UUID of the public attachment from which an avatar image must be created.</param>
@@ -89,6 +90,7 @@ public static BunqResponse<Avatar> Get(string avatarUuid, IDictionary<string, st
8990
return FromJson<Avatar>(responseRaw, OBJECT_TYPE_GET);
9091
}
9192

93+
9294
/// <summary>
9395
/// </summary>
9496
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncoming.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ public class BankSwitchServiceNetherlandsIncoming : BunqModel
2020
public const string FIELD_SUB_STATUS = "sub_status";
2121
public const string FIELD_TIME_START_ACTUAL = "time_start_actual";
2222

23+
2324
/// <summary>
2425
/// The label of the monetary of this switch service.
2526
/// </summary>
@@ -74,6 +75,7 @@ public class BankSwitchServiceNetherlandsIncoming : BunqModel
7475
[JsonProperty(PropertyName = "attachment")]
7576
public Attachment Attachment { get; set; }
7677

78+
7779
/// <summary>
7880
/// </summary>
7981
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BankSwitchServiceNetherlandsIncomingPayment.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public class BankSwitchServiceNetherlandsIncomingPayment : BunqModel
3737
[JsonProperty(PropertyName = "payment")]
3838
public Payment Payment { get; set; }
3939

40+
4041
/// <summary>
4142
/// </summary>
4243
public static BunqResponse<BankSwitchServiceNetherlandsIncomingPayment> Get(
@@ -55,6 +56,7 @@ public static BunqResponse<BankSwitchServiceNetherlandsIncomingPayment> Get(
5556
return FromJson<BankSwitchServiceNetherlandsIncomingPayment>(responseRaw, OBJECT_TYPE_GET);
5657
}
5758

59+
5860
/// <summary>
5961
/// </summary>
6062
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BillingContractSubscription.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ public class BillingContractSubscription : BunqModel
9191
[JsonProperty(PropertyName = "sub_status")]
9292
public string SubStatus { get; set; }
9393

94+
9495
/// <summary>
9596
/// Get all subscription billing contract for the authenticated user.
9697
/// </summary>
@@ -107,6 +108,7 @@ public static BunqResponse<List<BillingContractSubscription>> List(IDictionary<s
107108
return FromJsonList<BillingContractSubscription>(responseRaw, OBJECT_TYPE_GET);
108109
}
109110

111+
110112
/// <summary>
111113
/// </summary>
112114
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfile.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ public class BunqMeFundraiserProfile : BunqModel
1515
/// </summary>
1616
public const string FIELD_POINTER = "pointer";
1717

18+
1819
/// <summary>
1920
/// The pointer (url) which will be used to access the bunq.me fundraiser profile.
2021
/// </summary>
@@ -64,6 +65,7 @@ public class BunqMeFundraiserProfile : BunqModel
6465
[JsonProperty(PropertyName = "invite_profile_name")]
6566
public string InviteProfileName { get; set; }
6667

68+
6769
/// <summary>
6870
/// </summary>
6971
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfileUser.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ public class BunqMeFundraiserProfileUser : BunqModel
9494
[JsonProperty(PropertyName = "attachment")]
9595
public AttachmentPublic Attachment { get; set; }
9696

97+
9798
/// <summary>
9899
/// </summary>
99100
public static BunqResponse<BunqMeFundraiserProfileUser> Get(int bunqMeFundraiserProfileUserId,
@@ -124,6 +125,7 @@ public static BunqResponse<List<BunqMeFundraiserProfileUser>> List(IDictionary<s
124125
return FromJsonList<BunqMeFundraiserProfileUser>(responseRaw, OBJECT_TYPE_GET);
125126
}
126127

128+
127129
/// <summary>
128130
/// </summary>
129131
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResult.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public class BunqMeFundraiserResult : BunqModel
5454
[JsonProperty(PropertyName = "payments")]
5555
public List<Payment> Payments { get; set; }
5656

57+
5758
/// <summary>
5859
/// </summary>
5960
public static BunqResponse<BunqMeFundraiserResult> Get(int bunqMeFundraiserResultId,
@@ -70,6 +71,7 @@ public static BunqResponse<BunqMeFundraiserResult> Get(int bunqMeFundraiserResul
7071
return FromJson<BunqMeFundraiserResult>(responseRaw, OBJECT_TYPE_GET);
7172
}
7273

74+
7375
/// <summary>
7476
/// </summary>
7577
public override bool IsAllFieldNull()

0 commit comments

Comments
 (0)