import TypeList from "@site/src/components/TypeList"

# medusa

## Namespaces

- [&quot;medusa-interfaces&quot;](../medusa/medusa._medusa_interfaces_.mdx)

## Enumerations

- [DefaultPriceType](../medusa/enums/medusa.DefaultPriceType.mdx)
- [BatchJobStatus](../medusa/enums/medusa.BatchJobStatus.mdx)
- [PriceListType](../medusa/enums/medusa.PriceListType.mdx)
- [PriceListStatus](../medusa/enums/medusa.PriceListStatus.mdx)
- [UserRole](../medusa/enums/medusa.UserRole.mdx)
- [PostgresError](../medusa/enums/medusa.PostgresError.mdx)
- [MODULE\_RESOURCE\_TYPE](../medusa/enums/medusa.MODULE_RESOURCE_TYPE.mdx)
- [ProductStatus](../medusa/enums/medusa.ProductStatus.mdx)
- [PriceListStatus](../medusa/enums/medusa.PriceListStatus-1.mdx)
- [PriceListType](../medusa/enums/medusa.PriceListType-1.mdx)

## Classes

- [MedusaError](../medusa/classes/medusa.MedusaError.mdx)
- [AdminPostAnalyticsConfigReq](../medusa/classes/medusa.AdminPostAnalyticsConfigReq.mdx)
- [AdminPostAnalyticsConfigAnalyticsConfigReq](../medusa/classes/medusa.AdminPostAnalyticsConfigAnalyticsConfigReq.mdx)
- [AdminPostAuthReq](../medusa/classes/medusa.AdminPostAuthReq.mdx)
- [AdminPostBatchesReq](../medusa/classes/medusa.AdminPostBatchesReq.mdx)
- [AdminGetBatchPaginationParams](../medusa/classes/medusa.AdminGetBatchPaginationParams.mdx)
- [AdminGetBatchParams](../medusa/classes/medusa.AdminGetBatchParams.mdx)
- [AdminPostProductsToCollectionReq](../medusa/classes/medusa.AdminPostProductsToCollectionReq.mdx)
- [AdminPostCollectionsReq](../medusa/classes/medusa.AdminPostCollectionsReq.mdx)
- [AdminGetCollectionsPaginationParams](../medusa/classes/medusa.AdminGetCollectionsPaginationParams.mdx)
- [AdminGetCollectionsParams](../medusa/classes/medusa.AdminGetCollectionsParams.mdx)
- [AdminDeleteProductsFromCollectionReq](../medusa/classes/medusa.AdminDeleteProductsFromCollectionReq.mdx)
- [AdminPostCollectionsCollectionReq](../medusa/classes/medusa.AdminPostCollectionsCollectionReq.mdx)
- [AdminGetCurrenciesParams](../medusa/classes/medusa.AdminGetCurrenciesParams.mdx)
- [AdminPostCurrenciesCurrencyReq](../medusa/classes/medusa.AdminPostCurrenciesCurrencyReq.mdx)
- [AdminPostCustomerGroupsGroupCustomersBatchReq](../medusa/classes/medusa.AdminPostCustomerGroupsGroupCustomersBatchReq.mdx)
- [AdminPostCustomerGroupsReq](../medusa/classes/medusa.AdminPostCustomerGroupsReq.mdx)
- [AdminDeleteCustomerGroupsGroupCustomerBatchReq](../medusa/classes/medusa.AdminDeleteCustomerGroupsGroupCustomerBatchReq.mdx)
- [AdminGetCustomerGroupsGroupParams](../medusa/classes/medusa.AdminGetCustomerGroupsGroupParams.mdx)
- [AdminGetCustomerGroupsParams](../medusa/classes/medusa.AdminGetCustomerGroupsParams.mdx)
- [AdminPostCustomerGroupsGroupReq](../medusa/classes/medusa.AdminPostCustomerGroupsGroupReq.mdx)
- [AdminPostCustomersReq](../medusa/classes/medusa.AdminPostCustomersReq.mdx)
- [AdminGetCustomersParams](../medusa/classes/medusa.AdminGetCustomersParams.mdx)
- [Group](../medusa/classes/medusa.Group.mdx)
- [AdminPostCustomersCustomerReq](../medusa/classes/medusa.AdminPostCustomersCustomerReq.mdx)
- [AdminPostDiscountsDiscountConditionsConditionBatchReq](../medusa/classes/medusa.AdminPostDiscountsDiscountConditionsConditionBatchReq.mdx)
- [AdminPostDiscountsDiscountConditionsConditionBatchParams](../medusa/classes/medusa.AdminPostDiscountsDiscountConditionsConditionBatchParams.mdx)
- [AdminPostDiscountsDiscountConditions](../medusa/classes/medusa.AdminPostDiscountsDiscountConditions.mdx)
- [AdminPostDiscountsDiscountConditionsParams](../medusa/classes/medusa.AdminPostDiscountsDiscountConditionsParams.mdx)
- [AdminPostDiscountsReq](../medusa/classes/medusa.AdminPostDiscountsReq.mdx)
- [AdminPostDiscountsDiscountRule](../medusa/classes/medusa.AdminPostDiscountsDiscountRule.mdx)
- [AdminCreateCondition](../medusa/classes/medusa.AdminCreateCondition.mdx)
- [AdminPostDiscountsParams](../medusa/classes/medusa.AdminPostDiscountsParams.mdx)
- [AdminPostDiscountsDiscountDynamicCodesReq](../medusa/classes/medusa.AdminPostDiscountsDiscountDynamicCodesReq.mdx)
- [AdminDeleteDiscountsDiscountConditionsConditionParams](../medusa/classes/medusa.AdminDeleteDiscountsDiscountConditionsConditionParams.mdx)
- [AdminDeleteDiscountsDiscountConditionsConditionBatchParams](../medusa/classes/medusa.AdminDeleteDiscountsDiscountConditionsConditionBatchParams.mdx)
- [AdminDeleteDiscountsDiscountConditionsConditionBatchReq](../medusa/classes/medusa.AdminDeleteDiscountsDiscountConditionsConditionBatchReq.mdx)
- [AdminGetDiscountsDiscountConditionsConditionParams](../medusa/classes/medusa.AdminGetDiscountsDiscountConditionsConditionParams.mdx)
- [AdminGetDiscountsDiscountCodeParams](../medusa/classes/medusa.AdminGetDiscountsDiscountCodeParams.mdx)
- [AdminGetDiscountParams](../medusa/classes/medusa.AdminGetDiscountParams.mdx)
- [AdminGetDiscountsParams](../medusa/classes/medusa.AdminGetDiscountsParams.mdx)
- [AdminPostDiscountsDiscountConditionsCondition](../medusa/classes/medusa.AdminPostDiscountsDiscountConditionsCondition.mdx)
- [AdminPostDiscountsDiscountConditionsConditionParams](../medusa/classes/medusa.AdminPostDiscountsDiscountConditionsConditionParams.mdx)
- [AdminPostDiscountsDiscountReq](../medusa/classes/medusa.AdminPostDiscountsDiscountReq.mdx)
- [AdminUpdateDiscountRule](../medusa/classes/medusa.AdminUpdateDiscountRule.mdx)
- [AdminUpsertCondition](../medusa/classes/medusa.AdminUpsertCondition.mdx)
- [AdminPostDiscountsDiscountParams](../medusa/classes/medusa.AdminPostDiscountsDiscountParams.mdx)
- [AdminPostDraftOrdersReq](../medusa/classes/medusa.AdminPostDraftOrdersReq.mdx)
- [ShippingMethod](../medusa/classes/medusa.ShippingMethod.mdx)
- [Discount](../medusa/classes/medusa.Discount.mdx)
- [Item](../medusa/classes/medusa.Item.mdx)
- [AdminPostDraftOrdersDraftOrderLineItemsReq](../medusa/classes/medusa.AdminPostDraftOrdersDraftOrderLineItemsReq.mdx)
- [AdminGetDraftOrdersParams](../medusa/classes/medusa.AdminGetDraftOrdersParams.mdx)
- [AdminPostDraftOrdersDraftOrderReq](../medusa/classes/medusa.AdminPostDraftOrdersDraftOrderReq.mdx)
- [Discount](../medusa/classes/medusa.Discount-1.mdx)
- [AdminPostDraftOrdersDraftOrderLineItemsItemReq](../medusa/classes/medusa.AdminPostDraftOrdersDraftOrderLineItemsItemReq.mdx)
- [AdminPostGiftCardsReq](../medusa/classes/medusa.AdminPostGiftCardsReq.mdx)
- [AdminGetGiftCardsParams](../medusa/classes/medusa.AdminGetGiftCardsParams.mdx)
- [AdminPostGiftCardsGiftCardReq](../medusa/classes/medusa.AdminPostGiftCardsGiftCardReq.mdx)
- [AdminPostInventoryItemsReq](../medusa/classes/medusa.AdminPostInventoryItemsReq.mdx)
- [AdminPostInventoryItemsParams](../medusa/classes/medusa.AdminPostInventoryItemsParams.mdx)
- [AdminPostInventoryItemsItemLocationLevelsReq](../medusa/classes/medusa.AdminPostInventoryItemsItemLocationLevelsReq.mdx)
- [AdminPostInventoryItemsItemLocationLevelsParams](../medusa/classes/medusa.AdminPostInventoryItemsItemLocationLevelsParams.mdx)
- [AdminGetInventoryItemsItemParams](../medusa/classes/medusa.AdminGetInventoryItemsItemParams.mdx)
- [AdminGetInventoryItemsParams](../medusa/classes/medusa.AdminGetInventoryItemsParams.mdx)
- [AdminGetInventoryItemsItemLocationLevelsParams](../medusa/classes/medusa.AdminGetInventoryItemsItemLocationLevelsParams.mdx)
- [AdminPostInventoryItemsInventoryItemReq](../medusa/classes/medusa.AdminPostInventoryItemsInventoryItemReq.mdx)
- [AdminPostInventoryItemsInventoryItemParams](../medusa/classes/medusa.AdminPostInventoryItemsInventoryItemParams.mdx)
- [AdminPostInventoryItemsItemLocationLevelsLevelReq](../medusa/classes/medusa.AdminPostInventoryItemsItemLocationLevelsLevelReq.mdx)
- [AdminPostInventoryItemsItemLocationLevelsLevelParams](../medusa/classes/medusa.AdminPostInventoryItemsItemLocationLevelsLevelParams.mdx)
- [AdminPostInvitesInviteAcceptUserReq](../medusa/classes/medusa.AdminPostInvitesInviteAcceptUserReq.mdx)
- [AdminPostInvitesInviteAcceptReq](../medusa/classes/medusa.AdminPostInvitesInviteAcceptReq.mdx)
- [AdminPostInvitesReq](../medusa/classes/medusa.AdminPostInvitesReq.mdx)
- [AdminPostNotesReq](../medusa/classes/medusa.AdminPostNotesReq.mdx)
- [AdminGetNotesParams](../medusa/classes/medusa.AdminGetNotesParams.mdx)
- [AdminPostNotesNoteReq](../medusa/classes/medusa.AdminPostNotesNoteReq.mdx)
- [AdminGetNotificationsParams](../medusa/classes/medusa.AdminGetNotificationsParams.mdx)
- [AdminPostNotificationsNotificationResendReq](../medusa/classes/medusa.AdminPostNotificationsNotificationResendReq.mdx)
- [AdminPostOrderEditsEditLineItemsReq](../medusa/classes/medusa.AdminPostOrderEditsEditLineItemsReq.mdx)
- [AdminPostOrderEditsReq](../medusa/classes/medusa.AdminPostOrderEditsReq.mdx)
- [GetOrderEditsOrderEditParams](../medusa/classes/medusa.GetOrderEditsOrderEditParams.mdx)
- [GetOrderEditsParams](../medusa/classes/medusa.GetOrderEditsParams.mdx)
- [AdminPostOrderEditsRequestConfirmationReq](../medusa/classes/medusa.AdminPostOrderEditsRequestConfirmationReq.mdx)
- [AdminPostOrderEditsEditLineItemsLineItemReq](../medusa/classes/medusa.AdminPostOrderEditsEditLineItemsLineItemReq.mdx)
- [AdminPostOrderEditsOrderEditReq](../medusa/classes/medusa.AdminPostOrderEditsOrderEditReq.mdx)
- [AdminPostOrdersOrderShippingMethodsReq](../medusa/classes/medusa.AdminPostOrdersOrderShippingMethodsReq.mdx)
- [AdminPostOrdersOrderShippingMethodsParams](../medusa/classes/medusa.AdminPostOrdersOrderShippingMethodsParams.mdx)
- [AdminPostOrdersOrderArchiveParams](../medusa/classes/medusa.AdminPostOrdersOrderArchiveParams.mdx)
- [AdminPostOrdersClaimCancel](../medusa/classes/medusa.AdminPostOrdersClaimCancel.mdx)
- [AdminPostOrdersClaimFulfillmentsCancelParams](../medusa/classes/medusa.AdminPostOrdersClaimFulfillmentsCancelParams.mdx)
- [AdminPostOrdersOrderSwapFulfillementsCancelParams](../medusa/classes/medusa.AdminPostOrdersOrderSwapFulfillementsCancelParams.mdx)
- [AdminPostOrdersOrderFulfillementsCancelParams](../medusa/classes/medusa.AdminPostOrdersOrderFulfillementsCancelParams.mdx)
- [AdminPostOrdersOrderCancel](../medusa/classes/medusa.AdminPostOrdersOrderCancel.mdx)
- [AdminPostOrdersSwapCancelParams](../medusa/classes/medusa.AdminPostOrdersSwapCancelParams.mdx)
- [AdminPostOrdersOrderCaptureParams](../medusa/classes/medusa.AdminPostOrdersOrderCaptureParams.mdx)
- [AdminPostOrdersOrderCompleteParams](../medusa/classes/medusa.AdminPostOrdersOrderCompleteParams.mdx)
- [AdminPostOrdersOrderClaimsClaimShipmentsReq](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimShipmentsReq.mdx)
- [AdminPostOrdersOrderClaimsClaimShipmentsParams](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimShipmentsParams.mdx)
- [AdminPostOrdersOrderClaimsReq](../medusa/classes/medusa.AdminPostOrdersOrderClaimsReq.mdx)
- [ReturnShipping](../medusa/classes/medusa.ReturnShipping.mdx)
- [ShippingMethod](../medusa/classes/medusa.ShippingMethod-1.mdx)
- [Item](../medusa/classes/medusa.Item-1.mdx)
- [AdditionalItem](../medusa/classes/medusa.AdditionalItem.mdx)
- [AdminPostOrdersOrderClaimsParams](../medusa/classes/medusa.AdminPostOrdersOrderClaimsParams.mdx)
- [AdminPostOrdersOrderFulfillmentsReq](../medusa/classes/medusa.AdminPostOrdersOrderFulfillmentsReq.mdx)
- [Item](../medusa/classes/medusa.Item-2.mdx)
- [AdminPostOrdersOrderFulfillmentsParams](../medusa/classes/medusa.AdminPostOrdersOrderFulfillmentsParams.mdx)
- [AdminPostOrdersOrderShipmentReq](../medusa/classes/medusa.AdminPostOrdersOrderShipmentReq.mdx)
- [AdminPostOrdersOrderShipmentParams](../medusa/classes/medusa.AdminPostOrdersOrderShipmentParams.mdx)
- [AdminPostOrdersOrderSwapsSwapShipmentsReq](../medusa/classes/medusa.AdminPostOrdersOrderSwapsSwapShipmentsReq.mdx)
- [AdminPostOrdersOrderSwapsSwapShipmentsParams](../medusa/classes/medusa.AdminPostOrdersOrderSwapsSwapShipmentsParams.mdx)
- [AdminPostOrdersOrderSwapsReq](../medusa/classes/medusa.AdminPostOrdersOrderSwapsReq.mdx)
- [ReturnItem](../medusa/classes/medusa.ReturnItem.mdx)
- [ReturnShipping](../medusa/classes/medusa.ReturnShipping-1.mdx)
- [CustomShippingOption](../medusa/classes/medusa.CustomShippingOption.mdx)
- [AdditionalItem](../medusa/classes/medusa.AdditionalItem-1.mdx)
- [AdminPostOrdersOrderSwapsParams](../medusa/classes/medusa.AdminPostOrdersOrderSwapsParams.mdx)
- [AdminPostOrdersOrderClaimsClaimFulfillmentsReq](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimFulfillmentsReq.mdx)
- [AdminPostOrdersOrderClaimsClaimFulfillmentsParams](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimFulfillmentsParams.mdx)
- [AdminPostOrdersOrderSwapsSwapFulfillmentsReq](../medusa/classes/medusa.AdminPostOrdersOrderSwapsSwapFulfillmentsReq.mdx)
- [AdminPostOrdersOrderSwapsSwapFulfillmentsParams](../medusa/classes/medusa.AdminPostOrdersOrderSwapsSwapFulfillmentsParams.mdx)
- [AdminGetOrdersOrderParams](../medusa/classes/medusa.AdminGetOrdersOrderParams.mdx)
- [AdminGetOrdersParams](../medusa/classes/medusa.AdminGetOrdersParams.mdx)
- [AdminPostOrdersOrderSwapsSwapProcessPaymentParams](../medusa/classes/medusa.AdminPostOrdersOrderSwapsSwapProcessPaymentParams.mdx)
- [AdminPostOrdersOrderRefundsReq](../medusa/classes/medusa.AdminPostOrdersOrderRefundsReq.mdx)
- [AdminPostOrdersOrderRefundsParams](../medusa/classes/medusa.AdminPostOrdersOrderRefundsParams.mdx)
- [AdminPostOrdersOrderReturnsReq](../medusa/classes/medusa.AdminPostOrdersOrderReturnsReq.mdx)
- [ReturnShipping](../medusa/classes/medusa.ReturnShipping-2.mdx)
- [AdminPostOrdersOrderReturnsParams](../medusa/classes/medusa.AdminPostOrdersOrderReturnsParams.mdx)
- [AdminPostOrdersOrderClaimsClaimReq](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimReq.mdx)
- [ShippingMethod](../medusa/classes/medusa.ShippingMethod-2.mdx)
- [Item](../medusa/classes/medusa.Item-3.mdx)
- [Image](../medusa/classes/medusa.Image.mdx)
- [Tag](../medusa/classes/medusa.Tag.mdx)
- [AdminPostOrdersOrderClaimsClaimParams](../medusa/classes/medusa.AdminPostOrdersOrderClaimsClaimParams.mdx)
- [AdminPostOrdersOrderReq](../medusa/classes/medusa.AdminPostOrdersOrderReq.mdx)
- [PaymentMethod](../medusa/classes/medusa.PaymentMethod.mdx)
- [ShippingMethod](../medusa/classes/medusa.ShippingMethod-3.mdx)
- [AdminPostOrdersOrderParams](../medusa/classes/medusa.AdminPostOrdersOrderParams.mdx)
- [AdminGetPaymentCollectionsParams](../medusa/classes/medusa.AdminGetPaymentCollectionsParams.mdx)
- [AdminUpdatePaymentCollectionsReq](../medusa/classes/medusa.AdminUpdatePaymentCollectionsReq.mdx)
- [GetPaymentsParams](../medusa/classes/medusa.GetPaymentsParams.mdx)
- [AdminPostPaymentRefundsReq](../medusa/classes/medusa.AdminPostPaymentRefundsReq.mdx)
- [AdminPostPriceListPricesPricesReq](../medusa/classes/medusa.AdminPostPriceListPricesPricesReq.mdx)
- [CustomerGroup](../medusa/classes/medusa.CustomerGroup.mdx)
- [AdminPostPriceListsPriceListReq](../medusa/classes/medusa.AdminPostPriceListsPriceListReq.mdx)
- [AdminDeletePriceListPricesPricesReq](../medusa/classes/medusa.AdminDeletePriceListPricesPricesReq.mdx)
- [AdminDeletePriceListsPriceListProductsPricesBatchReq](../medusa/classes/medusa.AdminDeletePriceListsPriceListProductsPricesBatchReq.mdx)
- [AdminGetPriceListsPriceListProductsParams](../medusa/classes/medusa.AdminGetPriceListsPriceListProductsParams.mdx)
- [AdminGetPriceListPaginationParams](../medusa/classes/medusa.AdminGetPriceListPaginationParams.mdx)
- [CustomerGroup](../medusa/classes/medusa.CustomerGroup-1.mdx)
- [AdminPostPriceListsPriceListPriceListReq](../medusa/classes/medusa.AdminPostPriceListsPriceListPriceListReq.mdx)
- [AdminPostProductCategoriesCategoryProductsBatchReq](../medusa/classes/medusa.AdminPostProductCategoriesCategoryProductsBatchReq.mdx)
- [AdminPostProductCategoriesCategoryProductsBatchParams](../medusa/classes/medusa.AdminPostProductCategoriesCategoryProductsBatchParams.mdx)
- [AdminPostProductCategoriesReq](../medusa/classes/medusa.AdminPostProductCategoriesReq.mdx)
- [AdminPostProductCategoriesParams](../medusa/classes/medusa.AdminPostProductCategoriesParams.mdx)
- [AdminDeleteProductCategoriesCategoryProductsBatchReq](../medusa/classes/medusa.AdminDeleteProductCategoriesCategoryProductsBatchReq.mdx)
- [AdminDeleteProductCategoriesCategoryProductsBatchParams](../medusa/classes/medusa.AdminDeleteProductCategoriesCategoryProductsBatchParams.mdx)
- [AdminGetProductCategoryParams](../medusa/classes/medusa.AdminGetProductCategoryParams.mdx)
- [AdminGetProductCategoriesParams](../medusa/classes/medusa.AdminGetProductCategoriesParams.mdx)
- [AdminPostProductCategoriesCategoryReq](../medusa/classes/medusa.AdminPostProductCategoriesCategoryReq.mdx)
- [AdminPostProductCategoriesCategoryParams](../medusa/classes/medusa.AdminPostProductCategoriesCategoryParams.mdx)
- [AdminGetProductTagsPaginationParams](../medusa/classes/medusa.AdminGetProductTagsPaginationParams.mdx)
- [AdminGetProductTagsParams](../medusa/classes/medusa.AdminGetProductTagsParams.mdx)
- [AdminGetProductTypesParams](../medusa/classes/medusa.AdminGetProductTypesParams.mdx)
- [AdminPostProductsProductOptionsReq](../medusa/classes/medusa.AdminPostProductsProductOptionsReq.mdx)
- [ProductVariantOptionReq](../medusa/classes/medusa.ProductVariantOptionReq.mdx)
- [ProductOptionReq](../medusa/classes/medusa.ProductOptionReq.mdx)
- [ProductVariantReq](../medusa/classes/medusa.ProductVariantReq.mdx)
- [AdminPostProductsReq](../medusa/classes/medusa.AdminPostProductsReq.mdx)
- [ProductVariantOptionReq](../medusa/classes/medusa.ProductVariantOptionReq-1.mdx)
- [AdminPostProductsProductVariantsReq](../medusa/classes/medusa.AdminPostProductsProductVariantsReq.mdx)
- [AdminGetProductParams](../medusa/classes/medusa.AdminGetProductParams.mdx)
- [AdminGetProductsParams](../medusa/classes/medusa.AdminGetProductsParams.mdx)
- [AdminGetProductsVariantsParams](../medusa/classes/medusa.AdminGetProductsVariantsParams.mdx)
- [AdminPostProductsProductMetadataReq](../medusa/classes/medusa.AdminPostProductsProductMetadataReq.mdx)
- [AdminPostProductsProductOptionsOption](../medusa/classes/medusa.AdminPostProductsProductOptionsOption.mdx)
- [ProductVariantOptionReq](../medusa/classes/medusa.ProductVariantOptionReq-2.mdx)
- [ProductVariantReq](../medusa/classes/medusa.ProductVariantReq-1.mdx)
- [AdminPostProductsProductReq](../medusa/classes/medusa.AdminPostProductsProductReq.mdx)
- [ProductVariantOptionReq](../medusa/classes/medusa.ProductVariantOptionReq-3.mdx)
- [AdminPostProductsProductVariantsVariantReq](../medusa/classes/medusa.AdminPostProductsProductVariantsVariantReq.mdx)
- [AdminPostPublishableApiKeySalesChannelsBatchReq](../medusa/classes/medusa.AdminPostPublishableApiKeySalesChannelsBatchReq.mdx)
- [AdminPostPublishableApiKeysReq](../medusa/classes/medusa.AdminPostPublishableApiKeysReq.mdx)
- [AdminDeletePublishableApiKeySalesChannelsBatchReq](../medusa/classes/medusa.AdminDeletePublishableApiKeySalesChannelsBatchReq.mdx)
- [GetPublishableApiKeySalesChannelsParams](../medusa/classes/medusa.GetPublishableApiKeySalesChannelsParams.mdx)
- [GetPublishableApiKeysParams](../medusa/classes/medusa.GetPublishableApiKeysParams.mdx)
- [AdminPostPublishableApiKeysPublishableApiKeyReq](../medusa/classes/medusa.AdminPostPublishableApiKeysPublishableApiKeyReq.mdx)
- [AdminPostRegionsRegionCountriesReq](../medusa/classes/medusa.AdminPostRegionsRegionCountriesReq.mdx)
- [AdminPostRegionsRegionFulfillmentProvidersReq](../medusa/classes/medusa.AdminPostRegionsRegionFulfillmentProvidersReq.mdx)
- [AdminPostRegionsRegionPaymentProvidersReq](../medusa/classes/medusa.AdminPostRegionsRegionPaymentProvidersReq.mdx)
- [AdminPostRegionsReq](../medusa/classes/medusa.AdminPostRegionsReq.mdx)
- [FulfillmentOption](../medusa/classes/medusa.FulfillmentOption.mdx)
- [AdminGetRegionsRegionFulfillmentOptionsRes](../medusa/classes/medusa.AdminGetRegionsRegionFulfillmentOptionsRes.mdx)
- [AdminGetRegionsParams](../medusa/classes/medusa.AdminGetRegionsParams.mdx)
- [AdminPostRegionsRegionReq](../medusa/classes/medusa.AdminPostRegionsRegionReq.mdx)
- [AdminPostReservationsReq](../medusa/classes/medusa.AdminPostReservationsReq.mdx)
- [AdminGetReservationsParams](../medusa/classes/medusa.AdminGetReservationsParams.mdx)
- [AdminPostReservationsReservationReq](../medusa/classes/medusa.AdminPostReservationsReservationReq.mdx)
- [AdminPostReturnReasonsReq](../medusa/classes/medusa.AdminPostReturnReasonsReq.mdx)
- [AdminPostReturnReasonsReasonReq](../medusa/classes/medusa.AdminPostReturnReasonsReasonReq.mdx)
- [AdminGetReturnsParams](../medusa/classes/medusa.AdminGetReturnsParams.mdx)
- [Item](../medusa/classes/medusa.Item-4.mdx)
- [AdminPostReturnsReturnReceiveReq](../medusa/classes/medusa.AdminPostReturnsReturnReceiveReq.mdx)
- [AdminPostSalesChannelsChannelProductsBatchReq](../medusa/classes/medusa.AdminPostSalesChannelsChannelProductsBatchReq.mdx)
- [AdminPostSalesChannelsChannelStockLocationsReq](../medusa/classes/medusa.AdminPostSalesChannelsChannelStockLocationsReq.mdx)
- [AdminPostSalesChannelsReq](../medusa/classes/medusa.AdminPostSalesChannelsReq.mdx)
- [AdminDeleteSalesChannelsChannelProductsBatchReq](../medusa/classes/medusa.AdminDeleteSalesChannelsChannelProductsBatchReq.mdx)
- [AdminGetSalesChannelsParams](../medusa/classes/medusa.AdminGetSalesChannelsParams.mdx)
- [AdminDeleteSalesChannelsChannelStockLocationsReq](../medusa/classes/medusa.AdminDeleteSalesChannelsChannelStockLocationsReq.mdx)
- [AdminPostSalesChannelsSalesChannelReq](../medusa/classes/medusa.AdminPostSalesChannelsSalesChannelReq.mdx)
- [OptionRequirement](../medusa/classes/medusa.OptionRequirement.mdx)
- [AdminPostShippingOptionsReq](../medusa/classes/medusa.AdminPostShippingOptionsReq.mdx)
- [AdminGetShippingOptionsParams](../medusa/classes/medusa.AdminGetShippingOptionsParams.mdx)
- [OptionRequirement](../medusa/classes/medusa.OptionRequirement-1.mdx)
- [AdminPostShippingOptionsOptionReq](../medusa/classes/medusa.AdminPostShippingOptionsOptionReq.mdx)
- [AdminPostShippingProfilesReq](../medusa/classes/medusa.AdminPostShippingProfilesReq.mdx)
- [AdminPostShippingProfilesProfileReq](../medusa/classes/medusa.AdminPostShippingProfilesProfileReq.mdx)
- [StockLocationAddress](../medusa/classes/medusa.StockLocationAddress.mdx)
- [AdminPostStockLocationsReq](../medusa/classes/medusa.AdminPostStockLocationsReq.mdx)
- [AdminPostStockLocationsParams](../medusa/classes/medusa.AdminPostStockLocationsParams.mdx)
- [AdminGetStockLocationsLocationParams](../medusa/classes/medusa.AdminGetStockLocationsLocationParams.mdx)
- [AdminGetStockLocationsParams](../medusa/classes/medusa.AdminGetStockLocationsParams.mdx)
- [StockLocationAddress](../medusa/classes/medusa.StockLocationAddress-1.mdx)
- [AdminPostStockLocationsLocationReq](../medusa/classes/medusa.AdminPostStockLocationsLocationReq.mdx)
- [AdminPostStockLocationsLocationParams](../medusa/classes/medusa.AdminPostStockLocationsLocationParams.mdx)
- [AdminPostStoreReq](../medusa/classes/medusa.AdminPostStoreReq.mdx)
- [AdminGetSwapsParams](../medusa/classes/medusa.AdminGetSwapsParams.mdx)
- [AdminPostTaxRatesTaxRateProductTypesReq](../medusa/classes/medusa.AdminPostTaxRatesTaxRateProductTypesReq.mdx)
- [AdminPostTaxRatesTaxRateProductTypesParams](../medusa/classes/medusa.AdminPostTaxRatesTaxRateProductTypesParams.mdx)
- [AdminPostTaxRatesTaxRateProductsReq](../medusa/classes/medusa.AdminPostTaxRatesTaxRateProductsReq.mdx)
- [AdminPostTaxRatesTaxRateProductsParams](../medusa/classes/medusa.AdminPostTaxRatesTaxRateProductsParams.mdx)
- [AdminPostTaxRatesTaxRateShippingOptionsReq](../medusa/classes/medusa.AdminPostTaxRatesTaxRateShippingOptionsReq.mdx)
- [AdminPostTaxRatesTaxRateShippingOptionsParams](../medusa/classes/medusa.AdminPostTaxRatesTaxRateShippingOptionsParams.mdx)
- [AdminPostTaxRatesReq](../medusa/classes/medusa.AdminPostTaxRatesReq.mdx)
- [AdminPostTaxRatesParams](../medusa/classes/medusa.AdminPostTaxRatesParams.mdx)
- [AdminGetTaxRatesTaxRateParams](../medusa/classes/medusa.AdminGetTaxRatesTaxRateParams.mdx)
- [AdminGetTaxRatesParams](../medusa/classes/medusa.AdminGetTaxRatesParams.mdx)
- [AdminDeleteTaxRatesTaxRateProductTypesReq](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateProductTypesReq.mdx)
- [AdminDeleteTaxRatesTaxRateProductTypesParams](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateProductTypesParams.mdx)
- [AdminDeleteTaxRatesTaxRateProductsReq](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateProductsReq.mdx)
- [AdminDeleteTaxRatesTaxRateProductsParams](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateProductsParams.mdx)
- [AdminDeleteTaxRatesTaxRateShippingOptionsReq](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateShippingOptionsReq.mdx)
- [AdminDeleteTaxRatesTaxRateShippingOptionsParams](../medusa/classes/medusa.AdminDeleteTaxRatesTaxRateShippingOptionsParams.mdx)
- [AdminPostTaxRatesTaxRateReq](../medusa/classes/medusa.AdminPostTaxRatesTaxRateReq.mdx)
- [AdminPostTaxRatesTaxRateParams](../medusa/classes/medusa.AdminPostTaxRatesTaxRateParams.mdx)
- [IAdminPostUploadsFileReq](../medusa/classes/medusa.IAdminPostUploadsFileReq.mdx)
- [AdminDeleteUploadsReq](../medusa/classes/medusa.AdminDeleteUploadsReq.mdx)
- [AdminPostUploadsDownloadUrlReq](../medusa/classes/medusa.AdminPostUploadsDownloadUrlReq.mdx)
- [AdminCreateUserRequest](../medusa/classes/medusa.AdminCreateUserRequest.mdx)
- [AdminGetUsersParams](../medusa/classes/medusa.AdminGetUsersParams.mdx)
- [AdminResetPasswordTokenRequest](../medusa/classes/medusa.AdminResetPasswordTokenRequest.mdx)
- [AdminResetPasswordRequest](../medusa/classes/medusa.AdminResetPasswordRequest.mdx)
- [AdminUpdateUserRequest](../medusa/classes/medusa.AdminUpdateUserRequest.mdx)
- [AdminGetVariantParams](../medusa/classes/medusa.AdminGetVariantParams.mdx)
- [AdminGetVariantsParams](../medusa/classes/medusa.AdminGetVariantsParams.mdx)
- [StorePostAuthReq](../medusa/classes/medusa.StorePostAuthReq.mdx)
- [StorePostCartsCartShippingMethodReq](../medusa/classes/medusa.StorePostCartsCartShippingMethodReq.mdx)
- [Item](../medusa/classes/medusa.Item-5.mdx)
- [StorePostCartReq](../medusa/classes/medusa.StorePostCartReq.mdx)
- [StorePostCartsCartLineItemsReq](../medusa/classes/medusa.StorePostCartsCartLineItemsReq.mdx)
- [StorePostCartsCartPaymentSessionReq](../medusa/classes/medusa.StorePostCartsCartPaymentSessionReq.mdx)
- [GiftCard](../medusa/classes/medusa.GiftCard.mdx)
- [Discount](../medusa/classes/medusa.Discount-2.mdx)
- [StorePostCartsCartReq](../medusa/classes/medusa.StorePostCartsCartReq.mdx)
- [StorePostCartsCartLineItemsItemReq](../medusa/classes/medusa.StorePostCartsCartLineItemsItemReq.mdx)
- [StorePostCartsCartPaymentSessionUpdateReq](../medusa/classes/medusa.StorePostCartsCartPaymentSessionUpdateReq.mdx)
- [StoreGetCollectionsParams](../medusa/classes/medusa.StoreGetCollectionsParams.mdx)
- [StorePostCustomersCustomerAddressesReq](../medusa/classes/medusa.StorePostCustomersCustomerAddressesReq.mdx)
- [StorePostCustomersReq](../medusa/classes/medusa.StorePostCustomersReq.mdx)
- [StoreGetCustomersCustomerOrdersPaginationParams](../medusa/classes/medusa.StoreGetCustomersCustomerOrdersPaginationParams.mdx)
- [StoreGetCustomersCustomerOrdersParams](../medusa/classes/medusa.StoreGetCustomersCustomerOrdersParams.mdx)
- [StorePostCustomersCustomerPasswordTokenReq](../medusa/classes/medusa.StorePostCustomersCustomerPasswordTokenReq.mdx)
- [StorePostCustomersResetPasswordReq](../medusa/classes/medusa.StorePostCustomersResetPasswordReq.mdx)
- [StorePostCustomersCustomerAddressesAddressReq](../medusa/classes/medusa.StorePostCustomersCustomerAddressesAddressReq.mdx)
- [StorePostCustomersCustomerReq](../medusa/classes/medusa.StorePostCustomersCustomerReq.mdx)
- [StorePostOrderEditsOrderEditDecline](../medusa/classes/medusa.StorePostOrderEditsOrderEditDecline.mdx)
- [StorePostCustomersCustomerAcceptClaimReq](../medusa/classes/medusa.StorePostCustomersCustomerAcceptClaimReq.mdx)
- [ShippingAddressPayload](../medusa/classes/medusa.ShippingAddressPayload.mdx)
- [StoreGetOrdersParams](../medusa/classes/medusa.StoreGetOrdersParams.mdx)
- [StorePostCustomersCustomerOrderClaimReq](../medusa/classes/medusa.StorePostCustomersCustomerOrderClaimReq.mdx)
- [StorePostPaymentCollectionsBatchSessionsAuthorizeReq](../medusa/classes/medusa.StorePostPaymentCollectionsBatchSessionsAuthorizeReq.mdx)
- [StoreGetPaymentCollectionsParams](../medusa/classes/medusa.StoreGetPaymentCollectionsParams.mdx)
- [StorePostPaymentCollectionsSessionsReq](../medusa/classes/medusa.StorePostPaymentCollectionsSessionsReq.mdx)
- [StorePostPaymentCollectionsBatchSessionsReq](../medusa/classes/medusa.StorePostPaymentCollectionsBatchSessionsReq.mdx)
- [StorePaymentCollectionSessionsReq](../medusa/classes/medusa.StorePaymentCollectionSessionsReq.mdx)
- [StoreGetProductCategoriesCategoryParams](../medusa/classes/medusa.StoreGetProductCategoriesCategoryParams.mdx)
- [StoreGetProductCategoriesParams](../medusa/classes/medusa.StoreGetProductCategoriesParams.mdx)
- [StoreGetProductTagsParams](../medusa/classes/medusa.StoreGetProductTagsParams.mdx)
- [StoreGetProductTypesParams](../medusa/classes/medusa.StoreGetProductTypesParams.mdx)
- [StoreGetProductsPaginationParams](../medusa/classes/medusa.StoreGetProductsPaginationParams.mdx)
- [StoreGetProductsParams](../medusa/classes/medusa.StoreGetProductsParams.mdx)
- [StorePostSearchReq](../medusa/classes/medusa.StorePostSearchReq.mdx)
- [StoreGetRegionsRegionParams](../medusa/classes/medusa.StoreGetRegionsRegionParams.mdx)
- [StoreGetRegionsParams](../medusa/classes/medusa.StoreGetRegionsParams.mdx)
- [ReturnShipping](../medusa/classes/medusa.ReturnShipping-3.mdx)
- [Item](../medusa/classes/medusa.Item-6.mdx)
- [StorePostReturnsReq](../medusa/classes/medusa.StorePostReturnsReq.mdx)
- [StoreGetShippingOptionsParams](../medusa/classes/medusa.StoreGetShippingOptionsParams.mdx)
- [Item](../medusa/classes/medusa.Item-7.mdx)
- [AdditionalItem](../medusa/classes/medusa.AdditionalItem-2.mdx)
- [StorePostSwapsReq](../medusa/classes/medusa.StorePostSwapsReq.mdx)
- [StoreGetVariantsVariantParams](../medusa/classes/medusa.StoreGetVariantsVariantParams.mdx)
- [StoreGetVariantsParams](../medusa/classes/medusa.StoreGetVariantsParams.mdx)
- [AbstractBatchJobStrategy](../medusa/classes/medusa.AbstractBatchJobStrategy.mdx)
- [AbstractCartCompletionStrategy](../medusa/classes/medusa.AbstractCartCompletionStrategy.mdx)
- [AbstractFileService](../medusa/classes/medusa.AbstractFileService.mdx)
- [AbstractFulfillmentService](../medusa/classes/medusa.AbstractFulfillmentService.mdx)
- [AbstractNotificationService](../medusa/classes/medusa.AbstractNotificationService.mdx)
- [AbstractPaymentProcessor](../medusa/classes/medusa.AbstractPaymentProcessor.mdx)
- [AbstractPaymentService](../medusa/classes/medusa.AbstractPaymentService.mdx)
- [AbstractPriceSelectionStrategy](../medusa/classes/medusa.AbstractPriceSelectionStrategy.mdx)
- [AbstractTaxCalculationStrategy](../medusa/classes/medusa.AbstractTaxCalculationStrategy.mdx)
- [AbstractTaxService](../medusa/classes/medusa.AbstractTaxService.mdx)
- [TransactionBaseService](../medusa/classes/medusa.TransactionBaseService.mdx)
- [FilterableBatchJobProps](../medusa/classes/medusa.FilterableBatchJobProps.mdx)
- [EmptyQueryParams](../medusa/classes/medusa.EmptyQueryParams.mdx)
- [DateComparisonOperator](../medusa/classes/medusa.DateComparisonOperator.mdx)
- [StringComparisonOperator](../medusa/classes/medusa.StringComparisonOperator.mdx)
- [NumericalComparisonOperator](../medusa/classes/medusa.NumericalComparisonOperator.mdx)
- [AddressPayload](../medusa/classes/medusa.AddressPayload.mdx)
- [AddressCreatePayload](../medusa/classes/medusa.AddressCreatePayload.mdx)
- [FindParams](../medusa/classes/medusa.FindParams.mdx)
- [FindPaginationParams](../medusa/classes/medusa.FindPaginationParams.mdx)
- [FilterableCustomerGroupProps](../medusa/classes/medusa.FilterableCustomerGroupProps.mdx)
- [CustomerGroupsBatchCustomer](../medusa/classes/medusa.CustomerGroupsBatchCustomer.mdx)
- [AdminListCustomerSelector](../medusa/classes/medusa.AdminListCustomerSelector.mdx)
- [AdminGetDiscountsDiscountRuleParams](../medusa/classes/medusa.AdminGetDiscountsDiscountRuleParams.mdx)
- [AdminUpsertConditionsReq](../medusa/classes/medusa.AdminUpsertConditionsReq.mdx)
- [AdminListOrdersSelector](../medusa/classes/medusa.AdminListOrdersSelector.mdx)
- [OrdersReturnItem](../medusa/classes/medusa.OrdersReturnItem.mdx)
- [FilterablePriceListProps](../medusa/classes/medusa.FilterablePriceListProps.mdx)
- [AdminPriceListPricesUpdateReq](../medusa/classes/medusa.AdminPriceListPricesUpdateReq.mdx)
- [AdminPriceListPricesCreateReq](../medusa/classes/medusa.AdminPriceListPricesCreateReq.mdx)
- [PriceSelectionParams](../medusa/classes/medusa.PriceSelectionParams.mdx)
- [AdminPriceSelectionParams](../medusa/classes/medusa.AdminPriceSelectionParams.mdx)
- [AdminProductCategoriesReqBase](../medusa/classes/medusa.AdminProductCategoriesReqBase.mdx)
- [ProductBatchProductCategory](../medusa/classes/medusa.ProductBatchProductCategory.mdx)
- [ProductVariantPricesUpdateReq](../medusa/classes/medusa.ProductVariantPricesUpdateReq.mdx)
- [ProductVariantPricesCreateReq](../medusa/classes/medusa.ProductVariantPricesCreateReq.mdx)
- [FilterableProductProps](../medusa/classes/medusa.FilterableProductProps.mdx)
- [ProductSalesChannelReq](../medusa/classes/medusa.ProductSalesChannelReq.mdx)
- [ProductProductCategoryReq](../medusa/classes/medusa.ProductProductCategoryReq.mdx)
- [ProductTagReq](../medusa/classes/medusa.ProductTagReq.mdx)
- [ProductTypeReq](../medusa/classes/medusa.ProductTypeReq.mdx)
- [ProductBatchSalesChannel](../medusa/classes/medusa.ProductBatchSalesChannel.mdx)

