Skip to content

Commit f411b20

Browse files
Updated code formatting
1 parent 4a61d2c commit f411b20

File tree

8 files changed

+60
-97
lines changed

8 files changed

+60
-97
lines changed

BunqSdk.Tests/Context/Psd2ApiContextTest.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ namespace Bunq.Sdk.Tests.Context
1414
[TestCaseOrderer("Bunq.Sdk.Tests.Util.TestPriorityOrderer", "Psd2ApiContextTest")]
1515
public class Psd2ApiContextTest: IClassFixture<Psd2ApiContextTest>
1616
{
17-
1817
/// <summary>
1918
/// File constants.
2019
/// </summary>

BunqSdk.Tests/Model/Core/NotificationFilterTest.cs

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
using Bunq.Sdk.Model.Core;
44
using Bunq.Sdk.Model.Generated.Endpoint;
55
using Bunq.Sdk.Model.Generated.Object;
6-
using Bunq.Sdk.Tests.Util;
76
using Xunit;
87

98
namespace Bunq.Sdk.Tests.Model.Core
@@ -39,9 +38,9 @@ public void TestNotificationFilterUrlMonetaryAccount()
3938
Assert.True(allCreatedNotificationFilter.Count == 1);
4039
}
4140

42-
/**
43-
* Test NotificationFilterUrlUser creation.
44-
*/
41+
/// <summary>
42+
/// Test NotificationFilterUrlUser creation.
43+
/// </summary>
4544
[Fact]
4645
public void TestNotificationFilterUrlUser()
4746
{
@@ -54,9 +53,9 @@ public void TestNotificationFilterUrlUser()
5453

5554
Assert.True(allCreatedNotificationFilter.Count == 1);
5655
}
57-
/**
58-
* Test NotificationFilterPushUser creation.
59-
*/
56+
/// <summary>
57+
/// Test NotificationFilterPushUser creation.
58+
/// </summary>
6059
[Fact]
6160
public void TestNotificationFilterPushUser()
6261
{
@@ -70,9 +69,9 @@ public void TestNotificationFilterPushUser()
7069
Assert.True(allCreatedNotificationFilter.Count == 1);
7170
}
7271

73-
/**
74-
* Test clear all filters.
75-
*/
72+
/// <summary>
73+
/// Test clear all filters.
74+
/// </summary>
7675
[Fact]
7776
public void TestNotificationFilterClear()
7877
{
@@ -93,26 +92,17 @@ public void TestNotificationFilterClear()
9392
Assert.StrictEqual(0, NotificationFilterUrlUserInternal.List().Value.Count);
9493
Assert.StrictEqual(0, NotificationFilterUrlMonetaryAccountInternal.List().Value.Count);
9594
}
96-
97-
/**
98-
* @return NotificationFilterUrl
99-
*/
95+
10096
private NotificationFilterUrl GetNotificationFilterUrl()
10197
{
10298
return new NotificationFilterUrl(FILTER_CATEGORY_MUTATION, FILTER_CALLBACK_URL);
10399
}
104-
105-
/**
106-
* @return NotificationFilterPush
107-
*/
100+
108101
private NotificationFilterPush GetNotificationFilterPush()
109102
{
110103
return new NotificationFilterPush(FILTER_CATEGORY_MUTATION);
111104
}
112-
113-
/**
114-
* @return MonetaryAccountBank
115-
*/
105+
116106
private MonetaryAccountBank GetPrimaryMonetaryAccount()
117107
{
118108
return BunqContext.UserContext.PrimaryMonetaryAccountBank;

BunqSdk/Model/Core/NotificationFilterPushUserInternal.cs

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,38 @@
88

99
namespace Bunq.Sdk.Model.Core
1010
{
11-
public class NotificationFilterPushUserInternal : NotificationFilterPushUser {
12-
13-
/**
14-
* Field constants.
15-
*/
11+
public class NotificationFilterPushUserInternal : NotificationFilterPushUser
12+
{
13+
/// <summary>
14+
/// Field constants.
15+
/// </summary>
1616
private const String OBJECT_TYPE_GET = "NotificationFilterPush";
1717

18-
/**
19-
* Create notification filters with list response type.
20-
*/
18+
/// <summary>
19+
/// Create notification filters with list response type.
20+
/// </summary>
2121
public static BunqResponse<List<NotificationFilterPush>> CreateWithListResponse()
2222
{
2323
return CreateWithListResponse(new List<NotificationFilterPush>(), null);
2424
}
2525

26-
/**
27-
* Create notification filters with list response type.
28-
*/
26+
/// <summary>
27+
/// Create notification filters with list response type.
28+
/// </summary>
2929
public static BunqResponse<List<NotificationFilterPush>> CreateWithListResponse(
3030
List<NotificationFilterPush> allNotificationFilter
3131
)
3232
{
3333
return CreateWithListResponse(allNotificationFilter, null);
3434
}
3535

36-
/**
37-
* Create notification filters with list response type.
38-
*/
36+
/// <summary>
37+
/// Create notification filters with list response type.
38+
/// </summary>
3939
public static BunqResponse<List<NotificationFilterPush>> CreateWithListResponse(
4040
List<NotificationFilterPush> allNotificationFilter,
4141
Dictionary<String, String> customHeaders
42-
)
43-
{
42+
) {
4443
ApiClient apiClient = new ApiClient(GetApiContext());
4544

4645
if (customHeaders == null)
@@ -50,14 +49,11 @@ Dictionary<String, String> customHeaders
5049

5150
Dictionary<string, object> requestMap = new Dictionary<string, object>();
5251
requestMap.Add(FIELD_NOTIFICATION_FILTERS, allNotificationFilter);
53-
5452

5553
var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap));
5654
var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId()), requestBytes, customHeaders);
5755

5856
return FromJsonList<NotificationFilterPush>(responseRaw, OBJECT_TYPE_GET);
5957
}
60-
6158
}
62-
6359
}

