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
229
229
* @returns The calculated price's details.
230
230
*
231
231
* @example
232
+ * import { CalculateShippingOptionPriceDTO } from "@medusajs/framework/types"
232
233
* class MyFulfillmentProviderService extends AbstractFulfillmentProviderService {
233
234
* // ...
234
235
* 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"]
238
239
* ): Promise<CalculatedShippingOptionPrice> {
239
240
* // assuming the client can calculate the price using
240
241
* // the third-party service
241
242
* const price = await this.client.calculate(data)
242
243
* return {
243
244
* calculated_amount: price,
244
- * is_calculated_price_tax_inclusive: true,
245
245
* // Update this boolean value based on your logic
246
+ * is_calculated_price_tax_inclusive: true,
246
247
* }
247
248
* }
248
249
* }
You can’t perform that action at this time.
0 commit comments