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

+1-2
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

+1-1
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

-1
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

-2
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

-1
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

-1
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

-1
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

-1
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

+6-1
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

+16-5
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;

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserProfile.cs

+5-7
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ public class BunqMeFundraiserProfile : BunqModel
1515
/// </summary>
1616
public const string FIELD_POINTER = "pointer";
1717

18+
/// <summary>
19+
/// The pointer (url) which will be used to access the bunq.me fundraiser profile.
20+
/// </summary>
21+
[JsonProperty(PropertyName = "pointer")]
22+
public MonetaryAccountReference Pointer { get; set; }
1823

1924
/// <summary>
2025
/// The color chosen for the bunq.me fundraiser profile in hexadecimal format.
@@ -41,12 +46,6 @@ public class BunqMeFundraiserProfile : BunqModel
4146
[JsonProperty(PropertyName = "attachment")]
4247
public List<AttachmentPublic> Attachment { get; set; }
4348

44-
/// <summary>
45-
/// The pointer (url) which will be used to access the bunq.me fundraiser profile.
46-
/// </summary>
47-
[JsonProperty(PropertyName = "pointer")]
48-
public MonetaryAccountReference Pointer { get; set; }
49-
5049
/// <summary>
5150
/// The status of the bunq.me fundraiser profile, can be ACTIVE or DEACTIVATED.
5251
/// </summary>
@@ -59,7 +58,6 @@ public class BunqMeFundraiserProfile : BunqModel
5958
[JsonProperty(PropertyName = "redirect_url")]
6059
public string RedirectUrl { get; set; }
6160

62-
6361
/// <summary>
6462
/// </summary>
6563
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeFundraiserResult.cs

-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ public class BunqMeFundraiserResult : BunqModel
3939
[JsonProperty(PropertyName = "payments")]
4040
public List<Payment> Payments { get; set; }
4141

42-
4342
/// <summary>
4443
/// </summary>
4544
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeTab.cs

+12-13
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,18 @@ public class BunqMeTab : BunqModel
3636
/// </summary>
3737
private const string OBJECT_TYPE_GET = "BunqMeTab";
3838

39+
/// <summary>
40+
/// The bunq.me entry containing the payment information.
41+
/// </summary>
42+
[JsonProperty(PropertyName = "bunqme_tab_entry")]
43+
public BunqMeTabEntry BunqmeTabEntry { get; set; }
44+
45+
/// <summary>
46+
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
47+
/// </summary>
48+
[JsonProperty(PropertyName = "status")]
49+
public string Status { get; set; }
50+
3951
/// <summary>
4052
/// The id of the created bunq.me.
4153
/// </summary>
@@ -66,24 +78,12 @@ public class BunqMeTab : BunqModel
6678
[JsonProperty(PropertyName = "monetary_account_id")]
6779
public int? MonetaryAccountId { get; set; }
6880

69-
/// <summary>
70-
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
71-
/// </summary>
72-
[JsonProperty(PropertyName = "status")]
73-
public string Status { get; set; }
74-
7581
/// <summary>
7682
/// The url that points to the bunq.me page.
7783
/// </summary>
7884
[JsonProperty(PropertyName = "bunqme_tab_share_url")]
7985
public string BunqmeTabShareUrl { get; set; }
8086

81-
/// <summary>
82-
/// The bunq.me entry containing the payment information.
83-
/// </summary>
84-
[JsonProperty(PropertyName = "bunqme_tab_entry")]
85-
public BunqMeTabEntry BunqmeTabEntry { get; set; }
86-
8787
/// <summary>
8888
/// The list of bunq.me result Inquiries successfully made and paid.
8989
/// </summary>
@@ -173,7 +173,6 @@ public static BunqResponse<BunqMeTab> Get(int bunqMeTabId, int? monetaryAccountI
173173
return FromJson<BunqMeTab>(responseRaw, OBJECT_TYPE_GET);
174174
}
175175

176-
177176
/// <summary>
178177
/// </summary>
179178
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeTabEntry.cs

+17-19
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,29 @@ public class BunqMeTabEntry : BunqModel
1919
public const string FIELD_DESCRIPTION = "description";
2020
public const string FIELD_REDIRECT_URL = "redirect_url";
2121

22+
/// <summary>
23+
/// The requested Amount.
24+
/// </summary>
25+
[JsonProperty(PropertyName = "amount_inquired")]
26+
public Amount AmountInquired { get; set; }
2227

2328
/// <summary>
24-
/// The uuid of the bunq.me.
29+
/// The description for the bunq.me. Maximum 9000 characters.
2530
/// </summary>
26-
[JsonProperty(PropertyName = "uuid")]
27-
public string Uuid { get; set; }
31+
[JsonProperty(PropertyName = "description")]
32+
public string Description { get; set; }
2833

2934
/// <summary>
30-
/// The requested Amount.
35+
/// The URL which the user is sent to when a payment is completed.
3136
/// </summary>
32-
[JsonProperty(PropertyName = "amount_inquired")]
33-
public Amount AmountInquired { get; set; }
37+
[JsonProperty(PropertyName = "redirect_url")]
38+
public string RedirectUrl { get; set; }
39+
40+
/// <summary>
41+
/// The uuid of the bunq.me.
42+
/// </summary>
43+
[JsonProperty(PropertyName = "uuid")]
44+
public string Uuid { get; set; }
3445

3546
/// <summary>
3647
/// The LabelMonetaryAccount with the public information of the User and the MonetaryAccount that created the
@@ -39,31 +50,18 @@ public class BunqMeTabEntry : BunqModel
3950
[JsonProperty(PropertyName = "alias")]
4051
public MonetaryAccountReference Alias { get; set; }
4152

42-
/// <summary>
43-
/// The description for the bunq.me. Maximum 9000 characters.
44-
/// </summary>
45-
[JsonProperty(PropertyName = "description")]
46-
public string Description { get; set; }
47-
4853
/// <summary>
4954
/// The status of the bunq.me. Can be WAITING_FOR_PAYMENT, CANCELLED or EXPIRED.
5055
/// </summary>
5156
[JsonProperty(PropertyName = "status")]
5257
public string Status { get; set; }
5358

54-
/// <summary>
55-
/// The URL which the user is sent to when a payment is completed.
56-
/// </summary>
57-
[JsonProperty(PropertyName = "redirect_url")]
58-
public string RedirectUrl { get; set; }
59-
6059
/// <summary>
6160
/// List of available merchants.
6261
/// </summary>
6362
[JsonProperty(PropertyName = "merchant_available")]
6463
public List<BunqMeMerchantAvailable> MerchantAvailable { get; set; }
6564

66-
6765
/// <summary>
6866
/// </summary>
6967
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeTabResultInquiry.cs

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ public class BunqMeTabResultInquiry : BunqModel
2222
[JsonProperty(PropertyName = "bunq_me_tab_id")]
2323
public int? BunqMeTabId { get; set; }
2424

25-
2625
/// <summary>
2726
/// </summary>
2827
public override bool IsAllFieldNull()

BunqSdk/Model/Generated/Endpoint/BunqMeTabResultResponse.cs

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ public class BunqMeTabResultResponse : BunqModel
1616
[JsonProperty(PropertyName = "payment")]
1717
public Payment Payment { get; set; }
1818

19-
2019
/// <summary>
2120
/// </summary>
2221
public override bool IsAllFieldNull()

0 commit comments

Comments
 (0)