BunqSdk/Model/Core/NotificationFilterUrlMonetaryAccountInternal.cs

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,24 @@
88

99
namespace Bunq.Sdk.Model.Core
1010
{
11-
public class NotificationFilterUrlMonetaryAccountInternal : NotificationFilterUrlMonetaryAccount {
12-
13-
/**
14-
* Field constants.
15-
*/
11+
public class NotificationFilterUrlMonetaryAccountInternal : NotificationFilterUrlMonetaryAccount
12+
{
13+
/// <summary>
14+
/// Field constants.
15+
/// </summary>
1616
private const String OBJECT_TYPE_GET = "NotificationFilterUrl";
1717

18-
/**
19-
* Create notification filters with list response type.
20-
*/
18+
/// <summary>
19+
/// Create notification filters with list response type.
20+
/// </summary>
2121
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse()
2222
{
2323
return CreateWithListResponse(null, new List<NotificationFilterUrl>(), null);
2424
}
2525

26-
/**
27-
* Create notification filters with list response type.
28-
*/
26+
/// <summary>
27+
/// Create notification filters with list response type.
28+
/// </summary>
2929
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse(
3030
int monetaryAccountId,
3131
List<NotificationFilterUrl> allNotificationFilter
@@ -34,15 +34,14 @@ List<NotificationFilterUrl> allNotificationFilter
3434
return CreateWithListResponse(monetaryAccountId, allNotificationFilter, null);
3535
}
3636

37-
/**
38-
* Create notification filters with list response type.
39-
*/
37+
/// <summary>
38+
/// Create notification filters with list response type.
39+
/// </summary>
4040
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse(
4141
int? monetaryAccountId,
4242
List<NotificationFilterUrl> allNotificationFilter,
4343
Dictionary<String, String> customHeaders
44-
)
45-
{
44+
) {
4645
ApiClient apiClient = new ApiClient(GetApiContext());
4746

4847
if (customHeaders == null)
@@ -58,7 +57,5 @@ Dictionary<String, String> customHeaders
5857

5958
return FromJsonList<NotificationFilterUrl>(responseRaw, OBJECT_TYPE_GET);
6059
}
61-
6260
}
63-
6461
}

BunqSdk/Model/Core/NotificationFilterUrlUserInternal.cs

Lines changed: 18 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,38 @@
88

99
namespace Bunq.Sdk.Model.Core
1010
{
11-
public class NotificationFilterUrlUserInternal : NotificationFilterUrlUser {
12-
13-
/**
14-
* Field constants.
15-
*/
11+
public class NotificationFilterUrlUserInternal : NotificationFilterUrlUser
12+
{
13+
/// <summary>
14+
/// Field constants.
15+
/// </summary>
1616
private const String OBJECT_TYPE_GET = "NotificationFilterUrl";
1717

18-
/**
19-
* Create notification filters with list response type.
20-
*/
18+
/// <summary>
19+
/// Create notification filters with list response type.
20+
/// </summary>
2121
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse()
2222
{
2323
return CreateWithListResponse(new List<NotificationFilterUrl>(), null);
2424
}
2525

26-
/**
27-
* Create notification filters with list response type.
28-
*/
26+
/// <summary>
27+
/// Create notification filters with list response type.
28+
/// </summary>
2929
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse(
3030
List<NotificationFilterUrl> allNotificationFilter
3131
)
3232
{
3333
return CreateWithListResponse(allNotificationFilter, null);
3434
}
3535

36-
/**
37-
* Create notification filters with list response type.
38-
*/
36+
/// <summary>
37+
/// Create notification filters with list response type.
38+
/// </summary>
3939
public static BunqResponse<List<NotificationFilterUrl>> CreateWithListResponse(
4040
List<NotificationFilterUrl> allNotificationFilter,
4141
Dictionary<String, String> customHeaders
42-
)
43-
{
42+
) {
4443
ApiClient apiClient = new ApiClient(GetApiContext());
4544

4645
if (customHeaders == null)
@@ -51,13 +50,11 @@ Dictionary<String, String> customHeaders
5150
Dictionary<string, object> requestMap = new Dictionary<string, object>();
5251
requestMap.Add(FIELD_NOTIFICATION_FILTERS, allNotificationFilter);
5352

54-
5553
var requestBytes = Encoding.UTF8.GetBytes(BunqJsonConvert.SerializeObject(requestMap));
56-
var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId()), requestBytes, customHeaders);
57-
54+
var responseRaw = apiClient.Post(string.Format(ENDPOINT_URL_CREATE, DetermineUserId()), requestBytes,
55+
customHeaders);
56+
5857
return FromJsonList<NotificationFilterUrl>(responseRaw, OBJECT_TYPE_GET);
5958
}
60-
6159
}
62-
6360
}

