Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transaction lines #84

Closed
Pirabarlen-Cheenaramen opened this issue Oct 27, 2016 · 4 comments
Closed

Transaction lines #84

Pirabarlen-Cheenaramen opened this issue Oct 27, 2016 · 4 comments

Comments

@Pirabarlen-Cheenaramen
Copy link

Pirabarlen-Cheenaramen commented Oct 27, 2016

Question, how do we get transaction lines again?

//(where getTransactions is a wrapper to new Transactions($connection)
 $transactions = $this->exactClient->getTransactions()->filter('','','EntryNumber, ClosingBalanceFC, Description, Date, TransactionLines');

 foreach ($transactions as $transaction) {
var_dump($transaction->TransactionLines);
}

array(1) {
["__deferred"]=>
array(1) {
["uri"]=>
string(136) "https://start.exactonline.de/api/v1/31816/financialtransaction/Transactions(guid'2081821f-337f-45a1-ab62-fca677467846')/TransactionLines"
}
}

that URI leads me to an XML doc... (if i used $connection->get($the_above_url) , I get a '

401 - Unauthorized: Access is denied due to invalid credentials.

', which doesn't make sense as the client is able to ) any idea ?

@Pirabarlen-Cheenaramen
Copy link
Author

nevermind figured it out,

adding a class TransactionLines extends Model does the trick.

@stephangroen
Copy link
Member

Yep, that entity did not exist yet.

@mpietraszneurosys
Copy link

mpietraszneurosys commented Mar 20, 2017

@Pirabarlen-Cheenaramen can you explain bit more what did you do ?. I also need to get TransactionLine. Did you create this TransactionLine class by yourself. If so why it doesn't exists here ?

@Pirabarlen-Cheenaramen
Copy link
Author

@mpietraszneurosys, i just created a TransactionLines class, following the same way Transaction was written. You can get the different properties from the api doc, and then you can use it like the rest. I unfortunately do not have the said class with me right now, i'll check and revert back to you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants