File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 247
247
"required" : [
248
248
" creationRequestId" ,
249
249
" cardInfo" ,
250
- " status"
250
+ " status" ,
251
+ " gcClaimCode" ,
252
+ " gcId"
251
253
],
252
254
"members" : {
253
255
"cardInfo" : {
Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ class CreateGiftCardResponse extends Result
26
26
private $ status ;
27
27
28
28
/**
29
- * @var string|null
29
+ * @var string
30
30
*/
31
31
private $ gcClaimCode ;
32
32
33
33
/**
34
- * @var string|null
34
+ * @var string
35
35
*/
36
36
private $ gcId ;
37
37
@@ -54,7 +54,7 @@ public function getCreationRequestId(): string
54
54
return $ this ->creationRequestId ;
55
55
}
56
56
57
- public function getGcClaimCode (): ? string
57
+ public function getGcClaimCode (): string
58
58
{
59
59
$ this ->initialize ();
60
60
@@ -68,7 +68,7 @@ public function getGcExpirationDate(): ?\DateTimeImmutable
68
68
return $ this ->gcExpirationDate ;
69
69
}
70
70
71
- public function getGcId (): ? string
71
+ public function getGcId (): string
72
72
{
73
73
$ this ->initialize ();
74
74
@@ -97,8 +97,8 @@ protected function populateResult(Response $response): void
97
97
]);
98
98
$ this ->creationRequestId = (string ) $ data ->creationRequestId ;
99
99
$ this ->status = (string ) $ data ->status ;
100
- $ this ->gcClaimCode = ($ v = $ data ->gcClaimCode ) ? ( string ) $ v : null ;
101
- $ this ->gcId = ($ v = $ data ->gcId ) ? ( string ) $ v : null ;
100
+ $ this ->gcClaimCode = (string ) $ data ->gcClaimCode ;
101
+ $ this ->gcId = (string ) $ data ->gcId ;
102
102
$ this ->gcExpirationDate = ($ v = $ data ->gcExpirationDate ) ? new \DateTimeImmutable ((string ) $ v ) : null ;
103
103
}
104
104
}
You can’t perform that action at this time.
0 commit comments