Hi guys!
I'm updating to API version 2017-04-06 from version 2016-10-19.
When receiving transfer.paid event (now payout.paid) we used to get all charges associated to a specific payout using the code
```
$balance = \Stripe\BalanceTransaction::all(
array(
"limit" => 3,
"transfer" => "tr_XXYYZZ",
"expand" => array("data.source.source_transfer.source_transaction")
),
array("stripe_account" => "acct_AAAA")
);
````
This was suggested as the way to do it in a past topic in this list ["How to do a Refund of a Charge created on behalf of Standalone Account?"]
It seems this is not possible anymore, since the `source_transaction` is not expandable anymore from `source_transfer`, and so we need some different technique for getting the Charge object related to Transfer object.
We create all charges with a `destination` parameter, so Stripe creates Transfer, connected account Payment [Charge], and Payout objects.
We are using `stripe/stripe-php` client lib v4.7.0.
Thank you guys for your support!
José