Skip to content

Commit 0d56cf9

Browse files
authored
Merge pull request #13 from bunq/bunq/tinker_csharp#12_update_tinker
Update SDK to later version and fix sandbox URL. (#12)
2 parents a75fe49 + d58c2cf commit 0d56cf9

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed

TinkerSrc/AddCallbackUrl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ public void Run(string[] args)
2727
Console.Out.WriteLine(" ...");
2828
Console.Out.WriteLine();
2929

30-
if (BunqContext.UserContext.isOnlyUserCompanySet())
30+
if (BunqContext.UserContext.IsOnlyUserCompanySet())
3131
{
3232
UserCompany.Update(
3333
notificationFilters: UpdateAllNotificationFilter(

TinkerSrc/Lib/BunqLib.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public string GetCurrentUserDisplayName()
123123
{
124124
return BunqContext.UserContext.UserPerson.DisplayName;
125125
}
126-
else if (BunqContext.UserContext.isOnlyUserCompanySet())
126+
else if (BunqContext.UserContext.IsOnlyUserCompanySet())
127127
{
128128
return BunqContext.UserContext.UserCompany.DisplayName;
129129
}

TinkerSrc/LinkCard.cs

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
using System;
2+
using System.Collections.Generic;
23
using Bunq.Sdk.Model.Generated.Endpoint;
4+
using Bunq.Sdk.Model.Generated.Object;
35
using Tinker.Utils;
46
using TinkerSrc.Lib;
57

@@ -24,8 +26,12 @@ public void Run(string[] args)
2426
Console.Out.WriteLine();
2527
Console.Out.WriteLine(" ...");
2628
Console.Out.WriteLine();
27-
28-
Card.Update(int.Parse(cardId), monetaryAccountCurrentId: int.Parse(accountId));
29+
30+
31+
Card.Update(int.Parse(cardId), pinCodeAssignment: new List<CardPinAssignment>
32+
{
33+
new CardPinAssignment("PRIMARY"){MonetaryAccountId = int.Parse(accountId)}
34+
});
2935

3036
Console.Out.WriteLine();
3137
Console.Out.WriteLine(" | Account switched");

TinkerSrc/TinkerSrc.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<TargetFramework>netcoreapp1.1</TargetFramework>
55
</PropertyGroup>
66
<ItemGroup>
7-
<PackageReference Include="Bunq.Sdk" Version="0.13.1-beta" />
7+
<PackageReference Include="Bunq.Sdk" Version="1.1.0" />
88
<PackageReference Include="Mono.Options" Version="5.3.0.1" />
99
</ItemGroup>
1010
</Project>

0 commit comments

Comments
 (0)