Skip to content

Commit b421df3

Browse files
docs: apply suggestions from code review
Co-authored-by: Shahed Nasser <[email protected]>
1 parent b4f1123 commit b421df3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

packages/core/utils/src/fulfillment/provider.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff 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
* }

0 commit comments

Comments
 (0)