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

Commit dcbacf9

Browse files
authored
Merge pull request #359 from MJMortimer/CreatedByMyApp
Added CreatedByMyApp functionality to Invoices
2 parents c487bee + 164c1a8 commit dcbacf9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Xero.Api/Core/Endpoints/InvoicesEndpoint.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ public interface IInvoicesEndpoint : IXeroUpdateEndpoint<InvoicesEndpoint, Invoi
2121
IInvoicesEndpoint Statuses(IEnumerable<InvoiceStatus> statuses);
2222
IInvoicesEndpoint InvoiceNumbers(IEnumerable<string> invoiceNumbers);
2323
void EmailInvoice(Guid invoiceId);
24+
IInvoicesEndpoint CreatedByMyApp();
2425
}
2526

2627
public class InvoicesEndpoint
@@ -71,6 +72,11 @@ public void EmailInvoice(Guid invoiceId)
7172
}
7273
}
7374

75+
public IInvoicesEndpoint CreatedByMyApp()
76+
{
77+
return AddParameter("createdByMyApp", true);
78+
}
79+
7480
public override void ClearQueryString()
7581
{
7682
base.ClearQueryString();

0 commit comments

Comments
 (0)