1616 * additionalInfo?: AdditionalInfo|null,
1717 * boID?: string|null,
1818 * clientID?: string|null,
19- * dematType?: DematType::* |null,
19+ * dematType?: value-of< DematType> |null,
2020 * dpID?: string|null,
2121 * dpName?: string|null,
2222 * holdings?: Holdings|null,
@@ -49,7 +49,7 @@ final class DematAccount implements BaseModel
4949 /**
5050 * Type of demat account.
5151 *
52- * @var DematType::* |null $dematType
52+ * @var value-of< DematType> |null $dematType
5353 */
5454 #[Api('demat_type ' , enum: DematType::class, optional: true )]
5555 public ?string $ dematType ;
@@ -85,13 +85,13 @@ public function __construct()
8585 *
8686 * You must use named parameters to construct any parameters with a default value.
8787 *
88- * @param DematType::* $dematType
88+ * @param DematType|value-of<DematType> $dematType
8989 */
9090 public static function with (
9191 ?AdditionalInfo $ additionalInfo = null ,
9292 ?string $ boID = null ,
9393 ?string $ clientID = null ,
94- ? string $ dematType = null ,
94+ DematType | string | null $ dematType = null ,
9595 ?string $ dpID = null ,
9696 ?string $ dpName = null ,
9797 ?Holdings $ holdings = null ,
@@ -102,7 +102,7 @@ public static function with(
102102 null !== $ additionalInfo && $ obj ->additionalInfo = $ additionalInfo ;
103103 null !== $ boID && $ obj ->boID = $ boID ;
104104 null !== $ clientID && $ obj ->clientID = $ clientID ;
105- null !== $ dematType && $ obj ->dematType = $ dematType ;
105+ null !== $ dematType && $ obj ->dematType = $ dematType instanceof DematType ? $ dematType -> value : $ dematType ;
106106 null !== $ dpID && $ obj ->dpID = $ dpID ;
107107 null !== $ dpName && $ obj ->dpName = $ dpName ;
108108 null !== $ holdings && $ obj ->holdings = $ holdings ;
@@ -147,12 +147,12 @@ public function withClientID(string $clientID): self
147147 /**
148148 * Type of demat account.
149149 *
150- * @param DematType::* $dematType
150+ * @param DematType|value-of<DematType> $dematType
151151 */
152- public function withDematType (string $ dematType ): self
152+ public function withDematType (DematType | string $ dematType ): self
153153 {
154154 $ obj = clone $ this ;
155- $ obj ->dematType = $ dematType ;
155+ $ obj ->dematType = $ dematType instanceof DematType ? $ dematType -> value : $ dematType ;
156156
157157 return $ obj ;
158158 }
0 commit comments