#stavros-malakoudis_api
1 messages Β· Page 1 of 1 (latest)
π Welcome to your new thread!
β²οΈ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.
β±οΈ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.
π This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1463927195725467837
π Have more to share? Add more details, code, screenshots, videos, etc. below.
Afte some digging, let me reiterate: The stripe cli command stripe charges retrieve ch_xxxx --expand refunds returns the refunds with the reason (and other fields populated).
The corresponding stripe java sdk code returns the charge with some fields null
stripe cli
Intellij debugging view of the same refund object
Hi there π so just to make sure I'm understanding correctly. The API is returning the expected data, but it's not coming through in Java code?
The stripe cli returns the nested refund object properly with all the fields populated but the corresponing java code has only some refund fields not null, which are not marked as expandable
What version of our Java SDK are you using?
31.0.0
Hm, let me poke around a bit more.
can you reproduce it on your end? The java code is this
.builder()
.setPaymentIntent("pi_3RbPAtHxNT300n1J1x2Wb4jB")
.addExpand("data.refunds")
.setLimit(100L)
.build();
return StripeUtils.rateLimitCall(() -> StreamSupport
.stream(Charge.list(params, requestOptions).autoPagingIterable(params.toMap(), requestOptions).spliterator(), true)
.sorted(Comparator.comparing(Charge::getCreated))
.collect(Collectors.toList()));```
and the corresponding stripe cli command is this
```stripe charges list --payment-intent pi_3RbPAtHxNT300n1J1x2Wb4jB --expand data.refunds```
It would take me a while to try to reproduce, I don't have a relevant stack handy.
totally understand, no worries. Please take a look. I have to drop now, can we continue the conversation on an email chain?
I'll have our bot send you a message so we can convert this to a support case (which will come to my team)
thanks a lot
Hello @tacit torrent, we have sent you a direct message, please check it at https://discord.com/channels/@me/1463933084964491480
- πThe message has instructions on how to open a direct support case with our Developer Support team, in order to help you more effectively.