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

Commit f52f2e0

Browse files
committed
Have Update and SummarizeErrors play nicely
1 parent e93e117 commit f52f2e0

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)