@@ -149,7 +149,7 @@ private CommunicationFormatEnum(string? value)
149149 if ( value == CommunicationFormatEnum . Soap )
150150 return "soap" ;
151151
152- return null ;
152+ return value . Value ;
153153 }
154154
155155 /// <summary>
@@ -289,7 +289,7 @@ private FilterMerchantAccountTypeEnum(string? value)
289289 if ( value == FilterMerchantAccountTypeEnum . IncludeAccounts )
290290 return "includeAccounts" ;
291291
292- return null ;
292+ return value . Value ;
293293 }
294294
295295 /// <summary>
@@ -428,7 +428,7 @@ private EncryptionProtocolEnum(string? value)
428428 if ( value == EncryptionProtocolEnum . TLSv13 )
429429 return "TLSv1.3" ;
430430
431- return null ;
431+ return value . Value ;
432432 }
433433
434434 /// <summary>
@@ -566,7 +566,7 @@ private NetworkTypeEnum(string? value)
566566 if ( value == NetworkTypeEnum . Public )
567567 return "public" ;
568568
569- return null ;
569+ return value . Value ;
570570 }
571571
572572 /// <summary>
@@ -835,11 +835,11 @@ public override CreateCompanyWebhookRequest Read(ref Utf8JsonReader utf8JsonRead
835835 break ;
836836 case "communicationFormat" :
837837 string ? communicationFormatRawValue = utf8JsonReader . GetString ( ) ;
838- communicationFormat = new Option < CreateCompanyWebhookRequest . CommunicationFormatEnum ? > ( CreateCompanyWebhookRequest . CommunicationFormatEnum . FromStringOrDefault ( communicationFormatRawValue ) ) ;
838+ communicationFormat = new Option < CreateCompanyWebhookRequest . CommunicationFormatEnum ? > ( CreateCompanyWebhookRequest . CommunicationFormatEnum . FromStringOrDefault ( communicationFormatRawValue ) ?? ( CreateCompanyWebhookRequest . CommunicationFormatEnum ) communicationFormatRawValue ) ;
839839 break ;
840840 case "filterMerchantAccountType" :
841841 string ? filterMerchantAccountTypeRawValue = utf8JsonReader . GetString ( ) ;
842- filterMerchantAccountType = new Option < CreateCompanyWebhookRequest . FilterMerchantAccountTypeEnum ? > ( CreateCompanyWebhookRequest . FilterMerchantAccountTypeEnum . FromStringOrDefault ( filterMerchantAccountTypeRawValue ) ) ;
842+ filterMerchantAccountType = new Option < CreateCompanyWebhookRequest . FilterMerchantAccountTypeEnum ? > ( CreateCompanyWebhookRequest . FilterMerchantAccountTypeEnum . FromStringOrDefault ( filterMerchantAccountTypeRawValue ) ?? ( CreateCompanyWebhookRequest . FilterMerchantAccountTypeEnum ) filterMerchantAccountTypeRawValue ) ;
843843 break ;
844844 case "filterMerchantAccounts" :
845845 filterMerchantAccounts = new Option < List < string > ? > ( JsonSerializer . Deserialize < List < string > > ( ref utf8JsonReader , jsonSerializerOptions ) ! ) ;
@@ -867,11 +867,11 @@ public override CreateCompanyWebhookRequest Read(ref Utf8JsonReader utf8JsonRead
867867 break ;
868868 case "encryptionProtocol" :
869869 string ? encryptionProtocolRawValue = utf8JsonReader . GetString ( ) ;
870- encryptionProtocol = new Option < CreateCompanyWebhookRequest . EncryptionProtocolEnum ? > ( CreateCompanyWebhookRequest . EncryptionProtocolEnum . FromStringOrDefault ( encryptionProtocolRawValue ) ) ;
870+ encryptionProtocol = new Option < CreateCompanyWebhookRequest . EncryptionProtocolEnum ? > ( CreateCompanyWebhookRequest . EncryptionProtocolEnum . FromStringOrDefault ( encryptionProtocolRawValue ) ?? ( CreateCompanyWebhookRequest . EncryptionProtocolEnum ) encryptionProtocolRawValue ) ;
871871 break ;
872872 case "networkType" :
873873 string ? networkTypeRawValue = utf8JsonReader . GetString ( ) ;
874- networkType = new Option < CreateCompanyWebhookRequest . NetworkTypeEnum ? > ( CreateCompanyWebhookRequest . NetworkTypeEnum . FromStringOrDefault ( networkTypeRawValue ) ) ;
874+ networkType = new Option < CreateCompanyWebhookRequest . NetworkTypeEnum ? > ( CreateCompanyWebhookRequest . NetworkTypeEnum . FromStringOrDefault ( networkTypeRawValue ) ?? ( CreateCompanyWebhookRequest . NetworkTypeEnum ) networkTypeRawValue ) ;
875875 break ;
876876 case "password" :
877877 password = new Option < string ? > ( utf8JsonReader . GetString ( ) ! ) ;
@@ -908,8 +908,8 @@ public override CreateCompanyWebhookRequest Read(ref Utf8JsonReader utf8JsonRead
908908
909909 var createCompanyWebhookRequest = new CreateCompanyWebhookRequest ( ) ;
910910 createCompanyWebhookRequest . Active = active . Value ! . Value ;
911- createCompanyWebhookRequest . CommunicationFormat = communicationFormat . Value ! . Value ;
912- createCompanyWebhookRequest . FilterMerchantAccountType = filterMerchantAccountType . Value ! . Value ;
911+ createCompanyWebhookRequest . CommunicationFormat = communicationFormat . Value ! ;
912+ createCompanyWebhookRequest . FilterMerchantAccountType = filterMerchantAccountType . Value ! ;
913913 createCompanyWebhookRequest . FilterMerchantAccounts = filterMerchantAccounts . Value ! ;
914914 createCompanyWebhookRequest . Type = type . Value ! ;
915915 createCompanyWebhookRequest . Url = url . Value ! ;
0 commit comments