diff --git a/www/apps/resources/app/integrations/guides/shipstation/page.mdx b/www/apps/resources/app/integrations/guides/shipstation/page.mdx index 59e8054643..15299cc074 100644 --- a/www/apps/resources/app/integrations/guides/shipstation/page.mdx +++ b/www/apps/resources/app/integrations/guides/shipstation/page.mdx @@ -453,9 +453,15 @@ This method accepts the shipping option's `data` field, which will hold the data Add the method to `ShipStationProviderService` in `src/modules/shipstation/service.ts`: ```ts title="src/modules/shipstation/service.ts" +// other imports... +import { + // ... + CreateShippingOptionDTO, +} from "@medusajs/framework/types" + class ShipStationProviderService extends AbstractFulfillmentProviderService { // ... - async canCalculate(data: Record): Promise { + async canCalculate(data: CreateShippingOptionDTO): Promise { return true } } @@ -820,7 +826,7 @@ class ShipStationProviderService extends AbstractFulfillmentProviderService { }, to_address: context.shipping_address, items: context.items || [], - currency_code: context.currency_code, + currency_code: context.currency_code as string, }) rate = shipment.rate_response.rates[0] } else { diff --git a/www/apps/resources/app/recipes/digital-products/examples/standard/page.mdx b/www/apps/resources/app/recipes/digital-products/examples/standard/page.mdx index f3be59440b..9702844fe6 100644 --- a/www/apps/resources/app/recipes/digital-products/examples/standard/page.mdx +++ b/www/apps/resources/app/recipes/digital-products/examples/standard/page.mdx @@ -1706,7 +1706,13 @@ Then, create the file `src/modules/digital-product-fulfillment/service.ts` with ```ts title="src/modules/digital-product-fulfillment/service.ts" import { AbstractFulfillmentProviderService } from "@medusajs/framework/utils" -import { FulfillmentOption } from "@medusajs/framework/types" +import { + CreateFulfillmentResult, + FulfillmentDTO, + FulfillmentItemDTO, + FulfillmentOption, + FulfillmentOrderDTO +} from "@medusajs/framework/types" class DigitalProductFulfillmentService extends AbstractFulfillmentProviderService { static identifier = "digital" @@ -1735,9 +1741,17 @@ class DigitalProductFulfillmentService extends AbstractFulfillmentProviderServic return true } - async createFulfillment(): Promise> { + async createFulfillment( + data: Record, + items: Partial>[], + order: Partial | undefined, + fulfillment: Partial> + ): Promise { // No data is being sent anywhere - return {} + return { + data, + labels: [] + } } async cancelFulfillment(): Promise { diff --git a/www/apps/resources/generated/edit-dates.mjs b/www/apps/resources/generated/edit-dates.mjs index fff190df78..e2856b7419 100644 --- a/www/apps/resources/generated/edit-dates.mjs +++ b/www/apps/resources/generated/edit-dates.mjs @@ -112,7 +112,7 @@ export const generatedEditDates = { "app/nextjs-starter/page.mdx": "2025-01-06T12:19:31.143Z", "app/recipes/b2b/page.mdx": "2024-10-03T13:07:44.153Z", "app/recipes/commerce-automation/page.mdx": "2024-10-16T08:52:01.585Z", - "app/recipes/digital-products/examples/standard/page.mdx": "2025-01-06T11:19:35.640Z", + "app/recipes/digital-products/examples/standard/page.mdx": "2025-01-07T14:39:31.335Z", "app/recipes/digital-products/page.mdx": "2025-01-06T11:19:35.623Z", "app/recipes/ecommerce/page.mdx": "2024-10-22T11:01:01.218Z", "app/recipes/integrate-ecommerce-stack/page.mdx": "2024-12-09T13:03:35.846Z", @@ -5615,7 +5615,7 @@ export const generatedEditDates = { "references/types/DmlTypes/types/types.DmlTypes.RelationshipTypes/page.mdx": "2024-12-10T14:54:55.435Z", "app/recipes/commerce-automation/restock-notification/page.mdx": "2024-12-11T08:47:27.471Z", "app/troubleshooting/workflow-errors/page.mdx": "2024-12-11T08:44:36.598Z", - "app/integrations/guides/shipstation/page.mdx": "2024-12-23T07:48:47.719Z", + "app/integrations/guides/shipstation/page.mdx": "2025-01-07T14:40:42.561Z", "app/nextjs-starter/guides/customize-stripe/page.mdx": "2024-12-25T14:48:55.877Z", "references/core_flows/Cart/Workflows_Cart/functions/core_flows.Cart.Workflows_Cart.listShippingOptionsForCartWithPricingWorkflow/page.mdx": "2024-12-25T08:43:13.451Z", "references/core_flows/Cart/Workflows_Cart/variables/core_flows.Cart.Workflows_Cart.listShippingOptionsForCartWithPricingWorkflowId/page.mdx": "2024-12-17T16:57:22.044Z", diff --git a/www/apps/resources/generated/sidebar.mjs b/www/apps/resources/generated/sidebar.mjs index 06b7d8531a..61b4c3f11a 100644 --- a/www/apps/resources/generated/sidebar.mjs +++ b/www/apps/resources/generated/sidebar.mjs @@ -644,7 +644,7 @@ export const generatedSidebar = [ "loaded": true, "isPathHref": true, "type": "ref", - "title": "Retrieve Logged-In Customer in Storefront", + "title": "Retrieve Customer in Storefront", "path": "/storefront-development/customers/retrieve", "children": [] }, @@ -2258,7 +2258,7 @@ export const generatedSidebar = [ "loaded": true, "isPathHref": true, "type": "ref", - "title": "Retrieve Logged-In Customer in Storefront", + "title": "Retrieve Customer in Storefront", "path": "/storefront-development/customers/retrieve", "children": [] },