Skip to content

Commit 09cf41f

Browse files
AdyenAutomationBotgcatanese
authored andcommitted
[disputewebhooks] Automated update from Adyen/adyen-openapi@e5eedc5
1 parent 4f519b3 commit 09cf41f

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

Adyen/DisputeWebhooks/Models/DisputeEventNotification.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ private TypeEnum(string? value)
158158
if (value == TypeEnum.Other)
159159
return "other";
160160

161-
return null;
161+
return value.Value;
162162
}
163163

164164
/// <summary>
@@ -429,7 +429,7 @@ public override DisputeEventNotification Read(ref Utf8JsonReader utf8JsonReader,
429429
break;
430430
case "type":
431431
string? typeRawValue = utf8JsonReader.GetString();
432-
type = new Option<DisputeEventNotification.TypeEnum?>(DisputeEventNotification.TypeEnum.FromStringOrDefault(typeRawValue));
432+
type = new Option<DisputeEventNotification.TypeEnum?>(DisputeEventNotification.TypeEnum.FromStringOrDefault(typeRawValue) ?? (DisputeEventNotification.TypeEnum)typeRawValue);
433433
break;
434434
default:
435435
break;

Adyen/DisputeWebhooks/Models/DisputeNotificationRequest.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ private TypeEnum(string? value)
140140
if (value == TypeEnum.BalancePlatformDisputeUpdated)
141141
return "balancePlatform.dispute.updated";
142142

143-
return null;
143+
return value.Value;
144144
}
145145

146146
/// <summary>
@@ -240,7 +240,7 @@ public override DisputeNotificationRequest Read(ref Utf8JsonReader utf8JsonReade
240240
break;
241241
case "type":
242242
string? typeRawValue = utf8JsonReader.GetString();
243-
type = new Option<DisputeNotificationRequest.TypeEnum?>(DisputeNotificationRequest.TypeEnum.FromStringOrDefault(typeRawValue));
243+
type = new Option<DisputeNotificationRequest.TypeEnum?>(DisputeNotificationRequest.TypeEnum.FromStringOrDefault(typeRawValue) ?? (DisputeNotificationRequest.TypeEnum)typeRawValue);
244244
break;
245245
default:
246246
break;
@@ -256,7 +256,7 @@ public override DisputeNotificationRequest Read(ref Utf8JsonReader utf8JsonReade
256256

257257
var disputeNotificationRequest = new DisputeNotificationRequest();
258258
disputeNotificationRequest.Data = data.Value!;
259-
disputeNotificationRequest.Type = type.Value!.Value;
259+
disputeNotificationRequest.Type = type.Value!;
260260
return disputeNotificationRequest;
261261
}
262262

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"service": "disputewebhooks",
33
"project": "dotnet",
4-
"generatedAt": "2026-05-12T08:06:01Z",
5-
"openapiCommitSha": "c17deb734dee105f2d25e50825bed55fdbd71c50",
6-
"automationCommitSha": "0b7ef4e0ed6a7963ab005efe76eab748250edafc",
7-
"libraryCommitSha": "ed5b5b7be2fa4a88becfee9716bba894bdfe61b6"
4+
"generatedAt": "2026-05-21T12:55:18Z",
5+
"openapiCommitSha": "e5eedc5cba69416331333d4b0e90cb4871715517",
6+
"automationCommitSha": "6f06b47d0661f0891defe6b85461d2c367fbd284",
7+
"libraryCommitSha": "73a83cb23fb8e432b81d23291bd9be4e7fcc0d2f"
88
}

0 commit comments

Comments
 (0)