## Interfaces

- [IBatchJobStrategy](../medusa/interfaces/medusa.IBatchJobStrategy.mdx)
- [ICartCompletionStrategy](../medusa/interfaces/medusa.ICartCompletionStrategy.mdx)
- [IFileService](../medusa/interfaces/medusa.IFileService.mdx)
- [FulfillmentService](../medusa/interfaces/medusa.FulfillmentService.mdx)
- [ReturnedData](../medusa/interfaces/medusa.ReturnedData.mdx)
- [INotificationService](../medusa/interfaces/medusa.INotificationService.mdx)
- [PaymentProcessorContext](../medusa/interfaces/medusa.PaymentProcessorContext.mdx)
- [PaymentProcessorSessionResponse](../medusa/interfaces/medusa.PaymentProcessorSessionResponse.mdx)
- [PaymentProcessorError](../medusa/interfaces/medusa.PaymentProcessorError.mdx)
- [PaymentProcessor](../medusa/interfaces/medusa.PaymentProcessor.mdx)
- [PaymentService](../medusa/interfaces/medusa.PaymentService.mdx)
- [IPriceSelectionStrategy](../medusa/interfaces/medusa.IPriceSelectionStrategy.mdx)
- [PriceSelectionContext](../medusa/interfaces/medusa.PriceSelectionContext.mdx)
- [PriceSelectionResult](../medusa/interfaces/medusa.PriceSelectionResult.mdx)
- [ITaxCalculationStrategy](../medusa/interfaces/medusa.ITaxCalculationStrategy.mdx)
- [ITaxService](../medusa/interfaces/medusa.ITaxService.mdx)
- [FindConfig](../medusa/interfaces/medusa.FindConfig.mdx)
- [CustomFindOptions](../medusa/interfaces/medusa.CustomFindOptions.mdx)
- [RequestQueryFields](../medusa/interfaces/medusa.RequestQueryFields.mdx)
- [PaginatedResponse](../medusa/interfaces/medusa.PaginatedResponse.mdx)
- [DeleteResponse](../medusa/interfaces/medusa.DeleteResponse.mdx)
- [MedusaRequest](../medusa/interfaces/medusa.MedusaRequest.mdx)
- [SubscriberContext](../medusa/interfaces/medusa.SubscriberContext.mdx)
- [SessionOptions](../medusa/interfaces/medusa.SessionOptions.mdx)
- [HttpCompressionOptions](../medusa/interfaces/medusa.HttpCompressionOptions.mdx)
- [ProjectConfigOptions](../medusa/interfaces/medusa.ProjectConfigOptions.mdx)
- [ConfigModule](../medusa/interfaces/medusa.ConfigModule-1.mdx)
- [FileServiceUploadResult](../medusa/interfaces/medusa.FileServiceUploadResult.mdx)
- [FileServiceGetUploadStreamResult](../medusa/interfaces/medusa.FileServiceGetUploadStreamResult.mdx)
- [GetUploadedFileType](../medusa/interfaces/medusa.GetUploadedFileType.mdx)
- [DeleteFileType](../medusa/interfaces/medusa.DeleteFileType.mdx)
- [UploadStreamDescriptorType](../medusa/interfaces/medusa.UploadStreamDescriptorType.mdx)
- [JoinerServiceConfigAlias](../medusa/interfaces/medusa.JoinerServiceConfigAlias.mdx)
- [JoinerServiceConfig](../medusa/interfaces/medusa.JoinerServiceConfig.mdx)
- [Logger](../medusa/interfaces/medusa.Logger-1.mdx)
- [ProductDTO](../medusa/interfaces/medusa.ProductDTO.mdx)
- [ProductVariantDTO](../medusa/interfaces/medusa.ProductVariantDTO.mdx)
- [ProductCategoryDTO](../medusa/interfaces/medusa.ProductCategoryDTO.mdx)
- [ProductTagDTO](../medusa/interfaces/medusa.ProductTagDTO.mdx)
- [ProductCollectionDTO](../medusa/interfaces/medusa.ProductCollectionDTO.mdx)
- [ProductTypeDTO](../medusa/interfaces/medusa.ProductTypeDTO.mdx)
- [ProductOptionDTO](../medusa/interfaces/medusa.ProductOptionDTO.mdx)
- [ProductImageDTO](../medusa/interfaces/medusa.ProductImageDTO.mdx)
- [ProductOptionValueDTO](../medusa/interfaces/medusa.ProductOptionValueDTO.mdx)
- [ITransactionBaseService](../medusa/interfaces/medusa.ITransactionBaseService.mdx)

