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

Added CreatedByMyApp functionality to Invoices #359

Merged
merged 1 commit into from
Oct 22, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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