Skip to content

Commit 0d3de4c

Browse files
author
Konstantin Yakushev
committed
Merge branch 'release/1.1.0'
2 parents 729f382 + a58ad5f commit 0d3de4c

File tree

166 files changed

+7306
-994
lines changed

Some content is hidden

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

166 files changed

+7306
-994
lines changed

BunqSdk/BunqSdk.csproj

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
<PackageId>Bunq.Sdk</PackageId>
99
</PropertyGroup>
1010
<PropertyGroup>
11-
<VersionPrefix>1.0.0.0</VersionPrefix>
12-
<VersionSuffix>beta</VersionSuffix>
11+
<VersionPrefix>1.1.0.0</VersionPrefix>
1312
</PropertyGroup>
1413
<PropertyGroup>
1514
<RootNamespace>Bunq.Sdk</RootNamespace>

BunqSdk/Http/ApiClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ public class ApiClient
6262
/// Values for the default headers
6363
/// </summary>
6464
private const string CACHE_CONTROL_NONE = "no-cache";
65-
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.0.0.0";
65+
private const string USER_AGENT_BUNQ = "bunq-sdk-csharp/1.1.0.0";
6666
private const string LANGUAGE_EN_US = "en_US";
6767
private const string REGION_NL_NL = "nl_NL";
6868
private const string GEOLOCATION_ZERO = "0 0 0 0 NL";

BunqSdk/Model/Generated/Endpoint/AttachmentConversationContent.cs

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

44-
4544
/// <summary>
4645
/// </summary>
4746
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentMonetaryAccount.cs

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

24-
2524
/// <summary>
2625
/// The attachment.
2726
/// </summary>
@@ -54,7 +53,6 @@ public static BunqResponse<int> Create(byte[] requestBytes, int? monetaryAccount
5453
return ProcessForId(responseRaw);
5554
}
5655

57-
5856
/// <summary>
5957
/// </summary>
6058
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentPublic.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ public static BunqResponse<AttachmentPublic> Get(string attachmentPublicUuid,
8686
return FromJson<AttachmentPublic>(responseRaw, OBJECT_TYPE_GET);
8787
}
8888

89-
9089
/// <summary>
9190
/// </summary>
9291
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentPublicContent.cs

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

43-
4443
/// <summary>
4544
/// </summary>
4645
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentTab.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public static BunqResponse<AttachmentTab> Get(int attachmentTabId, int? monetary
8989
return FromJson<AttachmentTab>(responseRaw, OBJECT_TYPE_GET);
9090
}
9191

92-
9392
/// <summary>
9493
/// </summary>
9594
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/AttachmentTabContent.cs

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

46-
4746
/// <summary>
4847
/// </summary>
4948
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/Avatar.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ public class Avatar : BunqModel
3737

3838
private const string OBJECT_TYPE_GET = "Avatar";
3939

40+
/// <summary>
41+
/// The public UUID of the public attachment from which an avatar image must be created.
42+
/// </summary>
43+
[JsonProperty(PropertyName = "attachment_public_uuid")]
44+
public string AttachmentPublicUuid { get; set; }
45+
4046
/// <summary>
4147
/// The UUID of the created avatar.
4248
/// </summary>
@@ -83,7 +89,6 @@ public static BunqResponse<Avatar> Get(string avatarUuid, IDictionary<string, st
8389
return FromJson<Avatar>(responseRaw, OBJECT_TYPE_GET);
8490
}
8591

86-
8792
/// <summary>
8893
/// </summary>
8994
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BillingContractSubscription.cs

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ public class BillingContractSubscription : BunqModel
3131
/// </summary>
3232
private const string OBJECT_TYPE_GET = "BillingContractSubscription";
3333

34+
/// <summary>
35+
/// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
36+
/// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
37+
/// </summary>
38+
[JsonProperty(PropertyName = "subscription_type")]
39+
public string SubscriptionType { get; set; }
40+
3441
/// <summary>
3542
/// The id of the billing contract.
3643
/// </summary>
@@ -68,11 +75,11 @@ public class BillingContractSubscription : BunqModel
6875
public int? ContractVersion { get; set; }
6976

7077
/// <summary>
71-
/// The subscription type of the user. Can be one of PERSON_SUPER_LIGHT_V1, PERSON_LIGHT_V1, PERSON_MORE_V1,
72-
/// PERSON_FREE_V1, PERSON_PREMIUM_V1, COMPANY_V1, or COMPANY_V2.
78+
/// The subscription type the user will have after a subscription downgrade. Will be null if downgrading is not
79+
/// possible.
7380
/// </summary>
74-
[JsonProperty(PropertyName = "subscription_type")]
75-
public string SubscriptionType { get; set; }
81+
[JsonProperty(PropertyName = "subscription_type_downgrade")]
82+
public string SubscriptionTypeDowngrade { get; set; }
7683

7784
/// <summary>
7885
/// The subscription status.
@@ -124,7 +131,6 @@ public static BunqResponse<List<BillingContractSubscription>> List(IDictionary<s
124131
return FromJsonList<BillingContractSubscription>(responseRaw, OBJECT_TYPE_GET);
125132
}
126133

127-
128134
/// <summary>
129135
/// </summary>
130136
public override bool IsAllFieldNull()
@@ -164,6 +170,11 @@ public override bool IsAllFieldNull()
164170
return false;
165171
}
166172

173+
if (this.SubscriptionTypeDowngrade != null)
174+
{
175+
return false;
176+
}
177+
167178
if (this.Status != null)
168179
{
169180
return false;

0 commit comments

Comments
 (0)