File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
packages/core/utils/src/fulfillment Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -229,20 +229,21 @@ export class AbstractFulfillmentProviderService
229229 * @returns The calculated price's details.
230230 *
231231 * @example
232+ * import { CalculateShippingOptionPriceDTO } from "@medusajs/framework/types"
232233 * class MyFulfillmentProviderService extends AbstractFulfillmentProviderService {
233234 * // ...
234235 * async calculatePrice(
235- * optionData: Record<string, unknown> ,
236- * data: Record<string, unknown> ,
237- * context: any
236+ * optionData: CalculateShippingOptionPriceDTO["optionData"] ,
237+ * data: CalculateShippingOptionPriceDTO["data"] ,
238+ * context: CalculateShippingOptionPriceDTO["context"]
238239 * ): Promise<CalculatedShippingOptionPrice> {
239240 * // assuming the client can calculate the price using
240241 * // the third-party service
241242 * const price = await this.client.calculate(data)
242243 * return {
243244 * calculated_amount: price,
244- * is_calculated_price_tax_inclusive: true,
245245 * // Update this boolean value based on your logic
246+ * is_calculated_price_tax_inclusive: true,
246247 * }
247248 * }
248249 * }
You can’t perform that action at this time.
0 commit comments