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

Commit

Permalink
Merge pull request #359 from MJMortimer/CreatedByMyApp
Browse files Browse the repository at this point in the history
Added CreatedByMyApp functionality to Invoices
  • Loading branch information
MJMortimer authored Oct 22, 2018
2 parents c487bee + 164c1a8 commit dcbacf9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Xero.Api/Core/Endpoints/InvoicesEndpoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public interface IInvoicesEndpoint : IXeroUpdateEndpoint<InvoicesEndpoint, Invoi
IInvoicesEndpoint Statuses(IEnumerable<InvoiceStatus> statuses);
IInvoicesEndpoint InvoiceNumbers(IEnumerable<string> invoiceNumbers);
void EmailInvoice(Guid invoiceId);
IInvoicesEndpoint CreatedByMyApp();
}

public class InvoicesEndpoint
Expand Down Expand Up @@ -71,6 +72,11 @@ public void EmailInvoice(Guid invoiceId)
}
}

public IInvoicesEndpoint CreatedByMyApp()
{
return AddParameter("createdByMyApp", true);
}

public override void ClearQueryString()
{
base.ClearQueryString();
Expand Down

0 comments on commit dcbacf9

Please sign in to comment.