-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added 'GetInvoice' in 'fakturowniaClient'
- Loading branch information
Showing
7 changed files
with
42 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,20 @@ | ||
using SOFTURE.Fakturownia.Abstractions; | ||
using SOFTURE.Fakturownia.Models.Enums; | ||
|
||
namespace SOFTURE.Fakturownia.Playground; | ||
|
||
public sealed class Playground(IFakturowniaClient fakturowniaClient) | ||
{ | ||
public async Task Run() | ||
{ | ||
// var currentMonthStatement = await fakturowniaClient.GetCurrentMonthStatement(clientId: 135057762); | ||
var currentMonthStatement = await fakturowniaClient.GetCurrentMonthStatement(clientId: 135057762); | ||
|
||
var monthlyStatement = await fakturowniaClient.GetMonthlyStatement( | ||
clientId: 135057762, | ||
month: 7, | ||
year: 2024 | ||
); | ||
|
||
var invoice = await fakturowniaClient.GetInvoice(invoiceId: 315738314, kind: DocumentKind.Proforma); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 2 additions & 0 deletions
2
FAKTUROWNIA/SOFTURE.Fakturownia/Abstractions/IFakturowniaClient.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,13 @@ | ||
using CSharpFunctionalExtensions; | ||
using SOFTURE.Fakturownia.Models; | ||
using SOFTURE.Fakturownia.Models.Client; | ||
using SOFTURE.Fakturownia.Models.Enums; | ||
|
||
namespace SOFTURE.Fakturownia.Abstractions; | ||
|
||
public interface IFakturowniaClient | ||
{ | ||
Task<Result<MonthlyStatement>> GetCurrentMonthStatement(int clientId); | ||
Task<Result<MonthlyStatement>> GetMonthlyStatement(int clientId, int month, int year); | ||
Task<Result<Invoice>> GetInvoice(int invoiceId, DocumentKind kind); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters