Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.

Commit 95346f3

Browse files
authored
Merge pull request #346 from MJMortimer/f-paymentsOnlyJournals
Add paymentsOnly param to JournalsEndpoint
2 parents 243608f + d7747f4 commit 95346f3

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

Xero.Api/Core/Endpoints/JournalsEndpoint.cs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ namespace Xero.Api.Core.Endpoints
99
public interface IJournalsEndpoint : IXeroReadEndpoint<JournalsEndpoint, Journal, JournalsResponse>
1010
{
1111
JournalsEndpoint Offset(int offset);
12+
13+
JournalsEndpoint PaymentsOnly(bool value);
1214
}
1315

1416
public class JournalsEndpoint : XeroReadEndpoint<JournalsEndpoint, Journal, JournalsResponse>, IJournalsEndpoint
@@ -23,5 +25,11 @@ public JournalsEndpoint Offset(int offset)
2325
AddParameter("offset", offset);
2426
return this;
2527
}
28+
29+
public JournalsEndpoint PaymentsOnly(bool value)
30+
{
31+
AddParameter("paymentsOnly", value);
32+
return this;
33+
}
2634
}
27-
}
35+
}

0 commit comments

Comments
 (0)