#nukesforbreakfast_best-practices

1 messages ยท Page 1 of 1 (latest)

obsidian kilnBOT
#

๐Ÿ‘‹ 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/1291499602582704199

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

storm sableBOT
serene karma
#

Hi ๐Ÿ‘‹ no, there is not sort of updated parameter on Account objects. You can reference the created timestamp on the Event object to try to figure out its order compared to other Events:
https://docs.stripe.com/api/events/object#event_object-created

But depending on the frequency of the changes being made that may not be granular enough. You can retrieve the Account object to get its current state if you're uncertain whether the account.updated Event is the most recent one for the account and contains the current state of the Account object.

sinful vector
#

ah, but that wouldn't tell me what fields changed.

#

ok, I can probably just use metadata to store the last time the branding was updated.

Are metadata writes strongly consistent or eventually consistent?

serene karma
#

Updating metadata on an object is reflected immediately

obsidian kilnBOT
sinful vector
#

alright, so I should be able to read that metadata right away from a different process than the one that wrote the metadata?

#

excluding search endpoints, I know that has to wait for indexes to be updated.

spiral stream
#

Hello! I'm taking over and catching up...

#

That's correct, once your metadata update request comes back with a successful response you should be able to immediately fetch the object and see the metadata on it, excluding the Search endpoints as you mentioned.