docs: update docusaurus to v3 (#5625)
* update dependencies * update onboarding mdx * fixes for mdx issues * fixes for mdx compatibility * resolve mdx errors * fixes in reference * fix check errors * revert change in vale action * fix node version in action * fix summary in markdown
This commit is contained in:
@@ -6,15 +6,15 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
|
||||
|
||||
# ShippingProfile
|
||||
|
||||
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type `gift_card` groups together the shipping options that can only be used for gift cards.
|
||||
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type `gift\_card` groups together the shipping options that can only be used for gift cards.
|
||||
|
||||
## Constructors
|
||||
|
||||
### constructor
|
||||
|
||||
**new ShippingProfile**()
|
||||
`**new ShippingProfile**()`
|
||||
|
||||
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type `gift_card` groups together the shipping options that can only be used for gift cards.
|
||||
A Shipping Profile has a set of defined Shipping Options that can be used to fulfill a given set of Products. For example, gift cards are shipped differently than physical products, so a shipping profile with the type `gift\_card` groups together the shipping options that can only be used for gift cards.
|
||||
|
||||
## Properties
|
||||
|
||||
@@ -48,7 +48,7 @@ A Shipping Profile has a set of defined Shipping Options that can be used to ful
|
||||
},
|
||||
{
|
||||
"name": "metadata",
|
||||
"type": "Record<`string`, `unknown`\\>",
|
||||
"type": "`Record<string, unknown>`",
|
||||
"description": "An optional key-value map with additional details",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -66,7 +66,7 @@ A Shipping Profile has a set of defined Shipping Options that can be used to ful
|
||||
},
|
||||
{
|
||||
"name": "products",
|
||||
"type": "[`Product`](Product.mdx)[]",
|
||||
"type": "[Product](Product.mdx)[]",
|
||||
"description": "The details of the products that the Shipping Profile defines Shipping Options for. Available if the relation `products` is expanded.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -75,7 +75,7 @@ A Shipping Profile has a set of defined Shipping Options that can be used to ful
|
||||
},
|
||||
{
|
||||
"name": "shipping_options",
|
||||
"type": "[`ShippingOption`](ShippingOption.mdx)[]",
|
||||
"type": "[ShippingOption](ShippingOption.mdx)[]",
|
||||
"description": "The details of the shipping options that can be used to create shipping methods for the Products in the Shipping Profile.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
@@ -84,8 +84,8 @@ A Shipping Profile has a set of defined Shipping Options that can be used to ful
|
||||
},
|
||||
{
|
||||
"name": "type",
|
||||
"type": "[`ShippingProfileType`](../enums/ShippingProfileType.mdx)",
|
||||
"description": "The type of the Shipping Profile, may be `default`, `gift_card` or `custom`.",
|
||||
"type": "[ShippingProfileType](../enums/ShippingProfileType.mdx)",
|
||||
"description": "The type of the Shipping Profile, may be `default`, `gift\\_card` or `custom`.",
|
||||
"optional": false,
|
||||
"defaultValue": "",
|
||||
"expandable": false,
|
||||
@@ -106,7 +106,7 @@ A Shipping Profile has a set of defined Shipping Options that can be used to ful
|
||||
|
||||
### beforeInsert
|
||||
|
||||
`Private` **beforeInsert**(): `void`
|
||||
`Private **beforeInsert**(): void`
|
||||
|
||||
#### Returns
|
||||
|
||||
|
||||
Reference in New Issue
Block a user