diff --git a/package-lock.json b/package-lock.json index bc5009a..4b453f4 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.625.0", + "@seamapi/types": "1.641.0", "del": "^7.1.0", "prettier": "^3.0.0" } @@ -456,9 +456,9 @@ } }, "node_modules/@seamapi/types": { - "version": "1.625.0", - "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.625.0.tgz", - "integrity": "sha512-NXY0AWqNUz/z+UGPHFpNgcFj37jaHJ4yuYInWisy43B23oIX1u+XYQo2Gm5/z9UrDrnsYW78op1l0/xaSohBtg==", + "version": "1.641.0", + "resolved": "https://registry.npmjs.org/@seamapi/types/-/types-1.641.0.tgz", + "integrity": "sha512-IBAKTbhXLEJiTS+6On4wDqeF6qZTo/DUa+3Ort+oIw3fFJLHDQXDhqvNc+FaEkt1hEGq6ezZ/jxwGoEFCRHyhA==", "dev": true, "license": "MIT", "engines": { diff --git a/package.json b/package.json index 17f8637..48763e7 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.625.0", + "@seamapi/types": "1.641.0", "del": "^7.1.0", "prettier": "^3.0.0" } diff --git a/src/Objects/CustomizationProfile.php b/src/Objects/CustomizationProfile.php index f910ca9..a759f5d 100644 --- a/src/Objects/CustomizationProfile.php +++ b/src/Objects/CustomizationProfile.php @@ -13,6 +13,11 @@ public static function from_json(mixed $json): CustomizationProfile|null created_at: $json->created_at, customization_profile_id: $json->customization_profile_id, workspace_id: $json->workspace_id, + customer_portal_theme: isset($json->customer_portal_theme) + ? CustomizationProfileCustomerPortalTheme::from_json( + $json->customer_portal_theme, + ) + : null, logo_url: $json->logo_url ?? null, primary_color: $json->primary_color ?? null, secondary_color: $json->secondary_color ?? null, @@ -24,6 +29,7 @@ public function __construct( public string $created_at, public string $customization_profile_id, public string $workspace_id, + public CustomizationProfileCustomerPortalTheme|null $customer_portal_theme, public string|null $logo_url, public string|null $primary_color, public string|null $secondary_color, diff --git a/src/Objects/CustomizationProfileCustomerPortalTheme.php b/src/Objects/CustomizationProfileCustomerPortalTheme.php new file mode 100644 index 0000000..09d352d --- /dev/null +++ b/src/Objects/CustomizationProfileCustomerPortalTheme.php @@ -0,0 +1,28 @@ +primary_color ?? null, + primary_foreground_color: $json->primary_foreground_color ?? null, + secondary_color: $json->secondary_color ?? null, + secondary_foreground_color: $json->secondary_foreground_color ?? + null, + ); + } + + public function __construct( + public string|null $primary_color, + public string|null $primary_foreground_color, + public string|null $secondary_color, + public string|null $secondary_foreground_color, + ) {} +} diff --git a/src/Objects/MagicLink.php b/src/Objects/MagicLink.php index 4f4317e..87230ea 100644 --- a/src/Objects/MagicLink.php +++ b/src/Objects/MagicLink.php @@ -10,7 +10,6 @@ public static function from_json(mixed $json): MagicLink|null return null; } return new self( - building_block_type: $json->building_block_type, created_at: $json->created_at, customer_key: $json->customer_key, expires_at: $json->expires_at, @@ -20,7 +19,6 @@ public static function from_json(mixed $json): MagicLink|null } public function __construct( - public string $building_block_type, public string $created_at, public string $customer_key, public string $expires_at,