File tree Expand file tree Collapse file tree
Adyen/ReportWebhooks/Models Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -131,7 +131,7 @@ private TypeEnum(string? value)
131131 if ( value == TypeEnum . BalancePlatformReportCreated )
132132 return "balancePlatform.report.created" ;
133133
134- return null ;
134+ return value . Value ;
135135 }
136136
137137 /// <summary>
@@ -264,7 +264,7 @@ public override ReportNotificationRequest Read(ref Utf8JsonReader utf8JsonReader
264264 break ;
265265 case "type" :
266266 string ? typeRawValue = utf8JsonReader . GetString ( ) ;
267- type = new Option < ReportNotificationRequest . TypeEnum ? > ( ReportNotificationRequest . TypeEnum . FromStringOrDefault ( typeRawValue ) ) ;
267+ type = new Option < ReportNotificationRequest . TypeEnum ? > ( ReportNotificationRequest . TypeEnum . FromStringOrDefault ( typeRawValue ) ?? ( ReportNotificationRequest . TypeEnum ) typeRawValue ) ;
268268 break ;
269269 case "timestamp" :
270270 timestamp = new Option < DateTimeOffset ? > ( JsonSerializer . Deserialize < DateTimeOffset > ( ref utf8JsonReader , jsonSerializerOptions ) ) ;
@@ -287,7 +287,7 @@ public override ReportNotificationRequest Read(ref Utf8JsonReader utf8JsonReader
287287 var reportNotificationRequest = new ReportNotificationRequest ( ) ;
288288 reportNotificationRequest . Data = data . Value ! ;
289289 reportNotificationRequest . Environment = environment . Value ! ;
290- reportNotificationRequest . Type = type . Value ! . Value ;
290+ reportNotificationRequest . Type = type . Value ! ;
291291 if ( timestamp . IsSet )
292292 reportNotificationRequest . Timestamp = timestamp . Value ;
293293 return reportNotificationRequest ;
Original file line number Diff line number Diff line change 11{
22 "service" : " reportwebhooks" ,
33 "project" : " dotnet" ,
4- "generatedAt" : " 2026-05-12T08:06:02Z " ,
5- "openapiCommitSha" : " c17deb734dee105f2d25e50825bed55fdbd71c50 " ,
6- "automationCommitSha" : " 0b7ef4e0ed6a7963ab005efe76eab748250edafc " ,
7- "libraryCommitSha" : " ed5b5b7be2fa4a88becfee9716bba894bdfe61b6 "
4+ "generatedAt" : " 2026-05-21T12:55:15Z " ,
5+ "openapiCommitSha" : " e5eedc5cba69416331333d4b0e90cb4871715517 " ,
6+ "automationCommitSha" : " 6f06b47d0661f0891defe6b85461d2c367fbd284 " ,
7+ "libraryCommitSha" : " 73a83cb23fb8e432b81d23291bd9be4e7fcc0d2f "
88}
You can’t perform that action at this time.
0 commit comments