## Type Aliases

- [MedusaContainer](../medusa/types/medusa.MedusaContainer.mdx)
- [handler](../medusa/types/medusa.handler.mdx)
- [AdminAnalyticsConfigRes](../medusa/types/medusa.AdminAnalyticsConfigRes.mdx)
- [AdminAnalyticsConfigDeleteRes](../medusa/types/medusa.AdminAnalyticsConfigDeleteRes.mdx)
- [AdminAuthRes](../medusa/types/medusa.AdminAuthRes.mdx)
- [AdminBearerAuthRes](../medusa/types/medusa.AdminBearerAuthRes.mdx)
- [AdminBatchJobRes](../medusa/types/medusa.AdminBatchJobRes.mdx)
- [AdminBatchJobListRes](../medusa/types/medusa.AdminBatchJobListRes.mdx)
- [AdminCollectionsListRes](../medusa/types/medusa.AdminCollectionsListRes.mdx)
- [AdminCollectionsDeleteRes](../medusa/types/medusa.AdminCollectionsDeleteRes.mdx)
- [AdminDeleteProductsFromCollectionRes](../medusa/types/medusa.AdminDeleteProductsFromCollectionRes.mdx)
- [AdminCollectionsRes](../medusa/types/medusa.AdminCollectionsRes.mdx)
- [AdminCurrenciesListRes](../medusa/types/medusa.AdminCurrenciesListRes.mdx)
- [AdminCurrenciesRes](../medusa/types/medusa.AdminCurrenciesRes.mdx)
- [AdminCustomerGroupsRes](../medusa/types/medusa.AdminCustomerGroupsRes.mdx)
- [AdminCustomerGroupsDeleteRes](../medusa/types/medusa.AdminCustomerGroupsDeleteRes.mdx)
- [AdminCustomerGroupsListRes](../medusa/types/medusa.AdminCustomerGroupsListRes.mdx)
- [AdminCustomersRes](../medusa/types/medusa.AdminCustomersRes.mdx)
- [AdminCustomersListRes](../medusa/types/medusa.AdminCustomersListRes.mdx)
- [AdminDiscountsRes](../medusa/types/medusa.AdminDiscountsRes.mdx)
- [AdminDiscountConditionsRes](../medusa/types/medusa.AdminDiscountConditionsRes.mdx)
- [AdminDiscountsDeleteRes](../medusa/types/medusa.AdminDiscountsDeleteRes.mdx)
- [AdminDiscountConditionsDeleteRes](../medusa/types/medusa.AdminDiscountConditionsDeleteRes.mdx)
- [AdminDiscountsListRes](../medusa/types/medusa.AdminDiscountsListRes.mdx)
- [AdminPostDraftOrdersDraftOrderRegisterPaymentRes](../medusa/types/medusa.AdminPostDraftOrdersDraftOrderRegisterPaymentRes.mdx)
- [AdminDraftOrdersRes](../medusa/types/medusa.AdminDraftOrdersRes.mdx)
- [AdminDraftOrdersDeleteRes](../medusa/types/medusa.AdminDraftOrdersDeleteRes.mdx)
- [AdminDraftOrdersListRes](../medusa/types/medusa.AdminDraftOrdersListRes.mdx)
- [AdminGiftCardsRes](../medusa/types/medusa.AdminGiftCardsRes.mdx)
- [AdminGiftCardsDeleteRes](../medusa/types/medusa.AdminGiftCardsDeleteRes.mdx)
- [AdminGiftCardsListRes](../medusa/types/medusa.AdminGiftCardsListRes.mdx)
- [AdminInventoryItemsRes](../medusa/types/medusa.AdminInventoryItemsRes.mdx)
- [AdminInventoryItemsDeleteRes](../medusa/types/medusa.AdminInventoryItemsDeleteRes.mdx)
- [AdminInventoryItemsListRes](../medusa/types/medusa.AdminInventoryItemsListRes.mdx)
- [DecoratedInventoryItemDTO](../medusa/types/medusa.DecoratedInventoryItemDTO.mdx)
- [AdminInventoryItemsListWithVariantsAndLocationLevelsRes](../medusa/types/medusa.AdminInventoryItemsListWithVariantsAndLocationLevelsRes.mdx)
- [AdminInventoryItemsLocationLevelsRes](../medusa/types/medusa.AdminInventoryItemsLocationLevelsRes.mdx)
- [AdminInviteDeleteRes](../medusa/types/medusa.AdminInviteDeleteRes.mdx)
- [AdminListInvitesRes](../medusa/types/medusa.AdminListInvitesRes.mdx)
- [AdminNotesRes](../medusa/types/medusa.AdminNotesRes.mdx)
- [AdminNotesDeleteRes](../medusa/types/medusa.AdminNotesDeleteRes.mdx)
- [AdminNotesListRes](../medusa/types/medusa.AdminNotesListRes.mdx)
- [AdminNotificationsListRes](../medusa/types/medusa.AdminNotificationsListRes.mdx)
- [AdminNotificationsRes](../medusa/types/medusa.AdminNotificationsRes.mdx)
- [AdminOrderEditsRes](../medusa/types/medusa.AdminOrderEditsRes.mdx)
- [AdminOrderEditsListRes](../medusa/types/medusa.AdminOrderEditsListRes.mdx)
- [AdminOrderEditDeleteRes](../medusa/types/medusa.AdminOrderEditDeleteRes.mdx)
- [AdminOrderEditItemChangeDeleteRes](../medusa/types/medusa.AdminOrderEditItemChangeDeleteRes.mdx)
- [AdminOrdersRes](../medusa/types/medusa.AdminOrdersRes.mdx)
- [AdminOrdersListRes](../medusa/types/medusa.AdminOrdersListRes.mdx)
- [AdminPaymentCollectionsRes](../medusa/types/medusa.AdminPaymentCollectionsRes.mdx)
- [AdminPaymentCollectionDeleteRes](../medusa/types/medusa.AdminPaymentCollectionDeleteRes.mdx)
- [AdminPaymentRes](../medusa/types/medusa.AdminPaymentRes.mdx)
- [AdminRefundRes](../medusa/types/medusa.AdminRefundRes.mdx)
- [AdminPriceListRes](../medusa/types/medusa.AdminPriceListRes.mdx)
- [AdminPriceListDeleteBatchRes](../medusa/types/medusa.AdminPriceListDeleteBatchRes.mdx)
- [AdminPriceListDeleteProductPricesRes](../medusa/types/medusa.AdminPriceListDeleteProductPricesRes.mdx)
- [AdminPriceListDeleteVariantPricesRes](../medusa/types/medusa.AdminPriceListDeleteVariantPricesRes.mdx)
- [AdminPriceListDeleteRes](../medusa/types/medusa.AdminPriceListDeleteRes.mdx)
- [AdminPriceListsListRes](../medusa/types/medusa.AdminPriceListsListRes.mdx)
- [AdminPriceListsProductsListRes](../medusa/types/medusa.AdminPriceListsProductsListRes.mdx)
- [AdminProductCategoriesCategoryRes](../medusa/types/medusa.AdminProductCategoriesCategoryRes.mdx)
- [AdminProductCategoriesCategoryDeleteRes](../medusa/types/medusa.AdminProductCategoriesCategoryDeleteRes.mdx)
- [AdminProductCategoriesListRes](../medusa/types/medusa.AdminProductCategoriesListRes.mdx)
- [AdminProductTagsListRes](../medusa/types/medusa.AdminProductTagsListRes.mdx)
- [AdminProductTypesListRes](../medusa/types/medusa.AdminProductTypesListRes.mdx)
- [AdminProductsDeleteOptionRes](../medusa/types/medusa.AdminProductsDeleteOptionRes.mdx)
- [AdminProductsDeleteVariantRes](../medusa/types/medusa.AdminProductsDeleteVariantRes.mdx)
- [AdminProductsDeleteRes](../medusa/types/medusa.AdminProductsDeleteRes.mdx)
- [AdminProductsListRes](../medusa/types/medusa.AdminProductsListRes.mdx)
- [AdminProductsListVariantsRes](../medusa/types/medusa.AdminProductsListVariantsRes.mdx)
- [AdminProductsListTypesRes](../medusa/types/medusa.AdminProductsListTypesRes.mdx)
- [AdminProductsListTagsRes](../medusa/types/medusa.AdminProductsListTagsRes.mdx)
- [AdminProductsRes](../medusa/types/medusa.AdminProductsRes.mdx)
- [AdminPublishableApiKeysRes](../medusa/types/medusa.AdminPublishableApiKeysRes.mdx)
- [AdminPublishableApiKeysListRes](../medusa/types/medusa.AdminPublishableApiKeysListRes.mdx)
- [AdminPublishableApiKeyDeleteRes](../medusa/types/medusa.AdminPublishableApiKeyDeleteRes.mdx)
- [AdminPublishableApiKeysListSalesChannelsRes](../medusa/types/medusa.AdminPublishableApiKeysListSalesChannelsRes.mdx)
- [AdminRegionsRes](../medusa/types/medusa.AdminRegionsRes.mdx)
- [AdminRegionsListRes](../medusa/types/medusa.AdminRegionsListRes.mdx)
- [AdminRegionsDeleteRes](../medusa/types/medusa.AdminRegionsDeleteRes.mdx)
- [AdminReservationsRes](../medusa/types/medusa.AdminReservationsRes.mdx)
- [ExtendedReservationItem](../medusa/types/medusa.ExtendedReservationItem.mdx)
- [AdminReservationsListRes](../medusa/types/medusa.AdminReservationsListRes.mdx)
- [AdminReservationsDeleteRes](../medusa/types/medusa.AdminReservationsDeleteRes.mdx)
- [AdminReturnReasonsRes](../medusa/types/medusa.AdminReturnReasonsRes.mdx)
- [AdminReturnReasonsListRes](../medusa/types/medusa.AdminReturnReasonsListRes.mdx)
- [AdminReturnReasonsDeleteRes](../medusa/types/medusa.AdminReturnReasonsDeleteRes.mdx)
- [AdminReturnsCancelRes](../medusa/types/medusa.AdminReturnsCancelRes.mdx)
- [AdminReturnsListRes](../medusa/types/medusa.AdminReturnsListRes.mdx)
- [AdminReturnsRes](../medusa/types/medusa.AdminReturnsRes.mdx)
- [AdminSalesChannelsRes](../medusa/types/medusa.AdminSalesChannelsRes.mdx)
- [AdminSalesChannelsDeleteRes](../medusa/types/medusa.AdminSalesChannelsDeleteRes.mdx)
- [AdminSalesChannelsDeleteLocationRes](../medusa/types/medusa.AdminSalesChannelsDeleteLocationRes.mdx)
- [AdminSalesChannelsListRes](../medusa/types/medusa.AdminSalesChannelsListRes.mdx)
- [AdminShippingOptionsListRes](../medusa/types/medusa.AdminShippingOptionsListRes.mdx)
- [AdminShippingOptionsRes](../medusa/types/medusa.AdminShippingOptionsRes.mdx)
- [AdminShippingOptionsDeleteRes](../medusa/types/medusa.AdminShippingOptionsDeleteRes.mdx)
- [AdminDeleteShippingProfileRes](../medusa/types/medusa.AdminDeleteShippingProfileRes.mdx)
- [AdminShippingProfilesRes](../medusa/types/medusa.AdminShippingProfilesRes.mdx)
- [AdminShippingProfilesListRes](../medusa/types/medusa.AdminShippingProfilesListRes.mdx)
- [AdminStockLocationsDeleteRes](../medusa/types/medusa.AdminStockLocationsDeleteRes.mdx)
- [AdminStockLocationsRes](../medusa/types/medusa.AdminStockLocationsRes.mdx)
- [AdminStockLocationsListRes](../medusa/types/medusa.AdminStockLocationsListRes.mdx)
- [AdminExtendedStoresRes](../medusa/types/medusa.AdminExtendedStoresRes.mdx)
- [AdminStoresRes](../medusa/types/medusa.AdminStoresRes.mdx)
- [AdminTaxProvidersList](../medusa/types/medusa.AdminTaxProvidersList.mdx)
- [AdminPaymentProvidersList](../medusa/types/medusa.AdminPaymentProvidersList.mdx)
- [AdminSwapsListRes](../medusa/types/medusa.AdminSwapsListRes.mdx)
- [AdminSwapsRes](../medusa/types/medusa.AdminSwapsRes.mdx)
- [AdminTaxRatesDeleteRes](../medusa/types/medusa.AdminTaxRatesDeleteRes.mdx)
- [AdminTaxRatesListRes](../medusa/types/medusa.AdminTaxRatesListRes.mdx)
- [AdminTaxRatesRes](../medusa/types/medusa.AdminTaxRatesRes.mdx)
- [AdminUploadsRes](../medusa/types/medusa.AdminUploadsRes.mdx)
- [AdminDeleteUploadsRes](../medusa/types/medusa.AdminDeleteUploadsRes.mdx)
- [AdminUploadsDownloadUrlRes](../medusa/types/medusa.AdminUploadsDownloadUrlRes.mdx)
- [AdminUserRes](../medusa/types/medusa.AdminUserRes.mdx)
- [AdminUsersListRes](../medusa/types/medusa.AdminUsersListRes.mdx)
- [AdminDeleteUserRes](../medusa/types/medusa.AdminDeleteUserRes.mdx)
- [payload](../medusa/types/medusa.payload.mdx)
- [LevelWithAvailability](../medusa/types/medusa.LevelWithAvailability.mdx)
- [ResponseInventoryItem](../medusa/types/medusa.ResponseInventoryItem.mdx)
- [VariantInventory](../medusa/types/medusa.VariantInventory.mdx)
- [AdminGetVariantsVariantInventoryRes](../medusa/types/medusa.AdminGetVariantsVariantInventoryRes.mdx)
- [AdminVariantsListRes](../medusa/types/medusa.AdminVariantsListRes.mdx)
- [AdminVariantsRes](../medusa/types/medusa.AdminVariantsRes.mdx)
- [StoreAuthRes](../medusa/types/medusa.StoreAuthRes.mdx)
- [StoreBearerAuthRes](../medusa/types/medusa.StoreBearerAuthRes.mdx)
- [StoreGetAuthEmailRes](../medusa/types/medusa.StoreGetAuthEmailRes.mdx)
- [StoreCartsRes](../medusa/types/medusa.StoreCartsRes.mdx)
- [StoreCompleteCartRes](../medusa/types/medusa.StoreCompleteCartRes.mdx)
- [StoreCollectionsListRes](../medusa/types/medusa.StoreCollectionsListRes.mdx)
- [StoreCollectionsRes](../medusa/types/medusa.StoreCollectionsRes.mdx)
- [StoreCustomersRes](../medusa/types/medusa.StoreCustomersRes.mdx)
- [StoreCustomersResetPasswordRes](../medusa/types/medusa.StoreCustomersResetPasswordRes.mdx)
- [StoreCustomersListOrdersRes](../medusa/types/medusa.StoreCustomersListOrdersRes.mdx)
- [StoreCustomersListPaymentMethodsRes](../medusa/types/medusa.StoreCustomersListPaymentMethodsRes.mdx)
- [StoreGiftCardsRes](../medusa/types/medusa.StoreGiftCardsRes.mdx)
- [StoreOrderEditsRes](../medusa/types/medusa.StoreOrderEditsRes.mdx)
- [StoreOrdersRes](../medusa/types/medusa.StoreOrdersRes.mdx)
- [StorePaymentCollectionsRes](../medusa/types/medusa.StorePaymentCollectionsRes.mdx)
- [StorePaymentCollectionsSessionRes](../medusa/types/medusa.StorePaymentCollectionsSessionRes.mdx)
- [StoreGetProductCategoriesCategoryRes](../medusa/types/medusa.StoreGetProductCategoriesCategoryRes.mdx)
- [StoreGetProductCategoriesRes](../medusa/types/medusa.StoreGetProductCategoriesRes.mdx)
- [StoreProductTagsListRes](../medusa/types/medusa.StoreProductTagsListRes.mdx)
- [StoreProductTypesListRes](../medusa/types/medusa.StoreProductTypesListRes.mdx)
- [StoreProductsRes](../medusa/types/medusa.StoreProductsRes.mdx)
- [StorePostSearchRes](../medusa/types/medusa.StorePostSearchRes.mdx)
- [StoreProductsListRes](../medusa/types/medusa.StoreProductsListRes.mdx)
- [StoreRegionsListRes](../medusa/types/medusa.StoreRegionsListRes.mdx)
- [StoreRegionsRes](../medusa/types/medusa.StoreRegionsRes.mdx)
- [StoreReturnReasonsListRes](../medusa/types/medusa.StoreReturnReasonsListRes.mdx)
- [StoreReturnReasonsRes](../medusa/types/medusa.StoreReturnReasonsRes.mdx)
- [StoreReturnsRes](../medusa/types/medusa.StoreReturnsRes.mdx)
- [StoreShippingOptionsListRes](../medusa/types/medusa.StoreShippingOptionsListRes.mdx)
- [StoreCartShippingOptionsListRes](../medusa/types/medusa.StoreCartShippingOptionsListRes.mdx)
- [StoreSwapsRes](../medusa/types/medusa.StoreSwapsRes.mdx)
- [StoreVariantsRes](../medusa/types/medusa.StoreVariantsRes.mdx)
- [StoreVariantsListRes](../medusa/types/medusa.StoreVariantsListRes.mdx)
- [CartCompletionResponse](../medusa/types/medusa.CartCompletionResponse.mdx)
- [FulfillmentProviderData](../medusa/types/medusa.FulfillmentProviderData.mdx)
- [ShippingOptionData](../medusa/types/medusa.ShippingOptionData.mdx)
- [ShippingMethodData](../medusa/types/medusa.ShippingMethodData.mdx)
- [Data](../medusa/types/medusa.Data.mdx)
- [PaymentData](../medusa/types/medusa.PaymentData.mdx)
- [PaymentSessionData](../medusa/types/medusa.PaymentSessionData.mdx)
- [PaymentContext](../medusa/types/medusa.PaymentContext.mdx)
- [PaymentSessionResponse](../medusa/types/medusa.PaymentSessionResponse.mdx)
- [PriceType](../medusa/types/medusa.PriceType.mdx)
- [ShippingTaxCalculationLine](../medusa/types/medusa.ShippingTaxCalculationLine.mdx)
- [ItemTaxCalculationLine](../medusa/types/medusa.ItemTaxCalculationLine.mdx)
- [TaxCalculationContext](../medusa/types/medusa.TaxCalculationContext.mdx)
- [RouteVerb](../medusa/types/medusa.RouteVerb.mdx)
- [MiddlewareVerb](../medusa/types/medusa.MiddlewareVerb.mdx)
- [MiddlewareFunction](../medusa/types/medusa.MiddlewareFunction.mdx)
- [MedusaErrorHandlerFunction](../medusa/types/medusa.MedusaErrorHandlerFunction.mdx)
- [ParserConfig](../medusa/types/medusa.ParserConfig.mdx)
- [MiddlewareRoute](../medusa/types/medusa.MiddlewareRoute.mdx)
- [MiddlewaresConfig](../medusa/types/medusa.MiddlewaresConfig.mdx)
- [BatchJobUpdateProps](../medusa/types/medusa.BatchJobUpdateProps.mdx)
- [CreateBatchJobInput](../medusa/types/medusa.CreateBatchJobInput.mdx)
- [BatchJobResultError](../medusa/types/medusa.BatchJobResultError.mdx)
- [BatchJobResultStatDescriptor](../medusa/types/medusa.BatchJobResultStatDescriptor.mdx)
- [BatchJobCreateProps](../medusa/types/medusa.BatchJobCreateProps.mdx)
- [WithRequiredProperty](../medusa/types/medusa.WithRequiredProperty.mdx)
- [PartialPick](../medusa/types/medusa.PartialPick.mdx)
- [Writable](../medusa/types/medusa.Writable.mdx)
- [ExtendedFindConfig](../medusa/types/medusa.ExtendedFindConfig.mdx)
- [QuerySelector](../medusa/types/medusa.QuerySelector.mdx)
- [TreeQuerySelector](../medusa/types/medusa.TreeQuerySelector.mdx)
- [InnerSelector](../medusa/types/medusa.InnerSelector.mdx)
- [Selector](../medusa/types/medusa.Selector.mdx)
- [TotalField](../medusa/types/medusa.TotalField.mdx)
- [QueryConfig](../medusa/types/medusa.QueryConfig.mdx)
- [FeatureFlagsResponse](../medusa/types/medusa.FeatureFlagsResponse.mdx)
- [CreateReturnType](../medusa/types/medusa.CreateReturnType.mdx)
- [ExtendedRequest](../medusa/types/medusa.ExtendedRequest.mdx)
- [ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)
- [MedusaContainer](../medusa/types/medusa.MedusaContainer-1.mdx)
- [Logger](../medusa/types/medusa.Logger.mdx)
- [Constructor](../medusa/types/medusa.Constructor.mdx)
- [ConfigModule](../medusa/types/medusa.ConfigModule.mdx)
- [CreatePriceListInput](../medusa/types/medusa.CreatePriceListInput.mdx)
- [UpdatePriceListInput](../medusa/types/medusa.UpdatePriceListInput.mdx)
- [PriceListPriceUpdateInput](../medusa/types/medusa.PriceListPriceUpdateInput.mdx)
- [PriceListPriceCreateInput](../medusa/types/medusa.PriceListPriceCreateInput.mdx)
- [PriceListLoadConfig](../medusa/types/medusa.PriceListLoadConfig.mdx)
- [ProductVariantPricing](../medusa/types/medusa.ProductVariantPricing.mdx)
- [TaxedPricing](../medusa/types/medusa.TaxedPricing.mdx)
- [ShippingOptionPricing](../medusa/types/medusa.ShippingOptionPricing.mdx)
- [PricedShippingOption](../medusa/types/medusa.PricedShippingOption.mdx)
- [PricedVariant](../medusa/types/medusa.PricedVariant.mdx)
- [PricedProduct](../medusa/types/medusa.PricedProduct.mdx)
- [RequestContext](../medusa/types/medusa.RequestContext.mdx)
- [MedusaResponse](../medusa/types/medusa.MedusaResponse.mdx)
- [MedusaNextFunction](../medusa/types/medusa.MedusaNextFunction.mdx)
- [MedusaRequestHandler](../medusa/types/medusa.MedusaRequestHandler.mdx)
- [ScheduledJobConfig](../medusa/types/medusa.ScheduledJobConfig.mdx)
- [ScheduledJobArgs](../medusa/types/medusa.ScheduledJobArgs.mdx)
- [ModulesResponse](../medusa/types/medusa.ModulesResponse.mdx)
- [ExtendedStoreDTO](../medusa/types/medusa.ExtendedStoreDTO.mdx)
- [SubscriberConfig](../medusa/types/medusa.SubscriberConfig.mdx)
- [SubscriberArgs](../medusa/types/medusa.SubscriberArgs.mdx)
- [TaxServiceRate](../medusa/types/medusa.TaxServiceRate.mdx)
- [ProviderShippingMethodTaxLine](../medusa/types/medusa.ProviderShippingMethodTaxLine.mdx)
- [ProviderLineItemTaxLine](../medusa/types/medusa.ProviderLineItemTaxLine.mdx)
- [ProviderTaxLine](../medusa/types/medusa.ProviderTaxLine.mdx)
- [GiftCardAllocation](../medusa/types/medusa.GiftCardAllocation.mdx)
- [DiscountAllocation](../medusa/types/medusa.DiscountAllocation.mdx)
- [LineAllocationsMap](../medusa/types/medusa.LineAllocationsMap.mdx)
- [PaginatedResponse](../medusa/types/medusa.PaginatedResponse-1.mdx)
- [DeleteResponse](../medusa/types/medusa.DeleteResponse-1.mdx)
- [MedusaContainer](../medusa/types/medusa.MedusaContainer-2.mdx)
- [InventoryItemDTO](../medusa/types/medusa.InventoryItemDTO.mdx)
- [ReservationItemDTO](../medusa/types/medusa.ReservationItemDTO.mdx)
- [InventoryLevelDTO](../medusa/types/medusa.InventoryLevelDTO.mdx)
- [JoinerRelationship](../medusa/types/medusa.JoinerRelationship.mdx)
- [Constructor](../medusa/types/medusa.Constructor-1.mdx)
- [InternalModuleDeclaration](../medusa/types/medusa.InternalModuleDeclaration.mdx)
- [ExternalModuleDeclaration](../medusa/types/medusa.ExternalModuleDeclaration.mdx)
- [ModuleDefinition](../medusa/types/medusa.ModuleDefinition.mdx)
- [LoaderOptions](../medusa/types/medusa.LoaderOptions.mdx)
- [ModuleLoaderFunction](../medusa/types/medusa.ModuleLoaderFunction.mdx)
- [ModulesResponse](../medusa/types/medusa.ModulesResponse-1.mdx)
- [ModuleJoinerConfig](../medusa/types/medusa.ModuleJoinerConfig.mdx)
- [ModuleJoinerRelationship](../medusa/types/medusa.ModuleJoinerRelationship.mdx)
- [ModuleExports](../medusa/types/medusa.ModuleExports.mdx)
- [StockLocationAddressDTO](../medusa/types/medusa.StockLocationAddressDTO.mdx)
- [StockLocationDTO](../medusa/types/medusa.StockLocationDTO.mdx)
- [StockLocationExpandedDTO](../medusa/types/medusa.StockLocationExpandedDTO.mdx)

