@@ -24,6 +24,20 @@ public PeppolInboundDocuments(IApiClient apiClient, IAccessTokenProvider<ClientA
24
24
base ( apiClient , accessTokenProvider , urlPrefix , EntityName )
25
25
{ }
26
26
27
+ /// <inheritdoc />
28
+ public Task < EInvoicingCollection < PeppolInboundDocument > > List ( ClientAccessToken token , DateTimeOffset ? fromCreatedAt , Guid ? supplierId , long ? pageNumber = null , int ? pageSize = null , CancellationToken ? cancellationToken = null )
29
+ {
30
+ var parameters = new List < ( string , string ) > ( ) ;
31
+
32
+ if ( fromCreatedAt . HasValue )
33
+ parameters . Add ( ( "fromCreatedAt" , fromCreatedAt . Value . ToString ( "o" ) ) ) ;
34
+
35
+ if ( supplierId . HasValue )
36
+ parameters . Add ( ( "supplierId" , supplierId . Value . ToString ( "D" ) ) ) ;
37
+
38
+ return InternalPageBasedList ( token , null , parameters , pageNumber , pageSize , cancellationToken ) ;
39
+ }
40
+
27
41
/// <inheritdoc />
28
42
protected override PeppolInboundDocument Map ( Data < PeppolInboundDocument , object , PeppolInboundDocumentRelationships , object > data )
29
43
{
@@ -40,5 +54,16 @@ protected override PeppolInboundDocument Map(Data<PeppolInboundDocument, object,
40
54
/// </summary>
41
55
public interface IPeppolInboundDocuments
42
56
{
57
+ /// <summary>
58
+ /// List Peppol Inbound Documents
59
+ /// </summary>
60
+ /// <param name="token">Authentication token</param>
61
+ /// <param name="fromCreatedAt">Start of the document created date period scope.</param>
62
+ /// <param name="supplierId">The uuid of the supplier given during the on boarding process.</param>
63
+ /// <param name="pageNumber">Number of page that should be returned. Must be included to use page-based pagination.</param>
64
+ /// <param name="pageSize">Number (1-2000) of document resources that you want to be returned. Defaults to 2000.</param>
65
+ /// <param name="cancellationToken">Allow to cancel a long-running task</param>
66
+ /// <returns>A list of Peppol Inbound Document resources</returns>
67
+ Task < EInvoicingCollection < PeppolInboundDocument > > List ( ClientAccessToken token , DateTimeOffset ? fromCreatedAt , Guid ? supplierId , long ? pageNumber = null , int ? pageSize = null , CancellationToken ? cancellationToken = null ) ;
43
68
}
44
69
}
0 commit comments