Skip to content

Commit ebf3a81

Browse files
authored
scts is an optional property (#424)
1 parent adb6a5b commit ebf3a81

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/SMS/Webhook/DeliveryReceipt.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,6 @@ class DeliveryReceipt
151151
'msisdn',
152152
'network-code',
153153
'price',
154-
'scts',
155154
'status',
156155
'to'
157156
];
@@ -230,14 +229,17 @@ public function __construct(array $data)
230229
$this->msisdn = $data['msisdn'];
231230
$this->networkCode = $data['network-code'];
232231
$this->price = $data['price'];
233-
$this->scts = $data['scts'];
234232
$this->status = $data['status'];
235233
$this->to = $data['to'];
236234
$this->apiKey = $data['api-key'];
237235

238236
if (isset($data['client-ref'])) {
239237
$this->clientRef = $data['client-ref'];
240238
}
239+
240+
if (isset($data['scts'])) {
241+
$this->scts = $data['scts'];
242+
}
241243
}
242244

243245
public function getErrCode(): int

0 commit comments

Comments
 (0)