___

## Enumeration Members

### DEFAULT

 **DEFAULT**: `"default"`

The `calculatedPrice` is the original price.

### INTERNAL

 **INTERNAL**: `"internal"`

### EXTERNAL

 **EXTERNAL**: `"external"`

___

## Variables

### defaultAdminBatchFields

 `Const` **defaultAdminBatchFields**: `string`[]

### defaultAdminCollectionsFields

 `Const` **defaultAdminCollectionsFields**: `string`[]

### defaultAdminCollectionsRelations

 `Const` **defaultAdminCollectionsRelations**: `string`[]

### defaultAdminCustomerGroupsRelations

 `Const` **defaultAdminCustomerGroupsRelations**: `never`[] = `[]`

### defaultAdminCustomersRelations

 `Const` **defaultAdminCustomersRelations**: `string`[]

### defaultAdminDiscountsFields

 `Const` **defaultAdminDiscountsFields**: keyof [Discount](../entities/classes/entities.Discount.mdx)[]

### defaultAdminDiscountsRelations

 `Const` **defaultAdminDiscountsRelations**: `string`[]

### defaultAdminDiscountConditionFields

 `Const` **defaultAdminDiscountConditionFields**: keyof [DiscountCondition](../entities/classes/entities.DiscountCondition.mdx)[]

### defaultAdminDiscountConditionRelations

 `Const` **defaultAdminDiscountConditionRelations**: `string`[]

### defaultAdminDraftOrdersRelations

 `Const` **defaultAdminDraftOrdersRelations**: `string`[]

### defaultAdminDraftOrdersCartRelations

 `Const` **defaultAdminDraftOrdersCartRelations**: `string`[]

### defaultAdminDraftOrdersCartFields

 `Const` **defaultAdminDraftOrdersCartFields**: keyof [Cart](../entities/classes/entities.Cart.mdx)[]

### defaultAdminDraftOrdersFields

 `Const` **defaultAdminDraftOrdersFields**: keyof [DraftOrder](../entities/classes/entities.DraftOrder.mdx)[]

### defaultAdminGiftCardFields

 `Const` **defaultAdminGiftCardFields**: keyof [GiftCard](../entities/classes/entities.GiftCard.mdx)[]

### defaultAdminGiftCardRelations

 `Const` **defaultAdminGiftCardRelations**: `string`[]

### defaultAdminInventoryItemFields

 `Const` **defaultAdminInventoryItemFields**: keyof [InventoryItemDTO](../medusa/types/medusa.InventoryItemDTO.mdx)[]

### defaultAdminLocationLevelFields

 `Const` **defaultAdminLocationLevelFields**: keyof [InventoryLevelDTO](../medusa/types/medusa.InventoryLevelDTO.mdx)[]

### defaultAdminInventoryItemRelations

 `Const` **defaultAdminInventoryItemRelations**: `never`[] = `[]`

### defaultAdminNotificationsRelations

 `Const` **defaultAdminNotificationsRelations**: `string`[]

### defaultAdminNotificationsFields

 `Const` **defaultAdminNotificationsFields**: `string`[]

### filterableAdminOrdersFields

 `Const` **filterableAdminOrdersFields**: `string`[]

### AvailableOrderIncludes

 `Const` **AvailableOrderIncludes**: `Object`

#### Properties

<TypeList types={[{"name":"RETURNABLE_ITEMS","type":"`string`","description":"","optional":false,"defaultValue":"\"returnable_items\"","expandable":false,"children":[]}]}  sectionTitle="AvailableOrderIncludes"/>

### allowedOrderIncludes

 `Const` **allowedOrderIncludes**: `string`[]

### defaultPaymentCollectionFields

 `Const` **defaultPaymentCollectionFields**: `string`[]

### defaulPaymentCollectionRelations

 `Const` **defaulPaymentCollectionRelations**: `string`[]

### defaultPaymentFields

 `Const` **defaultPaymentFields**: `string`[]

### defaultAdminPriceListRemoteQueryObject

 `Const` **defaultAdminPriceListRemoteQueryObject**: `Object`

#### Properties

