@@ -14,8 +14,6 @@ namespace Xero.Api.Core
1414{
1515 public class XeroCoreApi : XeroApi , IXeroCoreApi
1616 {
17- private IOrganisationEndpoint OrganisationEndpoint { get ; set ; }
18-
1917 public XeroCoreApi ( string baseUri , IAuthenticator auth , IConsumer consumer , IUser user ,
2018 IJsonObjectMapper readMapper , IXmlObjectMapper writeMapper )
2119 : this ( baseUri , auth , consumer , user , readMapper , writeMapper , null )
@@ -59,6 +57,7 @@ public XeroCoreApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUse
5957 public IJournalsEndpoint Journals { get ; protected set ; }
6058 public ILinkedTransactionsEndpoint LinkedTransactions { get ; private set ; }
6159 public IManualJournalsEndpoint ManualJournals { get ; private set ; }
60+ public IOrganisationEndpoint Organisations { get ; private set ; }
6261 public IOverpaymentsEndpoint Overpayments { get ; private set ; }
6362 public IPaymentsEndpoint Payments { get ; private set ; }
6463 public PdfEndpoint PdfFiles { get ; private set ; }
@@ -75,7 +74,7 @@ public XeroCoreApi(string baseUri, IAuthenticator auth, IConsumer consumer, IUse
7574
7675 private void Connect ( )
7776 {
78- OrganisationEndpoint = new OrganisationEndpoint ( Client ) ;
77+ Organisations = new OrganisationEndpoint ( Client ) ;
7978
8079 Accounts = new AccountsEndpoint ( Client ) ;
8180 Allocations = new AllocationsEndpoint ( Client ) ;
@@ -116,7 +115,7 @@ public Organisation Organisation
116115 {
117116 get
118117 {
119- return OrganisationEndpoint . Find ( ) . FirstOrDefault ( ) ;
118+ return Organisations . Find ( ) . FirstOrDefault ( ) ;
120119 }
121120 }
122121
0 commit comments