Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion TinkerSrc/AddCallbackUrl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public void Run(string[] args)
Console.Out.WriteLine(" ...");
Console.Out.WriteLine();

if (BunqContext.UserContext.isOnlyUserCompanySet())
if (BunqContext.UserContext.IsOnlyUserCompanySet())
{
UserCompany.Update(
notificationFilters: UpdateAllNotificationFilter(
Expand Down
2 changes: 1 addition & 1 deletion TinkerSrc/Lib/BunqLib.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public string GetCurrentUserDisplayName()
{
return BunqContext.UserContext.UserPerson.DisplayName;
}
else if (BunqContext.UserContext.isOnlyUserCompanySet())
else if (BunqContext.UserContext.IsOnlyUserCompanySet())
{
return BunqContext.UserContext.UserCompany.DisplayName;
}
Expand Down
10 changes: 8 additions & 2 deletions TinkerSrc/LinkCard.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
using System;
using System.Collections.Generic;
using Bunq.Sdk.Model.Generated.Endpoint;
using Bunq.Sdk.Model.Generated.Object;
using Tinker.Utils;
using TinkerSrc.Lib;

Expand All @@ -24,8 +26,12 @@ public void Run(string[] args)
Console.Out.WriteLine();
Console.Out.WriteLine(" ...");
Console.Out.WriteLine();

Card.Update(int.Parse(cardId), monetaryAccountCurrentId: int.Parse(accountId));


Card.Update(int.Parse(cardId), pinCodeAssignment: new List<CardPinAssignment>
{
new CardPinAssignment("PRIMARY"){MonetaryAccountId = int.Parse(accountId)}
});

Console.Out.WriteLine();
Console.Out.WriteLine(" | Account switched");
Expand Down
2 changes: 1 addition & 1 deletion TinkerSrc/TinkerSrc.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>netcoreapp1.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Bunq.Sdk" Version="0.13.1-beta" />
<PackageReference Include="Bunq.Sdk" Version="1.1.0" />
<PackageReference Include="Mono.Options" Version="5.3.0.1" />
</ItemGroup>
</Project>