#stavros-malakoudis_api

1 messages Β· Page 1 of 1 (latest)

rain wraithBOT
#

πŸ‘‹ 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.

tacit torrent
#

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

vale solar
#

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?

tacit torrent
#

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

vale solar
#

What version of our Java SDK are you using?

tacit torrent
#

31.0.0

vale solar
#

Hm, let me poke around a bit more.

tacit torrent
#

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```
vale solar
#

It would take me a while to try to reproduce, I don't have a relevant stack handy.

tacit torrent
#

totally understand, no worries. Please take a look. I have to drop now, can we continue the conversation on an email chain?

vale solar
#

I'll have our bot send you a message so we can convert this to a support case (which will come to my team)

tacit torrent
#

thanks a lot

rain wraithBOT
#

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.