fix(medusa): Allow method.data to be passed when creating/updating ShippingMethods in ClaimService (#3205)
**What** - Allows passing data on shipping methods during claim creation and updates. Defaults to an empty object. **Testing** - Updates a test so it also passes along shipping method data.
This commit is contained in:
committed by
GitHub
parent
86c87c7b10
commit
b9bda3bf4e
@@ -1346,6 +1346,7 @@ describe("/admin/orders", () => {
|
||||
|
||||
it("creates a claim on a swap", async () => {
|
||||
const api = useApi()
|
||||
const shippingOption = await simpleShippingOptionFactory(dbConnection)
|
||||
|
||||
const claimOnClaim = await api
|
||||
.post(
|
||||
@@ -1367,6 +1368,15 @@ describe("/admin/orders", () => {
|
||||
quantity: 1,
|
||||
},
|
||||
],
|
||||
shipping_methods: [
|
||||
{
|
||||
option_id: shippingOption.id,
|
||||
price: 1000,
|
||||
data: {
|
||||
test: "test",
|
||||
},
|
||||
},
|
||||
],
|
||||
},
|
||||
adminReqConfig
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user