diff --git a/package-lock.json b/package-lock.json index 10c1325..155ecc1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -11,7 +11,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.4", - "@seamapi/types": "1.645.0", + "@seamapi/types": "1.654.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.645.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.645.0.tgz", - "integrity": "sha512-93UOLFb2c/mK8Y9bHF0bmNaT3xD4RaoyLg91HE//bTpuTphpf7E0uZPM/1vxrgEOSjpMgjpKWvLjMQFlMWSeEA==", + "version": "1.654.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.654.0.tgz", + "integrity": "sha512-nYjlg1bpw/RG52xCmNEpAuQObSONoNcAk1hWt3aGzECiFkwxJagaYwile4xwmvOM9LRnn+cCDmvnys9DkvqA/Q==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 961be08..0bb9623 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "devDependencies": { "@prettier/plugin-php": "^0.24.0", "@seamapi/nextlove-sdk-generator": "^1.19.4", - "@seamapi/types": "1.645.0", + "@seamapi/types": "1.654.0", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/SeamClient.php b/src/SeamClient.php index 33a0e3e..2bdb854 100644 --- a/src/SeamClient.php +++ b/src/SeamClient.php @@ -3262,13 +3262,20 @@ public function __construct(SeamClient $seam) } public function create_portal( + ?string $customization_profile_id = null, mixed $features = null, ?bool $is_embedded = null, mixed $landing_page = null, + ?string $locale = null, mixed $customer_data = null, ): MagicLink { $request_payload = []; + if ($customization_profile_id !== null) { + $request_payload[ + "customization_profile_id" + ] = $customization_profile_id; + } if ($features !== null) { $request_payload["features"] = $features; } @@ -3278,6 +3285,9 @@ public function create_portal( if ($landing_page !== null) { $request_payload["landing_page"] = $landing_page; } + if ($locale !== null) { + $request_payload["locale"] = $locale; + } if ($customer_data !== null) { $request_payload["customer_data"] = $customer_data; }