Feat(admin, medusa): add locations to claim and swap creation (#3522)
**What** - Add location selection to claim and swap creation Fixes CORE-1269
This commit is contained in:
1 parent
a8423b8acc
commit
55c5fba0d3
10 files changed
+224
-6
No files matched your search
@@ -3,6 +3,7 @@ import faker from "faker"
|
||||
import { ShippingOption, ShippingOptionPriceType, ShippingProfile, ShippingProfileType, } from "@medusajs/medusa"
|
||||
|
||||
export type ShippingOptionFactoryData = {
|
||||
id?: string
|
||||
name?: string
|
||||
region_id: string
|
||||
is_return?: boolean
|
||||
@@ -29,7 +30,7 @@ export const simpleShippingOptionFactory = async (
|
||||
})
|
||||
|
||||
const created = manager.create(ShippingOption, {
|
||||
id: `simple-so-${Math.random() * 1000}`,
|
||||
id: data.id || `simple-so-${Math.random() * 1000}`,
|
||||
name: data.name || "Test Method",
|
||||
is_return: data.is_return ?? false,
|
||||
region_id: data.region_id,
|
||||
|
||||
Reference in new issue
Block a user