feat: Allow customer metadata update (#9780)

* Allow customer metadata update 

See issue 9779
https://github.com/medusajs/medusa/issues/9779

* add integration tests for customer metadata

- Implemented integration tests to verify customer creation with metadata.
This commit is contained in:
docloulou
2024-10-25 11:28:34 +02:00
committed by GitHub
parent f295596df2
commit bb6d7c6641
2 changed files with 14 additions and 0 deletions
@@ -53,6 +53,12 @@ medusaIntegrationTestRunner({
email: "newcustomer@medusa.js",
first_name: "John",
last_name: "Doe",
metadata: {
loyalty_level: "gold",
preferences: {
newsletter: true,
},
},
},
{
headers: {
@@ -69,6 +75,12 @@ medusaIntegrationTestRunner({
first_name: "John",
last_name: "Doe",
has_account: true,
metadata: {
loyalty_level: "gold",
preferences: {
newsletter: true,
},
},
}),
})
})