@@ -167,7 +167,7 @@ private AccountAgeIndicatorEnum(string? value)
167167 if ( value == AccountAgeIndicatorEnum . MoreThan60Days )
168168 return "moreThan60Days" ;
169169
170- return null ;
170+ return value . Value ;
171171 }
172172
173173 /// <summary>
@@ -322,7 +322,7 @@ private AccountChangeIndicatorEnum(string? value)
322322 if ( value == AccountChangeIndicatorEnum . MoreThan60Days )
323323 return "moreThan60Days" ;
324324
325- return null ;
325+ return value . Value ;
326326 }
327327
328328 /// <summary>
@@ -468,7 +468,7 @@ private AccountTypeEnum(string? value)
468468 if ( value == AccountTypeEnum . Debit )
469469 return "debit" ;
470470
471- return null ;
471+ return value . Value ;
472472 }
473473
474474 /// <summary>
@@ -623,7 +623,7 @@ private DeliveryAddressUsageIndicatorEnum(string? value)
623623 if ( value == DeliveryAddressUsageIndicatorEnum . MoreThan60Days )
624624 return "moreThan60Days" ;
625625
626- return null ;
626+ return value . Value ;
627627 }
628628
629629 /// <summary>
@@ -787,7 +787,7 @@ private PasswordChangeIndicatorEnum(string? value)
787787 if ( value == PasswordChangeIndicatorEnum . MoreThan60Days )
788788 return "moreThan60Days" ;
789789
790- return null ;
790+ return value . Value ;
791791 }
792792
793793 /// <summary>
@@ -951,7 +951,7 @@ private PaymentAccountIndicatorEnum(string? value)
951951 if ( value == PaymentAccountIndicatorEnum . MoreThan60Days )
952952 return "moreThan60Days" ;
953953
954- return null ;
954+ return value . Value ;
955955 }
956956
957957 /// <summary>
@@ -1296,21 +1296,21 @@ public override AccountInfo Read(ref Utf8JsonReader utf8JsonReader, Type typeToC
12961296 {
12971297 case "accountAgeIndicator" :
12981298 string ? accountAgeIndicatorRawValue = utf8JsonReader . GetString ( ) ;
1299- accountAgeIndicator = new Option < AccountInfo . AccountAgeIndicatorEnum ? > ( AccountInfo . AccountAgeIndicatorEnum . FromStringOrDefault ( accountAgeIndicatorRawValue ) ) ;
1299+ accountAgeIndicator = new Option < AccountInfo . AccountAgeIndicatorEnum ? > ( AccountInfo . AccountAgeIndicatorEnum . FromStringOrDefault ( accountAgeIndicatorRawValue ) ?? ( AccountInfo . AccountAgeIndicatorEnum ) accountAgeIndicatorRawValue ) ;
13001300 break ;
13011301 case "accountChangeDate" :
13021302 accountChangeDate = new Option < DateTimeOffset ? > ( JsonSerializer . Deserialize < DateTimeOffset > ( ref utf8JsonReader , jsonSerializerOptions ) ) ;
13031303 break ;
13041304 case "accountChangeIndicator" :
13051305 string ? accountChangeIndicatorRawValue = utf8JsonReader . GetString ( ) ;
1306- accountChangeIndicator = new Option < AccountInfo . AccountChangeIndicatorEnum ? > ( AccountInfo . AccountChangeIndicatorEnum . FromStringOrDefault ( accountChangeIndicatorRawValue ) ) ;
1306+ accountChangeIndicator = new Option < AccountInfo . AccountChangeIndicatorEnum ? > ( AccountInfo . AccountChangeIndicatorEnum . FromStringOrDefault ( accountChangeIndicatorRawValue ) ?? ( AccountInfo . AccountChangeIndicatorEnum ) accountChangeIndicatorRawValue ) ;
13071307 break ;
13081308 case "accountCreationDate" :
13091309 accountCreationDate = new Option < DateTimeOffset ? > ( JsonSerializer . Deserialize < DateTimeOffset > ( ref utf8JsonReader , jsonSerializerOptions ) ) ;
13101310 break ;
13111311 case "accountType" :
13121312 string ? accountTypeRawValue = utf8JsonReader . GetString ( ) ;
1313- accountType = new Option < AccountInfo . AccountTypeEnum ? > ( AccountInfo . AccountTypeEnum . FromStringOrDefault ( accountTypeRawValue ) ) ;
1313+ accountType = new Option < AccountInfo . AccountTypeEnum ? > ( AccountInfo . AccountTypeEnum . FromStringOrDefault ( accountTypeRawValue ) ?? ( AccountInfo . AccountTypeEnum ) accountTypeRawValue ) ;
13141314 break ;
13151315 case "addCardAttemptsDay" :
13161316 addCardAttemptsDay = new Option < int ? > ( utf8JsonReader . TokenType == JsonTokenType . Null ? ( int ? ) null : utf8JsonReader . GetInt32 ( ) ) ;
@@ -1320,7 +1320,7 @@ public override AccountInfo Read(ref Utf8JsonReader utf8JsonReader, Type typeToC
13201320 break ;
13211321 case "deliveryAddressUsageIndicator" :
13221322 string ? deliveryAddressUsageIndicatorRawValue = utf8JsonReader . GetString ( ) ;
1323- deliveryAddressUsageIndicator = new Option < AccountInfo . DeliveryAddressUsageIndicatorEnum ? > ( AccountInfo . DeliveryAddressUsageIndicatorEnum . FromStringOrDefault ( deliveryAddressUsageIndicatorRawValue ) ) ;
1323+ deliveryAddressUsageIndicator = new Option < AccountInfo . DeliveryAddressUsageIndicatorEnum ? > ( AccountInfo . DeliveryAddressUsageIndicatorEnum . FromStringOrDefault ( deliveryAddressUsageIndicatorRawValue ) ?? ( AccountInfo . DeliveryAddressUsageIndicatorEnum ) deliveryAddressUsageIndicatorRawValue ) ;
13241324 break ;
13251325 case "homePhone" :
13261326 homePhone = new Option < string ? > ( utf8JsonReader . GetString ( ) ! ) ;
@@ -1333,7 +1333,7 @@ public override AccountInfo Read(ref Utf8JsonReader utf8JsonReader, Type typeToC
13331333 break ;
13341334 case "passwordChangeIndicator" :
13351335 string ? passwordChangeIndicatorRawValue = utf8JsonReader . GetString ( ) ;
1336- passwordChangeIndicator = new Option < AccountInfo . PasswordChangeIndicatorEnum ? > ( AccountInfo . PasswordChangeIndicatorEnum . FromStringOrDefault ( passwordChangeIndicatorRawValue ) ) ;
1336+ passwordChangeIndicator = new Option < AccountInfo . PasswordChangeIndicatorEnum ? > ( AccountInfo . PasswordChangeIndicatorEnum . FromStringOrDefault ( passwordChangeIndicatorRawValue ) ?? ( AccountInfo . PasswordChangeIndicatorEnum ) passwordChangeIndicatorRawValue ) ;
13371337 break ;
13381338 case "pastTransactionsDay" :
13391339 pastTransactionsDay = new Option < int ? > ( utf8JsonReader . TokenType == JsonTokenType . Null ? ( int ? ) null : utf8JsonReader . GetInt32 ( ) ) ;
@@ -1346,7 +1346,7 @@ public override AccountInfo Read(ref Utf8JsonReader utf8JsonReader, Type typeToC
13461346 break ;
13471347 case "paymentAccountIndicator" :
13481348 string ? paymentAccountIndicatorRawValue = utf8JsonReader . GetString ( ) ;
1349- paymentAccountIndicator = new Option < AccountInfo . PaymentAccountIndicatorEnum ? > ( AccountInfo . PaymentAccountIndicatorEnum . FromStringOrDefault ( paymentAccountIndicatorRawValue ) ) ;
1349+ paymentAccountIndicator = new Option < AccountInfo . PaymentAccountIndicatorEnum ? > ( AccountInfo . PaymentAccountIndicatorEnum . FromStringOrDefault ( paymentAccountIndicatorRawValue ) ?? ( AccountInfo . PaymentAccountIndicatorEnum ) paymentAccountIndicatorRawValue ) ;
13501350 break ;
13511351 case "purchasesLast6Months" :
13521352 purchasesLast6Months = new Option < int ? > ( utf8JsonReader . TokenType == JsonTokenType . Null ? ( int ? ) null : utf8JsonReader . GetInt32 ( ) ) ;
0 commit comments