@@ -13,8 +13,6 @@ namespace Xero.Api.Core
1313{
1414 public class XeroCoreApi : XeroApi , IXeroCoreApi
1515 {
16- private IOrganisationEndpoint OrganisationEndpoint { get ; set ; }
17-
1816 public XeroCoreApi ( string baseUri , IAuthenticator auth , IConsumer consumer , IUser user ,
1917 IJsonObjectMapper readMapper , IXmlObjectMapper writeMapper )
2018 : 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 ) ;
@@ -117,7 +116,7 @@ public Organisation Organisation
117116 {
118117 get
119118 {
120- return OrganisationEndpoint . Find ( ) . FirstOrDefault ( ) ;
119+ return Organisations . Find ( ) . FirstOrDefault ( ) ;
121120 }
122121 }
123122
0 commit comments