Skip to content

Commit

Permalink
chore(types): add price types for shipping option endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
riqwan committed Dec 9, 2024
1 parent 5542390 commit 25a3e28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 118 deletions.
112 changes: 0 additions & 112 deletions integration-tests/modules/__tests__/prices/price.query.ts

This file was deleted.

6 changes: 6 additions & 0 deletions packages/core/types/src/http/fulfillment/store/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,13 @@ export interface StoreCartShippingOption {
*/
amount: number

/**
* All the prices for this shipping option
*/
prices: StorePrice[]

/**
* Calculated price for the shipping option
*/
calculated_price: StoreCalculatedPrice
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,8 @@ export const defaultStoreShippingOptionsFields = [
"price_type",
"service_zone_id",
"shipping_profile_id",
"provider_id",
"*type",
"*provider",
"*rules",
"*rules",
"*calculated_price",
"fulfillment_provider_id",
"shipping_option_type_id",
]

export const listTransformQueryConfig = {
Expand Down

0 comments on commit 25a3e28

Please sign in to comment.