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

Commit 801611a

Browse files
authored
Merge pull request #246 from MJMortimer/f-SummarizeErrorsAndUpdates
Have Update and SummarizeErrors play nicely
2 parents e93e117 + f52f2e0 commit 801611a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

Xero.Api/Core/Endpoints/Base/IXeroUpdateEndpoint.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ public interface IXeroUpdateEndpoint<T, TResult, TRequest, TResponse>
1515
{
1616
IEnumerable<TResult> Update(IEnumerable<TResult> items);
1717
TResult Update(TResult item);
18+
new IXeroUpdateEndpoint<T, TResult, TRequest, TResponse> SummarizeErrors(bool summarize);
1819
}
1920
}

Xero.Api/Core/Endpoints/Base/XeroUpdateEndpoint.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ public virtual TResult Update(TResult item)
3030
return Update(new[] { item }).First();
3131
}
3232

33+
public new IXeroUpdateEndpoint<T, TResult, TRequest, TResponse> SummarizeErrors(bool summarize)
34+
{
35+
AddParameter("summarizeErrors", summarize);
36+
return this;
37+
}
38+
3339
protected IEnumerable<TResult> Post(TRequest data)
3440
{
3541
try

0 commit comments

Comments
 (0)