docs: updates in recipes (#9472)
Updates in recipes following release changes
This commit is contained in:
@@ -1444,7 +1444,7 @@ class DigitalProductFulfillmentService extends AbstractFulfillmentProviderServic
|
||||
super()
|
||||
}
|
||||
|
||||
async getFulfillmentOptions(): Promise<Record<string, unknown>[]> {
|
||||
async getFulfillmentOptions(): Promise<FulfillmentOption[]> {
|
||||
return [
|
||||
{
|
||||
id: "digital-fulfillment",
|
||||
|
||||
@@ -2268,8 +2268,9 @@ import { Delivery } from "../models/delivery"
|
||||
|
||||
export type Delivery = InferTypeOf<typeof Delivery>
|
||||
|
||||
export type UpdateDelivery = Partial<Delivery> & {
|
||||
export type UpdateDelivery = Partial<Omit<Delivery, "driver">> & {
|
||||
id: string;
|
||||
driver_id?: string
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -1185,7 +1185,7 @@ const SubscriptionsPage = () => {
|
||||
</Link>
|
||||
</Table.Cell>
|
||||
<Table.Cell>
|
||||
<Link to={`/orders/${subscription.metadata.main_order_id}`}>
|
||||
<Link to={`/orders/${subscription.metadata?.main_order_id}`}>
|
||||
View Order
|
||||
</Link>
|
||||
</Table.Cell>
|
||||
@@ -1363,7 +1363,7 @@ import {
|
||||
} from "@medusajs/ui"
|
||||
import { useEffect, useState } from "react"
|
||||
import { useParams, Link } from "react-router-dom"
|
||||
import { SubscriptionData } from "../../../types"
|
||||
import { SubscriptionData } from "../../../types/index.js"
|
||||
|
||||
const SubscriptionPage = () => {
|
||||
const { id } = useParams()
|
||||
@@ -1394,7 +1394,7 @@ const SubscriptionPage = () => {
|
||||
</Table.Row>
|
||||
</Table.Header>
|
||||
<Table.Body>
|
||||
{subscription.orders.map((order) => (
|
||||
{subscription.orders?.map((order) => (
|
||||
<Table.Row key={order.id}>
|
||||
<Table.Cell>{order.id}</Table.Cell>
|
||||
<Table.Cell>{(new Date(order.created_at)).toDateString()}</Table.Cell>
|
||||
|
||||
Reference in New Issue
Block a user