feat: Add list cart option typings, make region optional on update cart (#7455)

This commit is contained in:
Stevche Radevski authored and GitHub committed 2024-05-27 09:37:10 +02:00
1 parent 3b93bc9f55
commit 28a3f9a3df
9 files changed
+60 -12

No files matched your search

+3 -2
View File
@@ -252,12 +252,13 @@ export class Store {
}
public fulfillment = {
// TODO: Finalize typings for list options
listCartOptions: async (
query?: FindParams & { cart_id: string },
headers?: ClientHeaders
) => {
return this.client.fetch<any>(`/store/shipping-options`, {
return this.client.fetch<{
shipping_options: HttpTypes.StoreCartShippingOption[]
}>(`/store/shipping-options`, {
headers,
query,
})