5
5
namespace ApiClients \Client \GitHubEnterpriseCloud \Internal \Hydrator \Operation \Orgs \Org \Copilot \Billing ;
6
6
7
7
use ApiClients \Client \GitHubEnterpriseCloud \Schema \BasicError ;
8
- use ApiClients \Client \GitHubEnterpriseCloud \Schema \Operations \Copilot \ListCopilotSeats \Response \ApplicationJson \Ok \ Application \ Json ;
8
+ use ApiClients \Client \GitHubEnterpriseCloud \Schema \Operations \Copilot \ListCopilotSeats \Response \ApplicationJson \Ok ;
9
9
use EventSauce \ObjectHydrator \IterableList ;
10
10
use EventSauce \ObjectHydrator \ObjectMapper ;
11
11
use EventSauce \ObjectHydrator \PropertySerializers \SerializeArrayItems ;
@@ -39,13 +39,13 @@ public function __construct()
39
39
public function hydrateObject (string $ className , array $ payload ): object
40
40
{
41
41
return match ($ className ) {
42
- 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json ($ payload ),
42
+ 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok ($ payload ),
43
43
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError ' => $ this ->hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError ($ payload ),
44
44
default => throw UnableToHydrateObject::noHydrationDefined ($ className , $ this ->hydrationStack ),
45
45
};
46
46
}
47
47
48
- private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json (array $ payload ): Json
48
+ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok (array $ payload ): Ok
49
49
{
50
50
$ properties = [];
51
51
$ missingFields = [];
@@ -72,17 +72,17 @@ private function hydrateApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️S
72
72
73
73
after_seats:
74
74
} catch (Throwable $ exception ) {
75
- throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json ' , $ exception , stack: $ this ->hydrationStack );
75
+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok ' , $ exception , stack: $ this ->hydrationStack );
76
76
}
77
77
78
78
if (count ($ missingFields ) > 0 ) {
79
- throw UnableToHydrateObject::dueToMissingFields (Json ::class, $ missingFields , stack: $ this ->hydrationStack );
79
+ throw UnableToHydrateObject::dueToMissingFields (Ok ::class, $ missingFields , stack: $ this ->hydrationStack );
80
80
}
81
81
82
82
try {
83
- return new Json (...$ properties );
83
+ return new Ok (...$ properties );
84
84
} catch (Throwable $ exception ) {
85
- throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json ' , $ exception , stack: $ this ->hydrationStack );
85
+ throw UnableToHydrateObject::dueToError ('ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok ' , $ exception , stack: $ this ->hydrationStack );
86
86
}
87
87
}
88
88
@@ -180,7 +180,7 @@ public function serializeObjectOfType(object $object, string $className): mixed
180
180
'DateTime ' => $ this ->serializeValueDateTime ($ object ),
181
181
'DateTimeImmutable ' => $ this ->serializeValueDateTimeImmutable ($ object ),
182
182
'DateTimeInterface ' => $ this ->serializeValueDateTimeInterface ($ object ),
183
- 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok\Application\Json ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json ($ object ),
183
+ 'ApiClients\Client\GitHubEnterpriseCloud\Schema\Operations\Copilot\ListCopilotSeats\Response\ApplicationJson\Ok ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok ($ object ),
184
184
'ApiClients\Client\GitHubEnterpriseCloud\Schema\BasicError ' => $ this ->serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️BasicError ($ object ),
185
185
default => throw new LogicException ('No serialization defined for $className ' ),
186
186
};
@@ -244,9 +244,9 @@ private function serializeValueDateTimeInterface(mixed $value): mixed
244
244
return $ serializer ->serialize ($ value , $ this );
245
245
}
246
246
247
- private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok⚡️Application⚡️Json (mixed $ object ): mixed
247
+ private function serializeObjectApiClients⚡️Client⚡️GitHubEnterpriseCloud⚡️Schema⚡️Operations⚡️Copilot⚡️ListCopilotSeats⚡️Response⚡️ApplicationJson⚡️Ok (mixed $ object ): mixed
248
248
{
249
- assert ($ object instanceof Json );
249
+ assert ($ object instanceof Ok );
250
250
$ result = [];
251
251
252
252
$ totalSeats = $ object ->totalSeats ;
0 commit comments