Skip to content

Commit 913c4fe

Browse files
AdyenAutomationBotgcatanese
authored andcommitted
[legalentitymanagement] Automated update from Adyen/adyen-openapi@e5eedc5
1 parent 0abed25 commit 913c4fe

51 files changed

Lines changed: 160 additions & 160 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Adyen/LegalEntityManagement/Models/AULocalAccountIdentification.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private TypeEnum(string? value)
131131
if (value == TypeEnum.AuLocal)
132132
return "auLocal";
133133

134-
return null;
134+
return value.Value;
135135
}
136136

137137
/// <summary>
@@ -244,7 +244,7 @@ public override AULocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
244244
break;
245245
case "type":
246246
string? typeRawValue = utf8JsonReader.GetString();
247-
type = new Option<AULocalAccountIdentification.TypeEnum?>(AULocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue));
247+
type = new Option<AULocalAccountIdentification.TypeEnum?>(AULocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue) ?? (AULocalAccountIdentification.TypeEnum)typeRawValue);
248248
break;
249249
default:
250250
break;
@@ -264,7 +264,7 @@ public override AULocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
264264
var aULocalAccountIdentification = new AULocalAccountIdentification();
265265
aULocalAccountIdentification.AccountNumber = accountNumber.Value!;
266266
aULocalAccountIdentification.BsbCode = bsbCode.Value!;
267-
aULocalAccountIdentification.Type = type.Value!.Value;
267+
aULocalAccountIdentification.Type = type.Value!;
268268
return aULocalAccountIdentification;
269269
}
270270

Adyen/LegalEntityManagement/Models/AcceptTermsOfServiceResponse.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ private TypeEnum(string? value)
212212
if (value == TypeEnum.KycOnInvite)
213213
return "kycOnInvite";
214214

215-
return null;
215+
return value.Value;
216216
}
217217

218218
/// <summary>
@@ -403,7 +403,7 @@ public override AcceptTermsOfServiceResponse Read(ref Utf8JsonReader utf8JsonRea
403403
break;
404404
case "type":
405405
string? typeRawValue = utf8JsonReader.GetString();
406-
type = new Option<AcceptTermsOfServiceResponse.TypeEnum?>(AcceptTermsOfServiceResponse.TypeEnum.FromStringOrDefault(typeRawValue));
406+
type = new Option<AcceptTermsOfServiceResponse.TypeEnum?>(AcceptTermsOfServiceResponse.TypeEnum.FromStringOrDefault(typeRawValue) ?? (AcceptTermsOfServiceResponse.TypeEnum)typeRawValue);
407407
break;
408408
default:
409409
break;

Adyen/LegalEntityManagement/Models/AdditionalBankIdentification.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.UsRoutingNumber)
159159
return "usRoutingNumber";
160160

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

164164
/// <summary>
@@ -273,7 +273,7 @@ public override AdditionalBankIdentification Read(ref Utf8JsonReader utf8JsonRea
273273
break;
274274
case "type":
275275
string? typeRawValue = utf8JsonReader.GetString();
276-
type = new Option<AdditionalBankIdentification.TypeEnum?>(AdditionalBankIdentification.TypeEnum.FromStringOrDefault(typeRawValue));
276+
type = new Option<AdditionalBankIdentification.TypeEnum?>(AdditionalBankIdentification.TypeEnum.FromStringOrDefault(typeRawValue) ?? (AdditionalBankIdentification.TypeEnum)typeRawValue);
277277
break;
278278
default:
279279
break;

Adyen/LegalEntityManagement/Models/BankAccountInfoAccountIdentification.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -421,49 +421,49 @@ public override BankAccountInfoAccountIdentification Read(ref Utf8JsonReader utf
421421
}
422422
}
423423

424-
if (aULocalAccountIdentification?.Type != null)
424+
if (aULocalAccountIdentification?.Type != null && AULocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)aULocalAccountIdentification.Type) != null)
425425
return new BankAccountInfoAccountIdentification(aULocalAccountIdentification);
426426

