Skip to content

Commit 10d5fd6

Browse files
author
Kevin Hellemun
committed
Regenerated code. #41
1 parent a12f26f commit 10d5fd6

Some content is hidden

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

70 files changed

+1311
-345
lines changed

BunqSdk/Model/Generated/Endpoint/Avatar.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,17 +18,17 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1818
/// </summary>
1919
public class Avatar : BunqModel
2020
{
21-
/// <summary>
22-
/// Field constants.
23-
/// </summary>
24-
public const string FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";
25-
2621
/// <summary>
2722
/// Endpoint constants.
2823
/// </summary>
2924
private const string ENDPOINT_URL_CREATE = "avatar";
3025
private const string ENDPOINT_URL_READ = "avatar/{0}";
3126

27+
/// <summary>
28+
/// Field constants.
29+
/// </summary>
30+
public const string FIELD_ATTACHMENT_PUBLIC_UUID = "attachment_public_uuid";
31+
3232
/// <summary>
3333
/// Object type.
3434
/// </summary>

BunqSdk/Model/Generated/Endpoint/BillingContractSubscription.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,17 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1414
/// </summary>
1515
public class BillingContractSubscription : BunqModel
1616
{
17-
/// <summary>
18-
/// Field constants.
19-
/// </summary>
20-
public const string FIELD_SUBSCRIPTION_TYPE = "subscription_type";
21-
2217
/// <summary>
2318
/// Endpoint constants.
2419
/// </summary>
2520
private const string ENDPOINT_URL_CREATE = "user/{0}/billing-contract-subscription";
2621
private const string ENDPOINT_URL_LISTING = "user/{0}/billing-contract-subscription";
2722

23+
/// <summary>
24+
/// Field constants.
25+
/// </summary>
26+
public const string FIELD_SUBSCRIPTION_TYPE = "subscription_type";
27+
2828
/// <summary>
2929
/// Object type.
3030
/// </summary>

BunqSdk/Model/Generated/Endpoint/BunqMeTab.cs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,6 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1515
/// </summary>
1616
public class BunqMeTab : BunqModel
1717
{
18-
/// <summary>
19-
/// Field constants.
20-
/// </summary>
21-
public const string FIELD_BUNQME_TAB_ENTRY = "bunqme_tab_entry";
22-
public const string FIELD_STATUS = "status";
23-
2418
/// <summary>
2519
/// Endpoint constants.
2620
/// </summary>
@@ -29,6 +23,12 @@ public class BunqMeTab : BunqModel
2923
private const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/bunqme-tab";
3024
private const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/bunqme-tab/{2}";
3125

26+
/// <summary>
27+
/// Field constants.
28+
/// </summary>
29+
public const string FIELD_BUNQME_TAB_ENTRY = "bunqme_tab_entry";
30+
public const string FIELD_STATUS = "status";
31+
3232
/// <summary>
3333
/// Object type.
3434
/// </summary>

BunqSdk/Model/Generated/Endpoint/BunqMeTabEntry.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public class BunqMeTabEntry : BunqModel
2121
/// <summary>
2222
/// Object type.
2323
/// </summary>
24-
private const string OBJECT_TYPE = "BunqMeTab";
24+
private const string OBJECT_TYPE = "BunqMeTabEntry";
2525

2626
/// <summary>
2727
/// The uuid of the bunq.me.
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
using Bunq.Sdk.Model.Core;
2+
using Newtonsoft.Json;
3+
using System.Collections.Generic;
4+
5+
namespace Bunq.Sdk.Model.Generated.Endpoint
6+
{
7+
/// <summary>
8+
/// Used to view bunq.me TabResultResponse objects belonging to a tab. A TabResultResponse is an object that holds
9+
/// details on a tab which has been paid from the provided monetary account.
10+
/// </summary>
11+
public class BunqMeTabResultResponse : BunqModel
12+
{
13+
/// <summary>
14+
/// Object type.
15+
/// </summary>
16+
private const string OBJECT_TYPE = "BunqMeTabResultResponse";
17+
18+
/// <summary>
19+
/// The payment made for the bunq.me tab.
20+
/// </summary>
21+
[JsonProperty(PropertyName = "payment")]
22+
public Payment Payment { get; private set; }
23+
}
24+
}

BunqSdk/Model/Generated/Endpoint/Card.cs

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,13 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1616
/// </summary>
1717
public class Card : BunqModel
1818
{
19+
/// <summary>
20+
/// Endpoint constants.
21+
/// </summary>
22+
private const string ENDPOINT_URL_UPDATE = "user/{0}/card/{1}";
23+
private const string ENDPOINT_URL_READ = "user/{0}/card/{1}";
24+
private const string ENDPOINT_URL_LISTING = "user/{0}/card";
25+
1926
/// <summary>
2027
/// Field constants.
2128
/// </summary>
@@ -29,17 +36,10 @@ public class Card : BunqModel
2936
public const string FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment";
3037
public const string FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback";
3138

32-
/// <summary>
33-
/// Endpoint constants.
34-
/// </summary>
35-
private const string ENDPOINT_URL_UPDATE = "user/{0}/card/{1}";
36-
private const string ENDPOINT_URL_READ = "user/{0}/card/{1}";
37-
private const string ENDPOINT_URL_LISTING = "user/{0}/card";
38-
3939
/// <summary>
4040
/// Object type.
4141
/// </summary>
42-
private const string OBJECT_TYPE = "CardDebit";
42+
private const string OBJECT_TYPE = "Card";
4343

4444
/// <summary>
4545
/// The id of the card.
@@ -71,6 +71,12 @@ public class Card : BunqModel
7171
[JsonProperty(PropertyName = "type")]
7272
public string Type { get; private set; }
7373

74+
/// <summary>
75+
/// The sub-type of the card. Can be WILDCARD or NONE.
76+
/// </summary>
77+
[JsonProperty(PropertyName = "sub_type")]
78+
public string SubType { get; private set; }
79+
7480
/// <summary>
7581
/// The second line of text on the card
7682
/// </summary>
@@ -159,6 +165,12 @@ public class Card : BunqModel
159165
[JsonProperty(PropertyName = "monetary_account_id_fallback")]
160166
public int? MonetaryAccountIdFallback { get; private set; }
161167

168+
/// <summary>
169+
/// The country that is domestic to the card. Defaults to country of residence of user.
170+
/// </summary>
171+
[JsonProperty(PropertyName = "country")]
172+
public string Country { get; private set; }
173+
162174
/// <summary>
163175
/// Update the card details. Allow to change pin code, status, limits, country permissions and the monetary
164176
/// account connected to the card. When the card has been received, it can be also activated through this

BunqSdk/Model/Generated/Endpoint/CardDebit.cs

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1717
/// </summary>
1818
public class CardDebit : BunqModel
1919
{
20+
/// <summary>
21+
/// Endpoint constants.
22+
/// </summary>
23+
private const string ENDPOINT_URL_CREATE = "user/{0}/card-debit";
24+
2025
/// <summary>
2126
/// Field constants.
2227
/// </summary>
@@ -27,11 +32,7 @@ public class CardDebit : BunqModel
2732
public const string FIELD_TYPE = "type";
2833
public const string FIELD_PIN_CODE_ASSIGNMENT = "pin_code_assignment";
2934
public const string FIELD_MONETARY_ACCOUNT_ID_FALLBACK = "monetary_account_id_fallback";
30-
31-
/// <summary>
32-
/// Endpoint constants.
33-
/// </summary>
34-
private const string ENDPOINT_URL_CREATE = "user/{0}/card-debit";
35+
public const string FIELD_COUNTRY = "country";
3536

3637
/// <summary>
3738
/// Object type.
@@ -147,6 +148,12 @@ public class CardDebit : BunqModel
147148
[JsonProperty(PropertyName = "monetary_account_id_fallback")]
148149
public int? MonetaryAccountIdFallback { get; private set; }
149150

151+
/// <summary>
152+
/// The country that is domestic to the card. Defaults to country of residence of user.
153+
/// </summary>
154+
[JsonProperty(PropertyName = "country")]
155+
public string Country { get; private set; }
156+
150157
/// <summary>
151158
/// Create a new debit card request.
152159
/// </summary>

BunqSdk/Model/Generated/Endpoint/CardName.cs

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

2929
/// <summary>
3030
/// All possible variations (of suitable length) of user's legal name for the debit card.

BunqSdk/Model/Generated/Endpoint/CardReplace.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,15 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1919
public class CardReplace : BunqModel
2020
{
2121
/// <summary>
22-
/// Field constants.
22+
/// Endpoint constants.
2323
/// </summary>
24-
public const string FIELD_PIN_CODE = "pin_code";
25-
public const string FIELD_SECOND_LINE = "second_line";
24+
private const string ENDPOINT_URL_CREATE = "user/{0}/card/{1}/replace";
2625

2726
/// <summary>
28-
/// Endpoint constants.
27+
/// Field constants.
2928
/// </summary>
30-
private const string ENDPOINT_URL_CREATE = "user/{0}/card/{1}/replace";
29+
public const string FIELD_PIN_CODE = "pin_code";
30+
public const string FIELD_SECOND_LINE = "second_line";
3131

3232
/// <summary>
3333
/// Object type.

BunqSdk/Model/Generated/Endpoint/CashRegister.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,14 @@ namespace Bunq.Sdk.Model.Generated.Endpoint
1919
/// </summary>
2020
public class CashRegister : BunqModel
2121
{
22+
/// <summary>
23+
/// Endpoint constants.
24+
/// </summary>
25+
private const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/cash-register";
26+
private const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/cash-register/{2}";
27+
private const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/cash-register/{2}";
28+
private const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/cash-register";
29+
2230
/// <summary>
2331
/// Field constants.
2432
/// </summary>
@@ -29,14 +37,6 @@ public class CashRegister : BunqModel
2937
public const string FIELD_NOTIFICATION_FILTERS = "notification_filters";
3038
public const string FIELD_TAB_TEXT_WAITING_SCREEN = "tab_text_waiting_screen";
3139

32-
/// <summary>
33-
/// Endpoint constants.
34-
/// </summary>
35-
private const string ENDPOINT_URL_CREATE = "user/{0}/monetary-account/{1}/cash-register";
36-
private const string ENDPOINT_URL_READ = "user/{0}/monetary-account/{1}/cash-register/{2}";
37-
private const string ENDPOINT_URL_UPDATE = "user/{0}/monetary-account/{1}/cash-register/{2}";
38-
private const string ENDPOINT_URL_LISTING = "user/{0}/monetary-account/{1}/cash-register";
39-
4040
/// <summary>
4141
/// Object type.
4242
/// </summary>

0 commit comments

Comments
 (0)