Skip to content

Commit d58c2cf

Browse files
author
Konstantin Yakushev
committed
Update SDK to later version and fix sandbox URL. (#12)
1 parent 3298d33 commit d58c2cf

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
@@ -69,7 +69,7 @@ public string GetCurrentUserDisplayName()
6969
{
7070
return BunqContext.UserContext.UserPerson.DisplayName;
7171
}
72-
else if (BunqContext.UserContext.isOnlyUserCompanySet())
72+
else if (BunqContext.UserContext.IsOnlyUserCompanySet())
7373
{
7474
return BunqContext.UserContext.UserCompany.DisplayName;
7575
}

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)