Uh oh!
There was an error while loading. Please reload this page.
refactor: billing endpoints - #697
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
lohanidamodar
left a comment
There was a problem hiding this comment.
Left a query. Also where are the similar changes for billingAddresses?
| export async function paymentExpired(org: Organization) { | ||
| if (!org?.paymentMethodId) return; | ||
| const payment = await sdk.forConsole.billing.getPaymentMethod(org.paymentMethodId); | ||
| const payment = await sdk.forConsole.billing.getOrganizationPaymentMethod( |
There was a problem hiding this comment.
We use this on load to check if there are any expired payments
lohanidamodar
left a comment
There was a problem hiding this comment.
We need similar changes applied for billingAddress as well. I don't see those.
ArmanNik
commented
Feb 15, 2024
@lohanidamodar there's no change because we only fetch all the addresses never only one. If there's also a new endpoint for listing addresses, I wasn't informed and it's not mentioned in the linear task either 🤔 |
lohanidamodar
commented
Feb 28, 2024
How do you display the Organization's assigned billing address? don't you need to fetch the billing address by ID when people are looking at the billing tab for the organization? |
ArmanNik
commented
Mar 19, 2024
We are already fetching the addressList when we load the page so I'm just finding it among them |
lohanidamodar
commented
Mar 20, 2024
As we discussed, lets use the new endpoint through |
lohanidamodar
left a comment
There was a problem hiding this comment.
Looks good. However I think this should target cloud branch.

No description provided.