BunqSdk/Model/Core/OauthAccessToken.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,6 @@ public class OauthAccessToken : BunqModel
4949
/// </summary>
5050
public string Token => token;
5151

52-
/**
53-
* OauthAccessToken constructor.
54-
*
55-
* @param string $accessToken
56-
* @param string $tokenType
57-
* @param string $state
58-
*/
5952
protected OauthAccessToken(
6053
string token,
6154
string type,

BunqSdk/Model/Core/OauthAuthorizationUri.cs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,6 @@ protected OauthAuthorizationUri(string authorizationUri)
4646
this.authorizationUri = authorizationUri;
4747
}
4848

49-
/**
50-
* @param BunqEnumOauthResponseType $responseType
51-
* @param string $redirectUri
52-
* @param OauthClient $client
53-
* @param string|null $state
54-
*
55-
* @return OauthAuthorizationUri
56-
*/
5749
public static OauthAuthorizationUri Create(
5850
OauthResponseType responseType,
5951
string redirectUri,

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ For an example, see this [tinker snippet](https://github.com/bunq/tinker_csharp/
5959

6060

6161
##### PSD2
62-
6362
It is possible to create an ApiContext as PSD2 Service Provider. Although this might seem a complex task, we wrote some helper implementations to get you started.
6463
You need to create a certificate and private key to get you started. Our sandbox environment currently accepts all certificates, if these criteria are met:
6564
- Up to 64 characters

0 commit comments

Comments
 (0)