427-
if (cALocalAccountIdentification?.Type != null)
427+
if (cALocalAccountIdentification?.Type != null && CALocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)cALocalAccountIdentification.Type) != null)
428428
return new BankAccountInfoAccountIdentification(cALocalAccountIdentification);
429429

430-
if (cZLocalAccountIdentification?.Type != null)
430+
if (cZLocalAccountIdentification?.Type != null && CZLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)cZLocalAccountIdentification.Type) != null)
431431
return new BankAccountInfoAccountIdentification(cZLocalAccountIdentification);
432432

433-
if (dKLocalAccountIdentification?.Type != null)
433+
if (dKLocalAccountIdentification?.Type != null && DKLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)dKLocalAccountIdentification.Type) != null)
434434
return new BankAccountInfoAccountIdentification(dKLocalAccountIdentification);
435435

436-
if (hKLocalAccountIdentification?.Type != null)
436+
if (hKLocalAccountIdentification?.Type != null && HKLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)hKLocalAccountIdentification.Type) != null)
437437
return new BankAccountInfoAccountIdentification(hKLocalAccountIdentification);
438438

439-
if (hULocalAccountIdentification?.Type != null)
439+
if (hULocalAccountIdentification?.Type != null && HULocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)hULocalAccountIdentification.Type) != null)
440440
return new BankAccountInfoAccountIdentification(hULocalAccountIdentification);
441441

442-
if (ibanAccountIdentification?.Type != null)
442+
if (ibanAccountIdentification?.Type != null && IbanAccountIdentification.TypeEnum.FromStringOrDefault((string?)ibanAccountIdentification.Type) != null)
443443
return new BankAccountInfoAccountIdentification(ibanAccountIdentification);
444444

445-
if (nOLocalAccountIdentification?.Type != null)
445+
if (nOLocalAccountIdentification?.Type != null && NOLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)nOLocalAccountIdentification.Type) != null)
446446
return new BankAccountInfoAccountIdentification(nOLocalAccountIdentification);
447447

448-
if (nZLocalAccountIdentification?.Type != null)
448+
if (nZLocalAccountIdentification?.Type != null && NZLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)nZLocalAccountIdentification.Type) != null)
449449
return new BankAccountInfoAccountIdentification(nZLocalAccountIdentification);
450450

451-
if (numberAndBicAccountIdentification?.Type != null)
451+
if (numberAndBicAccountIdentification?.Type != null && NumberAndBicAccountIdentification.TypeEnum.FromStringOrDefault((string?)numberAndBicAccountIdentification.Type) != null)
452452
return new BankAccountInfoAccountIdentification(numberAndBicAccountIdentification);
453453

454-
if (pLLocalAccountIdentification?.Type != null)
454+
if (pLLocalAccountIdentification?.Type != null && PLLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)pLLocalAccountIdentification.Type) != null)
455455
return new BankAccountInfoAccountIdentification(pLLocalAccountIdentification);
456456

457-
if (sELocalAccountIdentification?.Type != null)
457+
if (sELocalAccountIdentification?.Type != null && SELocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)sELocalAccountIdentification.Type) != null)
458458
return new BankAccountInfoAccountIdentification(sELocalAccountIdentification);
459459

460-
if (sGLocalAccountIdentification?.Type != null)
460+
if (sGLocalAccountIdentification?.Type != null && SGLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)sGLocalAccountIdentification.Type) != null)
461461
return new BankAccountInfoAccountIdentification(sGLocalAccountIdentification);
462462

463-
if (uKLocalAccountIdentification?.Type != null)
463+
if (uKLocalAccountIdentification?.Type != null && UKLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)uKLocalAccountIdentification.Type) != null)
464464
return new BankAccountInfoAccountIdentification(uKLocalAccountIdentification);
465465

