chore(docs): Generated References (#5602)

Generated the following references:
- `pricing`
- `product`

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
This commit is contained in:
authored and GitHub committed 2023-11-10 17:31:02 +00:00
1 parent 5f4317b9d7
commit 39649b3552
2110 files changed
+148777 -4448445

No files matched your search

@@ -6,151 +6,171 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Address
An address is used across the Medusa backend within other schemas and object types. For example, a customer's billing and shipping addresses both use the Address entity.
## Properties
<ParameterTypes parameters={[
{
"name": "address_1",
"type": "``null`` \\| `string`",
"description": "",
"description": "Address line 1",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "address_2",
"type": "``null`` \\| `string`",
"description": "",
"description": "Address line 2",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "city",
"type": "``null`` \\| `string`",
"description": "",
"description": "City",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "company",
"type": "``null`` \\| `string`",
"description": "",
"description": "Company name",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "country",
"type": "``null`` \\| [`Country`](Country.mdx)",
"description": "",
"description": "A country object.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": []
},
{
"name": "country_code",
"type": "``null`` \\| `string`",
"description": "",
"description": "The 2 character ISO code of the country in lower case",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "customer",
"type": "``null`` \\| [`Customer`](Customer.mdx)",
"description": "",
"description": "Available if the relation `customer` is expanded.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "customer_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "ID of the customer this address belongs to",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "first_name",
"type": "``null`` \\| `string`",
"description": "",
"description": "First name",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "ID of the address",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "last_name",
"type": "``null`` \\| `string`",
"description": "",
"description": "Last name",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "phone",
"type": "``null`` \\| `string`",
"description": "",
"description": "Phone Number",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "postal_code",
"type": "``null`` \\| `string`",
"description": "",
"description": "Postal Code",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "province",
"type": "``null`` \\| `string`",
"description": "",
"description": "Province",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,6 +6,8 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# AnalyticsConfig
Base abstract entity for all entities
## Properties
<ParameterTypes parameters={[
@@ -15,6 +17,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -23,6 +26,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -31,6 +35,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -39,6 +44,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -47,6 +53,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -55,6 +62,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -63,6 +71,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -0,0 +1,41 @@
---
displayed_sidebar: entitiesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# BaseEntity
Base abstract entity for all entities
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,134 +6,143 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# BatchJob
A Batch Job indicates an asynchronus task stored in the Medusa backend. Its status determines whether it has been executed or not.
## Properties
<ParameterTypes parameters={[
{
"name": "canceled_at",
"type": "`Date`",
"description": "",
"description": "The date of the concellation.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "completed_at",
"type": "`Date`",
"description": "",
"description": "The date of the completion.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "confirmed_at",
"type": "`Date`",
"description": "",
"description": "The date when the confirmation has been done.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "context",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "The context of the batch job, the type of the batch job determines what the context should contain.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_by",
"type": "``null`` \\| `string`",
"description": "",
"description": "The unique identifier of the user that created the batch job.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_by_user",
"type": "[`User`](User.mdx)",
"description": "",
"description": "The details of the user that created the batch job.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`User`](User.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "api_token",
"type": "`string`",
"description": "",
"description": "An API token associated with the user.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "email",
"type": "`string`",
"description": "",
"description": "The email of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "first_name",
"type": "`string`",
"description": "",
"description": "The first name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The user's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "last_name",
"type": "`string`",
"description": "",
"description": "The last name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -142,55 +151,25 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "role",
"type": "[`UserRoles`](../enums/UserRoles.mdx)",
"description": "",
"description": "The user's role. These roles don't provide any different privileges.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "ADMIN",
"type": "``\"admin\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "DEVELOPER",
"type": "``\"developer\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "MEMBER",
"type": "``\"member\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]
"defaultValue": "member",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -198,81 +177,219 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "dry_run",
"type": "`boolean`",
"description": "",
"description": "Specify if the job must apply the modifications or not.",
"optional": false,
"defaultValue": "`false`",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "failed_at",
"type": "`Date`",
"description": "",
"description": "The date when the job failed.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The unique identifier for the batch job.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "pre_processed_at",
"type": "`Date`",
"description": "",
"description": "The date from which the job has been pre-processed.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "processing_at",
"type": "`Date`",
"description": "",
"description": "The date the job is processing at.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "result",
"type": "{ `advancement_count?`: `number` ; `count?`: `number` ; `errors?`: (`string` \\| `BatchJobResultError`)[] ; `file_key?`: `string` ; `file_size?`: `number` ; `progress?`: `number` ; `stat_descriptors?`: `BatchJobResultStatDescriptor`[] } & Record<`string`, `unknown`\\>",
"description": "",
"type": "{ `advancement_count?`: `number` ; `count?`: `number` ; `errors?`: (`string` \\| [`BatchJobResultError`](../types/BatchJobResultError.mdx))[] ; `file_key?`: `string` ; `file_size?`: `number` ; `progress?`: `number` ; `stat_descriptors?`: [`BatchJobResultStatDescriptor`](../types/BatchJobResultStatDescriptor.mdx)[] } & Record<`string`, `unknown`\\>",
"description": "The result of the batch job.",
"optional": false,
"defaultValue": "",
"children": []
"expandable": false,
"children": [
{
"name": "advancement_count",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "count",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "errors",
"type": "(`string` \\| [`BatchJobResultError`](../types/BatchJobResultError.mdx))[]",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "file_key",
"type": "`string`",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "file_size",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "progress",
"type": "`number`",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "stat_descriptors",
"type": "[`BatchJobResultStatDescriptor`](../types/BatchJobResultStatDescriptor.mdx)[]",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
},
{
"name": "status",
"type": "`BatchJobStatus`",
"description": "",
"type": "[`BatchJobStatus`](../enums/BatchJobStatus.mdx)",
"description": "The status of the batch job.",
"optional": false,
"defaultValue": "",
"children": []
"defaultValue": "created",
"expandable": false,
"children": [
{
"name": "CANCELED",
"type": "``\"canceled\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "COMPLETED",
"type": "``\"completed\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "CONFIRMED",
"type": "``\"confirmed\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "CREATED",
"type": "``\"created\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "FAILED",
"type": "``\"failed\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "PRE_PROCESSED",
"type": "``\"pre_processed\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "PROCESSING",
"type": "``\"processing\"``",
"description": "",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
},
{
"name": "type",
"type": "`string`",
"description": "",
"description": "The type of batch job.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was last updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,55 +6,63 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ClaimTag
Claim Tags are user defined tags that can be assigned to claim items for easy filtering and grouping.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The claim tag's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"description": "The value that the claim tag holds",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,427 +6,243 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Country
Country details
## Properties
<ParameterTypes parameters={[
{
"name": "display_name",
"type": "`string`",
"description": "",
"description": "The country name appropriate for display.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`number`",
"description": "",
"description": "The country's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "iso_2",
"type": "`string`",
"description": "",
"description": "The 2 character ISO code of the country in lower case",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "iso_3",
"type": "`string`",
"description": "",
"description": "The 2 character ISO code of the country in lower case",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The normalized country name in upper case.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "num_code",
"type": "`number`",
"description": "",
"description": "The numerical ISO code for the country.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "region",
"type": "[`Region`](Region.mdx)",
"description": "",
"description": "The details of the region the country is associated with.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`Region`](Region.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "automatic_taxes",
"type": "`boolean`",
"description": "",
"description": "Whether taxes should be automated in this region.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
},
{
"name": "countries",
"type": "[`Country`](Country.mdx)[]",
"description": "",
"description": "The details of the countries included in this region.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`Country`](Country.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "display_name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "iso_2",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "iso_3",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "num_code",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "region",
"type": "[`Region`](Region.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "region_id",
"type": "``null`` \\| `string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "currency",
"type": "[`Currency`](Currency.mdx)",
"description": "",
"description": "The details of the currency used in the region.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "code",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "symbol",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "symbol_native",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "currency_code",
"type": "`string`",
"description": "",
"description": "The three character currency code used in the region.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "fulfillment_providers",
"type": "[`FulfillmentProvider`](FulfillmentProvider.mdx)[]",
"description": "",
"description": "The details of the fulfillment providers that can be used to fulfill items of orders and similar resources in the region.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`FulfillmentProvider`](FulfillmentProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "gift_cards_taxable",
"type": "`boolean`",
"description": "",
"description": "Whether the gift cards are taxable or not in this region.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The region's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the prices for the region include tax",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the region as displayed to the customer. If the Region only has one country it is recommended to write the country name.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "payment_providers",
"type": "[`PaymentProvider`](PaymentProvider.mdx)[]",
"description": "",
"description": "The details of the payment providers that can be used to process payments in the region.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`PaymentProvider`](PaymentProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "tax_code",
"type": "`string`",
"description": "",
"description": "The tax code used on purchases in the Region. This may be used by other systems for accounting purposes.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_provider",
"type": "[`TaxProvider`](TaxProvider.mdx)",
"description": "",
"description": "The details of the tax provider used in the region.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`TaxProvider`](TaxProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "tax_provider_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The ID of the tax provider used in this region",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_rate",
"type": "`number`",
"description": "",
"description": "The tax rate that should be charged on purchases in the Region.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_rates",
"type": "``null`` \\| [`TaxRate`](TaxRate.mdx)[]",
"description": "",
"description": "The details of the tax rates used in the region, aside from the default rate.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -434,9 +250,10 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "region_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The region ID this country is associated with.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,47 +6,55 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Currency
Currency
## Properties
<ParameterTypes parameters={[
{
"name": "code",
"type": "`string`",
"description": "",
"description": "The 3 character ISO code for the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the currency prices include tax",
"optional": true,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The written name of the currency",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol",
"type": "`string`",
"description": "",
"description": "The symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol_native",
"type": "`string`",
"description": "",
"description": "The native symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,23 +6,27 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# FulfillmentProvider
A fulfillment provider represents a fulfillment service installed in the Medusa backend, either through a plugin or backend customizations. It holds the fulfillment service's installation status.
## Properties
<ParameterTypes parameters={[
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the fulfillment provider as given by the fulfillment service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the fulfillment service is installed in the current version. If a fulfillment service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,87 +6,99 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# IdempotencyKey
Idempotency Key is used to continue a process in case of any failure that might occur.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "Date which the idempotency key was locked.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The idempotency key's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "idempotency_key",
"type": "`string`",
"description": "",
"description": "The unique randomly generated key used to determine the state of a process.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "locked_at",
"type": "`Date`",
"description": "",
"description": "Date which the idempotency key was locked.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "recovery_point",
"type": "`string`",
"description": "",
"description": "Where to continue from.",
"optional": false,
"defaultValue": "",
"defaultValue": "started",
"expandable": false,
"children": []
},
{
"name": "request_method",
"type": "`string`",
"description": "",
"description": "The method of the request",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "request_params",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "The parameters passed to the request",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "request_path",
"type": "`string`",
"description": "",
"description": "The request's path",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "response_body",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "The response's body",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "response_code",
"type": "`number`",
"description": "",
"description": "The response's code.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,55 +6,63 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Image
An Image is used to store details about uploaded images. Images are uploaded by the File Service, and the URL is provided by the File Service.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The image's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "url",
"type": "`string`",
"description": "",
"description": "The URL at which the image file can be found.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,86 +6,98 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Invite
An invite is created when an admin user invites a new user to join the store's team. Once the invite is accepted, it's deleted.
## Properties
<ParameterTypes parameters={[
{
"name": "accepted",
"type": "`boolean`",
"description": "",
"description": "Whether the invite was accepted or not.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "expires_at",
"type": "`Date`",
"description": "",
"description": "The date the invite expires at.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The invite's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "role",
"type": "[`UserRoles`](../enums/UserRoles.mdx)",
"description": "",
"description": "The user's role. These roles don't change the privileges of the user.",
"optional": false,
"defaultValue": "",
"defaultValue": "member",
"expandable": false,
"children": [
{
"name": "ADMIN",
"type": "``\"admin\"``",
"description": "",
"description": "The user is an admin.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "DEVELOPER",
"type": "``\"developer\"``",
"description": "",
"description": "The user is a developer.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "MEMBER",
"type": "``\"member\"``",
"description": "",
"description": "The user is a team member.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -93,25 +105,28 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "token",
"type": "`string`",
"description": "",
"description": "The token used to accept the invite.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "user_email",
"type": "`string`",
"description": "",
"description": "The email of the user being invited.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,86 +6,89 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Note
A Note is an element that can be used in association with different resources to allow admin users to describe additional information. For example, they can be used to add additional information about orders.
## Properties
<ParameterTypes parameters={[
{
"name": "author",
"type": "[`User`](User.mdx)",
"description": "",
"description": "The details of the user that created the note.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`User`](User.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "api_token",
"type": "`string`",
"description": "",
"description": "An API token associated with the user.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "email",
"type": "`string`",
"description": "",
"description": "The email of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "first_name",
"type": "`string`",
"description": "",
"description": "The first name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The user's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "last_name",
"type": "`string`",
"description": "",
"description": "The last name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -94,55 +97,25 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "role",
"type": "[`UserRoles`](../enums/UserRoles.mdx)",
"description": "",
"description": "The user's role. These roles don't provide any different privileges.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "ADMIN",
"type": "``\"admin\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "DEVELOPER",
"type": "``\"developer\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "MEMBER",
"type": "``\"member\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]
"defaultValue": "member",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -150,73 +123,82 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "author_id",
"type": "`string`",
"description": "",
"description": "The ID of the user that created the note.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The note's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "resource_id",
"type": "`string`",
"description": "",
"description": "The ID of the resource that the Note refers to.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "resource_type",
"type": "`string`",
"description": "",
"description": "The type of resource that the Note refers to.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"description": "The contents of the note.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,32 @@
---
displayed_sidebar: entitiesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# NotificationProvider
A notification provider represents a notification service installed in the Medusa backend, either through a plugin or backend customizations. It holds the notification service's installation status.
## Properties
<ParameterTypes parameters={[
{
"name": "id",
"type": "`string`",
"description": "The ID of the notification provider as given by the notification service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "Whether the notification service is installed in the current version. If a notification service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "true",
"expandable": false,
"children": []
}
]} />
@@ -15,6 +15,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -23,6 +24,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -31,6 +33,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -39,6 +42,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -47,6 +51,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -55,6 +60,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,23 +6,27 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# PaymentProvider
A payment provider represents a payment service installed in the Medusa backend, either through a plugin or backend customizations. It holds the payment service's installation status.
## Properties
<ParameterTypes parameters={[
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the payment provider as given by the payment service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the payment service is installed in the current version. If a payment service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,55 +6,63 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ProductTag
A Product Tag can be added to Products for easy filtering and grouping.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The product tag's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"description": "The value that the Product Tag represents",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
@@ -6,55 +6,63 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ProductType
A Product Type can be added to Products for filtering and reporting purposes.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The product type's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"description": "The value that the Product Type represents.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,6 +6,8 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ProductVariantMoneyAmount
Base abstract entity for all entities
## Properties
<ParameterTypes parameters={[
@@ -15,6 +17,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -23,6 +26,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -31,6 +35,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -39,6 +44,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -47,6 +53,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -55,6 +62,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,63 +6,72 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# PublishableApiKey
A Publishable API key defines scopes that resources are available in. Then, it can be used in request to infer the resources without having to directly pass them. For example, a publishable API key can be associated with one or more sales channels. Then, when the publishable API key is passed in the header of a request, it is inferred what sales channel is being used without having to pass the sales channel as a query or body parameter of the request. Publishable API keys can only be used with sales channels, at the moment.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_by",
"type": "``null`` \\| `string`",
"description": "",
"description": "The unique identifier of the user that created the key.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The key's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "revoked_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the key was revoked.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "revoked_by",
"type": "``null`` \\| `string`",
"description": "",
"description": "The unique identifier of the user that revoked the key.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "title",
"type": "`string`",
"description": "",
"description": "The key's title.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,23 +6,27 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# PublishableApiKeySalesChannel
This represents the association between the Publishable API keys and Sales Channels
## Properties
<ParameterTypes parameters={[
{
"name": "publishable_key_id",
"type": "`string`",
"description": "",
"description": "The publishable API key's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "sales_channel_id",
"type": "`string`",
"description": "",
"description": "The sales channel's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
@@ -6,263 +6,98 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Region
A region holds settings specific to a geographical location, including the currency, tax rates, and fulfillment and payment providers. A Region can consist of multiple countries to accomodate common shopping settings across countries.
## Properties
<ParameterTypes parameters={[
{
"name": "automatic_taxes",
"type": "`boolean`",
"description": "",
"description": "Whether taxes should be automated in this region.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
},
{
"name": "countries",
"type": "[`Country`](Country.mdx)[]",
"description": "",
"description": "The details of the countries included in this region.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`Country`](Country.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "display_name",
"type": "`string`",
"description": "",
"description": "The country name appropriate for display.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`number`",
"description": "",
"description": "The country's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "iso_2",
"type": "`string`",
"description": "",
"description": "The 2 character ISO code of the country in lower case",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "iso_3",
"type": "`string`",
"description": "",
"description": "The 2 character ISO code of the country in lower case",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The normalized country name in upper case.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "num_code",
"type": "`number`",
"description": "",
"description": "The numerical ISO code for the country.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "region",
"type": "[`Region`](Region.mdx)",
"description": "",
"description": "The details of the region the country is associated with.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`Region`](Region.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "automatic_taxes",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "countries",
"type": "[`Country`](Country.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "currency",
"type": "[`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "currency_code",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "fulfillment_providers",
"type": "[`FulfillmentProvider`](FulfillmentProvider.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "gift_cards_taxable",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "payment_providers",
"type": "[`PaymentProvider`](PaymentProvider.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_code",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_provider",
"type": "[`TaxProvider`](TaxProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_provider_id",
"type": "``null`` \\| `string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_rate",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_rates",
"type": "``null`` \\| [`TaxRate`](TaxRate.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "region_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The region ID this country is associated with.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -270,64 +105,64 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "currency",
"type": "[`Currency`](Currency.mdx)",
"description": "",
"description": "The details of the currency used in the region.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "code",
"type": "`string`",
"description": "",
"description": "The 3 character ISO code for the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the currency prices include tax",
"optional": true,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The written name of the currency",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol",
"type": "`string`",
"description": "",
"description": "The symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol_native",
"type": "`string`",
"description": "",
"description": "The native symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -335,48 +170,45 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "currency_code",
"type": "`string`",
"description": "",
"description": "The three character currency code used in the region.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "fulfillment_providers",
"type": "[`FulfillmentProvider`](FulfillmentProvider.mdx)[]",
"description": "",
"description": "The details of the fulfillment providers that can be used to fulfill items of orders and similar resources in the region.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`FulfillmentProvider`](FulfillmentProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the fulfillment provider as given by the fulfillment service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the fulfillment service is installed in the current version. If a fulfillment service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]
@@ -384,72 +216,73 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "gift_cards_taxable",
"type": "`boolean`",
"description": "",
"description": "Whether the gift cards are taxable or not in this region.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The region's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the prices for the region include tax",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the region as displayed to the customer. If the Region only has one country it is recommended to write the country name.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "payment_providers",
"type": "[`PaymentProvider`](PaymentProvider.mdx)[]",
"description": "",
"description": "The details of the payment providers that can be used to process payments in the region.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`PaymentProvider`](PaymentProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the payment provider as given by the payment service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the payment service is installed in the current version. If a payment service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]
@@ -457,40 +290,36 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "tax_code",
"type": "`string`",
"description": "",
"description": "The tax code used on purchases in the Region. This may be used by other systems for accounting purposes.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_provider",
"type": "[`TaxProvider`](TaxProvider.mdx)",
"description": "",
"description": "The details of the tax provider used in the region.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`TaxProvider`](TaxProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the tax provider as given by the tax service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the tax service is installed in the current version. If a tax service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]
@@ -498,33 +327,37 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "tax_provider_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The ID of the tax provider used in this region",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_rate",
"type": "`number`",
"description": "",
"description": "The tax rate that should be charged on purchases in the Region.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "tax_rates",
"type": "``null`` \\| [`TaxRate`](TaxRate.mdx)[]",
"description": "",
"description": "The details of the tax rates used in the region, aside from the default rate.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,287 +6,188 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ReturnReason
A Return Reason is a value defined by an admin. It can be used on Return Items in order to indicate why a Line Item was returned.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "description",
"type": "`string`",
"description": "",
"description": "A description of the Reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The return reason's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "label",
"type": "`string`",
"description": "",
"description": "A text that can be displayed to the Customer as a reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "parent_return_reason",
"type": "``null`` \\| [`ReturnReason`](ReturnReason.mdx)",
"description": "",
"description": "The details of the parent reason.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": []
},
{
"name": "parent_return_reason_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The ID of the parent reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "return_reason_children",
"type": "[`ReturnReason`](ReturnReason.mdx)[]",
"description": "",
"description": "The details of the child reasons.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`ReturnReason`](ReturnReason.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "description",
"type": "`string`",
"description": "",
"description": "A description of the Reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The return reason's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "label",
"type": "`string`",
"description": "",
"description": "A text that can be displayed to the Customer as a reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "parent_return_reason",
"type": "``null`` \\| [`ReturnReason`](ReturnReason.mdx)",
"description": "",
"description": "The details of the parent reason.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": []
},
{
"name": "parent_return_reason_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The ID of the parent reason.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "return_reason_children",
"type": "[`ReturnReason`](ReturnReason.mdx)[]",
"description": "",
"description": "The details of the child reasons.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`ReturnReason`](ReturnReason.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "description",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "label",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "parent_return_reason",
"type": "``null`` \\| [`ReturnReason`](ReturnReason.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "parent_return_reason_id",
"type": "``null`` \\| `string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "return_reason_children",
"type": "[`ReturnReason`](ReturnReason.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The value to identify the reason by.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -294,17 +195,19 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "value",
"type": "`string`",
"description": "",
"description": "The value to identify the reason by.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,215 +6,125 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# SalesChannel
A Sales Channel is a method a business offers its products for purchase for the customers. For example, a Webshop can be a sales channel, and a mobile app can be another.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "description",
"type": "``null`` \\| `string`",
"description": "",
"description": "The description of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The sales channel's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_disabled",
"type": "`boolean`",
"description": "",
"description": "Specify if the sales channel is enabled or disabled.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "locations",
"type": "[`SalesChannelLocation`](SalesChannelLocation.mdx)[]",
"description": "",
"description": "The details of the stock locations related to the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannelLocation`](SalesChannelLocation.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The Sales Channel Stock Location's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "location_id",
"type": "`string`",
"description": "",
"description": "The ID of the Location Stock.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "sales_channel",
"type": "[`SalesChannel`](SalesChannel.mdx)",
"description": "",
"description": "The details of the sales channel the location is associated with.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannel`](SalesChannel.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "description",
"type": "``null`` \\| `string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "is_disabled",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "locations",
"type": "[`SalesChannelLocation`](SalesChannelLocation.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "metadata",
"type": "``null`` \\| Record<`string`, `unknown`\\>",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "sales_channel_id",
"type": "`string`",
"description": "",
"description": "The ID of the Sales Channel",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -222,25 +132,28 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "metadata",
"type": "``null`` \\| Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,207 +6,134 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# SalesChannelLocation
This represents the association between a sales channel and a stock locations.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The Sales Channel Stock Location's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "location_id",
"type": "`string`",
"description": "",
"description": "The ID of the Location Stock.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "sales_channel",
"type": "[`SalesChannel`](SalesChannel.mdx)",
"description": "",
"description": "The details of the sales channel the location is associated with.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannel`](SalesChannel.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "description",
"type": "``null`` \\| `string`",
"description": "",
"description": "The description of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The sales channel's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_disabled",
"type": "`boolean`",
"description": "",
"description": "Specify if the sales channel is enabled or disabled.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "locations",
"type": "[`SalesChannelLocation`](SalesChannelLocation.mdx)[]",
"description": "",
"description": "The details of the stock locations related to the sales channel.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannelLocation`](SalesChannelLocation.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "location_id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "sales_channel",
"type": "[`SalesChannel`](SalesChannel.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "sales_channel_id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "metadata",
"type": "``null`` \\| Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -214,17 +141,19 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "sales_channel_id",
"type": "`string`",
"description": "",
"description": "The ID of the Sales Channel",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,571 +6,216 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# ShippingOptionRequirement
A shipping option requirement defines conditions that a Cart must satisfy for the Shipping Option to be available for usage in the Cart.
## Properties
<ParameterTypes parameters={[
{
"name": "amount",
"type": "`number`",
"description": "",
"description": "The amount to compare the Cart subtotal to.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The shipping option requirement's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "shipping_option",
"type": "[`ShippingOption`](ShippingOption.mdx)",
"description": "",
"description": "The details of the shipping option that the requirements belong to.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`ShippingOption`](ShippingOption.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "admin_only",
"type": "`boolean`",
"description": "",
"description": "Flag to indicate if the Shipping Option usage is restricted to admin users.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "amount",
"type": "``null`` \\| `number`",
"description": "",
"description": "The amount to charge for shipping when the Shipping Option price type is `flat_rate`.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "data",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "The data needed for the Fulfillment Provider to identify the Shipping Option.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The shipping option's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the shipping option price include tax",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "is_return",
"type": "`boolean`",
"description": "",
"description": "Flag to indicate if the Shipping Option can be used for Return shipments.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name given to the Shipping Option - this may be displayed to the Customer.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "price_type",
"type": "[`ShippingOptionPriceType`](../enums/ShippingOptionPriceType.mdx)",
"description": "",
"description": "The type of pricing calculation that is used when creatin Shipping Methods from the Shipping Option. Can be `flat_rate` for fixed prices or `calculated` if the Fulfillment Provider can provide price calulations.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "CALCULATED",
"type": "``\"calculated\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
},
{
"name": "FLAT_RATE",
"type": "``\"flat_rate\"``",
"description": "",
"optional": true,
"defaultValue": "",
"children": []
}
]
"expandable": false,
"children": []
},
{
"name": "profile",
"type": "[`ShippingProfile`](ShippingProfile.mdx)",
"description": "",
"description": "The details of the shipping profile that the shipping option belongs to.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`ShippingProfile`](ShippingProfile.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "products",
"type": "[`Product`](Product.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "shipping_options",
"type": "[`ShippingOption`](ShippingOption.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "type",
"type": "[`ShippingProfileType`](../enums/ShippingProfileType.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "profile_id",
"type": "`string`",
"description": "",
"description": "The ID of the Shipping Profile that the shipping option belongs to.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "provider",
"type": "[`FulfillmentProvider`](FulfillmentProvider.mdx)",
"description": "",
"description": "The details of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`FulfillmentProvider`](FulfillmentProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "provider_id",
"type": "`string`",
"description": "",
"description": "The ID of the fulfillment provider that will be used to later to process the shipping method created from this shipping option and its fulfillments.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "region",
"type": "[`Region`](Region.mdx)",
"description": "",
"description": "The details of the region this shipping option can be used in.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`Region`](Region.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "automatic_taxes",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "countries",
"type": "[`Country`](Country.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "currency",
"type": "[`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "currency_code",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "fulfillment_providers",
"type": "[`FulfillmentProvider`](FulfillmentProvider.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "gift_cards_taxable",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "payment_providers",
"type": "[`PaymentProvider`](PaymentProvider.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_code",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_provider",
"type": "[`TaxProvider`](TaxProvider.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_provider_id",
"type": "``null`` \\| `string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_rate",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "tax_rates",
"type": "``null`` \\| [`TaxRate`](TaxRate.mdx)[]",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "region_id",
"type": "`string`",
"description": "",
"description": "The ID of the region this shipping option can be used in.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "requirements",
"type": "[`ShippingOptionRequirement`](ShippingOptionRequirement.mdx)[]",
"description": "",
"description": "The details of the requirements that must be satisfied for the Shipping Option to be available for usage in a Cart.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`ShippingOptionRequirement`](ShippingOptionRequirement.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "amount",
"type": "`number`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "shipping_option",
"type": "[`ShippingOption`](ShippingOption.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "shipping_option_id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "type",
"type": "[`RequirementType`](../enums/RequirementType.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -578,32 +223,36 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "shipping_option_id",
"type": "`string`",
"description": "",
"description": "The ID of the shipping option that the requirements belong to.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "type",
"type": "[`RequirementType`](../enums/RequirementType.mdx)",
"description": "",
"description": "The type of the requirement, this defines how the value will be compared to the Cart's total. `min_subtotal` requirements define the minimum subtotal that is needed for the Shipping Option to be available, while the `max_subtotal` defines the maximum subtotal that the Cart can have for the Shipping Option to be available.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": [
{
"name": "MAX_SUBTOTAL",
"type": "``\"max_subtotal\"``",
"description": "",
"description": "The shipping option can only be applied if the subtotal is less than the requirement's amont.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "MIN_SUBTOTAL",
"type": "``\"min_subtotal\"``",
"description": "",
"description": "The shipping option can only be applied if the subtotal is greater than the requirement's amount.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,50 @@
---
displayed_sidebar: entitiesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# SoftDeletableEntity
Base abstract entity for all entities
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,31 +6,36 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# StagedJob
A staged job resource
## Properties
<ParameterTypes parameters={[
{
"name": "data",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "Data necessary for the job",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "event_name",
"type": "`string`",
"description": "",
"description": "The name of the event",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The staged job's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -39,6 +44,7 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,70 +6,72 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# Store
A store holds the main settings of the commerce shop. By default, only one store is created and used within the Medusa backend. It holds settings related to the name of the store, available currencies, and more.
## Properties
<ParameterTypes parameters={[
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "currencies",
"type": "[`Currency`](Currency.mdx)[]",
"description": "",
"description": "The details of the enabled currencies in the store.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "code",
"type": "`string`",
"description": "",
"description": "The 3 character ISO code for the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the currency prices include tax",
"optional": true,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The written name of the currency",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol",
"type": "`string`",
"description": "",
"description": "The symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol_native",
"type": "`string`",
"description": "",
"description": "The native symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -77,56 +79,55 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "default_currency",
"type": "[`Currency`](Currency.mdx)",
"description": "",
"description": "The details of the store's default currency.",
"optional": false,
"defaultValue": "",
"defaultValue": "usd",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`Currency`](Currency.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "code",
"type": "`string`",
"description": "",
"description": "The 3 character ISO code for the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "includes_tax",
"type": "`boolean`",
"description": "",
"description": "Whether the currency prices include tax",
"optional": true,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"featureFlag": "tax_inclusive_pricing",
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The written name of the currency",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol",
"type": "`string`",
"description": "",
"description": "The symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "symbol_native",
"type": "`string`",
"description": "",
"description": "The native symbol used to indicate the currency.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -134,185 +135,108 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "default_currency_code",
"type": "`string`",
"description": "",
"description": "The three character currency code that is the default of the store.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "default_location_id",
"type": "`string`",
"description": "",
"description": "The location ID the store is associated with.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "default_sales_channel",
"type": "[`SalesChannel`](SalesChannel.mdx)",
"description": "",
"description": "The details of the store's default sales channel.",
"optional": false,
"defaultValue": "",
"expandable": true,
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannel`](SalesChannel.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "description",
"type": "``null`` \\| `string`",
"description": "",
"description": "The description of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The sales channel's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_disabled",
"type": "`boolean`",
"description": "",
"description": "Specify if the sales channel is enabled or disabled.",
"optional": false,
"defaultValue": "",
"defaultValue": "false",
"expandable": false,
"children": []
},
{
"name": "locations",
"type": "[`SalesChannelLocation`](SalesChannelLocation.mdx)[]",
"description": "",
"description": "The details of the stock locations related to the sales channel.",
"optional": false,
"defaultValue": "",
"children": [
{
"name": "constructor",
"type": "() => [`SalesChannelLocation`](SalesChannelLocation.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "location_id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "sales_channel",
"type": "[`SalesChannel`](SalesChannel.mdx)",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "sales_channel_id",
"type": "`string`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
}
]
"expandable": true,
"children": []
},
{
"name": "metadata",
"type": "``null`` \\| Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"optional": false,
"defaultValue": "",
"children": []
},
{
"name": "beforeInsert",
"type": "() => `void`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -320,65 +244,73 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "default_sales_channel_id",
"type": "``null`` \\| `string`",
"description": "",
"description": "The ID of the store's default sales channel.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The store's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "invite_link_template",
"type": "``null`` \\| `string`",
"description": "",
"description": "A template to generate Invite links from",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "``null`` \\| Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "",
"description": "The name of the Store - this may be displayed to the Customer.",
"optional": false,
"defaultValue": "",
"defaultValue": "Medusa Store",
"expandable": false,
"children": []
},
{
"name": "payment_link_template",
"type": "``null`` \\| `string`",
"description": "",
"description": "A template to generate Payment links from. Use {{cart_id}} to include the payment's `cart_id` in the link.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "swap_link_template",
"type": "``null`` \\| `string`",
"description": "",
"description": "A template to generate Swap links from. Use {{cart_id}} to include the Swap's `cart_id` in the link.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
@@ -0,0 +1,77 @@
---
displayed_sidebar: entitiesSidebar
---
import ParameterTypes from "@site/src/components/ParameterTypes"
# TaxLine
A tax line represents the taxes amount applied to a line item.
## Properties
<ParameterTypes parameters={[
{
"name": "code",
"type": "``null`` \\| `string`",
"description": "A code to identify the tax type by",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "The tax line's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "name",
"type": "`string`",
"description": "A human friendly name for the tax",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "rate",
"type": "`number`",
"description": "The numeric rate to charge tax by",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "updated_at",
"type": "`Date`",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />
@@ -6,23 +6,27 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# TaxProvider
A tax provider represents a tax service installed in the Medusa backend, either through a plugin or backend customizations. It holds the tax service's installation status.
## Properties
<ParameterTypes parameters={[
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The ID of the tax provider as given by the tax service.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "is_installed",
"type": "`boolean`",
"description": "",
"description": "Whether the tax service is installed in the current version. If a tax service is no longer installed, the `is_installed` attribute is set to `false`.",
"optional": false,
"defaultValue": "",
"defaultValue": "true",
"expandable": false,
"children": []
}
]} />
File diff suppressed because it is too large. Load diff
File diff suppressed because it is too large. Load diff
@@ -6,71 +6,81 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
# User
A User is an administrator who can manage store settings and data.
## Properties
<ParameterTypes parameters={[
{
"name": "api_token",
"type": "`string`",
"description": "",
"description": "An API token associated with the user.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "created_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was created.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "deleted_at",
"type": "``null`` \\| `Date`",
"description": "",
"description": "The date with timezone at which the resource was deleted.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "email",
"type": "`string`",
"description": "",
"description": "The email of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "first_name",
"type": "`string`",
"description": "",
"description": "The first name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "id",
"type": "`string`",
"description": "",
"description": "The user's ID",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "last_name",
"type": "`string`",
"description": "",
"description": "The last name of the User",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "metadata",
"type": "Record<`string`, `unknown`\\>",
"description": "",
"description": "An optional key-value map with additional details",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
@@ -79,37 +89,42 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
"description": "",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "role",
"type": "[`UserRoles`](../enums/UserRoles.mdx)",
"description": "",
"description": "The user's role. These roles don't provide any different privileges.",
"optional": false,
"defaultValue": "",
"defaultValue": "member",
"expandable": false,
"children": [
{
"name": "ADMIN",
"type": "``\"admin\"``",
"description": "",
"description": "The user is an admin.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "DEVELOPER",
"type": "``\"developer\"``",
"description": "",
"description": "The user is a developer.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
},
{
"name": "MEMBER",
"type": "``\"member\"``",
"description": "",
"description": "The user is a team member.",
"optional": true,
"defaultValue": "",
"expandable": false,
"children": []
}
]
@@ -117,9 +132,10 @@ import ParameterTypes from "@site/src/components/ParameterTypes"
{
"name": "updated_at",
"type": "`Date`",
"description": "",
"description": "The date with timezone at which the resource was updated.",
"optional": false,
"defaultValue": "",
"expandable": false,
"children": []
}
]} />