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

This commit is contained in:
Stevche Radevski
2024-05-27 09:37:10 +02:00
committed by GitHub
parent 3b93bc9f55
commit 28a3f9a3df
9 changed files with 60 additions and 12 deletions
+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,
})