466-
if (uSLocalAccountIdentification?.Type != null)
466+
if (uSLocalAccountIdentification?.Type != null && USLocalAccountIdentification.TypeEnum.FromStringOrDefault((string?)uSLocalAccountIdentification.Type) != null)
467467
return new BankAccountInfoAccountIdentification(uSLocalAccountIdentification);
468468

469469
throw new JsonException();

Adyen/LegalEntityManagement/Models/BusinessLine.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private ServiceEnum(string? value)
149149
if (value == ServiceEnum.Banking)
150150
return "banking";
151151

152-
return null;
152+
return value.Value;
153153
}
154154

155155
/// <summary>
@@ -370,7 +370,7 @@ public override BusinessLine Read(ref Utf8JsonReader utf8JsonReader, Type typeTo
370370
break;
371371
case "service":
372372
string? serviceRawValue = utf8JsonReader.GetString();
373-
service = new Option<BusinessLine.ServiceEnum?>(BusinessLine.ServiceEnum.FromStringOrDefault(serviceRawValue));
373+
service = new Option<BusinessLine.ServiceEnum?>(BusinessLine.ServiceEnum.FromStringOrDefault(serviceRawValue) ?? (BusinessLine.ServiceEnum)serviceRawValue);
374374
break;
375375
case "industryCodeDescription":
376376
industryCodeDescription = new Option<string?>(utf8JsonReader.GetString()!);
@@ -412,7 +412,7 @@ public override BusinessLine Read(ref Utf8JsonReader utf8JsonReader, Type typeTo
412412
businessLine.Id = id.Value!;
413413
businessLine.IndustryCode = industryCode.Value!;
414414
businessLine.LegalEntityId = legalEntityId.Value!;
415-
businessLine.Service = service.Value!.Value;
415+
businessLine.Service = service.Value!;
416416
if (industryCodeDescription.IsSet)
417417
businessLine.IndustryCodeDescription = industryCodeDescription.Value;
418418
if (problems.IsSet)

Adyen/LegalEntityManagement/Models/BusinessLineInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ private ServiceEnum(string? value)
149149
if (value == ServiceEnum.Banking)
150150
return "banking";
151151

152-
return null;
152+
return value.Value;
153153
}
154154

155155
/// <summary>
@@ -341,7 +341,7 @@ public override BusinessLineInfo Read(ref Utf8JsonReader utf8JsonReader, Type ty
341341
break;
342342
case "service":
343343
string? serviceRawValue = utf8JsonReader.GetString();
344-
service = new Option<BusinessLineInfo.ServiceEnum?>(BusinessLineInfo.ServiceEnum.FromStringOrDefault(serviceRawValue));
344+
service = new Option<BusinessLineInfo.ServiceEnum?>(BusinessLineInfo.ServiceEnum.FromStringOrDefault(serviceRawValue) ?? (BusinessLineInfo.ServiceEnum)serviceRawValue);
345345
break;
346346
case "industryCodeDescription":
347347
industryCodeDescription = new Option<string?>(utf8JsonReader.GetString()!);
@@ -376,7 +376,7 @@ public override BusinessLineInfo Read(ref Utf8JsonReader utf8JsonReader, Type ty
376376
var businessLineInfo = new BusinessLineInfo();
377377
businessLineInfo.IndustryCode = industryCode.Value!;
378378
businessLineInfo.LegalEntityId = legalEntityId.Value!;
379-
businessLineInfo.Service = service.Value!.Value;
379+
businessLineInfo.Service = service.Value!;
380380
if (industryCodeDescription.IsSet)
381381
businessLineInfo.IndustryCodeDescription = industryCodeDescription.Value;
382382
if (salesChannels.IsSet)

Adyen/LegalEntityManagement/Models/CALocalAccountIdentification.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ private AccountTypeEnum(string? value)
141141
if (value == AccountTypeEnum.Savings)
142142
return "savings";
143143

144-
return null;
144+
return value.Value;
145145
}
146146

147147
/// <summary>
@@ -269,7 +269,7 @@ private TypeEnum(string? value)
269269
if (value == TypeEnum.CaLocal)
270270
return "caLocal";
271271

272-
return null;
272+
return value.Value;
273273
}
274274

275275
/// <summary>
@@ -396,11 +396,11 @@ public override CALocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
396396
break;
397397
case "accountType":
398398
string? accountTypeRawValue = utf8JsonReader.GetString();
399-
accountType = new Option<CALocalAccountIdentification.AccountTypeEnum?>(CALocalAccountIdentification.AccountTypeEnum.FromStringOrDefault(accountTypeRawValue));
399+
accountType = new Option<CALocalAccountIdentification.AccountTypeEnum?>(CALocalAccountIdentification.AccountTypeEnum.FromStringOrDefault(accountTypeRawValue) ?? (CALocalAccountIdentification.AccountTypeEnum)accountTypeRawValue);
400400
break;
401401
case "type":
402402
string? typeRawValue = utf8JsonReader.GetString();
403-
type = new Option<CALocalAccountIdentification.TypeEnum?>(CALocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue));
403+
type = new Option<CALocalAccountIdentification.TypeEnum?>(CALocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue) ?? (CALocalAccountIdentification.TypeEnum)typeRawValue);
404404
break;
405405
default:
406406
break;
@@ -426,7 +426,7 @@ public override CALocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
426426
cALocalAccountIdentification.TransitNumber = transitNumber.Value!;
427427
if (accountType.IsSet)
428428
cALocalAccountIdentification.AccountType = accountType.Value;
429-
cALocalAccountIdentification.Type = type.Value!.Value;
429+
cALocalAccountIdentification.Type = type.Value!;
430430
return cALocalAccountIdentification;
431431
}
432432