<TypeList types={[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"price_list_rules","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"price_list_rule_values","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"rule_type","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"price_set_money_amounts","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"money_amount","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"price_rules","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"rule_type","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"price_set","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"variant_link","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}]}  sectionTitle="defaultAdminPriceListRemoteQueryObject"/>

### defaultAdminPriceListFields

 `Const` **defaultAdminPriceListFields**: `string`[]

### defaultAdminPriceListRelations

 `Const` **defaultAdminPriceListRelations**: `string`[]

### defaultAdminProductCategoryRelations

 `Const` **defaultAdminProductCategoryRelations**: `string`[]

### allowedAdminProductCategoryRelations

 `Const` **allowedAdminProductCategoryRelations**: `string`[]

### defaultProductCategoryFields

 `Const` **defaultProductCategoryFields**: `string`[]

### defaultAdminProductTagsFields

 `Const` **defaultAdminProductTagsFields**: `string`[]

### defaultAdminProductTagsRelations

 `Const` **defaultAdminProductTagsRelations**: `never`[] = `[]`

### defaultAdminProductTypeFields

 `Const` **defaultAdminProductTypeFields**: `string`[]

### defaultAdminProductTypeRelations

 `Const` **defaultAdminProductTypeRelations**: `never`[] = `[]`

### defaultAdminProductRelations

 `Const` **defaultAdminProductRelations**: `string`[]

### defaultAdminProductFields

 `Const` **defaultAdminProductFields**: keyof [Product](../entities/classes/entities.Product.mdx)[]

### defaultAdminGetProductsVariantsFields

 `Const` **defaultAdminGetProductsVariantsFields**: `string`[]

### defaultAdminProductRemoteQueryObject

 `Const` **defaultAdminProductRemoteQueryObject**: `Object`

This is temporary.

#### Properties

<TypeList types={[{"name":"fields","type":"keyof [Product](../entities/classes/entities.Product.mdx)[]","description":"","optional":false,"defaultValue":"defaultAdminProductFields","expandable":false,"children":[]},{"name":"images","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"tags","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"type","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"collection","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"categories","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"options","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"values","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"variants","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"profile","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"sales_channels","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="defaultAdminProductRemoteQueryObject"/>

### defaultAdminRegionFields

 `Const` **defaultAdminRegionFields**: keyof [Region](../entities/classes/entities.Region.mdx)[]

### defaultAdminRegionRelations

 `Const` **defaultAdminRegionRelations**: `string`[]

### defaultAdminReservationRelations

 `Const` **defaultAdminReservationRelations**: `never`[] = `[]`

### defaultReservationFields

 `Const` **defaultReservationFields**: `string`[]

### defaultAdminReturnReasonsFields

 `Const` **defaultAdminReturnReasonsFields**: keyof [ReturnReason](../entities/classes/entities.ReturnReason.mdx)[]

### defaultAdminReturnReasonsRelations

 `Const` **defaultAdminReturnReasonsRelations**: keyof [ReturnReason](../entities/classes/entities.ReturnReason.mdx)[]

### defaultRelations

 `Const` **defaultRelations**: `string`[]

### defaultRelationsList

 `Const` **defaultRelationsList**: `string`[]

### defaultReturnCancelRelations

 `Const` **defaultReturnCancelRelations**: `string`[]

### defaultReturnCancelFields

 `Const` **defaultReturnCancelFields**: keyof [Order](../entities/classes/entities.Order.mdx)[]

### shippingOptionsDefaultFields

 `Const` **shippingOptionsDefaultFields**: keyof [ShippingOption](../entities/classes/entities.ShippingOption.mdx)[]

### shippingOptionsDefaultRelations

 `Const` **shippingOptionsDefaultRelations**: `string`[]

### defaultAdminShippingProfilesFields

 `Const` **defaultAdminShippingProfilesFields**: keyof [ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)[]

### defaultAdminShippingProfilesRelations

 `Const` **defaultAdminShippingProfilesRelations**: `string`[]

### defaultAdminStockLocationFields

 `Const` **defaultAdminStockLocationFields**: keyof [StockLocationDTO](../medusa/types/medusa.StockLocationDTO.mdx)[]

### defaultAdminStockLocationRelations

 `Const` **defaultAdminStockLocationRelations**: `never`[] = `[]`

### defaultRelationsExtended

 `Const` **defaultRelationsExtended**: `string`[]

### defaultAdminSwapRelations

 `Const` **defaultAdminSwapRelations**: `string`[]

### defaultAdminSwapFields

 `Const` **defaultAdminSwapFields**: `string`[]

### defaultAdminTaxRatesRelations

 `Const` **defaultAdminTaxRatesRelations**: `never`[] = `[]`

### defaultAdminTaxRatesFields

 `Const` **defaultAdminTaxRatesFields**: keyof [TaxRate](../entities/classes/entities.TaxRate.mdx)[]

### defaultAdminUserFields

 `Const` **defaultAdminUserFields**: keyof [User](../entities/classes/entities.User.mdx)[]

### defaultAdminVariantRelations

 `Const` **defaultAdminVariantRelations**: `string`[]

### defaultAdminVariantFields

 `Const` **defaultAdminVariantFields**: keyof [ProductVariant](../entities/classes/entities.ProductVariant.mdx)[]

### defaultStoreCartFields

 `Const` **defaultStoreCartFields**: keyof [Cart](../entities/classes/entities.Cart.mdx)[] = `[]`

### defaultStoreCartRelations

 `Const` **defaultStoreCartRelations**: `string`[]

### defaultStoreCollectionRelations

 `Const` **defaultStoreCollectionRelations**: `never`[] = `[]`

### allowedFields

 `Const` **allowedFields**: `string`[]

### defaultStoreCustomersRelations

 `Const` **defaultStoreCustomersRelations**: `string`[]

### defaultStoreCustomersFields

 `Const` **defaultStoreCustomersFields**: keyof [Customer](../entities/classes/entities.Customer.mdx)[]

### allowedStoreCustomersRelations

 `Const` **allowedStoreCustomersRelations**: `string`[]

### allowedStoreCustomersFields

 `Const` **allowedStoreCustomersFields**: `string`[]

### defaultStoreGiftCardRelations

 `Const` **defaultStoreGiftCardRelations**: `string`[]

### defaultStoreGiftCardFields

 `Const` **defaultStoreGiftCardFields**: keyof [GiftCard](../entities/classes/entities.GiftCard.mdx)[]

### allowedStoreGiftCardRelations

 `Const` **allowedStoreGiftCardRelations**: `string`[]

### allowedStoreGiftCardFields

 `Const` **allowedStoreGiftCardFields**: `string`[]

### defaultStoreOrdersRelations

 `Const` **defaultStoreOrdersRelations**: `string`[]

### allowedStoreOrdersRelations

 `Const` **allowedStoreOrdersRelations**: `string`[]

### defaultStoreOrdersFields

 `Const` **defaultStoreOrdersFields**: keyof [Order](../entities/classes/entities.Order.mdx)[]

### allowedStoreOrdersFields

 `Const` **allowedStoreOrdersFields**: `string`[]

### defaultPaymentCollectionRelations

 `Const` **defaultPaymentCollectionRelations**: `string`[]

### defaultStoreProductCategoryRelations

 `Const` **defaultStoreProductCategoryRelations**: `string`[]

### defaultStoreCategoryScope

 `Const` **defaultStoreCategoryScope**: `Object`

#### Properties

<TypeList types={[{"name":"is_internal","type":"`boolean`","description":"","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_active","type":"`boolean`","description":"","optional":false,"defaultValue":"true","expandable":false,"children":[]}]}  sectionTitle="defaultStoreCategoryScope"/>

### defaultStoreProductCategoryFields

 `Const` **defaultStoreProductCategoryFields**: `string`[]

### allowedStoreProductCategoryFields

 `Const` **allowedStoreProductCategoryFields**: `string`[]

### defaultStoreProductTagFields

 `Const` **defaultStoreProductTagFields**: `string`[]

### allowedStoreProductTagFields

 `Const` **allowedStoreProductTagFields**: `string`[]

### defaultStoreProductTagRelations

 `Const` **defaultStoreProductTagRelations**: `never`[] = `[]`

### allowedStoreProductTypeFields

 `Const` **allowedStoreProductTypeFields**: `string`[]

### defaultStoreProductTypeFields

 `Const` **defaultStoreProductTypeFields**: `string`[]

### defaultStoreProductTypeRelations

 `Const` **defaultStoreProductTypeRelations**: `never`[] = `[]`

### defaultStoreProductsRelations

 `Const` **defaultStoreProductsRelations**: `string`[]

### defaultStoreProductsFields

 `Const` **defaultStoreProductsFields**: keyof [Product](../entities/classes/entities.Product.mdx)[]

### allowedStoreProductsFields

 `Const` **allowedStoreProductsFields**: `string`[]

### allowedStoreProductsRelations

 `Const` **allowedStoreProductsRelations**: `string`[]

### defaultStoreProductRemoteQueryObject

 `Const` **defaultStoreProductRemoteQueryObject**: `Object`

This is temporary.

#### Properties

<TypeList types={[{"name":"fields","type":"keyof [Product](../entities/classes/entities.Product.mdx)[]","description":"","optional":false,"defaultValue":"defaultStoreProductsFields","expandable":false,"children":[]},{"name":"images","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"tags","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"type","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"collection","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"options","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"values","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"variants","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"profile","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"sales_channels","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"fields","type":"`string`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="defaultStoreProductRemoteQueryObject"/>

### defaultStoreRegionRelations

 `Const` **defaultStoreRegionRelations**: `string`[]

### defaultStoreRegionFields

 `Const` **defaultStoreRegionFields**: `string`[]

### defaultStoreReturnReasonFields

 `Const` **defaultStoreReturnReasonFields**: keyof [ReturnReason](../entities/classes/entities.ReturnReason.mdx)[]

### defaultStoreReturnReasonRelations

 `Const` **defaultStoreReturnReasonRelations**: keyof [ReturnReason](../entities/classes/entities.ReturnReason.mdx)[]

### defaultStoreSwapRelations

 `Const` **defaultStoreSwapRelations**: `string`[]

### defaultStoreSwapFields

 `Const` **defaultStoreSwapFields**: [FindConfig](../medusa/interfaces/medusa.FindConfig.mdx)&#60;[Swap](../entities/classes/entities.Swap.mdx)&#62;[`"select"`]

### defaultStoreVariantRelations

 `Const` **defaultStoreVariantRelations**: `string`[]

### allowedStoreVariantRelations

 `Const` **allowedStoreVariantRelations**: `string`[]

### PriceType

 **PriceType**: `Object`

#### Properties

<TypeList types={[{"name":"DEFAULT","type":"[DEFAULT](medusa.mdx#default)","description":"","optional":false,"defaultValue":"\"default\"","expandable":false,"children":[]},{"name":"SALE","type":"[SALE](../medusa/enums/medusa.PriceListType.mdx#sale)","description":"","optional":false,"defaultValue":"\"sale\"","expandable":false,"children":[]},{"name":"OVERRIDE","type":"[OVERRIDE](../medusa/enums/medusa.PriceListType.mdx#override)","description":"","optional":false,"defaultValue":"\"override\"","expandable":false,"children":[]}]}  sectionTitle="PriceType"/>

### joinerConfig

 `Const` **joinerConfig**: [ModuleJoinerConfig](../medusa/types/medusa.ModuleJoinerConfig.mdx)[]

### HTTP\_METHODS

 `Const` **HTTP\_METHODS**: readonly [`"GET"`, `"POST"`, `"PUT"`, `"PATCH"`, `"DELETE"`, `"OPTIONS"`, `"HEAD"`]

List of all the supported HTTP methods

___

## Functions

### authenticateCustomer

#### Returns

<TypeList types={[{"name":"RequestHandler","type":"RequestHandler&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ParamsDictionary","type":"`ParamsDictionary`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"ParsedQs","type":"`ParsedQs`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"Record","type":"`Record<string, any>`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}  sectionTitle="authenticateCustomer"/>

### authenticate

#### Returns

<TypeList types={[{"name":"RequestHandler","type":"RequestHandler&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ParamsDictionary","type":"`ParamsDictionary`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"ParsedQs","type":"`ParsedQs`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"Record","type":"`Record<string, any>`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}  sectionTitle="authenticate"/>

### wrapHandler

#### Parameters

<TypeList types={[{"name":"fn","type":"[handler](../medusa/types/medusa.handler.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="wrapHandler"/>

#### Returns

<TypeList types={[{"name":"RequestHandler","type":"RequestHandler&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ParamsDictionary","type":"`ParamsDictionary`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"ParsedQs","type":"`ParsedQs`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"Record","type":"`Record<string, any>`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}  sectionTitle="wrapHandler"/>

#### Deprecated

use `import { wrapHandler } from "@medusajs/utils"`

### canAccessBatchJob

#### Parameters

<TypeList types={[{"name":"req","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="canAccessBatchJob"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="canAccessBatchJob"/>

### getRequestedBatchJob

#### Parameters

<TypeList types={[{"name":"req","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="getRequestedBatchJob"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="getRequestedBatchJob"/>

### doesConditionBelongToDiscount

#### Parameters

<TypeList types={[{"name":"req","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="doesConditionBelongToDiscount"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="doesConditionBelongToDiscount"/>

### errorHandler

#### Returns

<TypeList types={[{"name":"(err: MedusaError, req: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, res: Response&#60;any, Record&#60;string, any&#62;&#62;, next: NextFunction) => void","type":"(`err`: [MedusaError](../medusa/classes/medusa.MedusaError.mdx), `req`: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, `res`: Response&#60;any, Record&#60;string, any&#62;&#62;, `next`: `NextFunction`) => `void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="errorHandler"/>

##### Parameters

<TypeList types={[{"name":"err","type":"[MedusaError](../medusa/classes/medusa.MedusaError.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"type","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"message","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"date","type":"`Date`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"Types","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"DB_ERROR","type":"`string`","description":"Errors stemming from the database","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"DUPLICATE_ERROR","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"INVALID_ARGUMENT","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"INVALID_DATA","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"UNAUTHORIZED","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"NOT_FOUND","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"NOT_ALLOWED","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"UNEXPECTED_STATE","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"CONFLICT","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"PAYMENT_AUTHORIZATION_ERROR","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"Codes","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"INSUFFICIENT_INVENTORY","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"CART_INCOMPATIBLE_STATE","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"req","type":"Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"Response&#60;any, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### isFeatureFlagEnabled

#### Parameters

<TypeList types={[{"name":"flagKey","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="isFeatureFlagEnabled"/>

#### Returns

<TypeList types={[{"name":"(req: Request, res: Response, next: NextFunction) => Promise&#60;void&#62;","type":"(`req`: `Request`, `res`: `Response`, `next`: `NextFunction`) => Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="isFeatureFlagEnabled"/>

##### Parameters

<TypeList types={[{"name":"req","type":"`Request`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`Response`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### normalizeQuery

Normalize an input query, especially from array like query params to an array type
e.g: /admin/orders/?fields[]=id,status,cart\_id becomes &#123; fields: ["id", "status", "cart\_id"] &#125;

#### Returns

<TypeList types={[{"name":"(req: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, res: Response&#60;any, Record&#60;string, any&#62;&#62;, next: NextFunction) => void","type":"(`req`: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, `res`: Response&#60;any, Record&#60;string, any&#62;&#62;, `next`: `NextFunction`) => `void`","optional":false,"defaultValue":"","description":"Normalize an input query, especially from array like query params to an array type\ne.g: /admin/orders/?fields[]=id,status,cart\\_id becomes &#123; fields: [\"id\", \"status\", \"cart\\_id\"] &#125;","expandable":false,"children":[]}]}  sectionTitle="normalizeQuery"/>

##### Parameters

<TypeList types={[{"name":"req","type":"Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"Response&#60;any, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### requireCustomerAuthentication

#### Returns

<TypeList types={[{"name":"RequestHandler","type":"RequestHandler&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ParamsDictionary","type":"`ParamsDictionary`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"ParsedQs","type":"`ParsedQs`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"Record","type":"`Record<string, any>`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}  sectionTitle="requireCustomerAuthentication"/>

### transformBody

#### Type Parameters

<TypeList types={[{"name":"T","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="transformBody"/>

#### Parameters

<TypeList types={[{"name":"plainToClass","type":"[ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)&#60;T&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"`ValidatorOptions`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="transformBody"/>

#### Returns

<TypeList types={[{"name":"(req: Request, res: Response, next: NextFunction) => Promise&#60;void&#62;","type":"(`req`: `Request`, `res`: `Response`, `next`: `NextFunction`) => Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="transformBody"/>

##### Parameters

<TypeList types={[{"name":"req","type":"`Request`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`Response`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### transformIncludesOptions

Retrieve the includes options from the fields query param.
If the include option is present then assigned it to includes on req

#### Parameters

<TypeList types={[{"name":"allowedIncludes","type":"`string`[]","description":"The list of fields that can be passed and assign to req.includes","optional":false,"defaultValue":"[]","expandable":false,"children":[]},{"name":"expectedIncludes","type":"`string`[]","description":"The list of fields that the consumer can pass to the end point using this middleware. It is a subset of `allowedIncludes`","optional":false,"defaultValue":"[]","expandable":false,"children":[]}]}  sectionTitle="transformIncludesOptions"/>

#### Returns

<TypeList types={[{"name":"(req: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, res: Response&#60;any, Record&#60;string, any&#62;&#62;, next: NextFunction) => void","type":"(`req`: Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;, `res`: Response&#60;any, Record&#60;string, any&#62;&#62;, `next`: `NextFunction`) => `void`","optional":false,"defaultValue":"","description":"Retrieve the includes options from the fields query param.\nIf the include option is present then assigned it to includes on req","expandable":false,"children":[]}]}  sectionTitle="transformIncludesOptions"/>

##### Parameters

<TypeList types={[{"name":"req","type":"Request&#60;ParamsDictionary, any, any, ParsedQs, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"Response&#60;any, Record&#60;string, any&#62;&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### transformQuery

Middleware that transform the query input for the admin end points

#### Type Parameters

<TypeList types={[{"name":"T","type":"[RequestQueryFields](../medusa/interfaces/medusa.RequestQueryFields.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"expand","type":"`string`","description":"Comma-separated relations that should be expanded in the returned data.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"fields","type":"`string`","description":"Comma-separated fields that should be included in the returned data.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"offset","type":"`number`","description":"The number of items to skip when retrieving a list.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"limit","type":"`number`","description":"Limit the number of items returned in the list.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"`string`","description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"TEntity","type":"`BaseEntity`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="transformQuery"/>

#### Parameters

<TypeList types={[{"name":"plainToClass","type":"[ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)&#60;T&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"`ValidatorOptions`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[]},{"name":"queryConfig","type":"Omit&#60;[QueryConfig](../medusa/types/medusa.QueryConfig.mdx)&#60;TEntity&#62;, \"allowedFields\" \\| \"allowedRelations\"&#62;","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"defaultFields","type":"(keyof TEntity \\| `string`)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"defaultRelations","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"defaultLimit","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="transformQuery"/>

#### Returns

<TypeList types={[{"name":"(req: Request, res: Response, next: NextFunction) => Promise&#60;void&#62;","type":"(`req`: `Request`, `res`: `Response`, `next`: `NextFunction`) => Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"Middleware that transform the query input for the admin end points","expandable":false,"children":[]}]}  sectionTitle="transformQuery"/>

##### Parameters

<TypeList types={[{"name":"req","type":"`Request`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`Response`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### transformStoreQuery

Middleware that transform the query input for the store endpoints

#### Type Parameters

<TypeList types={[{"name":"T","type":"[RequestQueryFields](../medusa/interfaces/medusa.RequestQueryFields.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"expand","type":"`string`","description":"Comma-separated relations that should be expanded in the returned data.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"fields","type":"`string`","description":"Comma-separated fields that should be included in the returned data.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"offset","type":"`number`","description":"The number of items to skip when retrieving a list.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"limit","type":"`number`","description":"Limit the number of items returned in the list.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"`string`","description":"The field to sort the data by. By default, the sort order is ascending. To change the order to descending, prefix the field name with `-`.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"TEntity","type":"`BaseEntity`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="transformStoreQuery"/>

#### Parameters

<TypeList types={[{"name":"plainToClass","type":"[ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)&#60;T&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"`ValidatorOptions`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[]},{"name":"queryConfig","type":"[QueryConfig](../medusa/types/medusa.QueryConfig.mdx)&#60;TEntity&#62;","description":"","optional":true,"defaultValue":"","expandable":false,"children":[{"name":"defaultFields","type":"(keyof TEntity \\| `string`)[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"defaultRelations","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"allowedFields","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"allowedRelations","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"defaultLimit","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"isList","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="transformStoreQuery"/>

#### Returns

<TypeList types={[{"name":"(req: Request, res: Response, next: NextFunction) => Promise&#60;void&#62;","type":"(`req`: `Request`, `res`: `Response`, `next`: `NextFunction`) => Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"Middleware that transform the query input for the store endpoints","expandable":false,"children":[]}]}  sectionTitle="transformStoreQuery"/>

##### Parameters

<TypeList types={[{"name":"req","type":"`Request`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"res","type":"`Response`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"next","type":"`NextFunction`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

### reserveQuantityForDraftOrder

#### Parameters

<TypeList types={[{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"An order is a purchase made by a customer. It holds details about payment and fulfillment of the order. An order may also be created from a draft order, which is created by an admin user.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The order's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"object","type":"`\"order\"`","description":"","optional":false,"defaultValue":"\"order\"","expandable":false,"children":[]},{"name":"status","type":"[OrderStatus](../entities/enums/entities.OrderStatus.mdx)","description":"The order's status","optional":false,"defaultValue":"pending","expandable":false,"children":[{"name":"PENDING","type":"`\"pending\"`","description":"The order is pending.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"COMPLETED","type":"`\"completed\"`","description":"The order is completed, meaning that\nthe items have been fulfilled and the payment\nhas been captured.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"ARCHIVED","type":"`\"archived\"`","description":"The order is archived.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"CANCELED","type":"`\"canceled\"`","description":"The order is canceled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"REQUIRES_ACTION","type":"`\"requires_action\"`","description":"The order requires action.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"fulfillment_status","type":"[FulfillmentStatus](../entities/enums/entities.FulfillmentStatus.mdx)","description":"The order's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[{"name":"NOT_FULFILLED","type":"`\"not_fulfilled\"`","description":"The order's items are not fulfilled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"PARTIALLY_FULFILLED","type":"`\"partially_fulfilled\"`","description":"Some of the order's items, but not all, are fulfilled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"FULFILLED","type":"`\"fulfilled\"`","description":"The order's items are fulfilled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"PARTIALLY_SHIPPED","type":"`\"partially_shipped\"`","description":"Some of the order's items, but not all, are shipped.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"SHIPPED","type":"`\"shipped\"`","description":"The order's items are shipped.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"PARTIALLY_RETURNED","type":"`\"partially_returned\"`","description":"Some of the order's items, but not all, are returned.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"RETURNED","type":"`\"returned\"`","description":"The order's items are returned.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"CANCELED","type":"`\"canceled\"`","description":"The order's fulfillments are canceled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"REQUIRES_ACTION","type":"`\"requires_action\"`","description":"The order's fulfillment requires action.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"payment_status","type":"[PaymentStatus](../entities/enums/entities.PaymentStatus.mdx)","description":"The order's payment status","optional":false,"defaultValue":"not_paid","expandable":false,"children":[{"name":"NOT_PAID","type":"`\"not_paid\"`","description":"The order's payment is not paid.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"AWAITING","type":"`\"awaiting\"`","description":"The order's payment is awaiting capturing.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"CAPTURED","type":"`\"captured\"`","description":"The order's payment is captured.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"PARTIALLY_REFUNDED","type":"`\"partially_refunded\"`","description":"Some of the order's payment amount is refunded.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"REFUNDED","type":"`\"refunded\"`","description":"The order's payment amount is refunded.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"CANCELED","type":"`\"canceled\"`","description":"The order's payment is canceled.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"REQUIRES_ACTION","type":"`\"requires_action\"`","description":"The order's payment requires action.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"display_id","type":"`number`","description":"The order's display ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The cart's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"object","type":"`\"cart\"`","description":"","optional":false,"defaultValue":"\"cart\"","expandable":false,"children":[]},{"name":"email","type":"`string`","description":"The email associated with the cart","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address_id","type":"`string`","description":"The billing address's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the billing address associated with the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The shipping address's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"`null` \\| [Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address associated with the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The line items added to the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"region_id","type":"`string`","description":"The region's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region","type":"[Region](../entities/classes/entities.Region.mdx)","description":"The details of the region associated with the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"discounts","type":"[Discount](../entities/classes/entities.Discount.mdx)[]","description":"An array of details of all discounts applied to the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"gift_cards","type":"[GiftCard](../entities/classes/entities.GiftCard.mdx)[]","description":"An array of details of all gift cards applied to the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"customer_id","type":"`string`","description":"The customer's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"[Customer](../entities/classes/entities.Customer.mdx)","description":"The details of the customer the cart belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment_session","type":"`null` \\| [PaymentSession](../entities/classes/entities.PaymentSession.mdx)","description":"The details of the selected payment session in the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment_sessions","type":"[PaymentSession](../entities/classes/entities.PaymentSession.mdx)[]","description":"The details of all payment sessions created on the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment_id","type":"`string`","description":"The payment's ID if available","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment","type":"[Payment](../entities/classes/entities.Payment.mdx)","description":"The details of the payment associated with the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods added to the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type","type":"[CartType](../entities/enums/entities.CartType.mdx)","description":"The cart's type.","optional":false,"defaultValue":"default","expandable":false,"children":[]},{"name":"completed_at","type":"`Date`","description":"The date with timezone at which the cart was completed.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_authorized_at","type":"`Date`","description":"The date with timezone at which the payment was authorized.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of a cart in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"context","type":"`Record<string, unknown>`","description":"The context of the cart which can include info like IP or user agent.","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":"sales_channel_id","type":"`null` \\| `string`","description":"The sales channel ID the cart is associated with.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)","description":"The details of the sales channel associated with the cart.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The associated sales channels.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_total","type":"`number`","description":"The total of shipping","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`number`","description":"The total of discount rounded","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`number`","description":"The total of discount","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"item_tax_total","type":"`null` \\| `number`","description":"The total of items with taxes","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_tax_total","type":"`null` \\| `number`","description":"The total of shipping with taxes","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"refunded_total","type":"`number`","description":"The total amount refunded if the order associated with this cart is returned.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the cart","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`number`","description":"The subtotal of the cart","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"refundable_amount","type":"`number`","description":"The amount that can be refunded","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`number`","description":"The total of gift cards","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_tax_total","type":"`number`","description":"The total of gift cards with taxes","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"customer_id","type":"`string`","description":"The ID of the customer associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"[Customer](../entities/classes/entities.Customer.mdx)","description":"The details of the customer associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The customer's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"email","type":"`string`","description":"The customer's email","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"first_name","type":"`string`","description":"The customer's first name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"last_name","type":"`string`","description":"The customer's last name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address_id","type":"`null` \\| `string`","description":"The customer's billing address ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the billing address associated with the customer.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_addresses","type":"[Address](../entities/classes/entities.Address.mdx)[]","description":"The details of the shipping addresses associated with the customer.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"password_hash","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"phone","type":"`string`","description":"The customer's phone number","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"has_account","type":"`boolean`","description":"Whether the customer has an account or not","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"orders","type":"[Order](../entities/classes/entities.Order.mdx)[]","description":"The details of the orders this customer placed.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"groups","type":"[CustomerGroup](../entities/classes/entities.CustomerGroup.mdx)[]","description":"The customer groups the customer belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"metadata","type":"`Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"email","type":"`string`","description":"The email associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address_id","type":"`string`","description":"The ID of the billing address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the billing address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"ID of the address","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer_id","type":"`null` \\| `string`","description":"ID of the customer this address belongs to","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"`null` \\| [Customer](../entities/classes/entities.Customer.mdx)","description":"Available if the relation `customer` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"company","type":"`null` \\| `string`","description":"Company name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"first_name","type":"`null` \\| `string`","description":"First name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"last_name","type":"`null` \\| `string`","description":"Last name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"address_1","type":"`null` \\| `string`","description":"Address line 1","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"address_2","type":"`null` \\| `string`","description":"Address line 2","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"city","type":"`null` \\| `string`","description":"City","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"country_code","type":"`null` \\| `string`","description":"The 2 character ISO code of the country in lower case","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"country","type":"`null` \\| [Country](../entities/classes/entities.Country.mdx)","description":"A country object.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"province","type":"`null` \\| `string`","description":"Province","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"postal_code","type":"`null` \\| `string`","description":"Postal Code","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"phone","type":"`null` \\| `string`","description":"Phone Number","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":"shipping_address_id","type":"`string`","description":"The ID of the shipping address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"ID of the address","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer_id","type":"`null` \\| `string`","description":"ID of the customer this address belongs to","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"`null` \\| [Customer](../entities/classes/entities.Customer.mdx)","description":"Available if the relation `customer` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"company","type":"`null` \\| `string`","description":"Company name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"first_name","type":"`null` \\| `string`","description":"First name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"last_name","type":"`null` \\| `string`","description":"Last name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"address_1","type":"`null` \\| `string`","description":"Address line 1","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"address_2","type":"`null` \\| `string`","description":"Address line 2","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"city","type":"`null` \\| `string`","description":"City","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"country_code","type":"`null` \\| `string`","description":"The 2 character ISO code of the country in lower case","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"country","type":"`null` \\| [Country](../entities/classes/entities.Country.mdx)","description":"A country object.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"province","type":"`null` \\| `string`","description":"Province","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"postal_code","type":"`null` \\| `string`","description":"Postal Code","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"phone","type":"`null` \\| `string`","description":"Phone Number","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":"region_id","type":"`string`","description":"The ID of the region this order was created in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region","type":"[Region](../entities/classes/entities.Region.mdx)","description":"The details of the region this order was created in.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The region's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"`string`","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":"currency_code","type":"`string`","description":"The three character currency code used in the region.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency","type":"[Currency](../entities/classes/entities.Currency.mdx)","description":"The details of the currency used in the region.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_rate","type":"`number`","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](../entities/classes/entities.TaxRate.mdx)[]","description":"The details of the tax rates used in the region, aside from the default rate.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_code","type":"`string`","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":"gift_cards_taxable","type":"`boolean`","description":"Whether the gift cards are taxable or not in this region.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"automatic_taxes","type":"`boolean`","description":"Whether taxes should be automated in this region.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"countries","type":"[Country](../entities/classes/entities.Country.mdx)[]","description":"The details of the countries included in this region.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_provider_id","type":"`null` \\| `string`","description":"The ID of the tax provider used in this region","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_provider","type":"[TaxProvider](../entities/classes/entities.TaxProvider.mdx)","description":"The details of the tax provider used in the region.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment_providers","type":"[PaymentProvider](../entities/classes/entities.PaymentProvider.mdx)[]","description":"The details of the payment providers that can be used to process payments in the region.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillment_providers","type":"[FulfillmentProvider](../entities/classes/entities.FulfillmentProvider.mdx)[]","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":"metadata","type":"`Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"includes_tax","type":"`boolean`","description":"Whether the prices for the region include tax","optional":false,"defaultValue":"false","expandable":false,"featureFlag":"tax_inclusive_pricing","children":[]}]},{"name":"currency_code","type":"`string`","description":"The 3 character currency code that is used in the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency","type":"[Currency](../entities/classes/entities.Currency.mdx)","description":"The details of the currency used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"code","type":"`string`","description":"The 3 character ISO code for the currency.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"symbol","type":"`string`","description":"The symbol used to indicate the currency.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"symbol_native","type":"`string`","description":"The native symbol used to indicate the currency.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"`string`","description":"The written name of the currency","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"includes_tax","type":"`boolean`","description":"Whether the currency prices include tax","optional":true,"defaultValue":"false","expandable":false,"featureFlag":"tax_inclusive_pricing","children":[]}]},{"name":"tax_rate","type":"`null` \\| `number`","description":"The order's tax rate","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discounts","type":"[Discount](../entities/classes/entities.Discount.mdx)[]","description":"The details of the discounts applied on the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The discount's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"A unique code for the discount - this will be used by the customer to apply the discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_dynamic","type":"`boolean`","description":"A flag to indicate if multiple instances of the discount can be generated. I.e. for newsletter discounts","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"rule_id","type":"`string`","description":"The ID of the discount rule that defines how the discount will be applied to a cart.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"rule","type":"[DiscountRule](../entities/classes/entities.DiscountRule.mdx)","description":"The details of the discount rule that defines how the discount will be applied to a cart..","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"is_disabled","type":"`boolean`","description":"Whether the Discount has been disabled. Disabled discounts cannot be applied to carts","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parent_discount_id","type":"`string`","description":"The Discount that the discount was created from. This will always be a dynamic discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"parent_discount","type":"[Discount](../entities/classes/entities.Discount.mdx)","description":"The details of the parent discount that this discount was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"starts_at","type":"`Date`","description":"The time at which the discount can be used.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"ends_at","type":"`null` \\| `Date`","description":"The time at which the discount can no longer be used.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"valid_duration","type":"`null` \\| `string`","description":"Duration the discount runs between","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"regions","type":"[Region](../entities/classes/entities.Region.mdx)[]","description":"The details of the regions in which the Discount can be used.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"usage_limit","type":"`null` \\| `number`","description":"The maximum number of times that a discount can be used.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"usage_count","type":"`number`","description":"The number of times a discount has been used.","optional":false,"defaultValue":"0","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":"gift_cards","type":"[GiftCard](../entities/classes/entities.GiftCard.mdx)[]","description":"The details of the gift card used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The gift card's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"The unique code that identifies the Gift Card. This is used by the Customer to redeem the value of the Gift Card.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"value","type":"`number`","description":"The value that the Gift Card represents.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"balance","type":"`number`","description":"The remaining value on the Gift Card.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region_id","type":"`string`","description":"The ID of the region this gift card is available in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region","type":"[Region](../entities/classes/entities.Region.mdx)","description":"The details of the region this gift card is available in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the gift card was purchased in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the gift card was purchased in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"is_disabled","type":"`boolean`","description":"Whether the Gift Card has been disabled. Disabled Gift Cards cannot be applied to carts.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"ends_at","type":"`Date`","description":"The time at which the Gift Card can no longer be used.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate","type":"`null` \\| `number`","description":"The gift card's tax rate that will be applied on calculating totals","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":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The shipping method's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_option_id","type":"`string`","description":"The ID of the Shipping Option that the Shipping Method is built from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the shipping method is used in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the shipping method is used in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claim_order_id","type":"`null` \\| `string`","description":"The ID of the claim that the shipping method is used in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the shipping method is used in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the shipping method is used in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the shipping method is used in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swap_id","type":"`string`","description":"The ID of the swap that the shipping method is used in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the shipping method is used in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_id","type":"`string`","description":"The ID of the return that the shipping method is used in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return that the shipping method is used in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_option","type":"[ShippingOption](../entities/classes/entities.ShippingOption.mdx)","description":"The details of the shipping option the method was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_lines","type":"[ShippingMethodTaxLine](../entities/classes/entities.ShippingMethodTaxLine.mdx)[]","description":"The details of the tax lines applied on the shipping method.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"price","type":"`number`","description":"The amount to charge for the Shipping Method. The currency of the price is defined by the Region that the Order that the Shipping Method belongs to is a part of.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"Additional data that the Fulfillment Provider needs to fulfill the shipment. This is used in combination with the Shipping Options data, and may contain information such as a drop point id.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"includes_tax","type":"`boolean`","description":"Whether the shipping method price include tax","optional":false,"defaultValue":"false","expandable":false,"featureFlag":"tax_inclusive_pricing","children":[]},{"name":"subtotal","type":"`number`","description":"The subtotal of the shipping","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the shipping","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`number`","description":"The total of tax","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"payments","type":"[Payment](../entities/classes/entities.Payment.mdx)[]","description":"The details of the payments used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The payment's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap_id","type":"`string`","description":"The ID of the swap that this payment was potentially created for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that this payment was potentially created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the payment session was potentially created for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the payment session was potentially created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the payment session was potentially created for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the payment session was potentially created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"amount","type":"`number`","description":"The amount that the Payment has been authorized for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency_code","type":"`string`","description":"The 3 character ISO currency code of the payment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency","type":"[Currency](../entities/classes/entities.Currency.mdx)","description":"The details of the currency of the payment.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"amount_refunded","type":"`number`","description":"The amount of the original Payment amount that has been refunded back to the Customer.","optional":false,"defaultValue":"0","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"The id of the Payment Provider that is responsible for the Payment","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"The data required for the Payment Provider to identify, modify and process the Payment. Typically this will be an object that holds an id to the external payment session, but can be an empty object if the Payment Provider doesn't hold any state.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"captured_at","type":"`string` \\| `Date`","description":"The date with timezone at which the Payment was captured.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`string` \\| `Date`","description":"The date with timezone at which the Payment was canceled.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of a payment in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The fulfillment's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order_id","type":"`string`","description":"The ID of the Claim that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swap_id","type":"`string`","description":"The ID of the Swap that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the Order that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be sent.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"The ID of the Fulfillment Provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"location_id","type":"`null` \\| `string`","description":"The ID of the stock location the fulfillment will be shipped from","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider","type":"[FulfillmentProvider](../entities/classes/entities.FulfillmentProvider.mdx)","description":"The details of the fulfillment provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"items","type":"[FulfillmentItem](../entities/classes/entities.FulfillmentItem.mdx)[]","description":"The Fulfillment Items in the Fulfillment. These hold information about how many of each Line Item has been fulfilled.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tracking_links","type":"[TrackingLink](../entities/classes/entities.TrackingLink.mdx)[]","description":"The Tracking Links that can be used to track the status of the Fulfillment. These will usually be provided by the Fulfillment Provider.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tracking_numbers","type":"`string`[]","description":"The tracking numbers that can be used to track the status of the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"This contains all the data necessary for the Fulfillment provider to handle the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was shipped.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was canceled.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the fulfillment in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"returns","type":"[Return](../entities/classes/entities.Return.mdx)[]","description":"The details of the returns created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The return's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"status","type":"[ReturnStatus](../entities/enums/entities.ReturnStatus.mdx)","description":"Status of the Return.","optional":false,"defaultValue":"requested","expandable":false,"children":[]},{"name":"items","type":"[ReturnItem](../entities/classes/entities.ReturnItem.mdx)[]","description":"The details of the items that the customer is returning.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swap_id","type":"`null` \\| `string`","description":"The ID of the swap that the return may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the return may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claim_order_id","type":"`null` \\| `string`","description":"The ID of the claim that the return may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the return may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`null` \\| `string`","description":"The ID of the order that the return was created for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the return was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_method","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)","description":"The details of the Shipping Method that will be used to send the Return back. Can be null if the Customer will handle the return shipment themselves.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"location_id","type":"`null` \\| `string`","description":"The ID of the stock location the return will be added back.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_data","type":"`Record<string, unknown>`","description":"Data about the return shipment as provided by the Fulfilment Provider that handles the return shipment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refund_amount","type":"`number`","description":"The amount that should be refunded as a result of the return.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"received_at","type":"`Date`","description":"The date with timezone at which the return was received.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`null` \\| `boolean`","description":"When set to true, no notification will be sent related to this return.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`null` \\| `string`","description":"Randomly generated key used to continue the completion of the return in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"claims","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)[]","description":"The details of the claims created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The claim's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[ClaimPaymentStatus](../entities/enums/entities.ClaimPaymentStatus.mdx)","description":"The status of the claim's payment","optional":false,"defaultValue":"na","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[ClaimFulfillmentStatus](../entities/enums/entities.ClaimFulfillmentStatus.mdx)","description":"The claim's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[]},{"name":"claim_items","type":"[ClaimItem](../entities/classes/entities.ClaimItem.mdx)[]","description":"The details of the items that should be replaced or refunded.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new items to be shipped when the claim's type is `replace`","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type","type":"[ClaimType](../entities/enums/entities.ClaimType.mdx)","description":"The claim's type","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the claim comes from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that this claim was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return associated with the claim if the claim's type is `replace`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The ID of the address that the new items should be shipped to","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the address that new items should be shipped to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods that the claim order will be shipped with.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The fulfillments of the new items to be shipped","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"refund_amount","type":"`number`","description":"The amount that will be refunded in conjunction with the claim","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the claim was canceled.","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the cart associated with the claim in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"refunds","type":"[Refund](../entities/classes/entities.Refund.mdx)[]","description":"The details of the refunds created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The refund's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order this refund was created for.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_id","type":"`string`","description":"The payment's ID, if available.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order this refund was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment","type":"[Payment](../entities/classes/entities.Payment.mdx)","description":"The details of the payment associated with the refund.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"amount","type":"`number`","description":"The amount that has be refunded to the Customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"note","type":"`string`","description":"An optional note explaining why the amount was refunded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"reason","type":"`string`","description":"The reason given for the Refund, will automatically be set when processed as part of a Swap, Claim or Return.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the refund in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"swaps","type":"[Swap](../entities/classes/entities.Swap.mdx)[]","description":"The details of the swaps created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The swap's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[SwapFulfillmentStatus](../entities/enums/entities.SwapFulfillmentStatus.mdx)","description":"The status of the Fulfillment of the Swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[SwapPaymentStatus](../entities/enums/entities.SwapPaymentStatus.mdx)","description":"The status of the Payment of the Swap. The payment may either refer to the refund of an amount or the authorization of a new amount.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new products to send to the customer, represented as line items.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return that belongs to the swap, which holds the details on the items being returned.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments that are used to send the new items to the customer.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment","type":"[Payment](../entities/classes/entities.Payment.mdx)","description":"The details of the additional payment authorized by the customer when `difference\\_due` is positive.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"difference_due","type":"`number`","description":"The difference amount between the order’s original total and the new total imposed by the swap. If its value is negative, a refund must be issues to the customer. If it's positive, additional payment must be authorized by the customer. Otherwise, no payment processing is required.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The Address to send the new Line Items to - in most cases this will be the same as the shipping address on the Order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address that the new items should be sent to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used to fulfill the additional items purchased.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"confirmed_at","type":"`Date`","description":"The date with timezone at which the Swap was confirmed by the Customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Swap was canceled.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"If set to true, no notification will be sent related to this swap","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"allow_backorder","type":"`boolean`","description":"If true, swaps can be completed with items out of stock","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the swap in case of failure.","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":"draft_order_id","type":"`string`","description":"The ID of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"draft_order","type":"[DraftOrder](../entities/classes/entities.DraftOrder.mdx)","description":"The details of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The draft order's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"status","type":"[DraftOrderStatus](../entities/enums/entities.DraftOrderStatus.mdx)","description":"The status of the draft order. It's changed to `completed` when it's transformed to an order.","optional":false,"defaultValue":"open","expandable":false,"children":[]},{"name":"display_id","type":"`number`","description":"The draft order's display ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart associated with the draft order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart associated with the draft order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order created from the draft order when its payment is captured.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order created from the draft order when its payment is captured.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date the draft order was canceled at.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"completed_at","type":"`Date`","description":"The date the draft order was completed at.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification_order","type":"`boolean`","description":"Whether to send the customer notifications regarding order updates.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the cart associated with the draft order in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"edits","type":"[OrderEdit](../entities/classes/entities.OrderEdit.mdx)[]","description":"The details of the order edits done on the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The order edit's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that is edited","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that this order edit was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"changes","type":"[OrderItemChange](../entities/classes/entities.OrderItemChange.mdx)[]","description":"The details of all the changes on the original order's line items.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"created_by","type":"`string`","description":"The unique identifier of the user or customer who created the order edit.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the cloned items from the original order with the new changes. Once the order edit is confirmed, these line items are associated with the original order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment_collection_id","type":"`string`","description":"The ID of the payment collection","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_collection","type":"[PaymentCollection](../entities/classes/entities.PaymentCollection.mdx)","description":"The details of the payment collection used to authorize additional payment if necessary.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_total","type":"`number`","description":"The total of the shipping amount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`number`","description":"The total of discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the edited order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`number`","description":"The total of subtotal","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`number`","description":"The total of the gift card amount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_tax_total","type":"`number`","description":"The total of the gift card tax amount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"difference_due","type":"`number`","description":"The difference between the total amount of the order and total amount of edited order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"status","type":"[OrderEditStatus](../entities/enums/entities.OrderEditStatus.mdx)","description":"The status of the order edit.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"internal_note","type":"`string`","description":"An optional note with additional details about the order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requested_by","type":"`string`","description":"The unique identifier of the user or customer who requested the order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"requested_at","type":"`Date`","description":"The date with timezone at which the edit was requested.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"confirmed_by","type":"`string`","description":"The unique identifier of the user or customer who confirmed the order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"confirmed_at","type":"`Date`","description":"The date with timezone at which the edit was confirmed.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"declined_by","type":"`string`","description":"The unique identifier of the user or customer who declined the order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"declined_reason","type":"`string`","description":"An optional note why  the order edit is declined.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"declined_at","type":"`Date`","description":"The date with timezone at which the edit was declined.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_by","type":"`string`","description":"The unique identifier of the user or customer who cancelled the order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the edit was cancelled.","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that belong to the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The line item's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the line item may belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the line item may belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`null` \\| `string`","description":"The ID of the order that the line item may belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the line item may belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swap_id","type":"`string`","description":"The ID of the swap that the line item may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the line item may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claim_order_id","type":"`string`","description":"The ID of the claim that the line item may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the line item may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_lines","type":"[LineItemTaxLine](../entities/classes/entities.LineItemTaxLine.mdx)[]","description":"The details of the item's tax lines.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"adjustments","type":"[LineItemAdjustment](../entities/classes/entities.LineItemAdjustment.mdx)[]","description":"The details of the item's adjustments, which are available when a discount is applied on the item.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"title","type":"`string`","description":"The title of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A more detailed description of the contents of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL string to a small image of the contents of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_return","type":"`boolean`","description":"Is the item being returned","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Flag to indicate if the Line Item is a Gift Card.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"should_merge","type":"`boolean`","description":"Flag to indicate if new Line Items with the same variant should be merged or added as an additional Line Item.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"allow_discounts","type":"`boolean`","description":"Flag to indicate if the Line Item should be included when doing discount calculations.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"has_shipping","type":"`null` \\| `boolean`","description":"Flag to indicate if the Line Item has fulfillment associated with it.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"unit_price","type":"`number`","description":"The price of one unit of the content in the Line Item. This should be in the currency defined by the Cart/Order/Swap/Claim that the Line Item belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"variant_id","type":"`null` \\| `string`","description":"The id of the Product Variant contained in the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"variant","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)","description":"The details of the product variant that this item was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"product_id","type":"`null` \\| `string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"quantity","type":"`number`","description":"The quantity of the content in the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfilled_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been fulfilled.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"returned_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been returned.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been shipped.","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":"includes_tax","type":"`boolean`","description":"Indicates if the line item unit\\_price include tax","optional":false,"defaultValue":"false","expandable":false,"featureFlag":"tax_inclusive_pricing","children":[]},{"name":"original_item_id","type":"`null` \\| `string`","description":"The ID of the original line item. This is useful if the line item belongs to a resource that references an order, such as a return or an order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order_edit_id","type":"`null` \\| `string`","description":"The ID of the order edit that the item may belong to.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order_edit","type":"`null` \\| [OrderEdit](../entities/classes/entities.OrderEdit.mdx)","description":"The details of the order edit.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"refundable","type":"`null` \\| `number`","description":"The amount that can be refunded from the given Line Item. Takes taxes and discounts into consideration.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`null` \\| `number`","description":"The subtotal of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`null` \\| `number`","description":"The total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"original_total","type":"`null` \\| `number`","description":"The original total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"original_tax_total","type":"`null` \\| `number`","description":"The original tax total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`null` \\| `number`","description":"The total of discount of the line item rounded","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`null` \\| `number`","description":"The total of discount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`null` \\| `number`","description":"The total of the gift card of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"gift_card_transactions","type":"[GiftCardTransaction](../entities/classes/entities.GiftCardTransaction.mdx)[]","description":"The gift card transactions made in the order.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The gift card transaction's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_id","type":"`string`","description":"The ID of the Gift Card that was used in the transaction.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card","type":"[GiftCard](../entities/classes/entities.GiftCard.mdx)","description":"The details of the gift card associated used in this transaction.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the gift card was used for payment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the gift card was used for payment.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"amount","type":"`number`","description":"The amount that was used from the Gift Card.","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":"is_taxable","type":"`boolean`","description":"Whether the transaction is taxable or not.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_rate","type":"`null` \\| `number`","description":"The tax rate of the transaction","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"canceled_at","type":"`Date`","description":"The date the order was canceled on.","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":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the processing of the order in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The ID of an external order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel_id","type":"`null` \\| `string`","description":"The ID of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)","description":"The details of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The sales channel's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"`string`","description":"The name of the sales channel.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"The description of the sales channel.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_disabled","type":"`boolean`","description":"Specify if the sales channel is enabled or disabled.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"carts","type":"[Cart](../entities/classes/entities.Cart.mdx)[]","description":"The associated carts.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"orders","type":"[Order](../entities/classes/entities.Order.mdx)[]","description":"The associated orders.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"publishableKeys","type":"[PublishableApiKey](../entities/classes/entities.PublishableApiKey.mdx)[]","description":"The associated publishable API keys.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"locations","type":"[SalesChannelLocation](../entities/classes/entities.SalesChannelLocation.mdx)[]","description":"The details of the stock locations related to the sales channel.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"shipping_total","type":"`number`","description":"The total of shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_tax_total","type":"`null` \\| `number`","description":"The tax total applied on shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`number`","description":"The total of discount rounded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`number`","description":"The total of discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"item_tax_total","type":"`null` \\| `number`","description":"The tax total applied on items","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refunded_total","type":"`number`","description":"The total amount refunded if the order is returned.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`number`","description":"The subtotal of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"paid_total","type":"`number`","description":"The total amount paid","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refundable_amount","type":"`number`","description":"The amount that can be refunded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`number`","description":"The total of gift cards","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_tax_total","type":"`number`","description":"The total of gift cards with taxes","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The associated sales channels.","optional":true,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[{"name":"id","type":"`string`","description":"The sales channel's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"name","type":"`string`","description":"The name of the sales channel.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"The description of the sales channel.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_disabled","type":"`boolean`","description":"Specify if the sales channel is enabled or disabled.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"carts","type":"[Cart](../entities/classes/entities.Cart.mdx)[]","description":"The associated carts.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"orders","type":"[Order](../entities/classes/entities.Order.mdx)[]","description":"The associated orders.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"publishableKeys","type":"[PublishableApiKey](../entities/classes/entities.PublishableApiKey.mdx)[]","description":"The associated publishable API keys.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"locations","type":"[SalesChannelLocation](../entities/classes/entities.SalesChannelLocation.mdx)[]","description":"The details of the stock locations related to the sales channel.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"returnable_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that are returnable as part of the order, swaps, or claims","optional":true,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The line item's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the line item may belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the line item may belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"order_id","type":"`null` \\| `string`","description":"The ID of the order that the line item may belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the line item may belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swap_id","type":"`string`","description":"The ID of the swap that the line item may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the line item may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claim_order_id","type":"`string`","description":"The ID of the claim that the line item may belong to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the line item may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_lines","type":"[LineItemTaxLine](../entities/classes/entities.LineItemTaxLine.mdx)[]","description":"The details of the item's tax lines.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"adjustments","type":"[LineItemAdjustment](../entities/classes/entities.LineItemAdjustment.mdx)[]","description":"The details of the item's adjustments, which are available when a discount is applied on the item.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"title","type":"`string`","description":"The title of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A more detailed description of the contents of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL string to a small image of the contents of the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_return","type":"`boolean`","description":"Is the item being returned","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Flag to indicate if the Line Item is a Gift Card.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"should_merge","type":"`boolean`","description":"Flag to indicate if new Line Items with the same variant should be merged or added as an additional Line Item.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"allow_discounts","type":"`boolean`","description":"Flag to indicate if the Line Item should be included when doing discount calculations.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"has_shipping","type":"`null` \\| `boolean`","description":"Flag to indicate if the Line Item has fulfillment associated with it.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"unit_price","type":"`number`","description":"The price of one unit of the content in the Line Item. This should be in the currency defined by the Cart/Order/Swap/Claim that the Line Item belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"variant_id","type":"`null` \\| `string`","description":"The id of the Product Variant contained in the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"variant","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)","description":"The details of the product variant that this item was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"product_id","type":"`null` \\| `string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"quantity","type":"`number`","description":"The quantity of the content in the Line Item.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfilled_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been fulfilled.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"returned_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been returned.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_quantity","type":"`null` \\| `number`","description":"The quantity of the Line Item that has been shipped.","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":"includes_tax","type":"`boolean`","description":"Indicates if the line item unit\\_price include tax","optional":false,"defaultValue":"false","expandable":false,"featureFlag":"tax_inclusive_pricing","children":[]},{"name":"original_item_id","type":"`null` \\| `string`","description":"The ID of the original line item. This is useful if the line item belongs to a resource that references an order, such as a return or an order edit.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order_edit_id","type":"`null` \\| `string`","description":"The ID of the order edit that the item may belong to.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order_edit","type":"`null` \\| [OrderEdit](../entities/classes/entities.OrderEdit.mdx)","description":"The details of the order edit.","optional":true,"defaultValue":"","expandable":true,"children":[]},{"name":"refundable","type":"`null` \\| `number`","description":"The amount that can be refunded from the given Line Item. Takes taxes and discounts into consideration.","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`null` \\| `number`","description":"The subtotal of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`null` \\| `number`","description":"The total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"original_total","type":"`null` \\| `number`","description":"The original total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"original_tax_total","type":"`null` \\| `number`","description":"The original tax total amount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`null` \\| `number`","description":"The total of discount of the line item rounded","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`null` \\| `number`","description":"The total of discount of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`null` \\| `number`","description":"The total of the gift card of the line item","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"context","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"productVariantInventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"locationId","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context.productVariantInventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelService_","type":"[SalesChannelService](../services/classes/services.SalesChannelService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"Events","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantRepository_","type":"Repository&#60;[ProductVariant](../entities/classes/entities.ProductVariant.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productRepository_","type":"Repository&#60;[Product](../entities/classes/entities.Product.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBus_","type":"[EventBusService](../services/classes/services.EventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"regionService_","type":"[RegionService](../services/classes/services.RegionService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"priceSelectionStrategy_","type":"[IPriceSelectionStrategy](../medusa/interfaces/medusa.IPriceSelectionStrategy.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"moneyAmountRepository_","type":"Repository&#60;[MoneyAmount](../entities/classes/entities.MoneyAmount.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productOptionValueRepository_","type":"Repository&#60;[ProductOptionValue](../entities/classes/entities.ProductOptionValue.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cartRepository_","type":"Repository&#60;[Cart](../entities/classes/entities.Cart.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context.locationId","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="reserveQuantityForDraftOrder"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="reserveQuantityForDraftOrder"/>

### unauthenticatedInviteRoutes

#### Parameters

<TypeList types={[{"name":"app","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="unauthenticatedInviteRoutes"/>

#### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="unauthenticatedInviteRoutes"/>

### adjustInventoryForCancelledFulfillment

#### Parameters

<TypeList types={[{"name":"fulfillment","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)","description":"A Fulfillment is created once an admin can prepare the purchased goods. Fulfillments will eventually be shipped and hold information about how to track shipments. Fulfillments are created through a fulfillment provider, which typically integrates a third-party shipping service. Fulfillments can be associated with orders, claims, swaps, and returns.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The fulfillment's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order_id","type":"`string`","description":"The ID of the Claim that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The claim's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[ClaimPaymentStatus](../entities/enums/entities.ClaimPaymentStatus.mdx)","description":"The status of the claim's payment","optional":false,"defaultValue":"na","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[ClaimFulfillmentStatus](../entities/enums/entities.ClaimFulfillmentStatus.mdx)","description":"The claim's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[]},{"name":"claim_items","type":"[ClaimItem](../entities/classes/entities.ClaimItem.mdx)[]","description":"The details of the items that should be replaced or refunded.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new items to be shipped when the claim's type is `replace`","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type","type":"[ClaimType](../entities/enums/entities.ClaimType.mdx)","description":"The claim's type","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the claim comes from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that this claim was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return associated with the claim if the claim's type is `replace`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The ID of the address that the new items should be shipped to","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the address that new items should be shipped to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods that the claim order will be shipped with.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The fulfillments of the new items to be shipped","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"refund_amount","type":"`number`","description":"The amount that will be refunded in conjunction with the claim","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the claim was canceled.","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the cart associated with the claim in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"swap_id","type":"`string`","description":"The ID of the Swap that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The swap's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[SwapFulfillmentStatus](../entities/enums/entities.SwapFulfillmentStatus.mdx)","description":"The status of the Fulfillment of the Swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[SwapPaymentStatus](../entities/enums/entities.SwapPaymentStatus.mdx)","description":"The status of the Payment of the Swap. The payment may either refer to the refund of an amount or the authorization of a new amount.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new products to send to the customer, represented as line items.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return that belongs to the swap, which holds the details on the items being returned.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments that are used to send the new items to the customer.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment","type":"[Payment](../entities/classes/entities.Payment.mdx)","description":"The details of the additional payment authorized by the customer when `difference\\_due` is positive.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"difference_due","type":"`number`","description":"The difference amount between the order’s original total and the new total imposed by the swap. If its value is negative, a refund must be issues to the customer. If it's positive, additional payment must be authorized by the customer. Otherwise, no payment processing is required.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The Address to send the new Line Items to - in most cases this will be the same as the shipping address on the Order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address that the new items should be sent to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used to fulfill the additional items purchased.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"confirmed_at","type":"`Date`","description":"The date with timezone at which the Swap was confirmed by the Customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Swap was canceled.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"If set to true, no notification will be sent related to this swap","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"allow_backorder","type":"`boolean`","description":"If true, swaps can be completed with items out of stock","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the swap in case of failure.","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":"order_id","type":"`string`","description":"The ID of the Order that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The order's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"object","type":"`\"order\"`","description":"","optional":false,"defaultValue":"\"order\"","expandable":false,"children":[]},{"name":"status","type":"[OrderStatus](../entities/enums/entities.OrderStatus.mdx)","description":"The order's status","optional":false,"defaultValue":"pending","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[FulfillmentStatus](../entities/enums/entities.FulfillmentStatus.mdx)","description":"The order's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[]},{"name":"payment_status","type":"[PaymentStatus](../entities/enums/entities.PaymentStatus.mdx)","description":"The order's payment status","optional":false,"defaultValue":"not_paid","expandable":false,"children":[]},{"name":"display_id","type":"`number`","description":"The order's display ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"customer_id","type":"`string`","description":"The ID of the customer associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"[Customer](../entities/classes/entities.Customer.mdx)","description":"The details of the customer associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"email","type":"`string`","description":"The email associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address_id","type":"`string`","description":"The ID of the billing address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the billing address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The ID of the shipping address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"region_id","type":"`string`","description":"The ID of the region this order was created in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region","type":"[Region](../entities/classes/entities.Region.mdx)","description":"The details of the region this order was created in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"currency_code","type":"`string`","description":"The 3 character currency code that is used in the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency","type":"[Currency](../entities/classes/entities.Currency.mdx)","description":"The details of the currency used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_rate","type":"`null` \\| `number`","description":"The order's tax rate","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discounts","type":"[Discount](../entities/classes/entities.Discount.mdx)[]","description":"The details of the discounts applied on the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"gift_cards","type":"[GiftCard](../entities/classes/entities.GiftCard.mdx)[]","description":"The details of the gift card used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payments","type":"[Payment](../entities/classes/entities.Payment.mdx)[]","description":"The details of the payments used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"returns","type":"[Return](../entities/classes/entities.Return.mdx)[]","description":"The details of the returns created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claims","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)[]","description":"The details of the claims created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"refunds","type":"[Refund](../entities/classes/entities.Refund.mdx)[]","description":"The details of the refunds created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swaps","type":"[Swap](../entities/classes/entities.Swap.mdx)[]","description":"The details of the swaps created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"draft_order_id","type":"`string`","description":"The ID of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"draft_order","type":"[DraftOrder](../entities/classes/entities.DraftOrder.mdx)","description":"The details of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"edits","type":"[OrderEdit](../entities/classes/entities.OrderEdit.mdx)[]","description":"The details of the order edits done on the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that belong to the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"gift_card_transactions","type":"[GiftCardTransaction](../entities/classes/entities.GiftCardTransaction.mdx)[]","description":"The gift card transactions made in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date the order was canceled on.","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":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the processing of the order in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The ID of an external order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel_id","type":"`null` \\| `string`","description":"The ID of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)","description":"The details of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_total","type":"`number`","description":"The total of shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_tax_total","type":"`null` \\| `number`","description":"The tax total applied on shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`number`","description":"The total of discount rounded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`number`","description":"The total of discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"item_tax_total","type":"`null` \\| `number`","description":"The tax total applied on items","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refunded_total","type":"`number`","description":"The total amount refunded if the order is returned.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`number`","description":"The subtotal of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"paid_total","type":"`number`","description":"The total amount paid","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refundable_amount","type":"`number`","description":"The amount that can be refunded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`number`","description":"The total of gift cards","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_tax_total","type":"`number`","description":"The total of gift cards with taxes","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The associated sales channels.","optional":true,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"returnable_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that are returnable as part of the order, swaps, or claims","optional":true,"defaultValue":"","expandable":true,"children":[]}]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be sent.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"The ID of the Fulfillment Provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"location_id","type":"`null` \\| `string`","description":"The ID of the stock location the fulfillment will be shipped from","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider","type":"[FulfillmentProvider](../entities/classes/entities.FulfillmentProvider.mdx)","description":"The details of the fulfillment provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","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":"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":"true","expandable":false,"children":[]}]},{"name":"items","type":"[FulfillmentItem](../entities/classes/entities.FulfillmentItem.mdx)[]","description":"The Fulfillment Items in the Fulfillment. These hold information about how many of each Line Item has been fulfilled.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"fulfillment_id","type":"`string`","description":"The ID of the Fulfillment that the Fulfillment Item belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"item_id","type":"`string`","description":"The ID of the Line Item that the Fulfillment Item references.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)","description":"The details of the fulfillment.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"item","type":"[LineItem](../entities/classes/entities.LineItem.mdx)","description":"The details of the line item.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"quantity","type":"`number`","description":"The quantity of the Line Item that is included in the Fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"tracking_links","type":"[TrackingLink](../entities/classes/entities.TrackingLink.mdx)[]","description":"The Tracking Links that can be used to track the status of the Fulfillment. These will usually be provided by the Fulfillment Provider.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The tracking link's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"url","type":"`string`","description":"The URL at which the status of the shipment can be tracked.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tracking_number","type":"`string`","description":"The tracking number given by the shipping carrier.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_id","type":"`string`","description":"The ID of the fulfillment that the tracking link belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)","description":"The details of the fulfillment that the tracking link belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of a process in case of failure.","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":"tracking_numbers","type":"`string`[]","description":"The tracking numbers that can be used to track the status of the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"This contains all the data necessary for the Fulfillment provider to handle the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was shipped.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was canceled.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the fulfillment in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"productVariantInventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]},{"name":"context.productVariantInventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelService_","type":"[SalesChannelService](../services/classes/services.SalesChannelService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"Events","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantRepository_","type":"Repository&#60;[ProductVariant](../entities/classes/entities.ProductVariant.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productRepository_","type":"Repository&#60;[Product](../entities/classes/entities.Product.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBus_","type":"[EventBusService](../services/classes/services.EventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"regionService_","type":"[RegionService](../services/classes/services.RegionService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"priceSelectionStrategy_","type":"[IPriceSelectionStrategy](../medusa/interfaces/medusa.IPriceSelectionStrategy.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"moneyAmountRepository_","type":"Repository&#60;[MoneyAmount](../entities/classes/entities.MoneyAmount.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productOptionValueRepository_","type":"Repository&#60;[ProductOptionValue](../entities/classes/entities.ProductOptionValue.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cartRepository_","type":"Repository&#60;[Cart](../entities/classes/entities.Cart.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="adjustInventoryForCancelledFulfillment"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="adjustInventoryForCancelledFulfillment"/>

### updateInventoryAndReservations

#### Parameters

<TypeList types={[{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The fulfillment's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order_id","type":"`string`","description":"The ID of the Claim that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"claim_order","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)","description":"The details of the claim that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The claim's ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[ClaimPaymentStatus](../entities/enums/entities.ClaimPaymentStatus.mdx)","description":"The status of the claim's payment","optional":false,"defaultValue":"na","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[ClaimFulfillmentStatus](../entities/enums/entities.ClaimFulfillmentStatus.mdx)","description":"The claim's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[]},{"name":"claim_items","type":"[ClaimItem](../entities/classes/entities.ClaimItem.mdx)[]","description":"The details of the items that should be replaced or refunded.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new items to be shipped when the claim's type is `replace`","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type","type":"[ClaimType](../entities/enums/entities.ClaimType.mdx)","description":"The claim's type","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the claim comes from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that this claim was created for.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return associated with the claim if the claim's type is `replace`.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The ID of the address that the new items should be shipped to","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the address that new items should be shipped to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods that the claim order will be shipped with.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The fulfillments of the new items to be shipped","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"refund_amount","type":"`number`","description":"The amount that will be refunded in conjunction with the claim","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the claim was canceled.","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the cart associated with the claim in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"swap_id","type":"`string`","description":"The ID of the Swap that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"swap","type":"[Swap](../entities/classes/entities.Swap.mdx)","description":"The details of the swap that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The swap's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[SwapFulfillmentStatus](../entities/enums/entities.SwapFulfillmentStatus.mdx)","description":"The status of the Fulfillment of the Swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"payment_status","type":"[SwapPaymentStatus](../entities/enums/entities.SwapPaymentStatus.mdx)","description":"The status of the Payment of the Swap. The payment may either refer to the refund of an amount or the authorization of a new amount.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order_id","type":"`string`","description":"The ID of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the swap belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"additional_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the new products to send to the customer, represented as line items.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"return_order","type":"[Return](../entities/classes/entities.Return.mdx)","description":"The details of the return that belongs to the swap, which holds the details on the items being returned.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments that are used to send the new items to the customer.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payment","type":"[Payment](../entities/classes/entities.Payment.mdx)","description":"The details of the additional payment authorized by the customer when `difference\\_due` is positive.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"difference_due","type":"`number`","description":"The difference amount between the order’s original total and the new total imposed by the swap. If its value is negative, a refund must be issues to the customer. If it's positive, additional payment must be authorized by the customer. Otherwise, no payment processing is required.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The Address to send the new Line Items to - in most cases this will be the same as the shipping address on the Order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address that the new items should be sent to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used to fulfill the additional items purchased.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart that the customer uses to complete the swap.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"confirmed_at","type":"`Date`","description":"The date with timezone at which the Swap was confirmed by the Customer.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Swap was canceled.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"no_notification","type":"`boolean`","description":"If set to true, no notification will be sent related to this swap","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"allow_backorder","type":"`boolean`","description":"If true, swaps can be completed with items out of stock","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the swap in case of failure.","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":"order_id","type":"`string`","description":"The ID of the Order that the Fulfillment belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"[Order](../entities/classes/entities.Order.mdx)","description":"The details of the order that the fulfillment may belong to.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The order's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"object","type":"`\"order\"`","description":"","optional":false,"defaultValue":"\"order\"","expandable":false,"children":[]},{"name":"status","type":"[OrderStatus](../entities/enums/entities.OrderStatus.mdx)","description":"The order's status","optional":false,"defaultValue":"pending","expandable":false,"children":[]},{"name":"fulfillment_status","type":"[FulfillmentStatus](../entities/enums/entities.FulfillmentStatus.mdx)","description":"The order's fulfillment status","optional":false,"defaultValue":"not_fulfilled","expandable":false,"children":[]},{"name":"payment_status","type":"[PaymentStatus](../entities/enums/entities.PaymentStatus.mdx)","description":"The order's payment status","optional":false,"defaultValue":"not_paid","expandable":false,"children":[]},{"name":"display_id","type":"`number`","description":"The order's display ID","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart_id","type":"`string`","description":"The ID of the cart associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cart","type":"[Cart](../entities/classes/entities.Cart.mdx)","description":"The details of the cart associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"customer_id","type":"`string`","description":"The ID of the customer associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"customer","type":"[Customer](../entities/classes/entities.Customer.mdx)","description":"The details of the customer associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"email","type":"`string`","description":"The email associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address_id","type":"`string`","description":"The ID of the billing address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"billing_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the billing address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_address_id","type":"`string`","description":"The ID of the shipping address associated with the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_address","type":"[Address](../entities/classes/entities.Address.mdx)","description":"The details of the shipping address associated with the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"region_id","type":"`string`","description":"The ID of the region this order was created in.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"region","type":"[Region](../entities/classes/entities.Region.mdx)","description":"The details of the region this order was created in.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"currency_code","type":"`string`","description":"The 3 character currency code that is used in the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"currency","type":"[Currency](../entities/classes/entities.Currency.mdx)","description":"The details of the currency used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tax_rate","type":"`null` \\| `number`","description":"The order's tax rate","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discounts","type":"[Discount](../entities/classes/entities.Discount.mdx)[]","description":"The details of the discounts applied on the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"gift_cards","type":"[GiftCard](../entities/classes/entities.GiftCard.mdx)[]","description":"The details of the gift card used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_methods","type":"[ShippingMethod](../entities/classes/entities.ShippingMethod.mdx)[]","description":"The details of the shipping methods used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"payments","type":"[Payment](../entities/classes/entities.Payment.mdx)[]","description":"The details of the payments used in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"fulfillments","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)[]","description":"The details of the fulfillments created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"returns","type":"[Return](../entities/classes/entities.Return.mdx)[]","description":"The details of the returns created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"claims","type":"[ClaimOrder](../entities/classes/entities.ClaimOrder.mdx)[]","description":"The details of the claims created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"refunds","type":"[Refund](../entities/classes/entities.Refund.mdx)[]","description":"The details of the refunds created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"swaps","type":"[Swap](../entities/classes/entities.Swap.mdx)[]","description":"The details of the swaps created for the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"draft_order_id","type":"`string`","description":"The ID of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"draft_order","type":"[DraftOrder](../entities/classes/entities.DraftOrder.mdx)","description":"The details of the draft order this order was created from.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"edits","type":"[OrderEdit](../entities/classes/entities.OrderEdit.mdx)[]","description":"The details of the order edits done on the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that belong to the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"gift_card_transactions","type":"[GiftCardTransaction](../entities/classes/entities.GiftCardTransaction.mdx)[]","description":"The gift card transactions made in the order.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date the order was canceled on.","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":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be send.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the processing of the order in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The ID of an external order.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel_id","type":"`null` \\| `string`","description":"The ID of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channel","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)","description":"The details of the sales channel this order belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"shipping_total","type":"`number`","description":"The total of shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipping_tax_total","type":"`null` \\| `number`","description":"The tax total applied on shipping","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"discount_total","type":"`number`","description":"The total of discount rounded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"raw_discount_total","type":"`number`","description":"The total of discount","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"item_tax_total","type":"`null` \\| `number`","description":"The tax total applied on items","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tax_total","type":"`null` \\| `number`","description":"The total of tax","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refunded_total","type":"`number`","description":"The total amount refunded if the order is returned.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"total","type":"`number`","description":"The total amount of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtotal","type":"`number`","description":"The subtotal of the order","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"paid_total","type":"`number`","description":"The total amount paid","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"refundable_amount","type":"`number`","description":"The amount that can be refunded","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_total","type":"`number`","description":"The total of gift cards","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"gift_card_tax_total","type":"`number`","description":"The total of gift cards with taxes","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The associated sales channels.","optional":true,"defaultValue":"","expandable":true,"featureFlag":"medusa_v2","children":[]},{"name":"returnable_items","type":"[LineItem](../entities/classes/entities.LineItem.mdx)[]","description":"The details of the line items that are returnable as part of the order, swaps, or claims","optional":true,"defaultValue":"","expandable":true,"children":[]}]},{"name":"no_notification","type":"`boolean`","description":"Flag for describing whether or not notifications related to this should be sent.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider_id","type":"`string`","description":"The ID of the Fulfillment Provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"location_id","type":"`null` \\| `string`","description":"The ID of the stock location the fulfillment will be shipped from","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"provider","type":"[FulfillmentProvider](../entities/classes/entities.FulfillmentProvider.mdx)","description":"The details of the fulfillment provider responsible for handling the fulfillment.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","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":"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":"true","expandable":false,"children":[]}]},{"name":"items","type":"[FulfillmentItem](../entities/classes/entities.FulfillmentItem.mdx)[]","description":"The Fulfillment Items in the Fulfillment. These hold information about how many of each Line Item has been fulfilled.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"fulfillment_id","type":"`string`","description":"The ID of the Fulfillment that the Fulfillment Item belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"item_id","type":"`string`","description":"The ID of the Line Item that the Fulfillment Item references.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)","description":"The details of the fulfillment.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"item","type":"[LineItem](../entities/classes/entities.LineItem.mdx)","description":"The details of the line item.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"quantity","type":"`number`","description":"The quantity of the Line Item that is included in the Fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"tracking_links","type":"[TrackingLink](../entities/classes/entities.TrackingLink.mdx)[]","description":"The Tracking Links that can be used to track the status of the Fulfillment. These will usually be provided by the Fulfillment Provider.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The tracking link's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"url","type":"`string`","description":"The URL at which the status of the shipment can be tracked.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"tracking_number","type":"`string`","description":"The tracking number given by the shipping carrier.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment_id","type":"`string`","description":"The ID of the fulfillment that the tracking link belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fulfillment","type":"[Fulfillment](../entities/classes/entities.Fulfillment.mdx)","description":"The details of the fulfillment that the tracking link belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of a process in case of failure.","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":"tracking_numbers","type":"`string`[]","description":"The tracking numbers that can be used to track the status of the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"data","type":"`Record<string, unknown>`","description":"This contains all the data necessary for the Fulfillment provider to handle the fulfillment.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"shipped_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was shipped.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"canceled_at","type":"`Date`","description":"The date with timezone at which the Fulfillment was canceled.","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":"idempotency_key","type":"`string`","description":"Randomly generated key used to continue the completion of the fulfillment in case of failure.","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"inventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"locationId","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context.inventoryService","type":"[ProductVariantInventoryService](../services/classes/services.ProductVariantInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelService_","type":"[SalesChannelService](../services/classes/services.SalesChannelService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"salesChannelInventoryService_","type":"[SalesChannelInventoryService](../services/classes/services.SalesChannelInventoryService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"salesChannelLocationService_","type":"[SalesChannelLocationService](../services/classes/services.SalesChannelLocationService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"productVariantService_","type":"[ProductVariantService](../services/classes/services.ProductVariantService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"manager_","type":"`EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"transactionManager_","type":"`undefined` \\| `EntityManager`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__container__","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"Events","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productVariantRepository_","type":"Repository&#60;[ProductVariant](../entities/classes/entities.ProductVariant.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productRepository_","type":"Repository&#60;[Product](../entities/classes/entities.Product.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"eventBus_","type":"[EventBusService](../services/classes/services.EventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"regionService_","type":"[RegionService](../services/classes/services.RegionService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"priceSelectionStrategy_","type":"[IPriceSelectionStrategy](../medusa/interfaces/medusa.IPriceSelectionStrategy.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"moneyAmountRepository_","type":"Repository&#60;[MoneyAmount](../entities/classes/entities.MoneyAmount.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"productOptionValueRepository_","type":"Repository&#60;[ProductOptionValue](../entities/classes/entities.ProductOptionValue.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"cartRepository_","type":"Repository&#60;[Cart](../entities/classes/entities.Cart.mdx)&#62; & `object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"eventBusService_","type":"[IEventBusService](../types/EventBusTypes/interfaces/types.EventBusTypes.IEventBusService.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"featureFlagRouter_","type":"`FlagRouter`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQuery_","type":"[RemoteQueryFunction](../types/ModulesSdkTypes/types/types.ModulesSdkTypes.RemoteQueryFunction.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__configModule__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__moduleDeclaration__","type":"`Record<string, unknown>`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"context.locationId","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="updateInventoryAndReservations"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;void&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="updateInventoryAndReservations"/>

### unauthenticatedUserRoutes

#### Parameters

<TypeList types={[{"name":"app","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="unauthenticatedUserRoutes"/>

#### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="unauthenticatedUserRoutes"/>

### isPaymentProcessorError

#### Parameters

<TypeList types={[{"name":"obj","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="isPaymentProcessorError"/>

#### Returns

<TypeList types={[{"name":"obj","type":"obj is PaymentProcessorError","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="isPaymentProcessorError"/>

### extendedFindParamsMixin

#### Parameters

<TypeList types={[{"name":"__namedParameters","type":"`object`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[{"name":"limit","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"offset","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"__namedParameters.limit","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"__namedParameters.offset","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="extendedFindParamsMixin"/>

#### Returns

<TypeList types={[{"name":"ClassConstructor","type":"[ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)&#60;[FindParams](../medusa/classes/medusa.FindParams.mdx) & [FindPaginationParams](../medusa/classes/medusa.FindPaginationParams.mdx)&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"FindParams","type":"`object`","description":"Parameters that can be used to configure how data is retrieved.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"FindPaginationParams","type":"`object`","description":"Parameters that can be used to configure how a list of data is paginated.","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="extendedFindParamsMixin"/>

### buildQuery

Used to build TypeORM queries.

#### Type Parameters

<TypeList types={[{"name":"TWhereKeys","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"TEntity","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="buildQuery"/>

#### Parameters

<TypeList types={[{"name":"selector","type":"TWhereKeys","description":"The selector","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"[FindConfig](../medusa/interfaces/medusa.FindConfig.mdx)&#60;TEntity&#62;","description":"The config","optional":false,"defaultValue":"{}","expandable":false,"children":[{"name":"select","type":"keyof Entity[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"skip","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"take","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"relations","type":"`string`[]","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"order","type":"`object`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}]}  sectionTitle="buildQuery"/>

#### Returns

<TypeList types={[{"name":"ExtendedFindConfig","type":"[ExtendedFindConfig](../medusa/types/medusa.ExtendedFindConfig.mdx)&#60;TEntity&#62;","optional":false,"defaultValue":"","description":"The QueryBuilderConfig","expandable":false,"children":[{"name":"TEntity","type":"TEntity","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="buildQuery"/>

### buildLegacyFieldsListFrom

Revert new object structure of find options to the legacy structure of previous version

#### Example

```ts
input: {
  test: {
    test1: true,
    test2: true,
    test3: {
      test4: true
    },
  },
  test2: true
}
output: ['test.test1', 'test.test2', 'test.test3.test4', 'test2']
```

#### Type Parameters

<TypeList types={[{"name":"TEntity","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="buildLegacyFieldsListFrom"/>

#### Parameters

<TypeList types={[{"name":"input","type":"FindOptionsWhere&#60;TEntity&#62; \\| FindOptionsSelect&#60;TEntity&#62; \\| FindOptionsOrder&#60;TEntity&#62; \\| FindOptionsRelations&#60;TEntity&#62;","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[]}]}  sectionTitle="buildLegacyFieldsListFrom"/>

#### Returns

<TypeList types={[{"name":"keyof TEntity[]","type":"keyof TEntity[]","optional":false,"defaultValue":"","description":"Revert new object structure of find options to the legacy structure of previous version","expandable":false,"children":[{"name":"keyof TEntity","type":"keyof TEntity","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="buildLegacyFieldsListFrom"/>

#### Deprecated

in favor of import &#123; objectToStringPath &#125; from "@medusajs/utils"

### addOrderToSelect

#### Type Parameters

<TypeList types={[{"name":"TEntity","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="addOrderToSelect"/>

#### Parameters

<TypeList types={[{"name":"order","type":"FindOptionsOrder&#60;TEntity&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"select","type":"FindOptionsSelect&#60;TEntity&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="addOrderToSelect"/>

#### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="addOrderToSelect"/>

### nullableValue

#### Parameters

<TypeList types={[{"name":"value","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="nullableValue"/>

#### Returns

<TypeList types={[{"name":"FindOperator","type":"FindOperator&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="nullableValue"/>

### calculatePriceTaxAmount

Return the tax amount that

- is includes in the price if it is tax inclusive
- will be applied on to the price if it is tax exclusive

#### Parameters

<TypeList types={[{"name":"__namedParameters","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"price","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"taxRate","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"includesTax","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"__namedParameters.price","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__namedParameters.taxRate","type":"`number`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"__namedParameters.includesTax","type":"`boolean`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="calculatePriceTaxAmount"/>

#### Returns

<TypeList types={[{"name":"number","type":"`number`","optional":false,"defaultValue":"","description":"Return the tax amount that\n\n- is includes in the price if it is tax inclusive\n- will be applied on to the price if it is tax exclusive","expandable":false,"children":[]}]}  sectionTitle="calculatePriceTaxAmount"/>

### cleanResponseData

Filter response data to contain props specified in the `allowedProperties`.
You can read more in the transformQuery middleware utility methods.

#### Type Parameters

<TypeList types={[{"name":"T","type":"`unknown`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="cleanResponseData"/>

#### Parameters

<TypeList types={[{"name":"data","type":"T","description":"record or an array of records in the response","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"fields","type":"`string`[]","description":"record props allowed in the response","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="cleanResponseData"/>

#### Returns

<TypeList types={[{"name":"T extends [] ? Partial&#60;T&#62;[] : Partial&#60;T&#62;","type":"T extends [] ? Partial&#60;T&#62;[] : Partial&#60;T&#62;","optional":false,"defaultValue":"","description":"Filter response data to contain props specified in the `allowedProperties`.\nYou can read more in the transformQuery middleware utility methods.","expandable":false,"children":[]}]}  sectionTitle="cleanResponseData"/>

### csvCellContentFormatter

#### Parameters

<TypeList types={[{"name":"str","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="csvCellContentFormatter"/>

#### Returns

<TypeList types={[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="csvCellContentFormatter"/>

### csvRevertCellContentFormatter

#### Parameters

<TypeList types={[{"name":"str","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="csvRevertCellContentFormatter"/>

#### Returns

<TypeList types={[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="csvRevertCellContentFormatter"/>

### resolveDbType

#### Parameters

<TypeList types={[{"name":"pgSqlType","type":"`ColumnType`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="resolveDbType"/>

#### Returns

<TypeList types={[{"name":"ColumnType","type":"`ColumnType`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="resolveDbType"/>

### resolveDbGenerationStrategy

#### Parameters

<TypeList types={[{"name":"pgSqlType","type":"`\"uuid\"` \\| `\"rowid\"` \\| `\"increment\"`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="resolveDbGenerationStrategy"/>

#### Returns

<TypeList types={[{"name":"\"increment\" \\| \"uuid\" \\| \"rowid\"","type":"`\"increment\"` \\| `\"uuid\"` \\| `\"rowid\"`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="resolveDbGenerationStrategy"/>

### DbAwareColumn

#### Parameters

<TypeList types={[{"name":"columnOptions","type":"`ColumnOptions`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="DbAwareColumn"/>

#### Returns

<TypeList types={[{"name":"PropertyDecorator","type":"`PropertyDecorator`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="DbAwareColumn"/>

### formatException

#### Parameters

<TypeList types={[{"name":"err","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="formatException"/>

#### Returns

<TypeList types={[{"name":"type","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"message","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"date","type":"`Date`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"Types","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"DB_ERROR","type":"`string`","description":"Errors stemming from the database","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"DUPLICATE_ERROR","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"INVALID_ARGUMENT","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"INVALID_DATA","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"UNAUTHORIZED","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"NOT_FOUND","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"NOT_ALLOWED","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"UNEXPECTED_STATE","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"CONFLICT","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"PAYMENT_AUTHORIZATION_ERROR","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"Codes","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"INSUFFICIENT_INVENTORY","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"CART_INCOMPATIBLE_STATE","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]},{"name":"constructor","type":"(`type`: `string`, `message`: `string`, `code?`: `string`, ...`params`: `any`) => [MedusaError](../medusa/classes/medusa.MedusaError.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"code","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="formatException"/>

### generateEntityId

Generate a composed id based on the input parameters and return either the is if it exists or the generated one.

#### Parameters

<TypeList types={[{"name":"idProperty","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"prefix","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="generateEntityId"/>

#### Returns

<TypeList types={[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"Generate a composed id based on the input parameters and return either the is if it exists or the generated one.","expandable":false,"children":[]}]}  sectionTitle="generateEntityId"/>

### hasChanges

Compare two objects and return true if there is changes detected from obj2 compared to obj1

#### Type Parameters

<TypeList types={[{"name":"T1","type":"`Object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"T2","type":"`Object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="hasChanges"/>

#### Parameters

<TypeList types={[{"name":"obj1","type":"T1","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"obj2","type":"T2","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="hasChanges"/>

#### Returns

<TypeList types={[{"name":"boolean","type":"`boolean`","optional":false,"defaultValue":"","description":"Compare two objects and return true if there is changes detected from obj2 compared to obj1","expandable":false,"children":[]}]}  sectionTitle="hasChanges"/>

### isDate

#### Parameters

<TypeList types={[{"name":"value","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="isDate"/>

#### Returns

<TypeList types={[{"name":"value","type":"value is Date","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="isDate"/>

### isObject

#### Parameters

<TypeList types={[{"name":"obj","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="isObject"/>

#### Returns

<TypeList types={[{"name":"obj","type":"obj is object","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="isObject"/>

### isString

#### Parameters

<TypeList types={[{"name":"val","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="isString"/>

#### Returns

<TypeList types={[{"name":"val","type":"val is string","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="isString"/>

### omitDeep

#### Type Parameters

<TypeList types={[{"name":"T","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="omitDeep"/>

#### Parameters

<TypeList types={[{"name":"input","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"excludes","type":"(`string` \\| `number`)[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="omitDeep"/>

#### Returns

<TypeList types={[{"name":"T","type":"T","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="omitDeep"/>

### categoryMatchesScope

#### Parameters

<TypeList types={[{"name":"category","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"A product category can be used to categorize products into a hierarchy of categories.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"title","type":"`string`","description":"A title that can be displayed for easy identification of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtitle","type":"`null` \\| `string`","description":"An optional subtitle that can be used to further specify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A short description of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`null` \\| `string`","description":"A unique identifier for the Product (e.g. for slug structure).","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"status","type":"[ProductStatus](../entities/enums/entities.ProductStatus.mdx)","description":"The status of the product","optional":false,"defaultValue":"draft","expandable":false,"children":[]},{"name":"images","type":"[Image](../entities/classes/entities.Image.mdx)[]","description":"The details of the product's images.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL to an image file that can be used to identify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"[ProductOption](../entities/classes/entities.ProductOption.mdx)[]","description":"The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"variants","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)[]","description":"The details of the Product Variants that belong to the Product. Each will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"categories","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the product categories that this product belongs to.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"product_categories","children":[]},{"name":"profile_id","type":"`string`","description":"The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"profile","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)","description":"The details of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"profiles","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)[]","description":"Available if the relation `profiles` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"weight","type":"`null` \\| `number`","description":"The weight of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"length","type":"`null` \\| `number`","description":"The length of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"height","type":"`null` \\| `number`","description":"The height of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"width","type":"`null` \\| `number`","description":"The width of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"hs_code","type":"`null` \\| `string`","description":"The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"origin_country","type":"`null` \\| `string`","description":"The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"mid_code","type":"`null` \\| `string`","description":"The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"material","type":"`null` \\| `string`","description":"The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection_id","type":"`null` \\| `string`","description":"The ID of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection","type":"[ProductCollection](../entities/classes/entities.ProductCollection.mdx)","description":"The details of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type_id","type":"`null` \\| `string`","description":"The ID of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[ProductType](../entities/classes/entities.ProductType.mdx)","description":"The details of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tags","type":"[ProductTag](../entities/classes/entities.ProductTag.mdx)[]","description":"The details of the product tags used in this product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"discountable","type":"`boolean`","description":"Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to `false`.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The external ID of the product","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The details of the sales channels this product is available in.","optional":false,"defaultValue":"","expandable":true,"children":[]}]}]},{"name":"query","type":"FindOptionsWhere&#60;[ProductCategory](../entities/classes/entities.ProductCategory.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"title","type":"`string`","description":"A title that can be displayed for easy identification of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtitle","type":"`null` \\| `string`","description":"An optional subtitle that can be used to further specify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A short description of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`null` \\| `string`","description":"A unique identifier for the Product (e.g. for slug structure).","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"status","type":"[ProductStatus](../entities/enums/entities.ProductStatus.mdx)","description":"The status of the product","optional":false,"defaultValue":"draft","expandable":false,"children":[]},{"name":"images","type":"[Image](../entities/classes/entities.Image.mdx)[]","description":"The details of the product's images.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL to an image file that can be used to identify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"[ProductOption](../entities/classes/entities.ProductOption.mdx)[]","description":"The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"variants","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)[]","description":"The details of the Product Variants that belong to the Product. Each will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"categories","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the product categories that this product belongs to.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"product_categories","children":[]},{"name":"profile_id","type":"`string`","description":"The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"profile","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)","description":"The details of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"profiles","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)[]","description":"Available if the relation `profiles` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"weight","type":"`null` \\| `number`","description":"The weight of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"length","type":"`null` \\| `number`","description":"The length of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"height","type":"`null` \\| `number`","description":"The height of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"width","type":"`null` \\| `number`","description":"The width of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"hs_code","type":"`null` \\| `string`","description":"The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"origin_country","type":"`null` \\| `string`","description":"The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"mid_code","type":"`null` \\| `string`","description":"The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"material","type":"`null` \\| `string`","description":"The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection_id","type":"`null` \\| `string`","description":"The ID of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection","type":"[ProductCollection](../entities/classes/entities.ProductCollection.mdx)","description":"The details of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type_id","type":"`null` \\| `string`","description":"The ID of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[ProductType](../entities/classes/entities.ProductType.mdx)","description":"The details of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tags","type":"[ProductTag](../entities/classes/entities.ProductTag.mdx)[]","description":"The details of the product tags used in this product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"discountable","type":"`boolean`","description":"Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to `false`.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The external ID of the product","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The details of the sales channels this product is available in.","optional":false,"defaultValue":"","expandable":true,"children":[]}]}]}]}  sectionTitle="categoryMatchesScope"/>

#### Returns

<TypeList types={[{"name":"boolean","type":"`boolean`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="categoryMatchesScope"/>

### fetchCategoryDescendantsIds

#### Parameters

<TypeList types={[{"name":"productCategory","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"A product category can be used to categorize products into a hierarchy of categories.","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"title","type":"`string`","description":"A title that can be displayed for easy identification of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtitle","type":"`null` \\| `string`","description":"An optional subtitle that can be used to further specify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A short description of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`null` \\| `string`","description":"A unique identifier for the Product (e.g. for slug structure).","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"status","type":"[ProductStatus](../entities/enums/entities.ProductStatus.mdx)","description":"The status of the product","optional":false,"defaultValue":"draft","expandable":false,"children":[]},{"name":"images","type":"[Image](../entities/classes/entities.Image.mdx)[]","description":"The details of the product's images.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL to an image file that can be used to identify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"[ProductOption](../entities/classes/entities.ProductOption.mdx)[]","description":"The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"variants","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)[]","description":"The details of the Product Variants that belong to the Product. Each will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"categories","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the product categories that this product belongs to.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"product_categories","children":[]},{"name":"profile_id","type":"`string`","description":"The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"profile","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)","description":"The details of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"profiles","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)[]","description":"Available if the relation `profiles` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"weight","type":"`null` \\| `number`","description":"The weight of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"length","type":"`null` \\| `number`","description":"The length of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"height","type":"`null` \\| `number`","description":"The height of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"width","type":"`null` \\| `number`","description":"The width of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"hs_code","type":"`null` \\| `string`","description":"The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"origin_country","type":"`null` \\| `string`","description":"The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"mid_code","type":"`null` \\| `string`","description":"The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"material","type":"`null` \\| `string`","description":"The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection_id","type":"`null` \\| `string`","description":"The ID of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection","type":"[ProductCollection](../entities/classes/entities.ProductCollection.mdx)","description":"The details of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type_id","type":"`null` \\| `string`","description":"The ID of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[ProductType](../entities/classes/entities.ProductType.mdx)","description":"The details of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tags","type":"[ProductTag](../entities/classes/entities.ProductTag.mdx)[]","description":"The details of the product tags used in this product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"discountable","type":"`boolean`","description":"Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to `false`.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The external ID of the product","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The details of the sales channels this product is available in.","optional":false,"defaultValue":"","expandable":true,"children":[]}]}]},{"name":"query","type":"FindOptionsWhere&#60;[ProductCategory](../entities/classes/entities.ProductCategory.mdx)&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product category's ID","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":"productCategoryProductJoinTable","type":"`string`","description":"","optional":false,"defaultValue":"\"product_category_product\"","expandable":false,"children":[]},{"name":"treeRelations","type":"`string`[]","description":"","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":[]},{"name":"name","type":"`string`","description":"The product category's name","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`string`","description":"The product category's description.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`string`","description":"A unique string that identifies the Product Category - can for example be used in slug structures.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_active","type":"`Boolean`","description":"A flag to make product category visible/hidden in the store front","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"is_internal","type":"`Boolean`","description":"A flag to make product category an internal category for admins","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"parent_category","type":"`null` \\| [ProductCategory](../entities/classes/entities.ProductCategory.mdx)","description":"The details of the parent of this category.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"parent_category_id","type":"`null` \\| `string`","description":"The ID of the parent category.","optional":false,"defaultValue":"null","expandable":false,"children":[]},{"name":"category_children","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the category's children.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[]}]},{"name":"rank","type":"`number`","description":"An integer that depicts the rank of category in a tree node","optional":false,"defaultValue":"0","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":"products","type":"[Product](../entities/classes/entities.Product.mdx)[]","description":"The details of the products that belong to this category.","optional":false,"defaultValue":"","expandable":true,"children":[{"name":"id","type":"`string`","description":"The product's ID","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":"updated_at","type":"`Date`","description":"The date with timezone at which the resource was updated.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"deleted_at","type":"`null` \\| `Date`","description":"The date with timezone at which the resource was deleted.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"title","type":"`string`","description":"A title that can be displayed for easy identification of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"subtitle","type":"`null` \\| `string`","description":"An optional subtitle that can be used to further specify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"description","type":"`null` \\| `string`","description":"A short description of the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"handle","type":"`null` \\| `string`","description":"A unique identifier for the Product (e.g. for slug structure).","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"is_giftcard","type":"`boolean`","description":"Whether the Product represents a Gift Card. Products that represent Gift Cards will automatically generate a redeemable Gift Card code once they are purchased.","optional":false,"defaultValue":"false","expandable":false,"children":[]},{"name":"status","type":"[ProductStatus](../entities/enums/entities.ProductStatus.mdx)","description":"The status of the product","optional":false,"defaultValue":"draft","expandable":false,"children":[]},{"name":"images","type":"[Image](../entities/classes/entities.Image.mdx)[]","description":"The details of the product's images.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"thumbnail","type":"`null` \\| `string`","description":"A URL to an image file that can be used to identify the Product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"options","type":"[ProductOption](../entities/classes/entities.ProductOption.mdx)[]","description":"The details of the Product Options that are defined for the Product. The product's variants will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"variants","type":"[ProductVariant](../entities/classes/entities.ProductVariant.mdx)[]","description":"The details of the Product Variants that belong to the Product. Each will have a unique combination of values of the product's options.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"categories","type":"[ProductCategory](../entities/classes/entities.ProductCategory.mdx)[]","description":"The details of the product categories that this product belongs to.","optional":false,"defaultValue":"","expandable":true,"featureFlag":"product_categories","children":[]},{"name":"profile_id","type":"`string`","description":"The ID of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"profile","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)","description":"The details of the shipping profile that the product belongs to. The shipping profile has a set of defined shipping options that can be used to fulfill the product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"profiles","type":"[ShippingProfile](../entities/classes/entities.ShippingProfile.mdx)[]","description":"Available if the relation `profiles` is expanded.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"weight","type":"`null` \\| `number`","description":"The weight of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"length","type":"`null` \\| `number`","description":"The length of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"height","type":"`null` \\| `number`","description":"The height of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"width","type":"`null` \\| `number`","description":"The width of the Product Variant. May be used in shipping rate calculations.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"hs_code","type":"`null` \\| `string`","description":"The Harmonized System code of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"origin_country","type":"`null` \\| `string`","description":"The country in which the Product Variant was produced. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"mid_code","type":"`null` \\| `string`","description":"The Manufacturers Identification code that identifies the manufacturer of the Product Variant. May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"material","type":"`null` \\| `string`","description":"The material and composition that the Product Variant is made of, May be used by Fulfillment Providers to pass customs information to shipping carriers.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection_id","type":"`null` \\| `string`","description":"The ID of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"collection","type":"[ProductCollection](../entities/classes/entities.ProductCollection.mdx)","description":"The details of the product collection that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"type_id","type":"`null` \\| `string`","description":"The ID of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"type","type":"[ProductType](../entities/classes/entities.ProductType.mdx)","description":"The details of the product type that the product belongs to.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"tags","type":"[ProductTag](../entities/classes/entities.ProductTag.mdx)[]","description":"The details of the product tags used in this product.","optional":false,"defaultValue":"","expandable":true,"children":[]},{"name":"discountable","type":"`boolean`","description":"Whether the Product can be discounted. Discounts will not apply to Line Items of this Product when this flag is set to `false`.","optional":false,"defaultValue":"true","expandable":false,"children":[]},{"name":"external_id","type":"`null` \\| `string`","description":"The external ID of the product","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`null` \\| `Record<string, unknown>`","description":"An optional key-value map with additional details","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"sales_channels","type":"[SalesChannel](../entities/classes/entities.SalesChannel.mdx)[]","description":"The details of the sales channels this product is available in.","optional":false,"defaultValue":"","expandable":true,"children":[]}]}]}]}  sectionTitle="fetchCategoryDescendantsIds"/>

#### Returns

<TypeList types={[{"name":"string[]","type":"`string`[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="fetchCategoryDescendantsIds"/>

### getVariantsFromPriceList

#### Parameters

<TypeList types={[{"name":"container","type":"[MedusaContainer](../medusa/types/medusa.MedusaContainer-2.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"priceListId","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="getVariantsFromPriceList"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;[ProductVariantDTO](../medusa/interfaces/medusa.ProductVariantDTO.mdx)[]&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ProductVariantDTO[]","type":"[ProductVariantDTO](../medusa/interfaces/medusa.ProductVariantDTO.mdx)[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"ProductVariantDTO","type":"`object`","description":"A product variant's data.","optional":false,"defaultValue":"","expandable":false,"children":[]}]}]}]}  sectionTitle="getVariantsFromPriceList"/>

### listProducts

#### Parameters

<TypeList types={[{"name":"container","type":"[MedusaContainer](../medusa/types/medusa.MedusaContainer-2.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"filterableFields","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"listConfig","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="listProducts"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any[]&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any[]","type":"`any`[]","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}]}  sectionTitle="listProducts"/>

### retrieveProduct

#### Parameters

<TypeList types={[{"name":"container","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"id","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"remoteQueryObject","type":"`object`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[]}]}  sectionTitle="retrieveProduct"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="retrieveProduct"/>

### remoteQueryFetchData

#### Parameters

<TypeList types={[{"name":"container","type":"[MedusaContainer](../medusa/types/medusa.MedusaContainer-2.mdx)","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="remoteQueryFetchData"/>

#### Returns

<TypeList types={[{"name":"(expand: any, keyField: any, ids: any, relationship: any) => Promise&#60;any&#62;","type":"(`expand`: `any`, `keyField`: `any`, `ids`: `any`, `relationship`: `any`) => Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="remoteQueryFetchData"/>

##### Parameters

<TypeList types={[{"name":"expand","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"keyField","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"ids","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"relationship","type":"`any`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;any&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"any","type":"`any`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="__type"/>

### removeUndefinedProperties

#### Type Parameters

<TypeList types={[{"name":"T","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="removeUndefinedProperties"/>

#### Parameters

<TypeList types={[{"name":"inputObj","type":"T","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="removeUndefinedProperties"/>

#### Returns

<TypeList types={[{"name":"T","type":"T","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="removeUndefinedProperties"/>

### setMetadata

Dedicated method to set metadata.

#### Parameters

<TypeList types={[{"name":"obj","type":"`undefined` \\| `null` \\| `object`","description":"the entity to apply metadata to.","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"metadata","type":"`Record<string, unknown>`","description":"the metadata to set","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="setMetadata"/>

#### Returns

<TypeList types={[{"name":"Record","type":"`Record<string, unknown>`","optional":false,"defaultValue":"","description":"resolves to the updated result.","expandable":false,"children":[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]},{"name":"unknown","type":"`unknown`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="setMetadata"/>

### validateId

#### Parameters

<TypeList types={[{"name":"rawId","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"`object`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[{"name":"prefix","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"length","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]},{"name":"config.prefix","type":"`string`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]},{"name":"config.length","type":"`number`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="validateId"/>

#### Returns

<TypeList types={[{"name":"string","type":"`string`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="validateId"/>

### registerOverriddenValidators

When overriding a validator, you can register it to be used instead of the original one.
For example, the place where you are overriding the core validator, you can call this function

#### Example

```ts
// /src/api/routes/admin/products/create-product.ts
import { registerOverriddenValidators } from "@medusajs/medusa"
import { AdminPostProductsReq as MedusaAdminPostProductsReq } from "@medusajs/medusa/dist/api/routes/admin/products/create-product"
import { IsString } from "class-validator"

class AdminPostProductsReq extends MedusaAdminPostProductsReq {
   @IsString()
   test: string
}

registerOverriddenValidators(AdminPostProductsReq)
```

#### Parameters

<TypeList types={[{"name":"extendedValidator","type":"[Constructor](../medusa/types/medusa.Constructor-1.mdx)&#60;any&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="registerOverriddenValidators"/>

#### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"When overriding a validator, you can register it to be used instead of the original one.\nFor example, the place where you are overriding the core validator, you can call this function","expandable":false,"children":[]}]}  sectionTitle="registerOverriddenValidators"/>

### validator

#### Type Parameters

<TypeList types={[{"name":"T","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"V","type":"`object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="validator"/>

#### Parameters

<TypeList types={[{"name":"typedClass","type":"[ClassConstructor](../medusa/types/medusa.ClassConstructor.mdx)&#60;T&#62;","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"plain","type":"V","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"config","type":"`ValidatorOptions`","description":"","optional":false,"defaultValue":"{}","expandable":false,"children":[]}]}  sectionTitle="validator"/>

#### Returns

<TypeList types={[{"name":"Promise","type":"Promise&#60;T&#62;","optional":false,"defaultValue":"","description":"","expandable":false,"children":[{"name":"T","type":"T","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}]}  sectionTitle="validator"/>

### IsType

#### Parameters

<TypeList types={[{"name":"types","type":"`any`[]","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"validationOptions","type":"`ValidationOptions`","description":"","optional":true,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="IsType"/>

#### Returns

<TypeList types={[{"name":"(object: Object, propertyName: string) => void","type":"(`object`: `Object`, `propertyName`: `string`) => `void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="IsType"/>

##### Parameters

<TypeList types={[{"name":"object","type":"`Object`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]},{"name":"propertyName","type":"`string`","description":"","optional":false,"defaultValue":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>

##### Returns

<TypeList types={[{"name":"void","type":"`void`","optional":false,"defaultValue":"","description":"","expandable":false,"children":[]}]}  sectionTitle="__type"/>