Adyen/LegalEntityManagement/Models/CZLocalAccountIdentification.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ private TypeEnum(string? value)
131131
if (value == TypeEnum.CzLocal)
132132
return "czLocal";
133133

134-
return null;
134+
return value.Value;
135135
}
136136

137137
/// <summary>
@@ -244,7 +244,7 @@ public override CZLocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
244244
break;
245245
case "type":
246246
string? typeRawValue = utf8JsonReader.GetString();
247-
type = new Option<CZLocalAccountIdentification.TypeEnum?>(CZLocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue));
247+
type = new Option<CZLocalAccountIdentification.TypeEnum?>(CZLocalAccountIdentification.TypeEnum.FromStringOrDefault(typeRawValue) ?? (CZLocalAccountIdentification.TypeEnum)typeRawValue);
248248
break;
249249
default:
250250
break;
@@ -264,7 +264,7 @@ public override CZLocalAccountIdentification Read(ref Utf8JsonReader utf8JsonRea
264264
var cZLocalAccountIdentification = new CZLocalAccountIdentification();
265265
cZLocalAccountIdentification.AccountNumber = accountNumber.Value!;
266266
cZLocalAccountIdentification.BankCode = bankCode.Value!;
267-
cZLocalAccountIdentification.Type = type.Value!.Value;
267+
cZLocalAccountIdentification.Type = type.Value!;
268268
return cZLocalAccountIdentification;
269269
}
270270

Adyen/LegalEntityManagement/Models/CalculatePciStatusRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ private AdditionalSalesChannelsEnum(string? value)
157157
if (value == AdditionalSalesChannelsEnum.PosMoto)
158158
return "posMoto";
159159

160-
return null;
160+
return value.Value;
161161
}
162162

163163
/// <summary>

Adyen/LegalEntityManagement/Models/CalculateTermsOfServiceStatusResponse.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ private TermsOfServiceTypesEnum(string? value)
211211
if (value == TermsOfServiceTypesEnum.KycOnInvite)
212212
return "kycOnInvite";
213213

214-
return null;
214+
return value.Value;
215215
}
216216

217217
/// <summary>

0 commit comments

Comments
 (0)